1 2004-01-22 Andreas Jaeger <aj@suse.de>
3 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
6 2004-01-20 Ulrich Drepper <drepper@redhat.com>
8 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
9 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10 Patch by Davide Libenzi.
12 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
15 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
17 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
18 instead of loff_t. Include <fcntl.h>.
19 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
20 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
21 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
22 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
23 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
24 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
25 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
26 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
29 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
34 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
36 2003-12-31 Bruno Haible <bruno@clisp.org>
38 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
39 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
40 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
41 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
42 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
43 0x00 0x20. Don't map U+2500..U+25E3.
45 2004-01-19 Jakub Jelinek <jakub@redhat.com>
47 * posix/regexec.c (get_subexp): Remove bkref_str variable.
48 Extend buffers if needed before comparisons.
49 (get_subexp_sub): Handle clean_state_log_if_needed failure.
51 2004-01-17 Ulrich Drepper <drepper@redhat.com>
53 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
54 atomic_decrement. Patch by Davin McCall.
56 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
58 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
59 (__sim_disabled_exceptions, __sim_round_mode): Declare with
60 hidden data and nocommon.
61 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
62 (__sim_disabled_exceptions, __sim_round_mode): Use
64 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
65 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
67 2004-01-16 Ulrich Drepper <drepper@redhat.com>
69 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
72 2004-01-16 Richard Henderson <rth@redhat.com>
74 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
75 (__libc_enable_secure_internal): Likewise.
77 * elf/dl-load.c: Don't declare __libc_stack_end.
78 * sysdeps/generic/libc-start.c: Likewise.
79 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
80 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
81 * sysdeps/generic/backtrace.c: Likewise.
83 2004-01-15 Ulrich Drepper <drepper@redhat.com>
85 * Versions.def: Add GLIBC_2.3.4.
87 2004-01-15 Richard Henderson <rth@redhat.com>
89 * sysdeps/unix/alpha/sysdep.h: Revert last change.
91 2004-01-15 Richard Henderson <rth@redhat.com>
93 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
95 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
98 2004-01-15 Richard Henderson <rth@redhat.com>
100 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
101 ucontext-offsets.sym.
102 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
103 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
104 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
105 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
106 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
108 2004-01-15 Richard Henderson <rth@redhat.com>
110 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
111 __syscall_, move nop inside, adjust users by +4.
113 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
115 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
116 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
117 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
119 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
120 gen-as-const-headers.
121 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
122 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
123 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
124 * sysdeps/unix/sysv/linux/kernel-features.h
125 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
126 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
127 Declare mcontext_t inline and include altivec state for 64-bit.
128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
129 versions for setcontext, getcontext, and swapcontext.
131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
132 versions for setcontext, getcontext, swapcontext, and makecontext.
133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
134 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
135 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
136 Compatible with GLIBC_2.3.3 release.
137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
138 (__makecontext): Use parm save area instead of compiler_dw to hold
140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
141 (__setcontext): Upgrade to restore Altivec regs and version
143 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
144 Compatible with GLIBC_2.3.3 release.
145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
146 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
147 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
148 Compatible with GLIBC_2.3.3 release.
149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
150 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
152 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
155 versions for setcontext, getcontext, swapcontext, and makecontext.
156 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
157 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
158 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
159 Compatible with GLIBC_2.3.3 release.
160 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
161 (__makecontext): Upgrade to align for Altivec regs and version
163 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
164 Compatible with GLIBC_2.3.3 release.
165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
166 (__setcontext): Upgrade to restore Altivec regs and version
168 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
169 Compatible with GLIBC_2.3.3 release.
170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
171 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
172 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
173 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
175 (_UC_VSCR, _UC_VRSAVE): Define.
176 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
177 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
179 2004-01-15 Ulrich Drepper <drepper@redhat.com>
181 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
183 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
185 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
188 2004-01-15 Ulrich Drepper <drepper@redhat.com>
190 * elf/elf.h: Fix typo in comment.
192 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
193 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
195 * resolv/resolv.h: Add RES_USEBSTRING.
196 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
197 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
198 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
199 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
200 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
201 Otherwise use the two nibble formats.
203 2004-01-14 Ulrich Drepper <drepper@redhat.com>
205 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
206 * config.h.in: Add entry for HAVE_Z_RELRO.
207 * include/libc-symbols.h: Define attribute_relro.
208 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
209 max_capstrlen, and max_dirnamelen definitions.
210 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
211 load_time, start_time, library_path, preloadlist, version_info,
213 Remove rtld_total_time. Make it a local variable. Pass pointer to
214 it to print_statistics. Change print_statistics accordingly.
215 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
216 attribute_relro instead of explicitly assigning variable to the
217 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
218 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
219 _dl_argv, _dl_argv_internal with attribute_relro.
221 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
223 * Makerules (gen-as-const): Don't silently continue on failure.
225 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
227 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
228 rtld_hidden_data_def.
230 2004-01-14 Ulrich Drepper <drepper@redhat.com>
232 * libio/libio.h: Add const to function tables types.
233 * libio/libioP.h: Likewise.
234 * login/utmp-private.h: Likewise.
235 * libio/fileops.c: Add const to jump table variable definition.
236 * libio/genops.c: Likewise.
237 * libio/iofopncook.c: Likewise.
238 * libio/iopopen.c: Likewise.
239 * libio/memstream.c: Likewise.
240 * libio/obprintf.c: Likewise.
241 * libio/oldfileops.c: Likewise.
242 * libio/oldiopopen.c: Likewise.
243 * libio/strops.c: Likewise.
244 * libio/vsnprintf.c: Likewise.
245 * libio/vswprintf.c: Likewise.
246 * libio/wfileops.c: Likewise.
247 * libio/wstrops.c: Likewise.
248 * login/getutent_r.c: Likewise.
249 * login/getutid_r.c Likewise.
250 * login/getutline_r.c: Likewise.
251 * sysdeps/generic/utmp_file.c: Likewise.
253 2004-01-09 Bruno Haible <bruno@clisp.org>
255 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
256 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
257 (_nl_load_domain): Treat major revision 1 like major revision 0.
259 2004-01-11 Bruno Haible <bruno@clisp.org>
261 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
262 width or precision has been seen.
264 2004-01-08 Bruno Haible <bruno@clisp.org>
266 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
267 dependent segment not known to this version of the library, ignore
268 the string pair instead of crashing.
270 2004-01-13 Ulrich Drepper <drepper@redhat.com>
272 * configure.in: Rewrite test to give gcc to clean up after itself.
273 Patch by Greg Schafer.
275 * posix/regex.c: Support crappy compilers and platforms which have
276 problems with alloca.
277 * posix/regex_internal.h: Likewise.
278 Patch by Paolo Bonzini.
280 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
282 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
283 Drop code to support this, it is never true.
284 (build_range_exp) [!_LIBC]: Do not create a range
285 in MBCSET for a single-byte character set.
286 (build_range_exp) [_LIBC]: Do not create a range
287 in MBCSET for a single-byte character set without
289 (init_dfa): Do not conditionalize on _LIBC, it
290 just makes the code less clear.
291 (parse_bracket_exp): Use NON_MATCH variable in
292 addition to "mbcset->non_match", not as an
294 (build_charclass_op): rename NOT parameter to
295 NON_MATCH, use it instead of declaring a variable.
296 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
297 if the character set is single-byte.
299 2004-01-14 Jakub Jelinek <jakub@redhat.com>
301 * posix/regcomp.c (peek_token_bracket): Check remaining
302 string length before re_string_peek_byte (x, 1).
303 (parse_bracket_symbol): Likewise.
304 * posix/regex_internal.h (re_string_is_single_byte_char): Return
305 true at last byte in the string.
306 * posix/bug-regex22.c (main): Add new test.
308 2004-01-13 Ulrich Drepper <drepper@redhat.com>
310 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
313 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
315 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
316 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
317 rtld_hidden_def and move into .data.rel.ro section.
318 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
320 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
323 2004-01-13 Richard Henderson <rth@redhat.com>
325 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
327 2004-01-13 Ulrich Drepper <drepper@redhat.com>
329 * sysdeps/unix/sysv/linux/dl-execstack.c
330 (_dl_make_stack_executable): Move common code in front. Use
333 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
334 challenge for caller.
335 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
336 member in rtld_global appropriately.
337 * elf/dl-support.c: Likewise.
338 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
339 Pass it on to the changed function.
340 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
342 2004-01-13 Richard Henderson <rth@redhat.com>
344 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
345 Cast old up to uint64_t before back down to inner width.
346 (__arch_compare_and_exchange_xxx_16_int): Likewise.
347 (__arch_compare_and_exchange_xxx_32_int): Likewise.
348 (__arch_compare_and_exchange_xxx_64_int): Likewise.
349 (__arch_compare_and_exchange_val_8_int): Cast result to
350 the type of the memory.
351 (__arch_compare_and_exchange_val_16_int): Likewise.
352 (__arch_compare_and_exchange_val_32_int): Likewise.
353 (__arch_compare_and_exchange_val_64_int): Likewise.
354 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
355 (atomic_compare_and_exchange_bool_rel): Likewise.
357 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
358 based on HAVE___THREAD instead of USE_TLS.
360 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
361 (__adjtimex_tv64): Use it.
363 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
364 to void* rather than directly to the compatibility structure type.
365 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
367 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
370 2004-01-13 Richard Henderson <rth@redhat.com>
372 * Versions.def (libm): Add GLIBC_2.3.3.
373 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
374 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
375 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
376 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
377 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
378 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
379 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
380 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
381 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
382 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
383 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
384 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
385 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
386 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
387 functions for gcc 3.3.
389 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
390 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
391 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
392 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
393 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
394 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
395 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
396 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
397 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
398 weak_alias if the function name has been #defined.
400 * math/cabsf.c: Move ...
401 * sysdeps/generic/cabsf.c: ... here.
402 * math/cargf.c: Move ...
403 * sysdeps/generic/cargf.c: ... here.
404 * math/cimagf.c: Move ...
405 * sysdeps/generic/cimagf.c: ... here.
406 * math/conjf.c: Move ...
407 * sysdeps/generic/conjf.c: ... here.
408 * math/crealf.c: Move ...
409 * sysdeps/generic/crealf.c: ... here.
411 2004-01-13 Ulrich Drepper <drepper@redhat.com>
413 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
414 LDFLAGS.so and LDFLAGS-rtld.
415 (+link): Add relro-LDFLAGS.
416 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
417 __libc_thread_subfreeres sections after .jcr section.
418 * config.make.in: Add have-z-relro.
419 * configure.in: Add check for -z relro option.
420 * include/link.h (struct link_map): Add relro_addr and relro_size
422 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
423 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
424 part of loaded segments read-only.
425 * elf/elf.h: Define PT_GNU_RELRO.
426 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
427 (dl_main): Recognize PT_GNU_RELRO of the application. Call
428 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
431 2004-01-12 Jakub Jelinek <jakub@redhat.com>
433 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
435 2004-01-11 Andreas Jaeger <aj@suse.de>
437 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
439 2004-01-10 Andreas Jaeger <aj@suse.de>
441 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
442 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
443 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
444 * sysdeps/x86_64/strcspn.S: Likewise.
445 * sysdeps/x86_64/strspn.S: Likewise.
447 2004-01-08 Jakub Jelinek <jakub@redhat.com>
449 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
450 right before syscall and cfi_startproc before PSEUDO_END.
451 Clear %rbp in thread_start.
453 2004-01-05 Jakub Jelinek <jakub@redhat.com>
455 * posix/regcomp.c (regcomp): Fix comment typo.
456 (regfree): Free preg->translate, clear buffer, allocated, fastmap
457 and translate fields.
459 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
460 argument to unsigned RE_TRANSLATE_TYPE.
461 * posix/regex_internal.h (re_string_t): Change trans type to
462 unsigned RE_TRANSLATE_TYPE.
463 * posix/regex_internal.c (re_string_construct_common): Cast
464 trans to unsigned RE_TRANSLATE_TYPE.
465 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
466 path if pstr->trans. Never translate the character through
468 * posix/Makefile (tests): Add bug-regex22.
469 (bug-regex22-ENV): Set.
470 * posix/bug-regex22.c: New test.
472 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
474 * posix/regex_internal.c (re_node_set_add_intersect,
475 re_node_set_merge): Rewritten.
476 (re_node_set_insert, re_node_set_remove_at):
477 Avoid memmove, we know what direction we should copy and that we
478 are copying 32-bit words.
479 (re_node_set_compare): Iterate backwards.
481 2003-12-30 Paul Eggert <eggert@twinsun.com>
483 * time/mktime.c (verify): New macro.
484 (time_t_is_integer, twos_complement_arithmetic,
485 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
486 C99_integer_division): Document these longstanding assumptions in the
487 code, and verify them at compile-time.
489 2004-01-02 Jakub Jelinek <jakub@redhat.com>
491 * posix/regex_internal.h (re_match_context_t): Add dfa member.
492 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
493 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
494 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
495 sift_states_backward, update_cur_sifted_state, check_dst_limits,
496 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
497 check_subexp_matching_top, transit_state_sb, transit_state_mb,
498 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
499 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
500 Remove dfa parameter. Get dfa from mctx. Adjust callers.
501 (re_search_internal): Initialize mctx.dfa.
503 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
505 * posix/regex_internal.h (re_dfa_t): Add syntax field.
506 * posix/regcomp.c (parse): Initialize dfa->syntax.
507 * posix/regexec.c (acquire_init_state_context,
508 prune_impossible_nodes, check_matching, check_halt_state_context,
509 proceed_next_node, sift_states_iter_mb, sift_states_backward,
510 update_cur_sifted_state, sift_states_bkref, transit_state,
511 transit_state_sb, transit_state_mb, transit_state_bkref,
512 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
513 build_trtable): Remove preg argument, add dfa argument instead
514 and remove dfa = preg->buffer initialization in the body.
516 (check_node_accept_bytes, group_nodes_into_DFAstates,
517 check_node_accept): Likewise. Use dfa->syntax instead of
519 (check_arrival_add_next_nodes): Remove preg argument.
521 * posix/regex_internal.h (re_match_context_t): Make input
522 re_string_t instead of a pointer to it.
523 * posix/regex_internal.c (re_string_construct_common): Don't clear
525 (re_string_construct): ... but only here.
526 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
527 initialize fields to zero.
528 (re_search_internal): Move input into mctx.input.
529 (acquire_init_state_context, check_matching,
530 check_halt_state_context, proceed_next_node,
531 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
532 transit_state, transit_state_sb, transit_state_mb,
533 transit_state_bkref, get_subexp, check_arrival,
534 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
535 Change mctx->input into &mctx->input and mctx->input->field into
538 2004-01-02 Jakub Jelinek <jakub@redhat.com>
539 Paolo Bonzini <bonzini@gnu.org>
541 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
542 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
543 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
544 (re_string_context_at, re_string_reconstruct): Remove last argument.
545 * posix/regex_internal.c (re_string_allocate): Initialize
546 pstr->word_char and pstr->word_ops_used.
547 (re_string_context_at): Remove newline_anchor argument.
548 Use input->newline_anchor instead, swap && conditions.
549 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
550 Use input->word_char bitmap instead of IS_WORD_CHAR.
551 (re_string_reconstruct): Likewise.
552 Adjust re_string_context_at caller.
553 * posix/regexec.c (acquire_init_state_context,
554 check_halt_state_context, transit_state, transit_state_sb,
555 transit_state_mb, transit_state_bkref, check_arrival,
556 check_node_accept): Adjust re_string_context_at and
557 re_string_reconstruct callers.
558 (re_search_internal): Likewise. Set input.newline_anchor.
559 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
560 * posix/regcomp.c (init_word_char): Change return type to void.
561 Set dfa->word_ops_used.
562 (free_dfa_content): Don't free dfa->word_char.
563 (parse_expression): Remove error handling for init_word_char.
565 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
567 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
570 * posix/regex_internal.c (re_node_set_insert): Rewrite.
572 2004-01-01 Ulrich Drepper <drepper@redhat.com>
574 * posix/getconf.c: Update copyright year.
575 * nss/getent.c: Likewise.
576 * nscd/nscd_nischeck.c: Likewise.
577 * iconv/iconvconfig.c: Likewise.
578 * iconv/iconv_prog.c: Likewise.
579 * elf/ldconfig.c: Likewise.
580 * catgets/gencat.c: Likewise.
581 * csu/version.c: Likewise.
582 * elf/ldd.bash.in: Likewise.
583 * elf/sprof.c (print_version): Likewise.
584 * locale/programs/locale.c: Likewise.
585 * locale/programs/localedef.c: Likewise.
586 * nscd/nscd.c (print_version): Likewise.
587 * debug/xtrace.sh: Likewise.
588 * malloc/memusage.sh: Likewise.
589 * malloc/mtrace.pl: Likewise.
591 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
593 * stdlib/strfmon.c: Make formatting of left-justified currency
594 values match the the POSIX standard. When using format string
595 "[%-14#5.4n]" to print -123.45, the result should be
596 "[-$ 123.4500 ]", not "[-$123.4500 ]".
598 2004-01-01 Andreas Jaeger <aj@suse.de>
600 * resolv/Makefile (generated): New.
602 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
604 * CONFORMANCE: Update.
606 2003-12-30 Paul Eggert <eggert@twinsun.com>
608 * time/mktime.c: (my_mktime_localtime_r):
609 Remove. All uses changed to __localtime_r.
610 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
611 get its implementation.
612 Fix compile-command to allow for TIME_R_POSIX.
614 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
615 Remove. All uses changed to __localtime_r and __gmtime_r.
616 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
617 Include "time_r.h" to get their implementations.
619 * time/timegm.c: Allow use in GNU applications outside glibc.
620 [defined HAVE_CONFIG_H]: Include <config.h>.
621 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
622 Define __gmtime_r, and declare __mktime_internal.
623 (timegm): Define via a prototype, since we can safely assume C89 now.
625 * time/mktime.c (check_result): Use less-confusing report format.
626 "long" -> "long int", as per usual GNU style.
628 Don't loop if the iteration overflows time_t.
629 Allow a negative step in the iteration.
631 * time/mktime.c: Assume freestanding C89 or better.
632 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
634 (__P): Remove; not used.
635 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
636 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
637 Prototypes use const * where appropriate.
638 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
639 which caused the testing code to dump core on some hosts.
641 2003-12-31 Ulrich Drepper <drepper@redhat.com>
643 * locale/setlocale.c (setlocale): Avoid duplicating locale names
644 if we can reuse old strings.
646 * inet/rcmd.c: Provide better error message in case of unknown
647 host. Remove USE_IN_LIBIO.
649 * nscd/nscd.init: Updated version, more conforming with current
652 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
653 /var/run/nscd directory.
654 (_PATH_NSCDSOCKET): Likewise.
656 * test-skeleton.c (timeout_handler): Fix error message.
658 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
661 2003-12-30 Jakub Jelinek <jakub@redhat.com>
663 * posix/regexec.c (get_subexp): Only set bkref_str after the first
664 loop, use buf + bkref_str_off in the loop instead.
665 * posix/bug-regex11.c (tests): Add 3 new tests.
667 * posix/regexec.c (clean_state_log_if_need): Rename to...
668 (clean_state_log_if_needed): ...this.
669 (transit_state_mb, get_subexp_sub): Adjust callers.
671 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
672 failed. Reported by Steve Grubb.
674 2003-12-29 Ulrich Drepper <drepper@redhat.com>
676 * elf/elf.h: Add a few definitions from Solaris 9.
678 2003-12-29 Andreas Schwab <schwab@suse.de>
680 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
681 $(fno_unit_at_a_time) to avoid reordering assembler output.
683 2003-12-29 Jakub Jelinek <jakub@redhat.com>
685 * posix/regexec.c (re_copy_regs): Revert comment change.
686 Avoid memory leak if realloc fails.
687 (proceed_next_node): Return -2 if re_node_set_insert fails.
688 Return -2 if push_fail_stack fails.
689 (push_fail_stack): Change fs->alloc only after successful realloc.
690 (pop_fail_stack): Formatting.
691 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
692 (check_arrival_add_next_nodes): Merge identical statements
695 * signal/Makefile (tests): Add tst-raise.
696 * signal/tst-raise.c: New test.
698 2003-12-28 Ulrich Drepper <drepper@redhat.com>
700 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
702 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
703 (push_fail_stack): Add missing check for failed memory allocation.
705 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
706 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
709 2003-12-28 Andreas Jaeger <aj@suse.de>
711 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
712 overflow for 0 as argument. Raise Invalid exception for negative args.
713 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
714 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
715 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
716 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
717 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
718 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
719 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
720 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
721 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
722 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
723 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
725 * math/libm-test.inc (yn_test): Expect invalid exception for
730 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
731 execptions for exp(NaN).
733 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
735 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
736 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
737 among the tokens, rather than among the epsilon-transiting nodes.
738 (re_token_t): Add the opt_subexp flag.
739 * posix/regcomp.c (optimize_utf8, calc_first,
740 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
741 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
742 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
743 OP_DUP_ASTERISK and marking optional subexpressions
744 as such using mark_opt_subexp.
745 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
746 and pass it to update_regs.
747 (update_regs): Use the PREV_INDEX_MATCH parameter, together
748 with the opt_subexp flag, in order to discard a final empty
749 match of a repeated subexpression.
750 * posix/BOOST.tests: Adjust test vectors.
751 * posix/PCRE.tests: Likewise.
752 * posix/rxspencer/tests: Likewise.
754 2000-05-22 Jakub Jelinek <jakub@redhat.com>
756 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
757 with omitted middle operand.
759 2003-12-22 Jakub Jelinek <jakub@redhat.com>
761 * posix/regcomp.c: Remove C99-ism.
762 * posix/tst-rxspencer.c: Likewise.
763 Based on a patch by Alex Davis <alex14641@yahoo.com>.
765 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
767 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
768 (re_string_allocate, re_string_construct, re_string_reconstruct,
769 re_string_realloc_buffers, build_wcs_buffer,
770 build_wcs_upper_buffer, build_upper_buffer,
771 re_string_translate_buffer, re_string_destruct,
772 re_string_elem_size_at, re_string_char_size_at,
773 re_string_wchar_at, re_string_context_at,
774 re_node_set_alloc, re_node_set_init_1
775 re_node_set_init_2, re_node_set_init_copy,
776 re_node_set_add_intersect, re_node_set_init_union,
777 re_node_set_merge, re_node_set_insert
778 re_node_set_compare, re_node_set_contains
779 re_node_set_remove_at, re_dfa_add_node,
780 re_acquire_state, re_acquire_state_context,
781 free_state): Add internal_function to declaration.
783 * posix/regexec.c (match_ctx_init, match_ctx_clean,
784 match_ctx_free, match_ctx_free_subtops,
785 match_ctx_add_entry, search_cur_bkref_entry,
786 match_ctx_clear_flag, match_ctx_add_subtop,
787 match_ctx_add_sublast, sift_ctx_init,
788 re_search_internal, re_search_2_stub, re_search_stub,
789 re_copy_regs, acquire_init_state_context,
790 prune_impossible_nodes, check_matching,
791 check_halt_node_context, check_halt_state_context
792 update_regs, proceed_next_node, push_fail_stack,
793 pop_fail_stack, set_regs, free_fail_stack_return,
794 sift_states_iter_mb, sift_states_backward
795 update_cur_sifted_state, add_epsilon_src_nodes,
796 sub_epsilon_src_nodes, check_dst_limits,
797 check_dst_limits_calc_pos, check_subexp_limits,
798 sift_states_bkref, clean_state_log_if_need,
799 merge_state_array, transit_state,
800 check_subexp_matching_top, transit_state_sb,
801 transit_state_mb, transit_state_bkref,
802 get_subexp, get_subexp_sub, find_subexp_node,
803 check_arrival, check_arrival_add_next_nodes,
804 find_collation_sequence_value, check_arrival_expand_ecl,
805 check_arrival_expand_ecl_sub, expand_bkref_cache,
806 build_trtable, check_node_accept_bytes, extend_buffers,
807 group_nodes_into_DFAstates, check_node_accept): Likewise.
809 * posix/regex_internal.c (re_string_construct_common,
810 re_string_skip_chars, create_newstate_common,
811 register_state, create_ci_newstate, create_cd_newstate,
812 calc_state_hash): Likewise.
813 (re_string_peek_byte_case, re_fetch_byte_case): Change
814 declaration from ANSI to K&R.
816 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
818 * posix/regexec.c (build_trtable): Don't allocate the trtable
819 until state->word_trtable is known. Don't hardcode UINT_BITS
820 iterations on each bitset item.
822 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
824 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
825 Initialize REF before passing it to _dl_lookup_symbol.
827 2003-12-21 Roland McGrath <roland@frob.com>
829 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
831 2003-12-21 Jakub Jelinek <jakub@redhat.com>
833 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
835 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
836 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
837 * posix/bug-regex19.c (tests): Add new tests.
839 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
841 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
842 after checking syntax. Optimize.
843 (calc_first): Fix comment.
844 * posix/bug-regex13.c (tests): Add new tests.
846 2003-12-21 Roland McGrath <roland@redhat.com>
848 * manual/arith.texi (Parsing of Integers): Typo fix.
850 2003-12-20 Roland McGrath <roland@frob.com>
852 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
853 add missing dereference of IFREQS before counting loop.
855 2003-12-21 Andreas Schwab <schwab@suse.de>
857 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
860 2003-12-20 Ulrich Drepper <drepper@redhat.com>
862 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
864 2003-12-18 Ulrich Drepper <drepper@redhat.com>
866 * stdio-common/printf_fp.c: Add support to use alternative decimal
868 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
869 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
871 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
873 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
874 reload PIC if we need to call __syscall_error, cleanup asm.
876 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
878 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
879 FE_ALL_EXCEPT before complimenting.
880 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
881 and gcc '+r' constraint.
882 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
883 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
884 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
885 exception bits, OR with envp, pass to fesetenv.
886 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
887 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
888 triggered by M_PI/69.69 converted to single precision.
889 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
890 bits not raised exception bits.
892 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
893 correct build strings.
894 * sysdeps/hppa/dl-fptr.h: New file.
895 * sysdeps/hppa/dl-fptr.c: Removed.
896 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
897 remove const qualifier for map.
898 (_dl_function_address): Removed.
899 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
900 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
901 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
902 DL_DT_FINI_ADDRESS use the previous two macros.
904 2003-12-17 Jakub Jelinek <jakub@redhat.com>
906 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
907 (tr_memalignhook): New function.
908 (mtrace): Register tr_memalignhook.
909 (muntrace): Deregister tr_memalignhook.
910 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
911 call it directly instead of memalign_internal.
913 2003-12-17 Ulrich Drepper <drepper@redhat.com>
915 * misc/mntent_r.c: Change encoding to match recently changed decoder.
916 Patch by Alexander Achenbach <xela@slit.de>.
918 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
920 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
923 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
925 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
926 conditional to include typedef elf_vrreg_t.
928 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
930 * posix/regexec.c (re_search_internal): Limit search to the
931 beginning of the buffer if the initial states are empty for
932 contexts that do not include CONTEXT_BEGBUF or, if
933 !preg->newline_anchor, that do not include any one of
934 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
936 2003-12-17 Andreas Jaeger <aj@suse.de>
938 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
939 Kevin Pedretti <pedretti@ieee.org>.
941 2003-12-17 Ulrich Drepper <drepper@redhat.com>
943 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
944 removes the visibility attributes which might be defined earlier
945 for some gcc versions. Instead spell out what strong_alias does
948 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
950 * posix/regex_internal.h: Make sure the regex code compile
951 with non-GCC compilers by hiding attributes.
953 2003-12-16 Jakub Jelinek <jakub@redhat.com>
954 Paolo Bonzini <bonzini@gnu.org>
956 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
957 dests_ch items that are empty.
959 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
961 * posix/regexec.c (check_arrival): Remove duplicate test.
963 2003-12-15 Ulrich Drepper <drepper@redhat.com>
965 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
966 * posix/regex_internal.c: Likewise.
967 * posix/regexec.c: Likewise.
968 Patch by Paolo Bonzini.
970 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
972 * posix/regex_internal.c (re_acquire_state_context):
973 Compare the node sets after all the other comparisons.
975 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
977 * posix/regexec.c (find_subexp_node, check_arrival,
978 check_arrival_add_next_nodes, check_arrival_expand_ecl,
979 check_arrival_expand_ecl_sub, expand_bkref_cache):
980 Rename the FL_OPEN parameter to TYPE, which is either
981 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
983 2003-12-12 Andreas Jaeger <aj@suse.de>
985 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
988 2003-12-11 Ulrich Drepper <drepper@redhat.com>
990 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
991 There might always be processes which have no vDSO.
992 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
993 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
995 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
997 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
1000 2003-12-01 Jes Sorensen <jes@wildopensource.com>
1002 * rt/tst-clock.c (do_test): Print message when skipping
1003 CLOCK_PROCESS_CPUTIME_ID test.
1005 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
1006 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
1008 2003-12-02 David Mosberger <davidm@hpl.hp.com>
1010 * sysdeps/ia64/elf/initfini.c: Add unwind info.
1012 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
1014 (elf_machine_dynamic): Mark with attributes "unused" and "const".
1015 (elf_machine_runtime_setup): Likewise.
1017 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
1018 attribute "always_inline".
1019 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
1022 * configure.in: Check whether compiler has libunwind support.
1023 * config.make.in (have-cc-with-libunwind): New variable.
1024 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
1025 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
1028 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1030 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
1031 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
1032 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
1035 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
1036 instead of DO_CALL().
1038 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
1041 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
1042 to take advantage of DO_CALL() macro.
1043 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1044 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1046 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
1047 program header. On ia64, the check failed previously because
1048 there are two program headers.
1050 2003-12-10 Andreas Jaeger <aj@suse.de>
1051 Ruediger Oertel <ro@suse.de>
1053 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
1055 2003-12-07 Ulrich Drepper <drepper@redhat.com>
1057 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
1058 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1059 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1060 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1061 * sysdeps/generic/s_nexttowardf.c: Likewise.
1062 * math/Makefile (tests): Add bug-nexttoward.
1063 * math/bug-nexttoward.c: New file.
1065 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
1066 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1067 * math/bug-nextafter.c (main): Add tests for overflow and negative
1070 2003-12-06 Ulrich Drepper <drepper@redhat.com>
1072 * math/Makefile (tests): Add bug-nextafter.
1073 * math/bug-nextafter.c: New file.
1074 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
1075 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1076 * math/libm-test.inc (nextafter_test): Add test for overflow after
1079 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
1081 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
1083 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1085 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1087 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1089 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1090 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1091 (END): Add cfi_endproc directive.
1092 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1093 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1094 cfi_startproc and cfi_endproc directive.
1095 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1096 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1097 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1098 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1099 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1101 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1103 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1104 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1105 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1106 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1107 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1108 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1109 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1110 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1111 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1113 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1115 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1116 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1117 make backchain terminate.
1118 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1120 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1121 (unwind_backtrace, unwind_getip): New variables.
1122 (init, __backchain_backtrace, backtrace_helper): New functions.
1123 (__backtrace): Use unwind info for backtrace instead of backchain
1124 walking if the unwind functions can be found.
1125 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1127 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1129 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1130 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1131 (elf_prstatus32, elf_prpsinfo32): New structures.
1132 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1134 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1135 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1137 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
1139 * stdlib/strfmon.c: Correct formatting of international currency
1140 values. The international currency formatting should prefer the
1141 int_* values if they are set for a locale, and use the domestic
1142 values if the int_* values are unset.
1144 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1146 * posix/Makefile (distribute): Add BOOST.tests.
1147 (tests): Add tst-boost, depend on tst-boost-mem.
1148 (generated): Add tst-boost-mem and tst-boost.mtrace.
1149 (tst-boost-ARGS, tst-boost-ENV): Set.
1150 ($(objpfx)tst-boost-mem): New.
1151 * posix/tst-boost.c: New test.
1152 * posix/BOOST.tests: New file.
1154 * posix/Makefile (distribute): Add PCRE.tests.
1155 (tests): Add tst-pcre, depend on tst-pcre-mem.
1156 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1157 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1158 ($(objpfx)tst-pcre-mem): New.
1159 * posix/tst-pcre.c: New test.
1160 * posix/PCRE.tests: New file.
1162 2003-12-02 Jakub Jelinek <jakub@redhat.com>
1164 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1166 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1167 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1169 2003-12-03 Ulrich Drepper <drepper@redhat.com>
1171 * locale/programs/locarchive.c (enlarge_archive): Print size info
1172 only in verbose mode.
1174 * locale/iso-3166.def: Three letter code of Romania changed.
1176 2003-12-02 Roland McGrath <roland@redhat.com>
1178 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1179 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1181 2003-11-30 Andreas Jaeger <aj@suse.de>
1183 * config.make.in (fno-unit-at-a-time): Define.
1185 * configure.in: Add test for -fno-unit-at-a-time.
1188 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1189 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1191 2003-12-01 Automatic
1193 * version.h (VERSION): Bump to 2.3.3.
1195 2003-11-30 Andreas Jaeger <aj@suse.de>
1197 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1198 decrease stack usage.
1200 2003-11-30 Andreas Schwab <schwab@suse.de>
1202 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1203 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1205 2003-11-29 Ulrich Drepper <drepper@redhat.com>
1207 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1208 recognize \134 as well.
1210 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1212 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1214 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1216 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1218 (struct ia64_fpreg): New definition.
1220 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1222 (ELF_NGREG): New #define.
1223 (ELF_NFPREG): Likewise.
1224 (elf_greg_t): New type.
1225 (elf_gregset_t): Likewise.
1226 (elf_fpreg_t): Likewise.
1227 (elf_fpregset_t): Likewise.
1229 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1231 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1233 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
1234 (pt_all_user_regs): New type.
1236 2003-10-10 Simon Josefsson <jas@extundo.com>
1238 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1239 strchrnul.h, strndup.h (from gnulib).
1240 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1242 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1243 Autoconf manual version.
1244 * argp/argp.h: Map __restrict to restrict or empty string when
1245 necessary, copied verbatim from posix/regex.h.
1247 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1249 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1250 addition to c++-types-$(base-machine)-$(config-os).data.
1251 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1252 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1254 2003-11-28 Ulrich Drepper <drepper@redhat.com>
1256 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1258 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1259 Reported by Andries.Brouwer@cwi.nl.
1261 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1262 to compensate other setup.
1264 2003-11-27 Andreas Jaeger <aj@suse.de>
1266 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1268 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1269 Reported by "Willus" <etc231etc231@willus.com>.
1271 2003-11-27 Michael Matz <matz@suse.de>
1273 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1276 2003-11-28 Jakub Jelinek <jakub@redhat.com>
1278 * posix/regexec.c (acquire_init_state_context): Make inline.
1279 Add always_inline attribute.
1280 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1281 into if (dfa->nbackref).
1282 (sift_states_backward): Fix comment.
1283 (transit_state): Add BE macro. Move if (next_state->has_backref)
1284 into if (dfa->nbackref && next_state). Don't check for next_state
1286 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1288 (parse_expression): Only call init_word_char if word context will be
1291 * posix/bug-regex11.c (tests): Add new tests.
1293 * posix/tst-regex.c: Include getopt.h.
1294 (timing): New variable.
1295 (main): Set timing to 1 if --timing argument is present.
1297 (run_test, run_test_backwards): Handle timing.
1299 2003-11-27 Jakub Jelinek <jakub@redhat.com>
1301 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1302 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1303 offsets_needed fields. Change icase, is_utf8 and map_notascii
1304 type from int bitfield to unsigned char.
1305 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1306 (build_wcs_upper_buffer): Change prototype to return int.
1307 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1308 defines, add prototypes.
1309 * posix/regex_internal.c (re_string_allocate): Don't initialize
1310 stop here. Don't initialize mbs_case. Set valid_raw_len.
1311 Use mbs_allocated instead of MBS_* macros.
1312 (re_string_construct): Don't initialize stop and valid_len here.
1313 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1314 macros. Reallocate buffers if build_wcs_upper_buffer converted
1315 too few bytes. Set valid_len to bufs_len only for single byte
1316 no translation and set in that case valid_raw_len as well.
1317 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1318 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1320 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1322 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1323 after it. Set valid_raw_len. Don't set mbs_case.
1324 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1325 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1326 before mbrtowc instead of after it. If upper case character
1327 uses different number of bytes than lower case, goto to the
1328 slow path. Don't call towupper unnecessarily twice. Set
1329 valid_raw_len as well. Handle in the slow path the case if
1330 lower and upper case use different number of characters.
1332 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
1333 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
1335 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
1337 (re_string_reconstruct): Use raw_len/raw_stop to initialize
1338 len/stop. Clear valid_raw_len and offsets_needed when clearing
1339 valid_len. Use mbs_allocated instead of MBS_* macros.
1340 Check original offset against valid_raw_len instead of valid_len.
1341 Remove mbs_case handling. Adjust valid_raw_len together with
1342 valid_len. If is_utf8 and looking for tip context, apply
1343 pstr->trans first. If buffers start with partial multi-byte
1344 character, initialize mbs array as well if mbs_allocated.
1345 Check return value of build_wcs_upper_buffer.
1346 (re_string_peek_byte_case): New function.
1347 (re_string_fetch_byte_case): New function.
1348 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
1349 Don't free mbs_case. Free offsets.
1350 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
1352 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
1353 as well. Use valid_raw_len instead of valid_len when looking
1354 through fastmap. Adjust registers through input.offsets.
1355 (extend_buffers): Allow build_wcs_upper_buffer to fail.
1356 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
1359 2003-11-26 Jakub Jelinek <jakub@redhat.com>
1361 * posix/regexec.c (check_subexp_limits): Only check close
1362 subexpression limitation if one is found. Formatting.
1363 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
1365 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
1368 2003-11-26 Ulrich Drepper <drepper@redhat.com>
1370 * sysdeps/unix/sysv/linux/kernel-features.h
1371 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
1372 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
1373 if __ASSUME_PROT_GROWSUPDOWN is defined.
1375 2003-11-26 Andreas Jaeger <aj@suse.de>
1377 * sysdeps/unix/sysv/linux/dl-execstack.c
1378 (_dl_make_stack_executable): Set dl_stack_flags always for
1381 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
1383 * locale/program/ld-monetary.c: Only check the first three
1384 characters in int_curr_symbol against ISO-4217, to make the
1385 separator character used by a locale independent of the content
1387 * locale/iso-4217.def: Remove the space character from all
1388 currency values to get the new test code in ld-monetary.c working.
1390 2003-11-21 David Mosberger <davidm@hpl.hp.com>
1392 * elf/soinit.c (_fini): Put _fini() in .init_array section if
1393 HAVE_INITFINI_ARRAY is defined.
1395 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1397 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
1398 Define it appropriately after last change. Use it where __sqrtl
1401 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
1403 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
1404 sqrt for gcc 3.3 and above.
1406 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1408 * posix/runptests.c (main): Make errors fatal.
1409 * posix/PTESTS: One test in GA135 and GA136 check functionality
1410 which seems not guaranteed.
1412 2003-11-25 Jakub Jelinek <jakub@redhat.com>
1414 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
1415 returned REG_NOMATCH, set match_last to -1. Don't initialize
1416 pmatch[0] needlessly. Fix comment.
1417 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
1418 (set_regs): Fix comment.
1419 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
1420 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
1421 (build_charclass_op): Set has_plural_match if adding both
1422 SIMPLE_BRACKET and COMPLEX_BRACKET.
1423 * posix/bug-regex11.c (tests): Fix register values for one commented
1424 out test. Add new tests.
1426 * posix/regex_internal.c (re_string_allocate): Make sure init_len
1427 is at least dfa->mb_cur_max.
1428 (re_string_reconstruct): If is_utf8, don't fall back into
1429 re_string_skip_chars just because idx points into a middle of
1430 valid UTF-8 character. Instead, set the wcs bytes which correspond
1431 to the partial character bytes to WEOF.
1432 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
1433 instead of dfa->nodes_len + 1 state_log entries initially.
1434 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
1437 2003-11-24 Jakub Jelinek <jakub@redhat.com>
1439 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
1441 (re_dfa_t): Add sb_char field.
1442 (bitset_mask): New function.
1443 * posix/regcomp.c (free_dfa_content): Free sb_char.
1444 (init_dfa): Don't initialize word_char unnecessarily.
1446 (duplicate_node): Don't duplicate !word_char CHARACTERs with
1447 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
1448 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
1449 (duplicate_node_closure): Handle clone_dest == -1 from
1451 (peek_token): Initialize word_char bit.
1452 (parse_expression, parse_dup_op): Add comments.
1453 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
1454 starting bytes here at the beginning. Mask off the bits right
1455 before creating SIMPLE_BRACKET.
1456 (build_charclass_op): Likewise.
1457 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
1458 set accept bits for single-byte characters.
1459 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
1460 being single byte encoded and the rest multi-byte.
1461 * posix/bug-regex19.c (tests): Add new tests.
1462 (do_mb_tests): Initialize t to *test.
1463 (main): Fail even on do_mb_tests errors.
1465 2003-11-23 Ulrich Drepper <drepper@redhat.com>
1467 * posix/regexec.c: Correct several memory allocation problems.
1469 * posix/regex_internal.c: Likewise.
1470 * posix/regcomp.c: Likewise.
1472 * posix/regexec.c: Add const in a number of places.
1473 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
1474 debugging. Its value isn't important.
1476 2003-11-22 Ulrich Drepper <drepper@redhat.com>
1478 * posix/PTESTS: Fix first test of GA143.
1480 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1482 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
1485 * locale/programs/charmap.c (charmap_read): If encoding is found
1486 not ASCII compatible, set enc_not_ascii_compatible.
1487 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
1488 * locale/programs/ld-ctype.c (ctype_startup): If
1489 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
1491 2003-11-22 Jakub Jelinek <jakub@redhat.com>
1493 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
1494 if !__libc_enable_secure.
1496 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
1498 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
1499 (dl_main): Set GL(dl_use_load_bias) default.
1500 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
1501 Add EXTRA_LD_ENVVARS_13.
1502 * elf/dl-support.c (_dl_use_load_bias): New variable.
1503 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
1504 with GL(dl_use_load_bias).
1505 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
1507 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
1508 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
1509 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
1510 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
1511 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
1513 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1515 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
1517 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
1518 pointer. Adjust callers.
1520 * posix/regcomp.c (fetch_token): Change interface to match
1521 peek_token. This avoids some copying and reduces code size.
1523 2003-11-21 Jakub Jelinek <jakub@redhat.com>
1525 * posix/bug-regex19.c (tests): Add more tests.
1527 * posix/bug-regex11.c: And one more commented out test.
1529 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
1530 tests multiple times unnecessarily.
1532 * posix/bug-regex19.c (BRE, ERE): Define.
1533 (tests): Add many new tests, remove UTF-8 ones.
1534 (do_one_test, do_mb_tests): New functions.
1535 (main): Rewritten using do_one_test and do_mb_tests.
1537 2003-11-20 Ulrich Drepper <drepper@redhat.com>
1539 * posix/PTESTS: Fix first test in GA143.
1541 2003-11-20 Jakub Jelinek <jakub@redhat.com>
1543 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
1545 * posix/regex_internal.c (create_newstate_common, free_state):
1546 Don't free trtable_search.
1547 * posix/regexec.c (check_matching): Remove fl_search argument.
1548 (transit_state_sb): Likewise. #ifdef out as unused.
1549 (build_trtable): Remove fl_search argument. Set state->word_trtable
1550 and state->trtable. Build separate word and non-word tables if
1551 multi-byte and they differ for some character.
1552 (transit_state): Remove fl_search argument. Don't update
1553 state->trtable here. Handle state->word_trtable.
1554 #ifdef out unused call to transit_state_sb.
1555 (re_search_internal): Update check_matching caller.
1556 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
1557 bitmask for multi-byte locales.
1558 * posix/bug-regex19.c (tests): Enable some commented out tests, add
1560 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
1561 multi-byte. Don't run identical multi-byte tests multiple times
1563 (main): Check setlocale return value.
1564 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
1565 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
1566 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
1567 here, without --utf8 argument but with MALLOC_TRACE.
1569 2003-11-19 Jakub Jelinek <jakub@redhat.com>
1571 * posix/regexec.c (extend_buffers): Don't allocate
1572 twice as big state_log as needed. Don't modify pstr->valid_len
1573 for mb_cur_max == 1 !icase !trans.
1575 * posix/regcomp.c (free_bin_tree): Removed.
1576 (create_tree): Add dfa argument. Don't call re_malloc for
1577 each tree, instead allocate from str_tree_storage.
1578 (re_dfa_add_tree_node): New function.
1579 (free_dfa_content): Handle freeing if dfa->nodes == NULL
1580 or dfa->state_table == NULL.
1581 (re_compile_internal): Call free_dfa_content if init_dfa
1582 fails. Call free_workarea_compile, re_string_destruct
1583 and free_dfa_content for most of the other failure paths.
1584 (init_dfa): Initialize str_tree_storage_idx.
1585 Don't clear any fields on allocation failure.
1586 (free_workarea_compile): Free str_tree_storage chunks
1587 instead of free_bin_tree (dfa->str_tree).
1588 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
1589 followed by create_tree. Add dfa argument to remaining
1590 create_tree calls. Remove new_idx variable. Remove calls
1592 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
1593 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
1594 (duplicate_tree): Remove calls to free_bin_tree, add dfa
1595 argument to create_tree.
1596 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
1597 (bin_tree_storage_t): New type.
1598 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
1600 * posix/Makefile (tests): Add bug-regex21.
1601 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
1602 tst-rxspencer-mem and tst-rxspencer.mtrace.
1603 (tests): Depend on $(objpfx)bug-regex21-mem
1604 and $(objpfx)tst-rxspencer-mem.
1605 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
1606 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
1607 * posix/tst-rxspencer.c (main): Add call to mtrace.
1608 Free line at the end.
1609 * posix/bug-regex21.c: New test.
1611 2003-11-19 Ulrich Drepper <drepper@redhat.com>
1613 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
1615 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
1616 fails, just use the byte, do no fancy conversions.
1618 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
1620 (re_string_is_single_byte_char): Likewise.
1622 2003-11-18 Ulrich Drepper <drepper@redhat.com>
1624 * posix/regexec.c (get_subexp): After calling get_subexp_sub
1625 reload buf and bkref_str. Little optimization by avoiding memcmp.
1627 2003-11-14 David Mosberger <davidm@hpl.hp.com>
1629 * sysdeps/unix/sysv/linux/ia64/sysdep.h
1630 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
1631 that all existing GAS versions have a problem with .align inside
1633 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
1634 * sysdeps/ia64/memcpy.S: Likewise.
1635 * sysdeps/ia64/memset.S: Likewise.
1636 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
1637 out of .text into .rodata, where it belongs.
1639 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
1640 save/restore input-arguments, because they're necessarily
1641 preserved by the kernel to support syscall-restart.
1643 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1645 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
1646 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
1648 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
1649 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
1650 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
1651 Handle OP_UTF8_PERIOD.
1652 (re_string_reconstruct): Set valid_len for single byte char searching
1653 with no translation and case sensitivity.
1654 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
1656 (re_compile_internal): Don't call optimize_utf8 if preg->translate
1658 (optimize_utf8): Remove BACK_SLASH case.
1659 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
1661 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
1662 any bits set and COMPLEX_BRACKET is used.
1663 * posix/regexec.c (transit_state_mb): Fix comment typo.
1664 (group_nodes_into_DFAstates, check_node_accept): Handle
1666 (check_node_accept_bytes): Likewise. Reorder slightly so that
1667 re_string_char_size_at and re_string_elem_size_at are called
1669 * posix/bug-regex20.c (BRE, ERE): Define.
1670 (tests): Use them to make lines shorter. Expect . to be
1671 optimized. Add lots of new tests.
1672 (main): Run (ATM just case sensitive) test with backwards searching
1675 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1677 * io/bug-ftw4.c: Include string.h.
1678 * posix/fnmatch.c (mbsinit): Remove define.
1680 2003-11-17 Jakub Jelinek <jakub@redhat.com>
1682 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
1684 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
1685 followed by dup operator is expected to be optimized.
1687 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
1688 variables to the block where they are only used, initialize
1689 nrules only immediately before using it.
1691 2003-11-15 Andreas Jaeger <aj@suse.de>
1693 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
1694 * sysdeps/x86_64/fpu/s_truncl.S: New file.
1695 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
1696 * sysdeps/x86_64/fpu/s_floorl.S: New file.
1697 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
1698 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
1700 * math/libm-test.inc (floor_test): Test also ±0.25.
1701 (ceil_test): Test -0.25.
1703 2003-11-17 Ulrich Drepper <drepper@redhat.com>
1705 * sysdeps/posix/getaddrinfo.c: Add support for destination address
1706 selection according to RFC 3484.
1708 2003-11-15 Ulrich Drepper <drepper@redhat.com>
1710 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
1711 Replace last two parameters of re_string_allocate and
1712 re_string_construct with pointer to DFA.
1713 (re_dfa_t): Add map_notascii field.
1714 * posix/regcomp.c (re_compile_internal): Add call of
1715 re_string_construct.
1716 (init_dfa): Initialize map_notascii.
1717 * posix/regex_internal.c: Adjust definitions of re_string_allocate
1718 and re_string_construct.
1719 Pass DFA to re_string_construct. Adjust definition. Initialize
1721 (build_wcs_upper_buffer): If map_notascii is zero use simplified
1722 method to map ASCII values to upper case.
1723 * posix/regex.c: Include localeinfo.h.
1724 * posix/regexec.c: Adjust call of re_string_allocate.
1726 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
1727 * locale/localeinfo.h (LIMAGIC): Change value.
1728 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
1729 * locale/C-ctype.h: Likewise.
1730 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
1731 ASCII to non-ASCII value. Write out that value.
1733 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
1734 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
1736 2003-11-14 Jakub Jelinek <jakub@redhat.com>
1738 * posix/tst-rxspencer.c (check_match): @ without any following
1739 characters must match only end of string.
1740 (main): Fix filename in error message.
1742 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1744 * sysdeps/ia64/dl-machine.h: Force inlining of
1745 elf_machine_runtime_setup().
1747 2003-11-13 Andreas Jaeger <aj@suse.de>
1749 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
1750 (CFLAGS-test-double.c): Likewise.
1751 (CFLAGS-test-ldouble.c): Likewise.
1752 (CPPFLAGS-test-ifloat.c): Likewise.
1753 (CPPFLAGS-test-idouble.c): Likewise.
1754 (CPPFLAGS-test-ildoubl.c): Likewise.
1756 * math/libm-test.inc (ceil_test): Test ceil (0.25).
1758 2003-11-04 Ulrich Drepper <drepper@redhat.com>
1760 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
1761 sends the netlink data.
1762 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1764 2003-11-13 Jakub Jelinek <jakub@redhat.com>
1766 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
1767 with no bits set for >= 0x80 chars is seen.
1768 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
1770 (main): Run all tests with RE_ICASE as well.
1772 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1774 * posix/Makefile: Add rules to build and run tst-rxspencer.
1775 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
1776 * posix/tst-rxspencer.c: New file.
1777 * posix/rxspencer/tests: New file.
1778 * posix/rxspencer/COPYRIGHT: New file.
1779 Patch mostly by Jakub Jelinek.
1781 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
1782 this is no option given the first token.
1784 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
1785 hyphen in range expression. Return EBRACK in this case.
1787 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
1788 we expect them or it's the last element in the bracket expression.
1789 Indicated by new parameter. Adjust all callers.
1791 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
1792 Prettier error messages.
1794 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
1795 number in {,} expression is larger.
1797 2003-11-13 Andreas Jaeger <aj@suse.de>
1799 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1800 Define appropriately for x86_64.
1801 (__ASSUME_UTIMES): Likewise.
1802 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
1804 * sysdeps/x86_64/fpu/s_ceill.S: New file.
1806 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1808 * posix/regcomp.c (parse_expression): In BRE consecutive
1809 duplications are not allowed.
1811 2003-11-12 Ulrich Drepper <drepper@redhat.com>
1813 * posix/regcomp.c (parse_bracket_exp): If end of expression is
1814 seen, return EBRACK error, not BADPAT.
1816 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
1817 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
1818 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
1819 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
1821 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
1824 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
1825 * posix/runptests.c (main): Handle comments.
1826 * posix/PTESTS2C.sed: Handle comments.
1828 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1830 * posix/regcomp.c (optimize_utf8): New function.
1831 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
1833 (re_compile_internal): Call optimize_utf8 if not case insensitive
1834 and in UTF-8 locale.
1835 * posix/regex_internal.h: Ifdef out some prototypes if
1836 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
1837 * posix/Makefile (tests): Add bug-regex20.
1838 (bug-regex20-ENV): Add LOCPATH.
1839 * posix/bug-regex20.c: New test.
1841 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1843 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
1845 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1847 * posix/tst-regex.c (umemlen): New variable.
1848 (test_expr): Add expectedicase argument. Test case insensitive
1849 searches as well as backwards searches (case sensitive and
1851 (run_test): Add icase argument. Use it to compute regcomp flags.
1852 (run_test_backwards): New function.
1853 (main): Cast read to size_t to avoid warning. Set umemlen.
1854 Add expectedicase arguments to test_expr.
1855 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
1856 find previous character by walking back instead of converting
1857 all chars from beginning.
1859 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1861 * posix/regex_internal.h (struct re_string_t): Add is_utf8
1862 and mb_cur_max fields.
1863 (struct re_dfa_t): Likewise. Reorder fields to make structure
1864 smaller on 64-bit arches.
1865 (re_string_allocate, re_string_construct): Add mb_cur_max and
1867 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
1868 instead of MB_CUR_MAX.
1869 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
1870 instead of MB_CUR_MAX.
1871 (re_compile_internal): Pass new arguments to re_string_construct.
1872 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
1873 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
1875 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
1876 dfa->mb_cur_max instead of MB_CUR_MAX.
1877 * posix/regex_internal.c (re_string_construct_common): Add
1878 mb_cur_max and is_utf8 arguments. Initialize fields with them.
1879 (re_string_allocate, re_string_construct): Add mb_cur_max and
1880 is_utf8 arguments, pass them to re_string_construct_common.
1881 Use mb_cur_max instead of MB_CUR_MAX.
1882 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
1884 (re_string_reconstruct): Likewise.
1885 (re_string_context_at): Use input->mb_cur_max instead of
1887 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
1888 instead of MB_CUR_MAX.
1889 * posix/regexec.c (re_search_internal): Likewise.
1890 Pass new arguments to re_string_allocate.
1891 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
1893 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
1895 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1897 * posix/Makefile (tests): Add bug-regex19.
1898 (bug-regex19-ENV): Add LOCPATH.
1899 * posix/bug-regex19.c: New test.
1901 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1903 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
1904 with MB_CUR_MAX > 1 locales in the fastmap.
1906 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1908 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
1909 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
1911 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
1912 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
1913 * posix/bug-regex17.c: New file
1914 * posix/bug-regex18.c: New file.
1916 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
1918 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
1919 Define __NR_pread/__NR_pwrite if not done in kernel headers
1921 2003-11-11 Roland McGrath <roland@redhat.com>
1923 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
1925 * manual/Makefile (info): Don't depend on dir-add.info.
1926 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
1927 (dir-add.info): Target removed, replaced with ...
1928 (dir-add.texi): New target.
1929 (distribute): Add it.
1930 (install): Remove variant with --section arguments.
1931 Let the @dircategory directives do their work.
1932 (mostlyclean): Don't remove dir-add.info here.
1933 (realclean): Remove dir-add.texi here.
1934 * manual/libc.texinfo: @include dir-add.texi
1935 * configure.in: Remove check for old Debian install-info.
1936 * configure: Regenerated.
1937 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
1939 2003-11-08 Andreas Schwab <schwab@suse.de>
1941 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
1943 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
1945 * io/ftwtest-sh: Fix nested sed commands.
1947 2003-11-10 Jakub Jelinek <jakub@redhat.com>
1949 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
1950 valid_len wide chars.
1952 2003-11-09 Roland McGrath <roland@redhat.com>
1954 * manual/examples/dir2.c (one): Add const to argument type.
1955 Reported by J de Haan <j.de.haan@home.nl>.
1957 2003-11-07 Ulrich Drepper <drepper@redhat.com>
1959 * po/pl.po: Update from translation team.
1961 2003-11-07 Jakub Jelinek <jakub@redhat.com>
1963 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1964 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
1965 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
1966 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
1968 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
1969 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
1970 and nftw64@@GLIBC_2.3.3.
1972 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
1973 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
1974 * io/ftw.c (ftw_dir): Add old_dir argument.
1975 Clear result if it was FTW_SKIP_SIBLINGS after processing all
1976 dir entries. Change cwd back if old_dir != NULL.
1977 (process_entry): Adjust caller. Don't change cwd back here.
1978 Change FTW_SKIP_SUBTREE result to 0.
1979 (ftw_startup): Adjust ftw_dir caller.
1980 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
1981 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
1982 (options, main): Add --skip-subtree and --skip-siblings options.
1983 (cb): Use return FTW_CONTINUE instead of return 0.
1984 Handle --skip-subtree and --skip-siblings.
1985 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
1986 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
1988 2003-11-04 Jakub Jelinek <jakub@redhat.com>
1990 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
1992 * io/Makefile (tests): Add bug-ftw4.
1993 * io/bug-ftw4.c: New test.
1995 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
1997 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
1998 (struct _IO_FILE_complete_plus): New type.
1999 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
2000 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2001 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
2002 Call _IO_old_init instead of _IO_init.
2004 2003-11-03 Ulrich Drepper <drepper@redhat.com>
2006 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
2008 * locale/iso-639.def: Add Blin.
2009 Patch by Daniel Yacob <locales@geez.org>.
2011 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
2013 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
2014 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
2016 2003-11-01 Randolph Chung <tausq@debian.org>
2018 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
2019 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
2020 Add missing parentheses.
2022 2003-11-01 Roland McGrath <roland@redhat.com>
2024 * libio/bug-ftell.c (do_test): Add a cast.
2026 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
2028 * Makerules (shlib.lds): Make sure that ld doesn't try to link
2029 anything while generating the linker script.
2031 2003-10-31 Roland McGrath <roland@redhat.com>
2033 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
2036 2003-10-29 Ulrich Drepper <drepper@redhat.com>
2038 * po/be.po: Update from translation team.
2040 2003-10-27 Ulrich Drepper <drepper@redhat.com>
2042 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
2045 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
2048 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
2049 rest of line. We use getline which means this cannot happen.
2051 2003-10-26 Ulrich Drepper <drepper@redhat.com>
2053 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
2054 Avoid infinite loops in case the mounts file is hosed.
2055 * io/Makefile: Add rules to build and run tst-statvfs.
2056 * io/tst-statvfs.c: New file.
2058 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
2059 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
2060 executables unless __RTLD_OPENEXEC flag is present.
2061 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
2062 _dl_map_object when loading the executable.
2064 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
2066 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
2068 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
2069 reverse lookup format for IPv6 addresses is using bitstring and
2071 * resolv/ns_name.c: Implement encoding and decoding bitstring in
2074 2003-10-23 Jakub Jelinek <jakub@redhat.com>
2076 * locale/programs/locale.c (show_info): Fix printing word values on
2077 64-bit big-endian architectures.
2079 2003-10-19 Bruno Haible <bruno@clisp.org>
2081 * intl/hash-string.c (hash_string): Zero-extend each char from the
2082 string; the old code did a sign-extend on some platforms.
2084 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
2086 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
2087 append options to these.
2088 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
2090 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2092 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2094 2003-10-15 Roland McGrath <roland@redhat.com>
2096 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
2097 Fake an entry for the main executable and then call __dl_iterate_phdr.
2098 * elf/Makefile (routines): Remove dl-iteratephdr-static.
2099 (elide-routines.os): Likewise.
2100 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
2101 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
2102 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
2104 2003-10-15 Jakub Jelinek <jakub@redhat.com>
2106 * elf/rtld.c (print_statistics): Print also number of relative
2109 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
2111 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
2112 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
2113 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
2114 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
2115 and undef JUMPTARGET before use.
2116 [PIC]: Save pic register around syscall.
2117 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
2118 Cleanup asm statment.
2120 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2122 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
2123 after trapa instruction.
2125 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2127 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
2129 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2131 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2133 2003-10-09 Roland McGrath <roland@redhat.com>
2135 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
2138 2003-10-08 Jakub Jelinek <jakub@redhat.com>
2140 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
2141 two identical copies of strings.
2143 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2145 * posix/bug-regex11.c: Add some more tests which fail so far.
2146 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
2148 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
2150 * posix/bug-regex11.c: Add more backreference-related test cases.
2151 (main): Show the failing regex in the error messages.
2152 * posix/regexec.c (check_dst_limits_calc_pos):
2153 Simplify some nested conditionals. Replace if's with a switch
2155 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
2156 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
2157 does not change in the recursive invocation, fixing an infinite loop
2158 in the ()\1*\1* regex.
2159 (sift_states_backward): Fix function comment.
2160 * posix/regcomp.c (calc_epsdest): Add an assertion.
2162 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2164 * manual/examples/testopt.c: Fix warnings. Better error message
2165 for missing -c argument.
2166 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
2168 * timezone/asia: Update from tzdata2003d.
2169 * timezone/australasia: Likewise.
2170 * timezone/backward: Likewise.
2171 * timezone/europe: Likewise.
2172 * timezone/iso3166.tab: Likewise.
2173 * timezone/northamerica: Likewise.
2174 * timezone/southamerica: Likewise.
2175 * timezone/zone.tab: Likewise.
2177 2003-10-05 Jakub Jelinek <jakub@redhat.com>
2179 * sysdeps/ia64/backtrace.c: New file.
2180 * sysdeps/x86_64/backtrace.c: New file.
2181 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
2182 (_Unwind_Backtrace): New prototype.
2184 2003-10-03 Ulrich Drepper <drepper@redhat.com>
2186 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
2187 * sysdeps/i386/elf/setjmp.S: Likewise.
2189 2003-10-02 Roland McGrath <roland@redhat.com>
2191 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
2192 * argp/argp-namefrob.h
2193 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
2194 (__argp_short_program_name): Don't declare fn, define it as a macro.
2196 2003-08-22 Simon Josefsson <jas@extundo.com>
2198 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
2200 * argp/argp-help.c: Don't include malloc.h, some platforms
2201 complain and it doesn't appear to be used.
2202 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
2204 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
2206 (hol_entry_long_iterate): Change __attribute to __attribute__.
2207 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
2208 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
2209 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
2210 modified after comments from Ulrich Drepper.
2211 (__argp_short_program_name): Ditto.
2212 (__argp_state_help, __argp_error, __argp_failure): Use it.
2213 (__argp_failure): Use strerror when necessary.
2215 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
2216 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
2217 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
2218 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
2219 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
2220 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
2221 non-unlocked functions.
2222 [!_LIBC]: Add prototypes for __argp_basename and
2223 __argp_short_program_name.
2225 * argp/argp-parse.c (argp_default_parser): Only use
2226 program_invocation{_short,}_name if declared.
2227 (parser_init): Use __argp_short_program_name.
2229 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
2230 '#include features.h'.
2232 * argp/argp.h [!__attribute__]: Define to nothing.
2234 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
2236 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
2237 for the first token in a subexpression as well.
2239 2003-10-02 Jakub Jelinek <jakub@redhat.com>
2241 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
2243 (parse_reg_exp): Likewise.
2244 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
2246 * posix/bug-regex11.c (tests): Add new tests.
2247 * posix/bug-regex12.c (tests): Add new test.
2249 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
2251 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2252 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
2254 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
2256 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
2257 the old thread-m.h header too.
2259 2003-10-02 Ulrich Drepper <drepper@redhat.com>
2261 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
2262 back to 131027 since this is what the kernel enforces.
2264 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
2265 define it with libc_freeres_ptr.
2267 2003-10-01 Roland McGrath <roland@redhat.com>
2269 * elf/rtld.c (dl_main): Add cast in last change.
2271 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2273 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
2274 "#if 0" surrounding most of contents.
2275 (SYSCALL_ERROR_LABEL): Define.
2276 (__SYSCALL_CLOBBERS): Add $10.
2277 (internal_syscall7): Remove.
2278 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2280 2003-09-30 Ulrich Drepper <drepper@redhat.com>
2282 * elf/rtld.c (dl_main): Also set l_map_start.
2284 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
2286 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
2287 to work around kernel problem.
2289 2003-09-27 Wolfram Gloger <wg@malloc.de>
2291 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
2292 "thread-m.h", so that default parameters can be overridden in a
2293 system-specific malloc-machine.h. Remove extra ; from extern "C"
2295 * sysdeps/generic/malloc-machine.h: New file.
2296 * sysdeps/mach/hurd/malloc-machine.h: New file.
2297 * malloc/thread-m.h: Removed.
2298 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
2299 is in sysdeps/generic/malloc-machine.h now.
2301 2003-09-29 Ulrich Drepper <drepper@redhat.com>
2303 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2304 variables only used if TLS_TCB_AT_TP is defined into the #if
2307 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
2308 well to cover using long long in C90.
2310 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
2312 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
2313 Redefine and use __libc_cleanup_region_end instead.
2315 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
2317 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
2318 fix prototypes for picky C++ compilers.
2320 2003-09-27 Ulrich Drepper <drepper@redhat.com>
2322 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
2323 the device ID is invalid and return -1.
2324 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2326 2003-09-26 Andreas Schwab <schwab@suse.de>
2328 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
2329 rt_sigprocmask system call.
2331 2003-09-25 Roland McGrath <roland@redhat.com>
2333 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2334 Don't check for zero __libc_stack_end, it should be initialized.
2335 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
2336 and fall back if it fails with EINVAL.
2337 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
2339 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2341 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
2342 sysdeps/i386/dl-procinfo.c instead of
2343 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
2344 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
2347 2003-09-25 Ulrich Drepper <drepper@redhat.com>
2349 * posix/regcomp.c (peek_token): Remove recent changes for anchor
2351 (parse_reg_exp): Likewise.
2352 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
2354 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
2357 * nis/nis_table.c (nis_list): Always strdup string used with
2358 ibreq->ibr_name. Add several NULL pointer checks.
2360 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
2362 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2363 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2364 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2365 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
2366 * nis/nss_nisplus/nisplus-network.c: Likewise.
2367 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2368 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2369 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2370 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2371 * nis/nss_nisplus/nisplus-service.c: Likewise.
2372 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2374 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
2376 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2377 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
2378 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2379 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2380 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2381 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2382 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2383 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2384 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2385 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2386 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2388 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2390 * misc/syslog.c: Include locale.h.
2391 (vsyslog): Add date always in C locale %h %e %T format.
2393 2003-09-24 Paul Eggert <eggert@twinsun.com>
2395 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
2396 size_t overflow when reallocating storage.
2397 * argp/argp-help.c (make_hol, hol_append): Likewise.
2398 (SIZE_MAX): New macro.
2400 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
2402 * sysdeps/mach/hurd/bits/libc-lock.h
2403 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
2405 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
2407 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
2408 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
2409 #include_next dl-procinfo.h to get them.
2410 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
2411 (_DL_PLATFORMS_COUNT): Likewise.
2412 (_DL_FIRST_PLATFORM): Likewise.
2413 (_DL_HWCAP_PLATFORM): Likewise.
2414 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
2415 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
2416 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
2417 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
2418 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
2419 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
2420 HWCAP_IMPORTANT): Likewise.
2421 (_DL_PROCINFO_H_): Likewise.
2422 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
2423 (_dl_string_platform): Likewise.
2424 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
2425 * sysdeps/i386/dl-procinfo.c: ... here, new file.
2427 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2429 * sysdeps/unix/sysv/linux/dl-execstack.c
2430 (_dl_make_stack_executable): Remember that we changed the permission.
2432 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
2433 __libc_stack_end. Patch by David Mosberger.
2435 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2437 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
2438 __libc_stack_end@GLIBC_PRIVATE.
2440 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
2441 (_dl_sysdep_start): Set __libc_stack_end here.
2442 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
2444 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
2445 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
2446 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
2447 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2448 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
2449 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
2450 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
2451 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
2452 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
2453 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
2454 (RTLD_START): Remove setting of __libc_stack_end.
2455 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
2456 (RTLD_START): Remove setting of __libc_stack_end.
2458 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2460 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
2461 function definitions. Adjust macro expansions accordingly.
2462 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
2463 minor, makedev name.
2464 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
2466 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2468 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
2471 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2473 * nscd/Makefile (others): Add nscd before including ../Rules.
2475 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2477 * nscd/Makefile: Add rules to build nscd as a PIE.
2478 * configure.in: Check for -fpie and -pie compiler options.
2479 * config.make.in (have-fpie): Define.
2481 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2483 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
2485 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
2486 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
2487 * sysdeps/unix/sysv/linux/makedev.c: New file.
2488 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
2489 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
2490 (sysdep_routines): Add makedev.
2491 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
2492 major, minor, makedev.
2493 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
2495 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
2496 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2497 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
2498 Code by Alexander Viro <aviro@redhat.com>.
2500 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
2503 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
2505 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
2506 for include Altivec support for PPC32. It was not compatible.
2507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
2508 offsets for ucontext_t change.
2509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
2510 for ucontext_t change. Add compatibility code.
2511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
2512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2514 Patch by Paul Mackerras <paulus@samba.org>.
2516 2003-02-25 Randolph Chung <tausq@debian.org>
2518 * sysdeps/hppa/Makefile: Include compat code in build.
2519 * sysdeps/hppa/libgcc-compat.c: New file.
2520 * sysdeps/hppa/Dist: Add libgcc-compat.c.
2521 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
2523 2003-09-23 Roland McGrath <roland@redhat.com>
2525 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
2526 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
2527 Move GL(dl_make_stack_executable_hook) initialization up.
2528 * elf/tst-execstack-prog.c: New file.
2529 * elf/Makefile (tests-execstack-yes): Add it.
2530 (LDFLAGS-tst-execstack-prog): New variable.
2532 2003-09-23 Jakub Jelinek <jakub@redhat.com>
2534 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
2535 before calling _dl_start, using %rip relative access.
2536 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
2539 2003-09-23 Roland McGrath <roland@redhat.com>
2541 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
2542 calling _dl_start, using GOTOFF access.
2544 * configure.in (libc_cv_z_execstack): New check.
2545 * configure: Regenerated.
2546 * config.make.in (have-z-execstack): New variable set by it.
2547 * elf/tst-execstack.c: New file.
2548 * elf/tst-execstack-mod.c: New file.
2549 * elf/tst-execstack-needed.c: New file.
2550 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
2552 (tests, modules-names): Conditionally include them.
2553 (distribute): Add tst-execstack-mod.c here.
2554 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
2555 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
2556 ($(objpfx)tst-execstack-needed): New target.
2557 (LDFLAGS-tst-execstack-needed): New variable.
2559 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
2560 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
2561 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
2562 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
2563 Initialize _dl_make_stack_executable_hook.
2564 * elf/dl-support.c: Define those new variables.
2565 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
2566 (_dl_phdr): Fix type.
2567 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
2568 enable execute permission for the stack if necessary.
2569 * sysdeps/generic/dl-execstack.c: New file.
2570 * elf/Makefile (dl-routines): Add it.
2571 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
2572 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
2574 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2576 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
2578 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
2580 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
2581 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
2584 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2586 * malloc/malloc.c: Include <stdint.h>.
2588 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
2590 * posix/regcomp.c (build_word_op): Rename like...
2591 (build_charclass_op): ...this. Accept two extra parameters,
2592 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
2593 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
2594 (parse_expression): Replace build_word_op with
2595 build_charclass_op, add new arguments, accept OP_SPACE
2597 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
2600 * posix/regcomp.c (peek_token): Don't look back for ( or |
2601 to check whether to treat a caret as special. It fails
2602 for the (extended) regex \(^.
2603 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
2604 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
2606 * posix/regexec.c: Check out of bounds value before shifting.
2608 * posix/regex_internal.h: Define __attribute for non-gcc.
2610 2003-09-22 Jakub Jelinek <jakub@redhat.com>
2612 * include/atomic.h (atomic_compare_and_exchange_val_rel,
2613 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
2616 * sysdeps/unix/opendir.c: Include string.h.
2618 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2620 * timezone/zdump.c: Update from tzcode2003c.
2621 * timezone/zic.c: Likewise.
2622 * timezone/leapseconds: Update from tzdata2003c.
2624 2003-09-19 Ulrich Drepper <drepper@redhat.com>
2626 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
2627 final build to ease quality control.
2629 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
2630 ld.so, don't include NULL buffer pointer handling.
2632 2003-09-19 Jakub Jelinek <jakub@redhat.com>
2634 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
2636 2003-09-18 Jakub Jelinek <jakub@redhat.com>
2638 * libio/memstream.c (open_memstream): Use _IO_init instead of
2641 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2643 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
2644 have to recognize octal and hexadecimal numbers as well. Simplify
2645 function, signs are handled in strtol.
2646 * posix/wordexp-test.c: Add tests for octal and hexadecimal
2647 numbers in arithmetic expressions.
2649 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2651 * elf/Makefile (distribute): Add tst-alignmod.c.
2652 (tests): Add tst-align.
2653 (modules-names): Add tst-alignmod.
2654 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
2655 $(stack-align-test-flags).
2656 ($(objpfx)tst-align): Depend on libdl.
2657 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
2658 * elf/tst-align.c: New file.
2659 * elf/tst-alignmod.c: New file.
2660 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
2661 * misc/tst-tsearch.c: Include tst-stack-align.h.
2662 (stack_align_check): New array.
2663 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
2664 (main): Report error if stack was not enough aligned
2665 in cmp_fn or walk_action.
2666 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
2667 * stdlib/tst-qsort.c: Include tst-stack-align.h.
2668 (align_check): New var.
2669 (compare): Use TEST_STACK_ALIGN () macro.
2670 (main): Report error if stack was not enough aligned in compare.
2671 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
2672 unneeded -mpreferred-stack-boundary=4.
2673 * sysdeps/x86_64/tst-stack-align.h: New file.
2675 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
2676 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
2678 2003-09-17 Philip Blundell <philb@gnu.org>
2680 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
2682 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2684 * sysdeps/arm/sysdep.h (DO_RET): New.
2686 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
2687 required but not defined. Improve test of error code.
2689 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2691 * sysdeps/i386/Makefile (stack-align-test-flags): Add
2692 -malign-double -mpreferred-stack-boundary=4.
2694 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2696 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
2697 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
2699 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2701 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
2702 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
2704 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2706 * Makeconfig (stack-align-test-flags): Set.
2707 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
2708 $(stack-align-test-flags).
2709 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
2710 (align_check): New var.
2711 (comp): Use TEST_STACK_ALIGN macro.
2712 (do_test): Fail if align_check != 1.
2713 * sysdeps/generic/tst-stack-align.h: New file.
2714 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
2715 * sysdeps/i386/i686/tst-stack-align.h: New file.
2717 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2719 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
2720 stack which is aligned (mod 16).
2722 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
2723 Hans-Peter Nilsson <hp@axis.com>
2725 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
2726 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
2728 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2730 * dirent/scandir.c: Include bits/libc-lock.h.
2731 (struct scandir_cancel_struct): New type.
2732 (cancel_handler): New function.
2733 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
2734 scandir_cancel_struct.
2736 2003-09-16 Ulrich Drepper <drepper@redhat.com>
2738 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
2739 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2740 Add internal_statvfs.
2741 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
2742 instead of including "internal_statvfs.c".
2743 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2744 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
2745 Add code to avoid the stat calls on all the reported mount points
2746 when we can determine mismatch in advance.
2747 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
2748 USBDEVFS_SUPER_MAGIC.
2750 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2752 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
2753 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
2755 2003-09-16 Bruno Haible <bruno@clisp.org>
2757 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
2758 invoking msgfmt, not before.
2760 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2762 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
2763 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
2765 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
2766 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
2767 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
2768 * elf/dl-iteratephdr.c (cancel_handler): New function.
2769 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
2770 * elf/link.h (dl_iterate_phdr): Remove __THROW.
2771 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
2772 Add $(uses-callbacks).
2773 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
2774 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
2775 $(exceptions) to $(uses-callbacks).
2776 * Makeconfig (uses-callbacks): Set to $(exceptions).
2777 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
2779 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
2782 2003-09-15 Andreas Schwab <schwab@suse.de>
2784 * sysdeps/m68k/setjmp.c: Add hidden_def.
2786 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2788 * libio/memstream.c (open_memstream): Don't allow wide char operations.
2790 * dirent/dirent.h: Remove __THROW from scandir.
2792 2003-09-14 Philip Blundell <philb@gnu.org>
2794 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
2797 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
2799 * sysdeps/arm/memset.S: Rewrite.
2801 2003-09-12 Jakub Jelinek <jakub@redhat.com>
2803 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
2804 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
2805 __SLONGWORD_TYPE otherwise.
2807 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2809 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
2810 (CFLAGS-ftw64.c): Likewise.
2812 2003-09-13 Ulrich Drepper <drepper@redhat.com>
2814 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
2815 (CFLAGS-nscd_getgr_r.c): Likewise.
2816 (CFLAGS-nscd_gethst_r.c): Likewise.
2818 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2820 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
2823 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
2824 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
2825 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
2826 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
2827 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
2828 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
2830 * misc/Makefile (CFLAGS-err.c): Likewise.
2831 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
2832 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
2833 CFLAGS-glob64.c): Likewise.
2834 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
2835 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
2836 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
2837 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
2838 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
2840 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
2842 * libio/stdio.h: Remove __THROW from cuserid prototype.
2844 * locale/loadarchive.c: Use only non-cancelable interfaces.
2845 * resolv/herror.c (herror): Likewise.
2847 * malloc/hooks.c: Before using IO stream mark stream so it uses
2848 only non-cancelable interfaces.
2849 * malloc/malloc.c: Likewise.
2850 * posix/getopt.c: Likewise.
2853 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2855 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
2857 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2859 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
2861 * misc/err.h: Remove __THROW from all prototypes.
2863 * posix/getopt.h (__THROW): Define if not already defined. Add
2864 __THROW to the getopt functions.
2866 2003-09-11 Ulrich Drepper <drepper@redhat.com>
2868 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
2869 (CFLAGS-fts.c): Likewise.
2870 * io/fcntl.h: Remove __THROW from lockf prototypes.
2871 * io/fts.h: Remove most __THROW.
2873 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
2875 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
2879 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2881 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
2882 _IO_free_backup_area call.
2884 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2886 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
2888 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
2889 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
2890 Also, only assert off_t size is 4 for N32 and O32, and clean up
2892 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
2894 2003-09-10 Roland McGrath <roland@redhat.com>
2896 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
2897 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
2898 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
2899 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2900 Reported by Daniel Jacobowitz <drow@mvista.com>.
2902 2003-09-10 Jakub Jelinek <jakub@redhat.com>
2904 * string/Makefile (strop-tests): Add memccpy.
2905 * string/test-memccpy.c: New test.
2907 2003-09-09 Jakub Jelinek <jakub@redhat.com>
2909 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
2910 siginfo_t * argument before, change into struct ucontext *.
2911 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
2912 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
2913 instead of structure.
2914 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
2917 2003-09-09 Ulrich Drepper <drepper@redhat.com>
2919 * string/stratcliff.c (main): Check memccpy.
2921 2003-04-11 Jes Sorensen <jes@wildopensource.com>
2923 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
2924 character is found during recovery, use correct register when
2925 determining the position of the found character.
2927 2003-04-01 Jes Sorensen <jes@wildopensource.com>
2929 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
2930 avoid segfaults when reading from unmapped pages. For aligned
2931 reload and continue, for misaligned, roll back and use byte copy.
2932 Save ar.ec on entry and restore on exit.
2934 2003-09-09 Chris Demetriou <cgd@broadcom.com>
2936 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
2938 2003-09-08 Chris Demetriou <cgd@broadcom.com>
2940 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
2941 the top of the list.
2942 * sysdeps/mips/mips64/n64/Implies: Likewise.
2944 2003-09-08 Roland McGrath <roland@frob.com>
2946 * sysdeps/unix/sysv/linux/speed.c
2947 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
2948 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
2949 * sysdeps/unix/sysv/linux/bits/termios.h
2950 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
2951 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2952 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2954 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2956 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
2957 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
2959 2003-09-08 Jakub Jelinek <jakub@redhat.com>
2961 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
2962 (__u_quad_t): Make unsigned long int if 64-bit.
2963 (__SQUAD_TYPE): Make long int if 64-bit.
2964 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
2965 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
2967 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2969 * Makefile (tests): Run check-c++-types.sh if possible.
2970 * scripts/check-c++-types.h: New file.
2971 * scripts/data/c++-types-i386-linux-gnu.data: New file.
2973 2003-09-08 Andreas Jaeger <aj@suse.de>
2975 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2976 Use struct sigcontext.
2978 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
2979 Use struct sigcontext.
2981 (GET_FRAME): Likewise.
2982 (GET_STACK): Likewise.
2984 2003-09-08 Wolfram Gloger <wg@malloc.de>
2986 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
2987 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
2988 (mALLOPt): Avoid requirement of C99.
2990 2003-09-08 Ulrich Drepper <drepper@redhat.com>
2992 * libio/bug-ftell.c: Include <sys/types.h>.
2993 (main): Mark cp as const.
2995 2003-09-07 Jakub Jelinek <jakub@redhat.com>
2997 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
2998 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
3000 2003-09-05 Roland McGrath <roland@redhat.com>
3002 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
3003 and c_ospeed fields.
3004 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
3005 (cfsetispeed): Set c_ispeed field.
3006 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
3007 to match corresponding speed.c code.
3009 2003-09-06 Ulrich Drepper <drepper@redhat.com>
3011 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
3012 narrow character buffer.
3013 * libio/Makefile: Add rules to build and run bug-ftell.
3014 * libio/bug-ftell.c: New file.
3016 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
3018 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
3019 matching the decimal point and possibly leading the thousands
3020 separator. This caused the recognition of thousands separators to
3023 2003-09-05 Ulrich Drepper <drepper@redhat.com>
3025 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
3026 write mode from read in backup buffer.
3027 * libio/Makefile (tests): Add bug-ungetc2.
3028 * libio/bug-ungetc2.c: New file.
3030 2003-09-05 Roland McGrath <roland@redhat.com>
3032 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
3034 2003-09-04 Roland McGrath <roland@frob.com>
3036 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
3037 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
3039 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
3041 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
3044 2003-09-05 Andreas Jaeger <aj@suse.de>
3046 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
3047 to make it conforming C.
3048 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
3050 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
3051 prototype to use variable argument lists and get the possible one
3052 argument via va_arg.
3053 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
3054 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
3056 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3058 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
3060 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3061 Report correct value for vxfs.
3062 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
3064 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
3067 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
3068 over the place. It would be allowed to have these functions as
3069 cancellation points but the cleanup would be ugly and a lot of
3072 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
3073 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
3075 * include/fcntl.h (__fcntl_nocancel): Declare.
3076 * sysdeps/unix/sysv/linux/fcntl.c: New file.
3077 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
3078 cancellation if absolutely needed.
3079 (__fcntl_nocancel): Define.
3081 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
3082 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
3084 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
3087 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
3090 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
3091 unnecessary errno handling.
3093 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
3094 Initialize it in all cases. Change it to be a bit more like the
3097 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3099 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
3101 (_IO_file_open): Likewise. Use close_not_cancel.
3103 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3105 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
3106 * libio/fileops.c [_LIBC]: Remove close macro.
3107 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
3108 (_IO_new_file_open): Recognize 'c' flag in mode string.
3109 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
3110 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
3112 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
3113 * inet/rcmd.c: Likewise.
3114 * inet/ruserpass.c: Likewise.
3115 * intl/localealias.c: Likewise.
3116 * malloc/mtrace.c: Likewise.
3117 * misc/getpass.c: Likewise.
3118 * misc/getttyent.c: Likewise.
3119 * misc/mntent_r.c: Likewise.
3120 * misc/getusershell.c: Likewise.
3121 * nss/nsswitch.c: Likewise.
3122 * resolv/res_hconf.c: Likewise.
3123 * resolv/res_init.c: Likewise.
3124 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3125 * time/getdate.c: Likewise.
3126 * time/tzfile.c: Likewise.
3127 * misc/fstab.h: Undo last change.
3128 * misc/mntent.h: Likewise.
3129 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
3130 CFLAGS-fstab.c definition.
3132 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3134 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
3136 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3138 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
3139 returning ERANGE if this wasn't intended.
3141 2003-09-03 Jakub Jelinek <jakub@redhat.com>
3143 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
3144 function-like macros.
3146 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3148 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
3149 (CFLAGS-getgrent.c): Likewise.
3150 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
3151 (CFLAGS-getpwent.c): Likewise.
3152 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
3153 (CFLAGS-getspent.c): Likewise.
3155 * inet/Makefile: Add -fexceptions to CFLAGS for the various
3156 getXXent and getXXbyYY functions.
3158 * locale/loadlocale.c: Use not-cancelable variants of open, close,
3161 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3163 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3164 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
3166 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
3168 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
3169 unused __syscall_ stubs.
3170 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
3172 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
3173 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
3174 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
3175 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
3176 unused __syscall_ stubs.
3177 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
3178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3179 (__syscall_*): Remove unused __syscall_ stubs.
3180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3181 (__syscall_*): Likewise.
3182 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
3184 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
3185 Remove unused __syscall_ stubs.
3186 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
3187 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
3188 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
3189 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
3190 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
3191 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
3192 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
3193 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
3194 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
3195 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
3196 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
3197 __syscall_* prototypes.
3198 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
3199 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3200 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3201 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3202 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
3203 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3204 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3205 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3206 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3207 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3208 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3209 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3210 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3211 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3212 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3213 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3214 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3215 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3216 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3217 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3218 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3219 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3220 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3221 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3222 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3223 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3224 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3225 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3226 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3227 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3228 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3229 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3230 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3231 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3232 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3233 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3234 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3235 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
3236 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3237 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
3238 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
3239 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3240 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3241 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3242 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3243 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
3244 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3245 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3246 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3247 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3248 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
3249 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3250 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3251 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3252 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3253 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
3254 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
3255 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3256 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3257 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
3258 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3259 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
3260 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3261 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3262 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3263 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3264 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3265 * sysdeps/unix/sysv/linux/execve.c: Likewise.
3266 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3267 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3268 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
3269 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3270 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3271 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3272 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3273 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3274 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3275 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3276 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3277 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3278 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
3279 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
3280 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
3281 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3282 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3283 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3284 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3285 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
3286 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3287 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3288 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3289 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3290 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3291 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
3292 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3293 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3294 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3295 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3296 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3297 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3298 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3299 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3301 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3303 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
3304 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
3305 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
3307 2003-09-02 Ulrich Drepper <drepper@redhat.com>
3309 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
3311 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
3312 open, close, and read.
3314 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
3317 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
3319 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
3320 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
3321 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
3323 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
3325 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
3326 (CFLAGS-fstatfs.c): Likewise.
3327 (CFLAGS-statvfs.c): Likewise.
3328 (CFLAGS-fstatvfs.c): Likewise.
3330 2003-09-01 Ulrich Drepper <drepper@redhat.com>
3332 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
3333 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
3335 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
3336 (CFLAGS-pathconf.c): Likewise.
3337 (CFLAGS-fpathconf.c): Likewise.
3339 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
3340 * misc/fstab.h: Remove all __THROW.
3341 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
3342 (CFLAGS-mntent_r.c): Likewise.
3343 * misc/mntent.h: Remove most __THROW.
3345 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3346 (CFLAGS-mkstemp64.c): Likewise.
3348 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
3349 around call to exec_comm.
3350 * posix/wordexp.h: Remove __THROW from wordexp.
3351 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
3353 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
3354 not-cancelable functions.
3356 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
3357 (CFLAGS-iofopen.c): Likewise.
3358 (CFLAGS-iofopen64.c): Likewise.
3360 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
3362 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
3363 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
3365 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
3366 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
3368 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
3370 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
3371 NSS_STATUS_SUCCESS if entry was found.
3372 (getspent_next_file): Store user in blacklist after entry
3373 was found, use innetgr.
3375 2003-09-01 Jakub Jelinek <jakub@redhat.com>
3377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
3378 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
3380 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
3381 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
3382 DTV_AT_TP, optimize.
3384 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3386 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
3387 posix_fallocate64 at GLIBC_2.3.3.
3388 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
3389 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3391 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3393 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
3396 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3398 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
3399 Code by Richard Henderson.
3401 2003-08-31 Philip Blundell <philb@gnu.org>
3403 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
3404 posix_fallocate64 at GLIBC_2.3.3.
3406 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3408 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
3409 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
3411 2003-08-30 Jakub Jelinek <jakub@redhat.com>
3413 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
3414 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
3415 included multiple times.
3416 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
3417 ptid, tls, ctid arguments to the kernel.
3418 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3419 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
3420 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3421 (__libc_sigaction): Use INLINE_SYSCALL instead of
3422 __syscall_rt_sigaction.
3423 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3424 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
3425 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
3426 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
3427 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
3428 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
3429 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
3430 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
3431 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
3432 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
3433 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
3434 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3435 (__CLONE_SYSCALL_STRING): Define.
3436 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
3438 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3439 (__CLONE_SYSCALL_STRING): Define.
3440 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
3442 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
3444 2003-08-30 Ulrich Drepper <drepper@redhat.com>
3446 * sunrpc/rpc/clnt.h: Remove a few __THROW.
3447 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
3448 (CFLAGS-key_call.c): Likewise.
3449 (CFLAGS-pmap_rmt.c): Likewise.
3450 (CFLAGS-clnt_perr.c): Likewise.
3451 * sunrpc/rpc/auth.h: Remove serveral __THROW.
3453 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
3454 (CFLAGS-gethstbynm_r.c): Likewise.
3455 (CFLAGS-gethstbynm2_r.c): Likewise.
3456 (CFLAGS-rcmd.c): Likewise.
3457 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
3459 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
3460 (CFLAGS-argp-fmtstream.c): Likewise.
3461 * argp/argp.h: Remove a number of __THROW.
3463 * misc/sys/syslog.h (vsyslog): Remove __THROW.
3465 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
3466 * misc/getpass.c (getpass): Add cleanup handler to ensure the
3467 stream is closed even if the thread is canceled.
3468 (call_fclose): New function.
3469 * posix/unistd.h: Remove __THROW from getpass prototype.
3471 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
3473 * signal/signal.h (psignal): Remove __THROW.
3474 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
3476 * misc/Makefile (CFLAGS-error.c): Define.
3477 * misc/error.c (error): Disable cancellation handling around the
3478 actual output. The message should in any case be printed.
3479 (error_at_line): Likewise.
3481 * misc/error.h: Protect parameter names with leading __.
3483 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3485 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
3487 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3489 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
3492 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3494 * libio/stdio.h: Remove a few more __THROW.
3496 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3498 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
3499 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
3500 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
3501 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
3502 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
3503 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
3504 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
3505 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
3506 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
3507 putwchar.c and rewind.c with exceptions.
3508 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
3509 _IO_release_lock): Define.
3510 * libio/fileops.c (_IO_new_file_underflow): Use it.
3511 * libio/fputc.c (fputc): Likewise.
3512 * libio/fputwc.c (fputwc): Likewise.
3513 * libio/freopen64.c (freopen64):
3514 * libio/freopen.c (freopen): Likewise.
3515 * libio/fseek.c (fseek): Likewise.
3516 * libio/fseeko64.c (fseeko64): Likewise.
3517 * libio/fseeko.c (fseeko): Likewise.
3518 * libio/ftello64.c (ftello64): Likewise.
3519 * libio/ftello.c (ftello): Likewise.
3520 * libio/fwide.c (fwide): Likewise.
3521 * libio/getc.c (_IO_getc): Likewise.
3522 * libio/getchar.c (getchar): Likewise.
3523 * libio/getwc.c (_IO_getwc): Likewise.
3524 * libio/getwchar.c (getwchar): Likewise.
3525 * libio/iofclose.c (_IO_new_fclose):
3526 * libio/iofflush.c (_IO_fflush): Likewise.
3527 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
3528 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3529 * libio/iofgets.c (_IO_fgets): Likewise.
3530 * libio/iofgetws.c (fgetws): Likewise.
3531 * libio/iofputs.c (_IO_fputs): Likewise.
3532 * libio/iofputws.c (fputws): Likewise.
3533 * libio/iofread.c (_IO_fread): Likewise.
3534 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3535 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3536 * libio/ioftell.c (_IO_ftell): Likewise.
3537 * libio/iofwrite.c (_IO_fwrite): Likewise.
3538 * libio/iogetdelim.c (_IO_getdelim): Likewise.
3539 * libio/iogets.c (_IO_gets): Likewise.
3540 * libio/ioputs.c (_IO_puts): Likewise.
3541 * libio/ioseekoff.c (_IO_seekoff): Likewise.
3542 * libio/ioseekpos.c (_IO_seekpos): Likewise.
3543 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3544 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3545 * libio/ioungetc.c (_IO_ungetc): Likewise.
3546 * libio/ioungetwc.c (ungetwc): Likewise.
3547 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3548 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
3549 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
3550 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
3551 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
3552 * libio/peekc.c (_IO_peekc_locked): Likewise.
3553 * libio/putc.c (_IO_putc): Likewise.
3554 * libio/putchar.c (putchar): Likewise.
3555 * libio/putwc.c (putwc): Likewise.
3556 * libio/putwchar.c (putwchar): Likewise.
3557 * libio/rewind.c (rewind): Likewise.
3558 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
3560 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3562 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
3563 available in XPG4.2.
3565 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
3566 Jakub Jelinek <jakub@redhat.com>
3568 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
3569 big endian arches. Don't read beyond end of fds_bits array.
3571 2003-04-27 Bruno Haible <bruno@clisp.org>
3573 * manual/message.texi (Advanced gettext functions): Add information
3574 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
3575 Add section about Lithuanian, reported by Ricardas Cepas
3576 <rch@richard.eu.org>.
3577 Add information about Croatian.
3578 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
3579 Remove remark about continuation lines that is not true for PO files.
3580 Fix formula for Slovenian, reported by Roman Maurer
3581 <roman.maurer@amis.net>.
3583 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3585 * math/math_private.h: Declare __copysignf.
3586 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
3589 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
3590 __signbit, and __signbitl inline functions.
3592 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
3593 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
3595 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
3596 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
3598 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3600 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
3602 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3604 * include/stdio.h: Add declarations for __builtin_fwrite and
3605 __builtin_fwrite_unlocked.
3607 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3609 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
3610 fits into allocation. Add padding on 32-bit arches so that
3611 dirp->data is enough aligned for struct dirent64.
3612 Avoid clearing of the buffer, just clear DIR structure.
3614 2003-08-26 Ulrich Drepper <drepper@redhat.com>
3616 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
3617 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
3619 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
3621 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
3623 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3625 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
3626 to match format string.
3627 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
3629 (__new_semctl): Shut up warning.
3630 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3631 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
3633 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3635 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
3636 link file use the real file name, not the resolved name we got by
3637 following the symlinks.
3639 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3641 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
3642 if the object size is large enough.
3644 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3646 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3647 if it won't point to itself unless it is .so symlink for the linker.
3649 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3651 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
3652 use _mode if _IO_fwide_maybe_incompatible.
3653 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
3654 the compatibility test.
3656 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3658 * elf/cache.c (save_cache): Don't write beyond end of file_entries
3660 Duplicate last old cache entry if the count would be odd.
3662 2003-08-25 Andreas Jaeger <aj@suse.de>
3664 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
3665 __LONG_LONG_PAIR to long.
3667 2003-08-25 Philip Blundell <philb@gnu.org>
3669 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
3670 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3672 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
3674 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
3675 and use __libc_cleanup_region_end instead.
3677 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3679 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
3681 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3683 * io/fcntl.h (posix_fallocate): Change type of third parameter to
3685 (posix_fallocate64): Change type of third parameter to off64_t.
3686 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
3687 * sysdeps/posix/posix_fallocate.c: Likewise.
3688 * sysdeps/generic/posix_fallocate64.c: Likewise.
3689 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
3690 code for 32-bit platforms.
3691 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
3693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
3694 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3695 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3697 2003-08-19 Ulrich Drepper <drepper@redhat.com>
3699 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
3700 the type, not to name.
3702 * stdio-common/test-vfprintf.c (main): Don't write temporary file
3703 into source directory.
3705 * malloc/malloc.c (_int_free): Add cheap test for some invalid
3708 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
3711 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3713 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
3716 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
3718 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
3719 (elf_machine_lazy_rel): Likewise.
3721 2003-08-18 Art Haas <ahaas@airmail.net>
3723 * malloc/malloc.h: Remove unneeded ';' where closing the C++
3726 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3728 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
3729 loading big binaries where @gprel(sym) cannot be handled in 'add'
3730 but instead has to be used with 'movl'.
3732 2003-08-17 Juergen Kreileder <jk@blackdown.de>
3733 Andreas Jaeger <aj@suse.de>
3735 * sysdeps/x86_64/bits/byteswap.h: New file.
3737 2003-08-17 Andreas Jaeger <aj@suse.de>
3739 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
3741 2003-08-16 Jakub Jelinek <jakub@redhat.com>
3743 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
3744 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3745 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
3746 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3747 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
3748 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3749 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
3750 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3751 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
3752 ret_ERRVAL): Define.
3753 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
3754 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3755 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
3756 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3757 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
3759 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
3760 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3761 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
3763 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
3764 posix_fadvise64_64): Remove.
3765 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
3767 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
3769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3770 (posix_fadvise64): Likewise.
3771 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
3772 (posix_fadvise64): Likewise.
3773 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3774 (posix_fadvise64): Likewise.
3775 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
3777 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
3778 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
3779 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
3780 (__posix_fadvise64_l32): New function.
3781 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
3782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
3783 posix_fadvise64@@GLIBC_2.3.3.
3784 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3785 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3786 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
3788 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
3790 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3791 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
3793 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3795 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
3796 (elf_machine_matches_host): Remove weak extern stuff.
3797 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
3798 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
3799 stuff. Use GL(dl_hwcap) unconditionally.
3801 2003-08-16 Alan Modra <amodra@bigpond.net.au>
3803 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
3804 __libc_start_main branch.
3806 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
3807 Andreas Jaeger <aj@suse.de>
3809 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
3810 instead of setting errno.
3811 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3813 2003-08-16 Andreas Jaeger <aj@suse.de>
3815 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
3816 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3818 2003-08-15 Ulrich Drepper <drepper@redhat.com>
3820 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
3822 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
3823 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
3824 description indicating the error value is returned, not -1.
3825 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
3826 __ASSUME_FADVISE64_64_SYSCALL.
3827 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
3828 posix_madvise in one file. Have posix_madvise defined with error
3830 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
3832 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
3833 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
3834 PSEUDO_END_ERRVAL, and ret_ERRVAL.
3835 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3836 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3837 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
3840 * posix/Makefile (routines): Add posix_madvise.
3841 * sysdeps/generic/madvise.c: Don't define posix_madvise.
3842 * sysdeps/generic/posix_madvise.c: New file.
3843 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
3844 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
3845 Add posix_fadvise64_64.
3847 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3849 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
3850 3.0, not for !gcc or gcc < 3.0.
3852 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
3854 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
3855 Address passed to test_in_mod1 and test_in_mod2 without casting.
3856 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
3857 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
3858 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
3859 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
3861 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3863 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
3864 Change quotes before using [].
3866 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
3868 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
3870 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
3871 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
3872 argument. Select one of 64 locks from address bits.
3873 (atomic_compare_and_exchange_val_acq,
3874 atomic_compare_and_exchange_bool_acq): Pass memory address to
3875 __sparc32_atomic_do_{,un}lock.
3877 2003-08-14 Ulrich Drepper <drepper@redhat.com>
3879 * assert/assert.h (assert): Use !! in front of expression to allow
3882 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
3883 Changed conversion of JIS X 0201 from using a table to calculating.
3884 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
3885 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
3887 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
3888 * iconvdata/CP932.irreversible: New file.
3889 * iconvdata/EUC-JP-MS.irreversible: New file.
3890 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3892 2003-08-13 Ulrich Drepper <drepper@redhat.com>
3894 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
3896 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
3897 text processing tools.
3899 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
3900 element unless BROKEN_THREAD_SIGNALS is defined.
3901 (struct requestlist): Likewise.
3902 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
3903 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
3904 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
3905 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
3906 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
3907 Pass current PID to __aio_sigqueue.
3908 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
3909 call. Don't initialize caller_pid field of waitlist element.
3911 2003-08-12 Jakub Jelinek <jakub@redhat.com>
3913 * libio/libioP.h (_IO_vtable_offset): Define.
3914 * libio/freopen.c (freopen): Use it.
3915 * libio/ioputs.c (_IO_puts): Likewise.
3916 * libio/freopen64.c (freopen64): Likewise.
3917 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
3919 * libio/iofclose.c (_IO_new_fclose): Likewise.
3920 * libio/iofputs.c (_IO_fputs): Likewise.
3921 * libio/ioftell.c (_IO_ftell): Likewise.
3922 * libio/iofwrite.c (_IO_fwrite): Likewise.
3923 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
3924 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3925 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
3926 * stdio-common/vfscanf.c (ORIENT): Likewise.
3928 2003-08-11 Ulrich Drepper <drepper@redhat.com>
3930 * assert/assert.h: Use __builtin_expect in assert and
3931 assert_perror definitions if possible.
3933 2003-08-07 Jakub Jelinek <jakub@redhat.com>
3935 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
3936 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
3937 * elf/rtld.c (rtld_lock_default_lock_recursive,
3938 rtld_lock_default_unlock_recursive): New functions.
3939 (dl_main): Initialize _dl_rtld_lock_recursive and
3940 _dl_rtld_unlock_recursive.
3942 2003-08-05 Jakub Jelinek <jakub@redhat.com>
3944 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
3945 config_file directories instead of prepending.
3947 2003-08-02 Ulrich Drepper <drepper@redhat.com>
3949 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3950 __ASSUME_CLONE_STOPPED.
3952 2003-08-01 Ulrich Drepper <drepper@redhat.com>
3954 * sysdeps/generic/bits/libc-lock.h
3955 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
3957 2003-08-01 Roland McGrath <roland@frob.com>
3959 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
3961 2003-07-31 Jakub Jelinek <jakub@redhat.com>
3963 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
3964 instead of __SWORD_TYPE.
3965 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3966 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
3967 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
3969 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
3971 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
3973 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
3975 * dlfcn/dlerror.c (once): New.
3976 (dlerror): Call __libc_once.
3977 (_dlerror_run): Remove once.
3979 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
3980 Sync with 2.5.7 and 2.5.73 kernel changes.
3982 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
3983 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
3985 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
3986 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
3987 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
3988 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
3989 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
3990 difference argument.
3991 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
3993 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
3994 %d format and cast expected value to int.
3995 * sysdeps/generic/libc-start.c (STATIC): Add
3996 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
3997 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
3998 to ieee_float_shape_type.
3999 (__sqrt): Avoid type punning.
4000 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
4001 to ieee_float_shape_type.
4002 (__sqrtf): Avoid type punning.
4003 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
4004 refsym if in dl-conflict.c.
4005 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4006 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
4007 (__new_semctl): Shut up warning.
4008 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
4009 (__new_semctl): Shut up warning.
4010 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
4011 Change old into union of __old_shmid_ds and __old_shminfo structs.
4013 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
4015 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
4016 modtime computation.
4017 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
4018 * sysdeps/posix/utimes.c (__utimes): Likewise.
4020 2003-07-30 Jakub Jelinek <jakub@redhat.com>
4022 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
4023 call dl_signal_error directly. If already relocated, call
4024 GL(dl_init_static_tls) directly, otherwise queue it for later.
4025 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
4026 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
4027 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
4028 for all static TLS initializations delayed in _dl_allocate_static_tls.
4029 * elf/dl-support.c (_dl_init_static_tls): New variable.
4030 * include/link.h (struct link_map): Add l_need_tls_init.
4031 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
4032 (_dl_nothread_init_static_tls): New prototype.
4033 (_dl_allocate_static_tls): Adjust prototype.
4035 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
4037 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
4039 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4040 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
4041 reloc_addr is aligned.
4042 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
4043 elf_machine_rela_relative): Adjust.
4044 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
4045 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4046 * sysdeps/cris/dl-machine.h (elf_machine_rela,
4047 elf_machine_rela_relative): Adjust.
4048 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
4049 elf_machine_rela_relative): Adjust.
4050 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
4051 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4052 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
4053 elf_machine_rela_relative): Adjust.
4054 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
4055 elf_machine_rela_relative): Adjust.
4056 * sysdeps/mips/dl-machine.h (elf_machine_rela,
4057 elf_machine_rela_relative): Adjust.
4058 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
4059 elf_machine_rela_relative): Adjust.
4060 * sysdeps/powerpc/powerpc64/dl-machine.h
4061 (elf_machine_rela_relative, elf_machine_rela): Adjust.
4062 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
4063 elf_machine_rela_relative): Adjust.
4064 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
4065 elf_machine_rela_relative): Adjust.
4066 * sysdeps/sh/dl-machine.h (elf_machine_rela,
4067 elf_machine_rela_relative): Adjust.
4068 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4069 elf_machine_rela_relative): Adjust.
4070 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4071 elf_machine_rela_relative): Adjust.
4072 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
4073 elf_machine_rela_relative): Adjust.
4075 2003-07-29 Ulrich Drepper <drepper@redhat.com>
4077 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
4078 alignment of TCB used before the last change so that it matches
4079 ld's output for IE code.
4081 2003-07-29 Jakub Jelinek <jakub@redhat.com>
4083 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
4084 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
4085 break strict-aliasing rules" warnings.
4087 2003-07-29 Roland McGrath <roland@redhat.com>
4089 * elf/Makefile: Revert accidental changes in last commit.
4090 * elf/dl-support.c: Likewise.
4092 * rt/tst-timer2.c: New file.
4093 * rt/Makefile (tests): Add it.
4095 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4097 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
4099 2003-07-29 Roland McGrath <roland@redhat.com>
4101 * elf/Makefile (tests) [$(build-shared) = yes]:
4102 Depend on $(test-modules).
4103 * dlfcn/Makefile: Likewise.
4105 2003-07-28 Roland McGrath <roland@redhat.com>
4107 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
4108 Use that instead of `typedef' when using __*_TYPE macros in rhs.
4110 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
4111 * elf/tst-tlsmod14a.c: Likewise.
4113 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
4114 before <linux/sysctl.h>.
4116 2003-07-27 Ulrich Drepper <drepper@redhat.com>
4118 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
4119 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
4120 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
4121 * sysdeps/unix/syscalls.list: umask syscall never fails.
4123 2003-07-27 Andreas Jaeger <aj@suse.de>
4125 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
4127 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4129 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
4130 Include bits/a.out.h.
4131 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4133 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
4134 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
4135 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
4136 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
4137 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
4138 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
4139 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
4140 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
4142 2003-07-24 Jakub Jelinek <jakub@redhat.com>
4144 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
4145 if aiocbp != NULL and has already completed. Return -1/EINVAL if
4146 aiocbp->aio_fildes does not match fildes.
4148 2003-07-24 Ulrich Drepper <drepper@redhat.com>
4150 * timezone/zic.c (rpytime): Replace cheap overflow check with a
4153 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
4154 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
4155 Fix calculation of offsets to take misalignment of first byte in
4157 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
4158 l_tls_firstbyte_offset field.
4159 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
4160 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
4161 Take l_tls_firstbyte_offset information into account.
4162 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
4163 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
4164 * elf/Makefile: Add rules to build and run tst-tls14.
4165 * elf/tst-tls14.c: New file.
4166 * elf/tst-tlsmod14a.c: New file.
4167 * elf/tst-tlsmod14b.c: New file.
4169 2003-07-23 Jakub Jelinek <jakub@redhat.com>
4171 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
4172 (lio_listio): Use it.
4173 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
4174 after few defines to avoid duplication.
4176 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4178 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
4179 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4181 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4182 Add libc_hidden_def.
4183 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
4184 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4185 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
4186 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
4187 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
4188 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
4189 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
4191 * sysdeps/generic/unwind.inc: Removed.
4193 * include/resolv.h (__resp): Declare. Define to __libc_resp
4195 (_res): If USE___THREAD, define to (*__resp).
4196 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
4197 even if USE___THREAD.
4198 (__resp): New __thread variable.
4199 (__libc_resp): New alias.
4200 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
4201 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
4202 * sysdeps/generic/res-state.c (__res_state): Return __resp
4205 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4207 * elf/dl-support.c (_dl_hwcap): New variable.
4208 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
4210 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
4211 and <dl-procinfo.h>.
4212 (__feclearexcept): Clear MXCSR if needed.
4213 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4215 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
4216 that newer hardware needs more than these macros.
4218 * sysdeps/i386/setfpucw.c: New file.
4220 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4222 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
4223 * elf/ldconfig.c: Include dl-procinfo.c.
4224 (PROCINFO_CLASS): Define.
4225 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
4226 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
4227 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
4228 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
4229 Define if not yet defined. Use it instead of EXTERN. Undefine
4230 at the end of the file.
4231 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
4233 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
4234 (PROCINFO_CLASS): Likewise.
4235 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
4236 (PROCINFO_CLASS): Likewise.
4238 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4240 * elf/ldconfig.c (main): Issue a fatal error if relative path
4241 is used to build cache.
4243 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4245 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
4247 2003-07-21 Art Haas <ahaas@airmail.net>
4249 * manual/charset.texi (Converting a Character): Fix example code so a
4250 valid pointer is returned.
4252 2003-07-22 Andreas Jaeger <aj@suse.de>
4254 * elf/readlib.c (process_file): Check that file is a shared
4257 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
4258 will not optimize it away.
4259 (__DTOR_END__): Likewise.
4260 (__CTOR_END__): Likewise.
4262 * include/libc-symbols.h (_elf_set_element): Use attribute used so
4263 that gcc will not optimize it away.
4264 (link_warning): Likewise.
4266 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4268 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
4269 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
4270 * wcsmbs/tst-wcpncpy.c: New file.
4272 2003-07-21 Ulrich Drepper <drepper@redhat.com>
4274 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
4276 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
4277 stmxcsr and ldmxcsr.
4279 * Makerules (build-module-helper): Add -z defs unless explicitly said
4281 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
4282 which has undefined symbols.
4283 * elf/Makefile: Likewise.
4285 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
4286 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4287 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4288 * sysdeps/i386/fpu/fesetround.c: Likewise.
4289 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
4291 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
4293 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4294 if it won't point to itself.
4296 2003-07-20 Ulrich Drepper <drepper@redhat.com>
4298 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
4300 2003-07-20 Andreas Jaeger <aj@suse.de>
4302 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
4303 STANDARD_TO_LOOP_ERR_HANDLER.
4304 * iconvdata/euc-jp-ms.c (BODY): Likewise.
4306 2003-07-19 Ulrich Drepper <drepper@redhat.com>
4308 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
4310 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
4312 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
4313 Andreas Jaeger <aj@suse.de>
4315 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
4316 256K, remove unneeded declaration of __getpagesize.
4318 2003-07-16 Andreas Schwab <schwab@suse.de>
4320 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
4322 2003-07-15 Ulrich Drepper <drepper@redhat.com>
4324 * io/test-utime.c (main): Make test yet more robust.
4326 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4328 More cancellation handling fixups.
4329 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
4330 * sysdeps/generic/not-cancel.h: Likewise.
4331 * catgets/open_catalog.c: Use not-cancelable syscalls.
4332 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
4333 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
4334 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
4335 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
4336 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
4337 * libio/fileops.c: Use not-cancelable syscalls for fclose.
4338 * libio/iopopen.c: Use no-cancelable syscalls.
4339 * libio/stdio.h: Mark popen and pclose with __THROW again.
4340 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
4341 * misc/syslog.c: Fix locking and cancellation cleanup handling.
4342 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
4343 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
4344 CFLAGS-tempname.c): Add -fexceptions.
4345 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4346 * string/string.h: Mark strerror and strerror_r with _THROW again.
4347 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
4348 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
4349 #ifs since we now need all the code compiled.
4350 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
4351 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
4352 * sysdeps/unix/opendir.c: Likewise.
4354 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
4355 Add rule for EUC-JP-MS dependency.
4356 * iconvdata/cp932.c: New file.
4357 * iconvdata/eucjp-ms.c: New file.
4358 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
4359 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4361 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
4366 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4368 * sysdeps/unix/sysv/linux/kernel-features.h
4369 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
4370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
4372 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
4374 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4376 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4377 __ASSUME_TGKILL for Alpha appropriately.
4379 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4381 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4382 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
4384 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
4387 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4388 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
4390 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
4391 second parameter == NULL.
4392 * sysdeps/unix/sysv/linux/utimes.c: New file.
4394 2003-07-12 Jakub Jelinek <jakub@redhat.com>
4396 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
4397 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
4400 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4402 * time/sys/time.h: Namespace cleanup.
4403 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4404 __ASSUME_UTIMES for the architectures which always had the syscall.
4405 * sysdeps/unix/sysv/linux/futimes.c: New file.
4407 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4409 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
4410 register across CENABLE and CDISABLE.
4412 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4414 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
4415 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4416 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4417 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
4418 int before assigning to max to avoid warnings.
4420 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
4424 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
4425 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
4427 2003-07-10 Jakub Jelinek <jakub@redhat.com>
4429 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
4430 .data.rel.ro.local to "aw".
4432 2003-07-10 Ulrich Drepper <drepper@redhat.com>
4434 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
4435 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
4436 (PIC-ccflag): Define.
4438 2003-07-04 Jakub Jelinek <jakub@redhat.com>
4440 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
4442 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4444 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4446 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
4447 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
4449 2003-07-07 Ulrich Drepper <drepper@redhat.com>
4451 * sysdeps/unix/sysv/linux/kernel-features.h: Version
4452 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
4454 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
4455 compilation with HAVE_AUX_SECURE defined.
4457 2003-07-05 Richard Henderson <rth@redhat.com>
4459 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
4461 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4463 * configure.in: Also check for .cfi_rel_offset pseudo-op.
4465 2003-07-03 Jakub Jelinek <jakub@redhat.com>
4467 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
4470 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4472 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
4474 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
4476 2003-07-02 Jakub Jelinek <jakub@redhat.com>
4478 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
4479 decl and use with #ifdef NEED_DL_SYSINFO.
4481 2003-07-02 Ulrich Drepper <drepper@redhat.com>
4483 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
4484 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
4485 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4486 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
4487 vsyscall DSO was added.
4489 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
4490 depending on selected standard.
4491 (NGROUPS_MAX): Define to 8 if not defined.
4493 2003-07-02 Andreas Jaeger <aj@suse.de>
4495 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
4497 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
4499 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
4500 * malloc/thread-m.h: Include <atomic.h>.
4501 (atomic_full_barrier): Provide default.
4502 (atomic_read_barrier): Likewise.
4503 (atomic_write_barrier): Likewise.
4504 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
4506 2003-06-30 Ulrich Drepper <drepper@redhat.com>
4508 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
4510 2003-06-30 Richard Henderson <rth@redhat.com>
4512 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
4513 Invert the sense of the return value.
4514 (__arch_exchange_16_int): Fix paste-o.
4515 (__arch_exchange_{32,64}_int): Fix think-o.
4517 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
4519 2003-06-30 Richard Henderson <rth@redhat.com>
4521 * include/sys/resource.h (__getrusage): Mark hidden.
4522 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
4523 * include/sys/wait.h (__wait4): Likewise.
4525 2003-06-17 Guido Guenther <agx@sigxcpu.org>
4527 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
4529 (xstat_conv): Rename to __xstat_conv and remove static inline.
4530 (xstat64_conv): Likewise.
4532 2003-06-29 Ulrich Drepper <drepper@redhat.com>
4534 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
4535 values which cannot be handled in one nanosleep call.
4537 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
4539 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
4540 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
4542 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
4544 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4546 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
4549 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
4551 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
4552 Conditionalize function definitions that use struct kernel_stat.
4553 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
4554 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
4555 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
4557 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4559 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
4562 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
4564 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
4565 (getgrent_next_file): Don't store group name to early in blacklist.
4567 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
4568 and use memcpy instead of strcpy.
4570 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4572 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
4574 * nis/nss_compat/compat-initgroups.c: Likewise.
4575 * nis/nss_compat/compat-pwd.c: Likewise.
4576 * nis/nss_compat/compat-spwd.c: Likewise.
4578 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
4580 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
4581 functions, dlopen corresponding NSS module instead.
4583 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
4585 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
4586 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4587 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4588 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4590 2003-06-27 Ulrich Drepper <drepper@redhat.com>
4592 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
4594 2003-06-26 Roland McGrath <roland@frob.com>
4596 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
4597 * sysdeps/mach/configure: Regenerated.
4598 * sysdeps/mach/hurd/times.c (times_init): Function removed.
4599 (__times): Assume `creation_time' field is available.
4600 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
4601 Don't append set-init.
4602 * sysdeps/mach/hurd/set-init.c: File removed.
4604 2003-06-26 Roland McGrath <roland@redhat.com>
4606 * elf/elf.h (AT_SECURE): New macro.
4607 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
4608 set __libc_enable_secure.
4609 (_dl_show_auxv): Add AT_SECURE to name table.
4610 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
4611 __libc_enable_secure and __libc_enable_secure_decided.
4612 * sysdeps/unix/sysv/linux/ldsodefs.h
4613 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
4614 * sysdeps/unix/sysv/linux/kernel-features.h
4615 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
4617 2003-06-26 Ulrich Drepper <drepper@redhat.com>
4619 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
4620 boundary test to take rounding of nanoseconds into account.
4622 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
4623 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4624 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
4625 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4626 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4627 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4628 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4630 2003-06-26 Andreas Schwab <schwab@suse.de>
4632 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
4633 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
4634 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
4636 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
4638 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
4639 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
4640 dlopen corresponding NSS module instead.
4641 * nis/nss_compat/compat-pwd.c: Likewise.
4642 * nis/nss_compat/compat-spwd.c: Likewise.
4643 * nis/nss_compat/compat-initgroups.c: Disabled for now.
4644 * nss/Versions: Export __nss_lookup_function.
4646 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4648 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
4649 for the SH architecture.
4651 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
4653 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
4655 2003-06-25 Andreas Jaeger <aj@suse.de>
4657 * stdlib/tst-strtod.c (main): Declare constant long double as
4658 suggested by Jakub Jelinek and Andreas Schwab.
4660 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
4663 * stdio-common/tst-fphex.c: Fix format string.
4665 * posix/transbug.c: Include <string.h> for memset and strlen
4668 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
4670 * stdlib/tst-strtod.c (main): Pass long double value.
4672 * test-skeleton.c: Include <time.h> for nanosleep declaration.
4674 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4676 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
4679 2003-06-11 Jakub Jelinek <jakub@redhat.com>
4681 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
4682 * elf/dl-libc.c (struct dl_open_hook): New.
4683 (_dl_open_hook): New variable.
4684 (do_dlsym_private): New function.
4685 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
4686 and initialize it if found.
4687 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
4688 call dlopen_mode hook.
4689 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
4691 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
4694 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4696 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
4697 result to long int so that extensions to long long int work.
4698 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4700 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4702 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
4703 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
4704 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
4706 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
4707 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
4708 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
4709 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
4711 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4713 * test-skeleton.c (timeout_handler): If waitpid returned 0,
4714 retry once after a second. If killed == 0, assume
4715 WTERMSIG (status) == SIGKILL.
4717 2003-06-18 Roland McGrath <roland@redhat.com>
4719 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
4720 elements in the table instead of printing an empty name string.
4722 2003-06-05 Roland McGrath <roland@redhat.com>
4724 * elf/elf.h (PT_GNU_STACK): New macro.
4726 2003-06-24 Ulrich Drepper <drepper@redhat.com>
4728 * include/time.h: Define CLOCK_IDFIELD_SIZE.
4729 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
4730 * sysdeps/unix/clock_gettime.c: Likewise.
4731 * sysdeps/unix/clock_settime.c: Likewise.
4732 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
4733 clock id for thread CPU clocks.
4735 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
4736 for the fstatfs64 syscall.
4737 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
4738 the statfs64 syscall.
4740 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4741 __ASSUME_STATFS64 appropriately.
4743 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
4744 from statfs structure if it has been filled in.
4746 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
4748 (struct statfs64): Likewise.
4749 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
4750 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
4752 2003-06-24 Richard Henderson <rth@redhat.com>
4754 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
4755 the 64-bit syscall name.
4757 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
4759 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
4760 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
4762 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
4763 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
4765 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4766 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
4769 * sysdeps/alpha/bits/atomic.h: New file.
4771 2003-06-24 Andreas Schwab <schwab@suse.de>
4773 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4775 2003-06-24 Andreas Jaeger <aj@suse.de>
4777 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
4778 redeclaration with 32-bit code.
4780 2003-05-19 Ed Connell <ed.connell@sas.com>
4782 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
4783 floating point mask.
4784 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
4786 2003-06-23 Ulrich Drepper <drepper@redhat.com>
4788 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
4789 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
4790 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
4792 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
4793 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
4794 instead of __libc_cleanup_region_*.
4796 2003-06-20 Richard Henderson <rth@redhat.com>
4798 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
4799 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
4801 2003-06-20 Richard Henderson <rth@redhat.com>
4803 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
4804 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
4806 (__ASSUME_TIMEVAL64): Set for alpha.
4807 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
4808 adjtimex, osf_sigprocmask, old_adjtimex.
4809 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
4810 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
4811 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
4812 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4813 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4814 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4815 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4816 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4817 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4818 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4819 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
4821 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4822 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
4823 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
4824 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
4825 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4826 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
4827 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
4828 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
4829 defer to __syscall_name; error for rt_sigaction.
4830 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
4832 2003-06-18 Ulrich Drepper <drepper@redhat.com>
4834 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
4835 hasn't happened yet.
4837 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4838 Fix completely broken implementation. The second parameter is of
4839 type struct ucontext*.
4841 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
4844 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
4845 * sysdeps/generic/dl-hash.h: Likewise.
4847 * sysdeps/generic/memcmp.c: Remove inline from
4848 memcmp_common_alignment and memcmp_not_common_alignment definition.
4850 * intl/localealias.c (read_alias_file): Determine whether line is
4851 read incompletely early, before we modify the line.
4853 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4855 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
4856 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
4858 2003-06-17 Paul Mackerras <paulus@samba.org>
4860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
4861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
4862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
4863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
4864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
4865 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
4867 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4869 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
4871 2003-06-17 Ulrich Drepper <drepper@redhat.com>
4873 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4874 takes care of enabling cancellation.
4876 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
4877 cancelable. It's not correct to disable cancellation. Instead of
4880 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
4881 and part of the incoming set, create a temporary set without this
4883 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4884 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4886 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
4887 returning because seconds==0. Add __builtin_expect.
4889 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4891 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
4893 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
4896 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
4898 * include/libc-symbols.h: Add static_link_warning macro.
4899 * grp/initgroups.c: Print linker warning if this function
4900 is called in a static linked binary.
4901 * nss/getXXbyYY.c: Likewise.
4902 * nss/getXXbyYY_r.c: Likewise.
4903 * nss/getXXent.c: Likewise.
4904 * nss/getXXent_r.c: Likewise.
4905 * sysdeps/posix/getaddrinfo.c: Likewise.
4907 2003-06-16 Bruno Haible <bruno@clisp.org>
4909 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
4911 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
4912 (IBM1047): Add alias IBM-1047.
4913 (GBK): Add aliases MS936, WINDOWS-936.
4915 2003-06-16 Jakub Jelinek <jakub@redhat.com>
4917 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
4918 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
4919 (__xstat64_conv): Change xstat_conv to __xstat_conv.
4921 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4923 * locale/iso-639.def: Update from current official ISO 639.
4925 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
4927 2003-06-15 Andreas Jaeger <aj@suse.de>
4929 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
4931 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4932 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
4933 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
4935 * math/tgmath.h (carg): Handle real arguments.
4941 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
4942 (tests): Add test-tgmath-ret.
4943 * math/test-tgmath-ret.c: New file.
4945 * math/tgmath.h (ilogb): Return always an int.
4947 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4949 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
4950 computation so that prelinking works.
4952 2003-06-15 Ulrich Drepper <drepper@redhat.com>
4954 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
4956 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
4957 dynamic linker's map.
4959 Fix cancellation point handling wrt exception based cleanup.
4960 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
4961 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
4963 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
4964 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
4965 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
4967 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
4968 sigwait.c, and sigwaitinfo.c with exceptions.
4969 * stdlib/Makefile: Compile system.c with exceptions.
4970 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
4971 * termios/Makefile: Compile tcdrain.c with exceptions.
4972 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
4974 * sysdeps/generic/pselect.c: Likewise.
4975 * sysdeps/posix/sigpause.c: Likewise.
4976 * sysdeps/posix/system.c: Likewise.
4977 * sysdeps/posix/waitid.c: Likewise.
4978 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
4979 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
4980 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
4981 INTERNAL_SYSCALL to not use push inside asm statement so that
4982 unwind info is correct around the syscall.
4983 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
4984 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
4986 2003-06-15 Andreas Jaeger <aj@suse.de>
4988 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4991 2003-06-15 Guido Guenther <agx@sigxcpu.org>
4993 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
4996 2003-06-14 Ulrich Drepper <drepper@redhat.com>
4998 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
5001 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
5002 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
5005 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
5006 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
5007 * inet/Makefile (routines): Add inet6_option.
5008 * inet/inet6_option.c: New file.
5009 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
5010 inet6_option_init, inet6_option_append, inet6_option_alloc,
5011 inet6_option_next, and inet6_option_find.
5013 2003-06-13 Ulrich Drepper <drepper@redhat.com>
5015 * inet/netinet/ip6.h (struct ip6_ext): Define.
5017 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
5019 Fixing gcc 3.3 warnings, part II.
5020 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
5021 * elf/dl-load.c (cache_rpath): Don't inline.
5022 * iconvdata/cns11642l2.h: Always inline all functions.
5023 * iconvdata/iso-ir-165.h: Likewise.
5024 * locale/Makefile (aux): Add coll-lookup.
5025 * locale/coll-lookup.c: New file.
5026 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
5027 (collseq_table_lookup): Likewise.
5028 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
5029 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
5031 * posix/regcomp.c: Likewise.
5032 * posix/regexec.c: Likewise.
5033 * locale/programs/3level.h (*_get): Always inline.
5034 * locale/programs/locfile.h: Move definition of handle_copy to...
5035 * locale/programs/locfile.c: ...here.
5036 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
5037 (obstack_int32_grow_fast): Likewise.
5038 (utf8_encode): Likewise.
5039 (find_element): Avoid aliasing problems.
5040 (insert_value): Likewise.
5041 (collate_read): Likewise.
5042 * nss/getent.c (print_hosts): Don't inline
5043 (print_networks): Likewise.
5044 (print_shadow): Likewise.
5045 (build_doc): Likewise.
5046 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
5048 * posix/regcomp.c (re_set_fastmap): Always inline.
5049 (seek_collating_symbol_entry): Likewise.
5050 (lookup_collation_sequence_value): Likewise.
5051 (build_range_exp): Likewise.
5052 (build_collating_symbol): Likewise.
5053 * posix/regexec.c (acquire_init_state_context): Don't inline.
5054 (clean_state_log_if_need): Likewise.
5055 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
5057 (evConsTime): Likewise.
5058 (evAddTime): Likewise.
5059 (evSubTime): Likewise.
5060 (evNowTime): Likewise.
5061 (evTimeSpec): Removed.
5062 (__libc_res_nsend): Avoid aliasing problem.
5063 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
5064 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
5065 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
5067 (_dl_string_platform): Likewise.
5068 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
5069 (wcwidth_table_lookup): Likewise.
5070 (wctrans_table_lookup): Likewise.
5072 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
5074 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5076 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
5078 2003-05-29 Jim Meyering <jim@meyering.net>
5080 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
5081 && HAVE_STRFTIME]: Use underlying_strftime for %r.
5082 Suggested by Daniel Yacob <locales@geez.org>.
5084 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
5086 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
5087 @got notation with @toc.
5088 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
5089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
5091 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5093 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
5094 if only PF_INET address is needed.
5096 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
5099 * scripts/config.guess: Update from upstream version.
5100 * scripts/config.sub: Likewise.
5102 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5104 * locale/programs/ld-time.c (time_output): Also copy the era format,
5107 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
5109 * posix/transbug.c (run_test): Return 1 for failure.
5110 (do_test): Compare only if run_test is successful.
5112 2003-06-12 Simon Josefsson <jas@extundo.com>
5114 * argp/argp.h [!__THROW]: Define if undefined.
5116 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5118 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
5119 more than four parameters.
5120 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5122 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5124 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5125 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
5126 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
5128 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
5130 2003-06-12 Roland McGrath <roland@redhat.com>
5132 * Makerules ($(objpfx)stubs): Rewrite sed magic.
5134 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5136 * posix/regcomp.c (parse_expression): Deliver translation to
5137 build_word_op, and build_charclass.
5138 (build_charclass): Apply translation for character classes too.
5139 (build_word_op): Deliver translation to build_charclass.
5140 * posix/transbug.c: New file.
5141 * posix/Makefile (tests): Add transbug.
5143 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
5145 * posix/regexec.c (group_nodes_into_DFAstates): Check for
5146 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
5147 'continue' before the others.
5149 2003-06-11 Ulrich Drepper <drepper@redhat.com>
5151 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
5152 function [PR libc/5045].
5154 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
5157 * time/tzfile.c: Add a couple of __builtin_expect.
5159 Remove warnings gcc 3.3 shows.
5160 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
5161 * elf/dl-load.c (fillin_rpath): Likewise.
5162 (add_path): Likewise.
5163 * elf/dl-version.c (find_needed): Always inline.
5164 * elf/do-lookup.c (FCT): Don't inline.
5165 * iconv/Makefile: Extend vpath to intl subdir.
5166 (iconvconfig-modules): Add hash-string.
5167 * iconv/gconv_charset.h (strip): Don't inline.
5168 (upstr): Always inline.
5169 Move __gconv_compare_alias prototype to...
5170 * iconv/gconv_int.h: ...here.
5171 * iconv/gconv_db.c: Don't include gconv_charset.h.
5172 * iconv/gconv_conf.c (add_alias): Don't inline.
5173 (insert_module): Likewise.
5174 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
5175 (internal_ucs4_loop_unaligned): Likewise.
5176 (internal_ucs4_loop_single): Likewise.
5177 (ucs4_internal_loop): Likewise.
5178 (ucs4_internal_loop_unaligned): Likewise.
5179 (ucs4_internal_loop_single): Likewise.
5180 (internal_ucs4le_loop): Always inline.
5181 (internal_ucs4le_loop_unaligned): Likewise.
5182 (internal_ucs4le_loop_single): Likewise.
5183 (ucs4le_internal_loop): Likewise.
5184 (ucs4le_internal_loop_unaligned): Likewise.
5185 (ucs4le_internal_loop_single): Likewise.
5186 * iconv/loop.c: Always inline the defined functions.
5187 * iconvdata/cns11642.h: Likewise.
5188 * iconvdata/cns11642l1.h: Likewise.
5189 * iconvdata/euc-kr.c: Likewise.
5190 * iconvdata/gb2312.h: Likewise.
5191 * iconvdata/jis0201.h: Likewise.
5192 * iconvdata/jis0208.h: Likewise.
5193 * iconvdata/jis0212.h: Likewise.
5194 * iconvdata/jisx0213.h: Likewise.
5195 * iconvdata/ksc5601.h: Likewise.
5196 * iconvdata/utf-7.c (base64): Don't inline.
5197 * include/libc-symbols.h (symbol_set_first_element): Add cast
5198 (symbol_set_end_p): Likewise.
5199 * include/set-hooks (RUN_HOOK): Likewise.
5200 * inet/Makefile (aux): Add ifreq.
5201 * intl/Makefile (aux): Add some entries from routines. Add
5203 * intl/hash-string.c: New file.
5204 * intl/hash-string.h: Remove hash_string definition. Declare
5206 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
5207 * iconv/iconvconfig.c (new_name): Likewise.
5208 * intl/dcigettext.c (_nl_find_msg): Likewise.
5209 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5210 * io/ftw.c (open_dir_stream): Always inline.
5211 (process_entry): Don't inline.
5212 * locale/findlocale.c: Include gconv_int.h.
5213 * locale/setlocale.c (new_composite_name): Don't inline.
5214 * locale/weight.h (findidx): Always inline.
5215 * locale/weightwc.h (findidx): Likewise.
5216 * locale/programs/linereader.c (lr_ignore_rest): Define here.
5217 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
5219 (lr_getc): Always inline.
5220 (lr_ungetc): Likewise.
5221 * nss/nss_files/files-parse.c (parse_list): Likewise.
5222 * stdio-common/Makefile (aux): Add printf-parsemb and
5224 * stdio-common/_itoa.h (_itoa_word): Always inline.
5225 (_fitoa_word, _fitoa): Don't define here, only declare.
5226 * stdio-common/_itoa.c (_iftoa_word): Add here.
5228 * stdio-common/_itowa.h (_itowa_word): Always inline.
5229 * stdio-common/printf-parse.h (read_int): Don't inline.
5230 (find_spec): Don't define.
5231 Declare __find_specmb and __find_specwc.
5232 (parse_one_spec): Don't define.
5233 Declare __parse_one_specmb and __parse_one_specwc.
5234 * stdio-common/printf-parsemb.c: New file.
5235 * stdio-common/printf-parsewc.c: New file.
5236 * stdio-common/vfprintf.c: Update calls to find_spec and
5237 parse_one_spec for new names.
5238 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
5239 * stdlib/Makefile (aux): Add grouping and groupingwc.
5240 * stdlib/grouping.c: New file.
5241 * stdlib/groupingwc.c: New file.
5242 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
5244 * stdlib/rpmatch.c (try): Don't inline.
5245 * stdlib/strtod.c (round_and_return): Don't line.
5246 (str_to_mpn): Likewise.
5247 (__mpn_lshift_1): Always inline. Optimize only for constant count.
5248 Adjust for name change of correctly_grouped_prefix.
5249 * sysdeps/generic/strtol.c: Adjust for name change of
5250 correctly_grouped_prefix.
5251 * string/strxfrm.c (utf8_encode): Don't inline.
5252 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
5253 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
5254 * sysdeps/generic/ifreq.c: New file.
5255 * sysdeps/unix/sysv/linux/ifreq.c: New file.
5256 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
5257 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
5258 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
5259 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
5260 (fde_split): Likewise.
5261 (fde_merge): Likewise.
5262 (end_fde_sort): Likewise.
5263 (init_object): Likewise.
5264 (binary_search_unencoded_fdes): Likewise.
5265 (binary_search_single_encoding_fdes): Likewise.
5266 (binary_search_mixed_encoding_fdes): Likewise.
5267 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
5268 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
5269 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
5270 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5272 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
5273 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
5274 Export them. Prepend __ to name.
5275 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
5276 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
5277 conversion functions.
5278 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5279 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5280 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5281 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5282 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5283 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5284 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5285 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5286 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
5287 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
5288 to name. Change callers.
5289 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
5290 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
5292 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
5293 * time/tzfile.c (decode): Always inline.
5294 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
5295 Remove cast in tomb function call.
5296 * wcsmbs/wcsrtombs.c Likewise.
5297 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
5300 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5302 * po/zh_CN.po: Update from translation team.
5304 2003-06-10 Jakub Jelinek <jakub@redhat.com>
5306 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
5307 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
5309 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5311 * inet/Makefile (aux): Add check_pf.
5312 * include/ifaddrs.h: Add prototype for __check_pf.
5313 * sysdeps/generic/check_pf.c: New file.
5314 * sysdeps/unix/sysv/linux/check_pf.c: New file.
5315 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
5316 from no_netlink_support. Export.
5317 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
5320 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
5322 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
5323 from getifaddr calls.
5325 2003-06-09 Jakub Jelinek <jakub@redhat.com>
5327 * sysdeps/unix/sysv/linux/kernel-features.h
5328 (__ASSUME_SETRESGID_SYSCALL): Define.
5329 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
5330 instead of __ASSUME_SETRESUID_SYSCALL.
5331 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
5333 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
5334 inline syscall if __NR_setresuid32 is defined.
5335 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5336 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
5337 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
5338 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5339 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
5340 code handling non-existant setresgid32 syscall with
5341 #if __ASSUME_SETRESGID_SYSCALL == 0.
5343 2003-06-09 Andreas Schwab <schwab@suse.de>
5345 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
5346 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
5347 $(objpfx)rpc-proto.d.
5348 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
5349 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
5350 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
5352 2003-06-08 Ulrich Drepper <drepper@redhat.com>
5354 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
5355 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5356 defined drop compatibility code.
5357 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
5358 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5359 defined drop compatibility code.
5360 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
5361 setresuid32 syscall directly if possible.
5362 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5363 setresgid32 syscall directly if possible.
5364 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
5365 compliant. Don't change sgid.
5366 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
5367 compliant. Don't change suid.
5369 * config.h.in: Add have-forced-unwind.
5370 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
5372 2003-06-07 Ulrich Drepper <drepper@redhat.com>
5374 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
5375 returned status from child matches.
5377 * Makeconfig (gnulib): Add -lgcc_eh once again.
5379 2003-06-06 Ulrich Drepper <drepper@redhat.com>
5381 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
5383 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
5384 %edx for first parameter. This means no pushl and therefore the
5385 unwind info isn't screwed up.
5387 2003-06-04 Richard Henderson <rth@redhat.com>
5389 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
5390 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5391 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
5392 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
5393 entry sequence and explicit relocs. Add unwind info for sigreturn
5395 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
5397 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
5398 Annotate some parameters.
5399 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
5401 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
5403 * include/libc-symbols.h (symbol_set_declare): Use arrays
5404 of unspecified size.
5406 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5408 * config.make.in (ASFLAGS-config): New.
5409 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
5410 * configure.in (libc_cv_as_noexecstack): New check.
5411 (ASFLAGS_config): Substitute.
5413 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5415 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
5416 hypot, logb): Protect with #ifdef __FAST_MATH__.
5418 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5420 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
5421 #ifdef __FAST_MATH__.
5423 2003-06-03 Ulrich Drepper <drepper@redhat.com>
5425 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
5426 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5427 * posix/globtest.sh: Adjust for this change.
5429 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
5430 to get the actual PID value used in the records passed up.
5431 (getifaddrs): Don't initialize nh.pid here.
5433 2003-06-02 Ulrich Drepper <drepper@redhat.com>
5435 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
5438 * po/zh_CN.po: Update from translation team.
5440 * posix/getconf.c (main): Also recognize names without the
5443 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
5445 2003-06-02 Bernd Schmidt <bernds@redhat.com>
5447 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
5448 ldexpf, ldexpl): Only define if __FAST_MATH__.
5450 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
5452 Replace hard-coded offsets into struct sigcontext with generated file.
5453 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
5454 * sysdeps/unix/sysv/linux/ia64/Makefile
5455 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
5456 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
5457 defining SC_* macros here.
5459 2003-06-02 Jakub Jelinek <jakub@redhat.com>
5461 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
5463 2003-06-01 Jakub Jelinek <jakub@redhat.com>
5465 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
5467 2003-06-01 Ulrich Drepper <drepper@redhat.com>
5469 * test-skeleton.c (main): Request getopt to not reorder the
5472 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
5474 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
5477 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5479 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
5481 2003-05-31 Jakub Jelinek <jakub@redhat.com>
5483 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
5485 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
5486 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
5487 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
5489 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5491 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
5494 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
5496 * libio/fileops.c (_IO_file_open): Don't mark as inline.
5498 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
5501 2003-05-30 Ulrich Drepper <drepper@redhat.com>
5503 * scripts/config.guess: Update from master copy.
5504 * scripts/config.sub: Likewise.
5506 2003-05-30 Guido Guenther <agx@sigxcpu.org>
5508 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
5509 SETUP_GP64 and friends.
5510 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
5511 names in internal_syscall{6,7}.
5512 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
5513 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
5514 number of syscall arguments.
5515 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5516 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5517 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5519 2003-05-30 Andreas Jaeger <aj@suse.de>
5521 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5524 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
5527 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
5529 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5532 2003-05-30 Jakub Jelinek <jakub@redhat.com>
5534 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
5537 2003-05-11 Andreas Schwab <schwab@suse.de>
5539 * Makerules: Always use -MP together with -MD.
5540 (sed-remove-dotot): Substitute $(..) also at start of line.
5541 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
5542 Generated defines with a single compiler call.
5543 Use $(sed-remove-dotdot).
5544 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
5545 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
5546 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5547 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
5548 * sysdeps/unix/sysv/linux/mips/Makefile
5549 ($(objpfx)syscall-%.h): Likewise.
5551 2003-05-28 Roland McGrath <roland@redhat.com>
5553 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
5555 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
5557 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
5559 2003-05-28 Roland McGrath <roland@redhat.com>
5561 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
5562 rt_sigprocmask system call.
5563 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
5564 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
5566 2003-05-28 Ulrich Drepper <drepper@redhat.com>
5568 * include/libc-symbols.h: Define hidden attribute for real also if
5569 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
5571 * csu/Makefile: Add rules to build Scrt1.o.
5572 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
5573 * sysdeps/x86_64/elf/start.S: Likewise.
5575 2003-05-27 Jakub Jelinek <jakub@redhat.com>
5577 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
5578 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
5579 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
5580 pa_short_int, pa_u_short_int and pa_float.
5582 2003-05-26 Jakub Jelinek <jakub@redhat.com>
5584 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
5585 _IO_str_init_static_internal.
5586 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
5587 change size argument to _IO_size_t, don't limit sprintf to 64M.
5588 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
5589 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
5590 _IO_size_t, don't limit swprintf to 256M.
5591 (_IO_wstr_init_readonly): Remove.
5592 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
5594 (_IO_wstr_init_readonly): Remove prototype.
5595 * libio/iovsprintf.c (_IO_vsprintf): Use
5596 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
5597 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5598 * libio/memstream.c (open_memstream): Likewise.
5599 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
5600 * libio/vasprintf.c (_IO_vasprintf): Likewise.
5601 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5602 * stdio-common/tst-sprintf.c (main): Add new test.
5604 2003-05-26 Ulrich Drepper <drepper@redhat.com>
5606 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
5607 other implementation in respect of multiple uses of parameter with
5610 2003-05-25 Ulrich Drepper <drepper@redhat.com>
5612 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5613 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
5615 2003-05-22 Andreas Jaeger <aj@suse.de>
5617 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
5619 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
5620 * sysdeps/x86_64/strtok.S: Likewise.
5622 2003-05-20 Guido Guenther <agx@sigxcpu.org>
5624 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
5625 to -60 and define SI_TKILL.
5627 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
5629 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
5630 (feexcp_mask_test): Likewise.
5632 2003-05-21 Ulrich Drepper <drepper@redhat.com>
5634 * locale/programs/locale.c (main): Fix typo in last patch.
5636 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
5637 __init_array_start, __init_array_end, __fini_array_start, and
5638 __fini_array_end as hidden.
5640 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
5642 * locale/programs/locale.c (main): Report an error if setlocale()
5643 fails [PR libc/2254].
5645 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5647 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5649 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
5652 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5653 LOADARGS_6): Don't error if syscall argument is a string literal.
5654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
5655 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5656 LOADARGS_6): Likewise.
5658 2003-05-21 Andreas Jaeger <aj@suse.de>
5660 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
5661 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
5662 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
5664 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
5668 * configure.in: Test for asm cfi directives.
5670 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
5672 2003-05-17 Andreas Jaeger <aj@suse.de>
5674 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
5676 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
5678 2003-05-16 Ulrich Drepper <drepper@redhat.com>
5680 * rt/Makefile (tests): Add tst-clock_nanosleep.
5681 * rt/tst-clock_nanosleep.c: New file.
5682 * posix/Makefile (tests): Add tst-nanosleep.
5683 * posix/tst-nanosleep.c: New file.
5685 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
5687 * include/features.h (__USE_XOPEN2K): Define also for
5688 _POSIX_C_SOURCE>=200112L.
5690 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
5691 SI_TKILL code into SI_USER.
5692 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
5694 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
5696 2003-05-15 Jakub Jelinek <jakub@redhat.com>
5698 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
5699 Remove sym argument, always use refsym.
5700 (__process_machine_rela): Adjust callers.
5701 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
5703 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
5705 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5707 2003-05-15 Ulrich Drepper <drepper@redhat.com>
5709 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
5710 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
5711 print numeric values.
5713 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
5715 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
5717 2003-05-14 Andreas Schwab <schwab@suse.de>
5719 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
5721 2003-05-14 Jakub Jelinek <jakub@redhat.com>
5723 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
5724 even if no DT_NEEDED is present.
5726 2003-05-13 David Mosberger <davidm@hpl.hp.com>
5728 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
5729 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
5730 __sigjmp_save) so we can't keep the saved unat value in a scratch
5731 register (r16). Use loc2 instead.
5733 2003-05-13 Ulrich Drepper <drepper@redhat.com>
5735 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
5736 binaries it has to be relocatable.
5738 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
5740 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
5742 * sysdeps/powerpc/bits/atomic.h
5743 (__arch_compare_and_exchange_bool_8_rel): Define.
5744 (__arch_compare_and_exchange_bool_16_rel): Define.
5745 (__ARCH_REL_INSTR): Define if not already defined.
5746 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
5747 (__arch_atomic_decrement_if_positive_32):
5748 Add "memory" to clobber list.
5749 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
5750 (__arch_compare_and_exchange_val_32_rel): Define.
5751 (__arch_atomic_exchange_32): Remove.
5752 (__arch_atomic_exchange_32_acq): Define.
5753 (__arch_atomic_exchange_32_rel): Define.
5754 (atomic_compare_and_exchange_val_rel): Define.
5755 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
5756 (atomic_exchange_rel): Define.
5757 * sysdeps/powerpc/powerpc32/bits/atomic.h
5758 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
5759 (__arch_compare_and_exchange_bool_32_rel): Define.
5760 (__arch_compare_and_exchange_bool_64_rel): Define.
5761 (__arch_compare_and_exchange_val_64_rel): Define.
5762 (__arch_atomic_exchange_64): Remove.
5763 (__arch_atomic_exchange_64_acq): Define.
5764 (__arch_atomic_exchange_64_rel): Define.
5765 * sysdeps/powerpc/powerpc64/bits/atomic.h
5766 (__arch_compare_and_exchange_bool_32_rel): Define.
5767 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
5768 (__arch_compare_and_exchange_bool_64_rel): Define.
5769 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
5770 (__arch_compare_and_exchange_val_64_rel): Define.
5771 (__arch_atomic_exchange_64): Remove.
5772 (__arch_atomic_exchange_64_acq): Define.
5773 (__arch_atomic_exchange_64_rel): Define.
5774 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
5775 (__arch_atomic_decrement_if_positive_64):
5776 Add "memory" to clobber list.
5777 [!UP](__ARCH_REL_INSTR): Define as lwsync.
5779 2003-05-11 Andreas Schwab <schwab@suse.de>
5781 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
5783 2003-05-11 Ulrich Drepper <drepper@redhat.com>
5785 * time/tst-strftime.c (do_test): Add tests for - flag.
5787 2003-05-11 Jim Meyering <jim@meyering.net>
5789 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
5790 the space-padded-by-default conversion specifiers, %e, %k, %l.
5792 2003-05-11 Andreas Schwab <schwab@suse.de>
5794 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
5796 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5798 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
5799 already defined and when really needed.
5800 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5802 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5804 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
5805 headers, add defines from kernel header, move it from here...
5806 * inet/netinet/igmp.h: ... to here.
5807 * inet/Makefile (headers): Add netinet/igmp.h.
5808 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
5809 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
5811 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5813 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
5814 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
5816 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5818 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
5819 (remove __THROW from possible cancellation points).
5821 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5823 * posix/sched.h (CPU_SETSIZE): Define.
5825 2003-05-09 Ulrich Drepper <drepper@redhat.com>
5827 * Makeconfig (gnulib): Remove -lgcc_eh again.
5829 * posix/sched.h: Change prototypes of sched_getaffinity and
5830 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
5831 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
5832 * sysdeps/generic/sched_setaffinity.c: Likewise.
5833 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
5834 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
5835 __CPU_CLR, and __CPU_ISSET.
5836 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5837 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
5838 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
5840 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
5841 (atomic_exchange_rel): New #define.
5842 * sysdeps/ia64/bits/atomic.h: Likewise.
5843 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
5845 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
5846 * sysdeps/powerpc/bits/atomic.h: Likewise.
5847 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
5848 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
5849 * sysdeps/x86_64/bits/atomic.h: Likewise.
5850 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
5852 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
5854 2003-05-08 Ulrich Drepper <drepper@redhat.com>
5856 * malloc/thread-m.h: Remove special handling of thread_atfork if
5857 HAVE_register_atfork_malloc is defined.
5859 2003-05-07 Andreas Jaeger <aj@suse.de>
5861 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
5864 2003-05-06 Ulrich Drepper <drepper@redhat.com>
5866 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
5867 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5868 * libio/libioP.h: Declare _IO_old_init.
5869 * libio/genops.c (_IO_no_init): Split in two. New function
5872 2003-05-05 Ulrich Drepper <drepper@redhat.com>
5874 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
5876 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
5878 * include/unistd.h: Declare __libc_enable_secure_decided.
5879 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
5880 and AT_EGID. If all found, set __libc_enable_secure and
5881 __libc_enable_secure_decided.
5883 * sysdeps/generic/libc-start.c [!SHARED]: Call
5884 __libc_check_standard_fds after __libc_init_first.
5886 2003-05-05 Roland McGrath <roland@redhat.com>
5888 * Makerules (common-before-compile): New variable.
5889 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
5890 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
5891 to after all setting of before-compile.
5893 2003-05-05 Jakub Jelinek <jakub@redhat.com>
5895 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5896 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
5897 * sysdeps/powerpc/powerpc32/bits/atomic.h
5898 (__arch_compare_and_exchange_val_64_acq): Likewise.
5899 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5900 (__arch_compare_and_exchange_val_8_acq,
5901 __arch_compare_and_exchange_val_16_acq,
5902 __arch_compare_and_exchange_val_64_acq): Likewise.
5903 * sysdeps/sparc/sparc64/bits/atomic.h
5904 (__arch_compare_and_exchange_val_8_acq,
5905 __arch_compare_and_exchange_val_16_acq): Likewise.
5906 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5907 __arch_compare_and_exchange_val_16_acq,
5908 __arch_compare_and_exchange_val_64_acq): Likewise.
5909 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5910 (__arch_compare_and_exchange_val_64_acq): Likewise.
5911 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
5913 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
5915 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5916 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
5917 Return long instead of int.
5918 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
5919 0xfffff001u with -4095UL.
5921 2003-05-05 Andreas Jaeger <aj@suse.de>
5923 * sysdeps/x86_64/fpu_control.h: New from i386.
5925 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
5926 Define if not defined.
5928 * sunrpc/Makefile (generated-dirs): New variable.
5929 * resolv/Makefile (generated): New variable.
5931 2003-05-04 Roland McGrath <roland@redhat.com>
5933 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
5934 Depend on $(before-compile).
5936 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
5937 pattern rule. The implicit rule could be ruled out when $(objpfx)
5938 didn't exist at the time of its consideration (ugh!).
5940 * Makerules (+make-deps): Fix target matching.
5941 Use $(sed-remove-dotdot).
5943 2003-05-03 Ulrich Drepper <drepper@redhat.com>
5945 * nscd/nscd.c (main): Parse config file right after parsing
5946 parameters. Then, if get_stats is true, call receive_print_stats.
5947 Drop parameter from nscd_init call.
5948 (get_stats): New variable.
5949 (parse_opt): Set get_stats, don't call receive_print_stats here.
5950 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
5952 * nscd/connections.c (stat_user, stat_uid): New variables.
5954 (nscd_init): Don't read configuration file here. Drop parameter.
5955 (handle_request): Cleanup handling of non-database lookup requests.
5956 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
5957 Get UID of the specified user. Use xstrdup instead of strdup.
5958 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
5960 * nscd/Makefile (nscd-modules): Add xstrdup.
5961 * nscd/nscd.conf: Document stat-user entry.
5963 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
5965 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
5968 2003-04-22 Roland McGrath <roland@redhat.com>
5970 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
5971 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
5972 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
5973 * elf/dl-support.c: Update defn.
5974 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
5975 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5976 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
5977 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
5978 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
5979 set, set up a link_map for the preloaded, prelinked object.
5981 2003-05-03 Roland McGrath <roland@redhat.com>
5983 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
5984 * stdio-common/Makefile: ... not here.
5986 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
5987 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
5989 2003-05-02 Ulrich Drepper <drepper@redhat.com>
5991 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
5993 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
5995 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
5996 comparing ftab elements.
5997 (_dl_unmap): Fix typo in test.
5998 (_dl_make_fptr): Fix typos introduced in last change.
6000 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
6001 original patch. Use non-exported symbols. Mark translatable
6002 strings. Pretty printing.
6004 2003-05-02 Roland McGrath <roland@redhat.com>
6006 * Makerules (do-stamp): Do $(make-target-directory).
6008 2003-04-07 H.J. Lu <hjl@gnu.org>
6010 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
6012 2003-04-03 H.J. Lu <hjl@gnu.org>
6014 * sysdeps/ia64/dl-fptr.c: Moved to ...
6015 * sysdeps/generic/dl-fptr.c: Here.
6017 * sysdeps/generic/dl-fptr.h: New.
6018 * sysdeps/ia64/dl-fptr.h: New.
6020 * sysdeps/ia64/dl-symaddr.c: Moved to ...
6021 * sysdeps/generic/dl-symaddr.c: here.
6023 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
6024 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
6025 (ia64_fdesc): Likewise.
6026 (ia64_fdesc_table): Likewise.
6027 (__ia64_make_fptr): Likewise.
6028 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
6029 with _dl_boot_fptr_table.
6030 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
6032 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
6034 2003-05-01 Roland McGrath <roland@redhat.com>
6036 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
6037 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
6039 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6040 Use $(make-target-directory).
6041 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6043 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
6044 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
6045 (compile-command.s, compile-command.c): Likewise.
6046 ($(objpfx)%.d): All such pattern rules removed.
6047 ($(+sysdir_pfx)sysd-rules): Don't generate them.
6048 ($(common-objpfx)dummy.d): Target removed.
6049 (make-dummy-dep): Variable removed.
6050 (generate-md5): Likewise.
6051 (%.d: %.dt): New pattern rule.
6052 (+depfiles): Use $(wildcard) function to get just existing *.d files
6053 and .d files for existing *.dt files.
6054 (common-clean): Remove all *.d and *.dt files.
6055 (before-compile): Add $(objpfx). when it doesn't exist,
6056 regardless of $(no_deps).
6057 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
6058 (rtld-depfiles): Use .os.d instead of .d names.
6059 Include existing *.d files and .d files for existing *.dt files.
6061 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
6062 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
6064 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
6065 Do s-*.d includes only if we have some syscall routines in this subdir.
6067 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
6068 @nobits. The former is accepted by gas on any ELF platform.
6070 2003-05-01 Ulrich Drepper <drepper@redhat.com>
6072 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
6074 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
6076 2003-04-29 Andreas Schwab <schwab@suse.de>
6078 * string/test-strcat.c (do_one_test): Fix attribute name.
6080 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
6082 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
6083 uc_flags long for all ABIs.
6085 2003-04-30 Andreas Jaeger <aj@suse.de>
6087 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
6088 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
6089 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
6090 Add bi-arch support.
6092 2003-04-30 Ulrich Drepper <drepper@redhat.com>
6094 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
6095 (__posix_memalign): Use __memalign_internal instead of memalign.
6097 2003-04-29 Roland McGrath <roland@redhat.com>
6099 * configure.in: Search for AUTOCONF unconditionally.
6100 Just don't complain about missing it under --without-cvs.
6102 * include/libc-symbols.h (__symbol_set_attribute): New macro,
6103 give hidden for [SHARED] and weak for [! SHARED].
6104 (symbol_set_declare): Use that. Never need weak_extern these days.
6105 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
6106 Depend on $(..)Makerules.
6108 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6110 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
6111 variants of socket, bind, recvmsg, and sendto.
6113 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
6115 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
6116 * signal/sigaddset.c: Add libc_hidden_def.
6117 * signal/sigdelset.c: Likewise.
6119 2003-04-29 Jakub Jelinek <jakub@redhat.com>
6121 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
6122 to the end of the file.
6124 * configure.in: Change __oline__ to $LINENO.
6125 (HAVE_BUILTIN_REDIRECTION): New check.
6126 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
6127 * include/libc-symbols.h (libc_hidden_builtin_proto,
6128 libc_hidden_builtin_def, libc_hidden_builtin_weak,
6129 libc_hidden_builtin_ver): Define.
6130 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
6131 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
6132 strspn, strstr): Add libc_hidden_builtin_proto.
6133 * intl/plural.y: Include string.h.
6134 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
6135 libc_hidden_builtin_def.
6136 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
6137 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
6138 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
6139 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
6140 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
6141 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
6142 * sysdeps/alpha/memchr.S (memchr): Likewise.
6143 * sysdeps/alpha/memset.S (memset): Likewise.
6144 * sysdeps/alpha/strcat.S (strcat): Likewise.
6145 * sysdeps/alpha/strchr.S (strchr): Likewise.
6146 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
6147 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
6148 * sysdeps/alpha/strlen.S (strlen): Likewise.
6149 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
6150 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
6151 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
6152 * sysdeps/arm/memset.S (memset): Likewise.
6153 * sysdeps/arm/strlen.S (strlen): Likewise.
6154 * sysdeps/generic/memchr.c (memchr): Likewise.
6155 * sysdeps/generic/memcpy.c (memcpy): Likewise.
6156 * sysdeps/generic/memmove.c (memmove): Likewise.
6157 * sysdeps/generic/memset.c (memset): Likewise.
6158 * sysdeps/generic/strcat.c (strcat): Likewise.
6159 * sysdeps/generic/strchr.c (strchr): Likewise.
6160 * sysdeps/generic/strcmp.c (strcmp): Likewise.
6161 * sysdeps/generic/strcpy.c (strcpy): Likewise.
6162 * sysdeps/generic/strcspn.c (strcspn): Likewise.
6163 * sysdeps/generic/strlen.c (strlen): Likewise.
6164 * sysdeps/generic/strncmp.c (strncmp): Likewise.
6165 * sysdeps/generic/strncpy.c (strncpy): Likewise.
6166 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
6167 * sysdeps/generic/strrchr.c (strrchr): Likewise.
6168 * sysdeps/generic/strspn.c (strspn): Likewise.
6169 * sysdeps/generic/strstr.c (strstr): Likewise.
6170 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6171 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6172 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
6173 * sysdeps/i386/i586/memset.S (memset): Likewise.
6174 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
6175 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
6176 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6177 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
6178 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6179 * sysdeps/i386/i686/memset.S (memset): Likewise.
6180 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6181 * sysdeps/i386/memchr.S (memchr): Likewise.
6182 * sysdeps/i386/memset.c (memset): Likewise.
6183 * sysdeps/i386/strchr.S (strchr): Likewise.
6184 * sysdeps/i386/strcspn.S (strcspn): Likewise.
6185 * sysdeps/i386/strlen.c (strlen): Likewise.
6186 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6187 * sysdeps/i386/strrchr.S (strrchr): Likewise.
6188 * sysdeps/i386/strspn.S (strspn): Likewise.
6189 * sysdeps/ia64/memchr.S (memchr): Likewise.
6190 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
6191 * sysdeps/ia64/memmove.S (memmove): Likewise.
6192 * sysdeps/ia64/memset.S (memset): Likewise.
6193 * sysdeps/ia64/strcat.S (strcat): Likewise.
6194 * sysdeps/ia64/strchr.S (strchr): Likewise.
6195 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
6196 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
6197 * sysdeps/ia64/strlen.S (strlen): Likewise.
6198 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
6199 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
6200 * sysdeps/m68k/memchr.S (memchr): Likewise.
6201 * sysdeps/m68k/strchr.S (strchr): Likewise.
6202 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
6203 * sysdeps/mips/mips64/memset.S (memset): Likewise.
6204 * sysdeps/mips/memcpy.S (memcpy): Likewise.
6205 * sysdeps/mips/memset.S (memset): Likewise.
6206 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6207 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
6208 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
6209 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
6210 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
6211 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6212 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6213 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
6214 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
6215 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
6216 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
6217 * sysdeps/powerpc/strcat.c (strcat): Likewise.
6218 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
6219 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
6220 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
6221 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
6222 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
6223 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
6224 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
6225 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
6226 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
6227 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
6228 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
6229 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
6230 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
6231 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
6232 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
6233 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
6234 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
6235 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
6236 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
6237 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
6238 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
6239 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
6240 * sysdeps/sh/memcpy.S (memcpy): Likewise.
6241 * sysdeps/sh/memset.S (memset): Likewise.
6242 * sysdeps/sh/strlen.S (strlen): Likewise.
6243 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
6244 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
6245 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
6246 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
6247 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
6248 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
6249 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
6250 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
6251 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
6252 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
6253 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
6254 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
6255 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6256 * sysdeps/x86_64/memset.S (memset): Likewise.
6257 * sysdeps/x86_64/strcat.S (strcat): Likewise.
6258 * sysdeps/x86_64/strchr.S (strchr): Likewise.
6259 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
6260 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
6261 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
6262 * sysdeps/x86_64/strlen.S (strlen): Likewise.
6263 * sysdeps/x86_64/strspn.S (strspn): Likewise.
6264 * string/string-inlines.c: Move...
6265 * sysdeps/generic/string-inlines.c: ...here.
6266 (__memcpy_g, __strchr_g): Remove.
6267 (__NO_INLINE__): Define before including <string.h>,
6268 undefine after. Include bits/string.h and bits/string2.h.
6269 * sysdeps/i386/i486/string-inlines.c: New file.
6270 * sysdeps/i386/string-inlines.c: New file.
6271 * sysdeps/i386/i486/Versions: Remove.
6272 All GLIBC_2.1.1 symbols moved...
6273 * sysdeps/i386/Versions (libc): ...here.
6275 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6277 * sysdeps/i386/fpu/Makefile: New file.
6278 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
6279 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6280 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6281 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
6284 2003-04-28 Ulrich Drepper <drepper@redhat.com>
6286 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
6287 * nscd/nscd_getpw_r.c: Likewise.
6288 * nscd/nscd_gethst_r.c: Likewise.
6290 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6292 * nscd/pwdcache.c: Initialize .version element in result.
6293 * nscd/grpcache.c: Likewise.
6294 * nscd/pwdcache.c: Likewise.
6296 2003-04-27 Andreas Schwab <schwab@suse.de>
6298 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
6301 2003-04-27 Andreas Schwab <schwab@suse.de>
6303 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
6305 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6307 * nscd/connections.c (client_queued): New variable.
6308 (nscd_run): Revamp the loop. Don't call poll except for cleanup
6309 threads. Keep track of the number of delays caused because of busy
6311 * nscd/nscd.h: Declare client_queued.
6312 * nscd/nscd_stat.c: Transmit and print client_queued information.
6314 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
6316 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
6317 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
6319 2003-04-26 Ulrich Drepper <drepper@redhat.com>
6321 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
6322 tracking of freed memory in static TLS block.
6323 * elf/Makefile: Add rules to build and run tst-tls13.
6324 * elf/tst-tls13.c: New file.
6325 * elf/tst-tlsmod13.c: New file.
6326 * elf/tst-tlsmod13a.c: New file.
6328 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
6330 * elf/dl-reloc.c: Pretty printing.
6332 2003-04-26 Roland McGrath <roland@redhat.com>
6334 * Makerules ($(common-objpfx)shlib.lds): New target.
6335 (common-generated): Add it.
6336 (build-shlib, build-module): Use that instead of generating every time.
6337 ($(common-objpfx)libc.so): Depend on it.
6338 (lib%.so rule): Likewise.
6339 (build-module-helper-objlist): Remove %.lds.
6340 (LDSEDCMD-c.so): Variable removed.
6341 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
6342 Depend on $(common-objpfx)shlib.lds.
6343 * dlfcn/Makefile ($(test-modules)): Likewise.
6345 2003-04-26 Roland McGrath <roland@frob.com>
6347 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
6349 2003-04-26 Andreas Schwab <schwab@suse.de>
6351 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
6353 2003-04-25 Ulrich Drepper <drepper@redhat.com>
6355 * nscd/cache.c (cache_search): Keep track of how many chain links
6356 we searched and update table statistics.
6357 (cache_add): Keep track of how many values are in the table.
6358 (prune_cache): Likewise. Keep track of locking success.
6359 Print messages about removed entries in separate pass.
6360 * nscd/connections.c (handle_request): Don't print debug message here.
6361 The caller will do it. Keep track of locking success.
6362 (nscd_run): Print debug message. Also print PID of the client process.
6363 * nscd/nscd.c (start_time): New variable.
6364 (main): Remember start time.
6365 * nscd/nscd.h: Declare start_time.
6366 (struct database): Add more members for new statistics.
6367 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
6370 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
6372 2003-04-22 Jakub Jelinek <jakub@redhat.com>
6374 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
6375 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
6376 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
6378 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
6379 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
6380 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
6381 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
6384 2003-04-24 Ulrich Drepper <drepper@redhat.com>
6386 * nss/getent.c: Implement alternative host database lookup via
6389 * include/ifaddrs.h: New file.
6390 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
6392 * resolv/netdb.h: ...here.
6393 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
6394 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6395 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
6398 2003-04-24 Roland McGrath <roland@redhat.com>
6400 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
6402 2003-04-24 Jakub Jelinek <jakub@redhat.com>
6404 * elf/dl-reloc.c (allocate_static_tls): Rename to...
6405 (_dl_allocate_static_tls): ... this function. No longer static.
6406 (CHECK_STATIC_TLS): Adjust.
6407 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
6408 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
6409 Add SYM_MAP argument.
6410 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
6411 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
6412 TLS relocs here. #ifdef out relocs which never appear in
6413 .gnu.conflict section from dl-conflict.c processing.
6414 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6415 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
6417 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
6418 out relocs which never appear in .gnu.conflict section from
6419 dl-conflict.c processing.
6420 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6421 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6422 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6423 Use r_type in RESOLVE macro.
6425 2003-04-23 Ulrich Drepper <drepper@redhat.com>
6427 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
6428 NULL. Remove code made redundant by this assumption.
6429 (__yp_unbind): Add call to free. Adjust all callers.
6431 * nis/ypclnt.c (yp_all): Free the dom_binding object after
6434 * grp/initgroups.c (getgrouplist): Don't copy too much into the
6435 user buffer if more groups are found than fit into it.
6437 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
6440 2003-04-23 Jakub Jelinek <jakub@redhat.com>
6442 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
6443 not rc == errno. Use extend_alloca.
6445 * elf/tst-tls12.c (main): Fix declaration.
6446 * elf/tst-tls10.c (dummy): Make hidden instead of static.
6447 * elf/tst-tlsmod7.c (dummy): Likewise.
6448 * elf/tst-tlsmod8.c (dummy): Likewise.
6449 * elf/tst-tlsmod9.c (dummy): Likewise.
6451 2003-04-22 Roland McGrath <roland@redhat.com>
6453 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
6454 (open_not_cancel): Make last argument non-optional.
6455 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
6456 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6457 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6459 * include/tls.h: Protect against multiple inclusion.
6461 2003-04-22 Ulrich Drepper <drepper@redhat.com>
6463 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
6464 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
6465 open_socket. Not static anymore.
6466 (nscd_gethst_r): Use __nscd_open_socket.
6467 * nscd/nscd_getgr_r.c (open_socket): Removed.
6468 (nscd_getgr_r): Use __nscd_open_socket.
6469 * nscd/nscd_getpw_r.c (open_socket): Removed.
6470 (nscd_getpw_r): Use __nscd_open_socket.
6472 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
6473 * nscd/connections.c (handle_request): Add cast to avoid warning.
6475 2003-04-21 Ulrich Drepper <drepper@redhat.com>
6477 * signal/sigfillset.c: Moved to...
6478 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
6479 do not set the corresponding bit.
6481 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
6483 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
6484 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
6485 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
6486 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
6487 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
6489 2003-04-20 Ulrich Drepper <drepper@redhat.com>
6491 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
6492 first syscall parameter to const char*.
6494 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6496 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
6498 * configure.in: Add AC_PROG_CXX.
6499 * config.make.in (CXX): Define.
6501 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
6502 __len to size_t to avoid warnings.
6504 2003-04-18 Jes Sorensen <jes@wildopensource.com>
6506 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
6508 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6510 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6512 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
6513 UNREGISTER_ATFORK if d == NULL.
6515 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
6516 * dirent/dirent.h: Likewise.
6517 * dlfcn/dlfcn.h: Likewise.
6518 * grp/grp.h: Likewise.
6519 * iconv/iconv.h: Likewise.
6520 * io/fcntl.h: Likewise.
6521 * io/ftw.h: Likewise.
6522 * libio/stdio.h: Likewise.
6523 * misc/sys/mman.h: Likewise.
6524 * misc/sys/select.h: Likewise.
6525 * misc/sys/syslog.h: Likewise.
6526 * misc/sys/uio.h: Likewise.
6527 * posix/spawn.h: Likewise.
6528 * posix/unistd.h: Likewise.
6529 * posix/sys/wait.h: Likewise.
6530 * pwd/pwd.h: Likewise.
6531 * resolv/netdb.h: Likewise.
6532 * rt/aio.h: Likewise.
6533 * shadow/shadow.h: Likewise.
6534 * signal/signal.h: Likewise.
6535 * socket/sys/socket.h: Likewise.
6536 * stdlib/stdlib.h: Likewise.
6537 * streams/stropts.h: Likewise.
6538 * string/string.h: Likewise.
6539 * sysdeps/gnu/utmpx.h: Likewise.
6540 * sysvipc/sys/msg.h: Likewise.
6541 * termios/termios.h: Likewise.
6542 * time/time.h: Likewise.
6543 * wcsmbs/wchar.h: Likewise.
6544 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
6546 * misc/daemon.c: Likewise.
6547 * sysdeps/generic/backtracesymsfd.c: Likewise.
6548 * sysdeps/generic/check_fds.c: Likewise.
6549 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
6550 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
6551 * sysdeps/generic/not-cancel.h: New file.
6552 * csu/Makefile (distribute): Add not-cancel.h.
6553 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
6554 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
6555 for assert.c and assert-perr.c to include <fatal-prepare.h>.
6556 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
6558 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
6559 errno and unlink first.
6561 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
6563 2003-04-18 Ulrich Drepper <drepper@redhat.com>
6565 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
6566 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
6568 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6570 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
6572 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
6573 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
6576 * signal/Makefile (tests): Add tst-sigsimple.
6577 * signal/tst-sigsimple.c: New file.
6579 2003-04-16 Jakub Jelinek <jakub@redhat.com>
6581 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
6583 (tests): Add tst-tls1[0-2].
6584 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
6585 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
6586 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
6587 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
6588 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
6589 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
6590 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
6591 * elf/tst-tls10.c: New test.
6592 * elf/tst-tls11.c: New test.
6593 * elf/tst-tls12.c: New test.
6594 * elf/tst-tls10.h: New file.
6595 * elf/tst-tlsmod7.c: New file.
6596 * elf/tst-tlsmod8.c: New file.
6597 * elf/tst-tlsmod9.c: New file.
6598 * elf/tst-tlsmod10.c: New file.
6599 * elf/tst-tlsmod11.c: New file.
6600 * elf/tst-tlsmod12.c: New file.
6602 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6604 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
6605 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
6606 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
6608 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6610 * posix/regex.h: Include <sys/types.h>.
6612 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
6613 The signal number must be checked.
6614 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6615 The signal number must be checked [PR libc/5004].
6617 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
6618 don't do anything fancy.
6620 * sysdeps/generic/bits/libc-lock.h: Define
6621 __rtld_lock_define_initialized_recursive.
6623 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
6624 contacting nscd if NOT_USENSCD_NAME > 0.
6625 * nss/nsswitch.c (__nss_disable_nscd): New function.
6626 * nss/nsswitch.h: Declare it.
6627 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
6628 * nscd/nscd.c (main): Call __nss_disable_nscd.
6630 2003-04-16 Ulrich Drepper <drepper@redhat.com>
6632 * stdio-common/perror.c (perror): We don't need to set the offset
6633 to _IO_pos_bad, this is how streams are initialized.
6635 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
6636 (time_output): If necessary, allocate new buffer for .name string if
6637 padding is required.
6639 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
6640 before copying. This might leave holes in the list. Adjust
6641 pointers if necessary.
6642 (netlink_receive): Allocate only one block.
6643 (free_netlink_handle): Adjust appropriately.
6644 (getifaddrs): Lots of cleanups.
6646 * string/test-strncpy.c (do_one_test): Mark start and stop as
6648 * string/test-memchr.c: Likewise.
6649 * string/test-memcmp.c: Likewise.
6650 * string/test-memcpy.c: Likewise.
6651 * string/test-memmove.c: Likewise.
6652 * string/test-memset.c: Likewise.
6653 * string/test-strcat.c: Likewise.
6654 * string/test-strchr.c: Likewise.
6655 * string/test-strcmp.c: Likewise.
6656 * string/test-strcpy.c: Likewise.
6657 * string/test-strlen.c: Likewise.
6658 * string/test-strncmp.c: Likewise.
6659 * string/test-strpbrk.c: Likewise.
6660 * string/test-strrchr.c: Likewise.
6661 * string/test-strspn.c: Likewise.
6663 2003-04-15 Roland McGrath <roland@redhat.com>
6665 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
6667 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
6668 INTUSE(__register_frame_info_bases).
6670 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6672 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
6673 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
6674 AT_SYSINFO_EH_FRAME. Adjust string width.
6675 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
6676 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
6677 Add _dl_sysinfo_eh_frame field.
6678 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
6679 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
6681 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
6682 if _dl_sysinfo_eh_frame is non-NULL.
6684 * Makeconfig (gnulib): Add -lgcc_eh.
6686 * config.h.in: Define HAVE_FORCED_UNWIND.
6688 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6690 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
6691 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
6693 2003-04-15 Jakub Jelinek <jakub@redhat.com>
6695 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
6696 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
6697 against local symbol in conflict processing.
6699 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6701 * sysdeps/powerpc/bits/atomic.h
6702 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
6703 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
6705 (__arch_compare_and_exchange_val_32_acq): Define.
6706 (atomic_compare_and_exchange_val_acq): Define.
6708 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6710 * include/atomic.h: Pretty printing.
6712 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6714 * stdio-common/vfscanf.c: Add casts to avoid warnings.
6716 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6718 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
6719 * sysdeps/x86_64/bits/atomic.h: Likewise.
6721 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6723 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
6724 POPARGS_1 to emit labels for the mov instructions.
6726 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6728 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
6730 2003-04-14 Roland McGrath <roland@redhat.com>
6732 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
6735 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
6737 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6739 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
6740 position. Reported by jreiser@BitWagon.com.
6742 2003-04-13 Ulrich Drepper <drepper@redhat.com>
6744 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
6745 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
6746 * sysdeps/generic/unwind-dw2.c: Likewise.
6747 * sysdeps/generic/unwind-pe.h: Likewise.
6749 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
6751 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
6752 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
6753 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
6754 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
6755 (mcontext_t): Make it match the 32-bit mips kernel in o32.
6756 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
6757 the mips and mips64 headers.
6758 (struct user): Port to n32/n64.
6760 2003-04-12 Ulrich Drepper <drepper@redhat.com>
6762 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
6765 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
6766 __ASSUME_VSYSCALL is defined don't add restorer.
6767 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6768 __ASSUME_VSYSCALL for 2.5.53.
6770 2003-04-11 Ulrich Drepper <drepper@redhat.com>
6772 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
6773 Remove HAVE_CANCELBUF code. Replace with code using the new
6774 initializers for unwind-based cleanup handling.
6775 * sysdeps/generic/unwind.h: Update from latest gcc version.
6776 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
6777 places to allow unwind data generation.
6778 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
6779 * sysdeps/x86_64/bits/setjmp.h: Likewise.
6780 * sysdeps/sh/bits/setjmp.h: Likewise.
6781 * sysdeps/powerpc/bits/setjmp.h: Likewise.
6782 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
6783 * sysdeps/alpha/bits/setjmp.h: Likewise.
6785 2003-04-11 Roland McGrath <roland@redhat.com>
6787 * csu/tst-empty.c: New file.
6788 * csu/Makefile (tests, tests-static): Add it.
6790 2003-04-11 Jakub Jelinek <jakub@redhat.com>
6792 * string/test-strcmp.c (do_random_tests): Test whether return value
6793 has been promoted to wordsize if the ABI requires caller to do so.
6794 * string/test-strncmp.c (do_random_tests): Likewise.
6795 * string/test-memcmp.c (do_random_tests): Likewise.
6797 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
6800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6801 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
6802 is not defined, but the prctl constants are.
6804 * string/tester.c (test_strcmp): Fix a typo.
6806 2003-04-09 Ulrich Drepper <drepper@redhat.com>
6808 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
6809 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
6811 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6813 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
6815 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
6817 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
6819 * sysdeps/mips/mips64/memset.S: Likewise.
6820 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
6821 Use t0 instead of t4 as temporary.
6823 2003-04-07 Ulrich Drepper <drepper@redhat.com>
6825 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
6826 feof_unlocked instead of feof.
6827 (add_dir): Ignore trailing whitespace.
6829 2003-04-07 Jakub Jelinek <jakub@redhat.com>
6831 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
6832 sum of SIZE1 and SIZE2 arguments.
6834 2003-04-06 Ulrich Drepper <drepper@redhat.com>
6836 * iconv/iconv_prog.c (process_block): Don't print message about
6837 invalid input if the -c option is used.
6838 (main): Correctly append IGNORE string for -c option.
6840 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6842 * sysdeps/sh/bits/atomic.h: Moved to ...
6843 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
6844 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
6846 (atomic_bit_set, atomic_bit_test_set): Likewise.
6847 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
6849 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6851 2003-04-06 Roland McGrath <roland@redhat.com>
6853 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
6854 restoration as done for setcontext yesterday.
6856 2003-04-06 Jakub Jelinek <jakub@redhat.com>
6858 * elf/rtld.c: Revert 2003-03-14 change.
6859 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
6860 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
6862 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6864 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
6866 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6867 Always initialize *signgamp before returning an error.
6869 2003-04-05 Roland McGrath <roland@redhat.com>
6871 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
6872 below the stack pointer even if switching to the same context we are
6875 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6877 * catgets/gencat.c (read_input_file): Make sure that \n is not
6878 alone on the line before testing for continuation.
6880 * math/test-tgmath.c (compile_test): Initialize c.
6882 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
6884 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
6885 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
6886 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
6888 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
6889 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
6890 structure on n32 as well.
6891 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
6892 data types on n32 and n64.
6894 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6896 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
6899 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
6900 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
6901 instead of __register_atfork.
6903 2003-04-05 Jakub Jelinek <jakub@redhat.com>
6905 * stdio-common/reg-printf.c (__register_printf_function): Calloc
6906 instead of malloc __printf_arginfo_table and __printf_function_table.
6907 Reported by John Reiser <jreiser@BitWagon.com>.
6909 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
6911 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
6912 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
6914 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
6917 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
6919 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
6922 2003-04-03 Roland McGrath <roland@redhat.com>
6924 * configure.in: Fix up use of compilation flags to match the build:
6925 For .s files, $ASFLAGS;
6926 For .S files, $CPPFLAGS $ASFLAGS;
6927 For .c files, $CFLAGS $CPPFLAGS;
6928 when linking, add $LDFLAGS.
6929 * configure: Regenerated.
6931 2003-04-03 Jakub Jelinek <jakub@redhat.com>
6933 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
6934 for atomic_compare_and_exchange_bool_acq failure.
6936 2003-04-03 Ulrich Drepper <drepper@redhat.com>
6938 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
6939 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
6940 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
6941 Remove declaration of pthread_atfork.
6943 2003-04-02 Ulrich Drepper <drepper@redhat.com>
6945 * locale/iso-639.def: Add many more languages from the current ISO 639.
6947 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
6948 * sysdeps/generic/semtimedop.c: New file.
6949 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
6950 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
6951 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6952 * sysvipc/Makefile (routines): Add semtimedop.
6953 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
6954 * sysvipc/sys/sem.h: Declare semtimedop.
6956 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
6958 * configure.in: Check for __register_frame_info in both
6960 * configure: Regenerated.
6962 2003-04-01 Roland McGrath <roland@redhat.com>
6964 * scripts/abilist.awk: Allow dots in soname suffix.
6966 * scripts/abilist.awk (emit): Fix bailout condition.
6968 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6970 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
6973 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
6974 register as input to asm.
6976 2003-04-01 Jakub Jelinek <jakub@redhat.com>
6978 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
6980 2003-04-01 Andreas Jaeger <aj@suse.de>
6982 * configure.in: Output as/ld as name if version is too old.
6984 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
6986 * configure.in: Don't require an installed C library in the test
6987 for ".set" assembler support.
6989 2003-03-31 Roland McGrath <roland@redhat.com>
6991 * signal/tst-sigset.c: New file.
6992 * signal/Makefile (tests): Add it.
6994 2003-03-31 Ulrich Drepper <drepper@redhat.com>
6996 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
6997 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
6998 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
6999 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
7000 (__SIGRTMAX): Adjust accordingly.
7001 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
7002 second compatibility symbol set.
7003 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
7005 2003-03-31 Andreas Schwab <schwab@suse.de>
7007 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
7009 (atomic_decrement_and_test): Fix test.
7011 2003-03-31 Jakub Jelinek <jakub@redhat.com>
7013 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
7014 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
7015 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
7016 * sysdeps/sparc/sparc32/atomicity.h: Removed.
7017 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
7018 * sysdeps/sparc/sparc64/atomicity.h: Removed.
7020 2003-03-30 Roland McGrath <roland@redhat.com>
7022 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
7024 * intl/po2test.sed: Anchor substitution regexps to fix last change.
7026 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
7028 * intl/po2test.sed: Unify the transformations for msgid and msgstr
7029 and remove a useless s/// command.
7031 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7033 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
7034 directive into empty .prologue region to ensure that call-chain
7035 is terminated even for the first instruction.
7037 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
7038 to terminate call-chain right from the get-go.
7040 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
7041 stop bit between compare & branch.
7043 2003-03-29 Ulrich Drepper <drepper@redhat.com>
7045 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
7046 point correctly [PR libc/4993].
7048 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
7049 netlink_open calls if netlink is known to not be available.
7051 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
7053 * configure.in: Add mips64* support.
7054 * sysdeps/mips/bits/endian.h: Make it bi-endian.
7055 * sysdeps/mips/mipsel/bits/endian.h: Removed.
7056 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
7057 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
7058 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
7059 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
7060 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
7061 * sysdeps/mips/Implies: Moved wordsize-32 to...
7062 * sysdeps/mips/mips32/Implies: New file.
7063 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
7065 (ret, PSEUDO_END): Moved past END.
7066 (PSEUDO): Moved to...
7067 * sysdeps/unix/mips/mips32/sysdep.h: New file.
7068 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
7069 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
7070 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
7071 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
7072 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
7074 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
7077 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
7079 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
7080 * inet/test-ifaddrs.c: Allow AF_PACKET.
7081 * sysdeps/unix/sysv/linux/kernel-features.h: Add
7082 __ASSUME_NETLINK_SUPPORT.
7084 2003-03-28 Ulrich Drepper <drepper@redhat.com>
7086 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
7088 2003-03-26 H.J. Lu <hjl@gnu.org>
7090 * elf/vismod.h (getvarlocal1): Return const char **.
7091 (getvarinmod1): Likewise.
7092 (getvaritcpt1): Likewise.
7093 (getvarlocal2): Likewise.
7094 (getvarinmod2): Likewise.
7095 (getvaritcpt2): Likewise.
7096 (getvaritcpt3): Likewise.
7097 * elf/vismain.c (do_test): Adjusted.
7098 * elf/vismod1.c (getvarlocal1): Return address.
7099 (getvarinmod1): Likewise.
7100 (getvaritcpt1): Likewise.
7101 * elf/vismod2.c (getvarlocal2): Likewise.
7102 (getvarinmod2): Likewise.
7103 (getvaritcpt2): Likewise.
7104 * elf/vismod3.c (getvaritcpt3): Likewise.
7106 2003-03-28 Roland McGrath <roland@redhat.com>
7108 * elf/vismain.c (do_test): Print both addresses when they don't match.
7110 * scripts/abilist.awk: If given -v filename_regexp and/or -v
7111 libname_regexp when parsing names, then produce output only
7112 for those matching the given regexps. In combine mode, save all
7113 stanzas for a final sorting by stanza header at the end.
7114 Emit a blank line between stanzas.
7116 * scripts/abilist.awk: When given -v combine=1, do parse_names and
7117 emit a single output stream with lib name in stanza header lines.
7119 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
7121 2003-03-27 Roland McGrath <roland@redhat.com>
7123 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
7124 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
7126 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7128 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7129 Return old value. Make asm output reg constraint earlyclobber.
7131 (__arch_compare_and_exchange_8_acq): ... this.
7132 (__arch_compare_and_exchange_val_16_acq):
7133 Return old value. Make asm output reg constraint earlyclobber.
7135 (__arch_compare_and_exchange_16_acq): ... this.
7136 (__arch_compare_and_exchange_val_32_acq):
7137 Return old value. Make asm output reg constraint earlyclobber.
7139 (__arch_compare_and_exchange_32_acq): ... this.
7140 (__arch_compare_and_exchange_val_64_acq):
7142 (__arch_compare_and_exchange_64_acq): ... this.
7143 (atomic_exchange_and_add): Use local variables and
7144 __arch_compare_and_exchange_val_64_acq.
7145 (atomic_add): Likewise.
7146 (atomic_add_negative, atomic_add_zero): Use local variables.
7148 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
7150 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
7152 2003-03-27 Ulrich Drepper <drepper@redhat.com>
7154 * Makefile: Remove libmd5crypt goal.
7156 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7158 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
7159 special handling of relocations against local symbols.
7161 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
7163 * sysdeps/powerpc/bits/atomic.h
7164 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
7165 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
7166 Define PPC64 specific version.
7167 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
7168 Change (mem) constraint to "b".
7169 [__powerpc64__] (__arch_atomic_exchange_and add_64):
7170 Replace addi with add. Change (value) contraint to "r".
7171 Change (mem) constraint to "b".
7172 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
7173 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
7174 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
7175 (__arch_atomic_decrement_if_positive_32): New macro.
7176 (atomic_decrement_if_positive): Use __arch* macros.
7178 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7180 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7182 2003-03-27 Roland McGrath <roland@redhat.com>
7184 * scripts/rpm2dynsym.sh: New file.
7185 * Makefile (distribute): Add it.
7187 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7189 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
7190 ar.unat before returning. Add missing .mem.offset directives
7191 to ensure file gets assembled without warnings.
7192 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7194 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7196 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
7197 Return -1 instead of 0 if clock_getres failed.
7199 2003-03-27 Roland McGrath <roland@redhat.com>
7201 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
7202 header lines and write out foo.symlist files for each foo.so.NN listed.
7204 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
7205 This symbol is exported, and we don't want to hide it.
7206 Add libc_hidden_proto instead.
7207 (_IO_file_jumps): Add libc_hidden_proto.
7208 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
7210 * libio/fileops.c (_IO_file_jumps): Likewise.
7211 * libio/stdfiles.c: Don't use INTUSE on them.
7212 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7213 * libio/iofopen.c (__fopen_internal): Likewise.
7214 * libio/freopen.c (freopen): Likewise.
7215 * libio/freopen64.c (freopen64): Likewise.
7216 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7218 * Makerules (check-abi) [$(enable-check-abi) = warn]:
7219 Ignore exit status from diff.
7220 * configure.in (enable_check_abi): Document possible value "warn".
7221 Change default to no for now.
7222 * configure: Regenerated.
7224 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
7225 macro calls and a #include <stub-tag.h> at the end.
7226 * Makerules ($(objpfx)stubs): Tweak sed commands.
7228 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
7229 caller column for *xattr syscalls, since they are in sysdeps/generic.
7231 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
7232 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
7234 2003-03-26 Roland McGrath <roland@redhat.com>
7236 * Makerules (check-abi-config): Use /thread instead of /tls when
7237 use-thread and not just use-tls is set.
7239 * Makerules (update-abi): Put quotes around $(update-abi-config).
7241 * elf/Makefile (check-abi): Depend on check-abi-ld.
7242 (update-abi): Depend on update-abi-ld.
7244 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7246 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
7247 do not check for errors (unless testing for 32bit variant).
7248 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
7250 2003-03-27 Philip Blundell <philb@gnu.org>
7252 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
7253 unconditional mov. Remove nop.
7255 * sysdeps/unix/sysv/linux/kernel-features.h
7256 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
7257 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
7258 when __ASSUME_VFORK_SYSCALL is defined.
7259 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
7260 __ASSUME_MMAP2_SYSCALL.
7261 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
7262 __ASSUME_REALTIME_SIGNALS.
7264 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7266 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
7267 only if DL_NO_COPY_RELOCS is not defined.
7268 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
7270 2003-03-26 Roland McGrath <roland@redhat.com>
7272 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
7273 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
7274 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
7275 (sysdep_routines): Add stub-syscalls.
7276 ($(objpfx)stub-syscalls.c): New target.
7277 (generated): Add stub-syscalls.c.
7279 * tls.make.c: Also define use-tls according to USE_TLS macro.
7281 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7283 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
7284 no-op padding element.
7285 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7286 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7287 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7288 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7290 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7292 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
7293 condition check for the return value of getgroups32.
7295 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7297 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
7299 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
7300 PSEUDO_END_NOERRNO): Define.
7301 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
7302 Define to PSEUDO_END.
7304 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7306 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
7308 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
7310 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
7311 * iconvdata/bug-iconv4.c: New file.
7312 * iconvdata/Makefile (tests): Add bug-iconv4.
7314 2003-03-25 H.J. Lu <hjl@gnu.org>
7316 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
7318 (_dl_lookup_versioned_symbol): Likewise.
7320 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7322 * csu/tst-atomic.c (do_test): Add some new
7323 atomic_compare_and_exchange_val_acq, atomic_add_zero,
7324 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
7325 * include/atomic.h (atomic_add_negative, atomic_add_zero):
7326 Prefix local variable so that it doesn't clash with the one
7327 in atomic_exchange_and_add.
7328 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
7330 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
7331 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
7332 value into register.
7333 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
7334 Cast newval to long.
7335 * sysdeps/x86_64/bits/atomic.h
7336 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
7338 (atomic_exchange): Cast newvalue to long if sizeof == 8.
7339 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
7340 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7341 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
7343 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
7345 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
7346 bit from backtrace addresses.
7348 2003-03-21 Andreas Schwab <schwab@suse.de>
7350 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
7353 2003-03-25 Roland McGrath <roland@redhat.com>
7355 * config.make.in (enable-check-abi): New variable from configure.
7356 * configure.in (enable_check_abi): New substituted variable,
7357 controlled by --{enable,disable}-check-abi (default yes).
7358 * configure: Regenerated.
7359 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
7360 on check-abi dependency.
7362 2003-03-26 Andreas Schwab <schwab@suse.de>
7364 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
7365 * include/atomic.h: Likewise.
7367 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
7369 2003-03-25 Roland McGrath <roland@redhat.com>
7371 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
7372 (__arch_atomic_exchange_64): New macro.
7373 (atomic_exchange): Use them.
7374 (__arch_atomic_exchange_and_add_32): New macro.
7375 (__arch_atomic_exchange_and_add_64): New macro.
7376 (atomic_exchange_and_add): Use them.
7377 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
7379 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
7381 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
7383 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
7385 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
7386 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
7387 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7388 to decide whether to add padding.
7389 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7390 to decide whether to add padding.
7391 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
7392 old_kernel_sigaction): Likewise.
7394 2003-03-25 Ulrich Drepper <drepper@redhat.com>
7396 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
7397 atomic_add_zero were supposed to do.
7398 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
7401 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
7402 This matches the new timer implementation.
7403 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
7405 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
7407 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
7408 timer info for what the kernel provides these days.
7409 (struct sigevent): Add _tid field.
7410 Define SIGEV_THREAD_ID.
7411 Remove struct __pthread_attr_s forward declaration.
7412 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
7413 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7414 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7415 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7417 * Versions.def (librt): Add GLIBC_2.3.3.
7419 * abilist/libpthread.abilist: Update for nptl.
7421 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
7423 * inet/netinet/in.h: Add IPPROTO_SCTP.
7425 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7427 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
7429 2003-03-24 Philip Blundell <philb@gnu.org>
7431 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
7432 Remove a1 from clobber list.
7434 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7436 * timezone/antarctica: Update from tzdata2003a.
7437 * timezone/asia: Likewise.
7438 * timezone/australasia: Likewise.
7439 * timezone/europe: Likewise.
7440 * timezone/iso3166.tab: Likewise.
7441 * timezone/northamerica: Likewise.
7442 * timezone/southamerica: Likewise.
7443 * timezone/zone.tab: Likewise.
7445 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
7447 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
7449 2003-03-23 Ulrich Drepper <drepper@redhat.com>
7451 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
7452 unwanted expansion by definining to ret. Patch by Ian Wienand.
7454 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
7455 the parameter description to denote no error checking. Generate
7456 appropriate pseudo asm code.
7457 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
7458 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
7459 getpgrp, and getppid with 'E'.
7460 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
7461 PSEUDO_END_NOERRNO, and ret_NOERRNO.
7462 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7463 * sysdeps/unix/sysdep.h: Likewise.
7464 * sysdeps/unix/alpha/sysdep.h: Likewise.
7465 * sysdeps/unix/sparc/sysdep.h: Likewise.
7466 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
7467 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
7468 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
7469 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7470 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
7471 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7472 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7473 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7474 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7475 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7476 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7478 2003-03-23 Roland McGrath <roland@redhat.com>
7480 * Makeconfig (+includes): Don't use $(last-includes).
7482 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7484 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
7485 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7487 2003-03-23 Jakub Jelinek <jakub@redhat.com>
7489 * sysdeps/alpha/fpu/libm-test-ulps: Update.
7490 * sysdeps/arm/libm-test-ulps: Update.
7491 * sysdeps/hppa/fpu/libm-test-ulps: Update.
7492 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7493 * sysdeps/mips/fpu/libm-test-ulps: Update.
7494 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7495 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7496 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7497 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
7498 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
7499 * sysdeps/s390/fpu/libm-test-ulps: Update.
7500 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7502 2003-03-22 Roland McGrath <roland@redhat.com>
7504 * include/atomic.h: Put parens around all macro arguments.
7505 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
7506 (atomic_compare_and_exchange_val_acq): Use it.
7507 (atomic_compare_and_exchange_bool_acq): Likewise.
7508 (atomic_increment_and_test): Invert sense of test.
7509 (atomic_decrement_and_test): Likewise.
7510 * csu/tst-atomic.c: Update those tests to match.
7512 2003-03-22 Jakub Jelinek <jakub@redhat.com>
7514 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
7515 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
7516 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
7517 __oldval variable in the macro, since it might be macro argument.
7518 (atomic_decrement_if_positive): Initialize __memp, remove setting
7519 of non-existent variable.
7520 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
7521 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
7522 using atomic_compare_and_exchange_val_acq.
7523 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
7524 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7526 (__arch_compare_and_exchange_bool_8_acq): ... this.
7527 (__arch_compare_and_exchange_val_16_acq): Renamed from...
7528 (__arch_compare_and_exchange_bool_16_acq): ... this.
7529 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
7531 (__arch_compare_and_exchange_bool_32_acq): ... this.
7532 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
7534 (__arch_compare_and_exchange_bool_64_acq): ... this.
7535 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
7536 variables types instead of assuming int.
7537 Change prefix of local variables to __arch.
7538 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
7540 (atomic_compare_and_exchange_val_acq,
7541 atomic_compare_and_exchange_bool_acq): Define.
7543 * csu/tst-atomic.c: New test.
7544 * csu/tst-atomic-long.c: New test.
7545 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
7547 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
7549 * sysdeps/s390/Versions: Add trailing newline.
7551 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
7552 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
7554 2003-03-22 Andreas Schwab <schwab@suse.de>
7556 * sysdeps/m68k/fpu/libm-test-ulps: Update.
7558 * sysdeps/m68k/m68020/bits/atomic.h: New file.
7559 * sysdeps/m68k/m68020/atomicity.h: Removed.
7561 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7563 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
7564 data structures and macros. Protect from multiple inclusion.
7566 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
7569 2003-03-21 Andreas Jaeger <aj@suse.de>
7571 * sysdeps/i386/fpu/libm-test-ulps: Update.
7573 * math/libm-test.inc (tgamma_test): Recompute some constants with
7574 36 digits precision.
7575 (lgamma_test): Likewise.
7576 (ccos_test): Likewise.
7577 (ccosh_test): Likewise.
7578 (clog10_test): Likewise.
7579 (csin_test): Likewise.
7580 (csinh_test): Likewise.
7581 (ctan_test): Likewise.
7582 (ctanh_test): Likewise.
7584 2003-03-19 Jakub Jelinek <jakub@redhat.com>
7586 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
7588 2003-03-21 Roland McGrath <roland@redhat.com>
7590 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
7591 constraint to permit non-constant BIT argument.
7592 (atomic_bit_test_set): Likewise.
7593 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
7594 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
7595 For quadword case, use "i" constraint if __builtin_constant_p and < 32
7596 or "r" constraint otherwise.
7598 * configure.in: Move AC_PROG_CC and other program-finding before all
7600 * configure: Regenerated.
7602 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7604 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
7605 unaligned copying of 8-15 bytes. From Chris Demetriou
7606 <cgd@broadcom.com>. Fix label names.
7607 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
7608 change as to memcpy.S.
7609 * sysdeps/mips/memcpy.S: Formatting changes.
7610 * sysdeps/mips/memset.S: Likewise.
7612 2003-03-21 Roland McGrath <roland@redhat.com>
7614 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
7616 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7618 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
7619 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
7621 2003-03-21 Roland McGrath <roland@redhat.com>
7623 * sysdeps/i386/i486/bits/atomic.h
7624 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
7625 version of the macro to avoid compile-time warnings.
7626 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
7627 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
7628 (atomic_increment, atomic_decrement): Likewise.
7630 2003-03-21 Ulrich Drepper <drepper@redhat.com>
7632 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
7633 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7635 2003-03-21 Roland McGrath <roland@redhat.com>
7637 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
7639 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7641 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
7642 atomic_compare_and_exchange_val_rel,
7643 atomic_compare_and_exchange_bool_acq, and
7644 atomic_compare_and_exchange_bool_rel instead of
7645 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
7646 * sysdeps/i386/i486/bits/atomic.h: Define
7647 __arch_compare_and_exchange_val_*_acq instead of
7648 __arch_compare_and_exchange_*_acq.
7649 * sysdeps/x86_64/bits/atomic.h: Likewise.
7650 * sysdeps/ia64/bits/atomic.h: Define
7651 __arch_compare_and_exchange_bool_*_acq instead of
7652 __arch_compare_and_exchange_*_acq.
7653 * sysdeps/powerpc/bits/atomic.h: Likewise.
7654 * sysdeps/s390/bits/atomic.h: Likewise.
7655 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
7656 * malloc/set-freeres.c: Likewise.
7657 * nscd/cache.c: Likewise.
7658 * stdlib/cxa_finalize.c: Likewise.
7659 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7661 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7663 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
7664 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
7665 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
7667 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
7668 into high and low halves on n64.
7669 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7670 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7671 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7673 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7675 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
7676 correct atomic_compare_and_exchange_acq semantics.
7678 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7680 * sysdeps/mips/ieee754.h: Remove excess #endif.
7682 2003-03-20 Roland McGrath <roland@redhat.com>
7684 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
7685 variable. Remove superfluous memory clobber.
7687 * include/atomic.h: Syntax braino fix.
7689 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
7690 in decimal. Don't bail if niced at start. Just check that nice call
7691 bumps the total at all.
7693 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7695 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
7696 including pc, gp, sp and fp, as long long.
7697 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
7698 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
7699 Add gp argument, and set gp in the jmpbuf to it.
7700 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
7702 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7704 * include/atomic.h: Define atomic_exchange and
7705 atomic_decrement_if_positive if not already defined. Add some
7707 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
7708 * sysdeps/x86_64/bits/atomic.h: Likewise.
7709 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
7710 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
7711 atomic_exchange, atomic_exchange_and_add, and
7712 atomic_decrement_if_positive
7714 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7716 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
7717 with a single instruction.
7719 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
7721 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
7723 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
7724 Word before comparing with gotsym. Take reloc_addr argument as
7725 void*. Remove the code added for the compiler to drop any
7726 alignment assumptions.
7728 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7730 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
7731 * include/atomic.h: New file.
7732 * sysdeps/i386/i486/bits/atomic.h: New file.
7733 * sysdeps/x86_64/bits/atomic.h: New file.
7734 * sysdeps/s390/bits/atomic.h: New file.
7735 * sysdeps/sh/bits/atomic.h: New file.
7736 * sysdeps/ia64/bits/atomic.h: New file.
7737 * sysdeps/powerpc/bits/atomic.h: New file.
7738 * sysdeps/generic/bits/atomic.h: New file.
7739 * sysdeps/i386/i486/atomicity.h: Removed.
7740 * sysdeps/x86_64/atomicity.h: Removed.
7741 * sysdeps/s390/s390-32/atomicity.h: Removed.
7742 * sysdeps/s390/s390-64/atomicity.h: Removed.
7743 * sysdeps/ia64/atomicity.h: Removed.
7744 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
7745 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
7746 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
7747 use of macros from atomicity.h to new names and semantics.
7748 * gmon_mcount.c: Likewise.
7749 * malloc/set-freeres.c: Likewise.
7750 * nscd/cache.c: Likewise.
7751 * stdlib/cxa_finalize.c: Likewise.
7752 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7754 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
7756 * sysdeps/mips/ieee754.h: New file, suitable to replace both
7757 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
7758 mips-specific for now.
7760 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7762 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
7763 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
7764 * stdlib/tst-strtod.c: Add test for the bug.
7766 * posix/tst-nice.c (do_test): Remove invalid of return value.
7767 Don't run test if initial level != 0.
7769 2003-03-19 Amos Waterland <apw@us.ibm.com>
7771 * posix/tst-nice.c: New file.
7772 * posix/Makefile (tests): Add tst-nice.
7774 2003-03-18 Roland McGrath <roland@redhat.com>
7776 * abilist: New directory of libfoo.abilist files maintained using
7777 scripts/merge-abilist.awk and "make update-abi" rules.
7778 * Makefile (distribute): Add abilist/*.abilist.
7779 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
7780 Depend on check-abi.
7782 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
7783 * configure: Regenerated.
7785 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
7787 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7789 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
7792 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
7794 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
7796 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7798 * Versions.def: Add GLIBC_2.3.3 for libpthread.
7800 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7802 * sysdeps/generic/libc-start.c [!SHARED &&
7803 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
7805 2003-03-17 Roland McGrath <roland@redhat.com>
7807 * include/ctype.h: Revert last change.
7809 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7811 * argp/tst-argp1.c: Use test-skeleton.c.
7812 * locale/tst-C-locale.c: Likewise.
7814 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
7816 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
7817 * sysdeps/mips/mips64/n64/Implies: New file.
7818 * sysdeps/mips/mips64/n64/Makefile: New file.
7819 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
7820 * sysdeps/mips/mips64/n32/Implies: New file.
7821 * sysdeps/mips/mips64/n32/Makefile: New file.
7822 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
7823 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
7824 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
7825 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
7826 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
7827 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
7828 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
7829 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
7830 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
7831 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
7832 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
7833 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
7834 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
7835 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
7837 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
7838 lib64 for mips64/n64 and lib32 for mips64/n32.
7839 (ldd_rewrite_script): Needed for all mips64 configurations.
7840 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7841 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
7842 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
7844 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
7847 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
7848 asm/unistd.h into asm-unistd.h.
7849 * sysdeps/unix/sysv/linux/mips/configure: Generated.
7850 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
7852 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
7853 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
7856 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
7857 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
7858 long type for registers on n32.
7860 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
7862 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
7863 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
7864 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
7865 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
7866 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
7867 * sysdeps/unix/mips/brk.S: Likewise.
7868 * sysdeps/unix/mips/sysdep.S: Likewise.
7869 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7870 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
7871 * sysdeps/mips/sys/ucontext.h: Likewise.
7872 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
7873 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
7874 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
7875 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7876 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
7877 * sysdeps/mips/mips64/setjmp.S: Likewise.
7878 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
7879 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
7882 2003-03-16 Ulrich Drepper <drepper@redhat.com>
7884 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
7885 not at function level.
7886 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
7888 2003-03-15 Roland McGrath <roland@redhat.com>
7890 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
7891 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
7892 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
7893 * nis/nis_table.c (__create_ib_request): Likewise.
7895 * posix/fnmatch_loop.c: Add casts for signedness.
7896 * nss/nss_files/files-hosts.c: Likewise.
7897 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7898 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
7899 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
7901 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
7902 get errors into the log file.
7903 (libc_cv_broken_visibility_attribute): Likewise.
7904 (libc_cv_broken_alias_attribute): Likewise.
7905 (libc_cv_asm_weak_directive): Likewise.
7906 (libc_cv_need_minus_P): Likewise.
7907 (libc_cv_dot_text): Likewise.
7908 (libc_cv_asm_global_directive): Likewise.
7909 (libc_cv_asm_type_prefix): Likewise.
7910 * configure: Regenerated.
7912 * nscd/cache.c (cache_search): Give first arg type `request_type'.
7913 * nscd/nscd.h: Update decl.
7915 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
7916 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7917 * elf/dl-close.c (_dl_close): Likewise.
7918 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
7919 * io/fts.c (fts_build): Likewise.
7920 * elf/cache.c (add_to_cache): Likewise.
7921 * locale/programs/locarchive.c (show_archive_content): Likewise.
7923 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
7925 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
7927 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
7929 2003-03-15 Ulrich Drepper <drepper@redhat.com>
7931 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
7932 code for most parts.
7934 2003-03-15 Roland McGrath <roland@redhat.com>
7936 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
7937 * sysdeps/unix/sysv/linux/system.c: ... here.
7938 (FORK): Don't #define if already #define'd.
7939 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
7940 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
7941 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
7943 * dlfcn/tst-dlinfo.c: New file.
7944 * dlfcn/Makefile (tests): Add tst-dlinfo.
7945 ($(objpfx)tst-dlinfo): New target.
7947 * dlfcn/dlinfo.c: New file.
7948 * dlfcn/Makefile (libdl-routines): Add it.
7949 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
7950 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
7951 [__USE_GNU] (RTLD_DI_*): New enum constants.
7952 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
7953 * elf/dl-load.c (cache_rpath): New inline function.
7954 (_dl_map_object): Use it.
7955 (_dl_rtld_di_serinfo): New function.
7956 * sysdeps/generic/ldsodefs.h: Declare it.
7957 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
7959 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
7960 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
7961 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
7962 (__libc_start_main): Just call the generic one for most of the work.
7964 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
7965 static function by that name instead of BP_SYM (__libc_start_main).
7966 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
7967 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
7968 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
7970 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
7971 Use this macro for extra AT_* cases.
7972 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
7973 New macro, guts from ...
7974 (__aux_init_cache): ... here, function removed.
7975 (DL_PLATFORM_INIT): Don't define this.
7977 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
7978 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
7980 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
7982 2003-03-14 Roland McGrath <roland@redhat.com>
7984 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
7986 2003-03-14 Jakub Jelinek <jakub@redhat.com>
7988 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
7990 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
7991 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
7993 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
7995 * sysdeps/mips/fpu/bits/mathdef.h: New.
7996 (__NO_LONG_DOUBLE_MATH): Define for o32.
7998 * sysdeps/mips/sys/asm.h: Formatting changes.
7999 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
8000 (CPADD): Define for all of them.
8001 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
8002 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
8003 NARGSAVE): Define per ABI spec.
8004 (END): Don't redefine.
8005 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
8006 LONG_SRAV): Remove duplicate definitions.
8007 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
8008 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
8009 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
8010 (PTR_LA): Define for all 3 ABIs.
8012 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
8013 (elf_machine_matches_host): Prevent linking of o32 and n32
8015 (elf_machine_dynamic): Document assumption on $gp.
8016 (STRINGXP, STRINGXV, STRINGV_): New macros.
8017 (elf_machine_load_address): Use them to stringize PTR_LA and
8019 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
8020 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
8021 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
8022 (__dl_runtime_resolve): Cast the symtab initializer to the
8024 (RTLD_START): Use it. Adjust it for all 3 ABIs.
8025 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
8026 Handle 64-bit R_MIPS_REL composite relocation and accept
8027 R_MIPS_64 relocations to shift addend size to 64 bits.
8028 Document assumption regarding local GOT entries. Document
8029 backward-compatibility departing from the ABI behavior in
8030 applying relocations that reference section symbols, no longer
8031 used. Support relocations to mis-aligned offsets.
8032 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
8034 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
8036 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
8037 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
8038 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
8039 restore_rt functions. Use them.
8041 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
8042 .set mips2 on new abis.
8044 2003-03-13 Ulrich Drepper <drepper@redhat.com>
8046 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
8047 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
8048 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
8049 * sysdeps/posix/pathconf.c: Likewise.
8050 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8051 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
8052 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
8054 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
8057 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8059 * include/gmp.h: Include/gmp-mparam.h.
8060 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
8063 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
8064 ELF_MACHINE_NO_RELA is set.
8065 * elf/rtld.c (dl_main): No prelink support for REL-only.
8067 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
8068 FLAG_MIPS64_LIBN64): Define.
8069 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
8071 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
8072 * sysdeps/mips/memset.S: Likewise.
8073 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
8074 depending on the ABI.
8076 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
8077 Don't .set mips2 on new abi.
8078 (compare_and_swap): Likewise. Support 64-bit longs on n64.
8080 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
8082 2003-03-13 Roland McGrath <roland@redhat.com>
8084 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
8085 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
8087 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
8089 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
8091 * stdlib/fpioconst.c: Likewise.
8092 * stdlib/strtod.c: Likewise.
8094 * sysdeps/mips/add_n.S: Use L macro for local labels.
8095 * sysdeps/mips/addmul_1.S: Likewise.
8096 * sysdeps/mips/lshift.S: Likewise.
8097 * sysdeps/mips/memcpy.S: Likewise.
8098 * sysdeps/mips/memset.S: Likewise.
8099 * sysdeps/mips/mul_1.S: Likewise.
8100 * sysdeps/mips/rshift.S: Likewise.
8101 * sysdeps/mips/sub_n.S: Likewise.
8102 * sysdeps/mips/submul_1.S: Likewise.
8103 * sysdeps/mips/mips64/add_n.S: Likewise.
8104 * sysdeps/mips/mips64/addmul_1.S: Likewise.
8105 * sysdeps/mips/mips64/lshift.S: Likewise.
8106 * sysdeps/mips/mips64/mul_1.S: Likewise.
8107 * sysdeps/mips/mips64/rshift.S: Likewise.
8108 * sysdeps/mips/mips64/sub_n.S: Likewise.
8109 * sysdeps/mips/mips64/submul_1.S: Likewise.
8110 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
8111 conventions. Define END as in sys/asm.h.
8112 * sysdeps/unix/mips/sysdep.S: Likewise.
8113 * sysdeps/unix/mips/wait.S: Likewise.
8114 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8116 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
8117 Cast shifted values that may be too narrow to mp_limb_t.
8118 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
8120 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
8122 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
8123 (__mpn_extract_long_double): Likewise.
8124 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
8125 (__mpn_construct_long_double): Likewise.
8126 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
8127 (__mpn_extract_long_double): Likewise.
8128 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
8129 (__mpn_construct_long_double): Likewise.
8131 2003-03-13 Roland McGrath <roland@redhat.com>
8133 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
8134 entries in the map file match too.
8136 2003-03-13 Guido Guenther <agx@sigxcpu.org>
8138 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
8139 label .Lthread_start since current binutils don't allow branches
8140 to globally visible symbols.
8142 2003-03-13 Jakub Jelinek <jakub@redhat.com>
8144 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
8145 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
8146 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
8147 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
8148 clobbered by the syscall.
8149 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
8150 ASM_ARGS_6): Change constraints from r to index of corresponding
8152 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
8153 ptid and ctid to match kernel.
8154 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
8156 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
8158 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
8159 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
8160 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
8162 2003-03-11 Roland McGrath <roland@redhat.com>
8164 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8165 Check SYM_MAP rather than SYM as definedness check.
8166 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
8167 Don't handle R_PPC64_REL24 reloc.
8168 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8170 * sysdeps/powerpc/powerpc64/dl-machine.h
8171 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
8172 block, so we cover all the TPREL16* flavors without 6 ||s.
8173 [USE_TLS] (elf_machine_tprel): New function.
8174 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
8175 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
8176 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8178 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
8180 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
8181 instead of jalr to invoke subroutine so restoring the $gp register
8184 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
8186 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
8187 to __NR_pread if not defined.
8188 (__NR_pwrite64): Define to __NR_pwrite if not defined.
8190 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8192 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
8193 * sysdeps/unix/sysv/linux/kernel-features.h
8194 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
8197 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8199 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
8200 allocate space even for the trailing '/'.
8201 Reported by John Reiser <jreiser@BitWagon.com>.
8203 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
8204 ASM_CLOBBERS_6): Define.
8205 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
8206 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
8207 to match IA-32 order.
8208 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
8210 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
8212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
8213 Copy extra params for NPTL to registers used in clone syscall.
8215 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8217 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
8218 call names for pread and pwrite.
8220 2003-03-10 Roland McGrath <roland@redhat.com>
8222 * dlfcn/Makefile (libdl-routines): Add dladdr1.
8223 * dlfcn/dladdr1.c: New file.
8224 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
8225 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
8226 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
8227 a const ElfNN_Sym ** to fill in.
8228 * include/dlfcn.h: Update decl. Include <link.h>.
8229 * dlfcn/dladdr.c (dladdr): Update caller.
8230 * malloc/mtrace.c (tr_where): Likewise.
8231 * sysdeps/generic/elf/backtracesyms.c: Likewise.
8232 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8233 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
8234 * Versions.def (libdl): Define GLIBC_2.3.3 set.
8236 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
8238 * sysdeps/unix/Makefile (compile-syscall): New variable.
8239 Pass -g0 to compiler for assembling syscall stubs from stdin.
8241 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
8242 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
8243 Define these to do nothing.
8245 * configure.in: New check for -g on .S files.
8246 * configure: Regenerated.
8247 * config.make.in (have-cpp-asm-debuginfo): New variable.
8248 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
8249 * Makeconfig (ASFLAGS): New variable, if undefined and
8250 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
8251 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
8253 2003-03-09 Roland McGrath <roland@redhat.com>
8255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
8256 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
8258 2003-03-09 Ulrich Drepper <drepper@redhat.com>
8260 * po/fi.po: Update from translation team.
8261 * po/ca.po: Likewise.
8262 * po/da.po: Likewise.
8264 2003-03-08 Ulrich Drepper <drepper@redhat.com>
8266 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
8268 2003-03-07 Ulrich Drepper <drepper@redhat.com>
8270 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
8272 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
8274 2003-03-07 Roland McGrath <roland@redhat.com>
8276 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
8277 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
8279 2003-03-04 Guido Guenther <agx@sigxcpu.org>
8281 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
8282 stubs, we have INLINE_SYSCALL.
8283 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
8286 2003-03-06 Roland McGrath <roland@redhat.com>
8288 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
8289 permanent extent and add a comment about testing its implicit teardown.
8291 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
8293 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
8295 2003-03-05 Ulrich Drepper <drepper@redhat.com>
8297 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
8298 reversed __builtin_expect expectation.
8300 2003-03-05 Roland McGrath <roland@redhat.com>
8302 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
8303 * libio/swscanf.c: Likewise.
8304 * libio/swprintf.c: Likewise.
8306 2003-03-04 Roland McGrath <roland@redhat.com>
8308 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
8309 (elf_machine_rela): Always use RESOLVE_MAP, needed for
8310 R_PPC64_JMP_SLOT as well as TLS cases.
8311 (BIT_INSERT): Move parenthesis where it ought to have been.
8312 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8314 * posix/confstr.c (confstr): Correct STRING_LEN values for
8315 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
8316 break. Reported by Alexandre Julliard <julliard@winehq.com>.
8318 2003-03-04 Jakub Jelinek <jakub@redhat.com>
8320 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
8322 2003-03-04 Ulrich Drepper <drepper@redhat.com>
8324 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
8327 * po/sv.po: Update from translation team.
8329 2003-03-04 Andreas Jaeger <aj@suse.de>
8330 Ulrich Drepper <drepper@redhat.com>
8332 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
8334 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8336 * sysdeps/generic/dl-sysdep.h: Add double include protection.
8338 * po/tr.po: Update from translation team.
8340 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
8341 are holes between the segments. Only call mprotect to set
8342 proection to PROT_NONE if there are some.
8344 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
8347 * include/sched.h (__clone2): Use ... instead of adding all the
8350 2003-03-03 Roland McGrath <roland@redhat.com>
8352 * elf/dl-load.c (struct filebuf): Fix typo in last change.
8354 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
8355 PI_STATIC_AND_HIDDEN.
8357 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
8359 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
8361 * include/sched.h: Update clone2 prototype.
8363 2003-03-03 Andreas Jaeger <aj@suse.de>
8365 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
8366 (llrint): Use it to correct return type.
8369 (llround): Likewise.
8371 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8373 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
8376 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
8377 if ccs parameter isn't valid. Reported by Andreas Schwab.
8379 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8381 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
8382 for system call numbers > 255.
8383 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
8384 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8385 INTERNAL_SYSCALL): Likewise.
8386 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
8387 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
8388 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8389 INTERNAL_SYSCALL): Likewise.
8391 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8393 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
8394 array if it is the initial dtv.
8396 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8398 * po/es.po: Update from translation team.
8399 * po/fr.po: Likewise.
8400 * po/gl.po: Likewise.
8401 * po/sk.po: Likewise.
8402 * po/sv.po: Likewise.
8404 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
8405 * misc/sys/mman.h: Add prototype for remap_file_pages.
8406 * sysdeps/generic/remap_file_pages.c: New file.
8407 * misc/Makefile (routines): Add remap_file_pages.
8408 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
8410 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
8412 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8413 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
8414 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8415 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8416 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
8417 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
8418 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8419 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8421 2003-03-03 Roland McGrath <roland@redhat.com>
8423 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
8424 * sysdeps/ia64/dl-machine.h: Likewise.
8425 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
8427 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
8429 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
8430 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
8431 * locale/Versions (libc: GLIBC_2.3): Move those to ...
8432 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
8433 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
8434 * Versions.def (libc): Add GLIBC_2.3.3 set.
8436 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
8437 * sysdeps/ia64/dl-machine.h: Update decl.
8439 2003-03-03 Andreas Jaeger <aj@suse.de>
8441 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
8443 2003-03-02 Roland McGrath <roland@redhat.com>
8445 * scripts/abilist.awk: Reject data items with apparent 0 size.
8447 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
8448 after foo.* as if it were a duplicate.
8450 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
8452 2003-03-02 Ulrich Drepper <drepper@redhat.com>
8454 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
8456 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
8457 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
8458 if not already defined. Use SYSDEP_GETRES to allow other files to
8459 provide alternative implementations.
8460 * sysdeps/unix/sysv/linux/clock_getres.c: New file
8461 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
8462 if not already defined. Use SYSDEP_GETTIME to allow other files to
8463 provide alternative implementations.
8464 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
8465 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
8466 if not already defined. Use SYSDEP_GETTIME to allow other files to
8467 provide alternative implementations.
8468 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
8469 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
8470 other files to provide alternative implementations. Rearrange
8471 tests for invalid parameters.
8472 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
8473 * sysdeps/unix/sysv/linux/sysconf.c: New file.
8474 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8475 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
8476 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8477 _POSIX_MONOTONIC_CLOCK.
8479 2003-03-02 Roland McGrath <roland@redhat.com>
8481 * scripts/merge-abilist.awk: More checks for bogus input.
8482 Uniquify duplicate config names.
8484 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
8486 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
8487 from dl_reloc_overflow, make global.
8488 (__process_machine_rela): Update callers.
8489 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
8490 Add attribute_hidden to __process_machine_rela decl.
8491 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
8493 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
8496 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
8497 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
8498 (elf_machine_rela): Clean up.
8500 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
8502 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
8503 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
8504 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
8505 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
8506 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
8507 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
8510 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
8511 macros out of [SHARED].
8512 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
8514 * elf/elf.h: Define R_PPC_* relocs for TLS support.
8515 Clean up R_PPC64_* macro definition comments.
8517 * configure.in: In "running configure fragment for" message,
8518 omit $srcdir from the name if we prepended it.
8519 * configure: Regenerated.
8521 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
8522 From Jakub Jelinek <jakub@redhat.com>.
8524 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
8525 which duplicated the O_DIRECT defn.
8527 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8529 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
8532 2003-03-01 Andreas Schwab <schwab@suse.de>
8534 * resolv/Makefile (tests): Don't depend on
8535 $(objpfx)mtrace-tst-leaks when cross compiling.
8537 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
8538 __libc_stack_end through GOT since it is a global symbol.
8540 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8542 * argp/argp.h: Fix a typo.
8543 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
8545 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
8547 2003-02-27 Pat Rankin <rankin@pactechdata.com>
8549 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
8551 (get_subexp): Likewise.
8553 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8555 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
8557 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8559 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
8561 2003-02-27 Roland McGrath <roland@redhat.com>
8563 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
8564 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
8565 repeat it and avoids the test for the common case.
8566 Clean up and fix calculations for TLS relocs.
8568 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
8569 * sysdeps/powerpc/dl-tls.h: ... here.
8570 (TLS_TP_OFFSET): New macro.
8572 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
8574 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8576 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
8577 code generation changes in recent gcc.
8579 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8581 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
8582 Rename argument to avoid symbol conflict.
8584 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
8585 [__USE_GNU] (O_DIRECT): New macro.
8587 2003-02-24 David Mosberger <davidm@hpl.hp.com>
8589 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
8592 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8594 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
8595 initializer anymore now that res_thread_freeres is more careful.
8597 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
8598 except the PKTINFO. Reset interface in PKTINFO.
8599 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
8601 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
8603 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
8604 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
8606 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
8607 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
8608 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
8609 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
8611 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
8612 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
8614 2003-02-25 Andreas Jaeger <aj@suse.de>
8616 * manual/memory.texi (Malloc Tunable Parameters): Clarify
8617 behaviour of M_MMAP_THRESHOLD.
8619 2003-02-25 Roland McGrath <roland@redhat.com>
8621 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
8622 zero, inidicating _res was not initialized yet.
8624 2003-02-24 Ulrich Drepper <drepper@redhat.com>
8626 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
8629 2003-02-24 Roland McGrath <roland@redhat.com>
8631 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
8633 2003-02-23 Roland McGrath <roland@redhat.com>
8635 * sysdeps/posix/pause.c: New file.
8636 * sysdeps/unix/common/pause.c: File removed.
8638 2003-02-23 Ulrich Drepper <drepper@redhat.com>
8640 * sysdeps/generic/bits/confname.h: Remove #ifs.
8642 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
8643 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
8645 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
8648 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8650 * sysdeps/generic/dl-sysdep.c: Avoid warning.
8652 2003-02-22 Roland McGrath <roland@redhat.com>
8654 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
8655 * resolv/Makefile (tests): Add tst-leaks.
8656 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
8657 (tst-leaks-ENV): New variable.
8658 ($(objpfx)mtrace-tst-leaks): New target.
8659 (tests): Depend on it.
8661 * include/libc-internal.h: Declare __libc_thread_freeres.
8663 * Makerules: Fix last change to use $($(subdir)-version) when set.
8665 * Makerules (install-lib-nosubdir): Depend on installed
8666 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
8667 regardless of the libfoo.so target's dependencies.
8669 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
8670 Use that in $(MAKE) calls.
8672 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8674 * catgets/gencat.c (read_input_file): Collision between
8675 auto-assigned numbers and user-defined nubmers is not fatal.
8677 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
8678 * catgets/Makefile: Add rules to run test2.msg test.
8679 * catgets/test2.msg: New file.
8681 * catgets/gencat.c (main): Return 1 if messages have been printed.
8683 * iconv/iconv_prog.c (main): Unify messages.
8685 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
8686 when shifting retval.
8687 * stdlib/tst-strtod.c (main): Add strtold test case.
8688 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8690 2003-02-21 Roland McGrath <roland@redhat.com>
8692 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
8693 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
8694 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
8696 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
8697 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
8698 (res_thread_freeres): New function, on __libc_thread_subfreeres and
8701 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
8702 * malloc/thread-freeres.c: New file.
8703 * malloc/Makefile (aux): Add it.
8704 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
8705 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
8706 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
8708 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
8709 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
8711 2003-02-21 Roland McGrath <roland@frob.com>
8713 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
8715 * iconvdata/Makefile (tests): Add bug-iconv3 only if
8716 [$(have-thread-library) = yes].
8718 2003-02-21 Ulrich Drepper <drepper@redhat.com>
8720 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
8722 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
8723 not chechk for errors (unless testing for 32bit variant).
8724 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
8725 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
8726 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
8728 2003-02-21 Jakub Jelinek <jakub@redhat.com>
8730 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
8731 Check for signed overflow, not unsigned.
8733 * sysdeps/sparc/sparc64/elf/configure.in: New file.
8734 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
8735 Use -fcall-used-g6, not -fcall-used-g7.
8737 2003-02-21 Andreas Jaeger <aj@suse.de>
8739 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
8742 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
8743 clear whole mxcsr but only exceptions.
8745 2003-02-21 Roland McGrath <roland@redhat.com>
8747 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
8748 for libfoo.so that need $(make-link) rules.
8750 2003-02-21 Roland McGrath <roland@frob.com>
8752 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
8753 to match existing struct stat layout in mig protocols.
8755 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8757 * version.h (VERSION): Bump to 2.3.2.
8759 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
8760 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
8762 * sysdeps/generic/Dist: Add sysdep-cancel.h.
8763 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
8764 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
8765 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
8766 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
8767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
8769 * Makefile (distribute): Add include/stubs-prologue.h,
8770 include/gnu/stubs.h, scripts/merge-abilist.awk, and
8771 scripts/extract-abilist.awk.
8773 2003-02-20 Roland McGrath <roland@redhat.com>
8775 * math/Makefile (distribute): Don't add generated files.
8777 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8779 * math/Makefile: Rearrange variable definitions slightly to get
8780 definition in the right order.
8782 2003-02-20 Roland McGrath <roland@redhat.com>
8784 * Makerules: Clean up conditional around include of tls.make.
8785 * Make-dist: Export generating=t to prevent using that.
8786 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
8788 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8790 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
8791 around in search if port IPPORT_RESERVED/2 has been test.
8793 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
8795 * posix/regcomp.c: Remove inclusions.
8796 * posix/regexec.c: Likewise.
8797 * posix/regex_internal.c: Likewise.
8798 * posix/regex_internal.h: Add inclusions here.
8799 * posix/regex.c: Only include sys/types.h before regex.h. Include
8800 regex_internal.h here. Include regex_internal.c before regcomp.c
8801 and regexec.c (might expose more opportunities to the C compiler).
8803 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
8805 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
8806 [!_LIBC] (__wcrtomb): New definition.
8807 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
8808 HAVE_LOCALE_H as well.
8810 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8812 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
8813 patch to check for system call errors.
8815 2002-07-24 Philip Blundell <philb@gnu.org>
8817 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
8820 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8822 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
8823 * sysdeps/unix/sysv/linux/kernel-features.h
8824 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
8825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
8827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
8828 interprocedure branches.
8829 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
8830 * sysdeps/powerpc/nofpu/Dist: ...here.
8831 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
8832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
8833 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
8834 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
8835 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
8837 2003-02-18 Alan Modra <amodra@bigpond.net.au>
8839 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
8841 2003-02-20 Philip Blundell <philb@gnu.org>
8843 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
8844 missing arguments to INTERNAL_SYSCALL_ERROR_P and
8845 INTERNAL_SYSCALL_ERRNO.
8847 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8849 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
8850 for __ASSUME_32BITUIDS.
8852 2003-02-20 Andreas Schwab <schwab@suse.de>
8854 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
8855 POSIX_MADV_* constants.
8857 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8859 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
8860 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
8861 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
8862 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
8864 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
8866 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
8868 2003-02-16 Roland McGrath <roland@redhat.com>
8870 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
8872 2003-02-19 Ulrich Drepper <drepper@redhat.com>
8874 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
8875 decimal input digits.
8876 * stdlib/tst-strtod.c (main): Add test for strtof bug.
8878 2003-02-18 Ulrich Drepper <drepper@redhat.com>
8880 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
8881 invalid file descriptors and missing access permissions.
8883 2003-02-17 Ulrich Drepper <drepper@redhat.com>
8885 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
8888 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
8889 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
8890 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
8893 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
8894 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8896 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
8897 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
8898 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
8899 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8900 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
8902 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8904 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
8905 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
8906 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
8907 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
8908 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
8909 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
8911 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
8913 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
8914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
8916 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
8917 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
8918 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
8919 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
8921 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
8923 * nss/getent.c (print_hosts): Print all IP addresses of one host.
8925 2003-02-15 Roland McGrath <roland@frob.com>
8927 * sysdeps/mach/hurd/tls.h: New file.
8928 * sysdeps/mach/hurd/i386/tls.h: New file.
8930 * mach/errsystems.awk: Include <errno.h> in generated output.
8932 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
8933 use target mach-before-compile instead of generated.
8934 (mach-before-compile): New target.
8935 * Makerules: Disable use of tls.make if $(generating) is set.
8936 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
8937 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
8938 mach-shortcuts.h so mach/ generation happens before hurd/.
8940 2003-02-14 Ulrich Drepper <drepper@redhat.com>
8942 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
8943 of demorm correctly if low word is zero.
8944 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8945 * math/libm-test.inc (nextafter_test): New test, but disabled due
8948 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
8949 counter and only call __exit_thread if this is not the last thread.
8951 2003-02-13 Jakub Jelinek <jakub@redhat.com>
8953 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
8954 subtracting map->l_tls_offset.
8956 2003-02-12 Ulrich Drepper <drepper@redhat.com>
8958 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
8959 _CS_GNU_LIBPTHREAD_VERSION.
8960 * posix/conststr.c: Handle these new values.
8961 * posix/getconf.c: Likewise.
8963 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
8964 masking of version index.
8965 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
8967 2003-02-11 Ulrich Drepper <drepper@redhat.com>
8969 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
8970 correctly. Reported by Thorsten Kukuk.
8972 2003-02-10 Ulrich Drepper <drepper@redhat.com>
8974 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
8975 _BSD_SOURCE to compiler.
8976 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
8977 Patches by Alan Modra.
8979 2003-02-08 Ulrich Drepper <drepper@redhat.com>
8981 * io/ftwtest.c: Get current working directory before and after the
8982 nftw call and make sure they match.
8984 2003-02-08 Jim Meyering <jim@meyering.net>
8986 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
8987 the current directory, not just when DIR contains a slash.
8988 Reported by Manoj Srivastava.
8990 2003-02-07 Jim Meyering <jim@meyering.net>
8992 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
8993 Include autoconf-recommended block of dirent/NAMELEN-related
8994 definitions and includes. Use NAMELEN throughout, rather than
8996 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
8997 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
8998 (stpcpy): Declare, if necessary.
8999 (mempcpy): Define, if necessary.
9000 [!_LIBC] (__stpcpy, __mempcpy): Define.
9001 [!_LIBC] (LXSTAT, XSTAT): Define.
9002 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
9003 (find_object): Don't use c99-style struct initializer.
9004 Tweak wording in a couple comments.
9006 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9008 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
9010 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
9011 after the trapa instruction.
9012 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
9014 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
9015 (NEED_SYSCALL_INST_PAD): Define.
9016 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
9017 avoid to use definition for the kernel.
9018 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9019 Save and restore the frame pointer.
9020 (SYSCALL_INST_PAD): Define.
9021 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9022 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
9023 after trapa instruction.
9024 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9025 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9027 2003-02-07 Jakub Jelinek <jakub@redhat.com>
9029 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
9030 so that it can have aliases.
9031 * inet/herrno.c (h_errno): Put it into .bss not .data section.
9033 2003-02-07 Ulrich Drepper <drepper@redhat.com>
9035 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
9036 (profile_fixup): Likewise.
9037 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9039 2002-11-24 Robert Love <rml@tech9.net>
9041 * posix/sched.h: Second parameter of sched_setaffinity and
9042 sched_getaffinity is `unsigned int', not `unsigned long'.
9043 * sysdeps/generic/sched_setaffinity.c: Likewise.
9044 * sysdeps/generic/sched_getaffinity.c: Likewise.
9046 2003-02-05 Ulrich Drepper <drepper@redhat.com>
9048 * debug/catchsegv.sh: Fix typo in error messsage.
9049 Reported by John Levon <levon@movementarian.org>.
9051 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
9052 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
9053 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
9054 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9056 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9057 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9059 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
9060 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
9062 2003-02-05 Jim Meyering <jim@meyering.net>
9064 Fix a heap-corrupting bug.
9065 * io/ftw.c: Include <limits.h>.
9066 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
9067 (process_entry): Allocate enough space to hold the resulting
9068 file name. Don't presume that 2*dirbufsize is enough.
9069 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
9070 it is guaranteed to be defined.
9072 2003-02-04 Ulrich Drepper <drepper@redhat.com>
9074 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
9075 * iconvdata/bug-iconv3.c: New file.
9077 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
9079 * sysdeps/unix/sysv/linux/s390/system.c: New file.
9081 2003-02-03 Jakub Jelinek <jakub@redhat.com>
9083 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
9085 * config.h.in (BROKEN_SPARC_WDISP22): Add.
9087 2003-02-03 Ulrich Drepper <drepper@redhat.com>
9089 * sysdeps/i386/i686/memmove.S: New file.
9091 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
9094 Include kernel-features.h
9095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
9096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
9097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
9098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
9100 2003-02-02 Jakub Jelinek <jakub@redhat.com>
9102 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
9104 2003-01-25 Jim Meyering <jim@meyering.net>
9106 * io/ftw.c (object_compare): Compare inode numbers before device
9107 numbers, since the former are much more likely to differ.
9109 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9111 * time/tzfile.c (__tzfile_compute): Change return value type to
9112 void. Adjust return statements.
9113 * include/time.h (__tzfile_compute): Adjust prototype.
9115 2003-02-01 Jim Meyering <jim@meyering.net>
9117 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
9120 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9123 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
9125 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9128 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
9129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9130 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9132 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9134 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9136 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9138 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
9139 back to 2.4.19 for powerpc64.
9140 * sysdeps/unix/sysv/linux/kernel-features.h
9141 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
9142 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
9144 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9146 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
9147 platforms with strange alignment requirements on wchar_t.
9149 2003-01-31 Andreas Schwab <schwab@suse.de>
9151 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
9152 aliases, already added by make-syscalls.sh.
9153 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9154 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9155 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9156 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9157 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9158 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9159 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9160 * sysdeps/unix/inet/syscalls.list: Likewise.
9161 * sysdeps/unix/syscalls.list: Likewise.
9163 2003-01-31 Andreas Schwab <schwab@suse.de>
9165 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
9168 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9170 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
9171 not l to load tls from stack.
9173 2003-01-30 Roland McGrath <roland@redhat.com>
9175 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
9176 null argument before all else.
9177 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9179 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9181 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
9182 Move to RESOLVE protected part of the header.
9183 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
9186 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9188 * stdio-common/Makefile (tests): Add bug15.
9189 (bug15-ENV): Define.
9190 * stdio-common/bug15.c: New file.
9192 2002-10-07 Wolfram Gloger <wg@malloc.de>
9194 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
9195 to foreign sbrk()'s if arena is contiguous. Bug report from
9196 Bruno Haible <bruno@clisp.org>.
9198 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9200 * sysdeps/s390/libc-tls.c: Include stdlib.h.
9202 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9204 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
9207 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9209 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
9211 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
9213 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9215 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9217 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
9218 (allocate_static_tls): ...here. Add __attribute_noinline__.
9219 Don't return on failure.
9220 (_dl_reloc_bad_type): Add __attribute_noinline__.
9221 * elf/do-rel.h (elf_dynamic_do_rel): Add
9222 __attribute__((always_inline)).
9223 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
9224 elf_machine_rel_relative, elf_machine_rela_relative,
9225 elf_machine_lazy_rel): Add prototypes with
9226 __attribute__((always_inline)).
9228 2003-01-29 David Mosberger <davidm@hpl.hp.com>
9230 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
9232 2003-01-29 Roland McGrath <roland@redhat.com>
9234 * configure.in: Barf if configured in $srcdir.
9236 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
9238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9239 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
9241 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
9243 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
9244 clone parameters to match the order used on ia32.
9245 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9247 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
9249 * elf/elf.h: Add new s390 relocs.
9250 * elf/tls-macros.h: Add s390 versions.
9251 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
9252 * sysdeps/s390/dl-tls.h: New file.
9253 * sysdeps/s390/libc-tls.c: New file.
9254 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
9255 relocs for class PLT.
9256 (elf_machine_rela): Handle TLS relocs.
9257 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9258 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
9259 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9260 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
9261 CLONE_CHILD_*TID flags.
9262 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9263 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
9265 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9266 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9267 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
9268 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
9269 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
9271 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9272 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
9273 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9275 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
9276 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
9277 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
9278 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9281 2003-01-28 Ulrich Drepper <drepper@redhat.com>
9283 * sysdeps/unix/common/pause.c (do_pause): New function. Split
9284 from __libc_pause. Implement using sigsuspend.
9285 (__libc_pause): Call do_pause to do the real work.
9287 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
9288 sig_or_mask parameter is is_sig != 0.
9290 2003-01-21 Philip Blundell <philb@gnu.org>
9292 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
9294 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
9296 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
9298 2003-01-27 Ulrich Drepper <drepper@redhat.com>
9300 * stdio-common/bug14.c: Use official name for the locale.
9302 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
9303 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
9304 instead of __libc_cleanup_region_end.
9306 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
9307 as first parameter to __libc_cleanup_region_start.
9309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9310 (__fe_nomask_env): Use __prctl not prctl.
9311 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
9314 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
9316 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
9318 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
9319 wrap-around in test.
9321 2003-01-26 Andreas Schwab <schwab@suse.de>
9323 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
9324 compatibility symbols. Remove INTDEF for __divdi3.
9325 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
9326 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
9327 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
9329 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
9331 2003-01-24 Jakub Jelinek <jakub@redhat.com>
9333 * elf/tls-macros.h: Add SPARC 32-bit definitions.
9334 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
9335 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
9336 for the first half of the header. Include tls.h.
9337 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
9339 (elf_machine_rela): Handle TLS relocs.
9340 * sysdeps/sparc/dl-tls.h: New file.
9342 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
9345 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
9346 * sysdeps/sparc/sparc32/memchr.S: Likewise.
9347 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
9348 * sysdeps/sparc/sparc32/strcat.S: Likewise.
9349 * sysdeps/sparc/sparc32/strchr.S: Likewise.
9350 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
9351 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
9352 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
9353 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9354 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9355 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
9356 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
9357 * sysdeps/sparc/sparc64/strcat.S: Likewise.
9358 * sysdeps/sparc/sparc64/strchr.S: Likewise.
9359 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
9360 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
9361 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
9362 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
9363 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9364 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9366 2003-01-24 Andreas Schwab <schwab@suse.de>
9368 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
9369 elements, and process them backwards.
9370 * elf/Makefile ($(objpfx)tst-array4): New target.
9371 ($(objpfx)tst-array4.out): Likewise.
9372 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
9373 * elf/tst-array4.c: New file.
9374 * elf/tst-array4.exp: Likewise.
9376 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
9378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
9380 2003-01-27 Guido Guenther <agx@sigxcpu.org>
9382 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
9383 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
9384 cancellation handling and handle both __NR_pread64 and __NR_pread.
9385 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9386 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
9387 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
9388 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9389 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
9390 case, use register names consistently.
9392 2003-01-27 Wolfram Gloger <wg@malloc.de>
9394 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
9395 pointer, not of the computed chunk. Bug report from Carlos
9396 O'Donell <carlos@baldric.uwo.ca>.
9398 2003-01-25 Andreas Schwab <schwab@suse.de>
9400 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
9401 addressing to save GOT entries.
9403 2003-01-21 Jakub Jelinek <jakub@redhat.com>
9405 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
9406 inline_syscall1, inline_syscall2, inline_syscall3,
9407 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
9408 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
9409 __attribute__((unused)) to ChEcK.
9411 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9413 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
9414 Fix inline assembler constraints.
9415 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
9418 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
9421 2003-01-20 Segher Boessenkool <segher@koffie.nl>
9423 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
9424 compute the cosine, not the sine, even if x > 0.8.
9426 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9428 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
9429 _nss_nis_setspent. Work around the different prototypes.
9430 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
9431 internal_nis_endrpcent.
9432 (internal_nis_endrpcent): Change return type to void. Change callers.
9433 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
9434 _nss_nis_setpwent. Work around the different prototypes.
9435 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
9436 of the function to...
9437 (internal_nis_endprotoent): ... here. New function.
9438 (internal_nis_setprotoent): Use internal_nis_endprotoent.
9439 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
9440 _nss_nis_setnetent. Work around the different prototypes.
9441 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
9442 of the function to...
9443 (internal_nis_endnetgrent): ... here. New function.
9444 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
9446 2003-01-19 Jim Meyering <jim@meyering.net>
9448 * time/strftime.c: (widen): Merge nearly-identical definitions.
9449 (nl_get_alt_digit) [! defined my_strftime]: Define.
9450 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
9451 _nl_get_alt_digit and _nl_get_walt_digit.
9453 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9455 * time/strftime.c (my_strftime): Handle very large width
9456 specifications for numeric values correctly. Improve checks for
9458 * time/Makefile (tests): Add tst-strftime.
9459 * time/tst-strftime.c: New file.
9461 2003-01-18 Ulrich Drepper <drepper@redhat.com>
9463 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
9464 _nss_nis_sethostent. Work around the different prototypes.
9465 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
9466 _nss_nis_setgrent. Work around the different prototypes.
9467 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
9468 function. Split out from _nss_nis_endetherent.
9469 (internal_nis_setetherent): Use internal_nis_endetherent instead of
9470 duplicating the code.
9471 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
9472 of _nss_nis_setaliasent.
9473 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
9474 internal_nis_endservent code, don't duplicate it.
9476 * inet/rexec.c (rexec_af): Protect socket operations with
9477 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
9478 * inet/rcmd.c (rcmd_af): Likewise.
9480 2003-01-17 Roland McGrath <roland@redhat.com>
9482 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
9483 Add test of value 0.80190127184058835.
9485 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
9487 2003-01-17 Richard Henderson <rth@redhat.com>
9489 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
9490 relocs for class PLT.
9491 * sysdeps/alpha/libc-tls.c: New file.
9492 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
9493 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
9495 2003-01-17 Jakub Jelinek <jakub@redhat.com>
9497 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
9498 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
9501 2003-01-17 Andreas Jaeger <aj@suse.de>
9503 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
9505 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
9507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
9508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
9509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
9510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
9511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
9512 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
9513 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
9516 2003-01-16 Ulrich Drepper <drepper@redhat.com>
9518 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
9519 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
9522 * sysdeps/generic/sysconf.c: Unconditionally implement
9523 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
9524 * sysdeps/posix/sysconf.c: Likewise.
9526 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9528 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
9529 set *err to the returned error, not to REG_ESPACE unconditionally.
9530 (build_word_op): Likewise.
9531 * posix/Makefile (tests): Add bug-regex16.
9532 * posix/bug-regex16.c: New test.
9534 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9536 * elf/dl-load.c (_dl_map_object_from_fd): Use
9537 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
9538 been already initialized.
9540 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
9542 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
9544 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9546 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
9547 allocated too. Reported by Al Viro <aviro@redhat.com>.
9549 2003-01-16 Roland McGrath <roland@redhat.com>
9551 Tweak merged .abilist file format to merge duplicate symbols in
9552 different sets into multi-version stanzas with new "| SET regexp..."
9553 header continuation lines.
9554 * scripts/merge-abilist.awk: Rewritten for new format.
9555 * scripts/extract-abilist.awk: Likewise.
9557 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9559 * nscd/connections.c (nscd_run): Remove bogus return which isn't
9560 necessary with gcc 3.2+.
9561 (nscd_init): Don't use error() to print message, use dbg_log.
9563 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
9564 expected size into state.
9565 (UNPACK_BYTES): Do the reverse.
9566 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
9567 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
9568 Reported by Al Viro <aviro@redhat.com>.
9570 * stdio-common/Makefile (tests): Add bug14.
9571 * stdio-common/bug14.c: New file.
9573 * stdio-common/vfscanf.c: When recognizing multibyte characters in
9574 string reset the byte counter after mbrtowc reported it is not a
9575 partial character. Reported by Al Viro <aviro@redhat.com>.
9577 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
9579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
9580 sysdep-cancel.h, not sysdep.h.
9582 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9584 * nscd/connections.c (nscd_run): Protect accept call with
9587 2003-01-15 Andreas Schwab <schwab@suse.de>
9589 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
9590 (common-generated): Add s-proto-bp.d.
9591 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
9593 * sysdeps/unix/s-proto-bp.S: New file.
9594 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
9595 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
9596 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
9598 2003-01-15 Roland McGrath <roland@redhat.com>
9600 * Makerules: Use -include for tls.make, suppresses warning.
9601 Move gen-as-const-headers rules up so before-compile is set in time.
9602 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
9604 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9606 * nscd/nscd.c (main): Make code to close all file descriptors
9607 faster and more robust.
9609 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
9610 request with one writev call. Protect all read calls with
9612 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9613 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9615 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
9616 Protect writev calls with TEMP_FAILURE_RETRY.
9617 * nscd/grpcache.c: Likewise.
9618 * nscd/pwdcache.c: Likewise.
9620 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
9621 IPv6 address in debug output.
9623 2003-01-14 Roland McGrath <roland@redhat.com>
9625 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
9626 $(objpfx) directories, and get rid of vpath directives. The previous
9627 arrangement resulted in files being written to the source directories
9628 when run in a clean build. Find all .abilist files in $(..)abilist/.
9629 (update-abi-%): Likewise.
9630 (generated): Don't add .symlist files, they'll be intermediates.
9632 * sysdeps/generic/init-first.c: Add a comment.
9634 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
9636 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
9637 #includes and expressions.
9639 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
9640 config list when it already contains cpu-.*-os.* without / part.
9642 * Makerules (sed-remove-dotdot): New variable.
9643 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
9644 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
9645 (check-abi-config): New variable, append /tls or /notls to the tuple.
9646 (check-abi-%): Use that for -v config value.
9647 Find .abilist files in abilist/libfoo.abilist, not in subdir.
9648 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
9650 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9652 * manual/install.texi: Correct description of header preparation for
9653 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
9655 2003-01-14 Guido Guenther <agx@sigxcpu.org>
9657 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
9658 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9659 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
9661 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9664 (INTERNAL_SYSCALL): Make use of ERR parameter.
9665 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9666 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9667 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9668 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
9670 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9672 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
9674 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
9676 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
9677 Fix entry for bit 31.
9679 * iconvdata/Makefile: Add rules to build IBM866NAV.
9680 * iconvdata/ibm866nav.c: New file.
9681 * iconvdata/tst-tables.sh: Add IBM866NAV.
9682 * iconvdata/gconv-modules: Add entries for IBM866NAV.
9684 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9686 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
9687 to test void* parameters.
9689 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
9690 source pointer before dereferencing.
9691 (__STRING_SMALLL_GET32): Likewise.
9692 (__memset_gc): Add missing parenthesis around macro arguments.
9693 Patch by Denis Zaitsev <zzz@cd-club.ru>.
9695 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
9696 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9698 2003-01-14 Jakub Jelinek <jakub@redhat.com>
9700 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
9703 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9705 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
9706 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
9708 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
9710 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9712 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
9714 (PSEUDO): ... to here.
9715 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
9717 (PSEUDO): ... to here.
9719 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9721 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
9722 dirent64 instead of struct dirent for dirent. Call readdir64
9725 * locale/programs/locfile.c (siblings_uncached): Use struct
9726 dirent64 instead of struct dirent for other_dentry. Call
9727 readdir64 instead of readdir.
9729 * elf/ldconfig.c (direntry): Change type to struct dirent64.
9730 (search_dir): Use readdir64 instead of readdir.
9731 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
9733 2003-01-12 Roland McGrath <roland@redhat.com>
9735 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
9736 not strtol. The former is usable in ld.so, the latter not.
9738 * include/fcntl.h: Declare __libc_creat.
9740 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
9741 libhurduser-link.so-no-z-defs): New variables.
9743 * malloc/malloc.c: Revert last change.
9744 * malloc/malloc.h (_int_*): Move these decls to ...
9745 * include/malloc.h: ... here. Add attribute_hidden.
9746 (_int_valloc): Declare it too.
9748 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9750 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
9751 search for removed searchlist. Reported by Roland McGrath.
9753 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
9754 given as start file.
9756 * io/ftw.c (ftw_startup): Use correct name in check for symlink
9757 without existing target. Patch by Jim Meyering.
9759 * Makerules (build-shlib-helper): Don't use -z defs linker option
9760 if no-z-defs is defined either.
9762 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9764 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
9767 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9769 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
9770 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9772 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9774 * io/ftwtest-sh: Add test case for relative path with /. at the end.
9776 2003-01-12 Jim Meyering <jim@meyering.net>
9778 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
9779 use the basename if we've already chdir'd into its parent directory.
9781 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9783 * io/ftw.c (process_entry): Use relative path when using chdir()
9784 to change directory after call to ftw_dir.
9785 * io/ftwtest-sh: Add test for relative path argument to nftw()
9786 with FTW_CHDIR option.
9788 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9790 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9792 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
9794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9795 (INTERNAL_SYSCALL): Make use of ERR parameter.
9796 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9797 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9798 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
9801 2003-01-09 Richard Henderson <rth@redhat.com>
9803 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
9804 DTPREL64 and TPREL64 without loadbase applied.
9806 2003-01-09 Richard Henderson <rth@redhat.com>
9808 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
9811 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
9812 * sysdeps/unix/alpha/sysdep.h: ... here.
9813 (PSEUDO_LOADGP): Remove.
9814 (PSEUDO_PROLOGUE): Load GP in non-pic case.
9815 (SYSCALL_ERROR_LABEL): New.
9816 (PSEUDO): Use it in error branch.
9817 (PSEUDO_END): Add $syscall_error label.
9819 2003-01-12 Andreas Jaeger <aj@suse.de>
9821 * math/bits/mathcalls.h: Round is a const function.
9823 2003-01-11 Jim Meyering <jim@meyering.net>
9825 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
9826 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
9827 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
9828 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
9829 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
9830 [!_LIBC] (internal_function, dirent64, MAX): Define.
9831 (__set_errno): Define if not already defined.
9832 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
9833 the basename, not the entire file name.
9834 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
9835 the basename, not the entire file name.
9837 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9839 * string/tester.c (test_strcpy): Disable last added strcpy until
9842 2003-01-11 Philip Blundell <philb@gnu.org>
9844 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
9846 2003-01-11 Andreas Schwab <schwab@suse.de>
9848 * Makerules: Add vpath for %.dynsym and %.so so that the
9849 implicit rule chaining for check-abi works.
9851 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9853 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9856 2003-01-11 Jakub Jelinek <jakub@redhat.com>
9858 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
9859 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
9861 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
9862 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
9863 Ensure libc.so in DT_NEEDED.
9864 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
9865 CHECK_STATIC_TLS before l_tls_offset use.
9866 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9868 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9869 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
9870 Allocate TLS_PRE_TCB_SIZE bytes below result.
9871 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
9872 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
9873 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
9874 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
9875 bytes below result and add tcb_offset to memsz.
9876 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
9877 * sysdeps/ia64/dl-machine.h: Include tls.h.
9878 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
9880 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
9881 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
9882 * sysdeps/ia64/libc-tls.c: New file.
9884 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
9886 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
9887 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
9888 Fix type. Move definition out of #if.
9889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
9890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
9891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
9892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
9893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
9894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
9896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
9897 ftruncate64, pread64, pwrite64, truncate64 entries.
9898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9899 (INLINE_SYSCALL): New version that supports function call like
9900 syscalls. Add __builtin_expect.
9901 (LOADARGS_n): Add argument size safety checks.
9902 (INTERNAL_SYSCALL): New Macro.
9903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
9904 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
9905 redefinition of elf_fpreg_t and elf_fpregset_t.
9907 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9909 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
9910 simplify test for unloading. If loader of a DSO is unloaded do not
9911 use its scope anymore. Fall back to own scope and adjust opencounts.
9912 Fix several comments.
9913 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
9914 the l_searchlist, not only for l_initfini.
9916 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
9917 dependencies if objects cannot be removed. Remove object with the
9918 definition as not unloadable if necessary.
9920 * elf/reldep6.c: Create relocation dependency before closing the first
9923 2003-01-10 Guido Günther <agx@sigxcpu.org>
9925 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
9926 * sysdeps/unix/mips/brk.S: Likewise.
9927 * sysdeps/unix/mips/pipe.S: Likewise.
9929 2003-01-10 Andreas Schwab <schwab@suse.de>
9931 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
9933 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
9934 are known to have the vfork syscall.
9936 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
9938 * sysdeps/unix/sysv/linux/kernel-features.h
9939 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
9940 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
9941 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
9943 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9945 * elf/Makefile: Add rules to build and run reldep9 test.
9946 * elf/reldep9.c: New file.
9947 * elf/reldep9mod1.c: New file.
9948 * elf/reldep9mod2.c: New file.
9949 * elf/reldep9mod3.c: New file.
9951 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9953 * elf/Makefile: Add rules to build and run nodelete2 test.
9954 * elf/nodelete2.c: New file.
9955 * elf/nodel2mod1.c: New file.
9956 * elf/nodel2mod2.c: New file.
9957 * elf/nodel2mod3.c: New file.
9959 2003-01-09 Jakub Jelinek <jakub@redhat.com>
9961 * posix/test-vfork.c (noop): Add __attribute_noinline__.
9962 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
9963 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
9965 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
9966 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
9967 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
9968 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
9969 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
9971 2003-01-09 Andreas Schwab <schwab@suse.de>
9973 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
9975 2003-01-08 Ulrich Drepper <drepper@redhat.com>
9977 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
9978 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9980 (INTERNAL_SYSCALL_DECL): Define.
9982 2003-01-06 Jakub Jelinek <jakub@redhat.com>
9984 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
9985 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
9987 (INTERNAL_SYSCALL_DECL): Define.
9988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9989 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9990 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9991 (INLINE_SYSCALL): Adjust.
9992 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9993 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9994 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9995 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9996 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
9997 add err argument to INTERNAL_SYSCALL* macros.
9998 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9999 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
10000 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
10001 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
10003 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
10004 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
10005 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
10007 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10009 Unify symbols in user namespace exported by libc.so and libc.a.
10010 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
10011 argp_fmtstream_free, and argp_fmtstream_printf.
10012 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
10013 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
10014 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
10015 argp_fmtstream_point.
10016 * gmon/gmon.c: Don't define write_profiling.
10017 * libio/genops.c: Don't define _cleanup.
10019 * intl/explodename.c (_nl_find_language.c): Mark as static.
10020 * intl/loadinfo.h: Remove _nl_find_language prototype.
10022 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
10023 * libio/libioP.h: Remove declaration.
10025 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
10026 * libio/libioP.h: Remove declaration.
10028 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
10029 * sysdeps/generic/framestate.c: Define STATIC before including
10032 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
10034 2003-01-06 Philip Blundell <philb@gnu.org>
10036 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
10037 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
10039 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
10041 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
10042 (SYSCALL_ERROR): New.
10043 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
10045 (INTERNAL_SYSCALL): Define.
10046 (INLINE_SYSCALL): Use it.
10047 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10048 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
10049 SYSCALL_ERROR in place of __syscall_error.
10051 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10053 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10054 __bswap_32, __bswap_64): Put x into temporary variable
10056 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10057 (inline) functions.
10058 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10059 __bswap_32, __bswap_64): Put x into temporary variable
10061 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10062 (inline) functions.
10063 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
10066 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10068 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
10071 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10073 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
10074 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
10076 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10078 * math/libm-test.inc (significand_test): New function.
10081 2003-01-06 Roland McGrath <roland@redhat.com>
10083 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
10085 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
10086 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
10087 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
10089 * string/tester.c (test_strcpy): Add test with `void *' arguments.
10091 2003-01-06 Ulrich Drepper <drepper@redhat.com>
10093 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
10094 return significand and not the exponent.
10095 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10097 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
10098 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
10100 * malloc/malloc.c: Mark all _int_* functions as static.
10102 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10104 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
10105 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
10107 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10109 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10111 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
10112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
10114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
10115 ftruncate64, truncate64, pread64 and pwrite64 entries.
10116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10117 (INLINE_SYSCALL): Add __builtin_expect.
10118 (LOADARGS_n): Add argument size safety checks.
10119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
10120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
10121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
10122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
10123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
10124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
10126 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10128 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
10129 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
10130 (LIBC_CANCEL_HANDLED): Add.
10132 * sysdeps/unix/sysv/linux/alpha/sysdep.h
10133 (inline_syscall_r0_constraint): Rename to...
10134 (inline_syscall_r0_out_constraint): ... this. Add =.
10135 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
10137 2003-01-06 Andreas Schwab <schwab@suse.de>
10139 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
10140 sure this is always inlined.
10141 (elf_machine_rela): Likewise.
10143 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
10145 2003-01-04 Roland McGrath <roland@redhat.com>
10147 * Makeconfig (+mkdep): Add -MP flag.
10148 Suggested by Art Haas <ahaas@airmail.net>.
10150 2003-01-05 Andreas Schwab <schwab@suse.de>
10152 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
10154 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10156 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
10157 SYSCALL_ERROR_HANDLER.
10158 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
10159 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
10160 Add support for cancellation handling.
10161 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
10162 SYSCALL_ERROR_HANDLER.
10163 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
10164 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
10165 Add support for cancellation handling.
10166 (SYSCALL_ERROR_HANDLER): Define PIC variants.
10168 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
10171 __syscall_pread64 and __syscall_pwrite64 cancelable.
10172 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10173 (INTERNAL_SYSCALL): New macro.
10174 (LOADARGS_0, LOADARGS_1): Fix.
10176 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10178 * Makerules (build-shlip-helper): Unless told otherwise, add
10179 -Wl,-z,defs to linker command line.
10180 * rt/Makefile (librt.so): Link with ld.so.
10181 * dlfcn/Makefile (libdl.so): Likewise.
10183 2003-01-05 Jakub Jelinek <jakub@redhat.com>
10185 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
10186 cancellation handling.
10187 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10188 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
10190 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10192 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
10193 order of parameters passed to kill.
10195 2003-01-04 Andreas Schwab <schwab@suse.de>
10197 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
10199 2003-01-03 Paul Eggert <eggert@twinsun.com>
10201 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
10202 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10203 when compiling Bison 1.875's `bitset bset = obstack_alloc
10204 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
10206 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10208 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
10210 Correct reference counter in case SIGQUIT handler installation failed.
10212 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10214 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
10215 Define using _Pragma(weak ...).
10217 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
10219 * resolv/res_libc.c: Provide declaration for __res_init_weak and
10220 reorder declarations.
10222 2003-01-03 Art Haas <ahaas@airmail.net>
10224 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
10225 initializer syntax to C99.
10226 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
10227 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
10228 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
10229 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
10230 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
10231 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
10232 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
10233 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
10234 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
10235 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
10236 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
10237 * localedata/tests-mbwc/dat_mblen.c: Likewise.
10238 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
10239 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
10240 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
10241 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
10242 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
10243 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
10244 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
10245 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
10246 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
10247 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
10248 * localedata/tests-mbwc/dat_towlower.c: Likewise.
10249 * localedata/tests-mbwc/dat_towupper.c: Likewise.
10250 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
10251 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
10252 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
10253 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
10254 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
10255 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
10256 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
10257 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
10258 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
10259 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
10260 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
10261 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
10262 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
10263 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
10264 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
10265 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
10266 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
10267 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
10268 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
10269 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
10270 * localedata/tests-mbwc/dat_wctob.c: Likewise.
10271 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
10272 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
10273 * localedata/tests-mbwc/dat_wctype.c: Likewise.
10274 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
10276 2003-01-03 Richard Henderson <rth@redhat.com>
10278 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
10279 (inline_syscall_r0_constraint): New.
10280 (inline_syscall[0-6]): Use them.
10282 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10284 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
10285 Add rtld_hidden_proto.
10286 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
10287 (_dl_allocate_tls): Likewise. Remove INTDEF.
10289 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10291 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
10292 Morita <toshiyasu.morita@hsa.hitachi.com>.
10293 * sysdeps/sh/memcpy.S: Likewise.
10295 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10297 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
10298 any, but unify the test.
10300 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10302 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
10303 sigaction): Protect weak_alias and libc_hidden_weak with
10304 #ifndef LIBC_SIGACTION.
10305 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
10306 sigaction): Likewise.
10307 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
10308 sigaction): Likewise.
10309 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
10310 sigaction): Likewise.
10311 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
10312 sigaction): Likewise.
10313 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
10314 sigaction): Likewise.
10315 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
10316 sigaction): Likewise.
10317 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
10318 sigaction): Likewise. Remove SIGCANCEL handling here.
10319 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
10322 2003-01-02 Art Haas <ahaas@airmail.net>
10324 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
10326 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10328 * posix/getconf.c: Update copyright year.
10329 * nss/getent.c: Likewise.
10330 * nscd/nscd_nischeck.c: Likewise.
10331 * iconv/iconvconfig.c: Likewise.
10332 * iconv/iconv_prog.c: Likewise.
10333 * elf/ldconfig.c: Likewise.
10334 * catgets/gencat.c: Likewise.
10335 * csu/version.c: Likewise.
10336 * elf/ldd.bash.in: Likewise.
10337 * elf/sprof.c (print_version): Likewise.
10338 * locale/programs/locale.c: Likewise.
10339 * locale/programs/localedef.c: Likewise.
10340 * nscd/nscd.c (print_version): Likewise.
10341 * debug/xtrace.sh: Likewise.
10342 * malloc/memusage.sh: Likewise.
10343 * malloc/mtrace.pl: Likewise.
10345 2003-01-01 Jakub Jelinek <jakub@redhat.com>
10347 * io/sys/stat.h: Include time.h with __need_timespec even if
10348 __USE_MISC is defined but __USE_XOPEN is not.
10350 2003-01-01 Andreas Jaeger <aj@suse.de>
10352 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
10353 type to avoid strict aliasing problem.
10354 (_nss_dns_gethostbyname2_r): Likewise.
10355 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10356 (_nss_dns_getnetbyname_r): Likewise.
10357 * resolv/gethnamaddr.c (_gethtent): Likewise.
10358 (gethostbyname2): Likewise.
10360 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10362 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
10363 to avoid using the exported symbols. Define aliases with the
10364 original names separately.
10366 * include/time.h: Add libc_hidden_proto for __strftime_l.
10367 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
10368 * time/strftime.c: Always use libc_hidden_def if _LIBC.
10370 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
10371 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
10373 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
10376 * csu/Makefile (routines): Add dso_handle.
10377 * csu/dso_handle.c: New file.
10379 2002-12-31 Roland McGrath <roland@redhat.com>
10381 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
10382 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
10383 (S-CPPFLAGS): Add -DASSEMBLER here instead.
10384 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
10386 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10388 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
10391 2002-12-31 Andreas Jaeger <aj@suse.de>
10393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
10395 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10396 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
10397 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
10399 * sysdeps/unix/sysv/linux/kernel_stat.h
10400 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
10402 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
10403 __unused[1-3] since they're needed by some platforms. Handle
10404 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
10406 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
10407 for structs stat and stat64.
10408 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10409 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10410 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10411 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10413 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10415 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10416 nsec resolution changes.
10417 (xstat64_conv): Likewise.
10418 (xstat32_conv): Likewise.
10420 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10421 struct kernel_stat.
10423 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10424 structs stat and stat64.
10426 * time/time.h (__timespec_defined): Define for __USE_MISC.
10428 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10430 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
10431 and __libc_current_sigrtmax.
10433 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10435 * include/errno.h (__errno_location): Add prototype.
10436 Use libc_hidden_proto unconditionally.
10437 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
10439 * include/resolv.h (__res_state): Likewise.
10441 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
10442 * include/sys/socket.h (accept): Add libc_hidden_proto.
10443 * include/errno.h (__errno_location): Likewise.
10444 * include/netdb.h (__h_errno_location): Likewise.
10445 * include/resolv.h (__res_state): Likewise.
10446 * include/unistd.h (__lseek): Likewise.
10447 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
10448 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
10449 * sysdeps/generic/res-state.c (__res_state): Likewise.
10450 * sysdeps/generic/accept.c (accept): Likewise.
10451 * sysdeps/generic/lseek.c (__lseek): Likewise.
10452 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
10453 __libc_current_sigrtmax): Likewise.
10454 * sysdeps/mach/hurd/accept.c (accept): Likewise.
10455 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
10456 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
10457 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
10458 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
10459 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
10460 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
10461 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
10462 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
10464 (__GI_accept): New alias to accept.
10465 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
10466 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
10467 New alias to llseek.
10468 (__GI_accept): New alias to accept.
10469 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
10471 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
10473 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
10475 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
10476 strong_alias (name, __GI_name).
10477 * sysdeps/arm/bsd-_setjmp.S : Likewise.
10478 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
10479 * sysdeps/i386/bsd-_setjmp.S : Likewise.
10480 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
10481 * sysdeps/mips/bsd-_setjmp.S : Likewise.
10482 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
10483 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
10484 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
10485 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
10486 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
10487 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
10488 * sysdeps/sh/bsd-_setjmp.S : Likewise.
10489 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
10490 * sysdeps/unix/arm/fork.S : Likewise.
10491 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
10492 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
10493 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
10494 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
10495 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
10496 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
10497 * sysdeps/unix/i386/fork.S : Likewise.
10498 * sysdeps/unix/mips/fork.S : Likewise.
10499 * sysdeps/unix/sparc/fork.S : Likewise.
10500 * sysdeps/unix/sparc/vfork.S : Likewise.
10501 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
10502 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
10503 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
10504 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
10505 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
10506 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
10507 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
10508 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
10509 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
10510 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
10511 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
10512 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
10513 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
10514 * sysdeps/unix/fork.S : Likewise.
10515 * sysdeps/vax/bsd-_setjmp.S : Likewise.
10516 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
10518 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
10521 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10523 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
10524 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
10525 * sysdeps/mach/hurd/fork.c: Likewise.
10526 * sysdeps/unix/sysv/aix/fork.c: Likewise.
10527 * sysdeps/unix/fork.S: Add __GI___fork alias.
10528 * sysdeps/unix/arm/fork.S: Likewise.
10529 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
10530 * sysdeps/unix/i386/fork.S: Likewise.
10531 * sysdeps/unix/mips/fork.S: Likewise.
10532 * sysdeps/unix/sparc/fork.S: Likewise.
10533 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
10534 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
10535 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10536 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
10537 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
10538 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10539 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
10540 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
10541 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
10542 * sysdeps/unix/sparc/vfork.S: Likewise.
10543 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
10544 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
10545 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10546 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
10547 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
10548 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
10549 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
10550 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10552 * include/time.h: Add libc_hidden_proto for __nanosleep.
10553 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
10554 * sysdeps/mach/nanosleep.c: Likewise.
10555 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
10556 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
10558 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
10559 _IO_list_unlock, and _IO_list_resetlock.
10560 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
10561 _IO_list_unlock, and _IO_list_resetlock.
10563 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
10564 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10565 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
10566 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10568 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
10569 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
10570 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
10571 __GI___longjmp alias.
10573 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
10574 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
10575 * sysdeps/arm/bsd-_setjmp.S: Likewise.
10576 * sysdeps/generic/bsd-_setjmp.c: Likewise.
10577 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
10578 * sysdeps/i386/bsd-_setjmp.S: Likewise.
10579 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10580 * sysdeps/mips/bsd-_setjmp.S: Likewise.
10581 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10582 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
10583 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
10584 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
10585 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
10586 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
10587 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
10588 * sysdeps/sh/bsd-_setjmp.S: Likewise.
10589 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
10590 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
10591 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
10592 * sysdeps/vax/bsd-_setjmp.S: Likewise.
10593 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
10595 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10597 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
10599 2002-12-30 Roland McGrath <roland@redhat.com>
10601 * Rules (generated): Target removed.
10602 * mach/Makefile (generated): Define it here instead.
10604 * math/Makefile (generated): Add m_*l and m_*f variants too.
10606 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10608 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
10609 the to-be-deleted objects right away instead of later separately.
10610 The latter fails because the scope data structures of the DSO
10611 might already be gone.
10613 * elf/Makefile: Add rules to build and run reldep8 test.
10614 * elf/reldep8.c: New file.
10615 * elf/reldep8mod1.c: New file.
10616 * elf/reldep8mod2.c: New file.
10617 * elf/reldep8mod3.c: New file.
10618 Contributed by Jakub Jelinek.
10620 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
10622 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10623 checking of return value ENOSYS from getdents64.
10625 2002-12-28 Andreas Schwab <schwab@suse.de>
10627 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
10628 ($(common-objpfx)s-%.d): Generalized from
10629 $(common-objpfx)s-proto.d rule.
10630 (common-generated): Add s-proto-cancel.d.
10631 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
10632 cancellable syscalls.
10633 * sysdeps/unix/s-proto-cancel.S: New file.
10635 2002-12-29 Roland McGrath <roland@redhat.com>
10637 * resolv/res_libc.c: Move _res defn magic after res_init defn
10638 so _res macro is in effect for that code.
10640 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
10641 pattern for prepending $(..) so it doesn't affect $(foo).
10643 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
10645 2002-12-29 Jakub Jelinek <jakub@redhat.com>
10647 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
10650 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10652 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
10654 2002-12-28 Andreas Jaeger <aj@suse.de>
10656 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
10658 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
10660 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10662 * inet/herrno.c (__h_errno_location): Remove.
10663 * inet/Makefile (routines): Add herrno-loc.
10664 * resolv/res_libc.c (__res_state): Remove.
10665 * resolv/Makefile (routines): Add res-state.
10666 * sysdeps/generic/herrno-loc.c: New file.
10667 * sysdeps/generic/res-state.c: New file.
10669 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10671 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10672 Only define if USE_DL_SYSINFO is defined.
10674 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10676 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
10677 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
10678 Define. Patch by Richard Henderson and Jes Sorensen.
10679 (PSEUDO): Remove unnecessary ;;.
10680 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
10681 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
10682 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
10683 if not initializing thread pointer.
10684 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
10685 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
10686 make it weak also if NONTLS_INIT_TP.
10687 * sysdeps/unix/common/pause.c: Handle cancellation.
10688 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
10689 (LOADSYSCALL): Remove.
10690 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10691 (SYSCALL_ERROR_HANDLER): Use it.
10692 (PSEUDO): Don't jump around error handler.
10693 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
10694 jump around error handler.
10695 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
10696 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
10697 to __syscall_error_handler on failure.
10698 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
10699 (LOADSYSCALL): Remove.
10700 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10701 (SYSCALL_ERROR_HANDLER): Use it.
10702 (PSEUDO): Don't jump around error handler.
10703 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
10704 jump around error handler.
10705 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
10706 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
10707 to __syscall_error_handler on failure.
10709 2002-12-27 Roland McGrath <roland@redhat.com>
10711 * scripts/gen-as-const.awk: New file.
10712 * Makefile (distribute): Add it.
10713 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
10714 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
10716 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
10718 2002-12-27 Andreas Schwab <schwab@suse.de>
10720 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
10722 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10724 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
10727 2002-12-27 Andreas Schwab <schwab@suse.de>
10729 * Makerules ($(common-objpfx)%.make): Filter through
10730 $(sed-remove-objpfx).
10732 2002-12-23 Roland McGrath <roland@redhat.com>
10734 * scripts/abilist.awk: Produce a more compact format, divided into
10735 stanzas for each version set, the set name listed only once.
10736 * scripts/extract-abilist.awk: New file.
10737 * scripts/merge-abilist.awk: New file.
10738 * Makerules (check-abi-%, update-abi-%): New pattern rules.
10739 (update-abi, check-abi): New targets.
10740 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
10742 2002-12-19 Roland McGrath <roland@redhat.com>
10744 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
10746 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
10749 2002-12-21 Andreas Schwab <schwab@suse.de>
10751 * elf/check-textrel.c (handle_file): Swap p_type.
10753 2002-12-21 Andreas Schwab <schwab@suse.de>
10755 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
10756 (INLINE_SYSCALL): Use it.
10757 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10758 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10760 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
10761 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
10763 2002-12-20 Art Haas <ahaas@airmail.net>
10765 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
10768 2002-12-21 Philip Blundell <philb@gnu.org>
10770 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
10771 top as seventh arg to __libc_start_main.
10772 Reported by paulnash@wildseed.com.
10774 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
10776 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
10777 compatibility cruft when new enough kernel is assumed.
10779 2002-12-20 Jakub Jelinek <jakub@redhat.com>
10781 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
10782 instead of INLINE_SYSCALL.
10784 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10786 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
10789 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
10790 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
10791 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
10792 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
10793 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
10794 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10795 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10796 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10797 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
10798 Patch by William Lee Irwin <wli@holomorphy.com>.
10800 2002-12-20 Andreas Schwab <schwab@suse.de>
10802 * locale/programs/ld-measurement.c (measurement_output): Fix
10805 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10807 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
10808 Redefine _IO_flockifle and _IO_funlockfile as inlines.
10810 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
10811 builds add "tls" in the search path.
10812 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
10813 (path_hwcap): Recognize "tls".
10815 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10817 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
10818 __waitpid instead of waitpid.
10820 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
10822 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10823 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10824 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10826 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
10827 information for system calls.
10829 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
10832 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
10834 2002-12-19 Roland McGrath <roland@redhat.com>
10836 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
10837 * iconvdata/ibm922.h: Likewise.
10838 * iconvdata/ibm930.h: Likewise.
10839 * iconvdata/ibm932.h: Likewise.
10840 * iconvdata/ibm933.h: Likewise.
10841 * iconvdata/ibm935.h: Likewise.
10842 * iconvdata/ibm937.h: Likewise.
10843 * iconvdata/ibm939.h: Likewise.
10844 * iconvdata/ibm943.h: Likewise.
10845 * iconvdata/isiri-3342.h: Likewise.
10847 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10849 * test-skeleton.c (main): Make sure correct value is seen as
10850 argv[0] after adjustment of argv, and argc.
10852 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
10853 RTLD_CORRECT_DYNAMIC_WEAK is defined.
10855 2002-12-19 Jakub Jelinek <jakub@redhat.com>
10857 * nscd/connections.c (nscd_run): Shut up warning.
10858 * tst-ungetc.c (assert): Undefined before redefining.
10860 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10862 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
10865 2002-12-17 Art Haas <ahaas@airmail.net>
10867 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
10868 * iconvdata/cp775.h: Likewise.
10869 * iconvdata/ibm1046.h: Likewise.
10870 * iconvdata/ibm1124.h: Likewise.
10871 * iconvdata/ibm1129.h: Likewise.
10872 * iconvdata/ibm1132.h: Likewise.
10873 * iconvdata/ibm1133.h: Likewise.
10874 * iconvdata/ibm1160.h: Likewise.
10875 * iconvdata/ibm1161.h: Likewise.
10876 * iconvdata/ibm1162.h: Likewise.
10877 * iconvdata/ibm1163.h: Likewise.
10878 * iconvdata/ibm1164.h: Likewise.
10880 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10882 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
10883 __ASSUME_CLONE_THREAD_FLAGS is defined.
10884 * sysdeps/unix/sysv/linux/kernel-features.h
10885 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
10887 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10889 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
10891 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10893 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
10895 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10897 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
10899 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10901 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10902 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
10903 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
10906 2002-12-18 Jakub Jelinek <jakub@redhat.com>
10908 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
10909 __libc_writev to...
10910 [libc: GLIBC_PRIVATE]: ...here.
10911 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
10912 __libc_msgsnd to...
10913 [libc: GLIBC_PRIVATE]: ...here.
10915 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10917 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
10918 Use it instead of directly int $0x80.
10919 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
10920 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10921 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
10922 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10923 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10924 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
10926 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10928 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
10930 * elf/elf.h (AT_SYSINFO): New define.
10931 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
10934 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10936 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
10938 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
10940 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
10942 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
10944 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
10946 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
10948 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
10949 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
10950 available, otherwise __libc_maybe_call.
10951 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
10952 cancellation handling.
10953 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
10955 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10957 * posix/regcomp.c (free_workarea_compile): Free the new member
10959 (analyze): Initialize ORG_INDICES.
10960 (duplicate_node_closure): Search for a existing node, which is
10961 duplicated from the node ORG_DEST and satisfies the constraint
10962 CONSTRAINT. And use it to avoid inifimite loop.
10963 (search_duplicated_node): New function.
10964 (duplicate_node): Store the index of the original node.
10965 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
10967 * posix/regex_internal.h (re_dfa_t): Add new members.
10969 2002-12-17 Ulrich Drepper <drepper@redhat.com>
10971 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
10973 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10975 * sysdeps/posix/system.c (do_system): Add support for installation
10976 of cancellation handlers.
10977 * sysdeps/unix/sysv/linux/i386/system.c: New file.
10979 * stdlib/Makefile (tests): Add tst-system.
10980 * stdlib/tst-system.c: New file.
10982 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
10983 CENABLE]: Don't lose content of %ebx.
10985 2002-12-17 Jakub Jelinek <jakub@redhat.com>
10987 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
10988 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
10990 2002-12-16 Ulrich Drepper <drepper@redhat.com>
10992 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
10993 fails to return a function pointer don't use it.
10995 2002-12-16 Art Haas <ahaas@airmail.net>
10997 * io/ftw.c: Convert GCC extension initializer syntax to C99.
10998 * iconvdata/iso-ir-165.c: Likewise.
10999 * iconvdata/jis0208.c: Likewise.
11000 * iconvdata/jis0212.c: Likewise.
11002 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11004 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
11005 epoll_ctl, and epoll_wait.
11006 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
11007 epoll_create, epoll_ctl, and epoll_wait.
11008 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
11009 Davide Libenzi <davidel@xmailserver.org>.
11010 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
11011 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11014 2002-12-16 Art Haas <ahaas@airmail.net>
11016 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
11018 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
11019 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
11020 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
11022 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11024 * stdio-common/Makefile (routines): Remove lockfile. Add
11025 flockfile, ftrylockfile, and funlockfile.
11026 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
11027 * sysdeps/generic/flockfile.c: New file.
11028 * sysdeps/generic/ftrylockfile.c: New file.
11029 * sysdeps/generic/funlockfile.c: New file.
11031 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11033 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
11034 macros instead of doing the calls directly.
11035 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
11036 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
11039 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11041 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
11042 * sysdeps/ieee754/bits/nan.h: Likewise.
11044 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
11045 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
11047 2002-12-16 Roland McGrath <roland@redhat.com>
11049 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
11050 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
11051 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
11053 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
11054 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
11056 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
11057 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
11058 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
11059 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
11060 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
11061 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
11062 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
11063 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
11065 2002-12-13 Paul Eggert <eggert@twinsun.com>
11067 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
11068 is now u_int, not int.
11069 (struct XDR.x_handy): Now u_int, not int.
11070 * sunrpc/xdr_mem.c: Include <limits.h>.
11071 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
11072 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
11073 x_handy is now unsigned, not signed.
11074 Do not decrement x_handy if no change is made.
11075 (xdrmem_setpos): Check for int overflow.
11076 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
11077 (xdr_sizeof): Remove cast that is now unnecessary, now that
11078 x_handy is unsigned.
11080 2002-12-15 Art Haas <ahaas@airmail.net>
11082 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
11083 * iconvdata/gap.awk: Likewise.
11084 * iconvdata/gen-8bit-gap-1.sh: Likewise.
11085 * iconvdata/gen-8bit-gap.sh: Likewise.
11086 * locale/C-address.c: Likewise.
11087 * locale/C-collate.c: Likewise.
11088 * locale/C-ctype.c: Likewise.
11089 * locale/C-identification.c: Likewise.
11090 * locale/C-measurement.c: Likewise.
11091 * locale/C-messages.c: Likewise.
11092 * locale/C-monetary.c: Likewise.
11093 * locale/C-name.c: Likewise.
11094 * locale/C-numeric.c: Likewise.
11095 * locale/C-paper.c: Likewise.
11096 * locale/C-telephone.c: Likewise.
11097 * locale/C-time.c: Likewise.
11098 * nscd/connections.c: Likewise.
11099 * nscd/grpcache.c: Likewise.
11100 * nscd/hstcache.c: Likewise.
11101 * nscd/pwdcache.c: Likewise.
11102 * stdio-common/vfprintf.c: Likewise.
11103 * stdlib/random.c: Likewise.
11104 * sysdeps/generic/siglist.c: Likewise.
11105 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11106 * sysdeps/ieee754/bits/nan.h: Likewise.
11107 * sysdeps/posix/sprofil.c: Likewise.
11108 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
11109 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
11110 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
11112 2002-12-15 Roland McGrath <roland@redhat.com>
11114 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
11116 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
11117 <tls.h> here, no need for it.
11118 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11120 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
11121 parameter, not varargs parameter.
11123 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
11124 argument so it's not an unused variable.
11126 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
11127 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
11130 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
11132 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11134 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
11135 original __libc_fcntl code. Just renamed.
11137 2002-12-15 Andreas Schwab <schwab@suse.de>
11139 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
11141 2002-12-14 Olaf Hering <olh@suse.de>
11143 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
11144 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
11146 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11148 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
11150 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
11151 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
11153 * sysdeps/unix/sysv/linux/open64.c: New file.
11155 * sysdeps/generic/pselect.c: Add support for cancellation handling.
11156 * sysdeps/posix/open64.c: Likewise.
11157 * sysdeps/posix/sigpause.c: Likewise.
11158 * sysdeps/posix/sigwait.c: Likewise.
11159 * sysdeps/posix/system.c: Likewise.
11160 * sysdeps/posix/waitid.c: Likewise.
11161 * sysdeps/unix/sysv/linux/accept.S: Likewise.
11162 * sysdeps/unix/sysv/linux/connect.S: Likewise.
11163 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
11164 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11165 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
11166 * sysdeps/unix/sysv/linux/poll.c: Likewise.
11167 * sysdeps/unix/sysv/linux/pread.c: Likewise.
11168 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11169 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
11170 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11171 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11172 * sysdeps/unix/sysv/linux/recv.S: Likewise.
11173 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
11174 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
11175 * sysdeps/unix/sysv/linux/send.S: Likewise.
11176 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
11177 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
11178 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
11179 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
11180 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
11181 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
11182 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
11183 * sysdeps/unix/sysv/linux/wait.c: Likewise.
11184 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11185 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11186 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
11187 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11189 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11191 * sysdeps/generic/sysdep-cancel.h: New file.
11192 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
11193 cancelable syscall.
11194 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
11195 recvmsg, send, sendmsg, sendto): Make cancelable.
11196 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
11197 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
11198 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11199 sendto, osf_select): Likewise.
11200 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
11201 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11202 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
11203 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11205 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
11206 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11207 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
11208 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11210 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
11211 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11212 sendto, select): Likewise.
11213 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
11214 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
11216 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
11217 select, fcntl): Likewise.
11218 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
11219 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
11220 read, readv, select, sigsuspend, write, writev): Likewise.
11222 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11224 * dirent/bug-readdir1.c: Include unistd.h.
11226 2002-12-13 Jakub Jelinek <jakub@redhat.com>
11228 * locale/programs/locale.c: Include locarchive.h.
11229 (ARCHIVE_NAME): Define.
11230 (write_archive_locales): New function.
11231 (write_locales): Use it. Ensure the same locale is not printed
11232 multiple times in verbose mode.
11233 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
11234 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
11236 (struct nameent): New type.
11237 (nameentcmp): New function.
11239 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11241 * posix/regex_internal.c (re_string_context_at): Guard wide char
11242 code with #ifdef RE_ENABLE_I18N.
11244 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
11246 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
11248 2002-12-13 Roland McGrath <roland@redhat.com>
11250 * posix/bug-regex15.c: New file.
11251 * posix/Makefile (tests): Add it.
11253 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
11254 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
11256 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11258 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
11260 * misc/syslog.c (log_cleanup): Don't use parameter in
11261 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
11262 pass NULL instead of a pointer to syslog_lock.
11264 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11266 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
11267 linker map for all iconv modules.
11268 (distribute): Add gconv.map.
11269 * iconvdata/gconv.map: New file.
11271 * elf/Makefile: Also check all iconv modules for text relocations.
11273 * stdlib/Makefile: Remove code to automatically import GMP.
11275 * elf/Makefile (tests): Add rules to build and run check-textrel.
11276 * elf/check-textrel.c: New file.
11278 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
11281 2002-12-11 Jakub Jelinek <jakub@redhat.com>
11283 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
11286 2002-04-30 Bruno Haible <bruno@clisp.org>
11288 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
11289 the encoding if it already has slashes.
11290 Reported by Perry Rapp <prapp@erols.com>.
11292 2002-12-11 Roland McGrath <roland@redhat.com>
11294 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
11295 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
11296 Turn off PIC for compiling this file.
11298 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11300 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
11301 definitions. Not needed.
11302 [_LIBC]: Use definitions from libc-lock.h instead of referencing
11303 pthread routines directly.
11304 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
11306 (arena_get2): Don't look at return value of mutex_lock.
11308 2002-12-11 Roland McGrath <roland@redhat.com>
11310 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
11311 elf-init.o instead of compiling a PIC version.
11313 2002-12-11 Bruno Haible <bruno@clisp.org>
11315 * intl/gettext.h: Renamed to ...
11316 * intl/gmo.h: ... here.
11317 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11318 * intl/gettextP.h: Update.
11319 * intl/loadmsgcat.c: Update.
11321 * intl/gettextP.h (PARAMS): Make more portable.
11322 (attribute_hidden): Define as empty macro if not already defined.
11323 * intl/hash-string.h (PARAMS): Make more portable.
11324 * intl/loadinfo.h (PARAMS): Likewise.
11325 * intl/plural-exp.h (PARAMS): Likewise.
11326 (attribute_hidden): Move definition near the definition of
11329 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
11330 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
11332 2002-07-13 Bruno Haible <bruno@clisp.org>
11334 * intl/dcigettext.c (freea): New macro.
11335 (FREE_BLOCKS): Free also the registered blocks.
11336 (DCIGETTEXT): Free the 'search' variable.
11337 Reported by Andreas Fischer <a.fischer@asentics.de>.
11339 2002-04-27 Bruno Haible <bruno@clisp.org>
11341 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
11342 * intl/dcigettext.c: Likewise.
11343 * intl/dcgettext.c: Likewise.
11344 * intl/dgettext.c: Likewise.
11345 * intl/gettext.c: Likewise.
11346 * intl/dcngettext.c: Likewise.
11347 * intl/dngettext.c: Likewise.
11348 * intl/ngettext.c: Likewise.
11349 * intl/textdomain.c: Likewise.
11350 * intl/bindtextdom.c: Likewise.
11351 * intl/plural-exp.h: Likewise.
11353 2002-01-02 Bruno Haible <bruno@clisp.org>
11355 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
11357 2001-04-30 Bruno Haible <bruno@clisp.org>
11359 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
11360 default macro definitions. Needed for mingw32.
11362 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11364 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
11365 __builtin_constant_p to macro parameter.
11367 * sysdeps/generic/sigpause.c: Define all functions as weak.
11368 * sysdeps/posix/sigpause.c: Likewise.
11370 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
11373 2002-12-10 Jakub Jelinek <jakub@redhat.com>
11375 * elf/tst-array1.c (preinit_array, init_array, fini_array):
11376 Explicitly align the array to sizeof (void *).
11377 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
11379 * include/libc-symbols.h: Fix a comment typo.
11381 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
11382 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
11384 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
11386 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
11387 (__libc_sigsuspend): Likewise.
11388 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
11389 (__libc_sigsuspend): Likewise.
11390 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
11391 (creat): New weak alias.
11393 2002-12-10 Roland McGrath <roland@redhat.com>
11395 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
11396 contributes a manual chapter.
11397 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
11400 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
11401 and move contents to ...
11402 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
11403 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
11404 it instead of duplicating its contents.
11405 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
11407 2002-12-09 Jakub Jelinek <jakub@redhat.com>
11409 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
11411 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
11413 (EXTRA_LD_ENVVARS): Use it.
11414 (DL_OSVERSION_INIT): Define.
11415 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
11417 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
11419 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11421 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
11423 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
11424 call. It is not allowed to destroy pthread mutexes which are
11425 still in use even though it is safe for our implementations. If
11426 somebody still uses the descriptor it is a bug.
11428 2002-12-09 Richard Henderson <rth@redhat.com>
11430 * csu/abi-note.S: Use .p2align, not .align.
11432 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11434 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
11435 __libc_select aliases.
11437 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
11440 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
11442 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
11444 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
11446 * sysdeps/unix/syscalls.list: Define __libc_select alias.
11448 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
11450 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
11451 __libc___xpg_sigpause aliases.
11453 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
11455 * misc/error.c: Remove use of USE_IN_LIBIO.
11457 2002-12-08 Roland McGrath <roland@redhat.com>
11459 * elf/Makefile (tests): Uncomment tst-array[123].
11460 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
11461 * csu/elf-init.c: New file.
11462 * csu/Makefile (routines, static-only-routines): Add elf-init.
11463 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
11464 and __libc_csu_fini in place of _fini.
11465 * sysdeps/arm/elf/start.S: Likewise.
11466 * sysdeps/cris/elf/start.S: Likewise.
11467 * sysdeps/hppa/elf/start.S: Likewise.
11468 * sysdeps/i386/elf/start.S: Likewise.
11469 * sysdeps/ia64/elf/start.S: Likewise.
11470 * sysdeps/m68k/elf/start.S: Likewise.
11471 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
11472 * sysdeps/mips/elf/start.S: Likewise.
11473 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
11474 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
11475 * sysdeps/s390/s390-32/elf/start.S: Likewise.
11476 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11477 * sysdeps/sh/elf/start.S: Likewise.
11478 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11479 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11480 * sysdeps/x86_64/elf/start.S: Likewise.
11482 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
11483 struct containing function ptr and value, free it.
11484 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
11485 It's not safe to let the new thread use the SIGEV pointer.
11487 2001-10-20 Paul Eggert <eggert@twinsun.com>
11489 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
11490 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
11491 Use strerror_r that is only a macro, even if it is not a function.
11492 (strerror): Check for HAVE_DECL_STRERROR before declaring.
11493 (private_strerror): Use prototypes, not old-style function definition.
11494 (print_errno_message): New function.
11495 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
11496 char*-flavored one.
11497 (error_tail, error, error_at_line): Use it.
11499 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
11501 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
11503 2002-12-08 Ulrich Drepper <drepper@redhat.com>
11505 * scripts/output-format.sed: Fix bug in one of the s expressions
11506 which used / for one too many things.
11508 * include/unistd.h: Declare __libc_close.
11510 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11512 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
11514 2002-12-07 Roland McGrath <roland@redhat.com>
11516 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
11517 from 2002-12-06, but remove unnecessary memset call without removing
11518 necessary copy of initialization image.
11520 * Makerules ($(common-objpfx)format.lds): New target.
11521 (common-generated): Add it.
11522 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
11523 * scripts/output-format.sed: New file.
11524 * Makefile (distribute): Add it.
11526 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11528 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
11529 Reported by Art Haas <ahaas@airmail.net>.
11531 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
11533 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
11535 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11537 * string/test-strncpy.c (do_random_tests): Improve test coverage.
11539 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11541 * test-skeleton.c (timeout_handler): Allow expected signal to be
11544 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
11546 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
11548 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11550 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
11551 (SYSCALL_ERROR_HANDLER): Fix a pasto.
11552 Reported by Jeff Bailey <jbailey@nisa.net>.
11554 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11556 * sysdeps/generic/libc-tls.c: Undo last patch.
11558 * include/wctype.h: Define iswalnum with libc_hidden_proto.
11560 * include/signal.h: Define raise with libc_hidden_proto.
11562 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
11563 __execve instead of snprintf and execve.
11565 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
11568 2002-12-06 Jakub Jelinek <jakub@redhat.com>
11570 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
11571 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
11573 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11575 * misc/syslog.c (log_cleanup): New function.
11576 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
11577 (closelog): Likewise.
11579 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
11580 * elf/dl-iteratephdr.c: Likewise.
11581 * elf/dl-lookup.c: Likewise.
11582 * elf/dl-misc.c: Likewise.
11583 * elf/dl-open.c: Likewise.
11584 * elf/dl-support.c: Likewise.
11585 * elf/rtld.c: Likewise.
11586 * sysdeps/generic/ldsodefs.h: Likewise.
11587 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
11588 * sysdeps/mach/bits/libc-lock.h: Likewise.
11589 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
11591 2002-12-06 Roland McGrath <roland@redhat.com>
11593 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
11595 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
11596 (malloc_starter, memalign_starter, free_starter): Don't define these.
11597 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
11598 Don't declare them either.
11599 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
11600 __pthread_initialize, so no need to set hooks to *_starter.
11601 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
11602 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
11603 (__libc_malloc_pthread_startup): New function.
11604 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
11606 * malloc/hooks.c (memalign_starter): New function.
11607 * malloc/malloc.c: Declare it.
11608 * malloc/arena.c (save_memalign_hook): New variable.
11609 (ptmalloc_init): Set __memalign_hook to memalign_starter.
11611 * elf/dl-minimal.c (free): Clear the memory.
11612 (calloc): Just call malloc, knowing all memory it returns is cleared.
11614 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
11615 malloc and memset; calloc can avoid the zeroing when redundant.
11616 (_dl_tls_setup): Likewise.
11617 * elf/dl-load.c (decompose_rpath): Likewise.
11618 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
11619 call, since memory from sbrk at startup is already zero.
11621 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
11622 error string for failure, null for success. Update callers.
11623 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
11624 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11626 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11628 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
11630 (readahead): Change args to i:iii.
11631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
11632 Change args to i:iii.
11633 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
11636 2002-12-05 Roland McGrath <roland@redhat.com>
11638 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
11639 call all functions rather than none.
11640 Reported by Mark P. Mitchell <mark@codesourcery.com>.
11642 2002-12-04 Roland McGrath <roland@redhat.com>
11644 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
11645 on _nl_current_LC_* variables.
11647 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11649 * dirent/bug-readdir1.c (main): Don't call closedir, just close
11650 the file descriptor. This is testing what the bug report was about.
11652 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11654 * po/be.po: New file.
11656 * argp/Makefile (tests): Add tst-argp1.
11658 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
11659 Change type of _attribute to void*.
11660 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11661 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
11662 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
11663 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11664 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11666 2002-12-04 Roland McGrath <roland@redhat.com>
11668 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
11669 members to the end, so a libpthread compiled with !USE_TLS will still
11670 find other members properly.
11672 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
11673 operand for DEST memory. Fix dummy input operand to use SRC.
11674 Reported by Davin McCall <davmac@ozonline.com.au>.
11676 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
11677 alignment when initializing the DTV entry.
11679 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
11680 when TLS has not been set up, try to set it up if we can.
11681 * elf/tst-tls4.c: Revert last change.
11682 * elf/tst-tls5.c: Likewise.
11683 * elf/tst-tls6.c: Likewise.
11684 * elf/tst-tls7.c: Likewise.
11685 * elf/tst-tls8.c: Likewise.
11686 * elf/tst-tls9.c: Likewise.
11688 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
11689 * sysdeps/generic/ldsodefs.h: Declare it.
11690 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
11691 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
11692 function, broken out of __libc_setup_tls.
11693 (init_static_tls): Likewise.
11694 (__libc_setup_tls): Call them.
11695 (_dl_tls_setup): New function, uses new subroutines.
11697 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
11698 Clear the pointer when returning true.
11699 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
11700 first element of the slotinfo list too.
11702 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
11705 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
11706 (_dl_determine_tlsoffset): Likewise.
11708 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
11709 startup_error_tsd, made global.
11710 (dl_main): Update initialization.
11711 * elf/dl-tsd.c: Likewise.
11712 * sysdeps/generic/ldsodefs.h: Declare it.
11714 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11716 * manual/texinfo.tex: Update from latest upstream version.
11718 2002-12-03 Roland McGrath <roland@redhat.com>
11720 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
11721 area surplus in calculation for sbrk call.
11723 * iconvdata/cp1125.c: New file.
11724 * iconvdata/Makefile (distribute): Add it.
11725 (modules): Add CP1125.
11726 (gen-8bit-gap-modules): Add cp1125.
11727 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
11728 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
11730 2002-12-03 Andreas Jaeger <aj@suse.de>
11732 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11734 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11736 * sysdeps/posix/system.c (do_system): Make signal handler
11737 installation thread safe.
11739 2002-12-02 Roland McGrath <roland@redhat.com>
11741 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
11742 caller from EXTRA to -.
11743 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11744 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11745 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11747 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
11749 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
11750 bits of RM are cleared.
11752 2002-12-02 Roland McGrath <roland@redhat.com>
11754 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
11755 TLS setup is required.
11756 * elf/tst-tls5.c: Likewise.
11757 * elf/tst-tls6.c: Likewise.
11758 * elf/tst-tls7.c: Likewise.
11759 * elf/tst-tls8.c: Likewise.
11760 * elf/tst-tls9.c: Likewise.
11762 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
11763 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
11764 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
11765 for being null before calling free_slotinfo.
11766 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
11767 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
11769 2002-11-30 Bruno Haible <bruno@clisp.org>
11771 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
11772 (struct __gconv_step): New field __btowc_fct.
11773 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
11774 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
11776 (__gconv_btwoc_ascii): New declaration.
11777 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11778 (__gconv_btwoc_ascii): New function.
11779 * iconv/gconv_builtin.h: Add BtowcFct argument to all
11780 BUILTIN_TRANSFORMATION invocations.
11781 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11782 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
11783 * iconv/gconv_builtin.c (map): New field btowc_fct.
11784 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
11786 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
11787 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
11788 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
11789 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
11790 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
11791 (gconv_init): Initialize __btowc_fct field.
11792 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
11793 * iconv/loop.c: Document ONEBYTE_BODY.
11794 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
11795 Undefine ONEBYTE_BODY at the end.
11796 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
11797 * iconvdata/8bit-gap.c (NONNUL): New macro.
11798 (BODY for FROM_LOOP): Use it.
11799 (ONEBYTE_BODY): New macro.
11800 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
11801 (NONNUL): New macro.
11802 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
11803 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
11804 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
11805 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
11806 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
11807 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
11808 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
11809 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
11810 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
11811 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
11812 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
11813 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
11814 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
11815 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
11816 * iconvdata/ibm932.c: Include <stdbool.h>.
11817 (TRUE, FALSE): Remove macros.
11818 (BODY for FROM_LOOP): Remove unused variable rp1.
11819 (ONEBYTE_BODY): New macro.
11820 (BODY for TO_LOOP): Use bool.
11821 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
11822 * iconvdata/ibm943.c: Include <stdbool.h>.
11823 (TRUE, FALSE): Remove macros.
11824 (BODY for FROM_LOOP): Remove unused variable rp1.
11825 (ONEBYTE_BODY): New macro.
11826 (BODY for TO_LOOP): Use bool.
11827 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
11828 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
11829 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
11830 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
11831 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
11832 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
11833 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
11834 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
11835 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
11836 * iconvdata/gbbig5.c: Tweak comment.
11838 2002-12-02 Ulrich Drepper <drepper@redhat.com>
11840 * po/fi.po: Update from translation team.
11842 2002-12-01 Roland McGrath <roland@redhat.com>
11844 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
11845 testing getdents64 return value.
11847 * scripts/versions.awk: Don't pass -n flag to sort command.
11849 * posix/bug-regex13.c: Include <string.h>.
11851 * sysdeps/generic/libc-start.c (__libc_start_main): Do
11852 DL_SYSDEP_OSCHECK here.
11853 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
11854 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
11856 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
11857 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
11859 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
11860 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
11862 * include/link.h: Comment typo fix.
11864 2002-12-01 Roland McGrath <roland@frob.com>
11866 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
11867 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
11868 _POSIX_MEMORY_PROTECTION): Likewise.
11869 (_POSIX_POLL, _POSIX_SELECT): Removed.
11871 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11873 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
11874 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
11876 2002-11-28 Jakub Jelinek <jakub@redhat.com>
11878 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
11880 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
11883 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11885 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
11886 branch prediction buffers by using unpaired call/ret.
11888 2002-11-27 Ulrich Drepper <drepper@redhat.com>
11890 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
11891 first parameters constraint string.
11892 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
11894 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
11896 * posix/regcomp.c (parse_expression): Set the bit since the back
11897 reference is used in the regular expression.
11898 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
11900 (re_node_set_init_copy): Likewise.
11901 * posix/regex_internal.h (state_array_t): New structure.
11902 (re_sub_match_last_t): Likewise.
11903 (re_sub_match_top_t): Likewise.
11904 (re_match_context_t): Add new members.
11905 (re_dfa_t): Likewise.
11906 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
11907 to check the matching is really correct, and retry if failed.
11908 Move the routin pruning the impossible nodes from here, ...
11909 (prune_impossible_nodes): To this function.
11910 (check_matching): Invoke check_subexp_matching_top, and replace
11911 redundant checking with transit_state_bkref invocation.
11912 (proceed_next_node): Replace strncmp with memcmp. Reported by
11913 Paolo Bonzini <bonzini@gnu.org>.
11914 (update_cur_sifted_state): Remove search_subexp invocation.
11915 (search_subexp): Remove this function.
11916 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
11918 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
11919 Remove unused invocation of match_ctx_add_entry.
11920 (transit_state): Invoke check_subexp_matching_top.
11921 (check_subexp_matching_top): New function.
11922 (transit_state_bkref): Remove unused array.
11923 Merge transit_state_bkref_loop.
11924 (transit_state_bkref_loop): Use get_subexp instead of
11925 sift_states_backward. Use search_cur_bkref_entry for optimization.
11926 Merge this function to transit_state_bkref.
11927 (get_subexp): New function.
11928 (get_subexp_sub): Likewise.
11929 (find_subexp_node): Likewise.
11930 (check_arrival): Likewise.
11931 (check_arrival_expand_ecl): Likewise.
11932 (check_arrival_expand_ecl_sub): Likewise.
11933 (expand_bkref_cache): Likewise.
11934 (match_ctx_init): Initialize new members.
11935 (match_ctx_clean): New function.
11936 (match_ctx_free): Release new members.
11937 (match_ctx_free_subtops): New function.
11938 (match_ctx_add_entry): Fix indent.
11939 (search_cur_bkref_entry): New function.
11940 (match_ctx_add_subtop): Likewise.
11941 (match_ctx_add_sublast): Likewise.
11943 2002-11-25 Ulrich Drepper <drepper@redhat.com>
11945 * iconv/Makefile (tests): Remove tst-iconv4.c
11946 * iconv/tst-iconv4.c: Moved to...
11947 * iconvdata/tst-iconv4.c: ...here. New file.
11948 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
11950 2002-11-25 Roland McGrath <roland@redhat.com>
11952 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
11953 Grok AF_LINK if defined.
11954 From Momchil Velikov <velco@fadata.bg>.
11956 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
11957 brdaddr, or dstaddr, just set those pointers to null and don't fail.
11958 Reported by Momchil Velikov <velco@fadata.bg>.
11960 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
11961 is > sizeof IFR->ifa_addr, advance past the whole longer length.
11962 (__ifreq): Count up NIFS that way too.
11963 Reported by Momchil Velikov <velco@fadata.bg>.
11965 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
11967 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
11968 and <fpu_control.h>.
11970 2002-11-24 Ulrich Drepper <drepper@redhat.com>
11972 * elf/elf.h (EM_ST19): Fix typo.
11974 2002-11-25 Jakub Jelinek <jakub@redhat.com>
11976 * include/errno.h (__set_errno): Define as errno = val
11979 2002-11-24 Roland McGrath <roland@redhat.com>
11981 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
11982 * sysdeps/posix/writev.c: Likewise.
11983 From Momchil Velikov <velco@fadata.bg>.
11985 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
11986 calling *GL(dl_error_catch_tsd) for a thread-local location.
11987 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
11988 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
11989 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
11991 * libio/iofflush.c: Add libc_hidden_def.
11992 * libio/iofwrite.c: Likewise.
11993 * sysdeps/generic/sigtimedwait.c: Likewise.
11994 * sysdeps/generic/sigwaitinfo.c: Likewise.
11995 * sysdeps/posix/sigwait.c: Likewise.
11996 Reported by Momchil Velikov <velco@fadata.bg>.
11998 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
11999 to match <arpa/inet.h> declaration.
12000 * inet/inet_netof.c (inet_netof): Likewise.
12001 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
12002 Reported by Momchil Velikov <velco@fadata.bg>.
12004 * configure.in: Skip AUTOCONF check under --without-cvs.
12005 * configure: Regenerated.
12007 * posix/Makefile (headers): Add bits/pthreadtypes.h.
12008 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
12009 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
12011 2002-11-24 Andreas Schwab <schwab@suse.de>
12013 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
12014 with six arguments.
12016 2002-11-19 Jim Meyering <jim@meyering.net>
12018 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
12020 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
12022 2002-11-23 Roland McGrath <roland@redhat.com>
12024 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
12025 Just produce hex output for datum sizes.
12027 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
12028 Reported by Luca Barbieri <ldb@ldb.ods.org>.
12030 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
12032 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
12033 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12034 and __unused3 fields.
12035 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
12036 [__WORDSIZE == 32]: Only PPC32 requires __unused1
12037 and __unused2 fields.
12038 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
12039 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12040 __unused3, and __unused4 fields.
12042 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
12043 obtain lowest address for profiling in __monstartup call.
12045 2002-11-21 Roland McGrath <roland@redhat.com>
12047 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
12048 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
12050 * locale/localeinfo.h (struct locale_data): Revert last change.
12052 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
12053 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12055 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
12056 __NR_pread64 if not defined.
12057 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
12058 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12060 2002-11-21 Roland McGrath <roland@frob.com>
12062 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
12063 __libc_multiple_libcs here. Call __setfpucw.
12065 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12067 * elf/Makefile (tests): Don't run test-arrayX tests for now.
12069 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
12070 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
12071 CLONE_CHILD_*TID flags.
12073 2002-11-20 Andreas Jaeger <aj@suse.de>
12075 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
12076 We pass struct ucontext on x86-64.
12078 (GET_FRAME): Adjust.
12079 (GET_STACK): Adjust.
12081 2002-11-20 Roland McGrath <roland@redhat.com>
12083 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
12084 conditionalize [! DO_VERSIONING] #error.
12086 * scripts/abilist.awk: Grok function descriptor symbols.
12088 * intl/tst-gettext.c (main): Check return values from setlocale.
12089 Add necessary unsetenv's to make LANG=existing-locale check work.
12091 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
12092 so aborted prior runs don't confuse things.
12094 * locale/localeinfo.h (struct locale_data: union locale_data_value):
12095 Use uintptr_t instead of unsigned int for `word' member.
12096 (_NL_CURRENT_WORD): Cast to uint32_t.
12098 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
12101 2002-11-20 Ulrich Drepper <drepper@redhat.com>
12103 * elf/tls-macros.h: Add IA-64 definitions.
12104 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
12106 * iconv/Makefile (tests): Add tst-iconv4.
12107 * iconv/tst-iconv4.c: New file.
12109 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
12110 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
12111 __GCONV_INCOMPLETE_INPUT.
12112 (ucs4le_internal_loop): Likewise.
12113 (ucs4le_internal_loop_unaligned): Likewise.
12114 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
12115 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
12116 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
12118 * iconv/loop.c (LOOPFCT): First test for empty input then for full
12121 * inet/getnameinfo.c: Use extend_alloca where appropriate.
12122 * sysdeps/posix/getaddrinfo.c: Likewise.
12124 * include/alloca.h (extend_alloca): New define. Based on stack
12125 direction it'll try to append to the previouls allocated buffer.
12127 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
12129 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
12130 use the same service for AF_INET and AF_INET6.
12132 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12134 * intl/localealias.c (read_alias_file): Use only about 400 bytes
12135 of stack space instead of 16k.
12137 2002-11-18 Wolfram Gloger <wg@malloc.de>
12140 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
12141 nothing if not initialized. Bug report from Marcus Brinkmann
12142 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12144 2002-11-19 Roland McGrath <roland@redhat.com>
12146 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
12149 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
12150 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
12151 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
12152 * configure: Regenerated.
12154 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12156 * include/dlfcn.h: __libc_dlopen is now a macro calling
12157 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
12158 (__libc_dlopen_mode): New prototype.
12159 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
12160 new parameter. Store new parameter in mode field of structure passed
12162 (struct do_dlopen_args): Add new field mode.
12163 (do_dlopen): Pass mode from parameter structure to _dl_open.
12165 2002-11-11 Randolf Chung <tausq@debian.org>
12167 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
12168 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
12169 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
12171 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
12173 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
12174 Set -mdisable-fpregs for this file.
12176 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
12178 * sysdeps/unix/sysv/linux/configure.in:
12179 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
12180 from gcc-3.0 era for backwards compatibility.
12181 * sysdeps/unix/sysv/linux/configure: Regenerate.
12183 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
12184 Define mcontext_t as a sigcontext.
12186 2002-11-18 Roland McGrath <roland@redhat.com>
12188 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
12189 Free memory in `last_result' if it was used.
12191 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
12192 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
12193 Do the parsing inline instead of copying strings and calling
12194 inet_network, and properly skip all alias names not matching the form.
12196 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
12198 2002-11-17 Ulrich Drepper <drepper@redhat.com>
12200 * manual/pattern.texi (Wordexp Example): Fix sample code.
12202 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
12203 childs stack which will be loaded into the %esi register.
12205 2002-11-14 Paul Eggert <eggert@twinsun.com>
12207 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
12208 overflow when skipping the question part and when unpacking aliases.
12210 2002-11-15 Roland McGrath <roland@redhat.com>
12212 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
12213 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
12214 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
12216 2002-11-15 Jakub Jelinek <jakub@redhat.com>
12218 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
12219 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
12221 2002-11-15 Roland McGrath <roland@redhat.com>
12223 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
12224 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
12225 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
12226 (+make-include-of-dep): New canned sequence.
12228 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
12229 From Dmitry V. Levin <ldv@altlinux.org>.
12231 2002-11-14 Roland McGrath <roland@redhat.com>
12233 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
12234 * inet/herrno.c (__libc_h_errno): Likewise.
12235 * resolv/res_libc.c (__libc_res): Likewise.
12236 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
12237 (__res_state) [! USE___THREAD]: Don't define as weak.
12238 * csu/Versions: Revert last change.
12239 * resolv/Versions: Revert last change.
12241 * Makerules ($(common-objpfx)%.make): New pattern rule.
12242 * tls.make.c: New file.
12243 * Makefile (distribute): Add it.
12245 * sysdeps/generic/errno.c [! USE___THREAD]
12246 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
12247 with compat_symbol so they are not link-time visible.
12248 [! USE___THREAD] (__libc_errno): New alias for errno.
12249 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12250 Add __libc_errno here.
12251 * inet/herrno.c [USE___THREAD]: Use this conditional
12252 in place of [USE_TLS && HAVE___THREAD].
12253 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
12254 (h_errno, _h_errno): Declare these with compat_symbol so they are not
12256 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
12257 * resolv/res_libc.c [! USE___THREAD]
12258 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
12259 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
12260 (__libc_res): Define as alias for _res.
12261 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12262 Add __libc_h_errno and __libc_res here.
12264 2002-11-14 Jakub Jelinek <jakub@redhat.com>
12266 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
12267 * resolv/Versions (h_errno, _res): Likewise.
12269 2002-11-14 Roland McGrath <roland@redhat.com>
12271 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
12272 (%.symlist): Likewise.
12274 2002-11-13 Roland McGrath <roland@redhat.com>
12276 * scripts/abilist.awk: New file.
12277 * Makefile (distribute): Add it.
12278 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
12279 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
12280 [$(subdir) = elf] (tests): Depend on libc.symlist.
12281 (generated, common-generated): Add those files.
12283 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
12284 * configure: Regenerated.
12285 * config.make.in (OBJDUMP): New variable, substituted by configure.
12287 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
12288 (mallochook, reallochook): Set them up.
12289 (checkhdr): Check HDR->magic2 value.
12290 (freehook): Reset HDR->magic2.
12291 (memalignhook): New static function.
12292 (old_memalign_hook): New static variable.
12293 (mcheck, reallochook): Set __memalign_hook to memalignhook.
12295 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
12298 2002-11-13 Andreas Jaeger <aj@suse.de>
12300 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
12302 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12304 2002-11-11 Paul Eggert <eggert@twinsun.com>
12306 * manual/crypt.texi (Cryptographic Functions): Mention that
12307 the MD5 one-way algorithm is compatible with BSD's.
12309 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12311 * posix/regex_internal.c (re_string_skip_chars): Also return the last
12313 (re_string_reconstruct): Calculate the context by itself when the
12314 offset points out of the valid range.
12315 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
12316 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
12317 (IS_WIDE_WORD_CHAR): New macro.
12318 (IS_WIDE_NEWLINE): New macro.
12320 2002-11-12 Andreas Jaeger <aj@suse.de>
12322 * sysdeps/x86_64/strchr.S: Don't use one register for two
12323 purposes, this fixes a bug noticed by test-strchr.c.
12325 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
12328 2002-11-12 Roland McGrath <roland@redhat.com>
12330 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
12331 (_G_IO_NO_BACKWARD_COMPAT): Define it.
12333 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
12334 instead of <pt-machine.h>.
12335 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
12337 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12339 2002-11-10 Roland McGrath <roland@redhat.com>
12341 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
12342 Call fputs instead of fwprintf (simpler to follow in debugger).
12344 * crypt/md5-crypt.c: Doc fix.
12346 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
12347 the beginning of generated target commands.
12349 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
12350 dependencies for these in case implicit rule search skipped the
12351 nonexistent source directory.
12352 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
12353 files with $(object-suffixes) as targets too.
12354 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
12355 and a target for it using $(make-target-directory).
12357 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
12359 2002-11-10 Roland McGrath <roland@frob.com>
12361 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
12362 * sysdeps/generic/bits/pthreadtypes.h: ... here.
12364 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
12365 l_start == 0 and l_len == 1 as we do l_len == 0.
12367 2002-11-10 Ulrich Drepper <drepper@redhat.com>
12369 * po/da.po: Update from translation team.
12371 2002-11-10 Roland McGrath <roland@redhat.com>
12373 * config.make.in (includedir): New variable, substituted by configure.
12374 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
12375 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
12377 2002-11-10 Andreas Jaeger <aj@suse.de>
12379 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
12380 REG_OLDMASK and REG_CR2 to synch with kernel header.
12383 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
12385 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
12386 * nss/getnssent_r.c (__nss_getent_r): Likewise.
12387 (__nss_setent): Likewise.
12388 (__nss_getent_r): Likewise.
12389 * inet/getnetgrent_r.c (innetgr): Likewise.
12390 (__internal_setnetgrent_reuse): Likewise.
12391 (internal_getnetgrent_r): Likewise.
12392 * inet/ether_hton.c (ether_hostton): Likewise.
12393 * inet/ether_ntoh.c (ether_ntohost): Likewise.
12394 * sunrpc/netname.c (netname2user): Likewise.
12395 * sunrpc/publickey.c (getpublickey): Likewise.
12396 (getsecretkey): Likewise.
12398 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
12400 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
12401 error in range calculation.
12403 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12405 * string/test-strspn.c (do_test): Ensure zero termination.
12406 * string/test-strpbrk.c (do_test): Likewise.
12407 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
12408 * string/test-strncpy.c (stupid_strncpy): Likewise.
12409 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
12411 2002-10-08 Roland McGrath <roland@redhat.com>
12413 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
12414 nonzero characters.
12416 2002-09-22 H.J. Lu <hjl@gnu.org>
12418 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
12419 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
12420 only if __NR_mmap2 is defined.
12422 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
12423 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
12424 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
12425 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
12427 2002-11-08 Jakub Jelinek <jakub@redhat.com>
12429 * posix/bug-regex13.c (tests): Add new test.
12431 * string/test-strchr.c (stupid_strchr): New function.
12432 (do_random_tests): Make sure the string is zero terminated.
12433 * string/test-strpbrk.c (stupid_strpbrk): New function.
12434 (do_random_tests): Make sure the string is zero terminated.
12435 * string/test-strcmp.c (stupid_strcmp): New function.
12436 (do_random_tests): Make sure the strings are zero terminated.
12437 * string/test-strspn.c (stupid_strspn): New function.
12438 (simple_strspn): Rename rej argument to acc.
12439 (do_random_tests): Make sure the string is zero terminated.
12440 * string/test-strcspn.c (stupid_strcspn): New function.
12441 * string/test-strncpy.c (stupid_strncpy): New function.
12442 * string/test-stpncpy.c (stupid_stpncpy): New function.
12443 * string/test-strncmp.c (stupid_strncmp): New function.
12444 (do_random_tests): Make sure the strings are zero terminated.
12445 * string/test-string.h (impl_t): Change test into long.
12446 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
12448 2002-11-08 Roland McGrath <roland@redhat.com>
12450 * sysdeps/ia64/elf/configure.in: Add TLS check.
12451 From Ian Wienand <ianw@cse.unsw.edu.au>.
12452 * sysdeps/ia64/elf/configure: Regenerated.
12454 2002-11-07 Roland McGrath <roland@redhat.com>
12456 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
12457 place of _IO_new_do_write.
12458 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
12459 #undef before versioned_symbol use.
12461 2002-11-07 Richard Henderson <rth@redhat.com>
12463 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
12464 * configure: Regenerated.
12465 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
12466 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
12467 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
12468 _dl_fini via gp-relative relocations.
12469 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
12471 * elf/tls-macros.h: Add alpha versions.
12472 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
12473 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
12474 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
12475 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
12476 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
12477 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
12478 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
12479 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
12480 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
12481 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
12482 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
12483 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12484 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
12485 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
12486 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
12487 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
12488 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
12489 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
12491 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
12492 Kill argument registers across the inline syscall.
12494 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
12496 * linuxthreads/sysdeps/alpha/tls.h: New file.
12497 * sysdeps/alpha/dl-tls.h: New file.
12499 2002-10-29 David Mosberger <davidm@hpl.hp.com>
12501 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
12502 (gmon_initializer): New function.
12503 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
12504 __gmon_start__ here. Call it from gmon_initializer() instead.
12506 2002-03-12 H.J. Lu <hjl@gnu.org>
12508 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
12509 tst-array2, and tst-array3.
12510 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
12511 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
12512 ($(objpfx)tst-array1.out): New target.
12513 ($(objpfx)tst-array2): Likewise.
12514 ($(objpfx)tst-array2.out): Likewise.
12515 ($(objpfx)tst-array3.out): Likewise.
12516 * elf/tst-array1.c: New file.
12517 * elf/tst-array1.exp: Likewise.
12518 * elf/tst-array2.c: Likewise.
12519 * elf/tst-array2dep.c: Likewise.
12520 * elf/tst-array2.exp: Likewise.
12521 * elf/tst-array3.c: Likewise.
12523 2002-10-28 David Mosberger <davidm@hpl.hp.com>
12525 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
12526 Don't add L->l_addr to array entry values.
12528 2002-11-07 Jakub Jelinek <jakub@redhat.com>
12530 * string/test-string.h: New file.
12531 * string/test-strlen.c: New file.
12532 * string/test-string.h: New file.
12533 * string/test-strcmp.c: New file.
12534 * string/test-strchr.c: New file.
12535 * string/test-strrchr.c: New file.
12536 * string/test-strcpy.c: New file.
12537 * string/test-stpcpy.c: New file.
12538 * string/test-strncpy.c: New file.
12539 * string/test-stpncpy.c: New file.
12540 * string/test-strpbrk.c: New file.
12541 * string/test-strcspn.c: New file.
12542 * string/test-strspn.c: New file.
12543 * string/test-strcat.c: New file.
12544 * string/test-strncmp.c: New file.
12545 * string/test-memchr.c: New file.
12546 * string/test-memcmp.c: New file.
12547 * string/test-memset.c: New file.
12548 * string/test-memcpy.c: New file.
12549 * string/test-mempcpy.c: New file.
12550 * string/test-memmove.c: New file.
12551 * string/Makefile (strop-tests): New variable.
12552 (tests): Add strop-tests.
12553 (distribute): Add test-string.h.
12555 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12557 * posix/regcomp.c: Use tabs instead of spaces.
12558 * posix/regexec.c: Likewise.
12559 * posix/regex_internal.h: Likewise.
12561 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
12563 2002-11-06 Jakub Jelinek <jakub@redhat.com>
12565 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
12567 (regcomp): Don't set can_be_null here.
12568 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
12569 (re_compile_internal): Clear can_be_null, set regs_allocated.
12571 * posix/regcomp.c (re_set_fastmap): New function.
12572 (re_compile_fastmap_iter): Use it. Remove redundant type ==
12573 COMPLEX_BRACKET check.
12574 * posix/regexec.c (re_search_internal): Optimize searching with
12575 fastmap. Call re_string_reconstruct even if match_first is
12576 smaller than raw_mbs_idx.
12578 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
12580 * posix/regcomp (free_dfa_content): Use free_state.
12581 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
12582 pointers in case that realloc failed.
12583 (re_node_set_merge): Likewise.
12584 (register_state): Likewise.
12585 (create_newstate_common): Invoke memory release functions in case of
12587 (create_ci_newstate): Likewise.
12588 (create_cd_newstate): Likewise.
12589 (free_state): New function.
12590 * posix/regexec.c (re_search_internal): Invoke memory release
12591 functions in case of error conditions.
12592 (sift_states_backward): Likewise.
12593 (merge_state_array): Likewise.
12594 (add_epsilon_src_nodes): Likewise.
12595 (sub_epsilon_src_nodes): Likewise.
12596 (search_subexp): Likewise.
12597 (sift_states_bkref): Likewise.
12598 (transit_state_sb): Likewise.
12599 (transit_state_mb): Likewise.
12600 (transit_state_bkref_loop): Likewise.
12601 (group_nodes_into_DFAstates): Likewise.
12602 (push_fail_stack): Don't edit pointers in case that realloc failed.
12603 (extend_buffers): Likewise.
12604 (match_ctx_add_entry): Likewise.
12606 2002-11-06 Roland McGrath <roland@redhat.com>
12608 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
12609 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12611 * configure.in: Add checks on as and ld for binutils 2.13 or later.
12612 * configure: Regenerated.
12614 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12616 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
12617 If re_compile_internal failed free fastmap buffer.
12618 (free_dfa_content): Broken out of regfree function. Frees all dfa
12620 (regfree): Add free_dfa_content.
12621 (re_compile_internal): If any of the called functions fails free
12622 all dfa related memory.
12624 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12626 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
12627 warnings from the kernel headers.
12629 2002-11-05 Roland McGrath <roland@redhat.com>
12631 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
12632 From Johannes Stezenbach <js@convergence.de>.
12634 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
12635 #errlist-compat magic comment to give 123 as size.
12636 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
12637 (libc: GLIBC_2.2): ... here.
12638 (libc: GLIBC_2.3): Likewise.
12640 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12642 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
12643 which happens at the beginning so that we can unload modules in
12646 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12648 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
12649 under [__USE_MISC || _ASM].
12651 * elf/elf.h: Remove the obsolete SH TLS relocations.
12653 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12655 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
12657 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
12660 __NR_pread64 and __NR_pwrite64.
12661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12662 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
12664 Revert change to use INLINE_SYSCALL.
12665 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12666 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12667 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12668 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
12670 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12673 Update clobber list and add a comment about the syscall ABI.
12675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
12676 s_pwrite64, s_ftruncate, s_truncate): Re-add.
12678 2002-11-05 Jakub Jelinek <jakub@redhat.com>
12680 * iconv/gconv_dl.c (free_mem): Clear loaded.
12681 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
12684 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12686 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
12688 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
12689 as old code without locking. _IO_seekoff calls this function after
12690 locking the stream.
12691 * libio/ioseekpos.c: Likewise for _IO_seekpos.
12692 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
12693 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
12695 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
12696 of _IO_seekoff_internal.
12697 (_IO_rewind): Likewise.
12698 * libio/ioftell.c: Likewise.
12699 * libio/ftello.c: Likewise.
12700 * libio/ftello64.c: Likewise.
12701 * libio/iofgetpos.c: Likewise.
12702 * libio/iofgetpos64.c: Likewise.
12703 * libio/oldiofgetpos.c: Likewise.
12704 * libio/oldiofgetpos64.c: Likewise.
12705 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
12706 _IO_seekpos_internal.
12707 * libio/iofsetpos64.c: Likewise.
12708 * libio/oldiofsetpos.c: Likewise.
12709 * libio/oldiofsetpos64.c: Likewise.
12711 2002-11-04 Roland McGrath <roland@redhat.com>
12713 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
12714 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
12715 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
12716 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
12717 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12718 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12719 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12720 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
12721 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
12722 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
12724 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
12725 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
12726 Remove these, no longer used.
12728 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
12731 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
12732 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
12733 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
12734 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
12735 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
12738 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
12739 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12740 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
12742 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12743 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
12745 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12747 2002-11-03 Roland McGrath <roland@redhat.com>
12749 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
12750 `_dl_tls_static_used'.
12751 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
12752 (__libc_setup_tls): Initialize it. Let the initial value of
12753 _dl_tls_static_size indicate some surplus space in the computed value.
12754 * elf/dl-open.c (_dl_tls_static_size): New variable.
12755 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
12756 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
12757 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
12758 (CHECK_STATIC_TLS): Use it.
12759 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
12760 closed objects occupied a trailing contiguous chunk of static TLS area.
12762 2002-10-18 Bruno Haible <bruno@clisp.org>
12764 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
12766 2002-11-04 Ulrich Drepper <drepper@redhat.com>
12768 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
12769 _wide_data->_IO_read_end if adjustment can be made in the current
12772 * sysdeps/unix/sysv/linux/fexecve.c: New file.
12774 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
12775 wide oriented streams are used.
12777 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
12778 service hasn't been used [PR libc/4744].
12780 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
12781 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
12783 * manual/examples/dir.c: Don't include <stddef.h>.
12784 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
12785 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
12787 2002-11-02 H.J. Lu <hjl@gnu.org>
12789 * stdio-common/reg-printf.c: Include <stddef.h>.
12791 2002-11-03 Ulrich Drepper <drepper@redhat.com>
12793 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
12795 * po/ca.po: Update from translation team.
12796 * po/es.po: Likewise.
12798 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
12799 is defined write out memory map.
12800 * sysdeps/unix/sysv/linux/segfault.c: New file.
12802 2002-11-02 Roland McGrath <roland@redhat.com>
12804 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
12805 pointers that can alias.
12806 Reported by Daniel Jacobowitz <drow@mvista.com>.
12808 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
12810 2002-11-02 Roland McGrath <roland@redhat.com>
12812 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
12813 description to be clearer and to say that *RESULT is set to ENTRY.
12815 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12817 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
12818 dests_ch arrays together. Alloca or malloc dest_states,
12819 dest_states_word and dest_states_nl arrays together. Free memory on
12822 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
12824 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
12825 and current_saltbits.
12827 2002-11-02 Roland McGrath <roland@redhat.com>
12829 * stdio-common/reg-printf.c: Include <stdlib.h>.
12831 2002-11-02 H.J. Lu <hjl@gnu.org>
12833 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
12834 caller to EXTRA instead of execve.
12836 2002-11-01 Roland McGrath <roland@redhat.com>
12838 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
12839 in place of [!(USE_TLS && HAVE___THREAD)].
12840 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
12842 2002-10-31 Roger Sayle <roger@eyesopen.com>
12844 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
12846 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12848 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
12849 without defining FP_ROUNDMODE.
12851 2002-10-29 Jakub Jelinek <jakub@redhat.com>
12853 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
12854 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
12856 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12857 (OLD_SIGLIST_SIZE): Define.
12858 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12859 (OLD_SIGLIST_SIZE): Define.
12860 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
12862 2002-11-01 Jakub Jelinek <jakub@redhat.com>
12864 * sysdeps/ia64/strncpy.S: Fix recovery code.
12866 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12868 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
12870 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
12872 * elf/dl-libc.c (free_mem): Likewise.
12873 * iconv/gconv_conf.c (free_mem): Likewise.
12874 * iconv/gconv_db.c (free_mem): Likewise.
12875 * iconv/gconv_dl.c (free_mem): Likewise.
12876 * iconv/gconv_cache.c (free_mem): Likewise.
12877 * intl/finddomain.c (free_mem): Likewise.
12878 * intl/dcigettext.c (free_mem): Likewise.
12879 * locale/setlocale.c (free_mem): Likewise.
12880 * misc/fstab.c (fstab_free): Likewise.
12881 * nss/nsswitch.c (free_mem): Likewise.
12882 * posix/regcomp.c (free_mem): Likewise.
12883 * resolv/gai_misc.c (free_res): Likewise.
12884 * stdlib/fmtmsg.c (free_mem): Likewise.
12885 * sunrpc/clnt_perr.c (free_mem): Likewise.
12886 * sysdeps/generic/setenv.c (free_mem): Likewise.
12887 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
12888 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
12889 * time/tzset.c (free_mem): Likewise.
12890 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
12891 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
12892 * malloc/set-freeres.c (__libc_freeres): Likewise.
12894 * login/getutent.c: Include stdlib.h instead of stddef.h.
12895 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12896 (__getutent): Allocate buffer the first time it is run.
12897 * login/getutid.c: Include stdlib.h instead of stddef.h.
12898 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12899 (__getutid): Allocate buffer the first time it is run.
12900 * login/getutline.c: Include stdlib.h instead of stddef.h.
12901 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12902 (__getutline): Allocate buffer the first time it is run.
12903 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
12904 (mtrace): Allocate malloc_trace_buffer.
12905 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
12906 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
12907 * string/strerror.c: Include libintl.h and errno.h.
12908 (buf): New variable.
12909 (strerror): Only allocate buffer if actually needed (unknown error).
12910 * time/tzfile.c (transitions): Add libc_freeres_ptr.
12913 2002-10-25 Jakub Jelinek <jakub@redhat.com>
12915 * include/libc-symbols.h (libc_freeres_ptr): New macro.
12916 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
12918 (__libc_freeres): Free all pointers in that section.
12919 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
12920 commands when creating .lds script.
12921 (LDSEDCMD-c.so): New variable.
12922 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12923 (rcmd_af): Use strdup to allocate ahostbuf.
12924 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
12925 (rexec_af): Use strdup to allocate ahostbuf.
12926 * stdio-common/reg-printf.c (printf_funcs): Remove.
12927 (__printf_arginfo_table): Change into printf_arginfo_function **.
12928 Add libc_freeres_ptr.
12929 (__register_printf_function): Allocate __printf_arginfo_table
12930 and __printf_function_table the first time it is called.
12931 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
12932 printf_arginfo_function **.
12933 (parse_one_spec): Add __builtin_expect.
12934 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
12935 (free_mem): Remove.
12936 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
12937 (free_mem): Remove.
12938 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
12939 (string_space, map): Add libc_freeres_ptr.
12940 (free_mem): Remove.
12941 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
12942 (free_mem): Remove.
12943 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
12944 (free_mem): Remove.
12945 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
12946 (buffer): Add libc_freeres_ptr.
12947 (free_mem): Remove for _LIBC.
12948 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
12949 (free_mem): Remove.
12950 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
12951 (free_mem): Remove.
12952 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
12953 (free_mem): Remove.
12954 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
12955 (free_mem): Remove.
12956 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
12957 (free_mem): Remove.
12958 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
12959 (free_mem): Remove.
12960 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
12962 (free_mem): Remove.
12963 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
12965 (free_mem): Remove.
12967 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12969 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
12970 instead of duplicating the whole function in libc.
12972 2002-10-31 Roland McGrath <roland@redhat.com>
12974 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
12975 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
12977 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12979 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
12980 32bit-predefine when creating .new32 list and -U for each
12981 32bit-predefine when creating .new64 list.
12982 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
12984 2002-10-29 Andreas Schwab <schwab@suse.de>
12986 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
12987 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
12989 2002-10-25 Roland McGrath <roland@redhat.com>
12991 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
12992 * sysdeps/unix/sysv/linux/configure: Regenerated.
12994 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
12995 _dl_starting_up decl.
12997 2002-10-20 H.J. Lu <hjl@gnu.org>
12999 * sysdeps/unix/sysv/linux/configure.in: Don't check
13000 /lib/modules/`uname -r`/build/include for kernel headers if
13002 * sysdeps/unix/sysv/linux/configure: Regenerated.
13004 2002-10-25 Roland McGrath <roland@redhat.com>
13006 * math/math.h (M_LOG2El): Correct the value.
13007 From Stephen L Moshier <steve@moshier.net>.
13009 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
13010 conditional from __libc_multiple_libcs access. Remove kludge for weak
13011 symbol access with old compilers we no longer support.
13012 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13013 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
13015 2002-10-25 Roland McGrath <roland@redhat.com>
13017 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
13018 implement SV_RESETHAND by translating it to SA_RESETHAND.
13020 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
13022 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
13023 type on ELF64 platforms.
13025 2002-10-24 Ulrich Drepper <drepper@redhat.com>
13027 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
13029 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
13031 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13033 * elf/dl-misc.c: Include <sysdep.h>.
13034 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
13036 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
13037 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13038 (INLINE_SYSCALL): Use that.
13039 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
13040 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13041 (INLINE_SYSCALL): Use that.
13042 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
13043 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13044 (INLINE_SYSCALL): Use that.
13045 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
13047 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13048 (__INTERNAL_SYSCALL_STRING): Define.
13049 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13051 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13052 (__INTERNAL_SYSCALL_STRING): Define.
13053 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
13054 __SYSCALL_STRING to inline_syscall*.
13055 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
13057 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
13058 inline_syscall4, inline_syscall5, inline_syscall6): Add string
13061 2002-10-24 Roland McGrath <roland@redhat.com>
13063 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
13064 * sysdeps/unix/sysv/linux/init-first.c: Not here.
13065 * sysdeps/powerpc/elf/libc-start.c: Or here.
13066 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
13067 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
13068 * sysdeps/unix/sysv/aix/init-first.c: Or here.
13069 * sysdeps/generic/libc-start.c: Or here.
13070 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
13071 access with [! SHARED].
13072 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13074 * libio/bug-wfflush.c: New file.
13075 * libio/Makefile (tests): Add bug-wfflush.
13077 2002-10-23 Roland McGrath <roland@redhat.com>
13079 * stdio-common/tst-fphex.c: New file.
13080 * stdio-common/Makefile (tests): Add tst-fphex.
13081 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
13082 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
13083 chars always before the value digits.
13084 Reported by James Antill <james.antill@redhat.com>.
13086 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13088 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
13089 (free_mem): New function.
13090 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
13091 if not cross compiling.
13092 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
13093 (bug-regex14-ENV): Set.
13094 (bug-regex14-mem): New target.
13095 * posix/bug-regex14.c: New file.
13097 2002-10-23 Roland McGrath <roland@redhat.com>
13099 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
13100 target, so we don't touch it when the link fails.
13102 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
13103 Check for the result overflowing off_t and fail with EOVERFLOW.
13104 * libio/ioftell.c (_IO_ftell): Likewise.
13105 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
13107 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
13108 use a temporary timeval on the stack for gettimeofday and copy it.
13109 * login/logout.c (logout): Likewise.
13110 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
13112 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
13113 Use __SWORD_TYPE instead of int for member types.
13114 (struct statfs64): Likewise.
13115 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
13116 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
13117 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
13118 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
13119 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
13121 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
13122 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
13123 (ST_NODIRATIME): Restore fixed value of 2048.
13124 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
13125 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
13127 Rearranged <bits/types.h> definitions to reduce duplication.
13128 * sysdeps/generic/bits/types.h: Rewritten, using macros from
13129 <bits/wordsize.h> and new header <bits/typesizes.h>.
13130 * posix/Makefile (headers): Add bits/typesizes.h here.
13131 * sysdeps/generic/bits/typesizes.h: New file.
13132 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
13133 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
13134 * sysdeps/mach/hurd/bits/typesizes.h: New file.
13135 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
13136 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
13137 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
13138 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
13139 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
13140 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
13141 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
13142 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
13143 <bits/pthreadtypes.h> here, not in <bits/types.h>.
13144 * signal/signal.h: Likewise.
13146 * streams/stropts.h: Include <bits/xtitypes.h>.
13147 * streams/Makefile (headers): Add bits/xtitypes.h here.
13148 * sysdeps/generic/bits/xtitypes.h: New file.
13149 * sysdeps/s390/bits/xtitypes.h: New file.
13150 * sysdeps/ia64/bits/xtitypes.h: New file.
13151 * sysdeps/x86_64/bits/xtitypes.h: New file.
13153 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
13154 * sysdeps/generic/bits/ipctypes.h: New file.
13155 * sysdeps/mips/bits/ipctypes.h: New file.
13156 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
13157 * sysdeps/gnu/bits/msq.h: Likewise.
13158 * sysvipc/sys/ipc.h: Likewise.
13160 2002-10-22 Ulrich Drepper <drepper@redhat.com>
13162 * elf/dl-load.c (struct filebuf): For buf element to have the
13163 alignment of ElfXX_Ehdr since this is what will be stored in it.
13165 2002-10-22 Jakub Jelinek <jakub@redhat.com>
13167 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
13168 into pointer to locrec_offset.
13169 (add_locale_to_archive): Adjust callers. Free normalized_name right
13170 before returning, not immediately after add_locale, pass it to
13171 add_alias if not NULL instead of name. Rename second normalized_name
13172 occurence to nnormalized_codeset_name.
13174 * locale/programs/locarchive.c (enlarge_archive): Make sure
13175 string_size is always a multiple of 4.
13176 Reported by Andreas Schwab <schwab@suse.de>.
13178 2002-10-21 Andreas Schwab <schwab@suse.de>
13180 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
13181 caller to EXTRA instead of execve, since the latter has a
13182 higher-priority implementation in linuxthreads.
13184 2002-10-21 Roland McGrath <roland@redhat.com>
13186 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
13187 slotinfo list's len member to the proper size, not just 1.
13188 Initialize static_map.l_tls_initimage.
13190 * elf/dl-open.c (dl_open_worker): Fix loop searching for
13191 dtv_slotinfo_list element containing new modules' l_tls_modid.
13193 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
13194 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
13195 * elf/Makefile (tests): Add tst-tls9.
13196 (tests-static): Add tst-tls9-static.
13197 (tst-tls9-static-ENV): New variable.
13198 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
13200 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
13201 modids used by partially loaded modules being closed can't be known.
13203 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
13205 * posix/Makefile: Add a test case for the bug reported by Aharon
13206 Robbins <arnold@skeeve.com>.
13207 * posix/bug-regex13.c: New file.
13208 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
13210 2002-10-21 Ulrich Drepper <drepper@redhat.com>
13212 * csu/gmon-start.c: Pretty printing.
13214 2002-10-19 Art Haas <ahaas@neosoft.com>
13216 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
13217 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
13218 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
13219 * configure: Regenerated.
13221 2002-10-19 Roland McGrath <roland@redhat.com>
13223 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
13224 and then set $subdirs directly, because the new Autoconf breaks
13225 compatibility in every way imaginable and insists on whining
13226 about usage that worked since the dawn of time.
13227 * configure: Regenerated.
13229 * configure: Regenerated (using Autoconf 2.54).
13230 * sysdeps/alpha/elf/configure: Likewise.
13231 * sysdeps/generic/configure: Likewise.
13232 * sysdeps/i386/elf/configure: Likewise.
13233 * sysdeps/ia64/elf/configure: Likewise.
13234 * sysdeps/mach/hurd/configure: Likewise.
13235 * sysdeps/mach/configure: Likewise.
13236 * sysdeps/unix/configure: Likewise.
13237 * sysdeps/unix/common/configure: Likewise.
13238 * sysdeps/unix/sysv/aix/configure: Likewise.
13239 * sysdeps/unix/sysv/linux/configure: Likewise.
13240 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13241 * sysdeps/x86_64/elf/configure: Likewise.
13243 * config.make.in: Nix completely-soft nonsense.
13244 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
13245 of machine directories instead of fpu subdirectory.
13246 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
13247 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
13248 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
13249 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
13250 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
13251 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
13252 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
13253 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
13254 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
13255 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
13256 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
13257 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
13258 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
13259 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
13260 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
13261 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
13262 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
13263 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
13264 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
13265 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
13266 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
13267 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
13268 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
13269 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
13270 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
13271 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
13272 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
13273 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
13274 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
13275 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
13276 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
13277 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
13278 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
13279 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
13280 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
13281 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
13282 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
13283 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
13284 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
13285 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
13287 2002-10-19 Bruno Haible <bruno@clisp.org>
13289 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
13291 2002-10-18 Roland McGrath <roland@redhat.com>
13293 * io/Makefile (routines): Add lchmod.
13294 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
13295 * sysdeps/generic/lchmod.c: New file.
13296 * sysdeps/mach/hurd/lchmod.c: New file.
13297 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
13299 2002-10-18 Art Haas <ahaas@neosoft.com>
13301 * configure.in: Remove remaining AC_FD_CC macros, and replace
13302 AC_FD_MSG with AS_MESSAGE_FD.
13304 2002-10-18 Roland McGrath <roland@redhat.com>
13306 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
13307 typos: VALUE -> FINALADDR.
13309 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
13310 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
13311 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
13312 (inline_syscall6): Move these macros ...
13313 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
13315 * configure.in (libc_link_dests, libc_link_sources): Remove these
13316 variables and the AC_LINK_FILES call.
13318 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
13319 change to put new symbols here instead of in GLIBC_2.2.
13320 * sysdeps/powerpc/Subdirs: Move this file ...
13321 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
13323 2002-10-07 Roland McGrath <roland@redhat.com>
13325 * sysdeps/generic/bits/time.h: Replaced with contents of the
13326 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
13327 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
13328 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
13329 macros is ok even for architectures that don't now implement them.
13330 * sysdeps/mach/hurd/bits/time.h: File removed.
13331 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
13332 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
13333 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
13334 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
13335 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
13337 2002-10-18 Jeff Bailey <jbailey@gnu.org>
13339 * configure.in: Replace obsolete AC_OUTPUT syntax with
13340 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
13342 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
13343 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
13345 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
13346 * sysdeps/alpha/elf/configure.in: Likewise.
13347 * sysdeps/i386/elf/configure.in: Likewise.
13348 * sysdeps/mach/hurd/configure.in: Likewise.
13349 * sysdeps/x86_64/elf/configure.in: Likewise.
13351 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
13353 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
13354 * sysdeps/generic/configure.in: Likewise.
13355 * sysdeps/i386/elf/configure.in: Likewise.
13356 * sysdeps/ia64/elf/configure.in: Likewise.
13357 * sysdeps/mach/configure.in: Likewise.
13358 * sysdeps/mach/hurd/configure.in: Likewise.
13359 * sysdeps/unix/configure.in: Likewise.
13360 * sysdeps/unix/common/configure.in: Likewise.
13361 * sysdeps/unix/sysv/aix/configure.in: Likewise.
13362 * sysdeps/unix/sysv/linux/configure.in: Likewise.
13363 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
13364 * sysdeps/x86_64/elf/configure.in: Likewise.
13366 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
13367 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
13368 that it's obvious when extra autoconf machinery is being dragged in.
13370 2002-10-18 Roland McGrath <roland@redhat.com>
13372 * configure.in: Remove bogus echo included in
13373 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
13374 * configure: Regenerated.
13376 2002-10-18 Jakub Jelinek <jakub@redhat.com>
13378 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
13379 (statfs_filesize_max): New function.
13380 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
13381 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
13382 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
13383 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
13384 statfs_filesize_max.
13385 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13386 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
13387 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
13389 2002-10-17 Roland McGrath <roland@redhat.com>
13391 * configure.in (MIG): Just AC_SUBST it here.
13392 * configure: Regenerated.
13393 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
13394 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
13395 * sysdeps/mach/configure: Regenerated.
13397 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
13398 and AC_PROVIDE([_AS_CR_PREPARE]).
13400 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
13401 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
13403 * elf/dl-support.c: Move _dl_tls_* variables to ...
13404 * sysdeps/generic/libc-tls.c: ... here.
13406 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
13407 allow IDX to be one past the current last slotinfo entry.
13408 (_dl_close): Pass IMAP->l_init_called for that parameter.
13410 2002-10-07 Andreas Schwab <schwab@suse.de>
13412 * aclocal.m4: Fix for autoconf 2.53.
13413 * configure.in: Likewise. Require autoconf 2.53.
13415 2002-10-08 Richard Henderson <rth@redhat.com>
13417 * soft-fp/op-4.h: Handle carry correctly in
13418 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
13419 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
13420 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
13422 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13424 * configure.in: Compute completely-soft.
13425 * config.make.in: Make completely-soft available to sub-makes.
13426 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
13427 gcc-double-routines. Add sim-full.c. Add fenv_const and
13428 fe_nomask to libm-support.
13429 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
13430 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
13431 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
13432 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
13433 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
13434 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
13435 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
13436 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
13437 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
13438 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
13439 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
13440 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
13441 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
13442 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
13443 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
13444 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
13445 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
13446 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
13447 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
13448 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
13450 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
13451 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
13452 FP_HANDLE_EXCEPTIONS.
13453 Define FP_ROUNDMODE.
13454 Redefine FP_* macros to correspond to the FE_* bit positions.
13455 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
13456 Define externs for __sim_exceptions, __sim_disabled_exceptions,
13457 __sim_round_mode, __simulate_exceptions.
13458 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
13459 * sysdeps/powerpc/bits/fenv.h: ...to here.
13461 2002-10-06 Jakub Jelinek <jakub@redhat.com>
13463 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13464 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
13465 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
13466 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
13469 2002-10-15 Jakub Jelinek <jakub@redhat.com>
13471 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
13472 __libc_res_nsend): New prototypes.
13473 * resolv/res_query.c (QUERYSIZE): Define.
13474 (__libc_res_nquery): Renamed from res_nquery. Added answerp
13475 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
13476 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
13477 res_nsend, pass answerp.
13478 (res_nquery): Changed into wrapper around __libc_res_nquery.
13479 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
13480 argument. Call __libc_res_nquerydomain and __libc_res_nquery
13481 instead of the non-__libc_ variants, pass them answerp.
13482 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
13483 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
13484 Added answerp argument. Call __libc_res_nquery instead of
13485 res_nquery, pass answerp.
13486 (res_nquerydomain): Changed into wrapper around
13487 __libc_res_nquerydomain.
13488 * resolv/res_send.c: Include sys/ioctl.h.
13489 (MAXPACKET): Define.
13490 (send_vc): Change arguments. Reallocate answer buffer if it is
13492 (send_dg): Likewise.
13493 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
13494 Reallocate answer buffer if it is too small and hooks are in use.
13495 Adjust calls to send_vc and send_dg.
13496 (res_nsend): Changed into wrapper around __libc_res_nsend.
13497 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
13498 just 1K answer buffer on the stack, use __libc_res_nsearch instead
13500 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
13501 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
13502 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
13503 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
13504 (gethostbyaddr): Similarly with __libc_res_nquery.
13505 * resolv/Versions (libresolv): Export __libc_res_nquery and
13506 __libc_res_nsearch at GLIBC_PRIVATE.
13508 2002-10-17 Roland McGrath <roland@redhat.com>
13510 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
13511 * configure: Regenerated.
13513 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
13514 before performing the reloc, not after.
13515 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13517 2002-10-17 Ulrich Drepper <drepper@redhat.com>
13519 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
13520 * locale/programs/linereader.c (lr_open): Likewise.
13521 * locale/programs/charmap-dir.c (charmap_open): Likewise.
13522 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13524 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
13526 * posix/bug-regex11.c: Add a test case for the bug reported by
13527 Paolo Bonzini <bonzini@gnu.org>.
13528 * posix/regexec.c (sift_states_bkref): Use correct destination of
13529 the back reference.
13531 2002-10-17 Roland McGrath <roland@redhat.com>
13533 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
13534 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
13535 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
13536 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
13537 Call it after performing TPOFF relocs.
13538 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13539 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13540 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
13542 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
13543 when closing a partially-initialized object.
13545 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
13546 instead of _dl_fatal_printf when we see PT_TLS.
13548 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
13549 instead of $(libof-$<).
13551 2002-10-16 Roland McGrath <roland@redhat.com>
13553 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
13554 instead of += to append, to be sure $(lib) gets expanded at defn time.
13555 (libof-$(cpp-src)): New variable, define this instead.
13556 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
13557 (lib): Don't use override.
13558 (CPPFLAGS-$(lib)): New variable, put -D's here.
13559 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
13560 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
13561 LIB found by $(libof-*) for basename, target, or source.
13562 * Makerules (CPPFLAGS-nonlib): New variable.
13563 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
13564 * locale/Makefile (lib): Likewise.
13565 * sunrpc/Makefile (lib): Likewise.
13567 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
13568 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
13569 * sysdeps/unix/sysv/linux/pathconf.h: New file.
13570 (statfs_link_max): New function, guts from fpathconf.c.
13571 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
13572 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13573 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
13574 to use the linux/pathconf.c code by #include rather than duplication.
13575 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
13577 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13579 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13580 Use __libc_errno only for libc itself.
13582 2002-10-16 Andreas Jaeger <aj@suse.de>
13584 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
13586 2002-10-16 Ulrich Drepper <drepper@redhat.com>
13588 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13589 Use __libc_errno only for libc itself.
13591 2002-10-15 Roland McGrath <roland@redhat.com>
13592 Jakub Jelinek <jakub@redhat.com>
13594 * sysdeps/unix/sysv/linux/Makefile
13595 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
13596 sparc/Makefile to produce a bi-arch file as needed.
13597 That's now parameterized by the variable $(64bit-predefine).
13598 Use LC_ALL=C for `comm' commands in that rule.
13599 No longer conditional on [$(no_syscall_list_h)].
13600 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
13601 (64bit-predefine): New variable.
13602 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
13603 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
13604 * sysdeps/unix/sysv/linux/powerpc/Makefile
13605 (64bit-predefine): New variable.
13607 2002-10-15 Roland McGrath <roland@redhat.com>
13609 * sysdeps/unix/sysv/linux/Makefile
13610 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
13612 * login/utmp-private.h: Declare __libc_utmp_lock.
13613 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
13614 and call __libc_utmp_jump_table functions directly, instead of using
13617 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
13618 * sysdeps/unix/sysv/linux/configure: Regenerated.
13620 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
13621 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13622 Use int32_t for ll_time.
13623 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13624 Use int32_t instead of long int for ut_session.
13625 Use an anonymous struct with 32-bit fields for ut_tv.
13626 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
13627 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
13628 here as in utmp.h for `struct utmp'.
13629 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
13630 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
13631 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
13632 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
13633 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
13634 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
13636 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
13637 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
13638 All the following files were identical or equivalent to it.
13639 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
13640 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
13641 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
13642 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
13643 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
13644 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
13645 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
13646 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
13647 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
13648 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
13650 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
13651 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
13652 Other than the previously incorrect sign of msg_iovlen, this is a
13653 no-op on 32-bit platforms. On 64-bit platforms it makes this header
13654 match their layouts as well, so the following are now identical to it.
13655 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
13656 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
13657 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
13658 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
13659 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
13661 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13663 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
13664 Define for 2.4+ kernels.
13666 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
13667 are known to have the vfork syscall. Don't confuse the CPUs
13668 branch prediction unit by jumping to the return address.
13670 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
13671 support for reiserfs and xfs.
13673 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
13675 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
13677 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
13679 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13681 * include/libc-symbols.h (attribute_tls_model_ie): Define.
13682 * include/errno.h (errno): Define to __libc_errno in libc.so.
13683 Add attribute_tls_model_ie.
13684 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
13685 Add attribute_tls_model_ie.
13686 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
13687 attribute_tls_model_ie.
13688 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
13690 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
13692 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
13693 attribute_tls_model_ie.
13694 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
13696 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
13697 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
13698 __libc_errno in USE___THREAD case.
13699 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13701 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
13702 __attribute__((tls_model (""))).
13703 * configure: Rebuilt.
13704 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
13706 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13708 * timezone/asia: Update from tzdata2002d.
13709 * timezone/australasia: Likewise.
13710 * timezone/iso3166.tab: Likewise.
13711 * timezone/southamerica: Likewise.
13712 * timezone/zone-tab: Likewise.
13714 2002-10-15 Roland McGrath <roland@redhat.com>
13716 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
13717 Adjust TCB pointer before calling free, so we get the whole block.
13719 2002-10-14 Roland McGrath <roland@redhat.com>
13721 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
13722 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
13723 extern using attribute_hidden instead of static, avoids warning.
13725 2002-10-09 Jakub Jelinek <jakub@redhat.com>
13727 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
13728 * sysdeps/unix/sysv/linux/configure: Rebuilt.
13730 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13732 * po/sv.po: Update from translation team.
13734 2002-10-12 H.J. Lu <hjl@gnu.org>
13736 * sunrpc/thrsvc.c (PROCQUIT): New.
13737 (struct rpc_arg): New.
13738 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
13739 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
13740 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
13741 (main): Modified for struct rpc_arg *.
13743 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13745 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
13747 2002-10-14 Jakub Jelinek <jakub@redhat.com>
13749 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
13750 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
13751 in ld.so even if __thread is supported.
13753 2002-10-13 Jakub Jelinek <jakub@redhat.com>
13755 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
13756 Add hack to prevent the compiler from clobbering the signal context.
13757 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
13759 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
13762 2002-10-14 Andreas Jaeger <aj@suse.de>
13764 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
13765 Guido Guenther <agx@sigxcpu.org>.
13767 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13769 * po/sk.po: Update from translation team.
13771 2002-09-26 Roland McGrath <roland@redhat.com>
13773 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
13774 dynamic string tag.
13775 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
13776 DL_DST_LIB based on $(slibdir).
13778 2002-10-13 Roland McGrath <roland@frob.com>
13780 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
13782 * sysdeps/mach/hurd/getresuid.c: New file.
13783 * sysdeps/mach/hurd/getresgid.c: New file.
13784 * sysdeps/mach/hurd/setresuid.c: New file.
13785 * sysdeps/mach/hurd/setresgid.c: New file.
13787 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
13788 setresgid): Declare them.
13789 * NEWS: Mention it.
13791 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
13792 add libc_hidden_proto.
13793 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
13794 getresuid, getresgid, setresuid, setresgid here.
13795 * Versions.def (libc): Define GLIBC_2.3.2 set.
13796 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
13797 Add libc_hidden_def.
13798 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
13799 * sysdeps/generic/setresgid.c: New file.
13800 * sysdeps/generic/setresuid.c: New file.
13801 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13802 (sysdep_routines): Don't add getresuid and getresgid here.
13803 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
13804 (sysdep_routines): Don't add setresuid and setresgid here.
13805 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13806 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13807 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13808 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13809 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13810 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13811 * posix/Makefile (routines): Add them all here instead.
13812 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
13813 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
13814 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
13815 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
13816 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
13817 [! __NR_setresuid]: Include generic file.
13818 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
13819 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
13820 [! __NR_setresuid]: Include generic file.
13821 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
13822 Caller is - now, not EXTRA.
13823 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
13824 (setresuid, setresgid, getresuid, getresgid): Likewise.
13825 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
13826 Add these calls here.
13827 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
13828 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
13829 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13830 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13831 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13833 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
13834 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
13835 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13837 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13838 (sysdep_routines): Add setfsuid and setfsgid here.
13839 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
13840 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
13841 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13842 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13843 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13844 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13845 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13846 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13848 * hurd/errno.c: Renamed to ...
13849 * hurd/errno-loc.c: ... this.
13850 * hurd/Makefile (routines): errno -> errno-loc
13852 2002-10-13 Ulrich Drepper <drepper@redhat.com>
13854 * po/de.po: Update from translation team.
13856 * MakeTAGS: Add -E flag to xgettext runs.
13858 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13860 * po/fr.po: Update from translation team.
13862 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
13863 Optimize a bit for use in glibc.
13865 2002-10-12 Roland McGrath <roland@redhat.com>
13867 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
13868 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
13870 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13872 * po/sv.po: Update from translation team.
13874 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13876 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
13878 (regfree): Likewise.
13879 (create_initial_state): Likewise.
13880 (analyze): Remove the substitutions which became useless.
13881 (calc_first): Likewise.
13882 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
13883 epsilon destination.
13884 (duplicate_node_closure): New function.
13885 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
13886 (calc_inveclosure): Likewise.
13887 (calc_eclosure): Likewise.
13888 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
13889 direct invocation of duplicate_node.
13890 (parse): Don't use comma operator in the return to avoid compiler
13892 (parse_reg_exp): Likewise.
13893 (parse_branch): Likewise.
13894 (parse_expression): Likewise.
13895 (parse_sub_exp): Likewise.
13896 (parse_dup_op): Likewise.
13897 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
13898 which became useless.
13899 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
13900 (create_cd_newstate): Likewise.
13901 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
13902 (re_token_t): Likewise.
13903 (re_dfa_t): Likewise.
13904 (re_node_set_remove): New macro.
13905 * posix/regexec.c (check_matching): Remove the handling
13907 (check_halt_node_context): Likewise.
13908 (proceed_next_node): Likewise.
13909 (pop_fail_stack): Fix the memory leak.
13910 (set_regs): Likewise.
13911 (free_fail_stack_return): New function.
13912 (sift_states_backward): Fix the memory leak. Remove the handling
13914 (update_cur_sifted_state): Append some if clause to avoid redundant
13916 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
13918 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
13919 (check_subexp_limits): Likewise.
13920 (search_subexp): Likewise.
13921 (sift_states_bkref): Likewise.
13922 (transit_state_mb): Likewise.
13923 (transit_state_bkref_loop): Likewise.
13924 (transit_state_bkref_loop): Likewise.
13925 (group_nodes_into_DFAstates): Likewise.
13926 (check_node_accept): Likewise.
13927 (sift_ctx_init): Add initializing.
13929 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13931 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
13934 2002-10-11 Ulrich Drepper <drepper@redhat.com>
13936 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
13937 duplicated variable c.
13939 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
13942 * sysdeps/unix/sysv/linux/i386/sysdep.h
13943 (INTERNAL_SYSCALL_ERROR_P): New define.
13944 (INTERNAL_SYSCALL_ERRNO): Likewise.
13946 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
13947 Add hack to prevent the compiler from clobbering the signal context.
13949 2002-10-11 Roland McGrath <roland@redhat.com>
13951 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13954 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
13955 * sysdeps/sh/dl-lookupcfg.h: File removed.
13956 * sysdeps/i386/dl-lookupcfg.h: File removed.
13958 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
13959 missing labels and ; from last change.
13961 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
13962 number literals, so they are doubles instead of ints.
13964 2002-10-09 Roland McGrath <roland@redhat.com>
13966 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
13967 changed from [USE_TLS && HAVE___THREAD].
13969 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
13970 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
13971 * sysdeps/x86_64/dl-machine.h
13972 (elf_machine_type_class, elf_machine_rela): Likewise.
13973 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
13976 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
13977 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
13978 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
13980 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
13981 instead of ___tls_get_addr.
13982 (___tls_get_addr_internal): Add attribute_hidden to decl.
13984 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
13985 _dl_error_catch_tsd.
13986 * elf/rtld.c (startup_error_tsd): New function.
13987 (dl_main): Point _dl_error_catch_tsd at that.
13988 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
13989 use new function pointer instead.
13990 * elf/dl-tsd.c: New file.
13991 * elf/Makefile (routines): Add it.
13993 2002-10-07 Roland McGrath <roland@redhat.com>
13995 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
13996 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
13997 take _dl_load_lock around calling __writev.
13999 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
14000 (INLINE_SYSCALL): Use that.
14002 * sysdeps/generic/dl-sysdep.h: New file.
14003 * sysdeps/mach/hurd/dl-sysdep.h: New file.
14004 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
14005 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
14006 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
14007 access it directly.
14008 * elf/dl-minimal.c (__errno_location): Removed.
14009 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14010 Use GOTOFF access for errno.
14011 * sysdeps/unix/sysv/linux/i386/sysdep.h
14012 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14014 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14015 Use PC-relative access for errno.
14016 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14017 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14019 * include/tls.h: New file.
14020 (USE___THREAD): New macro.
14021 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
14022 libc or libpthread.
14023 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
14024 changed from [USE_TLS && HAVE___THREAD].
14025 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14026 * sysdeps/unix/i386/sysdep.S: Likewise.
14027 * sysdeps/unix/x86_64/sysdep.S: Likewise.
14028 * include/errno.h: Likewise.
14029 * include/netdb.h: Likewise.
14030 * include/resolv.h: Likewise.
14032 * sysdeps/generic/errno.c: New file.
14033 * csu/Makefile (aux): New variable, list errno.
14034 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
14035 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
14036 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
14037 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14038 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14039 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
14040 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
14041 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
14042 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14043 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
14044 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
14045 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
14046 * sysdeps/unix/alpha/sysdep.S: Likewise.
14047 * sysdeps/generic/start.c: Likewise.
14048 * sysdeps/unix/start.c: Likewise.
14049 * sysdeps/unix/arm/start.c: Likewise.
14050 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
14051 * sysdeps/unix/sparc/start.c: Likewise.
14052 * sysdeps/unix/sysv/irix4/start.c: Likewise.
14053 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
14055 * manual/search.texi (Tree Search Function, Hash Search Function):
14056 Mention search.h clearly.
14058 2002-10-05 Roland McGrath <roland@redhat.com>
14060 * elf/dl-fxstat64.c: File removed.
14061 * elf/dl-xstat64.c: File removed.
14062 * elf/Makefile (rtld-routines): Remove them.
14063 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
14064 Instead, use strong_alias instead of versioned_symbol in the
14065 !SHLIB_COMPAT case.
14066 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
14067 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
14069 * include/shlib-compat.h
14070 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
14071 [! NOT_IN_libc] (IS_IN_libc): Define it.
14072 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
14073 * elf/Makefile (CPPFLAGS-.os): Likewise.
14075 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
14076 Return the status instead of calling exit.
14078 * Makeconfig (CFLAGS): Prepend -std=gnu99.
14079 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
14080 Remove superfluous rm command, whose @ plus make bugs hid
14081 all these commands from the make output.
14083 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
14084 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
14085 Use that file's contents instead of literal echo's for the prologue.
14086 * include/features.h: Include <gnu/stubs.h> unconditionally.
14087 * include/gnu/stubs.h: New file.
14089 2002-09-30 Roland McGrath <roland@redhat.com>
14091 * elf/rtld-Rules: New file.
14092 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
14093 $(objpfx)rtld-libc.a): New targets.
14094 (generated): Add them.
14095 (reloc-link): Remove -o $@ from the variable.
14096 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
14097 (distribute): Add rtld-Rules.
14098 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
14099 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
14100 (common-mostlyclean, common-clean): Clean up rtld-* files.
14101 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
14103 2003-05-20 Jakub Jelinek <jakub@redhat.com>
14105 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
14106 If temp != NULL, copy dynamic entries which need relocation to temp
14107 array before relocating.
14108 (DL_RO_DYN_TEMP_CNT): Define.
14109 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
14110 * elf/rtld.c (_dl_start): Likewise.
14111 (dl_main): Likewise. Add dyn_temp static variable.
14113 2002-10-11 Roland McGrath <roland@redhat.com>
14115 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
14116 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
14118 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
14119 proper set of no-op insn prefixes.
14121 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
14123 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14125 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
14126 __pthread_kill_other_threads_np.
14128 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
14130 2002-10-08 Roland McGrath <roland@redhat.com>
14132 * locale/newlocale.c (__newlocale): If setting all categories to "C",
14133 just return &_nl_C_locobj instead of copying it.
14134 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
14135 * locale/duplocale.c (__duplocale): Likewise.
14137 2002-10-07 Roland McGrath <roland@frob.com>
14139 * config.h.in (HAVE_I386_SET_GDT): New #undef.
14140 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
14141 * sysdeps/mach/configure: Regenerated.
14143 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14146 Add all necessary register outputs for syscall-clobbered registers.
14148 2002-10-02 David Mosberger <davidm@hpl.hp.com>
14150 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
14151 Itanium 2 (and Itanium).
14152 Fix unwind directives and make it fit in 80 columns.
14153 * sysdeps/ia64/memset.S: Likewise.
14154 * sysdeps/ia64/memcpy.S: Likewise.
14155 Move jump table to .rodata section.
14157 2002-10-03 Roland McGrath <roland@frob.com>
14159 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
14162 2002-10-10 Andreas Jaeger <aj@suse.de>
14164 * sysdeps/x86_64/_mcount.S: Restore correct registers.
14166 2002-10-10 Ulrich Drepper <drepper@redhat.com>
14168 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
14170 2002-10-09 Ulrich Drepper <drepper@redhat.com>
14172 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
14173 _dl_allocate_tls_init. Add rtld_hidden_proto.
14174 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
14176 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
14178 * version.h (VERSION): Bump to 2.3.1.
14180 * Make-dist: Add back one of the tar invocations removed before.
14182 * stdlib/Makefile (distribute): Add allocalim.h.
14184 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
14185 (__libc_tsd_address): Use correct variable name.
14186 Patch by Stefan Jones <stefan.jones@multigig.com>.
14188 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
14189 Reported by edwardsg@sgi.com [PR libc/4678].
14191 * Versions.def (libc): Add GLIBC_2.3.1.
14192 (libpthread): Add GLIBC_2.3.1.
14194 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
14195 and __sigtimedwait.
14196 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
14197 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
14199 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
14200 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
14202 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
14203 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
14204 and make old name an alias.
14205 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
14206 and make old name an alias.
14207 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
14210 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
14211 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
14213 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
14215 * sysdeps/posix/readv.c: Likewise
14216 * sysdeps/unix/sysv/aix/readv.c: Likewise.
14217 * sysdeps/unix/sysv/linux/readv.c: Likewise.
14218 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
14220 * sysdeps/posix/writev.c: Likewise
14221 * sysdeps/unix/sysv/aix/writev.c: Likewise.
14222 * sysdeps/unix/sysv/linux/writev.c: Likewise.
14224 * include/sys/wait.h: Declare __waitid.
14225 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
14226 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
14228 * sysdeps/posix/waitid.c: Likewise.
14229 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
14231 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
14233 2002-10-07 Jakub Jelinek <jakub@redhat.com>
14235 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
14237 (__MAX_ALLOCA_CUTOFF): Define.
14238 Include allocalim.h.
14239 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
14240 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
14241 host_buffer depending on __libc_use_alloca.
14242 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
14243 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
14244 net_buffer depending on __libc_use_alloca.
14245 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
14246 buf depending on __libc_use_alloca.
14247 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
14248 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
14249 instead of hardcoded constants.
14250 Pass proper size argument to alloca and compute end for wide char
14252 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
14253 instead of hardcoded constants.
14254 * string/strcoll.c (strcoll): Likewise.
14255 * string/strxfrm.c (strxfrm): Likewise.
14256 * sysdeps/posix/readv.c (__readv): Likewise.
14257 * sysdeps/posix/writev.c (__writev): Likewise.
14258 * sysdeps/generic/allocalim.h: New file.
14260 2002-10-08 Roland McGrath <roland@redhat.com>
14262 * configure.in (aux_missing warning): Change "too old" to
14263 "incompatible versions", since for autoconf it's "too new" right now.
14264 * configure: Regenerated.
14266 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
14267 one found doesn't work on our configure.in.
14268 * configure: Regenerated.
14269 * config.make.in (AUTOCONF): New substituted variable.
14270 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
14271 (autoconf-it): ... here, use that instead of defining conditionally.
14272 Use $(AUTOCONF) instead of literal autoconf.
14273 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
14274 with this condition.
14275 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
14277 2002-10-08 Ulrich Drepper <drepper@redhat.com>
14279 * Make-dist (dist): Cleanup a bit. We are not interested in the
14280 14 char filename limit anymore. Remove intermediate files and
14283 2002-10-05 Ulrich Drepper <drepper@redhat.com>
14285 * po/sk.po: Update from translation team.
14286 * po/tr.po: Likewise.
14287 * po/gl.po: Likewise.
14289 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14291 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
14293 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14295 * version.h (RELEASE): Change to stable.
14297 2002-10-03 Jakub Jelinek <jakub@redhat.com>
14299 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
14300 __syscall_exit_group): New prototypes.
14302 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14304 * glibc 2.3 released.
14307 See ChangeLog.13 for earlier changes.