1 2004-02-01 Ulrich Drepper <drepper@redhat.com>
3 * po/nl.po: Update from translation team.
5 2004-01-30 Andreas Schwab <schwab@suse.de>
7 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
8 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
9 SEGV_PSTKOVF): Remove underscore prefix from definition.
11 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
13 Merge regex changes in gawk.
14 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
15 of collation elements.
16 * posix/regex.c: Include limits.h.
17 * posix/regex.h: Document REG_ECOLLATE correctly.
18 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
20 2004-01-24 Andreas Jaeger <aj@suse.de>
22 * malloc/obstack.h: Import gnulib version.
23 * malloc/obstack.c: Likewise.
25 2004-01-26 David Mosberger <davidm@hpl.hp.com>
27 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
28 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
29 increment dl_load_adds.
30 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
31 with equivalent GL(dl_load_adds - GL(dl_nloaded).
32 (dl_iterate_phdr): Likewise.
33 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
34 * elf/dl-support.c: Remove global variable _dl_load_subs.
35 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
38 2004-01-27 Jakub Jelinek <jakub@redhat.com>
40 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
41 (_dl_start): And neither here.
42 (dl_main): Set GL(dl_loaded)->l_relro_* and
43 GL(dl_rtld_map)->l_relro_*.
45 2004-01-23 David Mosberger <davidm@hpl.hp.com>
47 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
48 _dl_load_adds and _dl_load_subs.
49 * elf/dl-support.c (_dl_load_adds): New variable.
50 (_dl_load_subs): Likewise.
51 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
52 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
53 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
55 * include/link.h: Likewise.
56 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
57 and dlpi_subs members.
58 (dl_iterate_phdr): Likewise.
59 * elf/tst-dlmodcount.c: New file.
60 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
61 (tests): If build-shared, mention tst-dlmodcount.
62 ($(objpfx)tst-dlmodcount): If build-shared, build and
65 2004-01-22 Jakub Jelinek <jakub@redhat.com>
67 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
69 (_dl_protect_relro): New routine.
70 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
71 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
73 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
74 Call _dl_protect_relro for libraries if prelinking.
76 2004-01-23 Richard Henderson <rth@redhat.com>
78 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
79 * sysdeps/alpha/fpu/Versions (libm): Likewise.
80 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
81 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
83 2004-01-22 Andreas Jaeger <aj@suse.de>
85 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
86 avoid warnings for builtin function log2.
88 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
91 2004-01-20 Ulrich Drepper <drepper@redhat.com>
93 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
94 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
95 Patch by Davide Libenzi.
97 * sysdeps/unix/sysv/linux/kernel-features.h: Define
98 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
100 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
102 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
103 instead of loff_t. Include <fcntl.h>.
104 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
105 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
106 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
107 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
108 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
109 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
110 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
111 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
112 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
113 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
114 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
115 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
117 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
119 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
121 2003-12-31 Bruno Haible <bruno@clisp.org>
123 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
124 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
125 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
126 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
127 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
128 0x00 0x20. Don't map U+2500..U+25E3.
130 2004-01-19 Jakub Jelinek <jakub@redhat.com>
132 * posix/regexec.c (get_subexp): Remove bkref_str variable.
133 Extend buffers if needed before comparisons.
134 (get_subexp_sub): Handle clean_state_log_if_needed failure.
136 2004-01-17 Ulrich Drepper <drepper@redhat.com>
138 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
139 atomic_decrement. Patch by Davin McCall.
141 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
143 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
144 (__sim_disabled_exceptions, __sim_round_mode): Declare with
145 hidden data and nocommon.
146 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
147 (__sim_disabled_exceptions, __sim_round_mode): Use
149 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
150 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
152 2004-01-16 Ulrich Drepper <drepper@redhat.com>
154 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
157 2004-01-16 Richard Henderson <rth@redhat.com>
159 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
160 (__libc_enable_secure_internal): Likewise.
162 * elf/dl-load.c: Don't declare __libc_stack_end.
163 * sysdeps/generic/libc-start.c: Likewise.
164 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
165 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
166 * sysdeps/generic/backtrace.c: Likewise.
168 2004-01-15 Ulrich Drepper <drepper@redhat.com>
170 * Versions.def: Add GLIBC_2.3.4.
172 2004-01-15 Richard Henderson <rth@redhat.com>
174 * sysdeps/unix/alpha/sysdep.h: Revert last change.
176 2004-01-15 Richard Henderson <rth@redhat.com>
178 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
180 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
183 2004-01-15 Richard Henderson <rth@redhat.com>
185 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
186 ucontext-offsets.sym.
187 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
188 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
189 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
190 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
191 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
193 2004-01-15 Richard Henderson <rth@redhat.com>
195 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
196 __syscall_, move nop inside, adjust users by +4.
198 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
200 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
201 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
202 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
204 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
205 gen-as-const-headers.
206 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
207 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
208 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
209 * sysdeps/unix/sysv/linux/kernel-features.h
210 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
211 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
212 Declare mcontext_t inline and include altivec state for 64-bit.
213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
214 versions for setcontext, getcontext, and swapcontext.
216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
217 versions for setcontext, getcontext, swapcontext, and makecontext.
218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
219 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
220 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
221 Compatible with GLIBC_2.3.3 release.
222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
223 (__makecontext): Use parm save area instead of compiler_dw to hold
225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
226 (__setcontext): Upgrade to restore Altivec regs and version
228 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
229 Compatible with GLIBC_2.3.3 release.
230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
231 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
232 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
233 Compatible with GLIBC_2.3.3 release.
234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
235 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
237 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
240 versions for setcontext, getcontext, swapcontext, and makecontext.
241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
242 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
243 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
244 Compatible with GLIBC_2.3.3 release.
245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
246 (__makecontext): Upgrade to align for Altivec regs and version
248 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
249 Compatible with GLIBC_2.3.3 release.
250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
251 (__setcontext): Upgrade to restore Altivec regs and version
253 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
254 Compatible with GLIBC_2.3.3 release.
255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
256 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
257 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
258 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
260 (_UC_VSCR, _UC_VRSAVE): Define.
261 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
262 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
264 2004-01-15 Ulrich Drepper <drepper@redhat.com>
266 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
268 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
270 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
273 2004-01-15 Ulrich Drepper <drepper@redhat.com>
275 * elf/elf.h: Fix typo in comment.
277 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
278 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
280 * resolv/resolv.h: Add RES_USEBSTRING.
281 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
282 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
283 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
284 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
285 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
286 Otherwise use the two nibble formats.
288 2004-01-14 Ulrich Drepper <drepper@redhat.com>
290 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
291 * config.h.in: Add entry for HAVE_Z_RELRO.
292 * include/libc-symbols.h: Define attribute_relro.
293 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
294 max_capstrlen, and max_dirnamelen definitions.
295 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
296 load_time, start_time, library_path, preloadlist, version_info,
298 Remove rtld_total_time. Make it a local variable. Pass pointer to
299 it to print_statistics. Change print_statistics accordingly.
300 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
301 attribute_relro instead of explicitly assigning variable to the
302 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
303 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
304 _dl_argv, _dl_argv_internal with attribute_relro.
306 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
308 * Makerules (gen-as-const): Don't silently continue on failure.
310 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
312 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
313 rtld_hidden_data_def.
315 2004-01-14 Ulrich Drepper <drepper@redhat.com>
317 * libio/libio.h: Add const to function tables types.
318 * libio/libioP.h: Likewise.
319 * login/utmp-private.h: Likewise.
320 * libio/fileops.c: Add const to jump table variable definition.
321 * libio/genops.c: Likewise.
322 * libio/iofopncook.c: Likewise.
323 * libio/iopopen.c: Likewise.
324 * libio/memstream.c: Likewise.
325 * libio/obprintf.c: Likewise.
326 * libio/oldfileops.c: Likewise.
327 * libio/oldiopopen.c: Likewise.
328 * libio/strops.c: Likewise.
329 * libio/vsnprintf.c: Likewise.
330 * libio/vswprintf.c: Likewise.
331 * libio/wfileops.c: Likewise.
332 * libio/wstrops.c: Likewise.
333 * login/getutent_r.c: Likewise.
334 * login/getutid_r.c Likewise.
335 * login/getutline_r.c: Likewise.
336 * sysdeps/generic/utmp_file.c: Likewise.
338 2004-01-09 Bruno Haible <bruno@clisp.org>
340 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
341 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
342 (_nl_load_domain): Treat major revision 1 like major revision 0.
344 2004-01-11 Bruno Haible <bruno@clisp.org>
346 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
347 width or precision has been seen.
349 2004-01-08 Bruno Haible <bruno@clisp.org>
351 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
352 dependent segment not known to this version of the library, ignore
353 the string pair instead of crashing.
355 2004-01-13 Ulrich Drepper <drepper@redhat.com>
357 * configure.in: Rewrite test to give gcc to clean up after itself.
358 Patch by Greg Schafer.
360 * posix/regex.c: Support crappy compilers and platforms which have
361 problems with alloca.
362 * posix/regex_internal.h: Likewise.
363 Patch by Paolo Bonzini.
365 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
367 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
368 Drop code to support this, it is never true.
369 (build_range_exp) [!_LIBC]: Do not create a range
370 in MBCSET for a single-byte character set.
371 (build_range_exp) [_LIBC]: Do not create a range
372 in MBCSET for a single-byte character set without
374 (init_dfa): Do not conditionalize on _LIBC, it
375 just makes the code less clear.
376 (parse_bracket_exp): Use NON_MATCH variable in
377 addition to "mbcset->non_match", not as an
379 (build_charclass_op): rename NOT parameter to
380 NON_MATCH, use it instead of declaring a variable.
381 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
382 if the character set is single-byte.
384 2004-01-14 Jakub Jelinek <jakub@redhat.com>
386 * posix/regcomp.c (peek_token_bracket): Check remaining
387 string length before re_string_peek_byte (x, 1).
388 (parse_bracket_symbol): Likewise.
389 * posix/regex_internal.h (re_string_is_single_byte_char): Return
390 true at last byte in the string.
391 * posix/bug-regex22.c (main): Add new test.
393 2004-01-13 Ulrich Drepper <drepper@redhat.com>
395 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
398 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
400 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
401 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
402 rtld_hidden_def and move into .data.rel.ro section.
403 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
405 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
408 2004-01-13 Richard Henderson <rth@redhat.com>
410 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
412 2004-01-13 Ulrich Drepper <drepper@redhat.com>
414 * sysdeps/unix/sysv/linux/dl-execstack.c
415 (_dl_make_stack_executable): Move common code in front. Use
418 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
419 challenge for caller.
420 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
421 member in rtld_global appropriately.
422 * elf/dl-support.c: Likewise.
423 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
424 Pass it on to the changed function.
425 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
427 2004-01-13 Richard Henderson <rth@redhat.com>
429 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
430 Cast old up to uint64_t before back down to inner width.
431 (__arch_compare_and_exchange_xxx_16_int): Likewise.
432 (__arch_compare_and_exchange_xxx_32_int): Likewise.
433 (__arch_compare_and_exchange_xxx_64_int): Likewise.
434 (__arch_compare_and_exchange_val_8_int): Cast result to
435 the type of the memory.
436 (__arch_compare_and_exchange_val_16_int): Likewise.
437 (__arch_compare_and_exchange_val_32_int): Likewise.
438 (__arch_compare_and_exchange_val_64_int): Likewise.
439 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
440 (atomic_compare_and_exchange_bool_rel): Likewise.
442 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
443 based on HAVE___THREAD instead of USE_TLS.
445 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
446 (__adjtimex_tv64): Use it.
448 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
449 to void* rather than directly to the compatibility structure type.
450 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
452 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
455 2004-01-13 Richard Henderson <rth@redhat.com>
457 * Versions.def (libm): Add GLIBC_2.3.3.
458 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
459 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
460 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
461 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
462 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
463 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
464 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
465 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
466 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
467 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
468 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
469 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
470 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
471 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
472 functions for gcc 3.3.
474 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
475 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
476 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
477 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
478 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
479 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
480 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
481 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
482 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
483 weak_alias if the function name has been #defined.
485 * math/cabsf.c: Move ...
486 * sysdeps/generic/cabsf.c: ... here.
487 * math/cargf.c: Move ...
488 * sysdeps/generic/cargf.c: ... here.
489 * math/cimagf.c: Move ...
490 * sysdeps/generic/cimagf.c: ... here.
491 * math/conjf.c: Move ...
492 * sysdeps/generic/conjf.c: ... here.
493 * math/crealf.c: Move ...
494 * sysdeps/generic/crealf.c: ... here.
496 2004-01-13 Ulrich Drepper <drepper@redhat.com>
498 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
499 LDFLAGS.so and LDFLAGS-rtld.
500 (+link): Add relro-LDFLAGS.
501 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
502 __libc_thread_subfreeres sections after .jcr section.
503 * config.make.in: Add have-z-relro.
504 * configure.in: Add check for -z relro option.
505 * include/link.h (struct link_map): Add relro_addr and relro_size
507 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
508 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
509 part of loaded segments read-only.
510 * elf/elf.h: Define PT_GNU_RELRO.
511 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
512 (dl_main): Recognize PT_GNU_RELRO of the application. Call
513 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
516 2004-01-12 Jakub Jelinek <jakub@redhat.com>
518 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
520 2004-01-11 Andreas Jaeger <aj@suse.de>
522 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
524 2004-01-10 Andreas Jaeger <aj@suse.de>
526 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
527 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
528 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
529 * sysdeps/x86_64/strcspn.S: Likewise.
530 * sysdeps/x86_64/strspn.S: Likewise.
532 2004-01-08 Jakub Jelinek <jakub@redhat.com>
534 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
535 right before syscall and cfi_startproc before PSEUDO_END.
536 Clear %rbp in thread_start.
538 2004-01-05 Jakub Jelinek <jakub@redhat.com>
540 * posix/regcomp.c (regcomp): Fix comment typo.
541 (regfree): Free preg->translate, clear buffer, allocated, fastmap
542 and translate fields.
544 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
545 argument to unsigned RE_TRANSLATE_TYPE.
546 * posix/regex_internal.h (re_string_t): Change trans type to
547 unsigned RE_TRANSLATE_TYPE.
548 * posix/regex_internal.c (re_string_construct_common): Cast
549 trans to unsigned RE_TRANSLATE_TYPE.
550 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
551 path if pstr->trans. Never translate the character through
553 * posix/Makefile (tests): Add bug-regex22.
554 (bug-regex22-ENV): Set.
555 * posix/bug-regex22.c: New test.
557 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
559 * posix/regex_internal.c (re_node_set_add_intersect,
560 re_node_set_merge): Rewritten.
561 (re_node_set_insert, re_node_set_remove_at):
562 Avoid memmove, we know what direction we should copy and that we
563 are copying 32-bit words.
564 (re_node_set_compare): Iterate backwards.
566 2003-12-30 Paul Eggert <eggert@twinsun.com>
568 * time/mktime.c (verify): New macro.
569 (time_t_is_integer, twos_complement_arithmetic,
570 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
571 C99_integer_division): Document these longstanding assumptions in the
572 code, and verify them at compile-time.
574 2004-01-02 Jakub Jelinek <jakub@redhat.com>
576 * posix/regex_internal.h (re_match_context_t): Add dfa member.
577 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
578 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
579 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
580 sift_states_backward, update_cur_sifted_state, check_dst_limits,
581 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
582 check_subexp_matching_top, transit_state_sb, transit_state_mb,
583 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
584 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
585 Remove dfa parameter. Get dfa from mctx. Adjust callers.
586 (re_search_internal): Initialize mctx.dfa.
588 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
590 * posix/regex_internal.h (re_dfa_t): Add syntax field.
591 * posix/regcomp.c (parse): Initialize dfa->syntax.
592 * posix/regexec.c (acquire_init_state_context,
593 prune_impossible_nodes, check_matching, check_halt_state_context,
594 proceed_next_node, sift_states_iter_mb, sift_states_backward,
595 update_cur_sifted_state, sift_states_bkref, transit_state,
596 transit_state_sb, transit_state_mb, transit_state_bkref,
597 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
598 build_trtable): Remove preg argument, add dfa argument instead
599 and remove dfa = preg->buffer initialization in the body.
601 (check_node_accept_bytes, group_nodes_into_DFAstates,
602 check_node_accept): Likewise. Use dfa->syntax instead of
604 (check_arrival_add_next_nodes): Remove preg argument.
606 * posix/regex_internal.h (re_match_context_t): Make input
607 re_string_t instead of a pointer to it.
608 * posix/regex_internal.c (re_string_construct_common): Don't clear
610 (re_string_construct): ... but only here.
611 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
612 initialize fields to zero.
613 (re_search_internal): Move input into mctx.input.
614 (acquire_init_state_context, check_matching,
615 check_halt_state_context, proceed_next_node,
616 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
617 transit_state, transit_state_sb, transit_state_mb,
618 transit_state_bkref, get_subexp, check_arrival,
619 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
620 Change mctx->input into &mctx->input and mctx->input->field into
623 2004-01-02 Jakub Jelinek <jakub@redhat.com>
624 Paolo Bonzini <bonzini@gnu.org>
626 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
627 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
628 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
629 (re_string_context_at, re_string_reconstruct): Remove last argument.
630 * posix/regex_internal.c (re_string_allocate): Initialize
631 pstr->word_char and pstr->word_ops_used.
632 (re_string_context_at): Remove newline_anchor argument.
633 Use input->newline_anchor instead, swap && conditions.
634 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
635 Use input->word_char bitmap instead of IS_WORD_CHAR.
636 (re_string_reconstruct): Likewise.
637 Adjust re_string_context_at caller.
638 * posix/regexec.c (acquire_init_state_context,
639 check_halt_state_context, transit_state, transit_state_sb,
640 transit_state_mb, transit_state_bkref, check_arrival,
641 check_node_accept): Adjust re_string_context_at and
642 re_string_reconstruct callers.
643 (re_search_internal): Likewise. Set input.newline_anchor.
644 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
645 * posix/regcomp.c (init_word_char): Change return type to void.
646 Set dfa->word_ops_used.
647 (free_dfa_content): Don't free dfa->word_char.
648 (parse_expression): Remove error handling for init_word_char.
650 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
652 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
655 * posix/regex_internal.c (re_node_set_insert): Rewrite.
657 2004-01-01 Ulrich Drepper <drepper@redhat.com>
659 * posix/getconf.c: Update copyright year.
660 * nss/getent.c: Likewise.
661 * nscd/nscd_nischeck.c: Likewise.
662 * iconv/iconvconfig.c: Likewise.
663 * iconv/iconv_prog.c: Likewise.
664 * elf/ldconfig.c: Likewise.
665 * catgets/gencat.c: Likewise.
666 * csu/version.c: Likewise.
667 * elf/ldd.bash.in: Likewise.
668 * elf/sprof.c (print_version): Likewise.
669 * locale/programs/locale.c: Likewise.
670 * locale/programs/localedef.c: Likewise.
671 * nscd/nscd.c (print_version): Likewise.
672 * debug/xtrace.sh: Likewise.
673 * malloc/memusage.sh: Likewise.
674 * malloc/mtrace.pl: Likewise.
676 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
678 * stdlib/strfmon.c: Make formatting of left-justified currency
679 values match the the POSIX standard. When using format string
680 "[%-14#5.4n]" to print -123.45, the result should be
681 "[-$ 123.4500 ]", not "[-$123.4500 ]".
683 2004-01-01 Andreas Jaeger <aj@suse.de>
685 * resolv/Makefile (generated): New.
687 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
689 * CONFORMANCE: Update.
691 2003-12-30 Paul Eggert <eggert@twinsun.com>
693 * time/mktime.c: (my_mktime_localtime_r):
694 Remove. All uses changed to __localtime_r.
695 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
696 get its implementation.
697 Fix compile-command to allow for TIME_R_POSIX.
699 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
700 Remove. All uses changed to __localtime_r and __gmtime_r.
701 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
702 Include "time_r.h" to get their implementations.
704 * time/timegm.c: Allow use in GNU applications outside glibc.
705 [defined HAVE_CONFIG_H]: Include <config.h>.
706 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
707 Define __gmtime_r, and declare __mktime_internal.
708 (timegm): Define via a prototype, since we can safely assume C89 now.
710 * time/mktime.c (check_result): Use less-confusing report format.
711 "long" -> "long int", as per usual GNU style.
713 Don't loop if the iteration overflows time_t.
714 Allow a negative step in the iteration.
716 * time/mktime.c: Assume freestanding C89 or better.
717 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
719 (__P): Remove; not used.
720 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
721 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
722 Prototypes use const * where appropriate.
723 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
724 which caused the testing code to dump core on some hosts.
726 2003-12-31 Ulrich Drepper <drepper@redhat.com>
728 * locale/setlocale.c (setlocale): Avoid duplicating locale names
729 if we can reuse old strings.
731 * inet/rcmd.c: Provide better error message in case of unknown
732 host. Remove USE_IN_LIBIO.
734 * nscd/nscd.init: Updated version, more conforming with current
737 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
738 /var/run/nscd directory.
739 (_PATH_NSCDSOCKET): Likewise.
741 * test-skeleton.c (timeout_handler): Fix error message.
743 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
746 2003-12-30 Jakub Jelinek <jakub@redhat.com>
748 * posix/regexec.c (get_subexp): Only set bkref_str after the first
749 loop, use buf + bkref_str_off in the loop instead.
750 * posix/bug-regex11.c (tests): Add 3 new tests.
752 * posix/regexec.c (clean_state_log_if_need): Rename to...
753 (clean_state_log_if_needed): ...this.
754 (transit_state_mb, get_subexp_sub): Adjust callers.
756 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
757 failed. Reported by Steve Grubb.
759 2003-12-29 Ulrich Drepper <drepper@redhat.com>
761 * elf/elf.h: Add a few definitions from Solaris 9.
763 2003-12-29 Andreas Schwab <schwab@suse.de>
765 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
766 $(fno_unit_at_a_time) to avoid reordering assembler output.
768 2003-12-29 Jakub Jelinek <jakub@redhat.com>
770 * posix/regexec.c (re_copy_regs): Revert comment change.
771 Avoid memory leak if realloc fails.
772 (proceed_next_node): Return -2 if re_node_set_insert fails.
773 Return -2 if push_fail_stack fails.
774 (push_fail_stack): Change fs->alloc only after successful realloc.
775 (pop_fail_stack): Formatting.
776 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
777 (check_arrival_add_next_nodes): Merge identical statements
780 * signal/Makefile (tests): Add tst-raise.
781 * signal/tst-raise.c: New test.
783 2003-12-28 Ulrich Drepper <drepper@redhat.com>
785 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
787 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
788 (push_fail_stack): Add missing check for failed memory allocation.
790 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
791 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
794 2003-12-28 Andreas Jaeger <aj@suse.de>
796 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
797 overflow for 0 as argument. Raise Invalid exception for negative args.
798 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
799 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
800 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
801 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
802 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
803 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
804 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
805 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
806 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
807 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
808 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
810 * math/libm-test.inc (yn_test): Expect invalid exception for
815 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
816 execptions for exp(NaN).
818 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
820 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
821 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
822 among the tokens, rather than among the epsilon-transiting nodes.
823 (re_token_t): Add the opt_subexp flag.
824 * posix/regcomp.c (optimize_utf8, calc_first,
825 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
826 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
827 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
828 OP_DUP_ASTERISK and marking optional subexpressions
829 as such using mark_opt_subexp.
830 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
831 and pass it to update_regs.
832 (update_regs): Use the PREV_INDEX_MATCH parameter, together
833 with the opt_subexp flag, in order to discard a final empty
834 match of a repeated subexpression.
835 * posix/BOOST.tests: Adjust test vectors.
836 * posix/PCRE.tests: Likewise.
837 * posix/rxspencer/tests: Likewise.
839 2000-05-22 Jakub Jelinek <jakub@redhat.com>
841 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
842 with omitted middle operand.
844 2003-12-22 Jakub Jelinek <jakub@redhat.com>
846 * posix/regcomp.c: Remove C99-ism.
847 * posix/tst-rxspencer.c: Likewise.
848 Based on a patch by Alex Davis <alex14641@yahoo.com>.
850 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
852 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
853 (re_string_allocate, re_string_construct, re_string_reconstruct,
854 re_string_realloc_buffers, build_wcs_buffer,
855 build_wcs_upper_buffer, build_upper_buffer,
856 re_string_translate_buffer, re_string_destruct,
857 re_string_elem_size_at, re_string_char_size_at,
858 re_string_wchar_at, re_string_context_at,
859 re_node_set_alloc, re_node_set_init_1
860 re_node_set_init_2, re_node_set_init_copy,
861 re_node_set_add_intersect, re_node_set_init_union,
862 re_node_set_merge, re_node_set_insert
863 re_node_set_compare, re_node_set_contains
864 re_node_set_remove_at, re_dfa_add_node,
865 re_acquire_state, re_acquire_state_context,
866 free_state): Add internal_function to declaration.
868 * posix/regexec.c (match_ctx_init, match_ctx_clean,
869 match_ctx_free, match_ctx_free_subtops,
870 match_ctx_add_entry, search_cur_bkref_entry,
871 match_ctx_clear_flag, match_ctx_add_subtop,
872 match_ctx_add_sublast, sift_ctx_init,
873 re_search_internal, re_search_2_stub, re_search_stub,
874 re_copy_regs, acquire_init_state_context,
875 prune_impossible_nodes, check_matching,
876 check_halt_node_context, check_halt_state_context
877 update_regs, proceed_next_node, push_fail_stack,
878 pop_fail_stack, set_regs, free_fail_stack_return,
879 sift_states_iter_mb, sift_states_backward
880 update_cur_sifted_state, add_epsilon_src_nodes,
881 sub_epsilon_src_nodes, check_dst_limits,
882 check_dst_limits_calc_pos, check_subexp_limits,
883 sift_states_bkref, clean_state_log_if_need,
884 merge_state_array, transit_state,
885 check_subexp_matching_top, transit_state_sb,
886 transit_state_mb, transit_state_bkref,
887 get_subexp, get_subexp_sub, find_subexp_node,
888 check_arrival, check_arrival_add_next_nodes,
889 find_collation_sequence_value, check_arrival_expand_ecl,
890 check_arrival_expand_ecl_sub, expand_bkref_cache,
891 build_trtable, check_node_accept_bytes, extend_buffers,
892 group_nodes_into_DFAstates, check_node_accept): Likewise.
894 * posix/regex_internal.c (re_string_construct_common,
895 re_string_skip_chars, create_newstate_common,
896 register_state, create_ci_newstate, create_cd_newstate,
897 calc_state_hash): Likewise.
898 (re_string_peek_byte_case, re_fetch_byte_case): Change
899 declaration from ANSI to K&R.
901 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
903 * posix/regexec.c (build_trtable): Don't allocate the trtable
904 until state->word_trtable is known. Don't hardcode UINT_BITS
905 iterations on each bitset item.
907 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
909 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
910 Initialize REF before passing it to _dl_lookup_symbol.
912 2003-12-21 Roland McGrath <roland@frob.com>
914 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
916 2003-12-21 Jakub Jelinek <jakub@redhat.com>
918 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
920 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
921 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
922 * posix/bug-regex19.c (tests): Add new tests.
924 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
926 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
927 after checking syntax. Optimize.
928 (calc_first): Fix comment.
929 * posix/bug-regex13.c (tests): Add new tests.
931 2003-12-21 Roland McGrath <roland@redhat.com>
933 * manual/arith.texi (Parsing of Integers): Typo fix.
935 2003-12-20 Roland McGrath <roland@frob.com>
937 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
938 add missing dereference of IFREQS before counting loop.
940 2003-12-21 Andreas Schwab <schwab@suse.de>
942 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
945 2003-12-20 Ulrich Drepper <drepper@redhat.com>
947 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
949 2003-12-18 Ulrich Drepper <drepper@redhat.com>
951 * stdio-common/printf_fp.c: Add support to use alternative decimal
953 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
954 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
956 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
958 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
959 reload PIC if we need to call __syscall_error, cleanup asm.
961 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
963 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
964 FE_ALL_EXCEPT before complimenting.
965 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
966 and gcc '+r' constraint.
967 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
968 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
969 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
970 exception bits, OR with envp, pass to fesetenv.
971 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
972 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
973 triggered by M_PI/69.69 converted to single precision.
974 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
975 bits not raised exception bits.
977 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
978 correct build strings.
979 * sysdeps/hppa/dl-fptr.h: New file.
980 * sysdeps/hppa/dl-fptr.c: Removed.
981 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
982 remove const qualifier for map.
983 (_dl_function_address): Removed.
984 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
985 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
986 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
987 DL_DT_FINI_ADDRESS use the previous two macros.
989 2003-12-17 Jakub Jelinek <jakub@redhat.com>
991 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
992 (tr_memalignhook): New function.
993 (mtrace): Register tr_memalignhook.
994 (muntrace): Deregister tr_memalignhook.
995 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
996 call it directly instead of memalign_internal.
998 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1000 * misc/mntent_r.c: Change encoding to match recently changed decoder.
1001 Patch by Alexander Achenbach <xela@slit.de>.
1003 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1005 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
1008 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1010 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
1011 conditional to include typedef elf_vrreg_t.
1013 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
1015 * posix/regexec.c (re_search_internal): Limit search to the
1016 beginning of the buffer if the initial states are empty for
1017 contexts that do not include CONTEXT_BEGBUF or, if
1018 !preg->newline_anchor, that do not include any one of
1019 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
1021 2003-12-17 Andreas Jaeger <aj@suse.de>
1023 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
1024 Kevin Pedretti <pedretti@ieee.org>.
1026 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1028 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
1029 removes the visibility attributes which might be defined earlier
1030 for some gcc versions. Instead spell out what strong_alias does
1031 plus the visibility.
1033 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
1035 * posix/regex_internal.h: Make sure the regex code compile
1036 with non-GCC compilers by hiding attributes.
1038 2003-12-16 Jakub Jelinek <jakub@redhat.com>
1039 Paolo Bonzini <bonzini@gnu.org>
1041 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
1042 dests_ch items that are empty.
1044 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1046 * posix/regexec.c (check_arrival): Remove duplicate test.
1048 2003-12-15 Ulrich Drepper <drepper@redhat.com>
1050 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
1051 * posix/regex_internal.c: Likewise.
1052 * posix/regexec.c: Likewise.
1053 Patch by Paolo Bonzini.
1055 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1057 * posix/regex_internal.c (re_acquire_state_context):
1058 Compare the node sets after all the other comparisons.
1060 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
1062 * posix/regexec.c (find_subexp_node, check_arrival,
1063 check_arrival_add_next_nodes, check_arrival_expand_ecl,
1064 check_arrival_expand_ecl_sub, expand_bkref_cache):
1065 Rename the FL_OPEN parameter to TYPE, which is either
1066 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
1068 2003-12-12 Andreas Jaeger <aj@suse.de>
1070 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
1073 2003-12-11 Ulrich Drepper <drepper@redhat.com>
1075 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
1076 There might always be processes which have no vDSO.
1077 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
1078 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1080 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1082 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
1085 2003-12-01 Jes Sorensen <jes@wildopensource.com>
1087 * rt/tst-clock.c (do_test): Print message when skipping
1088 CLOCK_PROCESS_CPUTIME_ID test.
1090 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
1091 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
1093 2003-12-02 David Mosberger <davidm@hpl.hp.com>
1095 * sysdeps/ia64/elf/initfini.c: Add unwind info.
1097 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
1099 (elf_machine_dynamic): Mark with attributes "unused" and "const".
1100 (elf_machine_runtime_setup): Likewise.
1102 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
1103 attribute "always_inline".
1104 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
1107 * configure.in: Check whether compiler has libunwind support.
1108 * config.make.in (have-cc-with-libunwind): New variable.
1109 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
1110 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
1113 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1115 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
1116 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
1117 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
1120 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
1121 instead of DO_CALL().
1123 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
1126 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
1127 to take advantage of DO_CALL() macro.
1128 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1129 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1131 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
1132 program header. On ia64, the check failed previously because
1133 there are two program headers.
1135 2003-12-10 Andreas Jaeger <aj@suse.de>
1136 Ruediger Oertel <ro@suse.de>
1138 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
1140 2003-12-07 Ulrich Drepper <drepper@redhat.com>
1142 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
1143 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1144 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1145 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1146 * sysdeps/generic/s_nexttowardf.c: Likewise.
1147 * math/Makefile (tests): Add bug-nexttoward.
1148 * math/bug-nexttoward.c: New file.
1150 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
1151 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1152 * math/bug-nextafter.c (main): Add tests for overflow and negative
1155 2003-12-06 Ulrich Drepper <drepper@redhat.com>
1157 * math/Makefile (tests): Add bug-nextafter.
1158 * math/bug-nextafter.c: New file.
1159 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
1160 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1161 * math/libm-test.inc (nextafter_test): Add test for overflow after
1164 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
1166 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
1168 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1170 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1172 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1174 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1175 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1176 (END): Add cfi_endproc directive.
1177 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1178 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1179 cfi_startproc and cfi_endproc directive.
1180 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1181 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1182 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1183 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1184 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1186 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1188 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1189 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1190 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1191 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1192 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1193 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1194 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1195 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1196 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1198 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1200 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1201 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1202 make backchain terminate.
1203 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1205 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1206 (unwind_backtrace, unwind_getip): New variables.
1207 (init, __backchain_backtrace, backtrace_helper): New functions.
1208 (__backtrace): Use unwind info for backtrace instead of backchain
1209 walking if the unwind functions can be found.
1210 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1212 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1214 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1215 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1216 (elf_prstatus32, elf_prpsinfo32): New structures.
1217 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1219 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1220 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1222 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
1224 * stdlib/strfmon.c: Correct formatting of international currency
1225 values. The international currency formatting should prefer the
1226 int_* values if they are set for a locale, and use the domestic
1227 values if the int_* values are unset.
1229 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1231 * posix/Makefile (distribute): Add BOOST.tests.
1232 (tests): Add tst-boost, depend on tst-boost-mem.
1233 (generated): Add tst-boost-mem and tst-boost.mtrace.
1234 (tst-boost-ARGS, tst-boost-ENV): Set.
1235 ($(objpfx)tst-boost-mem): New.
1236 * posix/tst-boost.c: New test.
1237 * posix/BOOST.tests: New file.
1239 * posix/Makefile (distribute): Add PCRE.tests.
1240 (tests): Add tst-pcre, depend on tst-pcre-mem.
1241 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1242 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1243 ($(objpfx)tst-pcre-mem): New.
1244 * posix/tst-pcre.c: New test.
1245 * posix/PCRE.tests: New file.
1247 2003-12-02 Jakub Jelinek <jakub@redhat.com>
1249 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1251 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1252 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1254 2003-12-03 Ulrich Drepper <drepper@redhat.com>
1256 * locale/programs/locarchive.c (enlarge_archive): Print size info
1257 only in verbose mode.
1259 * locale/iso-3166.def: Three letter code of Romania changed.
1261 2003-12-02 Roland McGrath <roland@redhat.com>
1263 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1264 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1266 2003-11-30 Andreas Jaeger <aj@suse.de>
1268 * config.make.in (fno-unit-at-a-time): Define.
1270 * configure.in: Add test for -fno-unit-at-a-time.
1273 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1274 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1276 2003-12-01 Automatic
1278 * version.h (VERSION): Bump to 2.3.3.
1280 2003-11-30 Andreas Jaeger <aj@suse.de>
1282 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1283 decrease stack usage.
1285 2003-11-30 Andreas Schwab <schwab@suse.de>
1287 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1288 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1290 2003-11-29 Ulrich Drepper <drepper@redhat.com>
1292 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1293 recognize \134 as well.
1295 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1297 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1299 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1301 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1303 (struct ia64_fpreg): New definition.
1305 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1307 (ELF_NGREG): New #define.
1308 (ELF_NFPREG): Likewise.
1309 (elf_greg_t): New type.
1310 (elf_gregset_t): Likewise.
1311 (elf_fpreg_t): Likewise.
1312 (elf_fpregset_t): Likewise.
1314 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1316 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1318 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
1319 (pt_all_user_regs): New type.
1321 2003-10-10 Simon Josefsson <jas@extundo.com>
1323 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1324 strchrnul.h, strndup.h (from gnulib).
1325 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1327 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1328 Autoconf manual version.
1329 * argp/argp.h: Map __restrict to restrict or empty string when
1330 necessary, copied verbatim from posix/regex.h.
1332 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1334 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1335 addition to c++-types-$(base-machine)-$(config-os).data.
1336 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1337 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1339 2003-11-28 Ulrich Drepper <drepper@redhat.com>
1341 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1343 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1344 Reported by Andries.Brouwer@cwi.nl.
1346 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1347 to compensate other setup.
1349 2003-11-27 Andreas Jaeger <aj@suse.de>
1351 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1353 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1354 Reported by "Willus" <etc231etc231@willus.com>.
1356 2003-11-27 Michael Matz <matz@suse.de>
1358 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1361 2003-11-28 Jakub Jelinek <jakub@redhat.com>
1363 * posix/regexec.c (acquire_init_state_context): Make inline.
1364 Add always_inline attribute.
1365 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1366 into if (dfa->nbackref).
1367 (sift_states_backward): Fix comment.
1368 (transit_state): Add BE macro. Move if (next_state->has_backref)
1369 into if (dfa->nbackref && next_state). Don't check for next_state
1371 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1373 (parse_expression): Only call init_word_char if word context will be
1376 * posix/bug-regex11.c (tests): Add new tests.
1378 * posix/tst-regex.c: Include getopt.h.
1379 (timing): New variable.
1380 (main): Set timing to 1 if --timing argument is present.
1382 (run_test, run_test_backwards): Handle timing.
1384 2003-11-27 Jakub Jelinek <jakub@redhat.com>
1386 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1387 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1388 offsets_needed fields. Change icase, is_utf8 and map_notascii
1389 type from int bitfield to unsigned char.
1390 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1391 (build_wcs_upper_buffer): Change prototype to return int.
1392 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1393 defines, add prototypes.
1394 * posix/regex_internal.c (re_string_allocate): Don't initialize
1395 stop here. Don't initialize mbs_case. Set valid_raw_len.
1396 Use mbs_allocated instead of MBS_* macros.
1397 (re_string_construct): Don't initialize stop and valid_len here.
1398 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1399 macros. Reallocate buffers if build_wcs_upper_buffer converted
1400 too few bytes. Set valid_len to bufs_len only for single byte
1401 no translation and set in that case valid_raw_len as well.
1402 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1403 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1405 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1407 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1408 after it. Set valid_raw_len. Don't set mbs_case.
1409 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1410 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1411 before mbrtowc instead of after it. If upper case character
1412 uses different number of bytes than lower case, goto to the
1413 slow path. Don't call towupper unnecessarily twice. Set
1414 valid_raw_len as well. Handle in the slow path the case if
1415 lower and upper case use different number of characters.
1417 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
1418 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
1420 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
1422 (re_string_reconstruct): Use raw_len/raw_stop to initialize
1423 len/stop. Clear valid_raw_len and offsets_needed when clearing
1424 valid_len. Use mbs_allocated instead of MBS_* macros.
1425 Check original offset against valid_raw_len instead of valid_len.
1426 Remove mbs_case handling. Adjust valid_raw_len together with
1427 valid_len. If is_utf8 and looking for tip context, apply
1428 pstr->trans first. If buffers start with partial multi-byte
1429 character, initialize mbs array as well if mbs_allocated.
1430 Check return value of build_wcs_upper_buffer.
1431 (re_string_peek_byte_case): New function.
1432 (re_string_fetch_byte_case): New function.
1433 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
1434 Don't free mbs_case. Free offsets.
1435 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
1437 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
1438 as well. Use valid_raw_len instead of valid_len when looking
1439 through fastmap. Adjust registers through input.offsets.
1440 (extend_buffers): Allow build_wcs_upper_buffer to fail.
1441 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
1444 2003-11-26 Jakub Jelinek <jakub@redhat.com>
1446 * posix/regexec.c (check_subexp_limits): Only check close
1447 subexpression limitation if one is found. Formatting.
1448 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
1450 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
1453 2003-11-26 Ulrich Drepper <drepper@redhat.com>
1455 * sysdeps/unix/sysv/linux/kernel-features.h
1456 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
1457 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
1458 if __ASSUME_PROT_GROWSUPDOWN is defined.
1460 2003-11-26 Andreas Jaeger <aj@suse.de>
1462 * sysdeps/unix/sysv/linux/dl-execstack.c
1463 (_dl_make_stack_executable): Set dl_stack_flags always for
1466 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
1468 * locale/program/ld-monetary.c: Only check the first three
1469 characters in int_curr_symbol against ISO-4217, to make the
1470 separator character used by a locale independent of the content
1472 * locale/iso-4217.def: Remove the space character from all
1473 currency values to get the new test code in ld-monetary.c working.
1475 2003-11-21 David Mosberger <davidm@hpl.hp.com>
1477 * elf/soinit.c (_fini): Put _fini() in .init_array section if
1478 HAVE_INITFINI_ARRAY is defined.
1480 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1482 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
1483 Define it appropriately after last change. Use it where __sqrtl
1486 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
1488 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
1489 sqrt for gcc 3.3 and above.
1491 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1493 * posix/runptests.c (main): Make errors fatal.
1494 * posix/PTESTS: One test in GA135 and GA136 check functionality
1495 which seems not guaranteed.
1497 2003-11-25 Jakub Jelinek <jakub@redhat.com>
1499 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
1500 returned REG_NOMATCH, set match_last to -1. Don't initialize
1501 pmatch[0] needlessly. Fix comment.
1502 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
1503 (set_regs): Fix comment.
1504 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
1505 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
1506 (build_charclass_op): Set has_plural_match if adding both
1507 SIMPLE_BRACKET and COMPLEX_BRACKET.
1508 * posix/bug-regex11.c (tests): Fix register values for one commented
1509 out test. Add new tests.
1511 * posix/regex_internal.c (re_string_allocate): Make sure init_len
1512 is at least dfa->mb_cur_max.
1513 (re_string_reconstruct): If is_utf8, don't fall back into
1514 re_string_skip_chars just because idx points into a middle of
1515 valid UTF-8 character. Instead, set the wcs bytes which correspond
1516 to the partial character bytes to WEOF.
1517 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
1518 instead of dfa->nodes_len + 1 state_log entries initially.
1519 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
1522 2003-11-24 Jakub Jelinek <jakub@redhat.com>
1524 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
1526 (re_dfa_t): Add sb_char field.
1527 (bitset_mask): New function.
1528 * posix/regcomp.c (free_dfa_content): Free sb_char.
1529 (init_dfa): Don't initialize word_char unnecessarily.
1531 (duplicate_node): Don't duplicate !word_char CHARACTERs with
1532 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
1533 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
1534 (duplicate_node_closure): Handle clone_dest == -1 from
1536 (peek_token): Initialize word_char bit.
1537 (parse_expression, parse_dup_op): Add comments.
1538 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
1539 starting bytes here at the beginning. Mask off the bits right
1540 before creating SIMPLE_BRACKET.
1541 (build_charclass_op): Likewise.
1542 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
1543 set accept bits for single-byte characters.
1544 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
1545 being single byte encoded and the rest multi-byte.
1546 * posix/bug-regex19.c (tests): Add new tests.
1547 (do_mb_tests): Initialize t to *test.
1548 (main): Fail even on do_mb_tests errors.
1550 2003-11-23 Ulrich Drepper <drepper@redhat.com>
1552 * posix/regexec.c: Correct several memory allocation problems.
1554 * posix/regex_internal.c: Likewise.
1555 * posix/regcomp.c: Likewise.
1557 * posix/regexec.c: Add const in a number of places.
1558 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
1559 debugging. Its value isn't important.
1561 2003-11-22 Ulrich Drepper <drepper@redhat.com>
1563 * posix/PTESTS: Fix first test of GA143.
1565 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1567 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
1570 * locale/programs/charmap.c (charmap_read): If encoding is found
1571 not ASCII compatible, set enc_not_ascii_compatible.
1572 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
1573 * locale/programs/ld-ctype.c (ctype_startup): If
1574 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
1576 2003-11-22 Jakub Jelinek <jakub@redhat.com>
1578 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
1579 if !__libc_enable_secure.
1581 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
1583 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
1584 (dl_main): Set GL(dl_use_load_bias) default.
1585 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
1586 Add EXTRA_LD_ENVVARS_13.
1587 * elf/dl-support.c (_dl_use_load_bias): New variable.
1588 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
1589 with GL(dl_use_load_bias).
1590 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
1592 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
1593 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
1594 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
1595 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
1596 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
1598 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1600 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
1602 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
1603 pointer. Adjust callers.
1605 * posix/regcomp.c (fetch_token): Change interface to match
1606 peek_token. This avoids some copying and reduces code size.
1608 2003-11-21 Jakub Jelinek <jakub@redhat.com>
1610 * posix/bug-regex19.c (tests): Add more tests.
1612 * posix/bug-regex11.c: And one more commented out test.
1614 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
1615 tests multiple times unnecessarily.
1617 * posix/bug-regex19.c (BRE, ERE): Define.
1618 (tests): Add many new tests, remove UTF-8 ones.
1619 (do_one_test, do_mb_tests): New functions.
1620 (main): Rewritten using do_one_test and do_mb_tests.
1622 2003-11-20 Ulrich Drepper <drepper@redhat.com>
1624 * posix/PTESTS: Fix first test in GA143.
1626 2003-11-20 Jakub Jelinek <jakub@redhat.com>
1628 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
1630 * posix/regex_internal.c (create_newstate_common, free_state):
1631 Don't free trtable_search.
1632 * posix/regexec.c (check_matching): Remove fl_search argument.
1633 (transit_state_sb): Likewise. #ifdef out as unused.
1634 (build_trtable): Remove fl_search argument. Set state->word_trtable
1635 and state->trtable. Build separate word and non-word tables if
1636 multi-byte and they differ for some character.
1637 (transit_state): Remove fl_search argument. Don't update
1638 state->trtable here. Handle state->word_trtable.
1639 #ifdef out unused call to transit_state_sb.
1640 (re_search_internal): Update check_matching caller.
1641 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
1642 bitmask for multi-byte locales.
1643 * posix/bug-regex19.c (tests): Enable some commented out tests, add
1645 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
1646 multi-byte. Don't run identical multi-byte tests multiple times
1648 (main): Check setlocale return value.
1649 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
1650 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
1651 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
1652 here, without --utf8 argument but with MALLOC_TRACE.
1654 2003-11-19 Jakub Jelinek <jakub@redhat.com>
1656 * posix/regexec.c (extend_buffers): Don't allocate
1657 twice as big state_log as needed. Don't modify pstr->valid_len
1658 for mb_cur_max == 1 !icase !trans.
1660 * posix/regcomp.c (free_bin_tree): Removed.
1661 (create_tree): Add dfa argument. Don't call re_malloc for
1662 each tree, instead allocate from str_tree_storage.
1663 (re_dfa_add_tree_node): New function.
1664 (free_dfa_content): Handle freeing if dfa->nodes == NULL
1665 or dfa->state_table == NULL.
1666 (re_compile_internal): Call free_dfa_content if init_dfa
1667 fails. Call free_workarea_compile, re_string_destruct
1668 and free_dfa_content for most of the other failure paths.
1669 (init_dfa): Initialize str_tree_storage_idx.
1670 Don't clear any fields on allocation failure.
1671 (free_workarea_compile): Free str_tree_storage chunks
1672 instead of free_bin_tree (dfa->str_tree).
1673 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
1674 followed by create_tree. Add dfa argument to remaining
1675 create_tree calls. Remove new_idx variable. Remove calls
1677 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
1678 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
1679 (duplicate_tree): Remove calls to free_bin_tree, add dfa
1680 argument to create_tree.
1681 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
1682 (bin_tree_storage_t): New type.
1683 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
1685 * posix/Makefile (tests): Add bug-regex21.
1686 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
1687 tst-rxspencer-mem and tst-rxspencer.mtrace.
1688 (tests): Depend on $(objpfx)bug-regex21-mem
1689 and $(objpfx)tst-rxspencer-mem.
1690 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
1691 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
1692 * posix/tst-rxspencer.c (main): Add call to mtrace.
1693 Free line at the end.
1694 * posix/bug-regex21.c: New test.
1696 2003-11-19 Ulrich Drepper <drepper@redhat.com>
1698 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
1700 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
1701 fails, just use the byte, do no fancy conversions.
1703 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
1705 (re_string_is_single_byte_char): Likewise.
1707 2003-11-18 Ulrich Drepper <drepper@redhat.com>
1709 * posix/regexec.c (get_subexp): After calling get_subexp_sub
1710 reload buf and bkref_str. Little optimization by avoiding memcmp.
1712 2003-11-14 David Mosberger <davidm@hpl.hp.com>
1714 * sysdeps/unix/sysv/linux/ia64/sysdep.h
1715 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
1716 that all existing GAS versions have a problem with .align inside
1718 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
1719 * sysdeps/ia64/memcpy.S: Likewise.
1720 * sysdeps/ia64/memset.S: Likewise.
1721 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
1722 out of .text into .rodata, where it belongs.
1724 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
1725 save/restore input-arguments, because they're necessarily
1726 preserved by the kernel to support syscall-restart.
1728 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1730 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
1731 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
1733 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
1734 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
1735 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
1736 Handle OP_UTF8_PERIOD.
1737 (re_string_reconstruct): Set valid_len for single byte char searching
1738 with no translation and case sensitivity.
1739 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
1741 (re_compile_internal): Don't call optimize_utf8 if preg->translate
1743 (optimize_utf8): Remove BACK_SLASH case.
1744 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
1746 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
1747 any bits set and COMPLEX_BRACKET is used.
1748 * posix/regexec.c (transit_state_mb): Fix comment typo.
1749 (group_nodes_into_DFAstates, check_node_accept): Handle
1751 (check_node_accept_bytes): Likewise. Reorder slightly so that
1752 re_string_char_size_at and re_string_elem_size_at are called
1754 * posix/bug-regex20.c (BRE, ERE): Define.
1755 (tests): Use them to make lines shorter. Expect . to be
1756 optimized. Add lots of new tests.
1757 (main): Run (ATM just case sensitive) test with backwards searching
1760 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1762 * io/bug-ftw4.c: Include string.h.
1763 * posix/fnmatch.c (mbsinit): Remove define.
1765 2003-11-17 Jakub Jelinek <jakub@redhat.com>
1767 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
1769 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
1770 followed by dup operator is expected to be optimized.
1772 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
1773 variables to the block where they are only used, initialize
1774 nrules only immediately before using it.
1776 2003-11-15 Andreas Jaeger <aj@suse.de>
1778 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
1779 * sysdeps/x86_64/fpu/s_truncl.S: New file.
1780 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
1781 * sysdeps/x86_64/fpu/s_floorl.S: New file.
1782 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
1783 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
1785 * math/libm-test.inc (floor_test): Test also ±0.25.
1786 (ceil_test): Test -0.25.
1788 2003-11-17 Ulrich Drepper <drepper@redhat.com>
1790 * sysdeps/posix/getaddrinfo.c: Add support for destination address
1791 selection according to RFC 3484.
1793 2003-11-15 Ulrich Drepper <drepper@redhat.com>
1795 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
1796 Replace last two parameters of re_string_allocate and
1797 re_string_construct with pointer to DFA.
1798 (re_dfa_t): Add map_notascii field.
1799 * posix/regcomp.c (re_compile_internal): Add call of
1800 re_string_construct.
1801 (init_dfa): Initialize map_notascii.
1802 * posix/regex_internal.c: Adjust definitions of re_string_allocate
1803 and re_string_construct.
1804 Pass DFA to re_string_construct. Adjust definition. Initialize
1806 (build_wcs_upper_buffer): If map_notascii is zero use simplified
1807 method to map ASCII values to upper case.
1808 * posix/regex.c: Include localeinfo.h.
1809 * posix/regexec.c: Adjust call of re_string_allocate.
1811 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
1812 * locale/localeinfo.h (LIMAGIC): Change value.
1813 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
1814 * locale/C-ctype.h: Likewise.
1815 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
1816 ASCII to non-ASCII value. Write out that value.
1818 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
1819 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
1821 2003-11-14 Jakub Jelinek <jakub@redhat.com>
1823 * posix/tst-rxspencer.c (check_match): @ without any following
1824 characters must match only end of string.
1825 (main): Fix filename in error message.
1827 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1829 * sysdeps/ia64/dl-machine.h: Force inlining of
1830 elf_machine_runtime_setup().
1832 2003-11-13 Andreas Jaeger <aj@suse.de>
1834 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
1835 (CFLAGS-test-double.c): Likewise.
1836 (CFLAGS-test-ldouble.c): Likewise.
1837 (CPPFLAGS-test-ifloat.c): Likewise.
1838 (CPPFLAGS-test-idouble.c): Likewise.
1839 (CPPFLAGS-test-ildoubl.c): Likewise.
1841 * math/libm-test.inc (ceil_test): Test ceil (0.25).
1843 2003-11-04 Ulrich Drepper <drepper@redhat.com>
1845 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
1846 sends the netlink data.
1847 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1849 2003-11-13 Jakub Jelinek <jakub@redhat.com>
1851 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
1852 with no bits set for >= 0x80 chars is seen.
1853 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
1855 (main): Run all tests with RE_ICASE as well.
1857 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1859 * posix/Makefile: Add rules to build and run tst-rxspencer.
1860 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
1861 * posix/tst-rxspencer.c: New file.
1862 * posix/rxspencer/tests: New file.
1863 * posix/rxspencer/COPYRIGHT: New file.
1864 Patch mostly by Jakub Jelinek.
1866 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
1867 this is no option given the first token.
1869 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
1870 hyphen in range expression. Return EBRACK in this case.
1872 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
1873 we expect them or it's the last element in the bracket expression.
1874 Indicated by new parameter. Adjust all callers.
1876 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
1877 Prettier error messages.
1879 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
1880 number in {,} expression is larger.
1882 2003-11-13 Andreas Jaeger <aj@suse.de>
1884 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1885 Define appropriately for x86_64.
1886 (__ASSUME_UTIMES): Likewise.
1887 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
1889 * sysdeps/x86_64/fpu/s_ceill.S: New file.
1891 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1893 * posix/regcomp.c (parse_expression): In BRE consecutive
1894 duplications are not allowed.
1896 2003-11-12 Ulrich Drepper <drepper@redhat.com>
1898 * posix/regcomp.c (parse_bracket_exp): If end of expression is
1899 seen, return EBRACK error, not BADPAT.
1901 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
1902 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
1903 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
1904 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
1906 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
1909 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
1910 * posix/runptests.c (main): Handle comments.
1911 * posix/PTESTS2C.sed: Handle comments.
1913 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1915 * posix/regcomp.c (optimize_utf8): New function.
1916 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
1918 (re_compile_internal): Call optimize_utf8 if not case insensitive
1919 and in UTF-8 locale.
1920 * posix/regex_internal.h: Ifdef out some prototypes if
1921 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
1922 * posix/Makefile (tests): Add bug-regex20.
1923 (bug-regex20-ENV): Add LOCPATH.
1924 * posix/bug-regex20.c: New test.
1926 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1928 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
1930 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1932 * posix/tst-regex.c (umemlen): New variable.
1933 (test_expr): Add expectedicase argument. Test case insensitive
1934 searches as well as backwards searches (case sensitive and
1936 (run_test): Add icase argument. Use it to compute regcomp flags.
1937 (run_test_backwards): New function.
1938 (main): Cast read to size_t to avoid warning. Set umemlen.
1939 Add expectedicase arguments to test_expr.
1940 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
1941 find previous character by walking back instead of converting
1942 all chars from beginning.
1944 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1946 * posix/regex_internal.h (struct re_string_t): Add is_utf8
1947 and mb_cur_max fields.
1948 (struct re_dfa_t): Likewise. Reorder fields to make structure
1949 smaller on 64-bit arches.
1950 (re_string_allocate, re_string_construct): Add mb_cur_max and
1952 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
1953 instead of MB_CUR_MAX.
1954 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
1955 instead of MB_CUR_MAX.
1956 (re_compile_internal): Pass new arguments to re_string_construct.
1957 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
1958 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
1960 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
1961 dfa->mb_cur_max instead of MB_CUR_MAX.
1962 * posix/regex_internal.c (re_string_construct_common): Add
1963 mb_cur_max and is_utf8 arguments. Initialize fields with them.
1964 (re_string_allocate, re_string_construct): Add mb_cur_max and
1965 is_utf8 arguments, pass them to re_string_construct_common.
1966 Use mb_cur_max instead of MB_CUR_MAX.
1967 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
1969 (re_string_reconstruct): Likewise.
1970 (re_string_context_at): Use input->mb_cur_max instead of
1972 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
1973 instead of MB_CUR_MAX.
1974 * posix/regexec.c (re_search_internal): Likewise.
1975 Pass new arguments to re_string_allocate.
1976 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
1978 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
1980 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1982 * posix/Makefile (tests): Add bug-regex19.
1983 (bug-regex19-ENV): Add LOCPATH.
1984 * posix/bug-regex19.c: New test.
1986 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1988 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
1989 with MB_CUR_MAX > 1 locales in the fastmap.
1991 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1993 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
1994 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
1996 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
1997 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
1998 * posix/bug-regex17.c: New file
1999 * posix/bug-regex18.c: New file.
2001 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
2003 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
2004 Define __NR_pread/__NR_pwrite if not done in kernel headers
2006 2003-11-11 Roland McGrath <roland@redhat.com>
2008 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
2010 * manual/Makefile (info): Don't depend on dir-add.info.
2011 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
2012 (dir-add.info): Target removed, replaced with ...
2013 (dir-add.texi): New target.
2014 (distribute): Add it.
2015 (install): Remove variant with --section arguments.
2016 Let the @dircategory directives do their work.
2017 (mostlyclean): Don't remove dir-add.info here.
2018 (realclean): Remove dir-add.texi here.
2019 * manual/libc.texinfo: @include dir-add.texi
2020 * configure.in: Remove check for old Debian install-info.
2021 * configure: Regenerated.
2022 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
2024 2003-11-08 Andreas Schwab <schwab@suse.de>
2026 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
2028 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2030 * io/ftwtest-sh: Fix nested sed commands.
2032 2003-11-10 Jakub Jelinek <jakub@redhat.com>
2034 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
2035 valid_len wide chars.
2037 2003-11-09 Roland McGrath <roland@redhat.com>
2039 * manual/examples/dir2.c (one): Add const to argument type.
2040 Reported by J de Haan <j.de.haan@home.nl>.
2042 2003-11-07 Ulrich Drepper <drepper@redhat.com>
2044 * po/pl.po: Update from translation team.
2046 2003-11-07 Jakub Jelinek <jakub@redhat.com>
2048 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2049 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
2050 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
2051 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
2053 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2054 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
2055 and nftw64@@GLIBC_2.3.3.
2057 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
2058 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
2059 * io/ftw.c (ftw_dir): Add old_dir argument.
2060 Clear result if it was FTW_SKIP_SIBLINGS after processing all
2061 dir entries. Change cwd back if old_dir != NULL.
2062 (process_entry): Adjust caller. Don't change cwd back here.
2063 Change FTW_SKIP_SUBTREE result to 0.
2064 (ftw_startup): Adjust ftw_dir caller.
2065 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
2066 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
2067 (options, main): Add --skip-subtree and --skip-siblings options.
2068 (cb): Use return FTW_CONTINUE instead of return 0.
2069 Handle --skip-subtree and --skip-siblings.
2070 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
2071 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
2073 2003-11-04 Jakub Jelinek <jakub@redhat.com>
2075 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
2077 * io/Makefile (tests): Add bug-ftw4.
2078 * io/bug-ftw4.c: New test.
2080 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
2082 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
2083 (struct _IO_FILE_complete_plus): New type.
2084 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
2085 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2086 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
2087 Call _IO_old_init instead of _IO_init.
2089 2003-11-03 Ulrich Drepper <drepper@redhat.com>
2091 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
2093 * locale/iso-639.def: Add Blin.
2094 Patch by Daniel Yacob <locales@geez.org>.
2096 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
2098 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
2099 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
2101 2003-11-01 Randolph Chung <tausq@debian.org>
2103 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
2104 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
2105 Add missing parentheses.
2107 2003-11-01 Roland McGrath <roland@redhat.com>
2109 * libio/bug-ftell.c (do_test): Add a cast.
2111 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
2113 * Makerules (shlib.lds): Make sure that ld doesn't try to link
2114 anything while generating the linker script.
2116 2003-10-31 Roland McGrath <roland@redhat.com>
2118 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
2121 2003-10-29 Ulrich Drepper <drepper@redhat.com>
2123 * po/be.po: Update from translation team.
2125 2003-10-27 Ulrich Drepper <drepper@redhat.com>
2127 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
2130 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
2133 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
2134 rest of line. We use getline which means this cannot happen.
2136 2003-10-26 Ulrich Drepper <drepper@redhat.com>
2138 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
2139 Avoid infinite loops in case the mounts file is hosed.
2140 * io/Makefile: Add rules to build and run tst-statvfs.
2141 * io/tst-statvfs.c: New file.
2143 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
2144 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
2145 executables unless __RTLD_OPENEXEC flag is present.
2146 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
2147 _dl_map_object when loading the executable.
2149 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
2151 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
2153 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
2154 reverse lookup format for IPv6 addresses is using bitstring and
2156 * resolv/ns_name.c: Implement encoding and decoding bitstring in
2159 2003-10-23 Jakub Jelinek <jakub@redhat.com>
2161 * locale/programs/locale.c (show_info): Fix printing word values on
2162 64-bit big-endian architectures.
2164 2003-10-19 Bruno Haible <bruno@clisp.org>
2166 * intl/hash-string.c (hash_string): Zero-extend each char from the
2167 string; the old code did a sign-extend on some platforms.
2169 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
2171 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
2172 append options to these.
2173 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
2175 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2177 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2179 2003-10-15 Roland McGrath <roland@redhat.com>
2181 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
2182 Fake an entry for the main executable and then call __dl_iterate_phdr.
2183 * elf/Makefile (routines): Remove dl-iteratephdr-static.
2184 (elide-routines.os): Likewise.
2185 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
2186 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
2187 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
2189 2003-10-15 Jakub Jelinek <jakub@redhat.com>
2191 * elf/rtld.c (print_statistics): Print also number of relative
2194 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
2196 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
2197 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
2198 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
2199 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
2200 and undef JUMPTARGET before use.
2201 [PIC]: Save pic register around syscall.
2202 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
2203 Cleanup asm statment.
2205 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2207 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
2208 after trapa instruction.
2210 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2212 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
2214 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2216 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2218 2003-10-09 Roland McGrath <roland@redhat.com>
2220 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
2223 2003-10-08 Jakub Jelinek <jakub@redhat.com>
2225 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
2226 two identical copies of strings.
2228 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2230 * posix/bug-regex11.c: Add some more tests which fail so far.
2231 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
2233 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
2235 * posix/bug-regex11.c: Add more backreference-related test cases.
2236 (main): Show the failing regex in the error messages.
2237 * posix/regexec.c (check_dst_limits_calc_pos):
2238 Simplify some nested conditionals. Replace if's with a switch
2240 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
2241 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
2242 does not change in the recursive invocation, fixing an infinite loop
2243 in the ()\1*\1* regex.
2244 (sift_states_backward): Fix function comment.
2245 * posix/regcomp.c (calc_epsdest): Add an assertion.
2247 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2249 * manual/examples/testopt.c: Fix warnings. Better error message
2250 for missing -c argument.
2251 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
2253 * timezone/asia: Update from tzdata2003d.
2254 * timezone/australasia: Likewise.
2255 * timezone/backward: Likewise.
2256 * timezone/europe: Likewise.
2257 * timezone/iso3166.tab: Likewise.
2258 * timezone/northamerica: Likewise.
2259 * timezone/southamerica: Likewise.
2260 * timezone/zone.tab: Likewise.
2262 2003-10-05 Jakub Jelinek <jakub@redhat.com>
2264 * sysdeps/ia64/backtrace.c: New file.
2265 * sysdeps/x86_64/backtrace.c: New file.
2266 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
2267 (_Unwind_Backtrace): New prototype.
2269 2003-10-03 Ulrich Drepper <drepper@redhat.com>
2271 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
2272 * sysdeps/i386/elf/setjmp.S: Likewise.
2274 2003-10-02 Roland McGrath <roland@redhat.com>
2276 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
2277 * argp/argp-namefrob.h
2278 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
2279 (__argp_short_program_name): Don't declare fn, define it as a macro.
2281 2003-08-22 Simon Josefsson <jas@extundo.com>
2283 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
2285 * argp/argp-help.c: Don't include malloc.h, some platforms
2286 complain and it doesn't appear to be used.
2287 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
2289 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
2291 (hol_entry_long_iterate): Change __attribute to __attribute__.
2292 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
2293 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
2294 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
2295 modified after comments from Ulrich Drepper.
2296 (__argp_short_program_name): Ditto.
2297 (__argp_state_help, __argp_error, __argp_failure): Use it.
2298 (__argp_failure): Use strerror when necessary.
2300 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
2301 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
2302 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
2303 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
2304 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
2305 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
2306 non-unlocked functions.
2307 [!_LIBC]: Add prototypes for __argp_basename and
2308 __argp_short_program_name.
2310 * argp/argp-parse.c (argp_default_parser): Only use
2311 program_invocation{_short,}_name if declared.
2312 (parser_init): Use __argp_short_program_name.
2314 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
2315 '#include features.h'.
2317 * argp/argp.h [!__attribute__]: Define to nothing.
2319 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
2321 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
2322 for the first token in a subexpression as well.
2324 2003-10-02 Jakub Jelinek <jakub@redhat.com>
2326 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
2328 (parse_reg_exp): Likewise.
2329 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
2331 * posix/bug-regex11.c (tests): Add new tests.
2332 * posix/bug-regex12.c (tests): Add new test.
2334 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
2336 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2337 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
2339 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
2341 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
2342 the old thread-m.h header too.
2344 2003-10-02 Ulrich Drepper <drepper@redhat.com>
2346 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
2347 back to 131027 since this is what the kernel enforces.
2349 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
2350 define it with libc_freeres_ptr.
2352 2003-10-01 Roland McGrath <roland@redhat.com>
2354 * elf/rtld.c (dl_main): Add cast in last change.
2356 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2358 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
2359 "#if 0" surrounding most of contents.
2360 (SYSCALL_ERROR_LABEL): Define.
2361 (__SYSCALL_CLOBBERS): Add $10.
2362 (internal_syscall7): Remove.
2363 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2365 2003-09-30 Ulrich Drepper <drepper@redhat.com>
2367 * elf/rtld.c (dl_main): Also set l_map_start.
2369 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
2371 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
2372 to work around kernel problem.
2374 2003-09-27 Wolfram Gloger <wg@malloc.de>
2376 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
2377 "thread-m.h", so that default parameters can be overridden in a
2378 system-specific malloc-machine.h. Remove extra ; from extern "C"
2380 * sysdeps/generic/malloc-machine.h: New file.
2381 * sysdeps/mach/hurd/malloc-machine.h: New file.
2382 * malloc/thread-m.h: Removed.
2383 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
2384 is in sysdeps/generic/malloc-machine.h now.
2386 2003-09-29 Ulrich Drepper <drepper@redhat.com>
2388 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2389 variables only used if TLS_TCB_AT_TP is defined into the #if
2392 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
2393 well to cover using long long in C90.
2395 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
2397 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
2398 Redefine and use __libc_cleanup_region_end instead.
2400 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
2402 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
2403 fix prototypes for picky C++ compilers.
2405 2003-09-27 Ulrich Drepper <drepper@redhat.com>
2407 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
2408 the device ID is invalid and return -1.
2409 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2411 2003-09-26 Andreas Schwab <schwab@suse.de>
2413 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
2414 rt_sigprocmask system call.
2416 2003-09-25 Roland McGrath <roland@redhat.com>
2418 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2419 Don't check for zero __libc_stack_end, it should be initialized.
2420 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
2421 and fall back if it fails with EINVAL.
2422 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
2424 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2426 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
2427 sysdeps/i386/dl-procinfo.c instead of
2428 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
2429 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
2432 2003-09-25 Ulrich Drepper <drepper@redhat.com>
2434 * posix/regcomp.c (peek_token): Remove recent changes for anchor
2436 (parse_reg_exp): Likewise.
2437 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
2439 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
2442 * nis/nis_table.c (nis_list): Always strdup string used with
2443 ibreq->ibr_name. Add several NULL pointer checks.
2445 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
2447 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2448 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2449 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2450 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
2451 * nis/nss_nisplus/nisplus-network.c: Likewise.
2452 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2453 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2454 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2455 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2456 * nis/nss_nisplus/nisplus-service.c: Likewise.
2457 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2459 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
2461 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2462 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
2463 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2464 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2465 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2466 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2467 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2468 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2469 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2470 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2471 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2473 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2475 * misc/syslog.c: Include locale.h.
2476 (vsyslog): Add date always in C locale %h %e %T format.
2478 2003-09-24 Paul Eggert <eggert@twinsun.com>
2480 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
2481 size_t overflow when reallocating storage.
2482 * argp/argp-help.c (make_hol, hol_append): Likewise.
2483 (SIZE_MAX): New macro.
2485 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
2487 * sysdeps/mach/hurd/bits/libc-lock.h
2488 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
2490 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
2492 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
2493 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
2494 #include_next dl-procinfo.h to get them.
2495 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
2496 (_DL_PLATFORMS_COUNT): Likewise.
2497 (_DL_FIRST_PLATFORM): Likewise.
2498 (_DL_HWCAP_PLATFORM): Likewise.
2499 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
2500 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
2501 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
2502 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
2503 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
2504 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
2505 HWCAP_IMPORTANT): Likewise.
2506 (_DL_PROCINFO_H_): Likewise.
2507 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
2508 (_dl_string_platform): Likewise.
2509 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
2510 * sysdeps/i386/dl-procinfo.c: ... here, new file.
2512 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2514 * sysdeps/unix/sysv/linux/dl-execstack.c
2515 (_dl_make_stack_executable): Remember that we changed the permission.
2517 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
2518 __libc_stack_end. Patch by David Mosberger.
2520 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2522 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
2523 __libc_stack_end@GLIBC_PRIVATE.
2525 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
2526 (_dl_sysdep_start): Set __libc_stack_end here.
2527 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
2529 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
2530 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
2531 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
2532 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2533 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
2534 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
2535 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
2536 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
2537 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
2538 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
2539 (RTLD_START): Remove setting of __libc_stack_end.
2540 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
2541 (RTLD_START): Remove setting of __libc_stack_end.
2543 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2545 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
2546 function definitions. Adjust macro expansions accordingly.
2547 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
2548 minor, makedev name.
2549 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
2551 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2553 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
2556 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2558 * nscd/Makefile (others): Add nscd before including ../Rules.
2560 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2562 * nscd/Makefile: Add rules to build nscd as a PIE.
2563 * configure.in: Check for -fpie and -pie compiler options.
2564 * config.make.in (have-fpie): Define.
2566 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2568 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
2570 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
2571 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
2572 * sysdeps/unix/sysv/linux/makedev.c: New file.
2573 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
2574 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
2575 (sysdep_routines): Add makedev.
2576 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
2577 major, minor, makedev.
2578 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
2580 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
2581 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2582 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
2583 Code by Alexander Viro <aviro@redhat.com>.
2585 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
2588 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
2590 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
2591 for include Altivec support for PPC32. It was not compatible.
2592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
2593 offsets for ucontext_t change.
2594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
2595 for ucontext_t change. Add compatibility code.
2596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
2597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2599 Patch by Paul Mackerras <paulus@samba.org>.
2601 2003-02-25 Randolph Chung <tausq@debian.org>
2603 * sysdeps/hppa/Makefile: Include compat code in build.
2604 * sysdeps/hppa/libgcc-compat.c: New file.
2605 * sysdeps/hppa/Dist: Add libgcc-compat.c.
2606 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
2608 2003-09-23 Roland McGrath <roland@redhat.com>
2610 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
2611 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
2612 Move GL(dl_make_stack_executable_hook) initialization up.
2613 * elf/tst-execstack-prog.c: New file.
2614 * elf/Makefile (tests-execstack-yes): Add it.
2615 (LDFLAGS-tst-execstack-prog): New variable.
2617 2003-09-23 Jakub Jelinek <jakub@redhat.com>
2619 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
2620 before calling _dl_start, using %rip relative access.
2621 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
2624 2003-09-23 Roland McGrath <roland@redhat.com>
2626 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
2627 calling _dl_start, using GOTOFF access.
2629 * configure.in (libc_cv_z_execstack): New check.
2630 * configure: Regenerated.
2631 * config.make.in (have-z-execstack): New variable set by it.
2632 * elf/tst-execstack.c: New file.
2633 * elf/tst-execstack-mod.c: New file.
2634 * elf/tst-execstack-needed.c: New file.
2635 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
2637 (tests, modules-names): Conditionally include them.
2638 (distribute): Add tst-execstack-mod.c here.
2639 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
2640 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
2641 ($(objpfx)tst-execstack-needed): New target.
2642 (LDFLAGS-tst-execstack-needed): New variable.
2644 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
2645 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
2646 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
2647 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
2648 Initialize _dl_make_stack_executable_hook.
2649 * elf/dl-support.c: Define those new variables.
2650 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
2651 (_dl_phdr): Fix type.
2652 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
2653 enable execute permission for the stack if necessary.
2654 * sysdeps/generic/dl-execstack.c: New file.
2655 * elf/Makefile (dl-routines): Add it.
2656 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
2657 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
2659 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2661 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
2663 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
2665 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
2666 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
2669 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2671 * malloc/malloc.c: Include <stdint.h>.
2673 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
2675 * posix/regcomp.c (build_word_op): Rename like...
2676 (build_charclass_op): ...this. Accept two extra parameters,
2677 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
2678 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
2679 (parse_expression): Replace build_word_op with
2680 build_charclass_op, add new arguments, accept OP_SPACE
2682 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
2685 * posix/regcomp.c (peek_token): Don't look back for ( or |
2686 to check whether to treat a caret as special. It fails
2687 for the (extended) regex \(^.
2688 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
2689 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
2691 * posix/regexec.c: Check out of bounds value before shifting.
2693 * posix/regex_internal.h: Define __attribute for non-gcc.
2695 2003-09-22 Jakub Jelinek <jakub@redhat.com>
2697 * include/atomic.h (atomic_compare_and_exchange_val_rel,
2698 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
2701 * sysdeps/unix/opendir.c: Include string.h.
2703 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2705 * timezone/zdump.c: Update from tzcode2003c.
2706 * timezone/zic.c: Likewise.
2707 * timezone/leapseconds: Update from tzdata2003c.
2709 2003-09-19 Ulrich Drepper <drepper@redhat.com>
2711 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
2712 final build to ease quality control.
2714 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
2715 ld.so, don't include NULL buffer pointer handling.
2717 2003-09-19 Jakub Jelinek <jakub@redhat.com>
2719 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
2721 2003-09-18 Jakub Jelinek <jakub@redhat.com>
2723 * libio/memstream.c (open_memstream): Use _IO_init instead of
2726 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2728 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
2729 have to recognize octal and hexadecimal numbers as well. Simplify
2730 function, signs are handled in strtol.
2731 * posix/wordexp-test.c: Add tests for octal and hexadecimal
2732 numbers in arithmetic expressions.
2734 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2736 * elf/Makefile (distribute): Add tst-alignmod.c.
2737 (tests): Add tst-align.
2738 (modules-names): Add tst-alignmod.
2739 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
2740 $(stack-align-test-flags).
2741 ($(objpfx)tst-align): Depend on libdl.
2742 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
2743 * elf/tst-align.c: New file.
2744 * elf/tst-alignmod.c: New file.
2745 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
2746 * misc/tst-tsearch.c: Include tst-stack-align.h.
2747 (stack_align_check): New array.
2748 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
2749 (main): Report error if stack was not enough aligned
2750 in cmp_fn or walk_action.
2751 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
2752 * stdlib/tst-qsort.c: Include tst-stack-align.h.
2753 (align_check): New var.
2754 (compare): Use TEST_STACK_ALIGN () macro.
2755 (main): Report error if stack was not enough aligned in compare.
2756 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
2757 unneeded -mpreferred-stack-boundary=4.
2758 * sysdeps/x86_64/tst-stack-align.h: New file.
2760 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
2761 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
2763 2003-09-17 Philip Blundell <philb@gnu.org>
2765 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
2767 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2769 * sysdeps/arm/sysdep.h (DO_RET): New.
2771 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
2772 required but not defined. Improve test of error code.
2774 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2776 * sysdeps/i386/Makefile (stack-align-test-flags): Add
2777 -malign-double -mpreferred-stack-boundary=4.
2779 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2781 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
2782 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
2784 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2786 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
2787 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
2789 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2791 * Makeconfig (stack-align-test-flags): Set.
2792 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
2793 $(stack-align-test-flags).
2794 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
2795 (align_check): New var.
2796 (comp): Use TEST_STACK_ALIGN macro.
2797 (do_test): Fail if align_check != 1.
2798 * sysdeps/generic/tst-stack-align.h: New file.
2799 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
2800 * sysdeps/i386/i686/tst-stack-align.h: New file.
2802 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2804 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
2805 stack which is aligned (mod 16).
2807 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
2808 Hans-Peter Nilsson <hp@axis.com>
2810 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
2811 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
2813 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2815 * dirent/scandir.c: Include bits/libc-lock.h.
2816 (struct scandir_cancel_struct): New type.
2817 (cancel_handler): New function.
2818 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
2819 scandir_cancel_struct.
2821 2003-09-16 Ulrich Drepper <drepper@redhat.com>
2823 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
2824 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2825 Add internal_statvfs.
2826 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
2827 instead of including "internal_statvfs.c".
2828 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2829 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
2830 Add code to avoid the stat calls on all the reported mount points
2831 when we can determine mismatch in advance.
2832 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
2833 USBDEVFS_SUPER_MAGIC.
2835 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2837 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
2838 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
2840 2003-09-16 Bruno Haible <bruno@clisp.org>
2842 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
2843 invoking msgfmt, not before.
2845 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2847 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
2848 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
2850 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
2851 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
2852 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
2853 * elf/dl-iteratephdr.c (cancel_handler): New function.
2854 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
2855 * elf/link.h (dl_iterate_phdr): Remove __THROW.
2856 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
2857 Add $(uses-callbacks).
2858 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
2859 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
2860 $(exceptions) to $(uses-callbacks).
2861 * Makeconfig (uses-callbacks): Set to $(exceptions).
2862 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
2864 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
2867 2003-09-15 Andreas Schwab <schwab@suse.de>
2869 * sysdeps/m68k/setjmp.c: Add hidden_def.
2871 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2873 * libio/memstream.c (open_memstream): Don't allow wide char operations.
2875 * dirent/dirent.h: Remove __THROW from scandir.
2877 2003-09-14 Philip Blundell <philb@gnu.org>
2879 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
2882 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
2884 * sysdeps/arm/memset.S: Rewrite.
2886 2003-09-12 Jakub Jelinek <jakub@redhat.com>
2888 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
2889 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
2890 __SLONGWORD_TYPE otherwise.
2892 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2894 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
2895 (CFLAGS-ftw64.c): Likewise.
2897 2003-09-13 Ulrich Drepper <drepper@redhat.com>
2899 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
2900 (CFLAGS-nscd_getgr_r.c): Likewise.
2901 (CFLAGS-nscd_gethst_r.c): Likewise.
2903 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2905 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
2908 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
2909 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
2910 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
2911 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
2912 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
2913 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
2915 * misc/Makefile (CFLAGS-err.c): Likewise.
2916 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
2917 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
2918 CFLAGS-glob64.c): Likewise.
2919 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
2920 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
2921 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
2922 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
2923 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
2925 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
2927 * libio/stdio.h: Remove __THROW from cuserid prototype.
2929 * locale/loadarchive.c: Use only non-cancelable interfaces.
2930 * resolv/herror.c (herror): Likewise.
2932 * malloc/hooks.c: Before using IO stream mark stream so it uses
2933 only non-cancelable interfaces.
2934 * malloc/malloc.c: Likewise.
2935 * posix/getopt.c: Likewise.
2938 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2940 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
2942 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2944 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
2946 * misc/err.h: Remove __THROW from all prototypes.
2948 * posix/getopt.h (__THROW): Define if not already defined. Add
2949 __THROW to the getopt functions.
2951 2003-09-11 Ulrich Drepper <drepper@redhat.com>
2953 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
2954 (CFLAGS-fts.c): Likewise.
2955 * io/fcntl.h: Remove __THROW from lockf prototypes.
2956 * io/fts.h: Remove most __THROW.
2958 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
2960 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
2964 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2966 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
2967 _IO_free_backup_area call.
2969 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2971 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
2973 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
2974 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
2975 Also, only assert off_t size is 4 for N32 and O32, and clean up
2977 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
2979 2003-09-10 Roland McGrath <roland@redhat.com>
2981 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
2982 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
2983 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
2984 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2985 Reported by Daniel Jacobowitz <drow@mvista.com>.
2987 2003-09-10 Jakub Jelinek <jakub@redhat.com>
2989 * string/Makefile (strop-tests): Add memccpy.
2990 * string/test-memccpy.c: New test.
2992 2003-09-09 Jakub Jelinek <jakub@redhat.com>
2994 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
2995 siginfo_t * argument before, change into struct ucontext *.
2996 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
2997 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
2998 instead of structure.
2999 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
3002 2003-09-09 Ulrich Drepper <drepper@redhat.com>
3004 * string/stratcliff.c (main): Check memccpy.
3006 2003-04-11 Jes Sorensen <jes@wildopensource.com>
3008 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
3009 character is found during recovery, use correct register when
3010 determining the position of the found character.
3012 2003-04-01 Jes Sorensen <jes@wildopensource.com>
3014 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
3015 avoid segfaults when reading from unmapped pages. For aligned
3016 reload and continue, for misaligned, roll back and use byte copy.
3017 Save ar.ec on entry and restore on exit.
3019 2003-09-09 Chris Demetriou <cgd@broadcom.com>
3021 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
3023 2003-09-08 Chris Demetriou <cgd@broadcom.com>
3025 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
3026 the top of the list.
3027 * sysdeps/mips/mips64/n64/Implies: Likewise.
3029 2003-09-08 Roland McGrath <roland@frob.com>
3031 * sysdeps/unix/sysv/linux/speed.c
3032 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
3033 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
3034 * sysdeps/unix/sysv/linux/bits/termios.h
3035 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
3036 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3037 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3039 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3041 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
3042 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
3044 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3046 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
3047 (__u_quad_t): Make unsigned long int if 64-bit.
3048 (__SQUAD_TYPE): Make long int if 64-bit.
3049 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
3050 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
3052 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3054 * Makefile (tests): Run check-c++-types.sh if possible.
3055 * scripts/check-c++-types.h: New file.
3056 * scripts/data/c++-types-i386-linux-gnu.data: New file.
3058 2003-09-08 Andreas Jaeger <aj@suse.de>
3060 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3061 Use struct sigcontext.
3063 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
3064 Use struct sigcontext.
3066 (GET_FRAME): Likewise.
3067 (GET_STACK): Likewise.
3069 2003-09-08 Wolfram Gloger <wg@malloc.de>
3071 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
3072 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
3073 (mALLOPt): Avoid requirement of C99.
3075 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3077 * libio/bug-ftell.c: Include <sys/types.h>.
3078 (main): Mark cp as const.
3080 2003-09-07 Jakub Jelinek <jakub@redhat.com>
3082 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
3083 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
3085 2003-09-05 Roland McGrath <roland@redhat.com>
3087 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
3088 and c_ospeed fields.
3089 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
3090 (cfsetispeed): Set c_ispeed field.
3091 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
3092 to match corresponding speed.c code.
3094 2003-09-06 Ulrich Drepper <drepper@redhat.com>
3096 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
3097 narrow character buffer.
3098 * libio/Makefile: Add rules to build and run bug-ftell.
3099 * libio/bug-ftell.c: New file.
3101 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
3103 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
3104 matching the decimal point and possibly leading the thousands
3105 separator. This caused the recognition of thousands separators to
3108 2003-09-05 Ulrich Drepper <drepper@redhat.com>
3110 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
3111 write mode from read in backup buffer.
3112 * libio/Makefile (tests): Add bug-ungetc2.
3113 * libio/bug-ungetc2.c: New file.
3115 2003-09-05 Roland McGrath <roland@redhat.com>
3117 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
3119 2003-09-04 Roland McGrath <roland@frob.com>
3121 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
3122 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
3124 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
3126 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
3129 2003-09-05 Andreas Jaeger <aj@suse.de>
3131 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
3132 to make it conforming C.
3133 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
3135 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
3136 prototype to use variable argument lists and get the possible one
3137 argument via va_arg.
3138 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
3139 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
3141 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3143 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
3145 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3146 Report correct value for vxfs.
3147 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
3149 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
3152 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
3153 over the place. It would be allowed to have these functions as
3154 cancellation points but the cleanup would be ugly and a lot of
3157 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
3158 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
3160 * include/fcntl.h (__fcntl_nocancel): Declare.
3161 * sysdeps/unix/sysv/linux/fcntl.c: New file.
3162 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
3163 cancellation if absolutely needed.
3164 (__fcntl_nocancel): Define.
3166 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
3167 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
3169 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
3172 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
3175 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
3176 unnecessary errno handling.
3178 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
3179 Initialize it in all cases. Change it to be a bit more like the
3182 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3184 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
3186 (_IO_file_open): Likewise. Use close_not_cancel.
3188 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3190 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
3191 * libio/fileops.c [_LIBC]: Remove close macro.
3192 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
3193 (_IO_new_file_open): Recognize 'c' flag in mode string.
3194 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
3195 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
3197 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
3198 * inet/rcmd.c: Likewise.
3199 * inet/ruserpass.c: Likewise.
3200 * intl/localealias.c: Likewise.
3201 * malloc/mtrace.c: Likewise.
3202 * misc/getpass.c: Likewise.
3203 * misc/getttyent.c: Likewise.
3204 * misc/mntent_r.c: Likewise.
3205 * misc/getusershell.c: Likewise.
3206 * nss/nsswitch.c: Likewise.
3207 * resolv/res_hconf.c: Likewise.
3208 * resolv/res_init.c: Likewise.
3209 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3210 * time/getdate.c: Likewise.
3211 * time/tzfile.c: Likewise.
3212 * misc/fstab.h: Undo last change.
3213 * misc/mntent.h: Likewise.
3214 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
3215 CFLAGS-fstab.c definition.
3217 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3219 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
3221 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3223 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
3224 returning ERANGE if this wasn't intended.
3226 2003-09-03 Jakub Jelinek <jakub@redhat.com>
3228 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
3229 function-like macros.
3231 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3233 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
3234 (CFLAGS-getgrent.c): Likewise.
3235 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
3236 (CFLAGS-getpwent.c): Likewise.
3237 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
3238 (CFLAGS-getspent.c): Likewise.
3240 * inet/Makefile: Add -fexceptions to CFLAGS for the various
3241 getXXent and getXXbyYY functions.
3243 * locale/loadlocale.c: Use not-cancelable variants of open, close,
3246 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3248 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3249 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
3251 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
3253 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
3254 unused __syscall_ stubs.
3255 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
3257 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
3258 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
3259 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
3260 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
3261 unused __syscall_ stubs.
3262 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
3263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3264 (__syscall_*): Remove unused __syscall_ stubs.
3265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3266 (__syscall_*): Likewise.
3267 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
3269 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
3270 Remove unused __syscall_ stubs.
3271 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
3272 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
3273 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
3274 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
3275 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
3276 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
3277 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
3278 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
3279 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
3280 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
3281 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
3282 __syscall_* prototypes.
3283 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
3284 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3285 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3286 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3287 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
3288 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3289 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3290 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3291 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3292 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3293 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3294 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3295 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3296 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3297 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3298 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3299 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3300 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3301 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3302 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3303 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3304 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3305 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3306 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3307 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3308 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3309 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3310 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3311 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3312 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3313 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3314 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3315 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3316 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3317 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3318 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3319 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3320 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
3321 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3322 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
3323 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
3324 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3325 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3326 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3327 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3328 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
3329 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3330 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3331 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3332 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3333 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
3334 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3335 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3336 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3337 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3338 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
3339 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
3340 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3341 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3342 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
3343 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3344 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
3345 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3346 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3347 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3348 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3349 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3350 * sysdeps/unix/sysv/linux/execve.c: Likewise.
3351 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3352 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3353 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
3354 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3355 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3356 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3357 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3358 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3359 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3360 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3361 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3362 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3363 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
3364 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
3365 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
3366 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3367 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3368 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3369 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3370 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
3371 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3372 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3373 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3374 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3375 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3376 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
3377 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3378 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3379 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3380 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3381 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3382 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3383 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3384 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3386 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3388 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
3389 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
3390 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
3392 2003-09-02 Ulrich Drepper <drepper@redhat.com>
3394 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
3396 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
3397 open, close, and read.
3399 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
3402 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
3404 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
3405 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
3406 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
3408 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
3410 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
3411 (CFLAGS-fstatfs.c): Likewise.
3412 (CFLAGS-statvfs.c): Likewise.
3413 (CFLAGS-fstatvfs.c): Likewise.
3415 2003-09-01 Ulrich Drepper <drepper@redhat.com>
3417 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
3418 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
3420 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
3421 (CFLAGS-pathconf.c): Likewise.
3422 (CFLAGS-fpathconf.c): Likewise.
3424 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
3425 * misc/fstab.h: Remove all __THROW.
3426 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
3427 (CFLAGS-mntent_r.c): Likewise.
3428 * misc/mntent.h: Remove most __THROW.
3430 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3431 (CFLAGS-mkstemp64.c): Likewise.
3433 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
3434 around call to exec_comm.
3435 * posix/wordexp.h: Remove __THROW from wordexp.
3436 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
3438 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
3439 not-cancelable functions.
3441 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
3442 (CFLAGS-iofopen.c): Likewise.
3443 (CFLAGS-iofopen64.c): Likewise.
3445 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
3447 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
3448 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
3450 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
3451 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
3453 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
3455 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
3456 NSS_STATUS_SUCCESS if entry was found.
3457 (getspent_next_file): Store user in blacklist after entry
3458 was found, use innetgr.
3460 2003-09-01 Jakub Jelinek <jakub@redhat.com>
3462 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
3463 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
3465 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
3466 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
3467 DTV_AT_TP, optimize.
3469 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3471 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
3472 posix_fallocate64 at GLIBC_2.3.3.
3473 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
3474 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3476 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3478 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
3481 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3483 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
3484 Code by Richard Henderson.
3486 2003-08-31 Philip Blundell <philb@gnu.org>
3488 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
3489 posix_fallocate64 at GLIBC_2.3.3.
3491 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3493 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
3494 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
3496 2003-08-30 Jakub Jelinek <jakub@redhat.com>
3498 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
3499 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
3500 included multiple times.
3501 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
3502 ptid, tls, ctid arguments to the kernel.
3503 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3504 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
3505 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3506 (__libc_sigaction): Use INLINE_SYSCALL instead of
3507 __syscall_rt_sigaction.
3508 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3509 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
3510 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
3511 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
3512 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
3513 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
3514 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
3515 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
3516 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
3517 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
3518 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
3519 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3520 (__CLONE_SYSCALL_STRING): Define.
3521 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
3523 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3524 (__CLONE_SYSCALL_STRING): Define.
3525 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
3527 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
3529 2003-08-30 Ulrich Drepper <drepper@redhat.com>
3531 * sunrpc/rpc/clnt.h: Remove a few __THROW.
3532 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
3533 (CFLAGS-key_call.c): Likewise.
3534 (CFLAGS-pmap_rmt.c): Likewise.
3535 (CFLAGS-clnt_perr.c): Likewise.
3536 * sunrpc/rpc/auth.h: Remove serveral __THROW.
3538 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
3539 (CFLAGS-gethstbynm_r.c): Likewise.
3540 (CFLAGS-gethstbynm2_r.c): Likewise.
3541 (CFLAGS-rcmd.c): Likewise.
3542 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
3544 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
3545 (CFLAGS-argp-fmtstream.c): Likewise.
3546 * argp/argp.h: Remove a number of __THROW.
3548 * misc/sys/syslog.h (vsyslog): Remove __THROW.
3550 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
3551 * misc/getpass.c (getpass): Add cleanup handler to ensure the
3552 stream is closed even if the thread is canceled.
3553 (call_fclose): New function.
3554 * posix/unistd.h: Remove __THROW from getpass prototype.
3556 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
3558 * signal/signal.h (psignal): Remove __THROW.
3559 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
3561 * misc/Makefile (CFLAGS-error.c): Define.
3562 * misc/error.c (error): Disable cancellation handling around the
3563 actual output. The message should in any case be printed.
3564 (error_at_line): Likewise.
3566 * misc/error.h: Protect parameter names with leading __.
3568 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3570 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
3572 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3574 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
3577 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3579 * libio/stdio.h: Remove a few more __THROW.
3581 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3583 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
3584 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
3585 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
3586 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
3587 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
3588 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
3589 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
3590 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
3591 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
3592 putwchar.c and rewind.c with exceptions.
3593 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
3594 _IO_release_lock): Define.
3595 * libio/fileops.c (_IO_new_file_underflow): Use it.
3596 * libio/fputc.c (fputc): Likewise.
3597 * libio/fputwc.c (fputwc): Likewise.
3598 * libio/freopen64.c (freopen64):
3599 * libio/freopen.c (freopen): Likewise.
3600 * libio/fseek.c (fseek): Likewise.
3601 * libio/fseeko64.c (fseeko64): Likewise.
3602 * libio/fseeko.c (fseeko): Likewise.
3603 * libio/ftello64.c (ftello64): Likewise.
3604 * libio/ftello.c (ftello): Likewise.
3605 * libio/fwide.c (fwide): Likewise.
3606 * libio/getc.c (_IO_getc): Likewise.
3607 * libio/getchar.c (getchar): Likewise.
3608 * libio/getwc.c (_IO_getwc): Likewise.
3609 * libio/getwchar.c (getwchar): Likewise.
3610 * libio/iofclose.c (_IO_new_fclose):
3611 * libio/iofflush.c (_IO_fflush): Likewise.
3612 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
3613 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3614 * libio/iofgets.c (_IO_fgets): Likewise.
3615 * libio/iofgetws.c (fgetws): Likewise.
3616 * libio/iofputs.c (_IO_fputs): Likewise.
3617 * libio/iofputws.c (fputws): Likewise.
3618 * libio/iofread.c (_IO_fread): Likewise.
3619 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3620 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3621 * libio/ioftell.c (_IO_ftell): Likewise.
3622 * libio/iofwrite.c (_IO_fwrite): Likewise.
3623 * libio/iogetdelim.c (_IO_getdelim): Likewise.
3624 * libio/iogets.c (_IO_gets): Likewise.
3625 * libio/ioputs.c (_IO_puts): Likewise.
3626 * libio/ioseekoff.c (_IO_seekoff): Likewise.
3627 * libio/ioseekpos.c (_IO_seekpos): Likewise.
3628 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3629 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3630 * libio/ioungetc.c (_IO_ungetc): Likewise.
3631 * libio/ioungetwc.c (ungetwc): Likewise.
3632 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3633 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
3634 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
3635 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
3636 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
3637 * libio/peekc.c (_IO_peekc_locked): Likewise.
3638 * libio/putc.c (_IO_putc): Likewise.
3639 * libio/putchar.c (putchar): Likewise.
3640 * libio/putwc.c (putwc): Likewise.
3641 * libio/putwchar.c (putwchar): Likewise.
3642 * libio/rewind.c (rewind): Likewise.
3643 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
3645 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3647 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
3648 available in XPG4.2.
3650 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
3651 Jakub Jelinek <jakub@redhat.com>
3653 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
3654 big endian arches. Don't read beyond end of fds_bits array.
3656 2003-04-27 Bruno Haible <bruno@clisp.org>
3658 * manual/message.texi (Advanced gettext functions): Add information
3659 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
3660 Add section about Lithuanian, reported by Ricardas Cepas
3661 <rch@richard.eu.org>.
3662 Add information about Croatian.
3663 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
3664 Remove remark about continuation lines that is not true for PO files.
3665 Fix formula for Slovenian, reported by Roman Maurer
3666 <roman.maurer@amis.net>.
3668 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3670 * math/math_private.h: Declare __copysignf.
3671 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
3674 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
3675 __signbit, and __signbitl inline functions.
3677 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
3678 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
3680 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
3681 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
3683 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3685 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
3687 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3689 * include/stdio.h: Add declarations for __builtin_fwrite and
3690 __builtin_fwrite_unlocked.
3692 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3694 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
3695 fits into allocation. Add padding on 32-bit arches so that
3696 dirp->data is enough aligned for struct dirent64.
3697 Avoid clearing of the buffer, just clear DIR structure.
3699 2003-08-26 Ulrich Drepper <drepper@redhat.com>
3701 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
3702 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
3704 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
3706 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
3708 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3710 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
3711 to match format string.
3712 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
3714 (__new_semctl): Shut up warning.
3715 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3716 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
3718 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3720 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
3721 link file use the real file name, not the resolved name we got by
3722 following the symlinks.
3724 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3726 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
3727 if the object size is large enough.
3729 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3731 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3732 if it won't point to itself unless it is .so symlink for the linker.
3734 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3736 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
3737 use _mode if _IO_fwide_maybe_incompatible.
3738 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
3739 the compatibility test.
3741 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3743 * elf/cache.c (save_cache): Don't write beyond end of file_entries
3745 Duplicate last old cache entry if the count would be odd.
3747 2003-08-25 Andreas Jaeger <aj@suse.de>
3749 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
3750 __LONG_LONG_PAIR to long.
3752 2003-08-25 Philip Blundell <philb@gnu.org>
3754 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
3755 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3757 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
3759 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
3760 and use __libc_cleanup_region_end instead.
3762 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3764 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
3766 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3768 * io/fcntl.h (posix_fallocate): Change type of third parameter to
3770 (posix_fallocate64): Change type of third parameter to off64_t.
3771 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
3772 * sysdeps/posix/posix_fallocate.c: Likewise.
3773 * sysdeps/generic/posix_fallocate64.c: Likewise.
3774 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
3775 code for 32-bit platforms.
3776 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
3778 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
3779 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3780 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3782 2003-08-19 Ulrich Drepper <drepper@redhat.com>
3784 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
3785 the type, not to name.
3787 * stdio-common/test-vfprintf.c (main): Don't write temporary file
3788 into source directory.
3790 * malloc/malloc.c (_int_free): Add cheap test for some invalid
3793 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
3796 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3798 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
3801 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
3803 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
3804 (elf_machine_lazy_rel): Likewise.
3806 2003-08-18 Art Haas <ahaas@airmail.net>
3808 * malloc/malloc.h: Remove unneeded ';' where closing the C++
3811 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3813 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
3814 loading big binaries where @gprel(sym) cannot be handled in 'add'
3815 but instead has to be used with 'movl'.
3817 2003-08-17 Juergen Kreileder <jk@blackdown.de>
3818 Andreas Jaeger <aj@suse.de>
3820 * sysdeps/x86_64/bits/byteswap.h: New file.
3822 2003-08-17 Andreas Jaeger <aj@suse.de>
3824 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
3826 2003-08-16 Jakub Jelinek <jakub@redhat.com>
3828 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
3829 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3830 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
3831 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3832 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
3833 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3834 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
3835 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3836 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
3837 ret_ERRVAL): Define.
3838 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
3839 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3840 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
3841 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3842 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
3844 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
3845 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3846 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
3848 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
3849 posix_fadvise64_64): Remove.
3850 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
3852 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
3854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3855 (posix_fadvise64): Likewise.
3856 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
3857 (posix_fadvise64): Likewise.
3858 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3859 (posix_fadvise64): Likewise.
3860 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
3862 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
3863 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
3864 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
3865 (__posix_fadvise64_l32): New function.
3866 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
3867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
3868 posix_fadvise64@@GLIBC_2.3.3.
3869 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3870 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3871 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
3873 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
3875 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3876 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
3878 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3880 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
3881 (elf_machine_matches_host): Remove weak extern stuff.
3882 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
3883 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
3884 stuff. Use GL(dl_hwcap) unconditionally.
3886 2003-08-16 Alan Modra <amodra@bigpond.net.au>
3888 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
3889 __libc_start_main branch.
3891 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
3892 Andreas Jaeger <aj@suse.de>
3894 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
3895 instead of setting errno.
3896 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3898 2003-08-16 Andreas Jaeger <aj@suse.de>
3900 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
3901 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3903 2003-08-15 Ulrich Drepper <drepper@redhat.com>
3905 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
3907 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
3908 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
3909 description indicating the error value is returned, not -1.
3910 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
3911 __ASSUME_FADVISE64_64_SYSCALL.
3912 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
3913 posix_madvise in one file. Have posix_madvise defined with error
3915 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
3917 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
3918 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
3919 PSEUDO_END_ERRVAL, and ret_ERRVAL.
3920 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3921 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3922 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
3925 * posix/Makefile (routines): Add posix_madvise.
3926 * sysdeps/generic/madvise.c: Don't define posix_madvise.
3927 * sysdeps/generic/posix_madvise.c: New file.
3928 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
3929 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
3930 Add posix_fadvise64_64.
3932 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3934 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
3935 3.0, not for !gcc or gcc < 3.0.
3937 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
3939 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
3940 Address passed to test_in_mod1 and test_in_mod2 without casting.
3941 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
3942 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
3943 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
3944 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
3946 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3948 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
3949 Change quotes before using [].
3951 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
3953 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
3955 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
3956 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
3957 argument. Select one of 64 locks from address bits.
3958 (atomic_compare_and_exchange_val_acq,
3959 atomic_compare_and_exchange_bool_acq): Pass memory address to
3960 __sparc32_atomic_do_{,un}lock.
3962 2003-08-14 Ulrich Drepper <drepper@redhat.com>
3964 * assert/assert.h (assert): Use !! in front of expression to allow
3967 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
3968 Changed conversion of JIS X 0201 from using a table to calculating.
3969 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
3970 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
3972 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
3973 * iconvdata/CP932.irreversible: New file.
3974 * iconvdata/EUC-JP-MS.irreversible: New file.
3975 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3977 2003-08-13 Ulrich Drepper <drepper@redhat.com>
3979 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
3981 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
3982 text processing tools.
3984 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
3985 element unless BROKEN_THREAD_SIGNALS is defined.
3986 (struct requestlist): Likewise.
3987 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
3988 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
3989 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
3990 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
3991 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
3992 Pass current PID to __aio_sigqueue.
3993 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
3994 call. Don't initialize caller_pid field of waitlist element.
3996 2003-08-12 Jakub Jelinek <jakub@redhat.com>
3998 * libio/libioP.h (_IO_vtable_offset): Define.
3999 * libio/freopen.c (freopen): Use it.
4000 * libio/ioputs.c (_IO_puts): Likewise.
4001 * libio/freopen64.c (freopen64): Likewise.
4002 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
4004 * libio/iofclose.c (_IO_new_fclose): Likewise.
4005 * libio/iofputs.c (_IO_fputs): Likewise.
4006 * libio/ioftell.c (_IO_ftell): Likewise.
4007 * libio/iofwrite.c (_IO_fwrite): Likewise.
4008 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
4009 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
4010 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
4011 * stdio-common/vfscanf.c (ORIENT): Likewise.
4013 2003-08-11 Ulrich Drepper <drepper@redhat.com>
4015 * assert/assert.h: Use __builtin_expect in assert and
4016 assert_perror definitions if possible.
4018 2003-08-07 Jakub Jelinek <jakub@redhat.com>
4020 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
4021 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
4022 * elf/rtld.c (rtld_lock_default_lock_recursive,
4023 rtld_lock_default_unlock_recursive): New functions.
4024 (dl_main): Initialize _dl_rtld_lock_recursive and
4025 _dl_rtld_unlock_recursive.
4027 2003-08-05 Jakub Jelinek <jakub@redhat.com>
4029 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
4030 config_file directories instead of prepending.
4032 2003-08-02 Ulrich Drepper <drepper@redhat.com>
4034 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4035 __ASSUME_CLONE_STOPPED.
4037 2003-08-01 Ulrich Drepper <drepper@redhat.com>
4039 * sysdeps/generic/bits/libc-lock.h
4040 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
4042 2003-08-01 Roland McGrath <roland@frob.com>
4044 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
4046 2003-07-31 Jakub Jelinek <jakub@redhat.com>
4048 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
4049 instead of __SWORD_TYPE.
4050 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4051 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4052 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
4054 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
4056 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
4058 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
4060 * dlfcn/dlerror.c (once): New.
4061 (dlerror): Call __libc_once.
4062 (_dlerror_run): Remove once.
4064 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4065 Sync with 2.5.7 and 2.5.73 kernel changes.
4067 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
4068 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
4070 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
4071 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
4072 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
4073 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
4074 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
4075 difference argument.
4076 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
4078 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
4079 %d format and cast expected value to int.
4080 * sysdeps/generic/libc-start.c (STATIC): Add
4081 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
4082 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
4083 to ieee_float_shape_type.
4084 (__sqrt): Avoid type punning.
4085 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
4086 to ieee_float_shape_type.
4087 (__sqrtf): Avoid type punning.
4088 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
4089 refsym if in dl-conflict.c.
4090 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4091 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
4092 (__new_semctl): Shut up warning.
4093 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
4094 (__new_semctl): Shut up warning.
4095 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
4096 Change old into union of __old_shmid_ds and __old_shminfo structs.
4098 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
4100 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
4101 modtime computation.
4102 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
4103 * sysdeps/posix/utimes.c (__utimes): Likewise.
4105 2003-07-30 Jakub Jelinek <jakub@redhat.com>
4107 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
4108 call dl_signal_error directly. If already relocated, call
4109 GL(dl_init_static_tls) directly, otherwise queue it for later.
4110 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
4111 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
4112 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
4113 for all static TLS initializations delayed in _dl_allocate_static_tls.
4114 * elf/dl-support.c (_dl_init_static_tls): New variable.
4115 * include/link.h (struct link_map): Add l_need_tls_init.
4116 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
4117 (_dl_nothread_init_static_tls): New prototype.
4118 (_dl_allocate_static_tls): Adjust prototype.
4120 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
4122 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
4124 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4125 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
4126 reloc_addr is aligned.
4127 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
4128 elf_machine_rela_relative): Adjust.
4129 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
4130 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4131 * sysdeps/cris/dl-machine.h (elf_machine_rela,
4132 elf_machine_rela_relative): Adjust.
4133 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
4134 elf_machine_rela_relative): Adjust.
4135 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
4136 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4137 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
4138 elf_machine_rela_relative): Adjust.
4139 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
4140 elf_machine_rela_relative): Adjust.
4141 * sysdeps/mips/dl-machine.h (elf_machine_rela,
4142 elf_machine_rela_relative): Adjust.
4143 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
4144 elf_machine_rela_relative): Adjust.
4145 * sysdeps/powerpc/powerpc64/dl-machine.h
4146 (elf_machine_rela_relative, elf_machine_rela): Adjust.
4147 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
4148 elf_machine_rela_relative): Adjust.
4149 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
4150 elf_machine_rela_relative): Adjust.
4151 * sysdeps/sh/dl-machine.h (elf_machine_rela,
4152 elf_machine_rela_relative): Adjust.
4153 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4154 elf_machine_rela_relative): Adjust.
4155 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4156 elf_machine_rela_relative): Adjust.
4157 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
4158 elf_machine_rela_relative): Adjust.
4160 2003-07-29 Ulrich Drepper <drepper@redhat.com>
4162 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
4163 alignment of TCB used before the last change so that it matches
4164 ld's output for IE code.
4166 2003-07-29 Jakub Jelinek <jakub@redhat.com>
4168 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
4169 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
4170 break strict-aliasing rules" warnings.
4172 2003-07-29 Roland McGrath <roland@redhat.com>
4174 * elf/Makefile: Revert accidental changes in last commit.
4175 * elf/dl-support.c: Likewise.
4177 * rt/tst-timer2.c: New file.
4178 * rt/Makefile (tests): Add it.
4180 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4182 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
4184 2003-07-29 Roland McGrath <roland@redhat.com>
4186 * elf/Makefile (tests) [$(build-shared) = yes]:
4187 Depend on $(test-modules).
4188 * dlfcn/Makefile: Likewise.
4190 2003-07-28 Roland McGrath <roland@redhat.com>
4192 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
4193 Use that instead of `typedef' when using __*_TYPE macros in rhs.
4195 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
4196 * elf/tst-tlsmod14a.c: Likewise.
4198 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
4199 before <linux/sysctl.h>.
4201 2003-07-27 Ulrich Drepper <drepper@redhat.com>
4203 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
4204 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
4205 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
4206 * sysdeps/unix/syscalls.list: umask syscall never fails.
4208 2003-07-27 Andreas Jaeger <aj@suse.de>
4210 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
4212 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4214 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
4215 Include bits/a.out.h.
4216 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4218 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
4219 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
4220 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
4221 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
4222 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
4223 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
4224 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
4225 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
4227 2003-07-24 Jakub Jelinek <jakub@redhat.com>
4229 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
4230 if aiocbp != NULL and has already completed. Return -1/EINVAL if
4231 aiocbp->aio_fildes does not match fildes.
4233 2003-07-24 Ulrich Drepper <drepper@redhat.com>
4235 * timezone/zic.c (rpytime): Replace cheap overflow check with a
4238 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
4239 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
4240 Fix calculation of offsets to take misalignment of first byte in
4242 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
4243 l_tls_firstbyte_offset field.
4244 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
4245 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
4246 Take l_tls_firstbyte_offset information into account.
4247 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
4248 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
4249 * elf/Makefile: Add rules to build and run tst-tls14.
4250 * elf/tst-tls14.c: New file.
4251 * elf/tst-tlsmod14a.c: New file.
4252 * elf/tst-tlsmod14b.c: New file.
4254 2003-07-23 Jakub Jelinek <jakub@redhat.com>
4256 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
4257 (lio_listio): Use it.
4258 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
4259 after few defines to avoid duplication.
4261 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4263 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
4264 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4266 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4267 Add libc_hidden_def.
4268 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
4269 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4270 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
4271 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
4272 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
4273 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
4274 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
4276 * sysdeps/generic/unwind.inc: Removed.
4278 * include/resolv.h (__resp): Declare. Define to __libc_resp
4280 (_res): If USE___THREAD, define to (*__resp).
4281 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
4282 even if USE___THREAD.
4283 (__resp): New __thread variable.
4284 (__libc_resp): New alias.
4285 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
4286 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
4287 * sysdeps/generic/res-state.c (__res_state): Return __resp
4290 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4292 * elf/dl-support.c (_dl_hwcap): New variable.
4293 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
4295 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
4296 and <dl-procinfo.h>.
4297 (__feclearexcept): Clear MXCSR if needed.
4298 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4300 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
4301 that newer hardware needs more than these macros.
4303 * sysdeps/i386/setfpucw.c: New file.
4305 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4307 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
4308 * elf/ldconfig.c: Include dl-procinfo.c.
4309 (PROCINFO_CLASS): Define.
4310 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
4311 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
4312 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
4313 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
4314 Define if not yet defined. Use it instead of EXTERN. Undefine
4315 at the end of the file.
4316 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
4318 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
4319 (PROCINFO_CLASS): Likewise.
4320 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
4321 (PROCINFO_CLASS): Likewise.
4323 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4325 * elf/ldconfig.c (main): Issue a fatal error if relative path
4326 is used to build cache.
4328 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4330 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
4332 2003-07-21 Art Haas <ahaas@airmail.net>
4334 * manual/charset.texi (Converting a Character): Fix example code so a
4335 valid pointer is returned.
4337 2003-07-22 Andreas Jaeger <aj@suse.de>
4339 * elf/readlib.c (process_file): Check that file is a shared
4342 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
4343 will not optimize it away.
4344 (__DTOR_END__): Likewise.
4345 (__CTOR_END__): Likewise.
4347 * include/libc-symbols.h (_elf_set_element): Use attribute used so
4348 that gcc will not optimize it away.
4349 (link_warning): Likewise.
4351 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4353 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
4354 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
4355 * wcsmbs/tst-wcpncpy.c: New file.
4357 2003-07-21 Ulrich Drepper <drepper@redhat.com>
4359 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
4361 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
4362 stmxcsr and ldmxcsr.
4364 * Makerules (build-module-helper): Add -z defs unless explicitly said
4366 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
4367 which has undefined symbols.
4368 * elf/Makefile: Likewise.
4370 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
4371 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4372 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4373 * sysdeps/i386/fpu/fesetround.c: Likewise.
4374 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
4376 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
4378 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4379 if it won't point to itself.
4381 2003-07-20 Ulrich Drepper <drepper@redhat.com>
4383 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
4385 2003-07-20 Andreas Jaeger <aj@suse.de>
4387 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
4388 STANDARD_TO_LOOP_ERR_HANDLER.
4389 * iconvdata/euc-jp-ms.c (BODY): Likewise.
4391 2003-07-19 Ulrich Drepper <drepper@redhat.com>
4393 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
4395 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
4397 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
4398 Andreas Jaeger <aj@suse.de>
4400 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
4401 256K, remove unneeded declaration of __getpagesize.
4403 2003-07-16 Andreas Schwab <schwab@suse.de>
4405 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
4407 2003-07-15 Ulrich Drepper <drepper@redhat.com>
4409 * io/test-utime.c (main): Make test yet more robust.
4411 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4413 More cancellation handling fixups.
4414 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
4415 * sysdeps/generic/not-cancel.h: Likewise.
4416 * catgets/open_catalog.c: Use not-cancelable syscalls.
4417 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
4418 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
4419 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
4420 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
4421 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
4422 * libio/fileops.c: Use not-cancelable syscalls for fclose.
4423 * libio/iopopen.c: Use no-cancelable syscalls.
4424 * libio/stdio.h: Mark popen and pclose with __THROW again.
4425 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
4426 * misc/syslog.c: Fix locking and cancellation cleanup handling.
4427 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
4428 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
4429 CFLAGS-tempname.c): Add -fexceptions.
4430 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4431 * string/string.h: Mark strerror and strerror_r with _THROW again.
4432 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
4433 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
4434 #ifs since we now need all the code compiled.
4435 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
4436 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
4437 * sysdeps/unix/opendir.c: Likewise.
4439 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
4440 Add rule for EUC-JP-MS dependency.
4441 * iconvdata/cp932.c: New file.
4442 * iconvdata/eucjp-ms.c: New file.
4443 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
4444 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4446 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
4451 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4453 * sysdeps/unix/sysv/linux/kernel-features.h
4454 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
4455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
4457 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
4459 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4461 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4462 __ASSUME_TGKILL for Alpha appropriately.
4464 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4466 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4467 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
4469 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
4472 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4473 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
4475 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
4476 second parameter == NULL.
4477 * sysdeps/unix/sysv/linux/utimes.c: New file.
4479 2003-07-12 Jakub Jelinek <jakub@redhat.com>
4481 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
4482 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
4485 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4487 * time/sys/time.h: Namespace cleanup.
4488 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4489 __ASSUME_UTIMES for the architectures which always had the syscall.
4490 * sysdeps/unix/sysv/linux/futimes.c: New file.
4492 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4494 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
4495 register across CENABLE and CDISABLE.
4497 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4499 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
4500 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4501 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4502 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
4503 int before assigning to max to avoid warnings.
4505 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
4509 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
4510 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
4512 2003-07-10 Jakub Jelinek <jakub@redhat.com>
4514 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
4515 .data.rel.ro.local to "aw".
4517 2003-07-10 Ulrich Drepper <drepper@redhat.com>
4519 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
4520 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
4521 (PIC-ccflag): Define.
4523 2003-07-04 Jakub Jelinek <jakub@redhat.com>
4525 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
4527 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4529 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4531 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
4532 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
4534 2003-07-07 Ulrich Drepper <drepper@redhat.com>
4536 * sysdeps/unix/sysv/linux/kernel-features.h: Version
4537 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
4539 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
4540 compilation with HAVE_AUX_SECURE defined.
4542 2003-07-05 Richard Henderson <rth@redhat.com>
4544 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
4546 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4548 * configure.in: Also check for .cfi_rel_offset pseudo-op.
4550 2003-07-03 Jakub Jelinek <jakub@redhat.com>
4552 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
4555 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4557 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
4559 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
4561 2003-07-02 Jakub Jelinek <jakub@redhat.com>
4563 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
4564 decl and use with #ifdef NEED_DL_SYSINFO.
4566 2003-07-02 Ulrich Drepper <drepper@redhat.com>
4568 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
4569 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
4570 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4571 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
4572 vsyscall DSO was added.
4574 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
4575 depending on selected standard.
4576 (NGROUPS_MAX): Define to 8 if not defined.
4578 2003-07-02 Andreas Jaeger <aj@suse.de>
4580 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
4582 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
4584 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
4585 * malloc/thread-m.h: Include <atomic.h>.
4586 (atomic_full_barrier): Provide default.
4587 (atomic_read_barrier): Likewise.
4588 (atomic_write_barrier): Likewise.
4589 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
4591 2003-06-30 Ulrich Drepper <drepper@redhat.com>
4593 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
4595 2003-06-30 Richard Henderson <rth@redhat.com>
4597 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
4598 Invert the sense of the return value.
4599 (__arch_exchange_16_int): Fix paste-o.
4600 (__arch_exchange_{32,64}_int): Fix think-o.
4602 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
4604 2003-06-30 Richard Henderson <rth@redhat.com>
4606 * include/sys/resource.h (__getrusage): Mark hidden.
4607 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
4608 * include/sys/wait.h (__wait4): Likewise.
4610 2003-06-17 Guido Guenther <agx@sigxcpu.org>
4612 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
4614 (xstat_conv): Rename to __xstat_conv and remove static inline.
4615 (xstat64_conv): Likewise.
4617 2003-06-29 Ulrich Drepper <drepper@redhat.com>
4619 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
4620 values which cannot be handled in one nanosleep call.
4622 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
4624 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
4625 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
4627 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
4629 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4631 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
4634 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
4636 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
4637 Conditionalize function definitions that use struct kernel_stat.
4638 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
4639 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
4640 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
4642 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4644 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
4647 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
4649 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
4650 (getgrent_next_file): Don't store group name to early in blacklist.
4652 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
4653 and use memcpy instead of strcpy.
4655 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4657 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
4659 * nis/nss_compat/compat-initgroups.c: Likewise.
4660 * nis/nss_compat/compat-pwd.c: Likewise.
4661 * nis/nss_compat/compat-spwd.c: Likewise.
4663 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
4665 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
4666 functions, dlopen corresponding NSS module instead.
4668 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
4670 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
4671 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4672 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4673 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4675 2003-06-27 Ulrich Drepper <drepper@redhat.com>
4677 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
4679 2003-06-26 Roland McGrath <roland@frob.com>
4681 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
4682 * sysdeps/mach/configure: Regenerated.
4683 * sysdeps/mach/hurd/times.c (times_init): Function removed.
4684 (__times): Assume `creation_time' field is available.
4685 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
4686 Don't append set-init.
4687 * sysdeps/mach/hurd/set-init.c: File removed.
4689 2003-06-26 Roland McGrath <roland@redhat.com>
4691 * elf/elf.h (AT_SECURE): New macro.
4692 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
4693 set __libc_enable_secure.
4694 (_dl_show_auxv): Add AT_SECURE to name table.
4695 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
4696 __libc_enable_secure and __libc_enable_secure_decided.
4697 * sysdeps/unix/sysv/linux/ldsodefs.h
4698 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
4699 * sysdeps/unix/sysv/linux/kernel-features.h
4700 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
4702 2003-06-26 Ulrich Drepper <drepper@redhat.com>
4704 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
4705 boundary test to take rounding of nanoseconds into account.
4707 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
4708 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4709 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
4710 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4711 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4712 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4713 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4715 2003-06-26 Andreas Schwab <schwab@suse.de>
4717 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
4718 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
4719 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
4721 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
4723 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
4724 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
4725 dlopen corresponding NSS module instead.
4726 * nis/nss_compat/compat-pwd.c: Likewise.
4727 * nis/nss_compat/compat-spwd.c: Likewise.
4728 * nis/nss_compat/compat-initgroups.c: Disabled for now.
4729 * nss/Versions: Export __nss_lookup_function.
4731 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4733 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
4734 for the SH architecture.
4736 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
4738 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
4740 2003-06-25 Andreas Jaeger <aj@suse.de>
4742 * stdlib/tst-strtod.c (main): Declare constant long double as
4743 suggested by Jakub Jelinek and Andreas Schwab.
4745 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
4748 * stdio-common/tst-fphex.c: Fix format string.
4750 * posix/transbug.c: Include <string.h> for memset and strlen
4753 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
4755 * stdlib/tst-strtod.c (main): Pass long double value.
4757 * test-skeleton.c: Include <time.h> for nanosleep declaration.
4759 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4761 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
4764 2003-06-11 Jakub Jelinek <jakub@redhat.com>
4766 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
4767 * elf/dl-libc.c (struct dl_open_hook): New.
4768 (_dl_open_hook): New variable.
4769 (do_dlsym_private): New function.
4770 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
4771 and initialize it if found.
4772 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
4773 call dlopen_mode hook.
4774 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
4776 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
4779 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4781 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
4782 result to long int so that extensions to long long int work.
4783 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4785 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4787 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
4788 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
4789 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
4791 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
4792 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
4793 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
4794 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
4796 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4798 * test-skeleton.c (timeout_handler): If waitpid returned 0,
4799 retry once after a second. If killed == 0, assume
4800 WTERMSIG (status) == SIGKILL.
4802 2003-06-18 Roland McGrath <roland@redhat.com>
4804 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
4805 elements in the table instead of printing an empty name string.
4807 2003-06-05 Roland McGrath <roland@redhat.com>
4809 * elf/elf.h (PT_GNU_STACK): New macro.
4811 2003-06-24 Ulrich Drepper <drepper@redhat.com>
4813 * include/time.h: Define CLOCK_IDFIELD_SIZE.
4814 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
4815 * sysdeps/unix/clock_gettime.c: Likewise.
4816 * sysdeps/unix/clock_settime.c: Likewise.
4817 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
4818 clock id for thread CPU clocks.
4820 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
4821 for the fstatfs64 syscall.
4822 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
4823 the statfs64 syscall.
4825 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4826 __ASSUME_STATFS64 appropriately.
4828 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
4829 from statfs structure if it has been filled in.
4831 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
4833 (struct statfs64): Likewise.
4834 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
4835 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
4837 2003-06-24 Richard Henderson <rth@redhat.com>
4839 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
4840 the 64-bit syscall name.
4842 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
4844 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
4845 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
4847 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
4848 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
4850 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4851 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
4854 * sysdeps/alpha/bits/atomic.h: New file.
4856 2003-06-24 Andreas Schwab <schwab@suse.de>
4858 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4860 2003-06-24 Andreas Jaeger <aj@suse.de>
4862 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
4863 redeclaration with 32-bit code.
4865 2003-05-19 Ed Connell <ed.connell@sas.com>
4867 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
4868 floating point mask.
4869 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
4871 2003-06-23 Ulrich Drepper <drepper@redhat.com>
4873 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
4874 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
4875 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
4877 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
4878 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
4879 instead of __libc_cleanup_region_*.
4881 2003-06-20 Richard Henderson <rth@redhat.com>
4883 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
4884 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
4886 2003-06-20 Richard Henderson <rth@redhat.com>
4888 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
4889 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
4891 (__ASSUME_TIMEVAL64): Set for alpha.
4892 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
4893 adjtimex, osf_sigprocmask, old_adjtimex.
4894 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
4895 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
4896 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
4897 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4898 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4899 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4900 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4901 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4902 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4903 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4904 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
4906 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4907 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
4908 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
4909 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
4910 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4911 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
4912 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
4913 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
4914 defer to __syscall_name; error for rt_sigaction.
4915 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
4917 2003-06-18 Ulrich Drepper <drepper@redhat.com>
4919 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
4920 hasn't happened yet.
4922 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4923 Fix completely broken implementation. The second parameter is of
4924 type struct ucontext*.
4926 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
4929 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
4930 * sysdeps/generic/dl-hash.h: Likewise.
4932 * sysdeps/generic/memcmp.c: Remove inline from
4933 memcmp_common_alignment and memcmp_not_common_alignment definition.
4935 * intl/localealias.c (read_alias_file): Determine whether line is
4936 read incompletely early, before we modify the line.
4938 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4940 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
4941 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
4943 2003-06-17 Paul Mackerras <paulus@samba.org>
4945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
4946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
4947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
4948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
4949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
4950 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
4952 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4954 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
4956 2003-06-17 Ulrich Drepper <drepper@redhat.com>
4958 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4959 takes care of enabling cancellation.
4961 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
4962 cancelable. It's not correct to disable cancellation. Instead of
4965 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
4966 and part of the incoming set, create a temporary set without this
4968 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4969 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4971 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
4972 returning because seconds==0. Add __builtin_expect.
4974 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4976 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
4978 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
4981 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
4983 * include/libc-symbols.h: Add static_link_warning macro.
4984 * grp/initgroups.c: Print linker warning if this function
4985 is called in a static linked binary.
4986 * nss/getXXbyYY.c: Likewise.
4987 * nss/getXXbyYY_r.c: Likewise.
4988 * nss/getXXent.c: Likewise.
4989 * nss/getXXent_r.c: Likewise.
4990 * sysdeps/posix/getaddrinfo.c: Likewise.
4992 2003-06-16 Bruno Haible <bruno@clisp.org>
4994 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
4996 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
4997 (IBM1047): Add alias IBM-1047.
4998 (GBK): Add aliases MS936, WINDOWS-936.
5000 2003-06-16 Jakub Jelinek <jakub@redhat.com>
5002 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
5003 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
5004 (__xstat64_conv): Change xstat_conv to __xstat_conv.
5006 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5008 * locale/iso-639.def: Update from current official ISO 639.
5010 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
5012 2003-06-15 Andreas Jaeger <aj@suse.de>
5014 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
5016 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5017 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
5018 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
5020 * math/tgmath.h (carg): Handle real arguments.
5026 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
5027 (tests): Add test-tgmath-ret.
5028 * math/test-tgmath-ret.c: New file.
5030 * math/tgmath.h (ilogb): Return always an int.
5032 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5034 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
5035 computation so that prelinking works.
5037 2003-06-15 Ulrich Drepper <drepper@redhat.com>
5039 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
5041 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
5042 dynamic linker's map.
5044 Fix cancellation point handling wrt exception based cleanup.
5045 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
5046 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
5048 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
5049 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
5050 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
5052 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
5053 sigwait.c, and sigwaitinfo.c with exceptions.
5054 * stdlib/Makefile: Compile system.c with exceptions.
5055 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
5056 * termios/Makefile: Compile tcdrain.c with exceptions.
5057 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
5059 * sysdeps/generic/pselect.c: Likewise.
5060 * sysdeps/posix/sigpause.c: Likewise.
5061 * sysdeps/posix/system.c: Likewise.
5062 * sysdeps/posix/waitid.c: Likewise.
5063 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5064 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
5065 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
5066 INTERNAL_SYSCALL to not use push inside asm statement so that
5067 unwind info is correct around the syscall.
5068 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
5069 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5071 2003-06-15 Andreas Jaeger <aj@suse.de>
5073 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5076 2003-06-15 Guido Guenther <agx@sigxcpu.org>
5078 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
5081 2003-06-14 Ulrich Drepper <drepper@redhat.com>
5083 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
5086 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
5087 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
5090 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
5091 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
5092 * inet/Makefile (routines): Add inet6_option.
5093 * inet/inet6_option.c: New file.
5094 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
5095 inet6_option_init, inet6_option_append, inet6_option_alloc,
5096 inet6_option_next, and inet6_option_find.
5098 2003-06-13 Ulrich Drepper <drepper@redhat.com>
5100 * inet/netinet/ip6.h (struct ip6_ext): Define.
5102 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
5104 Fixing gcc 3.3 warnings, part II.
5105 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
5106 * elf/dl-load.c (cache_rpath): Don't inline.
5107 * iconvdata/cns11642l2.h: Always inline all functions.
5108 * iconvdata/iso-ir-165.h: Likewise.
5109 * locale/Makefile (aux): Add coll-lookup.
5110 * locale/coll-lookup.c: New file.
5111 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
5112 (collseq_table_lookup): Likewise.
5113 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
5114 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
5116 * posix/regcomp.c: Likewise.
5117 * posix/regexec.c: Likewise.
5118 * locale/programs/3level.h (*_get): Always inline.
5119 * locale/programs/locfile.h: Move definition of handle_copy to...
5120 * locale/programs/locfile.c: ...here.
5121 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
5122 (obstack_int32_grow_fast): Likewise.
5123 (utf8_encode): Likewise.
5124 (find_element): Avoid aliasing problems.
5125 (insert_value): Likewise.
5126 (collate_read): Likewise.
5127 * nss/getent.c (print_hosts): Don't inline
5128 (print_networks): Likewise.
5129 (print_shadow): Likewise.
5130 (build_doc): Likewise.
5131 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
5133 * posix/regcomp.c (re_set_fastmap): Always inline.
5134 (seek_collating_symbol_entry): Likewise.
5135 (lookup_collation_sequence_value): Likewise.
5136 (build_range_exp): Likewise.
5137 (build_collating_symbol): Likewise.
5138 * posix/regexec.c (acquire_init_state_context): Don't inline.
5139 (clean_state_log_if_need): Likewise.
5140 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
5142 (evConsTime): Likewise.
5143 (evAddTime): Likewise.
5144 (evSubTime): Likewise.
5145 (evNowTime): Likewise.
5146 (evTimeSpec): Removed.
5147 (__libc_res_nsend): Avoid aliasing problem.
5148 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
5149 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
5150 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
5152 (_dl_string_platform): Likewise.
5153 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
5154 (wcwidth_table_lookup): Likewise.
5155 (wctrans_table_lookup): Likewise.
5157 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
5159 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5161 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
5163 2003-05-29 Jim Meyering <jim@meyering.net>
5165 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
5166 && HAVE_STRFTIME]: Use underlying_strftime for %r.
5167 Suggested by Daniel Yacob <locales@geez.org>.
5169 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
5171 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
5172 @got notation with @toc.
5173 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
5174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
5176 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5178 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
5179 if only PF_INET address is needed.
5181 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
5184 * scripts/config.guess: Update from upstream version.
5185 * scripts/config.sub: Likewise.
5187 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5189 * locale/programs/ld-time.c (time_output): Also copy the era format,
5192 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
5194 * posix/transbug.c (run_test): Return 1 for failure.
5195 (do_test): Compare only if run_test is successful.
5197 2003-06-12 Simon Josefsson <jas@extundo.com>
5199 * argp/argp.h [!__THROW]: Define if undefined.
5201 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5203 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
5204 more than four parameters.
5205 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5207 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5209 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5210 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
5211 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
5213 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
5215 2003-06-12 Roland McGrath <roland@redhat.com>
5217 * Makerules ($(objpfx)stubs): Rewrite sed magic.
5219 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5221 * posix/regcomp.c (parse_expression): Deliver translation to
5222 build_word_op, and build_charclass.
5223 (build_charclass): Apply translation for character classes too.
5224 (build_word_op): Deliver translation to build_charclass.
5225 * posix/transbug.c: New file.
5226 * posix/Makefile (tests): Add transbug.
5228 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
5230 * posix/regexec.c (group_nodes_into_DFAstates): Check for
5231 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
5232 'continue' before the others.
5234 2003-06-11 Ulrich Drepper <drepper@redhat.com>
5236 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
5237 function [PR libc/5045].
5239 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
5242 * time/tzfile.c: Add a couple of __builtin_expect.
5244 Remove warnings gcc 3.3 shows.
5245 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
5246 * elf/dl-load.c (fillin_rpath): Likewise.
5247 (add_path): Likewise.
5248 * elf/dl-version.c (find_needed): Always inline.
5249 * elf/do-lookup.c (FCT): Don't inline.
5250 * iconv/Makefile: Extend vpath to intl subdir.
5251 (iconvconfig-modules): Add hash-string.
5252 * iconv/gconv_charset.h (strip): Don't inline.
5253 (upstr): Always inline.
5254 Move __gconv_compare_alias prototype to...
5255 * iconv/gconv_int.h: ...here.
5256 * iconv/gconv_db.c: Don't include gconv_charset.h.
5257 * iconv/gconv_conf.c (add_alias): Don't inline.
5258 (insert_module): Likewise.
5259 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
5260 (internal_ucs4_loop_unaligned): Likewise.
5261 (internal_ucs4_loop_single): Likewise.
5262 (ucs4_internal_loop): Likewise.
5263 (ucs4_internal_loop_unaligned): Likewise.
5264 (ucs4_internal_loop_single): Likewise.
5265 (internal_ucs4le_loop): Always inline.
5266 (internal_ucs4le_loop_unaligned): Likewise.
5267 (internal_ucs4le_loop_single): Likewise.
5268 (ucs4le_internal_loop): Likewise.
5269 (ucs4le_internal_loop_unaligned): Likewise.
5270 (ucs4le_internal_loop_single): Likewise.
5271 * iconv/loop.c: Always inline the defined functions.
5272 * iconvdata/cns11642.h: Likewise.
5273 * iconvdata/cns11642l1.h: Likewise.
5274 * iconvdata/euc-kr.c: Likewise.
5275 * iconvdata/gb2312.h: Likewise.
5276 * iconvdata/jis0201.h: Likewise.
5277 * iconvdata/jis0208.h: Likewise.
5278 * iconvdata/jis0212.h: Likewise.
5279 * iconvdata/jisx0213.h: Likewise.
5280 * iconvdata/ksc5601.h: Likewise.
5281 * iconvdata/utf-7.c (base64): Don't inline.
5282 * include/libc-symbols.h (symbol_set_first_element): Add cast
5283 (symbol_set_end_p): Likewise.
5284 * include/set-hooks (RUN_HOOK): Likewise.
5285 * inet/Makefile (aux): Add ifreq.
5286 * intl/Makefile (aux): Add some entries from routines. Add
5288 * intl/hash-string.c: New file.
5289 * intl/hash-string.h: Remove hash_string definition. Declare
5291 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
5292 * iconv/iconvconfig.c (new_name): Likewise.
5293 * intl/dcigettext.c (_nl_find_msg): Likewise.
5294 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5295 * io/ftw.c (open_dir_stream): Always inline.
5296 (process_entry): Don't inline.
5297 * locale/findlocale.c: Include gconv_int.h.
5298 * locale/setlocale.c (new_composite_name): Don't inline.
5299 * locale/weight.h (findidx): Always inline.
5300 * locale/weightwc.h (findidx): Likewise.
5301 * locale/programs/linereader.c (lr_ignore_rest): Define here.
5302 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
5304 (lr_getc): Always inline.
5305 (lr_ungetc): Likewise.
5306 * nss/nss_files/files-parse.c (parse_list): Likewise.
5307 * stdio-common/Makefile (aux): Add printf-parsemb and
5309 * stdio-common/_itoa.h (_itoa_word): Always inline.
5310 (_fitoa_word, _fitoa): Don't define here, only declare.
5311 * stdio-common/_itoa.c (_iftoa_word): Add here.
5313 * stdio-common/_itowa.h (_itowa_word): Always inline.
5314 * stdio-common/printf-parse.h (read_int): Don't inline.
5315 (find_spec): Don't define.
5316 Declare __find_specmb and __find_specwc.
5317 (parse_one_spec): Don't define.
5318 Declare __parse_one_specmb and __parse_one_specwc.
5319 * stdio-common/printf-parsemb.c: New file.
5320 * stdio-common/printf-parsewc.c: New file.
5321 * stdio-common/vfprintf.c: Update calls to find_spec and
5322 parse_one_spec for new names.
5323 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
5324 * stdlib/Makefile (aux): Add grouping and groupingwc.
5325 * stdlib/grouping.c: New file.
5326 * stdlib/groupingwc.c: New file.
5327 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
5329 * stdlib/rpmatch.c (try): Don't inline.
5330 * stdlib/strtod.c (round_and_return): Don't line.
5331 (str_to_mpn): Likewise.
5332 (__mpn_lshift_1): Always inline. Optimize only for constant count.
5333 Adjust for name change of correctly_grouped_prefix.
5334 * sysdeps/generic/strtol.c: Adjust for name change of
5335 correctly_grouped_prefix.
5336 * string/strxfrm.c (utf8_encode): Don't inline.
5337 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
5338 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
5339 * sysdeps/generic/ifreq.c: New file.
5340 * sysdeps/unix/sysv/linux/ifreq.c: New file.
5341 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
5342 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
5343 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
5344 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
5345 (fde_split): Likewise.
5346 (fde_merge): Likewise.
5347 (end_fde_sort): Likewise.
5348 (init_object): Likewise.
5349 (binary_search_unencoded_fdes): Likewise.
5350 (binary_search_single_encoding_fdes): Likewise.
5351 (binary_search_mixed_encoding_fdes): Likewise.
5352 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
5353 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
5354 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
5355 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5357 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
5358 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
5359 Export them. Prepend __ to name.
5360 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
5361 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
5362 conversion functions.
5363 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5364 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5365 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5366 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5367 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5368 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5369 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5370 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5371 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
5372 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
5373 to name. Change callers.
5374 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
5375 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
5377 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
5378 * time/tzfile.c (decode): Always inline.
5379 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
5380 Remove cast in tomb function call.
5381 * wcsmbs/wcsrtombs.c Likewise.
5382 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
5385 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5387 * po/zh_CN.po: Update from translation team.
5389 2003-06-10 Jakub Jelinek <jakub@redhat.com>
5391 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
5392 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
5394 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5396 * inet/Makefile (aux): Add check_pf.
5397 * include/ifaddrs.h: Add prototype for __check_pf.
5398 * sysdeps/generic/check_pf.c: New file.
5399 * sysdeps/unix/sysv/linux/check_pf.c: New file.
5400 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
5401 from no_netlink_support. Export.
5402 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
5405 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
5407 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
5408 from getifaddr calls.
5410 2003-06-09 Jakub Jelinek <jakub@redhat.com>
5412 * sysdeps/unix/sysv/linux/kernel-features.h
5413 (__ASSUME_SETRESGID_SYSCALL): Define.
5414 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
5415 instead of __ASSUME_SETRESUID_SYSCALL.
5416 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
5418 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
5419 inline syscall if __NR_setresuid32 is defined.
5420 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5421 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
5422 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
5423 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5424 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
5425 code handling non-existant setresgid32 syscall with
5426 #if __ASSUME_SETRESGID_SYSCALL == 0.
5428 2003-06-09 Andreas Schwab <schwab@suse.de>
5430 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
5431 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
5432 $(objpfx)rpc-proto.d.
5433 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
5434 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
5435 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
5437 2003-06-08 Ulrich Drepper <drepper@redhat.com>
5439 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
5440 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5441 defined drop compatibility code.
5442 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
5443 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5444 defined drop compatibility code.
5445 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
5446 setresuid32 syscall directly if possible.
5447 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5448 setresgid32 syscall directly if possible.
5449 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
5450 compliant. Don't change sgid.
5451 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
5452 compliant. Don't change suid.
5454 * config.h.in: Add have-forced-unwind.
5455 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
5457 2003-06-07 Ulrich Drepper <drepper@redhat.com>
5459 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
5460 returned status from child matches.
5462 * Makeconfig (gnulib): Add -lgcc_eh once again.
5464 2003-06-06 Ulrich Drepper <drepper@redhat.com>
5466 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
5468 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
5469 %edx for first parameter. This means no pushl and therefore the
5470 unwind info isn't screwed up.
5472 2003-06-04 Richard Henderson <rth@redhat.com>
5474 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
5475 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5476 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
5477 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
5478 entry sequence and explicit relocs. Add unwind info for sigreturn
5480 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
5482 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
5483 Annotate some parameters.
5484 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
5486 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
5488 * include/libc-symbols.h (symbol_set_declare): Use arrays
5489 of unspecified size.
5491 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5493 * config.make.in (ASFLAGS-config): New.
5494 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
5495 * configure.in (libc_cv_as_noexecstack): New check.
5496 (ASFLAGS_config): Substitute.
5498 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5500 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
5501 hypot, logb): Protect with #ifdef __FAST_MATH__.
5503 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5505 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
5506 #ifdef __FAST_MATH__.
5508 2003-06-03 Ulrich Drepper <drepper@redhat.com>
5510 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
5511 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5512 * posix/globtest.sh: Adjust for this change.
5514 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
5515 to get the actual PID value used in the records passed up.
5516 (getifaddrs): Don't initialize nh.pid here.
5518 2003-06-02 Ulrich Drepper <drepper@redhat.com>
5520 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
5523 * po/zh_CN.po: Update from translation team.
5525 * posix/getconf.c (main): Also recognize names without the
5528 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
5530 2003-06-02 Bernd Schmidt <bernds@redhat.com>
5532 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
5533 ldexpf, ldexpl): Only define if __FAST_MATH__.
5535 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
5537 Replace hard-coded offsets into struct sigcontext with generated file.
5538 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
5539 * sysdeps/unix/sysv/linux/ia64/Makefile
5540 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
5541 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
5542 defining SC_* macros here.
5544 2003-06-02 Jakub Jelinek <jakub@redhat.com>
5546 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
5548 2003-06-01 Jakub Jelinek <jakub@redhat.com>
5550 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
5552 2003-06-01 Ulrich Drepper <drepper@redhat.com>
5554 * test-skeleton.c (main): Request getopt to not reorder the
5557 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
5559 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
5562 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5564 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
5566 2003-05-31 Jakub Jelinek <jakub@redhat.com>
5568 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
5570 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
5571 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
5572 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
5574 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5576 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
5579 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
5581 * libio/fileops.c (_IO_file_open): Don't mark as inline.
5583 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
5586 2003-05-30 Ulrich Drepper <drepper@redhat.com>
5588 * scripts/config.guess: Update from master copy.
5589 * scripts/config.sub: Likewise.
5591 2003-05-30 Guido Guenther <agx@sigxcpu.org>
5593 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
5594 SETUP_GP64 and friends.
5595 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
5596 names in internal_syscall{6,7}.
5597 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
5598 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
5599 number of syscall arguments.
5600 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5601 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5602 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5604 2003-05-30 Andreas Jaeger <aj@suse.de>
5606 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5609 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
5612 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
5614 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5617 2003-05-30 Jakub Jelinek <jakub@redhat.com>
5619 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
5622 2003-05-11 Andreas Schwab <schwab@suse.de>
5624 * Makerules: Always use -MP together with -MD.
5625 (sed-remove-dotot): Substitute $(..) also at start of line.
5626 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
5627 Generated defines with a single compiler call.
5628 Use $(sed-remove-dotdot).
5629 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
5630 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
5631 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5632 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
5633 * sysdeps/unix/sysv/linux/mips/Makefile
5634 ($(objpfx)syscall-%.h): Likewise.
5636 2003-05-28 Roland McGrath <roland@redhat.com>
5638 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
5640 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
5642 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
5644 2003-05-28 Roland McGrath <roland@redhat.com>
5646 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
5647 rt_sigprocmask system call.
5648 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
5649 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
5651 2003-05-28 Ulrich Drepper <drepper@redhat.com>
5653 * include/libc-symbols.h: Define hidden attribute for real also if
5654 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
5656 * csu/Makefile: Add rules to build Scrt1.o.
5657 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
5658 * sysdeps/x86_64/elf/start.S: Likewise.
5660 2003-05-27 Jakub Jelinek <jakub@redhat.com>
5662 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
5663 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
5664 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
5665 pa_short_int, pa_u_short_int and pa_float.
5667 2003-05-26 Jakub Jelinek <jakub@redhat.com>
5669 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
5670 _IO_str_init_static_internal.
5671 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
5672 change size argument to _IO_size_t, don't limit sprintf to 64M.
5673 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
5674 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
5675 _IO_size_t, don't limit swprintf to 256M.
5676 (_IO_wstr_init_readonly): Remove.
5677 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
5679 (_IO_wstr_init_readonly): Remove prototype.
5680 * libio/iovsprintf.c (_IO_vsprintf): Use
5681 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
5682 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5683 * libio/memstream.c (open_memstream): Likewise.
5684 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
5685 * libio/vasprintf.c (_IO_vasprintf): Likewise.
5686 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5687 * stdio-common/tst-sprintf.c (main): Add new test.
5689 2003-05-26 Ulrich Drepper <drepper@redhat.com>
5691 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
5692 other implementation in respect of multiple uses of parameter with
5695 2003-05-25 Ulrich Drepper <drepper@redhat.com>
5697 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5698 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
5700 2003-05-22 Andreas Jaeger <aj@suse.de>
5702 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
5704 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
5705 * sysdeps/x86_64/strtok.S: Likewise.
5707 2003-05-20 Guido Guenther <agx@sigxcpu.org>
5709 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
5710 to -60 and define SI_TKILL.
5712 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
5714 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
5715 (feexcp_mask_test): Likewise.
5717 2003-05-21 Ulrich Drepper <drepper@redhat.com>
5719 * locale/programs/locale.c (main): Fix typo in last patch.
5721 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
5722 __init_array_start, __init_array_end, __fini_array_start, and
5723 __fini_array_end as hidden.
5725 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
5727 * locale/programs/locale.c (main): Report an error if setlocale()
5728 fails [PR libc/2254].
5730 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5732 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5734 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
5737 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5738 LOADARGS_6): Don't error if syscall argument is a string literal.
5739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
5740 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5741 LOADARGS_6): Likewise.
5743 2003-05-21 Andreas Jaeger <aj@suse.de>
5745 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
5746 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
5747 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
5749 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
5753 * configure.in: Test for asm cfi directives.
5755 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
5757 2003-05-17 Andreas Jaeger <aj@suse.de>
5759 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
5761 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
5763 2003-05-16 Ulrich Drepper <drepper@redhat.com>
5765 * rt/Makefile (tests): Add tst-clock_nanosleep.
5766 * rt/tst-clock_nanosleep.c: New file.
5767 * posix/Makefile (tests): Add tst-nanosleep.
5768 * posix/tst-nanosleep.c: New file.
5770 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
5772 * include/features.h (__USE_XOPEN2K): Define also for
5773 _POSIX_C_SOURCE>=200112L.
5775 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
5776 SI_TKILL code into SI_USER.
5777 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
5779 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
5781 2003-05-15 Jakub Jelinek <jakub@redhat.com>
5783 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
5784 Remove sym argument, always use refsym.
5785 (__process_machine_rela): Adjust callers.
5786 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
5788 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
5790 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5792 2003-05-15 Ulrich Drepper <drepper@redhat.com>
5794 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
5795 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
5796 print numeric values.
5798 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
5800 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
5802 2003-05-14 Andreas Schwab <schwab@suse.de>
5804 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
5806 2003-05-14 Jakub Jelinek <jakub@redhat.com>
5808 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
5809 even if no DT_NEEDED is present.
5811 2003-05-13 David Mosberger <davidm@hpl.hp.com>
5813 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
5814 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
5815 __sigjmp_save) so we can't keep the saved unat value in a scratch
5816 register (r16). Use loc2 instead.
5818 2003-05-13 Ulrich Drepper <drepper@redhat.com>
5820 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
5821 binaries it has to be relocatable.
5823 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
5825 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
5827 * sysdeps/powerpc/bits/atomic.h
5828 (__arch_compare_and_exchange_bool_8_rel): Define.
5829 (__arch_compare_and_exchange_bool_16_rel): Define.
5830 (__ARCH_REL_INSTR): Define if not already defined.
5831 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
5832 (__arch_atomic_decrement_if_positive_32):
5833 Add "memory" to clobber list.
5834 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
5835 (__arch_compare_and_exchange_val_32_rel): Define.
5836 (__arch_atomic_exchange_32): Remove.
5837 (__arch_atomic_exchange_32_acq): Define.
5838 (__arch_atomic_exchange_32_rel): Define.
5839 (atomic_compare_and_exchange_val_rel): Define.
5840 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
5841 (atomic_exchange_rel): Define.
5842 * sysdeps/powerpc/powerpc32/bits/atomic.h
5843 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
5844 (__arch_compare_and_exchange_bool_32_rel): Define.
5845 (__arch_compare_and_exchange_bool_64_rel): Define.
5846 (__arch_compare_and_exchange_val_64_rel): Define.
5847 (__arch_atomic_exchange_64): Remove.
5848 (__arch_atomic_exchange_64_acq): Define.
5849 (__arch_atomic_exchange_64_rel): Define.
5850 * sysdeps/powerpc/powerpc64/bits/atomic.h
5851 (__arch_compare_and_exchange_bool_32_rel): Define.
5852 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
5853 (__arch_compare_and_exchange_bool_64_rel): Define.
5854 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
5855 (__arch_compare_and_exchange_val_64_rel): Define.
5856 (__arch_atomic_exchange_64): Remove.
5857 (__arch_atomic_exchange_64_acq): Define.
5858 (__arch_atomic_exchange_64_rel): Define.
5859 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
5860 (__arch_atomic_decrement_if_positive_64):
5861 Add "memory" to clobber list.
5862 [!UP](__ARCH_REL_INSTR): Define as lwsync.
5864 2003-05-11 Andreas Schwab <schwab@suse.de>
5866 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
5868 2003-05-11 Ulrich Drepper <drepper@redhat.com>
5870 * time/tst-strftime.c (do_test): Add tests for - flag.
5872 2003-05-11 Jim Meyering <jim@meyering.net>
5874 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
5875 the space-padded-by-default conversion specifiers, %e, %k, %l.
5877 2003-05-11 Andreas Schwab <schwab@suse.de>
5879 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
5881 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5883 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
5884 already defined and when really needed.
5885 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5887 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5889 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
5890 headers, add defines from kernel header, move it from here...
5891 * inet/netinet/igmp.h: ... to here.
5892 * inet/Makefile (headers): Add netinet/igmp.h.
5893 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
5894 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
5896 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5898 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
5899 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
5901 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5903 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
5904 (remove __THROW from possible cancellation points).
5906 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5908 * posix/sched.h (CPU_SETSIZE): Define.
5910 2003-05-09 Ulrich Drepper <drepper@redhat.com>
5912 * Makeconfig (gnulib): Remove -lgcc_eh again.
5914 * posix/sched.h: Change prototypes of sched_getaffinity and
5915 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
5916 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
5917 * sysdeps/generic/sched_setaffinity.c: Likewise.
5918 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
5919 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
5920 __CPU_CLR, and __CPU_ISSET.
5921 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5922 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
5923 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
5925 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
5926 (atomic_exchange_rel): New #define.
5927 * sysdeps/ia64/bits/atomic.h: Likewise.
5928 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
5930 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
5931 * sysdeps/powerpc/bits/atomic.h: Likewise.
5932 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
5933 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
5934 * sysdeps/x86_64/bits/atomic.h: Likewise.
5935 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
5937 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
5939 2003-05-08 Ulrich Drepper <drepper@redhat.com>
5941 * malloc/thread-m.h: Remove special handling of thread_atfork if
5942 HAVE_register_atfork_malloc is defined.
5944 2003-05-07 Andreas Jaeger <aj@suse.de>
5946 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
5949 2003-05-06 Ulrich Drepper <drepper@redhat.com>
5951 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
5952 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5953 * libio/libioP.h: Declare _IO_old_init.
5954 * libio/genops.c (_IO_no_init): Split in two. New function
5957 2003-05-05 Ulrich Drepper <drepper@redhat.com>
5959 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
5961 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
5963 * include/unistd.h: Declare __libc_enable_secure_decided.
5964 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
5965 and AT_EGID. If all found, set __libc_enable_secure and
5966 __libc_enable_secure_decided.
5968 * sysdeps/generic/libc-start.c [!SHARED]: Call
5969 __libc_check_standard_fds after __libc_init_first.
5971 2003-05-05 Roland McGrath <roland@redhat.com>
5973 * Makerules (common-before-compile): New variable.
5974 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
5975 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
5976 to after all setting of before-compile.
5978 2003-05-05 Jakub Jelinek <jakub@redhat.com>
5980 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5981 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
5982 * sysdeps/powerpc/powerpc32/bits/atomic.h
5983 (__arch_compare_and_exchange_val_64_acq): Likewise.
5984 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5985 (__arch_compare_and_exchange_val_8_acq,
5986 __arch_compare_and_exchange_val_16_acq,
5987 __arch_compare_and_exchange_val_64_acq): Likewise.
5988 * sysdeps/sparc/sparc64/bits/atomic.h
5989 (__arch_compare_and_exchange_val_8_acq,
5990 __arch_compare_and_exchange_val_16_acq): Likewise.
5991 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5992 __arch_compare_and_exchange_val_16_acq,
5993 __arch_compare_and_exchange_val_64_acq): Likewise.
5994 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5995 (__arch_compare_and_exchange_val_64_acq): Likewise.
5996 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
5998 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
6000 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6001 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
6002 Return long instead of int.
6003 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
6004 0xfffff001u with -4095UL.
6006 2003-05-05 Andreas Jaeger <aj@suse.de>
6008 * sysdeps/x86_64/fpu_control.h: New from i386.
6010 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
6011 Define if not defined.
6013 * sunrpc/Makefile (generated-dirs): New variable.
6014 * resolv/Makefile (generated): New variable.
6016 2003-05-04 Roland McGrath <roland@redhat.com>
6018 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
6019 Depend on $(before-compile).
6021 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
6022 pattern rule. The implicit rule could be ruled out when $(objpfx)
6023 didn't exist at the time of its consideration (ugh!).
6025 * Makerules (+make-deps): Fix target matching.
6026 Use $(sed-remove-dotdot).
6028 2003-05-03 Ulrich Drepper <drepper@redhat.com>
6030 * nscd/nscd.c (main): Parse config file right after parsing
6031 parameters. Then, if get_stats is true, call receive_print_stats.
6032 Drop parameter from nscd_init call.
6033 (get_stats): New variable.
6034 (parse_opt): Set get_stats, don't call receive_print_stats here.
6035 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
6037 * nscd/connections.c (stat_user, stat_uid): New variables.
6039 (nscd_init): Don't read configuration file here. Drop parameter.
6040 (handle_request): Cleanup handling of non-database lookup requests.
6041 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
6042 Get UID of the specified user. Use xstrdup instead of strdup.
6043 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
6045 * nscd/Makefile (nscd-modules): Add xstrdup.
6046 * nscd/nscd.conf: Document stat-user entry.
6048 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
6050 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
6053 2003-04-22 Roland McGrath <roland@redhat.com>
6055 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
6056 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6057 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
6058 * elf/dl-support.c: Update defn.
6059 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
6060 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6061 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
6062 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
6063 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
6064 set, set up a link_map for the preloaded, prelinked object.
6066 2003-05-03 Roland McGrath <roland@redhat.com>
6068 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
6069 * stdio-common/Makefile: ... not here.
6071 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
6072 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
6074 2003-05-02 Ulrich Drepper <drepper@redhat.com>
6076 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
6078 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
6080 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
6081 comparing ftab elements.
6082 (_dl_unmap): Fix typo in test.
6083 (_dl_make_fptr): Fix typos introduced in last change.
6085 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
6086 original patch. Use non-exported symbols. Mark translatable
6087 strings. Pretty printing.
6089 2003-05-02 Roland McGrath <roland@redhat.com>
6091 * Makerules (do-stamp): Do $(make-target-directory).
6093 2003-04-07 H.J. Lu <hjl@gnu.org>
6095 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
6097 2003-04-03 H.J. Lu <hjl@gnu.org>
6099 * sysdeps/ia64/dl-fptr.c: Moved to ...
6100 * sysdeps/generic/dl-fptr.c: Here.
6102 * sysdeps/generic/dl-fptr.h: New.
6103 * sysdeps/ia64/dl-fptr.h: New.
6105 * sysdeps/ia64/dl-symaddr.c: Moved to ...
6106 * sysdeps/generic/dl-symaddr.c: here.
6108 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
6109 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
6110 (ia64_fdesc): Likewise.
6111 (ia64_fdesc_table): Likewise.
6112 (__ia64_make_fptr): Likewise.
6113 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
6114 with _dl_boot_fptr_table.
6115 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
6117 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
6119 2003-05-01 Roland McGrath <roland@redhat.com>
6121 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
6122 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
6124 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6125 Use $(make-target-directory).
6126 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6128 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
6129 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
6130 (compile-command.s, compile-command.c): Likewise.
6131 ($(objpfx)%.d): All such pattern rules removed.
6132 ($(+sysdir_pfx)sysd-rules): Don't generate them.
6133 ($(common-objpfx)dummy.d): Target removed.
6134 (make-dummy-dep): Variable removed.
6135 (generate-md5): Likewise.
6136 (%.d: %.dt): New pattern rule.
6137 (+depfiles): Use $(wildcard) function to get just existing *.d files
6138 and .d files for existing *.dt files.
6139 (common-clean): Remove all *.d and *.dt files.
6140 (before-compile): Add $(objpfx). when it doesn't exist,
6141 regardless of $(no_deps).
6142 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
6143 (rtld-depfiles): Use .os.d instead of .d names.
6144 Include existing *.d files and .d files for existing *.dt files.
6146 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
6147 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
6149 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
6150 Do s-*.d includes only if we have some syscall routines in this subdir.
6152 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
6153 @nobits. The former is accepted by gas on any ELF platform.
6155 2003-05-01 Ulrich Drepper <drepper@redhat.com>
6157 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
6159 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
6161 2003-04-29 Andreas Schwab <schwab@suse.de>
6163 * string/test-strcat.c (do_one_test): Fix attribute name.
6165 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
6167 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
6168 uc_flags long for all ABIs.
6170 2003-04-30 Andreas Jaeger <aj@suse.de>
6172 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
6173 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
6174 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
6175 Add bi-arch support.
6177 2003-04-30 Ulrich Drepper <drepper@redhat.com>
6179 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
6180 (__posix_memalign): Use __memalign_internal instead of memalign.
6182 2003-04-29 Roland McGrath <roland@redhat.com>
6184 * configure.in: Search for AUTOCONF unconditionally.
6185 Just don't complain about missing it under --without-cvs.
6187 * include/libc-symbols.h (__symbol_set_attribute): New macro,
6188 give hidden for [SHARED] and weak for [! SHARED].
6189 (symbol_set_declare): Use that. Never need weak_extern these days.
6190 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
6191 Depend on $(..)Makerules.
6193 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6195 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
6196 variants of socket, bind, recvmsg, and sendto.
6198 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
6200 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
6201 * signal/sigaddset.c: Add libc_hidden_def.
6202 * signal/sigdelset.c: Likewise.
6204 2003-04-29 Jakub Jelinek <jakub@redhat.com>
6206 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
6207 to the end of the file.
6209 * configure.in: Change __oline__ to $LINENO.
6210 (HAVE_BUILTIN_REDIRECTION): New check.
6211 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
6212 * include/libc-symbols.h (libc_hidden_builtin_proto,
6213 libc_hidden_builtin_def, libc_hidden_builtin_weak,
6214 libc_hidden_builtin_ver): Define.
6215 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
6216 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
6217 strspn, strstr): Add libc_hidden_builtin_proto.
6218 * intl/plural.y: Include string.h.
6219 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
6220 libc_hidden_builtin_def.
6221 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
6222 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
6223 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
6224 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
6225 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
6226 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
6227 * sysdeps/alpha/memchr.S (memchr): Likewise.
6228 * sysdeps/alpha/memset.S (memset): Likewise.
6229 * sysdeps/alpha/strcat.S (strcat): Likewise.
6230 * sysdeps/alpha/strchr.S (strchr): Likewise.
6231 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
6232 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
6233 * sysdeps/alpha/strlen.S (strlen): Likewise.
6234 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
6235 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
6236 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
6237 * sysdeps/arm/memset.S (memset): Likewise.
6238 * sysdeps/arm/strlen.S (strlen): Likewise.
6239 * sysdeps/generic/memchr.c (memchr): Likewise.
6240 * sysdeps/generic/memcpy.c (memcpy): Likewise.
6241 * sysdeps/generic/memmove.c (memmove): Likewise.
6242 * sysdeps/generic/memset.c (memset): Likewise.
6243 * sysdeps/generic/strcat.c (strcat): Likewise.
6244 * sysdeps/generic/strchr.c (strchr): Likewise.
6245 * sysdeps/generic/strcmp.c (strcmp): Likewise.
6246 * sysdeps/generic/strcpy.c (strcpy): Likewise.
6247 * sysdeps/generic/strcspn.c (strcspn): Likewise.
6248 * sysdeps/generic/strlen.c (strlen): Likewise.
6249 * sysdeps/generic/strncmp.c (strncmp): Likewise.
6250 * sysdeps/generic/strncpy.c (strncpy): Likewise.
6251 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
6252 * sysdeps/generic/strrchr.c (strrchr): Likewise.
6253 * sysdeps/generic/strspn.c (strspn): Likewise.
6254 * sysdeps/generic/strstr.c (strstr): Likewise.
6255 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6256 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6257 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
6258 * sysdeps/i386/i586/memset.S (memset): Likewise.
6259 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
6260 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
6261 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6262 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
6263 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6264 * sysdeps/i386/i686/memset.S (memset): Likewise.
6265 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6266 * sysdeps/i386/memchr.S (memchr): Likewise.
6267 * sysdeps/i386/memset.c (memset): Likewise.
6268 * sysdeps/i386/strchr.S (strchr): Likewise.
6269 * sysdeps/i386/strcspn.S (strcspn): Likewise.
6270 * sysdeps/i386/strlen.c (strlen): Likewise.
6271 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6272 * sysdeps/i386/strrchr.S (strrchr): Likewise.
6273 * sysdeps/i386/strspn.S (strspn): Likewise.
6274 * sysdeps/ia64/memchr.S (memchr): Likewise.
6275 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
6276 * sysdeps/ia64/memmove.S (memmove): Likewise.
6277 * sysdeps/ia64/memset.S (memset): Likewise.
6278 * sysdeps/ia64/strcat.S (strcat): Likewise.
6279 * sysdeps/ia64/strchr.S (strchr): Likewise.
6280 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
6281 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
6282 * sysdeps/ia64/strlen.S (strlen): Likewise.
6283 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
6284 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
6285 * sysdeps/m68k/memchr.S (memchr): Likewise.
6286 * sysdeps/m68k/strchr.S (strchr): Likewise.
6287 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
6288 * sysdeps/mips/mips64/memset.S (memset): Likewise.
6289 * sysdeps/mips/memcpy.S (memcpy): Likewise.
6290 * sysdeps/mips/memset.S (memset): Likewise.
6291 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6292 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
6293 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
6294 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
6295 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
6296 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6297 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6298 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
6299 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
6300 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
6301 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
6302 * sysdeps/powerpc/strcat.c (strcat): Likewise.
6303 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
6304 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
6305 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
6306 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
6307 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
6308 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
6309 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
6310 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
6311 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
6312 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
6313 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
6314 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
6315 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
6316 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
6317 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
6318 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
6319 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
6320 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
6321 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
6322 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
6323 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
6324 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
6325 * sysdeps/sh/memcpy.S (memcpy): Likewise.
6326 * sysdeps/sh/memset.S (memset): Likewise.
6327 * sysdeps/sh/strlen.S (strlen): Likewise.
6328 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
6329 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
6330 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
6331 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
6332 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
6333 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
6334 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
6335 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
6336 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
6337 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
6338 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
6339 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
6340 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6341 * sysdeps/x86_64/memset.S (memset): Likewise.
6342 * sysdeps/x86_64/strcat.S (strcat): Likewise.
6343 * sysdeps/x86_64/strchr.S (strchr): Likewise.
6344 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
6345 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
6346 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
6347 * sysdeps/x86_64/strlen.S (strlen): Likewise.
6348 * sysdeps/x86_64/strspn.S (strspn): Likewise.
6349 * string/string-inlines.c: Move...
6350 * sysdeps/generic/string-inlines.c: ...here.
6351 (__memcpy_g, __strchr_g): Remove.
6352 (__NO_INLINE__): Define before including <string.h>,
6353 undefine after. Include bits/string.h and bits/string2.h.
6354 * sysdeps/i386/i486/string-inlines.c: New file.
6355 * sysdeps/i386/string-inlines.c: New file.
6356 * sysdeps/i386/i486/Versions: Remove.
6357 All GLIBC_2.1.1 symbols moved...
6358 * sysdeps/i386/Versions (libc): ...here.
6360 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6362 * sysdeps/i386/fpu/Makefile: New file.
6363 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
6364 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6365 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6366 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
6369 2003-04-28 Ulrich Drepper <drepper@redhat.com>
6371 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
6372 * nscd/nscd_getpw_r.c: Likewise.
6373 * nscd/nscd_gethst_r.c: Likewise.
6375 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6377 * nscd/pwdcache.c: Initialize .version element in result.
6378 * nscd/grpcache.c: Likewise.
6379 * nscd/pwdcache.c: Likewise.
6381 2003-04-27 Andreas Schwab <schwab@suse.de>
6383 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
6386 2003-04-27 Andreas Schwab <schwab@suse.de>
6388 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
6390 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6392 * nscd/connections.c (client_queued): New variable.
6393 (nscd_run): Revamp the loop. Don't call poll except for cleanup
6394 threads. Keep track of the number of delays caused because of busy
6396 * nscd/nscd.h: Declare client_queued.
6397 * nscd/nscd_stat.c: Transmit and print client_queued information.
6399 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
6401 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
6402 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
6404 2003-04-26 Ulrich Drepper <drepper@redhat.com>
6406 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
6407 tracking of freed memory in static TLS block.
6408 * elf/Makefile: Add rules to build and run tst-tls13.
6409 * elf/tst-tls13.c: New file.
6410 * elf/tst-tlsmod13.c: New file.
6411 * elf/tst-tlsmod13a.c: New file.
6413 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
6415 * elf/dl-reloc.c: Pretty printing.
6417 2003-04-26 Roland McGrath <roland@redhat.com>
6419 * Makerules ($(common-objpfx)shlib.lds): New target.
6420 (common-generated): Add it.
6421 (build-shlib, build-module): Use that instead of generating every time.
6422 ($(common-objpfx)libc.so): Depend on it.
6423 (lib%.so rule): Likewise.
6424 (build-module-helper-objlist): Remove %.lds.
6425 (LDSEDCMD-c.so): Variable removed.
6426 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
6427 Depend on $(common-objpfx)shlib.lds.
6428 * dlfcn/Makefile ($(test-modules)): Likewise.
6430 2003-04-26 Roland McGrath <roland@frob.com>
6432 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
6434 2003-04-26 Andreas Schwab <schwab@suse.de>
6436 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
6438 2003-04-25 Ulrich Drepper <drepper@redhat.com>
6440 * nscd/cache.c (cache_search): Keep track of how many chain links
6441 we searched and update table statistics.
6442 (cache_add): Keep track of how many values are in the table.
6443 (prune_cache): Likewise. Keep track of locking success.
6444 Print messages about removed entries in separate pass.
6445 * nscd/connections.c (handle_request): Don't print debug message here.
6446 The caller will do it. Keep track of locking success.
6447 (nscd_run): Print debug message. Also print PID of the client process.
6448 * nscd/nscd.c (start_time): New variable.
6449 (main): Remember start time.
6450 * nscd/nscd.h: Declare start_time.
6451 (struct database): Add more members for new statistics.
6452 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
6455 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
6457 2003-04-22 Jakub Jelinek <jakub@redhat.com>
6459 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
6460 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
6461 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
6463 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
6464 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
6465 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
6466 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
6469 2003-04-24 Ulrich Drepper <drepper@redhat.com>
6471 * nss/getent.c: Implement alternative host database lookup via
6474 * include/ifaddrs.h: New file.
6475 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
6477 * resolv/netdb.h: ...here.
6478 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
6479 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6480 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
6483 2003-04-24 Roland McGrath <roland@redhat.com>
6485 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
6487 2003-04-24 Jakub Jelinek <jakub@redhat.com>
6489 * elf/dl-reloc.c (allocate_static_tls): Rename to...
6490 (_dl_allocate_static_tls): ... this function. No longer static.
6491 (CHECK_STATIC_TLS): Adjust.
6492 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
6493 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
6494 Add SYM_MAP argument.
6495 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
6496 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
6497 TLS relocs here. #ifdef out relocs which never appear in
6498 .gnu.conflict section from dl-conflict.c processing.
6499 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6500 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
6502 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
6503 out relocs which never appear in .gnu.conflict section from
6504 dl-conflict.c processing.
6505 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6506 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6507 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6508 Use r_type in RESOLVE macro.
6510 2003-04-23 Ulrich Drepper <drepper@redhat.com>
6512 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
6513 NULL. Remove code made redundant by this assumption.
6514 (__yp_unbind): Add call to free. Adjust all callers.
6516 * nis/ypclnt.c (yp_all): Free the dom_binding object after
6519 * grp/initgroups.c (getgrouplist): Don't copy too much into the
6520 user buffer if more groups are found than fit into it.
6522 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
6525 2003-04-23 Jakub Jelinek <jakub@redhat.com>
6527 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
6528 not rc == errno. Use extend_alloca.
6530 * elf/tst-tls12.c (main): Fix declaration.
6531 * elf/tst-tls10.c (dummy): Make hidden instead of static.
6532 * elf/tst-tlsmod7.c (dummy): Likewise.
6533 * elf/tst-tlsmod8.c (dummy): Likewise.
6534 * elf/tst-tlsmod9.c (dummy): Likewise.
6536 2003-04-22 Roland McGrath <roland@redhat.com>
6538 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
6539 (open_not_cancel): Make last argument non-optional.
6540 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
6541 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6542 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6544 * include/tls.h: Protect against multiple inclusion.
6546 2003-04-22 Ulrich Drepper <drepper@redhat.com>
6548 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
6549 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
6550 open_socket. Not static anymore.
6551 (nscd_gethst_r): Use __nscd_open_socket.
6552 * nscd/nscd_getgr_r.c (open_socket): Removed.
6553 (nscd_getgr_r): Use __nscd_open_socket.
6554 * nscd/nscd_getpw_r.c (open_socket): Removed.
6555 (nscd_getpw_r): Use __nscd_open_socket.
6557 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
6558 * nscd/connections.c (handle_request): Add cast to avoid warning.
6560 2003-04-21 Ulrich Drepper <drepper@redhat.com>
6562 * signal/sigfillset.c: Moved to...
6563 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
6564 do not set the corresponding bit.
6566 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
6568 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
6569 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
6570 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
6571 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
6572 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
6574 2003-04-20 Ulrich Drepper <drepper@redhat.com>
6576 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
6577 first syscall parameter to const char*.
6579 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6581 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
6583 * configure.in: Add AC_PROG_CXX.
6584 * config.make.in (CXX): Define.
6586 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
6587 __len to size_t to avoid warnings.
6589 2003-04-18 Jes Sorensen <jes@wildopensource.com>
6591 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
6593 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6595 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6597 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
6598 UNREGISTER_ATFORK if d == NULL.
6600 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
6601 * dirent/dirent.h: Likewise.
6602 * dlfcn/dlfcn.h: Likewise.
6603 * grp/grp.h: Likewise.
6604 * iconv/iconv.h: Likewise.
6605 * io/fcntl.h: Likewise.
6606 * io/ftw.h: Likewise.
6607 * libio/stdio.h: Likewise.
6608 * misc/sys/mman.h: Likewise.
6609 * misc/sys/select.h: Likewise.
6610 * misc/sys/syslog.h: Likewise.
6611 * misc/sys/uio.h: Likewise.
6612 * posix/spawn.h: Likewise.
6613 * posix/unistd.h: Likewise.
6614 * posix/sys/wait.h: Likewise.
6615 * pwd/pwd.h: Likewise.
6616 * resolv/netdb.h: Likewise.
6617 * rt/aio.h: Likewise.
6618 * shadow/shadow.h: Likewise.
6619 * signal/signal.h: Likewise.
6620 * socket/sys/socket.h: Likewise.
6621 * stdlib/stdlib.h: Likewise.
6622 * streams/stropts.h: Likewise.
6623 * string/string.h: Likewise.
6624 * sysdeps/gnu/utmpx.h: Likewise.
6625 * sysvipc/sys/msg.h: Likewise.
6626 * termios/termios.h: Likewise.
6627 * time/time.h: Likewise.
6628 * wcsmbs/wchar.h: Likewise.
6629 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
6631 * misc/daemon.c: Likewise.
6632 * sysdeps/generic/backtracesymsfd.c: Likewise.
6633 * sysdeps/generic/check_fds.c: Likewise.
6634 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
6635 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
6636 * sysdeps/generic/not-cancel.h: New file.
6637 * csu/Makefile (distribute): Add not-cancel.h.
6638 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
6639 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
6640 for assert.c and assert-perr.c to include <fatal-prepare.h>.
6641 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
6643 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
6644 errno and unlink first.
6646 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
6648 2003-04-18 Ulrich Drepper <drepper@redhat.com>
6650 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
6651 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
6653 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6655 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
6657 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
6658 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
6661 * signal/Makefile (tests): Add tst-sigsimple.
6662 * signal/tst-sigsimple.c: New file.
6664 2003-04-16 Jakub Jelinek <jakub@redhat.com>
6666 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
6668 (tests): Add tst-tls1[0-2].
6669 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
6670 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
6671 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
6672 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
6673 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
6674 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
6675 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
6676 * elf/tst-tls10.c: New test.
6677 * elf/tst-tls11.c: New test.
6678 * elf/tst-tls12.c: New test.
6679 * elf/tst-tls10.h: New file.
6680 * elf/tst-tlsmod7.c: New file.
6681 * elf/tst-tlsmod8.c: New file.
6682 * elf/tst-tlsmod9.c: New file.
6683 * elf/tst-tlsmod10.c: New file.
6684 * elf/tst-tlsmod11.c: New file.
6685 * elf/tst-tlsmod12.c: New file.
6687 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6689 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
6690 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
6691 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
6693 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6695 * posix/regex.h: Include <sys/types.h>.
6697 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
6698 The signal number must be checked.
6699 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6700 The signal number must be checked [PR libc/5004].
6702 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
6703 don't do anything fancy.
6705 * sysdeps/generic/bits/libc-lock.h: Define
6706 __rtld_lock_define_initialized_recursive.
6708 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
6709 contacting nscd if NOT_USENSCD_NAME > 0.
6710 * nss/nsswitch.c (__nss_disable_nscd): New function.
6711 * nss/nsswitch.h: Declare it.
6712 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
6713 * nscd/nscd.c (main): Call __nss_disable_nscd.
6715 2003-04-16 Ulrich Drepper <drepper@redhat.com>
6717 * stdio-common/perror.c (perror): We don't need to set the offset
6718 to _IO_pos_bad, this is how streams are initialized.
6720 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
6721 (time_output): If necessary, allocate new buffer for .name string if
6722 padding is required.
6724 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
6725 before copying. This might leave holes in the list. Adjust
6726 pointers if necessary.
6727 (netlink_receive): Allocate only one block.
6728 (free_netlink_handle): Adjust appropriately.
6729 (getifaddrs): Lots of cleanups.
6731 * string/test-strncpy.c (do_one_test): Mark start and stop as
6733 * string/test-memchr.c: Likewise.
6734 * string/test-memcmp.c: Likewise.
6735 * string/test-memcpy.c: Likewise.
6736 * string/test-memmove.c: Likewise.
6737 * string/test-memset.c: Likewise.
6738 * string/test-strcat.c: Likewise.
6739 * string/test-strchr.c: Likewise.
6740 * string/test-strcmp.c: Likewise.
6741 * string/test-strcpy.c: Likewise.
6742 * string/test-strlen.c: Likewise.
6743 * string/test-strncmp.c: Likewise.
6744 * string/test-strpbrk.c: Likewise.
6745 * string/test-strrchr.c: Likewise.
6746 * string/test-strspn.c: Likewise.
6748 2003-04-15 Roland McGrath <roland@redhat.com>
6750 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
6752 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
6753 INTUSE(__register_frame_info_bases).
6755 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6757 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
6758 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
6759 AT_SYSINFO_EH_FRAME. Adjust string width.
6760 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
6761 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
6762 Add _dl_sysinfo_eh_frame field.
6763 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
6764 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
6766 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
6767 if _dl_sysinfo_eh_frame is non-NULL.
6769 * Makeconfig (gnulib): Add -lgcc_eh.
6771 * config.h.in: Define HAVE_FORCED_UNWIND.
6773 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6775 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
6776 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
6778 2003-04-15 Jakub Jelinek <jakub@redhat.com>
6780 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
6781 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
6782 against local symbol in conflict processing.
6784 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6786 * sysdeps/powerpc/bits/atomic.h
6787 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
6788 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
6790 (__arch_compare_and_exchange_val_32_acq): Define.
6791 (atomic_compare_and_exchange_val_acq): Define.
6793 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6795 * include/atomic.h: Pretty printing.
6797 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6799 * stdio-common/vfscanf.c: Add casts to avoid warnings.
6801 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6803 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
6804 * sysdeps/x86_64/bits/atomic.h: Likewise.
6806 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6808 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
6809 POPARGS_1 to emit labels for the mov instructions.
6811 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6813 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
6815 2003-04-14 Roland McGrath <roland@redhat.com>
6817 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
6820 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
6822 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6824 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
6825 position. Reported by jreiser@BitWagon.com.
6827 2003-04-13 Ulrich Drepper <drepper@redhat.com>
6829 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
6830 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
6831 * sysdeps/generic/unwind-dw2.c: Likewise.
6832 * sysdeps/generic/unwind-pe.h: Likewise.
6834 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
6836 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
6837 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
6838 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
6839 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
6840 (mcontext_t): Make it match the 32-bit mips kernel in o32.
6841 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
6842 the mips and mips64 headers.
6843 (struct user): Port to n32/n64.
6845 2003-04-12 Ulrich Drepper <drepper@redhat.com>
6847 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
6850 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
6851 __ASSUME_VSYSCALL is defined don't add restorer.
6852 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6853 __ASSUME_VSYSCALL for 2.5.53.
6855 2003-04-11 Ulrich Drepper <drepper@redhat.com>
6857 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
6858 Remove HAVE_CANCELBUF code. Replace with code using the new
6859 initializers for unwind-based cleanup handling.
6860 * sysdeps/generic/unwind.h: Update from latest gcc version.
6861 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
6862 places to allow unwind data generation.
6863 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
6864 * sysdeps/x86_64/bits/setjmp.h: Likewise.
6865 * sysdeps/sh/bits/setjmp.h: Likewise.
6866 * sysdeps/powerpc/bits/setjmp.h: Likewise.
6867 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
6868 * sysdeps/alpha/bits/setjmp.h: Likewise.
6870 2003-04-11 Roland McGrath <roland@redhat.com>
6872 * csu/tst-empty.c: New file.
6873 * csu/Makefile (tests, tests-static): Add it.
6875 2003-04-11 Jakub Jelinek <jakub@redhat.com>
6877 * string/test-strcmp.c (do_random_tests): Test whether return value
6878 has been promoted to wordsize if the ABI requires caller to do so.
6879 * string/test-strncmp.c (do_random_tests): Likewise.
6880 * string/test-memcmp.c (do_random_tests): Likewise.
6882 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
6885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6886 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
6887 is not defined, but the prctl constants are.
6889 * string/tester.c (test_strcmp): Fix a typo.
6891 2003-04-09 Ulrich Drepper <drepper@redhat.com>
6893 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
6894 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
6896 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6898 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
6900 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
6902 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
6904 * sysdeps/mips/mips64/memset.S: Likewise.
6905 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
6906 Use t0 instead of t4 as temporary.
6908 2003-04-07 Ulrich Drepper <drepper@redhat.com>
6910 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
6911 feof_unlocked instead of feof.
6912 (add_dir): Ignore trailing whitespace.
6914 2003-04-07 Jakub Jelinek <jakub@redhat.com>
6916 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
6917 sum of SIZE1 and SIZE2 arguments.
6919 2003-04-06 Ulrich Drepper <drepper@redhat.com>
6921 * iconv/iconv_prog.c (process_block): Don't print message about
6922 invalid input if the -c option is used.
6923 (main): Correctly append IGNORE string for -c option.
6925 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6927 * sysdeps/sh/bits/atomic.h: Moved to ...
6928 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
6929 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
6931 (atomic_bit_set, atomic_bit_test_set): Likewise.
6932 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
6934 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6936 2003-04-06 Roland McGrath <roland@redhat.com>
6938 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
6939 restoration as done for setcontext yesterday.
6941 2003-04-06 Jakub Jelinek <jakub@redhat.com>
6943 * elf/rtld.c: Revert 2003-03-14 change.
6944 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
6945 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
6947 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6949 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
6951 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6952 Always initialize *signgamp before returning an error.
6954 2003-04-05 Roland McGrath <roland@redhat.com>
6956 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
6957 below the stack pointer even if switching to the same context we are
6960 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6962 * catgets/gencat.c (read_input_file): Make sure that \n is not
6963 alone on the line before testing for continuation.
6965 * math/test-tgmath.c (compile_test): Initialize c.
6967 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
6969 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
6970 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
6971 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
6973 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
6974 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
6975 structure on n32 as well.
6976 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
6977 data types on n32 and n64.
6979 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6981 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
6984 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
6985 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
6986 instead of __register_atfork.
6988 2003-04-05 Jakub Jelinek <jakub@redhat.com>
6990 * stdio-common/reg-printf.c (__register_printf_function): Calloc
6991 instead of malloc __printf_arginfo_table and __printf_function_table.
6992 Reported by John Reiser <jreiser@BitWagon.com>.
6994 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
6996 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
6997 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
6999 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
7002 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
7004 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
7007 2003-04-03 Roland McGrath <roland@redhat.com>
7009 * configure.in: Fix up use of compilation flags to match the build:
7010 For .s files, $ASFLAGS;
7011 For .S files, $CPPFLAGS $ASFLAGS;
7012 For .c files, $CFLAGS $CPPFLAGS;
7013 when linking, add $LDFLAGS.
7014 * configure: Regenerated.
7016 2003-04-03 Jakub Jelinek <jakub@redhat.com>
7018 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
7019 for atomic_compare_and_exchange_bool_acq failure.
7021 2003-04-03 Ulrich Drepper <drepper@redhat.com>
7023 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
7024 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
7025 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
7026 Remove declaration of pthread_atfork.
7028 2003-04-02 Ulrich Drepper <drepper@redhat.com>
7030 * locale/iso-639.def: Add many more languages from the current ISO 639.
7032 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
7033 * sysdeps/generic/semtimedop.c: New file.
7034 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
7035 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
7036 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7037 * sysvipc/Makefile (routines): Add semtimedop.
7038 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
7039 * sysvipc/sys/sem.h: Declare semtimedop.
7041 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
7043 * configure.in: Check for __register_frame_info in both
7045 * configure: Regenerated.
7047 2003-04-01 Roland McGrath <roland@redhat.com>
7049 * scripts/abilist.awk: Allow dots in soname suffix.
7051 * scripts/abilist.awk (emit): Fix bailout condition.
7053 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7055 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
7058 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
7059 register as input to asm.
7061 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7063 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
7065 2003-04-01 Andreas Jaeger <aj@suse.de>
7067 * configure.in: Output as/ld as name if version is too old.
7069 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
7071 * configure.in: Don't require an installed C library in the test
7072 for ".set" assembler support.
7074 2003-03-31 Roland McGrath <roland@redhat.com>
7076 * signal/tst-sigset.c: New file.
7077 * signal/Makefile (tests): Add it.
7079 2003-03-31 Ulrich Drepper <drepper@redhat.com>
7081 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
7082 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
7083 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
7084 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
7085 (__SIGRTMAX): Adjust accordingly.
7086 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
7087 second compatibility symbol set.
7088 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
7090 2003-03-31 Andreas Schwab <schwab@suse.de>
7092 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
7094 (atomic_decrement_and_test): Fix test.
7096 2003-03-31 Jakub Jelinek <jakub@redhat.com>
7098 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
7099 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
7100 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
7101 * sysdeps/sparc/sparc32/atomicity.h: Removed.
7102 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
7103 * sysdeps/sparc/sparc64/atomicity.h: Removed.
7105 2003-03-30 Roland McGrath <roland@redhat.com>
7107 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
7109 * intl/po2test.sed: Anchor substitution regexps to fix last change.
7111 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
7113 * intl/po2test.sed: Unify the transformations for msgid and msgstr
7114 and remove a useless s/// command.
7116 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7118 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
7119 directive into empty .prologue region to ensure that call-chain
7120 is terminated even for the first instruction.
7122 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
7123 to terminate call-chain right from the get-go.
7125 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
7126 stop bit between compare & branch.
7128 2003-03-29 Ulrich Drepper <drepper@redhat.com>
7130 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
7131 point correctly [PR libc/4993].
7133 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
7134 netlink_open calls if netlink is known to not be available.
7136 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
7138 * configure.in: Add mips64* support.
7139 * sysdeps/mips/bits/endian.h: Make it bi-endian.
7140 * sysdeps/mips/mipsel/bits/endian.h: Removed.
7141 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
7142 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
7143 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
7144 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
7145 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
7146 * sysdeps/mips/Implies: Moved wordsize-32 to...
7147 * sysdeps/mips/mips32/Implies: New file.
7148 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
7150 (ret, PSEUDO_END): Moved past END.
7151 (PSEUDO): Moved to...
7152 * sysdeps/unix/mips/mips32/sysdep.h: New file.
7153 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
7154 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
7155 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
7156 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
7157 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
7159 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
7162 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
7164 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
7165 * inet/test-ifaddrs.c: Allow AF_PACKET.
7166 * sysdeps/unix/sysv/linux/kernel-features.h: Add
7167 __ASSUME_NETLINK_SUPPORT.
7169 2003-03-28 Ulrich Drepper <drepper@redhat.com>
7171 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
7173 2003-03-26 H.J. Lu <hjl@gnu.org>
7175 * elf/vismod.h (getvarlocal1): Return const char **.
7176 (getvarinmod1): Likewise.
7177 (getvaritcpt1): Likewise.
7178 (getvarlocal2): Likewise.
7179 (getvarinmod2): Likewise.
7180 (getvaritcpt2): Likewise.
7181 (getvaritcpt3): Likewise.
7182 * elf/vismain.c (do_test): Adjusted.
7183 * elf/vismod1.c (getvarlocal1): Return address.
7184 (getvarinmod1): Likewise.
7185 (getvaritcpt1): Likewise.
7186 * elf/vismod2.c (getvarlocal2): Likewise.
7187 (getvarinmod2): Likewise.
7188 (getvaritcpt2): Likewise.
7189 * elf/vismod3.c (getvaritcpt3): Likewise.
7191 2003-03-28 Roland McGrath <roland@redhat.com>
7193 * elf/vismain.c (do_test): Print both addresses when they don't match.
7195 * scripts/abilist.awk: If given -v filename_regexp and/or -v
7196 libname_regexp when parsing names, then produce output only
7197 for those matching the given regexps. In combine mode, save all
7198 stanzas for a final sorting by stanza header at the end.
7199 Emit a blank line between stanzas.
7201 * scripts/abilist.awk: When given -v combine=1, do parse_names and
7202 emit a single output stream with lib name in stanza header lines.
7204 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
7206 2003-03-27 Roland McGrath <roland@redhat.com>
7208 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
7209 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
7211 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7213 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7214 Return old value. Make asm output reg constraint earlyclobber.
7216 (__arch_compare_and_exchange_8_acq): ... this.
7217 (__arch_compare_and_exchange_val_16_acq):
7218 Return old value. Make asm output reg constraint earlyclobber.
7220 (__arch_compare_and_exchange_16_acq): ... this.
7221 (__arch_compare_and_exchange_val_32_acq):
7222 Return old value. Make asm output reg constraint earlyclobber.
7224 (__arch_compare_and_exchange_32_acq): ... this.
7225 (__arch_compare_and_exchange_val_64_acq):
7227 (__arch_compare_and_exchange_64_acq): ... this.
7228 (atomic_exchange_and_add): Use local variables and
7229 __arch_compare_and_exchange_val_64_acq.
7230 (atomic_add): Likewise.
7231 (atomic_add_negative, atomic_add_zero): Use local variables.
7233 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
7235 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
7237 2003-03-27 Ulrich Drepper <drepper@redhat.com>
7239 * Makefile: Remove libmd5crypt goal.
7241 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7243 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
7244 special handling of relocations against local symbols.
7246 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
7248 * sysdeps/powerpc/bits/atomic.h
7249 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
7250 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
7251 Define PPC64 specific version.
7252 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
7253 Change (mem) constraint to "b".
7254 [__powerpc64__] (__arch_atomic_exchange_and add_64):
7255 Replace addi with add. Change (value) contraint to "r".
7256 Change (mem) constraint to "b".
7257 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
7258 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
7259 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
7260 (__arch_atomic_decrement_if_positive_32): New macro.
7261 (atomic_decrement_if_positive): Use __arch* macros.
7263 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7265 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7267 2003-03-27 Roland McGrath <roland@redhat.com>
7269 * scripts/rpm2dynsym.sh: New file.
7270 * Makefile (distribute): Add it.
7272 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7274 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
7275 ar.unat before returning. Add missing .mem.offset directives
7276 to ensure file gets assembled without warnings.
7277 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7279 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7281 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
7282 Return -1 instead of 0 if clock_getres failed.
7284 2003-03-27 Roland McGrath <roland@redhat.com>
7286 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
7287 header lines and write out foo.symlist files for each foo.so.NN listed.
7289 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
7290 This symbol is exported, and we don't want to hide it.
7291 Add libc_hidden_proto instead.
7292 (_IO_file_jumps): Add libc_hidden_proto.
7293 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
7295 * libio/fileops.c (_IO_file_jumps): Likewise.
7296 * libio/stdfiles.c: Don't use INTUSE on them.
7297 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7298 * libio/iofopen.c (__fopen_internal): Likewise.
7299 * libio/freopen.c (freopen): Likewise.
7300 * libio/freopen64.c (freopen64): Likewise.
7301 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7303 * Makerules (check-abi) [$(enable-check-abi) = warn]:
7304 Ignore exit status from diff.
7305 * configure.in (enable_check_abi): Document possible value "warn".
7306 Change default to no for now.
7307 * configure: Regenerated.
7309 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
7310 macro calls and a #include <stub-tag.h> at the end.
7311 * Makerules ($(objpfx)stubs): Tweak sed commands.
7313 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
7314 caller column for *xattr syscalls, since they are in sysdeps/generic.
7316 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
7317 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
7319 2003-03-26 Roland McGrath <roland@redhat.com>
7321 * Makerules (check-abi-config): Use /thread instead of /tls when
7322 use-thread and not just use-tls is set.
7324 * Makerules (update-abi): Put quotes around $(update-abi-config).
7326 * elf/Makefile (check-abi): Depend on check-abi-ld.
7327 (update-abi): Depend on update-abi-ld.
7329 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7331 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
7332 do not check for errors (unless testing for 32bit variant).
7333 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
7335 2003-03-27 Philip Blundell <philb@gnu.org>
7337 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
7338 unconditional mov. Remove nop.
7340 * sysdeps/unix/sysv/linux/kernel-features.h
7341 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
7342 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
7343 when __ASSUME_VFORK_SYSCALL is defined.
7344 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
7345 __ASSUME_MMAP2_SYSCALL.
7346 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
7347 __ASSUME_REALTIME_SIGNALS.
7349 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7351 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
7352 only if DL_NO_COPY_RELOCS is not defined.
7353 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
7355 2003-03-26 Roland McGrath <roland@redhat.com>
7357 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
7358 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
7359 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
7360 (sysdep_routines): Add stub-syscalls.
7361 ($(objpfx)stub-syscalls.c): New target.
7362 (generated): Add stub-syscalls.c.
7364 * tls.make.c: Also define use-tls according to USE_TLS macro.
7366 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7368 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
7369 no-op padding element.
7370 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7371 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7372 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7373 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7375 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7377 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
7378 condition check for the return value of getgroups32.
7380 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7382 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
7384 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
7385 PSEUDO_END_NOERRNO): Define.
7386 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
7387 Define to PSEUDO_END.
7389 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7391 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
7393 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
7395 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
7396 * iconvdata/bug-iconv4.c: New file.
7397 * iconvdata/Makefile (tests): Add bug-iconv4.
7399 2003-03-25 H.J. Lu <hjl@gnu.org>
7401 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
7403 (_dl_lookup_versioned_symbol): Likewise.
7405 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7407 * csu/tst-atomic.c (do_test): Add some new
7408 atomic_compare_and_exchange_val_acq, atomic_add_zero,
7409 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
7410 * include/atomic.h (atomic_add_negative, atomic_add_zero):
7411 Prefix local variable so that it doesn't clash with the one
7412 in atomic_exchange_and_add.
7413 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
7415 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
7416 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
7417 value into register.
7418 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
7419 Cast newval to long.
7420 * sysdeps/x86_64/bits/atomic.h
7421 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
7423 (atomic_exchange): Cast newvalue to long if sizeof == 8.
7424 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
7425 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7426 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
7428 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
7430 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
7431 bit from backtrace addresses.
7433 2003-03-21 Andreas Schwab <schwab@suse.de>
7435 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
7438 2003-03-25 Roland McGrath <roland@redhat.com>
7440 * config.make.in (enable-check-abi): New variable from configure.
7441 * configure.in (enable_check_abi): New substituted variable,
7442 controlled by --{enable,disable}-check-abi (default yes).
7443 * configure: Regenerated.
7444 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
7445 on check-abi dependency.
7447 2003-03-26 Andreas Schwab <schwab@suse.de>
7449 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
7450 * include/atomic.h: Likewise.
7452 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
7454 2003-03-25 Roland McGrath <roland@redhat.com>
7456 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
7457 (__arch_atomic_exchange_64): New macro.
7458 (atomic_exchange): Use them.
7459 (__arch_atomic_exchange_and_add_32): New macro.
7460 (__arch_atomic_exchange_and_add_64): New macro.
7461 (atomic_exchange_and_add): Use them.
7462 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
7464 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
7466 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
7468 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
7470 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
7471 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
7472 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7473 to decide whether to add padding.
7474 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7475 to decide whether to add padding.
7476 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
7477 old_kernel_sigaction): Likewise.
7479 2003-03-25 Ulrich Drepper <drepper@redhat.com>
7481 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
7482 atomic_add_zero were supposed to do.
7483 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
7486 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
7487 This matches the new timer implementation.
7488 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
7490 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
7492 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
7493 timer info for what the kernel provides these days.
7494 (struct sigevent): Add _tid field.
7495 Define SIGEV_THREAD_ID.
7496 Remove struct __pthread_attr_s forward declaration.
7497 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
7498 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7499 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7500 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7502 * Versions.def (librt): Add GLIBC_2.3.3.
7504 * abilist/libpthread.abilist: Update for nptl.
7506 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
7508 * inet/netinet/in.h: Add IPPROTO_SCTP.
7510 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7512 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
7514 2003-03-24 Philip Blundell <philb@gnu.org>
7516 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
7517 Remove a1 from clobber list.
7519 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7521 * timezone/antarctica: Update from tzdata2003a.
7522 * timezone/asia: Likewise.
7523 * timezone/australasia: Likewise.
7524 * timezone/europe: Likewise.
7525 * timezone/iso3166.tab: Likewise.
7526 * timezone/northamerica: Likewise.
7527 * timezone/southamerica: Likewise.
7528 * timezone/zone.tab: Likewise.
7530 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
7532 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
7534 2003-03-23 Ulrich Drepper <drepper@redhat.com>
7536 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
7537 unwanted expansion by definining to ret. Patch by Ian Wienand.
7539 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
7540 the parameter description to denote no error checking. Generate
7541 appropriate pseudo asm code.
7542 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
7543 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
7544 getpgrp, and getppid with 'E'.
7545 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
7546 PSEUDO_END_NOERRNO, and ret_NOERRNO.
7547 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7548 * sysdeps/unix/sysdep.h: Likewise.
7549 * sysdeps/unix/alpha/sysdep.h: Likewise.
7550 * sysdeps/unix/sparc/sysdep.h: Likewise.
7551 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
7552 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
7553 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
7554 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7555 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
7556 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7557 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7558 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7559 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7560 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7561 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7563 2003-03-23 Roland McGrath <roland@redhat.com>
7565 * Makeconfig (+includes): Don't use $(last-includes).
7567 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7569 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
7570 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7572 2003-03-23 Jakub Jelinek <jakub@redhat.com>
7574 * sysdeps/alpha/fpu/libm-test-ulps: Update.
7575 * sysdeps/arm/libm-test-ulps: Update.
7576 * sysdeps/hppa/fpu/libm-test-ulps: Update.
7577 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7578 * sysdeps/mips/fpu/libm-test-ulps: Update.
7579 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7580 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7581 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7582 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
7583 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
7584 * sysdeps/s390/fpu/libm-test-ulps: Update.
7585 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7587 2003-03-22 Roland McGrath <roland@redhat.com>
7589 * include/atomic.h: Put parens around all macro arguments.
7590 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
7591 (atomic_compare_and_exchange_val_acq): Use it.
7592 (atomic_compare_and_exchange_bool_acq): Likewise.
7593 (atomic_increment_and_test): Invert sense of test.
7594 (atomic_decrement_and_test): Likewise.
7595 * csu/tst-atomic.c: Update those tests to match.
7597 2003-03-22 Jakub Jelinek <jakub@redhat.com>
7599 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
7600 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
7601 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
7602 __oldval variable in the macro, since it might be macro argument.
7603 (atomic_decrement_if_positive): Initialize __memp, remove setting
7604 of non-existent variable.
7605 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
7606 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
7607 using atomic_compare_and_exchange_val_acq.
7608 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
7609 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7611 (__arch_compare_and_exchange_bool_8_acq): ... this.
7612 (__arch_compare_and_exchange_val_16_acq): Renamed from...
7613 (__arch_compare_and_exchange_bool_16_acq): ... this.
7614 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
7616 (__arch_compare_and_exchange_bool_32_acq): ... this.
7617 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
7619 (__arch_compare_and_exchange_bool_64_acq): ... this.
7620 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
7621 variables types instead of assuming int.
7622 Change prefix of local variables to __arch.
7623 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
7625 (atomic_compare_and_exchange_val_acq,
7626 atomic_compare_and_exchange_bool_acq): Define.
7628 * csu/tst-atomic.c: New test.
7629 * csu/tst-atomic-long.c: New test.
7630 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
7632 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
7634 * sysdeps/s390/Versions: Add trailing newline.
7636 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
7637 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
7639 2003-03-22 Andreas Schwab <schwab@suse.de>
7641 * sysdeps/m68k/fpu/libm-test-ulps: Update.
7643 * sysdeps/m68k/m68020/bits/atomic.h: New file.
7644 * sysdeps/m68k/m68020/atomicity.h: Removed.
7646 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7648 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
7649 data structures and macros. Protect from multiple inclusion.
7651 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
7654 2003-03-21 Andreas Jaeger <aj@suse.de>
7656 * sysdeps/i386/fpu/libm-test-ulps: Update.
7658 * math/libm-test.inc (tgamma_test): Recompute some constants with
7659 36 digits precision.
7660 (lgamma_test): Likewise.
7661 (ccos_test): Likewise.
7662 (ccosh_test): Likewise.
7663 (clog10_test): Likewise.
7664 (csin_test): Likewise.
7665 (csinh_test): Likewise.
7666 (ctan_test): Likewise.
7667 (ctanh_test): Likewise.
7669 2003-03-19 Jakub Jelinek <jakub@redhat.com>
7671 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
7673 2003-03-21 Roland McGrath <roland@redhat.com>
7675 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
7676 constraint to permit non-constant BIT argument.
7677 (atomic_bit_test_set): Likewise.
7678 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
7679 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
7680 For quadword case, use "i" constraint if __builtin_constant_p and < 32
7681 or "r" constraint otherwise.
7683 * configure.in: Move AC_PROG_CC and other program-finding before all
7685 * configure: Regenerated.
7687 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7689 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
7690 unaligned copying of 8-15 bytes. From Chris Demetriou
7691 <cgd@broadcom.com>. Fix label names.
7692 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
7693 change as to memcpy.S.
7694 * sysdeps/mips/memcpy.S: Formatting changes.
7695 * sysdeps/mips/memset.S: Likewise.
7697 2003-03-21 Roland McGrath <roland@redhat.com>
7699 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
7701 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7703 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
7704 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
7706 2003-03-21 Roland McGrath <roland@redhat.com>
7708 * sysdeps/i386/i486/bits/atomic.h
7709 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
7710 version of the macro to avoid compile-time warnings.
7711 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
7712 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
7713 (atomic_increment, atomic_decrement): Likewise.
7715 2003-03-21 Ulrich Drepper <drepper@redhat.com>
7717 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
7718 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7720 2003-03-21 Roland McGrath <roland@redhat.com>
7722 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
7724 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7726 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
7727 atomic_compare_and_exchange_val_rel,
7728 atomic_compare_and_exchange_bool_acq, and
7729 atomic_compare_and_exchange_bool_rel instead of
7730 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
7731 * sysdeps/i386/i486/bits/atomic.h: Define
7732 __arch_compare_and_exchange_val_*_acq instead of
7733 __arch_compare_and_exchange_*_acq.
7734 * sysdeps/x86_64/bits/atomic.h: Likewise.
7735 * sysdeps/ia64/bits/atomic.h: Define
7736 __arch_compare_and_exchange_bool_*_acq instead of
7737 __arch_compare_and_exchange_*_acq.
7738 * sysdeps/powerpc/bits/atomic.h: Likewise.
7739 * sysdeps/s390/bits/atomic.h: Likewise.
7740 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
7741 * malloc/set-freeres.c: Likewise.
7742 * nscd/cache.c: Likewise.
7743 * stdlib/cxa_finalize.c: Likewise.
7744 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7746 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7748 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
7749 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
7750 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
7752 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
7753 into high and low halves on n64.
7754 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7755 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7756 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7758 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7760 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
7761 correct atomic_compare_and_exchange_acq semantics.
7763 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7765 * sysdeps/mips/ieee754.h: Remove excess #endif.
7767 2003-03-20 Roland McGrath <roland@redhat.com>
7769 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
7770 variable. Remove superfluous memory clobber.
7772 * include/atomic.h: Syntax braino fix.
7774 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
7775 in decimal. Don't bail if niced at start. Just check that nice call
7776 bumps the total at all.
7778 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7780 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
7781 including pc, gp, sp and fp, as long long.
7782 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
7783 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
7784 Add gp argument, and set gp in the jmpbuf to it.
7785 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
7787 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7789 * include/atomic.h: Define atomic_exchange and
7790 atomic_decrement_if_positive if not already defined. Add some
7792 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
7793 * sysdeps/x86_64/bits/atomic.h: Likewise.
7794 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
7795 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
7796 atomic_exchange, atomic_exchange_and_add, and
7797 atomic_decrement_if_positive
7799 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7801 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
7802 with a single instruction.
7804 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
7806 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
7808 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
7809 Word before comparing with gotsym. Take reloc_addr argument as
7810 void*. Remove the code added for the compiler to drop any
7811 alignment assumptions.
7813 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7815 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
7816 * include/atomic.h: New file.
7817 * sysdeps/i386/i486/bits/atomic.h: New file.
7818 * sysdeps/x86_64/bits/atomic.h: New file.
7819 * sysdeps/s390/bits/atomic.h: New file.
7820 * sysdeps/sh/bits/atomic.h: New file.
7821 * sysdeps/ia64/bits/atomic.h: New file.
7822 * sysdeps/powerpc/bits/atomic.h: New file.
7823 * sysdeps/generic/bits/atomic.h: New file.
7824 * sysdeps/i386/i486/atomicity.h: Removed.
7825 * sysdeps/x86_64/atomicity.h: Removed.
7826 * sysdeps/s390/s390-32/atomicity.h: Removed.
7827 * sysdeps/s390/s390-64/atomicity.h: Removed.
7828 * sysdeps/ia64/atomicity.h: Removed.
7829 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
7830 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
7831 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
7832 use of macros from atomicity.h to new names and semantics.
7833 * gmon_mcount.c: Likewise.
7834 * malloc/set-freeres.c: Likewise.
7835 * nscd/cache.c: Likewise.
7836 * stdlib/cxa_finalize.c: Likewise.
7837 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7839 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
7841 * sysdeps/mips/ieee754.h: New file, suitable to replace both
7842 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
7843 mips-specific for now.
7845 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7847 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
7848 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
7849 * stdlib/tst-strtod.c: Add test for the bug.
7851 * posix/tst-nice.c (do_test): Remove invalid of return value.
7852 Don't run test if initial level != 0.
7854 2003-03-19 Amos Waterland <apw@us.ibm.com>
7856 * posix/tst-nice.c: New file.
7857 * posix/Makefile (tests): Add tst-nice.
7859 2003-03-18 Roland McGrath <roland@redhat.com>
7861 * abilist: New directory of libfoo.abilist files maintained using
7862 scripts/merge-abilist.awk and "make update-abi" rules.
7863 * Makefile (distribute): Add abilist/*.abilist.
7864 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
7865 Depend on check-abi.
7867 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
7868 * configure: Regenerated.
7870 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
7872 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7874 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
7877 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
7879 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
7881 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7883 * Versions.def: Add GLIBC_2.3.3 for libpthread.
7885 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7887 * sysdeps/generic/libc-start.c [!SHARED &&
7888 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
7890 2003-03-17 Roland McGrath <roland@redhat.com>
7892 * include/ctype.h: Revert last change.
7894 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7896 * argp/tst-argp1.c: Use test-skeleton.c.
7897 * locale/tst-C-locale.c: Likewise.
7899 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
7901 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
7902 * sysdeps/mips/mips64/n64/Implies: New file.
7903 * sysdeps/mips/mips64/n64/Makefile: New file.
7904 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
7905 * sysdeps/mips/mips64/n32/Implies: New file.
7906 * sysdeps/mips/mips64/n32/Makefile: New file.
7907 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
7908 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
7909 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
7910 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
7911 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
7912 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
7913 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
7914 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
7915 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
7916 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
7917 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
7918 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
7919 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
7920 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
7922 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
7923 lib64 for mips64/n64 and lib32 for mips64/n32.
7924 (ldd_rewrite_script): Needed for all mips64 configurations.
7925 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7926 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
7927 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
7929 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
7932 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
7933 asm/unistd.h into asm-unistd.h.
7934 * sysdeps/unix/sysv/linux/mips/configure: Generated.
7935 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
7937 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
7938 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
7941 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
7942 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
7943 long type for registers on n32.
7945 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
7947 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
7948 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
7949 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
7950 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
7951 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
7952 * sysdeps/unix/mips/brk.S: Likewise.
7953 * sysdeps/unix/mips/sysdep.S: Likewise.
7954 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7955 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
7956 * sysdeps/mips/sys/ucontext.h: Likewise.
7957 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
7958 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
7959 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
7960 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7961 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
7962 * sysdeps/mips/mips64/setjmp.S: Likewise.
7963 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
7964 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
7967 2003-03-16 Ulrich Drepper <drepper@redhat.com>
7969 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
7970 not at function level.
7971 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
7973 2003-03-15 Roland McGrath <roland@redhat.com>
7975 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
7976 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
7977 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
7978 * nis/nis_table.c (__create_ib_request): Likewise.
7980 * posix/fnmatch_loop.c: Add casts for signedness.
7981 * nss/nss_files/files-hosts.c: Likewise.
7982 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7983 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
7984 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
7986 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
7987 get errors into the log file.
7988 (libc_cv_broken_visibility_attribute): Likewise.
7989 (libc_cv_broken_alias_attribute): Likewise.
7990 (libc_cv_asm_weak_directive): Likewise.
7991 (libc_cv_need_minus_P): Likewise.
7992 (libc_cv_dot_text): Likewise.
7993 (libc_cv_asm_global_directive): Likewise.
7994 (libc_cv_asm_type_prefix): Likewise.
7995 * configure: Regenerated.
7997 * nscd/cache.c (cache_search): Give first arg type `request_type'.
7998 * nscd/nscd.h: Update decl.
8000 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
8001 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8002 * elf/dl-close.c (_dl_close): Likewise.
8003 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
8004 * io/fts.c (fts_build): Likewise.
8005 * elf/cache.c (add_to_cache): Likewise.
8006 * locale/programs/locarchive.c (show_archive_content): Likewise.
8008 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
8010 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
8012 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
8014 2003-03-15 Ulrich Drepper <drepper@redhat.com>
8016 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
8017 code for most parts.
8019 2003-03-15 Roland McGrath <roland@redhat.com>
8021 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
8022 * sysdeps/unix/sysv/linux/system.c: ... here.
8023 (FORK): Don't #define if already #define'd.
8024 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
8025 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
8026 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
8028 * dlfcn/tst-dlinfo.c: New file.
8029 * dlfcn/Makefile (tests): Add tst-dlinfo.
8030 ($(objpfx)tst-dlinfo): New target.
8032 * dlfcn/dlinfo.c: New file.
8033 * dlfcn/Makefile (libdl-routines): Add it.
8034 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
8035 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
8036 [__USE_GNU] (RTLD_DI_*): New enum constants.
8037 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
8038 * elf/dl-load.c (cache_rpath): New inline function.
8039 (_dl_map_object): Use it.
8040 (_dl_rtld_di_serinfo): New function.
8041 * sysdeps/generic/ldsodefs.h: Declare it.
8042 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8044 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
8045 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
8046 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
8047 (__libc_start_main): Just call the generic one for most of the work.
8049 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
8050 static function by that name instead of BP_SYM (__libc_start_main).
8051 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
8052 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
8053 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
8055 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
8056 Use this macro for extra AT_* cases.
8057 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
8058 New macro, guts from ...
8059 (__aux_init_cache): ... here, function removed.
8060 (DL_PLATFORM_INIT): Don't define this.
8062 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
8063 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
8065 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
8067 2003-03-14 Roland McGrath <roland@redhat.com>
8069 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
8071 2003-03-14 Jakub Jelinek <jakub@redhat.com>
8073 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
8075 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8076 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
8078 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8080 * sysdeps/mips/fpu/bits/mathdef.h: New.
8081 (__NO_LONG_DOUBLE_MATH): Define for o32.
8083 * sysdeps/mips/sys/asm.h: Formatting changes.
8084 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
8085 (CPADD): Define for all of them.
8086 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
8087 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
8088 NARGSAVE): Define per ABI spec.
8089 (END): Don't redefine.
8090 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
8091 LONG_SRAV): Remove duplicate definitions.
8092 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
8093 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
8094 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
8095 (PTR_LA): Define for all 3 ABIs.
8097 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
8098 (elf_machine_matches_host): Prevent linking of o32 and n32
8100 (elf_machine_dynamic): Document assumption on $gp.
8101 (STRINGXP, STRINGXV, STRINGV_): New macros.
8102 (elf_machine_load_address): Use them to stringize PTR_LA and
8104 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
8105 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
8106 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
8107 (__dl_runtime_resolve): Cast the symtab initializer to the
8109 (RTLD_START): Use it. Adjust it for all 3 ABIs.
8110 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
8111 Handle 64-bit R_MIPS_REL composite relocation and accept
8112 R_MIPS_64 relocations to shift addend size to 64 bits.
8113 Document assumption regarding local GOT entries. Document
8114 backward-compatibility departing from the ABI behavior in
8115 applying relocations that reference section symbols, no longer
8116 used. Support relocations to mis-aligned offsets.
8117 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
8119 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
8121 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
8122 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
8123 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
8124 restore_rt functions. Use them.
8126 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
8127 .set mips2 on new abis.
8129 2003-03-13 Ulrich Drepper <drepper@redhat.com>
8131 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
8132 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
8133 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
8134 * sysdeps/posix/pathconf.c: Likewise.
8135 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8136 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
8137 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
8139 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
8142 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8144 * include/gmp.h: Include/gmp-mparam.h.
8145 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
8148 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
8149 ELF_MACHINE_NO_RELA is set.
8150 * elf/rtld.c (dl_main): No prelink support for REL-only.
8152 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
8153 FLAG_MIPS64_LIBN64): Define.
8154 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
8156 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
8157 * sysdeps/mips/memset.S: Likewise.
8158 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
8159 depending on the ABI.
8161 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
8162 Don't .set mips2 on new abi.
8163 (compare_and_swap): Likewise. Support 64-bit longs on n64.
8165 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
8167 2003-03-13 Roland McGrath <roland@redhat.com>
8169 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
8170 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
8172 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
8174 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
8176 * stdlib/fpioconst.c: Likewise.
8177 * stdlib/strtod.c: Likewise.
8179 * sysdeps/mips/add_n.S: Use L macro for local labels.
8180 * sysdeps/mips/addmul_1.S: Likewise.
8181 * sysdeps/mips/lshift.S: Likewise.
8182 * sysdeps/mips/memcpy.S: Likewise.
8183 * sysdeps/mips/memset.S: Likewise.
8184 * sysdeps/mips/mul_1.S: Likewise.
8185 * sysdeps/mips/rshift.S: Likewise.
8186 * sysdeps/mips/sub_n.S: Likewise.
8187 * sysdeps/mips/submul_1.S: Likewise.
8188 * sysdeps/mips/mips64/add_n.S: Likewise.
8189 * sysdeps/mips/mips64/addmul_1.S: Likewise.
8190 * sysdeps/mips/mips64/lshift.S: Likewise.
8191 * sysdeps/mips/mips64/mul_1.S: Likewise.
8192 * sysdeps/mips/mips64/rshift.S: Likewise.
8193 * sysdeps/mips/mips64/sub_n.S: Likewise.
8194 * sysdeps/mips/mips64/submul_1.S: Likewise.
8195 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
8196 conventions. Define END as in sys/asm.h.
8197 * sysdeps/unix/mips/sysdep.S: Likewise.
8198 * sysdeps/unix/mips/wait.S: Likewise.
8199 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8201 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
8202 Cast shifted values that may be too narrow to mp_limb_t.
8203 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
8205 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
8207 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
8208 (__mpn_extract_long_double): Likewise.
8209 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
8210 (__mpn_construct_long_double): Likewise.
8211 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
8212 (__mpn_extract_long_double): Likewise.
8213 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
8214 (__mpn_construct_long_double): Likewise.
8216 2003-03-13 Roland McGrath <roland@redhat.com>
8218 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
8219 entries in the map file match too.
8221 2003-03-13 Guido Guenther <agx@sigxcpu.org>
8223 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
8224 label .Lthread_start since current binutils don't allow branches
8225 to globally visible symbols.
8227 2003-03-13 Jakub Jelinek <jakub@redhat.com>
8229 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
8230 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
8231 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
8232 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
8233 clobbered by the syscall.
8234 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
8235 ASM_ARGS_6): Change constraints from r to index of corresponding
8237 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
8238 ptid and ctid to match kernel.
8239 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
8241 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
8243 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
8244 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
8245 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
8247 2003-03-11 Roland McGrath <roland@redhat.com>
8249 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8250 Check SYM_MAP rather than SYM as definedness check.
8251 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
8252 Don't handle R_PPC64_REL24 reloc.
8253 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8255 * sysdeps/powerpc/powerpc64/dl-machine.h
8256 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
8257 block, so we cover all the TPREL16* flavors without 6 ||s.
8258 [USE_TLS] (elf_machine_tprel): New function.
8259 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
8260 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
8261 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8263 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
8265 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
8266 instead of jalr to invoke subroutine so restoring the $gp register
8269 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
8271 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
8272 to __NR_pread if not defined.
8273 (__NR_pwrite64): Define to __NR_pwrite if not defined.
8275 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8277 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
8278 * sysdeps/unix/sysv/linux/kernel-features.h
8279 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
8282 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8284 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
8285 allocate space even for the trailing '/'.
8286 Reported by John Reiser <jreiser@BitWagon.com>.
8288 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
8289 ASM_CLOBBERS_6): Define.
8290 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
8291 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
8292 to match IA-32 order.
8293 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
8295 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
8297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
8298 Copy extra params for NPTL to registers used in clone syscall.
8300 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8302 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
8303 call names for pread and pwrite.
8305 2003-03-10 Roland McGrath <roland@redhat.com>
8307 * dlfcn/Makefile (libdl-routines): Add dladdr1.
8308 * dlfcn/dladdr1.c: New file.
8309 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
8310 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
8311 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
8312 a const ElfNN_Sym ** to fill in.
8313 * include/dlfcn.h: Update decl. Include <link.h>.
8314 * dlfcn/dladdr.c (dladdr): Update caller.
8315 * malloc/mtrace.c (tr_where): Likewise.
8316 * sysdeps/generic/elf/backtracesyms.c: Likewise.
8317 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8318 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
8319 * Versions.def (libdl): Define GLIBC_2.3.3 set.
8321 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
8323 * sysdeps/unix/Makefile (compile-syscall): New variable.
8324 Pass -g0 to compiler for assembling syscall stubs from stdin.
8326 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
8327 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
8328 Define these to do nothing.
8330 * configure.in: New check for -g on .S files.
8331 * configure: Regenerated.
8332 * config.make.in (have-cpp-asm-debuginfo): New variable.
8333 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
8334 * Makeconfig (ASFLAGS): New variable, if undefined and
8335 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
8336 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
8338 2003-03-09 Roland McGrath <roland@redhat.com>
8340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
8341 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
8343 2003-03-09 Ulrich Drepper <drepper@redhat.com>
8345 * po/fi.po: Update from translation team.
8346 * po/ca.po: Likewise.
8347 * po/da.po: Likewise.
8349 2003-03-08 Ulrich Drepper <drepper@redhat.com>
8351 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
8353 2003-03-07 Ulrich Drepper <drepper@redhat.com>
8355 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
8357 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
8359 2003-03-07 Roland McGrath <roland@redhat.com>
8361 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
8362 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
8364 2003-03-04 Guido Guenther <agx@sigxcpu.org>
8366 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
8367 stubs, we have INLINE_SYSCALL.
8368 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
8371 2003-03-06 Roland McGrath <roland@redhat.com>
8373 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
8374 permanent extent and add a comment about testing its implicit teardown.
8376 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
8378 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
8380 2003-03-05 Ulrich Drepper <drepper@redhat.com>
8382 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
8383 reversed __builtin_expect expectation.
8385 2003-03-05 Roland McGrath <roland@redhat.com>
8387 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
8388 * libio/swscanf.c: Likewise.
8389 * libio/swprintf.c: Likewise.
8391 2003-03-04 Roland McGrath <roland@redhat.com>
8393 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
8394 (elf_machine_rela): Always use RESOLVE_MAP, needed for
8395 R_PPC64_JMP_SLOT as well as TLS cases.
8396 (BIT_INSERT): Move parenthesis where it ought to have been.
8397 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8399 * posix/confstr.c (confstr): Correct STRING_LEN values for
8400 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
8401 break. Reported by Alexandre Julliard <julliard@winehq.com>.
8403 2003-03-04 Jakub Jelinek <jakub@redhat.com>
8405 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
8407 2003-03-04 Ulrich Drepper <drepper@redhat.com>
8409 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
8412 * po/sv.po: Update from translation team.
8414 2003-03-04 Andreas Jaeger <aj@suse.de>
8415 Ulrich Drepper <drepper@redhat.com>
8417 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
8419 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8421 * sysdeps/generic/dl-sysdep.h: Add double include protection.
8423 * po/tr.po: Update from translation team.
8425 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
8426 are holes between the segments. Only call mprotect to set
8427 proection to PROT_NONE if there are some.
8429 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
8432 * include/sched.h (__clone2): Use ... instead of adding all the
8435 2003-03-03 Roland McGrath <roland@redhat.com>
8437 * elf/dl-load.c (struct filebuf): Fix typo in last change.
8439 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
8440 PI_STATIC_AND_HIDDEN.
8442 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
8444 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
8446 * include/sched.h: Update clone2 prototype.
8448 2003-03-03 Andreas Jaeger <aj@suse.de>
8450 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
8451 (llrint): Use it to correct return type.
8454 (llround): Likewise.
8456 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8458 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
8461 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
8462 if ccs parameter isn't valid. Reported by Andreas Schwab.
8464 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8466 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
8467 for system call numbers > 255.
8468 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
8469 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8470 INTERNAL_SYSCALL): Likewise.
8471 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
8472 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
8473 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8474 INTERNAL_SYSCALL): Likewise.
8476 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8478 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
8479 array if it is the initial dtv.
8481 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8483 * po/es.po: Update from translation team.
8484 * po/fr.po: Likewise.
8485 * po/gl.po: Likewise.
8486 * po/sk.po: Likewise.
8487 * po/sv.po: Likewise.
8489 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
8490 * misc/sys/mman.h: Add prototype for remap_file_pages.
8491 * sysdeps/generic/remap_file_pages.c: New file.
8492 * misc/Makefile (routines): Add remap_file_pages.
8493 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
8495 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
8497 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8498 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
8499 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8500 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8501 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
8502 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
8503 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8504 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8506 2003-03-03 Roland McGrath <roland@redhat.com>
8508 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
8509 * sysdeps/ia64/dl-machine.h: Likewise.
8510 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
8512 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
8514 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
8515 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
8516 * locale/Versions (libc: GLIBC_2.3): Move those to ...
8517 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
8518 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
8519 * Versions.def (libc): Add GLIBC_2.3.3 set.
8521 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
8522 * sysdeps/ia64/dl-machine.h: Update decl.
8524 2003-03-03 Andreas Jaeger <aj@suse.de>
8526 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
8528 2003-03-02 Roland McGrath <roland@redhat.com>
8530 * scripts/abilist.awk: Reject data items with apparent 0 size.
8532 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
8533 after foo.* as if it were a duplicate.
8535 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
8537 2003-03-02 Ulrich Drepper <drepper@redhat.com>
8539 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
8541 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
8542 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
8543 if not already defined. Use SYSDEP_GETRES to allow other files to
8544 provide alternative implementations.
8545 * sysdeps/unix/sysv/linux/clock_getres.c: New file
8546 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
8547 if not already defined. Use SYSDEP_GETTIME to allow other files to
8548 provide alternative implementations.
8549 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
8550 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
8551 if not already defined. Use SYSDEP_GETTIME to allow other files to
8552 provide alternative implementations.
8553 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
8554 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
8555 other files to provide alternative implementations. Rearrange
8556 tests for invalid parameters.
8557 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
8558 * sysdeps/unix/sysv/linux/sysconf.c: New file.
8559 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8560 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
8561 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8562 _POSIX_MONOTONIC_CLOCK.
8564 2003-03-02 Roland McGrath <roland@redhat.com>
8566 * scripts/merge-abilist.awk: More checks for bogus input.
8567 Uniquify duplicate config names.
8569 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
8571 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
8572 from dl_reloc_overflow, make global.
8573 (__process_machine_rela): Update callers.
8574 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
8575 Add attribute_hidden to __process_machine_rela decl.
8576 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
8578 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
8581 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
8582 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
8583 (elf_machine_rela): Clean up.
8585 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
8587 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
8588 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
8589 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
8590 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
8591 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
8592 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
8595 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
8596 macros out of [SHARED].
8597 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
8599 * elf/elf.h: Define R_PPC_* relocs for TLS support.
8600 Clean up R_PPC64_* macro definition comments.
8602 * configure.in: In "running configure fragment for" message,
8603 omit $srcdir from the name if we prepended it.
8604 * configure: Regenerated.
8606 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
8607 From Jakub Jelinek <jakub@redhat.com>.
8609 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
8610 which duplicated the O_DIRECT defn.
8612 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8614 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
8617 2003-03-01 Andreas Schwab <schwab@suse.de>
8619 * resolv/Makefile (tests): Don't depend on
8620 $(objpfx)mtrace-tst-leaks when cross compiling.
8622 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
8623 __libc_stack_end through GOT since it is a global symbol.
8625 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8627 * argp/argp.h: Fix a typo.
8628 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
8630 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
8632 2003-02-27 Pat Rankin <rankin@pactechdata.com>
8634 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
8636 (get_subexp): Likewise.
8638 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8640 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
8642 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8644 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
8646 2003-02-27 Roland McGrath <roland@redhat.com>
8648 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
8649 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
8650 repeat it and avoids the test for the common case.
8651 Clean up and fix calculations for TLS relocs.
8653 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
8654 * sysdeps/powerpc/dl-tls.h: ... here.
8655 (TLS_TP_OFFSET): New macro.
8657 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
8659 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8661 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
8662 code generation changes in recent gcc.
8664 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8666 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
8667 Rename argument to avoid symbol conflict.
8669 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
8670 [__USE_GNU] (O_DIRECT): New macro.
8672 2003-02-24 David Mosberger <davidm@hpl.hp.com>
8674 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
8677 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8679 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
8680 initializer anymore now that res_thread_freeres is more careful.
8682 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
8683 except the PKTINFO. Reset interface in PKTINFO.
8684 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
8686 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
8688 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
8689 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
8691 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
8692 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
8693 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
8694 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
8696 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
8697 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
8699 2003-02-25 Andreas Jaeger <aj@suse.de>
8701 * manual/memory.texi (Malloc Tunable Parameters): Clarify
8702 behaviour of M_MMAP_THRESHOLD.
8704 2003-02-25 Roland McGrath <roland@redhat.com>
8706 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
8707 zero, inidicating _res was not initialized yet.
8709 2003-02-24 Ulrich Drepper <drepper@redhat.com>
8711 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
8714 2003-02-24 Roland McGrath <roland@redhat.com>
8716 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
8718 2003-02-23 Roland McGrath <roland@redhat.com>
8720 * sysdeps/posix/pause.c: New file.
8721 * sysdeps/unix/common/pause.c: File removed.
8723 2003-02-23 Ulrich Drepper <drepper@redhat.com>
8725 * sysdeps/generic/bits/confname.h: Remove #ifs.
8727 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
8728 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
8730 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
8733 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8735 * sysdeps/generic/dl-sysdep.c: Avoid warning.
8737 2003-02-22 Roland McGrath <roland@redhat.com>
8739 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
8740 * resolv/Makefile (tests): Add tst-leaks.
8741 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
8742 (tst-leaks-ENV): New variable.
8743 ($(objpfx)mtrace-tst-leaks): New target.
8744 (tests): Depend on it.
8746 * include/libc-internal.h: Declare __libc_thread_freeres.
8748 * Makerules: Fix last change to use $($(subdir)-version) when set.
8750 * Makerules (install-lib-nosubdir): Depend on installed
8751 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
8752 regardless of the libfoo.so target's dependencies.
8754 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
8755 Use that in $(MAKE) calls.
8757 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8759 * catgets/gencat.c (read_input_file): Collision between
8760 auto-assigned numbers and user-defined nubmers is not fatal.
8762 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
8763 * catgets/Makefile: Add rules to run test2.msg test.
8764 * catgets/test2.msg: New file.
8766 * catgets/gencat.c (main): Return 1 if messages have been printed.
8768 * iconv/iconv_prog.c (main): Unify messages.
8770 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
8771 when shifting retval.
8772 * stdlib/tst-strtod.c (main): Add strtold test case.
8773 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8775 2003-02-21 Roland McGrath <roland@redhat.com>
8777 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
8778 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
8779 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
8781 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
8782 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
8783 (res_thread_freeres): New function, on __libc_thread_subfreeres and
8786 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
8787 * malloc/thread-freeres.c: New file.
8788 * malloc/Makefile (aux): Add it.
8789 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
8790 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
8791 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
8793 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
8794 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
8796 2003-02-21 Roland McGrath <roland@frob.com>
8798 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
8800 * iconvdata/Makefile (tests): Add bug-iconv3 only if
8801 [$(have-thread-library) = yes].
8803 2003-02-21 Ulrich Drepper <drepper@redhat.com>
8805 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
8807 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
8808 not chechk for errors (unless testing for 32bit variant).
8809 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
8810 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
8811 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
8813 2003-02-21 Jakub Jelinek <jakub@redhat.com>
8815 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
8816 Check for signed overflow, not unsigned.
8818 * sysdeps/sparc/sparc64/elf/configure.in: New file.
8819 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
8820 Use -fcall-used-g6, not -fcall-used-g7.
8822 2003-02-21 Andreas Jaeger <aj@suse.de>
8824 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
8827 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
8828 clear whole mxcsr but only exceptions.
8830 2003-02-21 Roland McGrath <roland@redhat.com>
8832 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
8833 for libfoo.so that need $(make-link) rules.
8835 2003-02-21 Roland McGrath <roland@frob.com>
8837 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
8838 to match existing struct stat layout in mig protocols.
8840 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8842 * version.h (VERSION): Bump to 2.3.2.
8844 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
8845 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
8847 * sysdeps/generic/Dist: Add sysdep-cancel.h.
8848 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
8849 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
8850 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
8851 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
8852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
8854 * Makefile (distribute): Add include/stubs-prologue.h,
8855 include/gnu/stubs.h, scripts/merge-abilist.awk, and
8856 scripts/extract-abilist.awk.
8858 2003-02-20 Roland McGrath <roland@redhat.com>
8860 * math/Makefile (distribute): Don't add generated files.
8862 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8864 * math/Makefile: Rearrange variable definitions slightly to get
8865 definition in the right order.
8867 2003-02-20 Roland McGrath <roland@redhat.com>
8869 * Makerules: Clean up conditional around include of tls.make.
8870 * Make-dist: Export generating=t to prevent using that.
8871 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
8873 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8875 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
8876 around in search if port IPPORT_RESERVED/2 has been test.
8878 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
8880 * posix/regcomp.c: Remove inclusions.
8881 * posix/regexec.c: Likewise.
8882 * posix/regex_internal.c: Likewise.
8883 * posix/regex_internal.h: Add inclusions here.
8884 * posix/regex.c: Only include sys/types.h before regex.h. Include
8885 regex_internal.h here. Include regex_internal.c before regcomp.c
8886 and regexec.c (might expose more opportunities to the C compiler).
8888 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
8890 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
8891 [!_LIBC] (__wcrtomb): New definition.
8892 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
8893 HAVE_LOCALE_H as well.
8895 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8897 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
8898 patch to check for system call errors.
8900 2002-07-24 Philip Blundell <philb@gnu.org>
8902 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
8905 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8907 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
8908 * sysdeps/unix/sysv/linux/kernel-features.h
8909 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
8913 interprocedure branches.
8914 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
8915 * sysdeps/powerpc/nofpu/Dist: ...here.
8916 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
8917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
8918 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
8919 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
8920 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
8922 2003-02-18 Alan Modra <amodra@bigpond.net.au>
8924 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
8926 2003-02-20 Philip Blundell <philb@gnu.org>
8928 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
8929 missing arguments to INTERNAL_SYSCALL_ERROR_P and
8930 INTERNAL_SYSCALL_ERRNO.
8932 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8934 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
8935 for __ASSUME_32BITUIDS.
8937 2003-02-20 Andreas Schwab <schwab@suse.de>
8939 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
8940 POSIX_MADV_* constants.
8942 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8944 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
8945 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
8946 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
8947 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
8949 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
8951 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
8953 2003-02-16 Roland McGrath <roland@redhat.com>
8955 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
8957 2003-02-19 Ulrich Drepper <drepper@redhat.com>
8959 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
8960 decimal input digits.
8961 * stdlib/tst-strtod.c (main): Add test for strtof bug.
8963 2003-02-18 Ulrich Drepper <drepper@redhat.com>
8965 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
8966 invalid file descriptors and missing access permissions.
8968 2003-02-17 Ulrich Drepper <drepper@redhat.com>
8970 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
8973 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
8974 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
8975 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
8978 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
8979 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8981 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
8982 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
8983 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
8984 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8985 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
8987 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8989 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
8990 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
8991 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
8992 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
8993 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
8994 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
8996 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
8997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
8998 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
8999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
9001 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
9002 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
9003 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
9004 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
9006 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
9008 * nss/getent.c (print_hosts): Print all IP addresses of one host.
9010 2003-02-15 Roland McGrath <roland@frob.com>
9012 * sysdeps/mach/hurd/tls.h: New file.
9013 * sysdeps/mach/hurd/i386/tls.h: New file.
9015 * mach/errsystems.awk: Include <errno.h> in generated output.
9017 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
9018 use target mach-before-compile instead of generated.
9019 (mach-before-compile): New target.
9020 * Makerules: Disable use of tls.make if $(generating) is set.
9021 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
9022 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
9023 mach-shortcuts.h so mach/ generation happens before hurd/.
9025 2003-02-14 Ulrich Drepper <drepper@redhat.com>
9027 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
9028 of demorm correctly if low word is zero.
9029 Reported by Fred J. Tydeman <tydeman@tybor.com>.
9030 * math/libm-test.inc (nextafter_test): New test, but disabled due
9033 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
9034 counter and only call __exit_thread if this is not the last thread.
9036 2003-02-13 Jakub Jelinek <jakub@redhat.com>
9038 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
9039 subtracting map->l_tls_offset.
9041 2003-02-12 Ulrich Drepper <drepper@redhat.com>
9043 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
9044 _CS_GNU_LIBPTHREAD_VERSION.
9045 * posix/conststr.c: Handle these new values.
9046 * posix/getconf.c: Likewise.
9048 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
9049 masking of version index.
9050 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9052 2003-02-11 Ulrich Drepper <drepper@redhat.com>
9054 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
9055 correctly. Reported by Thorsten Kukuk.
9057 2003-02-10 Ulrich Drepper <drepper@redhat.com>
9059 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
9060 _BSD_SOURCE to compiler.
9061 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
9062 Patches by Alan Modra.
9064 2003-02-08 Ulrich Drepper <drepper@redhat.com>
9066 * io/ftwtest.c: Get current working directory before and after the
9067 nftw call and make sure they match.
9069 2003-02-08 Jim Meyering <jim@meyering.net>
9071 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
9072 the current directory, not just when DIR contains a slash.
9073 Reported by Manoj Srivastava.
9075 2003-02-07 Jim Meyering <jim@meyering.net>
9077 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
9078 Include autoconf-recommended block of dirent/NAMELEN-related
9079 definitions and includes. Use NAMELEN throughout, rather than
9081 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
9082 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
9083 (stpcpy): Declare, if necessary.
9084 (mempcpy): Define, if necessary.
9085 [!_LIBC] (__stpcpy, __mempcpy): Define.
9086 [!_LIBC] (LXSTAT, XSTAT): Define.
9087 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
9088 (find_object): Don't use c99-style struct initializer.
9089 Tweak wording in a couple comments.
9091 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9093 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
9095 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
9096 after the trapa instruction.
9097 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
9099 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
9100 (NEED_SYSCALL_INST_PAD): Define.
9101 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
9102 avoid to use definition for the kernel.
9103 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9104 Save and restore the frame pointer.
9105 (SYSCALL_INST_PAD): Define.
9106 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9107 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
9108 after trapa instruction.
9109 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9110 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9112 2003-02-07 Jakub Jelinek <jakub@redhat.com>
9114 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
9115 so that it can have aliases.
9116 * inet/herrno.c (h_errno): Put it into .bss not .data section.
9118 2003-02-07 Ulrich Drepper <drepper@redhat.com>
9120 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
9121 (profile_fixup): Likewise.
9122 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9124 2002-11-24 Robert Love <rml@tech9.net>
9126 * posix/sched.h: Second parameter of sched_setaffinity and
9127 sched_getaffinity is `unsigned int', not `unsigned long'.
9128 * sysdeps/generic/sched_setaffinity.c: Likewise.
9129 * sysdeps/generic/sched_getaffinity.c: Likewise.
9131 2003-02-05 Ulrich Drepper <drepper@redhat.com>
9133 * debug/catchsegv.sh: Fix typo in error messsage.
9134 Reported by John Levon <levon@movementarian.org>.
9136 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
9137 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
9138 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
9139 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9141 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9142 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9144 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
9145 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
9147 2003-02-05 Jim Meyering <jim@meyering.net>
9149 Fix a heap-corrupting bug.
9150 * io/ftw.c: Include <limits.h>.
9151 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
9152 (process_entry): Allocate enough space to hold the resulting
9153 file name. Don't presume that 2*dirbufsize is enough.
9154 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
9155 it is guaranteed to be defined.
9157 2003-02-04 Ulrich Drepper <drepper@redhat.com>
9159 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
9160 * iconvdata/bug-iconv3.c: New file.
9162 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
9164 * sysdeps/unix/sysv/linux/s390/system.c: New file.
9166 2003-02-03 Jakub Jelinek <jakub@redhat.com>
9168 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
9170 * config.h.in (BROKEN_SPARC_WDISP22): Add.
9172 2003-02-03 Ulrich Drepper <drepper@redhat.com>
9174 * sysdeps/i386/i686/memmove.S: New file.
9176 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
9179 Include kernel-features.h
9180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
9181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
9182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
9183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
9185 2003-02-02 Jakub Jelinek <jakub@redhat.com>
9187 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
9189 2003-01-25 Jim Meyering <jim@meyering.net>
9191 * io/ftw.c (object_compare): Compare inode numbers before device
9192 numbers, since the former are much more likely to differ.
9194 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9196 * time/tzfile.c (__tzfile_compute): Change return value type to
9197 void. Adjust return statements.
9198 * include/time.h (__tzfile_compute): Adjust prototype.
9200 2003-02-01 Jim Meyering <jim@meyering.net>
9202 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
9205 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9208 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
9210 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9213 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
9214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9215 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9217 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9219 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9221 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9223 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
9224 back to 2.4.19 for powerpc64.
9225 * sysdeps/unix/sysv/linux/kernel-features.h
9226 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
9227 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
9229 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9231 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
9232 platforms with strange alignment requirements on wchar_t.
9234 2003-01-31 Andreas Schwab <schwab@suse.de>
9236 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
9237 aliases, already added by make-syscalls.sh.
9238 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9239 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9240 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9241 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9242 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9243 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9244 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9245 * sysdeps/unix/inet/syscalls.list: Likewise.
9246 * sysdeps/unix/syscalls.list: Likewise.
9248 2003-01-31 Andreas Schwab <schwab@suse.de>
9250 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
9253 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9255 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
9256 not l to load tls from stack.
9258 2003-01-30 Roland McGrath <roland@redhat.com>
9260 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
9261 null argument before all else.
9262 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9264 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9266 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
9267 Move to RESOLVE protected part of the header.
9268 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
9271 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9273 * stdio-common/Makefile (tests): Add bug15.
9274 (bug15-ENV): Define.
9275 * stdio-common/bug15.c: New file.
9277 2002-10-07 Wolfram Gloger <wg@malloc.de>
9279 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
9280 to foreign sbrk()'s if arena is contiguous. Bug report from
9281 Bruno Haible <bruno@clisp.org>.
9283 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9285 * sysdeps/s390/libc-tls.c: Include stdlib.h.
9287 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9289 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
9292 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9294 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
9296 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
9298 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9300 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9302 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
9303 (allocate_static_tls): ...here. Add __attribute_noinline__.
9304 Don't return on failure.
9305 (_dl_reloc_bad_type): Add __attribute_noinline__.
9306 * elf/do-rel.h (elf_dynamic_do_rel): Add
9307 __attribute__((always_inline)).
9308 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
9309 elf_machine_rel_relative, elf_machine_rela_relative,
9310 elf_machine_lazy_rel): Add prototypes with
9311 __attribute__((always_inline)).
9313 2003-01-29 David Mosberger <davidm@hpl.hp.com>
9315 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
9317 2003-01-29 Roland McGrath <roland@redhat.com>
9319 * configure.in: Barf if configured in $srcdir.
9321 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
9323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9324 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
9326 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
9328 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
9329 clone parameters to match the order used on ia32.
9330 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9332 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
9334 * elf/elf.h: Add new s390 relocs.
9335 * elf/tls-macros.h: Add s390 versions.
9336 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
9337 * sysdeps/s390/dl-tls.h: New file.
9338 * sysdeps/s390/libc-tls.c: New file.
9339 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
9340 relocs for class PLT.
9341 (elf_machine_rela): Handle TLS relocs.
9342 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9343 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
9344 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9345 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
9346 CLONE_CHILD_*TID flags.
9347 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9348 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
9350 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9351 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9352 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
9353 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
9354 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
9356 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9357 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
9358 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9360 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
9361 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
9362 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
9363 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9366 2003-01-28 Ulrich Drepper <drepper@redhat.com>
9368 * sysdeps/unix/common/pause.c (do_pause): New function. Split
9369 from __libc_pause. Implement using sigsuspend.
9370 (__libc_pause): Call do_pause to do the real work.
9372 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
9373 sig_or_mask parameter is is_sig != 0.
9375 2003-01-21 Philip Blundell <philb@gnu.org>
9377 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
9379 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
9381 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
9383 2003-01-27 Ulrich Drepper <drepper@redhat.com>
9385 * stdio-common/bug14.c: Use official name for the locale.
9387 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
9388 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
9389 instead of __libc_cleanup_region_end.
9391 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
9392 as first parameter to __libc_cleanup_region_start.
9394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9395 (__fe_nomask_env): Use __prctl not prctl.
9396 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
9399 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
9401 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
9403 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
9404 wrap-around in test.
9406 2003-01-26 Andreas Schwab <schwab@suse.de>
9408 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
9409 compatibility symbols. Remove INTDEF for __divdi3.
9410 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
9411 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
9412 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
9414 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
9416 2003-01-24 Jakub Jelinek <jakub@redhat.com>
9418 * elf/tls-macros.h: Add SPARC 32-bit definitions.
9419 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
9420 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
9421 for the first half of the header. Include tls.h.
9422 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
9424 (elf_machine_rela): Handle TLS relocs.
9425 * sysdeps/sparc/dl-tls.h: New file.
9427 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
9430 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
9431 * sysdeps/sparc/sparc32/memchr.S: Likewise.
9432 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
9433 * sysdeps/sparc/sparc32/strcat.S: Likewise.
9434 * sysdeps/sparc/sparc32/strchr.S: Likewise.
9435 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
9436 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
9437 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
9438 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9439 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9440 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
9441 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
9442 * sysdeps/sparc/sparc64/strcat.S: Likewise.
9443 * sysdeps/sparc/sparc64/strchr.S: Likewise.
9444 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
9445 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
9446 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
9447 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
9448 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9449 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9451 2003-01-24 Andreas Schwab <schwab@suse.de>
9453 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
9454 elements, and process them backwards.
9455 * elf/Makefile ($(objpfx)tst-array4): New target.
9456 ($(objpfx)tst-array4.out): Likewise.
9457 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
9458 * elf/tst-array4.c: New file.
9459 * elf/tst-array4.exp: Likewise.
9461 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
9463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
9465 2003-01-27 Guido Guenther <agx@sigxcpu.org>
9467 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
9468 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
9469 cancellation handling and handle both __NR_pread64 and __NR_pread.
9470 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9471 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
9472 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
9473 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9474 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
9475 case, use register names consistently.
9477 2003-01-27 Wolfram Gloger <wg@malloc.de>
9479 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
9480 pointer, not of the computed chunk. Bug report from Carlos
9481 O'Donell <carlos@baldric.uwo.ca>.
9483 2003-01-25 Andreas Schwab <schwab@suse.de>
9485 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
9486 addressing to save GOT entries.
9488 2003-01-21 Jakub Jelinek <jakub@redhat.com>
9490 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
9491 inline_syscall1, inline_syscall2, inline_syscall3,
9492 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
9493 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
9494 __attribute__((unused)) to ChEcK.
9496 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9498 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
9499 Fix inline assembler constraints.
9500 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
9503 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
9506 2003-01-20 Segher Boessenkool <segher@koffie.nl>
9508 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
9509 compute the cosine, not the sine, even if x > 0.8.
9511 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9513 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
9514 _nss_nis_setspent. Work around the different prototypes.
9515 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
9516 internal_nis_endrpcent.
9517 (internal_nis_endrpcent): Change return type to void. Change callers.
9518 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
9519 _nss_nis_setpwent. Work around the different prototypes.
9520 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
9521 of the function to...
9522 (internal_nis_endprotoent): ... here. New function.
9523 (internal_nis_setprotoent): Use internal_nis_endprotoent.
9524 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
9525 _nss_nis_setnetent. Work around the different prototypes.
9526 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
9527 of the function to...
9528 (internal_nis_endnetgrent): ... here. New function.
9529 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
9531 2003-01-19 Jim Meyering <jim@meyering.net>
9533 * time/strftime.c: (widen): Merge nearly-identical definitions.
9534 (nl_get_alt_digit) [! defined my_strftime]: Define.
9535 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
9536 _nl_get_alt_digit and _nl_get_walt_digit.
9538 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9540 * time/strftime.c (my_strftime): Handle very large width
9541 specifications for numeric values correctly. Improve checks for
9543 * time/Makefile (tests): Add tst-strftime.
9544 * time/tst-strftime.c: New file.
9546 2003-01-18 Ulrich Drepper <drepper@redhat.com>
9548 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
9549 _nss_nis_sethostent. Work around the different prototypes.
9550 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
9551 _nss_nis_setgrent. Work around the different prototypes.
9552 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
9553 function. Split out from _nss_nis_endetherent.
9554 (internal_nis_setetherent): Use internal_nis_endetherent instead of
9555 duplicating the code.
9556 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
9557 of _nss_nis_setaliasent.
9558 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
9559 internal_nis_endservent code, don't duplicate it.
9561 * inet/rexec.c (rexec_af): Protect socket operations with
9562 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
9563 * inet/rcmd.c (rcmd_af): Likewise.
9565 2003-01-17 Roland McGrath <roland@redhat.com>
9567 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
9568 Add test of value 0.80190127184058835.
9570 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
9572 2003-01-17 Richard Henderson <rth@redhat.com>
9574 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
9575 relocs for class PLT.
9576 * sysdeps/alpha/libc-tls.c: New file.
9577 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
9578 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
9580 2003-01-17 Jakub Jelinek <jakub@redhat.com>
9582 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
9583 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
9586 2003-01-17 Andreas Jaeger <aj@suse.de>
9588 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
9590 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
9592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
9593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
9594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
9595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
9596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
9597 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
9598 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
9601 2003-01-16 Ulrich Drepper <drepper@redhat.com>
9603 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
9604 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
9607 * sysdeps/generic/sysconf.c: Unconditionally implement
9608 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
9609 * sysdeps/posix/sysconf.c: Likewise.
9611 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9613 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
9614 set *err to the returned error, not to REG_ESPACE unconditionally.
9615 (build_word_op): Likewise.
9616 * posix/Makefile (tests): Add bug-regex16.
9617 * posix/bug-regex16.c: New test.
9619 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9621 * elf/dl-load.c (_dl_map_object_from_fd): Use
9622 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
9623 been already initialized.
9625 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
9627 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
9629 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9631 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
9632 allocated too. Reported by Al Viro <aviro@redhat.com>.
9634 2003-01-16 Roland McGrath <roland@redhat.com>
9636 Tweak merged .abilist file format to merge duplicate symbols in
9637 different sets into multi-version stanzas with new "| SET regexp..."
9638 header continuation lines.
9639 * scripts/merge-abilist.awk: Rewritten for new format.
9640 * scripts/extract-abilist.awk: Likewise.
9642 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9644 * nscd/connections.c (nscd_run): Remove bogus return which isn't
9645 necessary with gcc 3.2+.
9646 (nscd_init): Don't use error() to print message, use dbg_log.
9648 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
9649 expected size into state.
9650 (UNPACK_BYTES): Do the reverse.
9651 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
9652 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
9653 Reported by Al Viro <aviro@redhat.com>.
9655 * stdio-common/Makefile (tests): Add bug14.
9656 * stdio-common/bug14.c: New file.
9658 * stdio-common/vfscanf.c: When recognizing multibyte characters in
9659 string reset the byte counter after mbrtowc reported it is not a
9660 partial character. Reported by Al Viro <aviro@redhat.com>.
9662 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
9664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
9665 sysdep-cancel.h, not sysdep.h.
9667 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9669 * nscd/connections.c (nscd_run): Protect accept call with
9672 2003-01-15 Andreas Schwab <schwab@suse.de>
9674 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
9675 (common-generated): Add s-proto-bp.d.
9676 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
9678 * sysdeps/unix/s-proto-bp.S: New file.
9679 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
9680 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
9681 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
9683 2003-01-15 Roland McGrath <roland@redhat.com>
9685 * Makerules: Use -include for tls.make, suppresses warning.
9686 Move gen-as-const-headers rules up so before-compile is set in time.
9687 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
9689 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9691 * nscd/nscd.c (main): Make code to close all file descriptors
9692 faster and more robust.
9694 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
9695 request with one writev call. Protect all read calls with
9697 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9698 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9700 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
9701 Protect writev calls with TEMP_FAILURE_RETRY.
9702 * nscd/grpcache.c: Likewise.
9703 * nscd/pwdcache.c: Likewise.
9705 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
9706 IPv6 address in debug output.
9708 2003-01-14 Roland McGrath <roland@redhat.com>
9710 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
9711 $(objpfx) directories, and get rid of vpath directives. The previous
9712 arrangement resulted in files being written to the source directories
9713 when run in a clean build. Find all .abilist files in $(..)abilist/.
9714 (update-abi-%): Likewise.
9715 (generated): Don't add .symlist files, they'll be intermediates.
9717 * sysdeps/generic/init-first.c: Add a comment.
9719 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
9721 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
9722 #includes and expressions.
9724 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
9725 config list when it already contains cpu-.*-os.* without / part.
9727 * Makerules (sed-remove-dotdot): New variable.
9728 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
9729 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
9730 (check-abi-config): New variable, append /tls or /notls to the tuple.
9731 (check-abi-%): Use that for -v config value.
9732 Find .abilist files in abilist/libfoo.abilist, not in subdir.
9733 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
9735 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9737 * manual/install.texi: Correct description of header preparation for
9738 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
9740 2003-01-14 Guido Guenther <agx@sigxcpu.org>
9742 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
9743 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9744 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
9746 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9749 (INTERNAL_SYSCALL): Make use of ERR parameter.
9750 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9751 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9752 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
9755 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9757 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
9759 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
9761 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
9762 Fix entry for bit 31.
9764 * iconvdata/Makefile: Add rules to build IBM866NAV.
9765 * iconvdata/ibm866nav.c: New file.
9766 * iconvdata/tst-tables.sh: Add IBM866NAV.
9767 * iconvdata/gconv-modules: Add entries for IBM866NAV.
9769 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9771 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
9772 to test void* parameters.
9774 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
9775 source pointer before dereferencing.
9776 (__STRING_SMALLL_GET32): Likewise.
9777 (__memset_gc): Add missing parenthesis around macro arguments.
9778 Patch by Denis Zaitsev <zzz@cd-club.ru>.
9780 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
9781 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9783 2003-01-14 Jakub Jelinek <jakub@redhat.com>
9785 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
9788 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9790 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
9791 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
9793 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
9795 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9797 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
9799 (PSEUDO): ... to here.
9800 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
9802 (PSEUDO): ... to here.
9804 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9806 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
9807 dirent64 instead of struct dirent for dirent. Call readdir64
9810 * locale/programs/locfile.c (siblings_uncached): Use struct
9811 dirent64 instead of struct dirent for other_dentry. Call
9812 readdir64 instead of readdir.
9814 * elf/ldconfig.c (direntry): Change type to struct dirent64.
9815 (search_dir): Use readdir64 instead of readdir.
9816 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
9818 2003-01-12 Roland McGrath <roland@redhat.com>
9820 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
9821 not strtol. The former is usable in ld.so, the latter not.
9823 * include/fcntl.h: Declare __libc_creat.
9825 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
9826 libhurduser-link.so-no-z-defs): New variables.
9828 * malloc/malloc.c: Revert last change.
9829 * malloc/malloc.h (_int_*): Move these decls to ...
9830 * include/malloc.h: ... here. Add attribute_hidden.
9831 (_int_valloc): Declare it too.
9833 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9835 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
9836 search for removed searchlist. Reported by Roland McGrath.
9838 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
9839 given as start file.
9841 * io/ftw.c (ftw_startup): Use correct name in check for symlink
9842 without existing target. Patch by Jim Meyering.
9844 * Makerules (build-shlib-helper): Don't use -z defs linker option
9845 if no-z-defs is defined either.
9847 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9849 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
9852 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9854 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
9855 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9857 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9859 * io/ftwtest-sh: Add test case for relative path with /. at the end.
9861 2003-01-12 Jim Meyering <jim@meyering.net>
9863 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
9864 use the basename if we've already chdir'd into its parent directory.
9866 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9868 * io/ftw.c (process_entry): Use relative path when using chdir()
9869 to change directory after call to ftw_dir.
9870 * io/ftwtest-sh: Add test for relative path argument to nftw()
9871 with FTW_CHDIR option.
9873 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9875 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9877 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
9879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9880 (INTERNAL_SYSCALL): Make use of ERR parameter.
9881 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9882 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9883 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
9886 2003-01-09 Richard Henderson <rth@redhat.com>
9888 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
9889 DTPREL64 and TPREL64 without loadbase applied.
9891 2003-01-09 Richard Henderson <rth@redhat.com>
9893 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
9896 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
9897 * sysdeps/unix/alpha/sysdep.h: ... here.
9898 (PSEUDO_LOADGP): Remove.
9899 (PSEUDO_PROLOGUE): Load GP in non-pic case.
9900 (SYSCALL_ERROR_LABEL): New.
9901 (PSEUDO): Use it in error branch.
9902 (PSEUDO_END): Add $syscall_error label.
9904 2003-01-12 Andreas Jaeger <aj@suse.de>
9906 * math/bits/mathcalls.h: Round is a const function.
9908 2003-01-11 Jim Meyering <jim@meyering.net>
9910 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
9911 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
9912 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
9913 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
9914 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
9915 [!_LIBC] (internal_function, dirent64, MAX): Define.
9916 (__set_errno): Define if not already defined.
9917 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
9918 the basename, not the entire file name.
9919 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
9920 the basename, not the entire file name.
9922 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9924 * string/tester.c (test_strcpy): Disable last added strcpy until
9927 2003-01-11 Philip Blundell <philb@gnu.org>
9929 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
9931 2003-01-11 Andreas Schwab <schwab@suse.de>
9933 * Makerules: Add vpath for %.dynsym and %.so so that the
9934 implicit rule chaining for check-abi works.
9936 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9938 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9941 2003-01-11 Jakub Jelinek <jakub@redhat.com>
9943 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
9944 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
9946 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
9947 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
9948 Ensure libc.so in DT_NEEDED.
9949 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
9950 CHECK_STATIC_TLS before l_tls_offset use.
9951 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9953 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9954 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
9955 Allocate TLS_PRE_TCB_SIZE bytes below result.
9956 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
9957 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
9958 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
9959 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
9960 bytes below result and add tcb_offset to memsz.
9961 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
9962 * sysdeps/ia64/dl-machine.h: Include tls.h.
9963 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
9965 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
9966 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
9967 * sysdeps/ia64/libc-tls.c: New file.
9969 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
9971 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
9972 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
9973 Fix type. Move definition out of #if.
9974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
9975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
9976 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
9977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
9978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
9979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
9981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
9982 ftruncate64, pread64, pwrite64, truncate64 entries.
9983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9984 (INLINE_SYSCALL): New version that supports function call like
9985 syscalls. Add __builtin_expect.
9986 (LOADARGS_n): Add argument size safety checks.
9987 (INTERNAL_SYSCALL): New Macro.
9988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
9989 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
9990 redefinition of elf_fpreg_t and elf_fpregset_t.
9992 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9994 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
9995 simplify test for unloading. If loader of a DSO is unloaded do not
9996 use its scope anymore. Fall back to own scope and adjust opencounts.
9997 Fix several comments.
9998 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
9999 the l_searchlist, not only for l_initfini.
10001 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
10002 dependencies if objects cannot be removed. Remove object with the
10003 definition as not unloadable if necessary.
10005 * elf/reldep6.c: Create relocation dependency before closing the first
10008 2003-01-10 Guido Günther <agx@sigxcpu.org>
10010 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
10011 * sysdeps/unix/mips/brk.S: Likewise.
10012 * sysdeps/unix/mips/pipe.S: Likewise.
10014 2003-01-10 Andreas Schwab <schwab@suse.de>
10016 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
10018 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
10019 are known to have the vfork syscall.
10021 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
10023 * sysdeps/unix/sysv/linux/kernel-features.h
10024 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
10025 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
10026 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
10028 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10030 * elf/Makefile: Add rules to build and run reldep9 test.
10031 * elf/reldep9.c: New file.
10032 * elf/reldep9mod1.c: New file.
10033 * elf/reldep9mod2.c: New file.
10034 * elf/reldep9mod3.c: New file.
10036 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10038 * elf/Makefile: Add rules to build and run nodelete2 test.
10039 * elf/nodelete2.c: New file.
10040 * elf/nodel2mod1.c: New file.
10041 * elf/nodel2mod2.c: New file.
10042 * elf/nodel2mod3.c: New file.
10044 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10046 * posix/test-vfork.c (noop): Add __attribute_noinline__.
10047 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
10048 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
10050 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
10051 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
10052 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
10053 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
10054 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
10056 2003-01-09 Andreas Schwab <schwab@suse.de>
10058 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
10060 2003-01-08 Ulrich Drepper <drepper@redhat.com>
10062 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
10063 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10065 (INTERNAL_SYSCALL_DECL): Define.
10067 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10069 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
10070 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10072 (INTERNAL_SYSCALL_DECL): Define.
10073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10074 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10075 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10076 (INLINE_SYSCALL): Adjust.
10077 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10078 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10079 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10080 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10081 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
10082 add err argument to INTERNAL_SYSCALL* macros.
10083 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
10084 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
10085 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
10086 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
10088 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
10089 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
10090 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
10092 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10094 Unify symbols in user namespace exported by libc.so and libc.a.
10095 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
10096 argp_fmtstream_free, and argp_fmtstream_printf.
10097 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
10098 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
10099 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
10100 argp_fmtstream_point.
10101 * gmon/gmon.c: Don't define write_profiling.
10102 * libio/genops.c: Don't define _cleanup.
10104 * intl/explodename.c (_nl_find_language.c): Mark as static.
10105 * intl/loadinfo.h: Remove _nl_find_language prototype.
10107 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
10108 * libio/libioP.h: Remove declaration.
10110 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
10111 * libio/libioP.h: Remove declaration.
10113 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
10114 * sysdeps/generic/framestate.c: Define STATIC before including
10117 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
10119 2003-01-06 Philip Blundell <philb@gnu.org>
10121 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
10122 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
10124 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
10126 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
10127 (SYSCALL_ERROR): New.
10128 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
10130 (INTERNAL_SYSCALL): Define.
10131 (INLINE_SYSCALL): Use it.
10132 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10133 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
10134 SYSCALL_ERROR in place of __syscall_error.
10136 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10138 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10139 __bswap_32, __bswap_64): Put x into temporary variable
10141 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10142 (inline) functions.
10143 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10144 __bswap_32, __bswap_64): Put x into temporary variable
10146 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10147 (inline) functions.
10148 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
10151 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10153 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
10156 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10158 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
10159 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
10161 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10163 * math/libm-test.inc (significand_test): New function.
10166 2003-01-06 Roland McGrath <roland@redhat.com>
10168 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
10170 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
10171 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
10172 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
10174 * string/tester.c (test_strcpy): Add test with `void *' arguments.
10176 2003-01-06 Ulrich Drepper <drepper@redhat.com>
10178 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
10179 return significand and not the exponent.
10180 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10182 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
10183 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
10185 * malloc/malloc.c: Mark all _int_* functions as static.
10187 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10189 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
10190 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
10192 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10194 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10196 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
10197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
10199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
10200 ftruncate64, truncate64, pread64 and pwrite64 entries.
10201 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10202 (INLINE_SYSCALL): Add __builtin_expect.
10203 (LOADARGS_n): Add argument size safety checks.
10204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
10205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
10206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
10207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
10208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
10209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
10211 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10213 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
10214 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
10215 (LIBC_CANCEL_HANDLED): Add.
10217 * sysdeps/unix/sysv/linux/alpha/sysdep.h
10218 (inline_syscall_r0_constraint): Rename to...
10219 (inline_syscall_r0_out_constraint): ... this. Add =.
10220 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
10222 2003-01-06 Andreas Schwab <schwab@suse.de>
10224 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
10225 sure this is always inlined.
10226 (elf_machine_rela): Likewise.
10228 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
10230 2003-01-04 Roland McGrath <roland@redhat.com>
10232 * Makeconfig (+mkdep): Add -MP flag.
10233 Suggested by Art Haas <ahaas@airmail.net>.
10235 2003-01-05 Andreas Schwab <schwab@suse.de>
10237 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
10239 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10241 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
10242 SYSCALL_ERROR_HANDLER.
10243 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
10244 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
10245 Add support for cancellation handling.
10246 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
10247 SYSCALL_ERROR_HANDLER.
10248 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
10249 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
10250 Add support for cancellation handling.
10251 (SYSCALL_ERROR_HANDLER): Define PIC variants.
10253 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
10256 __syscall_pread64 and __syscall_pwrite64 cancelable.
10257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10258 (INTERNAL_SYSCALL): New macro.
10259 (LOADARGS_0, LOADARGS_1): Fix.
10261 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10263 * Makerules (build-shlip-helper): Unless told otherwise, add
10264 -Wl,-z,defs to linker command line.
10265 * rt/Makefile (librt.so): Link with ld.so.
10266 * dlfcn/Makefile (libdl.so): Likewise.
10268 2003-01-05 Jakub Jelinek <jakub@redhat.com>
10270 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
10271 cancellation handling.
10272 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10273 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
10275 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10277 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
10278 order of parameters passed to kill.
10280 2003-01-04 Andreas Schwab <schwab@suse.de>
10282 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
10284 2003-01-03 Paul Eggert <eggert@twinsun.com>
10286 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
10287 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10288 when compiling Bison 1.875's `bitset bset = obstack_alloc
10289 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
10291 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10293 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
10295 Correct reference counter in case SIGQUIT handler installation failed.
10297 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10299 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
10300 Define using _Pragma(weak ...).
10302 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
10304 * resolv/res_libc.c: Provide declaration for __res_init_weak and
10305 reorder declarations.
10307 2003-01-03 Art Haas <ahaas@airmail.net>
10309 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
10310 initializer syntax to C99.
10311 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
10312 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
10313 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
10314 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
10315 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
10316 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
10317 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
10318 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
10319 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
10320 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
10321 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
10322 * localedata/tests-mbwc/dat_mblen.c: Likewise.
10323 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
10324 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
10325 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
10326 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
10327 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
10328 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
10329 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
10330 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
10331 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
10332 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
10333 * localedata/tests-mbwc/dat_towlower.c: Likewise.
10334 * localedata/tests-mbwc/dat_towupper.c: Likewise.
10335 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
10336 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
10337 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
10338 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
10339 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
10340 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
10341 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
10342 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
10343 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
10344 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
10345 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
10346 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
10347 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
10348 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
10349 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
10350 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
10351 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
10352 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
10353 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
10354 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
10355 * localedata/tests-mbwc/dat_wctob.c: Likewise.
10356 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
10357 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
10358 * localedata/tests-mbwc/dat_wctype.c: Likewise.
10359 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
10361 2003-01-03 Richard Henderson <rth@redhat.com>
10363 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
10364 (inline_syscall_r0_constraint): New.
10365 (inline_syscall[0-6]): Use them.
10367 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10369 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
10370 Add rtld_hidden_proto.
10371 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
10372 (_dl_allocate_tls): Likewise. Remove INTDEF.
10374 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10376 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
10377 Morita <toshiyasu.morita@hsa.hitachi.com>.
10378 * sysdeps/sh/memcpy.S: Likewise.
10380 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10382 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
10383 any, but unify the test.
10385 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10387 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
10388 sigaction): Protect weak_alias and libc_hidden_weak with
10389 #ifndef LIBC_SIGACTION.
10390 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
10391 sigaction): Likewise.
10392 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
10393 sigaction): Likewise.
10394 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
10395 sigaction): Likewise.
10396 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
10397 sigaction): Likewise.
10398 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
10399 sigaction): Likewise.
10400 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
10401 sigaction): Likewise.
10402 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
10403 sigaction): Likewise. Remove SIGCANCEL handling here.
10404 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
10407 2003-01-02 Art Haas <ahaas@airmail.net>
10409 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
10411 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10413 * posix/getconf.c: Update copyright year.
10414 * nss/getent.c: Likewise.
10415 * nscd/nscd_nischeck.c: Likewise.
10416 * iconv/iconvconfig.c: Likewise.
10417 * iconv/iconv_prog.c: Likewise.
10418 * elf/ldconfig.c: Likewise.
10419 * catgets/gencat.c: Likewise.
10420 * csu/version.c: Likewise.
10421 * elf/ldd.bash.in: Likewise.
10422 * elf/sprof.c (print_version): Likewise.
10423 * locale/programs/locale.c: Likewise.
10424 * locale/programs/localedef.c: Likewise.
10425 * nscd/nscd.c (print_version): Likewise.
10426 * debug/xtrace.sh: Likewise.
10427 * malloc/memusage.sh: Likewise.
10428 * malloc/mtrace.pl: Likewise.
10430 2003-01-01 Jakub Jelinek <jakub@redhat.com>
10432 * io/sys/stat.h: Include time.h with __need_timespec even if
10433 __USE_MISC is defined but __USE_XOPEN is not.
10435 2003-01-01 Andreas Jaeger <aj@suse.de>
10437 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
10438 type to avoid strict aliasing problem.
10439 (_nss_dns_gethostbyname2_r): Likewise.
10440 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10441 (_nss_dns_getnetbyname_r): Likewise.
10442 * resolv/gethnamaddr.c (_gethtent): Likewise.
10443 (gethostbyname2): Likewise.
10445 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10447 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
10448 to avoid using the exported symbols. Define aliases with the
10449 original names separately.
10451 * include/time.h: Add libc_hidden_proto for __strftime_l.
10452 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
10453 * time/strftime.c: Always use libc_hidden_def if _LIBC.
10455 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
10456 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
10458 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
10461 * csu/Makefile (routines): Add dso_handle.
10462 * csu/dso_handle.c: New file.
10464 2002-12-31 Roland McGrath <roland@redhat.com>
10466 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
10467 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
10468 (S-CPPFLAGS): Add -DASSEMBLER here instead.
10469 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
10471 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10473 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
10476 2002-12-31 Andreas Jaeger <aj@suse.de>
10478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
10480 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10481 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
10482 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
10484 * sysdeps/unix/sysv/linux/kernel_stat.h
10485 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
10487 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
10488 __unused[1-3] since they're needed by some platforms. Handle
10489 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
10491 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
10492 for structs stat and stat64.
10493 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10494 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10495 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10496 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10498 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10500 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10501 nsec resolution changes.
10502 (xstat64_conv): Likewise.
10503 (xstat32_conv): Likewise.
10505 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10506 struct kernel_stat.
10508 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10509 structs stat and stat64.
10511 * time/time.h (__timespec_defined): Define for __USE_MISC.
10513 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10515 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
10516 and __libc_current_sigrtmax.
10518 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10520 * include/errno.h (__errno_location): Add prototype.
10521 Use libc_hidden_proto unconditionally.
10522 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
10524 * include/resolv.h (__res_state): Likewise.
10526 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
10527 * include/sys/socket.h (accept): Add libc_hidden_proto.
10528 * include/errno.h (__errno_location): Likewise.
10529 * include/netdb.h (__h_errno_location): Likewise.
10530 * include/resolv.h (__res_state): Likewise.
10531 * include/unistd.h (__lseek): Likewise.
10532 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
10533 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
10534 * sysdeps/generic/res-state.c (__res_state): Likewise.
10535 * sysdeps/generic/accept.c (accept): Likewise.
10536 * sysdeps/generic/lseek.c (__lseek): Likewise.
10537 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
10538 __libc_current_sigrtmax): Likewise.
10539 * sysdeps/mach/hurd/accept.c (accept): Likewise.
10540 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
10541 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
10542 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
10543 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
10544 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
10545 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
10546 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
10547 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
10549 (__GI_accept): New alias to accept.
10550 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
10551 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
10552 New alias to llseek.
10553 (__GI_accept): New alias to accept.
10554 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
10556 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
10558 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
10560 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
10561 strong_alias (name, __GI_name).
10562 * sysdeps/arm/bsd-_setjmp.S : Likewise.
10563 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
10564 * sysdeps/i386/bsd-_setjmp.S : Likewise.
10565 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
10566 * sysdeps/mips/bsd-_setjmp.S : Likewise.
10567 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
10568 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
10569 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
10570 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
10571 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
10572 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
10573 * sysdeps/sh/bsd-_setjmp.S : Likewise.
10574 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
10575 * sysdeps/unix/arm/fork.S : Likewise.
10576 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
10577 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
10578 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
10579 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
10580 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
10581 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
10582 * sysdeps/unix/i386/fork.S : Likewise.
10583 * sysdeps/unix/mips/fork.S : Likewise.
10584 * sysdeps/unix/sparc/fork.S : Likewise.
10585 * sysdeps/unix/sparc/vfork.S : Likewise.
10586 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
10587 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
10588 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
10589 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
10590 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
10591 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
10592 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
10593 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
10594 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
10595 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
10596 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
10597 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
10598 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
10599 * sysdeps/unix/fork.S : Likewise.
10600 * sysdeps/vax/bsd-_setjmp.S : Likewise.
10601 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
10603 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
10606 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10608 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
10609 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
10610 * sysdeps/mach/hurd/fork.c: Likewise.
10611 * sysdeps/unix/sysv/aix/fork.c: Likewise.
10612 * sysdeps/unix/fork.S: Add __GI___fork alias.
10613 * sysdeps/unix/arm/fork.S: Likewise.
10614 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
10615 * sysdeps/unix/i386/fork.S: Likewise.
10616 * sysdeps/unix/mips/fork.S: Likewise.
10617 * sysdeps/unix/sparc/fork.S: Likewise.
10618 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
10619 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
10620 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10621 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
10622 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
10623 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10624 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
10625 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
10626 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
10627 * sysdeps/unix/sparc/vfork.S: Likewise.
10628 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
10629 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
10630 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10631 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
10632 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
10633 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
10634 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
10635 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10637 * include/time.h: Add libc_hidden_proto for __nanosleep.
10638 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
10639 * sysdeps/mach/nanosleep.c: Likewise.
10640 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
10641 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
10643 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
10644 _IO_list_unlock, and _IO_list_resetlock.
10645 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
10646 _IO_list_unlock, and _IO_list_resetlock.
10648 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
10649 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10650 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
10651 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10653 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
10654 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
10655 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
10656 __GI___longjmp alias.
10658 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
10659 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
10660 * sysdeps/arm/bsd-_setjmp.S: Likewise.
10661 * sysdeps/generic/bsd-_setjmp.c: Likewise.
10662 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
10663 * sysdeps/i386/bsd-_setjmp.S: Likewise.
10664 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10665 * sysdeps/mips/bsd-_setjmp.S: Likewise.
10666 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10667 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
10668 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
10669 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
10670 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
10671 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
10672 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
10673 * sysdeps/sh/bsd-_setjmp.S: Likewise.
10674 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
10675 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
10676 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
10677 * sysdeps/vax/bsd-_setjmp.S: Likewise.
10678 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
10680 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10682 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
10684 2002-12-30 Roland McGrath <roland@redhat.com>
10686 * Rules (generated): Target removed.
10687 * mach/Makefile (generated): Define it here instead.
10689 * math/Makefile (generated): Add m_*l and m_*f variants too.
10691 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10693 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
10694 the to-be-deleted objects right away instead of later separately.
10695 The latter fails because the scope data structures of the DSO
10696 might already be gone.
10698 * elf/Makefile: Add rules to build and run reldep8 test.
10699 * elf/reldep8.c: New file.
10700 * elf/reldep8mod1.c: New file.
10701 * elf/reldep8mod2.c: New file.
10702 * elf/reldep8mod3.c: New file.
10703 Contributed by Jakub Jelinek.
10705 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
10707 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10708 checking of return value ENOSYS from getdents64.
10710 2002-12-28 Andreas Schwab <schwab@suse.de>
10712 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
10713 ($(common-objpfx)s-%.d): Generalized from
10714 $(common-objpfx)s-proto.d rule.
10715 (common-generated): Add s-proto-cancel.d.
10716 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
10717 cancellable syscalls.
10718 * sysdeps/unix/s-proto-cancel.S: New file.
10720 2002-12-29 Roland McGrath <roland@redhat.com>
10722 * resolv/res_libc.c: Move _res defn magic after res_init defn
10723 so _res macro is in effect for that code.
10725 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
10726 pattern for prepending $(..) so it doesn't affect $(foo).
10728 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
10730 2002-12-29 Jakub Jelinek <jakub@redhat.com>
10732 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
10735 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10737 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
10739 2002-12-28 Andreas Jaeger <aj@suse.de>
10741 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
10743 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
10745 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10747 * inet/herrno.c (__h_errno_location): Remove.
10748 * inet/Makefile (routines): Add herrno-loc.
10749 * resolv/res_libc.c (__res_state): Remove.
10750 * resolv/Makefile (routines): Add res-state.
10751 * sysdeps/generic/herrno-loc.c: New file.
10752 * sysdeps/generic/res-state.c: New file.
10754 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10756 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10757 Only define if USE_DL_SYSINFO is defined.
10759 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10761 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
10762 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
10763 Define. Patch by Richard Henderson and Jes Sorensen.
10764 (PSEUDO): Remove unnecessary ;;.
10765 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
10766 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
10767 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
10768 if not initializing thread pointer.
10769 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
10770 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
10771 make it weak also if NONTLS_INIT_TP.
10772 * sysdeps/unix/common/pause.c: Handle cancellation.
10773 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
10774 (LOADSYSCALL): Remove.
10775 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10776 (SYSCALL_ERROR_HANDLER): Use it.
10777 (PSEUDO): Don't jump around error handler.
10778 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
10779 jump around error handler.
10780 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
10781 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
10782 to __syscall_error_handler on failure.
10783 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
10784 (LOADSYSCALL): Remove.
10785 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10786 (SYSCALL_ERROR_HANDLER): Use it.
10787 (PSEUDO): Don't jump around error handler.
10788 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
10789 jump around error handler.
10790 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
10791 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
10792 to __syscall_error_handler on failure.
10794 2002-12-27 Roland McGrath <roland@redhat.com>
10796 * scripts/gen-as-const.awk: New file.
10797 * Makefile (distribute): Add it.
10798 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
10799 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
10801 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
10803 2002-12-27 Andreas Schwab <schwab@suse.de>
10805 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
10807 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10809 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
10812 2002-12-27 Andreas Schwab <schwab@suse.de>
10814 * Makerules ($(common-objpfx)%.make): Filter through
10815 $(sed-remove-objpfx).
10817 2002-12-23 Roland McGrath <roland@redhat.com>
10819 * scripts/abilist.awk: Produce a more compact format, divided into
10820 stanzas for each version set, the set name listed only once.
10821 * scripts/extract-abilist.awk: New file.
10822 * scripts/merge-abilist.awk: New file.
10823 * Makerules (check-abi-%, update-abi-%): New pattern rules.
10824 (update-abi, check-abi): New targets.
10825 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
10827 2002-12-19 Roland McGrath <roland@redhat.com>
10829 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
10831 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
10834 2002-12-21 Andreas Schwab <schwab@suse.de>
10836 * elf/check-textrel.c (handle_file): Swap p_type.
10838 2002-12-21 Andreas Schwab <schwab@suse.de>
10840 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
10841 (INLINE_SYSCALL): Use it.
10842 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10843 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10845 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
10846 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
10848 2002-12-20 Art Haas <ahaas@airmail.net>
10850 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
10853 2002-12-21 Philip Blundell <philb@gnu.org>
10855 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
10856 top as seventh arg to __libc_start_main.
10857 Reported by paulnash@wildseed.com.
10859 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
10861 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
10862 compatibility cruft when new enough kernel is assumed.
10864 2002-12-20 Jakub Jelinek <jakub@redhat.com>
10866 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
10867 instead of INLINE_SYSCALL.
10869 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10871 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
10874 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
10875 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
10876 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
10877 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
10878 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
10879 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10880 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10881 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10882 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
10883 Patch by William Lee Irwin <wli@holomorphy.com>.
10885 2002-12-20 Andreas Schwab <schwab@suse.de>
10887 * locale/programs/ld-measurement.c (measurement_output): Fix
10890 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10892 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
10893 Redefine _IO_flockifle and _IO_funlockfile as inlines.
10895 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
10896 builds add "tls" in the search path.
10897 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
10898 (path_hwcap): Recognize "tls".
10900 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10902 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
10903 __waitpid instead of waitpid.
10905 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
10907 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10908 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10909 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10911 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
10912 information for system calls.
10914 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
10917 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
10919 2002-12-19 Roland McGrath <roland@redhat.com>
10921 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
10922 * iconvdata/ibm922.h: Likewise.
10923 * iconvdata/ibm930.h: Likewise.
10924 * iconvdata/ibm932.h: Likewise.
10925 * iconvdata/ibm933.h: Likewise.
10926 * iconvdata/ibm935.h: Likewise.
10927 * iconvdata/ibm937.h: Likewise.
10928 * iconvdata/ibm939.h: Likewise.
10929 * iconvdata/ibm943.h: Likewise.
10930 * iconvdata/isiri-3342.h: Likewise.
10932 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10934 * test-skeleton.c (main): Make sure correct value is seen as
10935 argv[0] after adjustment of argv, and argc.
10937 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
10938 RTLD_CORRECT_DYNAMIC_WEAK is defined.
10940 2002-12-19 Jakub Jelinek <jakub@redhat.com>
10942 * nscd/connections.c (nscd_run): Shut up warning.
10943 * tst-ungetc.c (assert): Undefined before redefining.
10945 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10947 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
10950 2002-12-17 Art Haas <ahaas@airmail.net>
10952 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
10953 * iconvdata/cp775.h: Likewise.
10954 * iconvdata/ibm1046.h: Likewise.
10955 * iconvdata/ibm1124.h: Likewise.
10956 * iconvdata/ibm1129.h: Likewise.
10957 * iconvdata/ibm1132.h: Likewise.
10958 * iconvdata/ibm1133.h: Likewise.
10959 * iconvdata/ibm1160.h: Likewise.
10960 * iconvdata/ibm1161.h: Likewise.
10961 * iconvdata/ibm1162.h: Likewise.
10962 * iconvdata/ibm1163.h: Likewise.
10963 * iconvdata/ibm1164.h: Likewise.
10965 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10967 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
10968 __ASSUME_CLONE_THREAD_FLAGS is defined.
10969 * sysdeps/unix/sysv/linux/kernel-features.h
10970 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
10972 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10974 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
10976 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10978 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
10980 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10982 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
10984 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10986 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10987 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
10988 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
10991 2002-12-18 Jakub Jelinek <jakub@redhat.com>
10993 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
10994 __libc_writev to...
10995 [libc: GLIBC_PRIVATE]: ...here.
10996 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
10997 __libc_msgsnd to...
10998 [libc: GLIBC_PRIVATE]: ...here.
11000 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11002 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
11003 Use it instead of directly int $0x80.
11004 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
11005 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11006 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11007 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11008 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11009 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11011 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11013 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
11015 * elf/elf.h (AT_SYSINFO): New define.
11016 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
11019 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11021 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
11023 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
11025 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
11027 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
11029 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
11031 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
11033 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
11034 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
11035 available, otherwise __libc_maybe_call.
11036 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
11037 cancellation handling.
11038 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
11040 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
11042 * posix/regcomp.c (free_workarea_compile): Free the new member
11044 (analyze): Initialize ORG_INDICES.
11045 (duplicate_node_closure): Search for a existing node, which is
11046 duplicated from the node ORG_DEST and satisfies the constraint
11047 CONSTRAINT. And use it to avoid inifimite loop.
11048 (search_duplicated_node): New function.
11049 (duplicate_node): Store the index of the original node.
11050 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
11052 * posix/regex_internal.h (re_dfa_t): Add new members.
11054 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11056 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
11058 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11060 * sysdeps/posix/system.c (do_system): Add support for installation
11061 of cancellation handlers.
11062 * sysdeps/unix/sysv/linux/i386/system.c: New file.
11064 * stdlib/Makefile (tests): Add tst-system.
11065 * stdlib/tst-system.c: New file.
11067 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
11068 CENABLE]: Don't lose content of %ebx.
11070 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11072 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
11073 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
11075 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11077 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
11078 fails to return a function pointer don't use it.
11080 2002-12-16 Art Haas <ahaas@airmail.net>
11082 * io/ftw.c: Convert GCC extension initializer syntax to C99.
11083 * iconvdata/iso-ir-165.c: Likewise.
11084 * iconvdata/jis0208.c: Likewise.
11085 * iconvdata/jis0212.c: Likewise.
11087 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11089 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
11090 epoll_ctl, and epoll_wait.
11091 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
11092 epoll_create, epoll_ctl, and epoll_wait.
11093 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
11094 Davide Libenzi <davidel@xmailserver.org>.
11095 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
11096 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11099 2002-12-16 Art Haas <ahaas@airmail.net>
11101 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
11103 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
11104 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
11105 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
11107 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11109 * stdio-common/Makefile (routines): Remove lockfile. Add
11110 flockfile, ftrylockfile, and funlockfile.
11111 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
11112 * sysdeps/generic/flockfile.c: New file.
11113 * sysdeps/generic/ftrylockfile.c: New file.
11114 * sysdeps/generic/funlockfile.c: New file.
11116 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11118 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
11119 macros instead of doing the calls directly.
11120 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
11121 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
11124 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11126 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
11127 * sysdeps/ieee754/bits/nan.h: Likewise.
11129 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
11130 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
11132 2002-12-16 Roland McGrath <roland@redhat.com>
11134 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
11135 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
11136 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
11138 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
11139 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
11141 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
11142 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
11143 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
11144 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
11145 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
11146 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
11147 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
11148 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
11150 2002-12-13 Paul Eggert <eggert@twinsun.com>
11152 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
11153 is now u_int, not int.
11154 (struct XDR.x_handy): Now u_int, not int.
11155 * sunrpc/xdr_mem.c: Include <limits.h>.
11156 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
11157 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
11158 x_handy is now unsigned, not signed.
11159 Do not decrement x_handy if no change is made.
11160 (xdrmem_setpos): Check for int overflow.
11161 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
11162 (xdr_sizeof): Remove cast that is now unnecessary, now that
11163 x_handy is unsigned.
11165 2002-12-15 Art Haas <ahaas@airmail.net>
11167 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
11168 * iconvdata/gap.awk: Likewise.
11169 * iconvdata/gen-8bit-gap-1.sh: Likewise.
11170 * iconvdata/gen-8bit-gap.sh: Likewise.
11171 * locale/C-address.c: Likewise.
11172 * locale/C-collate.c: Likewise.
11173 * locale/C-ctype.c: Likewise.
11174 * locale/C-identification.c: Likewise.
11175 * locale/C-measurement.c: Likewise.
11176 * locale/C-messages.c: Likewise.
11177 * locale/C-monetary.c: Likewise.
11178 * locale/C-name.c: Likewise.
11179 * locale/C-numeric.c: Likewise.
11180 * locale/C-paper.c: Likewise.
11181 * locale/C-telephone.c: Likewise.
11182 * locale/C-time.c: Likewise.
11183 * nscd/connections.c: Likewise.
11184 * nscd/grpcache.c: Likewise.
11185 * nscd/hstcache.c: Likewise.
11186 * nscd/pwdcache.c: Likewise.
11187 * stdio-common/vfprintf.c: Likewise.
11188 * stdlib/random.c: Likewise.
11189 * sysdeps/generic/siglist.c: Likewise.
11190 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11191 * sysdeps/ieee754/bits/nan.h: Likewise.
11192 * sysdeps/posix/sprofil.c: Likewise.
11193 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
11194 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
11195 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
11197 2002-12-15 Roland McGrath <roland@redhat.com>
11199 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
11201 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
11202 <tls.h> here, no need for it.
11203 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11205 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
11206 parameter, not varargs parameter.
11208 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
11209 argument so it's not an unused variable.
11211 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
11212 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
11215 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
11217 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11219 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
11220 original __libc_fcntl code. Just renamed.
11222 2002-12-15 Andreas Schwab <schwab@suse.de>
11224 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
11226 2002-12-14 Olaf Hering <olh@suse.de>
11228 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
11229 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
11231 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11233 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
11235 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
11236 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
11238 * sysdeps/unix/sysv/linux/open64.c: New file.
11240 * sysdeps/generic/pselect.c: Add support for cancellation handling.
11241 * sysdeps/posix/open64.c: Likewise.
11242 * sysdeps/posix/sigpause.c: Likewise.
11243 * sysdeps/posix/sigwait.c: Likewise.
11244 * sysdeps/posix/system.c: Likewise.
11245 * sysdeps/posix/waitid.c: Likewise.
11246 * sysdeps/unix/sysv/linux/accept.S: Likewise.
11247 * sysdeps/unix/sysv/linux/connect.S: Likewise.
11248 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
11249 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11250 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
11251 * sysdeps/unix/sysv/linux/poll.c: Likewise.
11252 * sysdeps/unix/sysv/linux/pread.c: Likewise.
11253 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11254 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
11255 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11256 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11257 * sysdeps/unix/sysv/linux/recv.S: Likewise.
11258 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
11259 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
11260 * sysdeps/unix/sysv/linux/send.S: Likewise.
11261 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
11262 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
11263 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
11264 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
11265 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
11266 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
11267 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
11268 * sysdeps/unix/sysv/linux/wait.c: Likewise.
11269 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11270 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11271 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
11272 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11274 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11276 * sysdeps/generic/sysdep-cancel.h: New file.
11277 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
11278 cancelable syscall.
11279 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
11280 recvmsg, send, sendmsg, sendto): Make cancelable.
11281 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
11282 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
11283 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11284 sendto, osf_select): Likewise.
11285 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
11286 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11287 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
11288 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11290 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
11291 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11292 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
11293 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11295 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
11296 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11297 sendto, select): Likewise.
11298 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
11299 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
11301 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
11302 select, fcntl): Likewise.
11303 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
11304 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
11305 read, readv, select, sigsuspend, write, writev): Likewise.
11307 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11309 * dirent/bug-readdir1.c: Include unistd.h.
11311 2002-12-13 Jakub Jelinek <jakub@redhat.com>
11313 * locale/programs/locale.c: Include locarchive.h.
11314 (ARCHIVE_NAME): Define.
11315 (write_archive_locales): New function.
11316 (write_locales): Use it. Ensure the same locale is not printed
11317 multiple times in verbose mode.
11318 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
11319 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
11321 (struct nameent): New type.
11322 (nameentcmp): New function.
11324 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11326 * posix/regex_internal.c (re_string_context_at): Guard wide char
11327 code with #ifdef RE_ENABLE_I18N.
11329 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
11331 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
11333 2002-12-13 Roland McGrath <roland@redhat.com>
11335 * posix/bug-regex15.c: New file.
11336 * posix/Makefile (tests): Add it.
11338 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
11339 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
11341 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11343 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
11345 * misc/syslog.c (log_cleanup): Don't use parameter in
11346 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
11347 pass NULL instead of a pointer to syslog_lock.
11349 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11351 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
11352 linker map for all iconv modules.
11353 (distribute): Add gconv.map.
11354 * iconvdata/gconv.map: New file.
11356 * elf/Makefile: Also check all iconv modules for text relocations.
11358 * stdlib/Makefile: Remove code to automatically import GMP.
11360 * elf/Makefile (tests): Add rules to build and run check-textrel.
11361 * elf/check-textrel.c: New file.
11363 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
11366 2002-12-11 Jakub Jelinek <jakub@redhat.com>
11368 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
11371 2002-04-30 Bruno Haible <bruno@clisp.org>
11373 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
11374 the encoding if it already has slashes.
11375 Reported by Perry Rapp <prapp@erols.com>.
11377 2002-12-11 Roland McGrath <roland@redhat.com>
11379 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
11380 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
11381 Turn off PIC for compiling this file.
11383 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11385 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
11386 definitions. Not needed.
11387 [_LIBC]: Use definitions from libc-lock.h instead of referencing
11388 pthread routines directly.
11389 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
11391 (arena_get2): Don't look at return value of mutex_lock.
11393 2002-12-11 Roland McGrath <roland@redhat.com>
11395 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
11396 elf-init.o instead of compiling a PIC version.
11398 2002-12-11 Bruno Haible <bruno@clisp.org>
11400 * intl/gettext.h: Renamed to ...
11401 * intl/gmo.h: ... here.
11402 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11403 * intl/gettextP.h: Update.
11404 * intl/loadmsgcat.c: Update.
11406 * intl/gettextP.h (PARAMS): Make more portable.
11407 (attribute_hidden): Define as empty macro if not already defined.
11408 * intl/hash-string.h (PARAMS): Make more portable.
11409 * intl/loadinfo.h (PARAMS): Likewise.
11410 * intl/plural-exp.h (PARAMS): Likewise.
11411 (attribute_hidden): Move definition near the definition of
11414 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
11415 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
11417 2002-07-13 Bruno Haible <bruno@clisp.org>
11419 * intl/dcigettext.c (freea): New macro.
11420 (FREE_BLOCKS): Free also the registered blocks.
11421 (DCIGETTEXT): Free the 'search' variable.
11422 Reported by Andreas Fischer <a.fischer@asentics.de>.
11424 2002-04-27 Bruno Haible <bruno@clisp.org>
11426 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
11427 * intl/dcigettext.c: Likewise.
11428 * intl/dcgettext.c: Likewise.
11429 * intl/dgettext.c: Likewise.
11430 * intl/gettext.c: Likewise.
11431 * intl/dcngettext.c: Likewise.
11432 * intl/dngettext.c: Likewise.
11433 * intl/ngettext.c: Likewise.
11434 * intl/textdomain.c: Likewise.
11435 * intl/bindtextdom.c: Likewise.
11436 * intl/plural-exp.h: Likewise.
11438 2002-01-02 Bruno Haible <bruno@clisp.org>
11440 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
11442 2001-04-30 Bruno Haible <bruno@clisp.org>
11444 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
11445 default macro definitions. Needed for mingw32.
11447 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11449 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
11450 __builtin_constant_p to macro parameter.
11452 * sysdeps/generic/sigpause.c: Define all functions as weak.
11453 * sysdeps/posix/sigpause.c: Likewise.
11455 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
11458 2002-12-10 Jakub Jelinek <jakub@redhat.com>
11460 * elf/tst-array1.c (preinit_array, init_array, fini_array):
11461 Explicitly align the array to sizeof (void *).
11462 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
11464 * include/libc-symbols.h: Fix a comment typo.
11466 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
11467 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
11469 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
11471 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
11472 (__libc_sigsuspend): Likewise.
11473 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
11474 (__libc_sigsuspend): Likewise.
11475 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
11476 (creat): New weak alias.
11478 2002-12-10 Roland McGrath <roland@redhat.com>
11480 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
11481 contributes a manual chapter.
11482 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
11485 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
11486 and move contents to ...
11487 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
11488 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
11489 it instead of duplicating its contents.
11490 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
11492 2002-12-09 Jakub Jelinek <jakub@redhat.com>
11494 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
11496 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
11498 (EXTRA_LD_ENVVARS): Use it.
11499 (DL_OSVERSION_INIT): Define.
11500 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
11502 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
11504 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11506 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
11508 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
11509 call. It is not allowed to destroy pthread mutexes which are
11510 still in use even though it is safe for our implementations. If
11511 somebody still uses the descriptor it is a bug.
11513 2002-12-09 Richard Henderson <rth@redhat.com>
11515 * csu/abi-note.S: Use .p2align, not .align.
11517 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11519 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
11520 __libc_select aliases.
11522 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
11525 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
11527 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
11529 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
11531 * sysdeps/unix/syscalls.list: Define __libc_select alias.
11533 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
11535 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
11536 __libc___xpg_sigpause aliases.
11538 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
11540 * misc/error.c: Remove use of USE_IN_LIBIO.
11542 2002-12-08 Roland McGrath <roland@redhat.com>
11544 * elf/Makefile (tests): Uncomment tst-array[123].
11545 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
11546 * csu/elf-init.c: New file.
11547 * csu/Makefile (routines, static-only-routines): Add elf-init.
11548 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
11549 and __libc_csu_fini in place of _fini.
11550 * sysdeps/arm/elf/start.S: Likewise.
11551 * sysdeps/cris/elf/start.S: Likewise.
11552 * sysdeps/hppa/elf/start.S: Likewise.
11553 * sysdeps/i386/elf/start.S: Likewise.
11554 * sysdeps/ia64/elf/start.S: Likewise.
11555 * sysdeps/m68k/elf/start.S: Likewise.
11556 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
11557 * sysdeps/mips/elf/start.S: Likewise.
11558 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
11559 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
11560 * sysdeps/s390/s390-32/elf/start.S: Likewise.
11561 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11562 * sysdeps/sh/elf/start.S: Likewise.
11563 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11564 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11565 * sysdeps/x86_64/elf/start.S: Likewise.
11567 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
11568 struct containing function ptr and value, free it.
11569 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
11570 It's not safe to let the new thread use the SIGEV pointer.
11572 2001-10-20 Paul Eggert <eggert@twinsun.com>
11574 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
11575 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
11576 Use strerror_r that is only a macro, even if it is not a function.
11577 (strerror): Check for HAVE_DECL_STRERROR before declaring.
11578 (private_strerror): Use prototypes, not old-style function definition.
11579 (print_errno_message): New function.
11580 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
11581 char*-flavored one.
11582 (error_tail, error, error_at_line): Use it.
11584 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
11586 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
11588 2002-12-08 Ulrich Drepper <drepper@redhat.com>
11590 * scripts/output-format.sed: Fix bug in one of the s expressions
11591 which used / for one too many things.
11593 * include/unistd.h: Declare __libc_close.
11595 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11597 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
11599 2002-12-07 Roland McGrath <roland@redhat.com>
11601 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
11602 from 2002-12-06, but remove unnecessary memset call without removing
11603 necessary copy of initialization image.
11605 * Makerules ($(common-objpfx)format.lds): New target.
11606 (common-generated): Add it.
11607 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
11608 * scripts/output-format.sed: New file.
11609 * Makefile (distribute): Add it.
11611 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11613 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
11614 Reported by Art Haas <ahaas@airmail.net>.
11616 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
11618 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
11620 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11622 * string/test-strncpy.c (do_random_tests): Improve test coverage.
11624 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11626 * test-skeleton.c (timeout_handler): Allow expected signal to be
11629 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
11631 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
11633 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11635 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
11636 (SYSCALL_ERROR_HANDLER): Fix a pasto.
11637 Reported by Jeff Bailey <jbailey@nisa.net>.
11639 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11641 * sysdeps/generic/libc-tls.c: Undo last patch.
11643 * include/wctype.h: Define iswalnum with libc_hidden_proto.
11645 * include/signal.h: Define raise with libc_hidden_proto.
11647 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
11648 __execve instead of snprintf and execve.
11650 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
11653 2002-12-06 Jakub Jelinek <jakub@redhat.com>
11655 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
11656 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
11658 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11660 * misc/syslog.c (log_cleanup): New function.
11661 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
11662 (closelog): Likewise.
11664 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
11665 * elf/dl-iteratephdr.c: Likewise.
11666 * elf/dl-lookup.c: Likewise.
11667 * elf/dl-misc.c: Likewise.
11668 * elf/dl-open.c: Likewise.
11669 * elf/dl-support.c: Likewise.
11670 * elf/rtld.c: Likewise.
11671 * sysdeps/generic/ldsodefs.h: Likewise.
11672 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
11673 * sysdeps/mach/bits/libc-lock.h: Likewise.
11674 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
11676 2002-12-06 Roland McGrath <roland@redhat.com>
11678 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
11680 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
11681 (malloc_starter, memalign_starter, free_starter): Don't define these.
11682 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
11683 Don't declare them either.
11684 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
11685 __pthread_initialize, so no need to set hooks to *_starter.
11686 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
11687 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
11688 (__libc_malloc_pthread_startup): New function.
11689 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
11691 * malloc/hooks.c (memalign_starter): New function.
11692 * malloc/malloc.c: Declare it.
11693 * malloc/arena.c (save_memalign_hook): New variable.
11694 (ptmalloc_init): Set __memalign_hook to memalign_starter.
11696 * elf/dl-minimal.c (free): Clear the memory.
11697 (calloc): Just call malloc, knowing all memory it returns is cleared.
11699 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
11700 malloc and memset; calloc can avoid the zeroing when redundant.
11701 (_dl_tls_setup): Likewise.
11702 * elf/dl-load.c (decompose_rpath): Likewise.
11703 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
11704 call, since memory from sbrk at startup is already zero.
11706 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
11707 error string for failure, null for success. Update callers.
11708 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
11709 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11711 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11713 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
11715 (readahead): Change args to i:iii.
11716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
11717 Change args to i:iii.
11718 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
11721 2002-12-05 Roland McGrath <roland@redhat.com>
11723 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
11724 call all functions rather than none.
11725 Reported by Mark P. Mitchell <mark@codesourcery.com>.
11727 2002-12-04 Roland McGrath <roland@redhat.com>
11729 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
11730 on _nl_current_LC_* variables.
11732 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11734 * dirent/bug-readdir1.c (main): Don't call closedir, just close
11735 the file descriptor. This is testing what the bug report was about.
11737 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11739 * po/be.po: New file.
11741 * argp/Makefile (tests): Add tst-argp1.
11743 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
11744 Change type of _attribute to void*.
11745 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11746 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
11747 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
11748 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11749 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11751 2002-12-04 Roland McGrath <roland@redhat.com>
11753 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
11754 members to the end, so a libpthread compiled with !USE_TLS will still
11755 find other members properly.
11757 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
11758 operand for DEST memory. Fix dummy input operand to use SRC.
11759 Reported by Davin McCall <davmac@ozonline.com.au>.
11761 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
11762 alignment when initializing the DTV entry.
11764 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
11765 when TLS has not been set up, try to set it up if we can.
11766 * elf/tst-tls4.c: Revert last change.
11767 * elf/tst-tls5.c: Likewise.
11768 * elf/tst-tls6.c: Likewise.
11769 * elf/tst-tls7.c: Likewise.
11770 * elf/tst-tls8.c: Likewise.
11771 * elf/tst-tls9.c: Likewise.
11773 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
11774 * sysdeps/generic/ldsodefs.h: Declare it.
11775 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
11776 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
11777 function, broken out of __libc_setup_tls.
11778 (init_static_tls): Likewise.
11779 (__libc_setup_tls): Call them.
11780 (_dl_tls_setup): New function, uses new subroutines.
11782 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
11783 Clear the pointer when returning true.
11784 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
11785 first element of the slotinfo list too.
11787 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
11790 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
11791 (_dl_determine_tlsoffset): Likewise.
11793 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
11794 startup_error_tsd, made global.
11795 (dl_main): Update initialization.
11796 * elf/dl-tsd.c: Likewise.
11797 * sysdeps/generic/ldsodefs.h: Declare it.
11799 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11801 * manual/texinfo.tex: Update from latest upstream version.
11803 2002-12-03 Roland McGrath <roland@redhat.com>
11805 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
11806 area surplus in calculation for sbrk call.
11808 * iconvdata/cp1125.c: New file.
11809 * iconvdata/Makefile (distribute): Add it.
11810 (modules): Add CP1125.
11811 (gen-8bit-gap-modules): Add cp1125.
11812 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
11813 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
11815 2002-12-03 Andreas Jaeger <aj@suse.de>
11817 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11819 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11821 * sysdeps/posix/system.c (do_system): Make signal handler
11822 installation thread safe.
11824 2002-12-02 Roland McGrath <roland@redhat.com>
11826 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
11827 caller from EXTRA to -.
11828 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11829 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11830 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11832 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
11834 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
11835 bits of RM are cleared.
11837 2002-12-02 Roland McGrath <roland@redhat.com>
11839 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
11840 TLS setup is required.
11841 * elf/tst-tls5.c: Likewise.
11842 * elf/tst-tls6.c: Likewise.
11843 * elf/tst-tls7.c: Likewise.
11844 * elf/tst-tls8.c: Likewise.
11845 * elf/tst-tls9.c: Likewise.
11847 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
11848 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
11849 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
11850 for being null before calling free_slotinfo.
11851 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
11852 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
11854 2002-11-30 Bruno Haible <bruno@clisp.org>
11856 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
11857 (struct __gconv_step): New field __btowc_fct.
11858 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
11859 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
11861 (__gconv_btwoc_ascii): New declaration.
11862 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11863 (__gconv_btwoc_ascii): New function.
11864 * iconv/gconv_builtin.h: Add BtowcFct argument to all
11865 BUILTIN_TRANSFORMATION invocations.
11866 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11867 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
11868 * iconv/gconv_builtin.c (map): New field btowc_fct.
11869 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
11871 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
11872 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
11873 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
11874 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
11875 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
11876 (gconv_init): Initialize __btowc_fct field.
11877 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
11878 * iconv/loop.c: Document ONEBYTE_BODY.
11879 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
11880 Undefine ONEBYTE_BODY at the end.
11881 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
11882 * iconvdata/8bit-gap.c (NONNUL): New macro.
11883 (BODY for FROM_LOOP): Use it.
11884 (ONEBYTE_BODY): New macro.
11885 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
11886 (NONNUL): New macro.
11887 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
11888 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
11889 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
11890 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
11891 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
11892 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
11893 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
11894 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
11895 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
11896 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
11897 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
11898 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
11899 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
11900 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
11901 * iconvdata/ibm932.c: Include <stdbool.h>.
11902 (TRUE, FALSE): Remove macros.
11903 (BODY for FROM_LOOP): Remove unused variable rp1.
11904 (ONEBYTE_BODY): New macro.
11905 (BODY for TO_LOOP): Use bool.
11906 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
11907 * iconvdata/ibm943.c: Include <stdbool.h>.
11908 (TRUE, FALSE): Remove macros.
11909 (BODY for FROM_LOOP): Remove unused variable rp1.
11910 (ONEBYTE_BODY): New macro.
11911 (BODY for TO_LOOP): Use bool.
11912 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
11913 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
11914 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
11915 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
11916 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
11917 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
11918 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
11919 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
11920 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
11921 * iconvdata/gbbig5.c: Tweak comment.
11923 2002-12-02 Ulrich Drepper <drepper@redhat.com>
11925 * po/fi.po: Update from translation team.
11927 2002-12-01 Roland McGrath <roland@redhat.com>
11929 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
11930 testing getdents64 return value.
11932 * scripts/versions.awk: Don't pass -n flag to sort command.
11934 * posix/bug-regex13.c: Include <string.h>.
11936 * sysdeps/generic/libc-start.c (__libc_start_main): Do
11937 DL_SYSDEP_OSCHECK here.
11938 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
11939 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
11941 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
11942 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
11944 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
11945 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
11947 * include/link.h: Comment typo fix.
11949 2002-12-01 Roland McGrath <roland@frob.com>
11951 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
11952 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
11953 _POSIX_MEMORY_PROTECTION): Likewise.
11954 (_POSIX_POLL, _POSIX_SELECT): Removed.
11956 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11958 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
11959 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
11961 2002-11-28 Jakub Jelinek <jakub@redhat.com>
11963 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
11965 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
11968 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11970 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
11971 branch prediction buffers by using unpaired call/ret.
11973 2002-11-27 Ulrich Drepper <drepper@redhat.com>
11975 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
11976 first parameters constraint string.
11977 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
11979 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
11981 * posix/regcomp.c (parse_expression): Set the bit since the back
11982 reference is used in the regular expression.
11983 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
11985 (re_node_set_init_copy): Likewise.
11986 * posix/regex_internal.h (state_array_t): New structure.
11987 (re_sub_match_last_t): Likewise.
11988 (re_sub_match_top_t): Likewise.
11989 (re_match_context_t): Add new members.
11990 (re_dfa_t): Likewise.
11991 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
11992 to check the matching is really correct, and retry if failed.
11993 Move the routin pruning the impossible nodes from here, ...
11994 (prune_impossible_nodes): To this function.
11995 (check_matching): Invoke check_subexp_matching_top, and replace
11996 redundant checking with transit_state_bkref invocation.
11997 (proceed_next_node): Replace strncmp with memcmp. Reported by
11998 Paolo Bonzini <bonzini@gnu.org>.
11999 (update_cur_sifted_state): Remove search_subexp invocation.
12000 (search_subexp): Remove this function.
12001 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
12003 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
12004 Remove unused invocation of match_ctx_add_entry.
12005 (transit_state): Invoke check_subexp_matching_top.
12006 (check_subexp_matching_top): New function.
12007 (transit_state_bkref): Remove unused array.
12008 Merge transit_state_bkref_loop.
12009 (transit_state_bkref_loop): Use get_subexp instead of
12010 sift_states_backward. Use search_cur_bkref_entry for optimization.
12011 Merge this function to transit_state_bkref.
12012 (get_subexp): New function.
12013 (get_subexp_sub): Likewise.
12014 (find_subexp_node): Likewise.
12015 (check_arrival): Likewise.
12016 (check_arrival_expand_ecl): Likewise.
12017 (check_arrival_expand_ecl_sub): Likewise.
12018 (expand_bkref_cache): Likewise.
12019 (match_ctx_init): Initialize new members.
12020 (match_ctx_clean): New function.
12021 (match_ctx_free): Release new members.
12022 (match_ctx_free_subtops): New function.
12023 (match_ctx_add_entry): Fix indent.
12024 (search_cur_bkref_entry): New function.
12025 (match_ctx_add_subtop): Likewise.
12026 (match_ctx_add_sublast): Likewise.
12028 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12030 * iconv/Makefile (tests): Remove tst-iconv4.c
12031 * iconv/tst-iconv4.c: Moved to...
12032 * iconvdata/tst-iconv4.c: ...here. New file.
12033 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
12035 2002-11-25 Roland McGrath <roland@redhat.com>
12037 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
12038 Grok AF_LINK if defined.
12039 From Momchil Velikov <velco@fadata.bg>.
12041 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
12042 brdaddr, or dstaddr, just set those pointers to null and don't fail.
12043 Reported by Momchil Velikov <velco@fadata.bg>.
12045 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
12046 is > sizeof IFR->ifa_addr, advance past the whole longer length.
12047 (__ifreq): Count up NIFS that way too.
12048 Reported by Momchil Velikov <velco@fadata.bg>.
12050 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
12052 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
12053 and <fpu_control.h>.
12055 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12057 * elf/elf.h (EM_ST19): Fix typo.
12059 2002-11-25 Jakub Jelinek <jakub@redhat.com>
12061 * include/errno.h (__set_errno): Define as errno = val
12064 2002-11-24 Roland McGrath <roland@redhat.com>
12066 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
12067 * sysdeps/posix/writev.c: Likewise.
12068 From Momchil Velikov <velco@fadata.bg>.
12070 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
12071 calling *GL(dl_error_catch_tsd) for a thread-local location.
12072 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
12073 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
12074 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
12076 * libio/iofflush.c: Add libc_hidden_def.
12077 * libio/iofwrite.c: Likewise.
12078 * sysdeps/generic/sigtimedwait.c: Likewise.
12079 * sysdeps/generic/sigwaitinfo.c: Likewise.
12080 * sysdeps/posix/sigwait.c: Likewise.
12081 Reported by Momchil Velikov <velco@fadata.bg>.
12083 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
12084 to match <arpa/inet.h> declaration.
12085 * inet/inet_netof.c (inet_netof): Likewise.
12086 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
12087 Reported by Momchil Velikov <velco@fadata.bg>.
12089 * configure.in: Skip AUTOCONF check under --without-cvs.
12090 * configure: Regenerated.
12092 * posix/Makefile (headers): Add bits/pthreadtypes.h.
12093 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
12094 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
12096 2002-11-24 Andreas Schwab <schwab@suse.de>
12098 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
12099 with six arguments.
12101 2002-11-19 Jim Meyering <jim@meyering.net>
12103 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
12105 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
12107 2002-11-23 Roland McGrath <roland@redhat.com>
12109 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
12110 Just produce hex output for datum sizes.
12112 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
12113 Reported by Luca Barbieri <ldb@ldb.ods.org>.
12115 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
12117 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
12118 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12119 and __unused3 fields.
12120 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
12121 [__WORDSIZE == 32]: Only PPC32 requires __unused1
12122 and __unused2 fields.
12123 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
12124 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12125 __unused3, and __unused4 fields.
12127 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
12128 obtain lowest address for profiling in __monstartup call.
12130 2002-11-21 Roland McGrath <roland@redhat.com>
12132 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
12133 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
12135 * locale/localeinfo.h (struct locale_data): Revert last change.
12137 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
12138 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12140 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
12141 __NR_pread64 if not defined.
12142 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
12143 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12145 2002-11-21 Roland McGrath <roland@frob.com>
12147 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
12148 __libc_multiple_libcs here. Call __setfpucw.
12150 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12152 * elf/Makefile (tests): Don't run test-arrayX tests for now.
12154 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
12155 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
12156 CLONE_CHILD_*TID flags.
12158 2002-11-20 Andreas Jaeger <aj@suse.de>
12160 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
12161 We pass struct ucontext on x86-64.
12163 (GET_FRAME): Adjust.
12164 (GET_STACK): Adjust.
12166 2002-11-20 Roland McGrath <roland@redhat.com>
12168 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
12169 conditionalize [! DO_VERSIONING] #error.
12171 * scripts/abilist.awk: Grok function descriptor symbols.
12173 * intl/tst-gettext.c (main): Check return values from setlocale.
12174 Add necessary unsetenv's to make LANG=existing-locale check work.
12176 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
12177 so aborted prior runs don't confuse things.
12179 * locale/localeinfo.h (struct locale_data: union locale_data_value):
12180 Use uintptr_t instead of unsigned int for `word' member.
12181 (_NL_CURRENT_WORD): Cast to uint32_t.
12183 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
12186 2002-11-20 Ulrich Drepper <drepper@redhat.com>
12188 * elf/tls-macros.h: Add IA-64 definitions.
12189 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
12191 * iconv/Makefile (tests): Add tst-iconv4.
12192 * iconv/tst-iconv4.c: New file.
12194 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
12195 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
12196 __GCONV_INCOMPLETE_INPUT.
12197 (ucs4le_internal_loop): Likewise.
12198 (ucs4le_internal_loop_unaligned): Likewise.
12199 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
12200 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
12201 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
12203 * iconv/loop.c (LOOPFCT): First test for empty input then for full
12206 * inet/getnameinfo.c: Use extend_alloca where appropriate.
12207 * sysdeps/posix/getaddrinfo.c: Likewise.
12209 * include/alloca.h (extend_alloca): New define. Based on stack
12210 direction it'll try to append to the previouls allocated buffer.
12212 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
12214 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
12215 use the same service for AF_INET and AF_INET6.
12217 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12219 * intl/localealias.c (read_alias_file): Use only about 400 bytes
12220 of stack space instead of 16k.
12222 2002-11-18 Wolfram Gloger <wg@malloc.de>
12225 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
12226 nothing if not initialized. Bug report from Marcus Brinkmann
12227 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12229 2002-11-19 Roland McGrath <roland@redhat.com>
12231 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
12234 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
12235 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
12236 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
12237 * configure: Regenerated.
12239 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12241 * include/dlfcn.h: __libc_dlopen is now a macro calling
12242 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
12243 (__libc_dlopen_mode): New prototype.
12244 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
12245 new parameter. Store new parameter in mode field of structure passed
12247 (struct do_dlopen_args): Add new field mode.
12248 (do_dlopen): Pass mode from parameter structure to _dl_open.
12250 2002-11-11 Randolf Chung <tausq@debian.org>
12252 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
12253 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
12254 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
12256 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
12258 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
12259 Set -mdisable-fpregs for this file.
12261 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
12263 * sysdeps/unix/sysv/linux/configure.in:
12264 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
12265 from gcc-3.0 era for backwards compatibility.
12266 * sysdeps/unix/sysv/linux/configure: Regenerate.
12268 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
12269 Define mcontext_t as a sigcontext.
12271 2002-11-18 Roland McGrath <roland@redhat.com>
12273 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
12274 Free memory in `last_result' if it was used.
12276 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
12277 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
12278 Do the parsing inline instead of copying strings and calling
12279 inet_network, and properly skip all alias names not matching the form.
12281 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
12283 2002-11-17 Ulrich Drepper <drepper@redhat.com>
12285 * manual/pattern.texi (Wordexp Example): Fix sample code.
12287 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
12288 childs stack which will be loaded into the %esi register.
12290 2002-11-14 Paul Eggert <eggert@twinsun.com>
12292 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
12293 overflow when skipping the question part and when unpacking aliases.
12295 2002-11-15 Roland McGrath <roland@redhat.com>
12297 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
12298 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
12299 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
12301 2002-11-15 Jakub Jelinek <jakub@redhat.com>
12303 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
12304 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
12306 2002-11-15 Roland McGrath <roland@redhat.com>
12308 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
12309 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
12310 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
12311 (+make-include-of-dep): New canned sequence.
12313 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
12314 From Dmitry V. Levin <ldv@altlinux.org>.
12316 2002-11-14 Roland McGrath <roland@redhat.com>
12318 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
12319 * inet/herrno.c (__libc_h_errno): Likewise.
12320 * resolv/res_libc.c (__libc_res): Likewise.
12321 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
12322 (__res_state) [! USE___THREAD]: Don't define as weak.
12323 * csu/Versions: Revert last change.
12324 * resolv/Versions: Revert last change.
12326 * Makerules ($(common-objpfx)%.make): New pattern rule.
12327 * tls.make.c: New file.
12328 * Makefile (distribute): Add it.
12330 * sysdeps/generic/errno.c [! USE___THREAD]
12331 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
12332 with compat_symbol so they are not link-time visible.
12333 [! USE___THREAD] (__libc_errno): New alias for errno.
12334 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12335 Add __libc_errno here.
12336 * inet/herrno.c [USE___THREAD]: Use this conditional
12337 in place of [USE_TLS && HAVE___THREAD].
12338 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
12339 (h_errno, _h_errno): Declare these with compat_symbol so they are not
12341 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
12342 * resolv/res_libc.c [! USE___THREAD]
12343 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
12344 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
12345 (__libc_res): Define as alias for _res.
12346 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12347 Add __libc_h_errno and __libc_res here.
12349 2002-11-14 Jakub Jelinek <jakub@redhat.com>
12351 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
12352 * resolv/Versions (h_errno, _res): Likewise.
12354 2002-11-14 Roland McGrath <roland@redhat.com>
12356 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
12357 (%.symlist): Likewise.
12359 2002-11-13 Roland McGrath <roland@redhat.com>
12361 * scripts/abilist.awk: New file.
12362 * Makefile (distribute): Add it.
12363 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
12364 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
12365 [$(subdir) = elf] (tests): Depend on libc.symlist.
12366 (generated, common-generated): Add those files.
12368 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
12369 * configure: Regenerated.
12370 * config.make.in (OBJDUMP): New variable, substituted by configure.
12372 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
12373 (mallochook, reallochook): Set them up.
12374 (checkhdr): Check HDR->magic2 value.
12375 (freehook): Reset HDR->magic2.
12376 (memalignhook): New static function.
12377 (old_memalign_hook): New static variable.
12378 (mcheck, reallochook): Set __memalign_hook to memalignhook.
12380 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
12383 2002-11-13 Andreas Jaeger <aj@suse.de>
12385 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
12387 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12389 2002-11-11 Paul Eggert <eggert@twinsun.com>
12391 * manual/crypt.texi (Cryptographic Functions): Mention that
12392 the MD5 one-way algorithm is compatible with BSD's.
12394 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12396 * posix/regex_internal.c (re_string_skip_chars): Also return the last
12398 (re_string_reconstruct): Calculate the context by itself when the
12399 offset points out of the valid range.
12400 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
12401 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
12402 (IS_WIDE_WORD_CHAR): New macro.
12403 (IS_WIDE_NEWLINE): New macro.
12405 2002-11-12 Andreas Jaeger <aj@suse.de>
12407 * sysdeps/x86_64/strchr.S: Don't use one register for two
12408 purposes, this fixes a bug noticed by test-strchr.c.
12410 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
12413 2002-11-12 Roland McGrath <roland@redhat.com>
12415 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
12416 (_G_IO_NO_BACKWARD_COMPAT): Define it.
12418 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
12419 instead of <pt-machine.h>.
12420 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
12422 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12424 2002-11-10 Roland McGrath <roland@redhat.com>
12426 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
12427 Call fputs instead of fwprintf (simpler to follow in debugger).
12429 * crypt/md5-crypt.c: Doc fix.
12431 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
12432 the beginning of generated target commands.
12434 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
12435 dependencies for these in case implicit rule search skipped the
12436 nonexistent source directory.
12437 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
12438 files with $(object-suffixes) as targets too.
12439 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
12440 and a target for it using $(make-target-directory).
12442 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
12444 2002-11-10 Roland McGrath <roland@frob.com>
12446 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
12447 * sysdeps/generic/bits/pthreadtypes.h: ... here.
12449 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
12450 l_start == 0 and l_len == 1 as we do l_len == 0.
12452 2002-11-10 Ulrich Drepper <drepper@redhat.com>
12454 * po/da.po: Update from translation team.
12456 2002-11-10 Roland McGrath <roland@redhat.com>
12458 * config.make.in (includedir): New variable, substituted by configure.
12459 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
12460 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
12462 2002-11-10 Andreas Jaeger <aj@suse.de>
12464 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
12465 REG_OLDMASK and REG_CR2 to synch with kernel header.
12468 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
12470 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
12471 * nss/getnssent_r.c (__nss_getent_r): Likewise.
12472 (__nss_setent): Likewise.
12473 (__nss_getent_r): Likewise.
12474 * inet/getnetgrent_r.c (innetgr): Likewise.
12475 (__internal_setnetgrent_reuse): Likewise.
12476 (internal_getnetgrent_r): Likewise.
12477 * inet/ether_hton.c (ether_hostton): Likewise.
12478 * inet/ether_ntoh.c (ether_ntohost): Likewise.
12479 * sunrpc/netname.c (netname2user): Likewise.
12480 * sunrpc/publickey.c (getpublickey): Likewise.
12481 (getsecretkey): Likewise.
12483 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
12485 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
12486 error in range calculation.
12488 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12490 * string/test-strspn.c (do_test): Ensure zero termination.
12491 * string/test-strpbrk.c (do_test): Likewise.
12492 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
12493 * string/test-strncpy.c (stupid_strncpy): Likewise.
12494 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
12496 2002-10-08 Roland McGrath <roland@redhat.com>
12498 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
12499 nonzero characters.
12501 2002-09-22 H.J. Lu <hjl@gnu.org>
12503 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
12504 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
12505 only if __NR_mmap2 is defined.
12507 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
12508 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
12509 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
12510 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
12512 2002-11-08 Jakub Jelinek <jakub@redhat.com>
12514 * posix/bug-regex13.c (tests): Add new test.
12516 * string/test-strchr.c (stupid_strchr): New function.
12517 (do_random_tests): Make sure the string is zero terminated.
12518 * string/test-strpbrk.c (stupid_strpbrk): New function.
12519 (do_random_tests): Make sure the string is zero terminated.
12520 * string/test-strcmp.c (stupid_strcmp): New function.
12521 (do_random_tests): Make sure the strings are zero terminated.
12522 * string/test-strspn.c (stupid_strspn): New function.
12523 (simple_strspn): Rename rej argument to acc.
12524 (do_random_tests): Make sure the string is zero terminated.
12525 * string/test-strcspn.c (stupid_strcspn): New function.
12526 * string/test-strncpy.c (stupid_strncpy): New function.
12527 * string/test-stpncpy.c (stupid_stpncpy): New function.
12528 * string/test-strncmp.c (stupid_strncmp): New function.
12529 (do_random_tests): Make sure the strings are zero terminated.
12530 * string/test-string.h (impl_t): Change test into long.
12531 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
12533 2002-11-08 Roland McGrath <roland@redhat.com>
12535 * sysdeps/ia64/elf/configure.in: Add TLS check.
12536 From Ian Wienand <ianw@cse.unsw.edu.au>.
12537 * sysdeps/ia64/elf/configure: Regenerated.
12539 2002-11-07 Roland McGrath <roland@redhat.com>
12541 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
12542 place of _IO_new_do_write.
12543 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
12544 #undef before versioned_symbol use.
12546 2002-11-07 Richard Henderson <rth@redhat.com>
12548 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
12549 * configure: Regenerated.
12550 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
12551 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
12552 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
12553 _dl_fini via gp-relative relocations.
12554 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
12556 * elf/tls-macros.h: Add alpha versions.
12557 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
12558 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
12559 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
12560 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
12561 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
12562 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
12563 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
12564 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
12565 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
12566 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
12567 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
12568 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12569 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
12570 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
12571 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
12572 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
12573 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
12574 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
12576 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
12577 Kill argument registers across the inline syscall.
12579 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
12581 * linuxthreads/sysdeps/alpha/tls.h: New file.
12582 * sysdeps/alpha/dl-tls.h: New file.
12584 2002-10-29 David Mosberger <davidm@hpl.hp.com>
12586 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
12587 (gmon_initializer): New function.
12588 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
12589 __gmon_start__ here. Call it from gmon_initializer() instead.
12591 2002-03-12 H.J. Lu <hjl@gnu.org>
12593 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
12594 tst-array2, and tst-array3.
12595 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
12596 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
12597 ($(objpfx)tst-array1.out): New target.
12598 ($(objpfx)tst-array2): Likewise.
12599 ($(objpfx)tst-array2.out): Likewise.
12600 ($(objpfx)tst-array3.out): Likewise.
12601 * elf/tst-array1.c: New file.
12602 * elf/tst-array1.exp: Likewise.
12603 * elf/tst-array2.c: Likewise.
12604 * elf/tst-array2dep.c: Likewise.
12605 * elf/tst-array2.exp: Likewise.
12606 * elf/tst-array3.c: Likewise.
12608 2002-10-28 David Mosberger <davidm@hpl.hp.com>
12610 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
12611 Don't add L->l_addr to array entry values.
12613 2002-11-07 Jakub Jelinek <jakub@redhat.com>
12615 * string/test-string.h: New file.
12616 * string/test-strlen.c: New file.
12617 * string/test-string.h: New file.
12618 * string/test-strcmp.c: New file.
12619 * string/test-strchr.c: New file.
12620 * string/test-strrchr.c: New file.
12621 * string/test-strcpy.c: New file.
12622 * string/test-stpcpy.c: New file.
12623 * string/test-strncpy.c: New file.
12624 * string/test-stpncpy.c: New file.
12625 * string/test-strpbrk.c: New file.
12626 * string/test-strcspn.c: New file.
12627 * string/test-strspn.c: New file.
12628 * string/test-strcat.c: New file.
12629 * string/test-strncmp.c: New file.
12630 * string/test-memchr.c: New file.
12631 * string/test-memcmp.c: New file.
12632 * string/test-memset.c: New file.
12633 * string/test-memcpy.c: New file.
12634 * string/test-mempcpy.c: New file.
12635 * string/test-memmove.c: New file.
12636 * string/Makefile (strop-tests): New variable.
12637 (tests): Add strop-tests.
12638 (distribute): Add test-string.h.
12640 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12642 * posix/regcomp.c: Use tabs instead of spaces.
12643 * posix/regexec.c: Likewise.
12644 * posix/regex_internal.h: Likewise.
12646 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
12648 2002-11-06 Jakub Jelinek <jakub@redhat.com>
12650 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
12652 (regcomp): Don't set can_be_null here.
12653 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
12654 (re_compile_internal): Clear can_be_null, set regs_allocated.
12656 * posix/regcomp.c (re_set_fastmap): New function.
12657 (re_compile_fastmap_iter): Use it. Remove redundant type ==
12658 COMPLEX_BRACKET check.
12659 * posix/regexec.c (re_search_internal): Optimize searching with
12660 fastmap. Call re_string_reconstruct even if match_first is
12661 smaller than raw_mbs_idx.
12663 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
12665 * posix/regcomp (free_dfa_content): Use free_state.
12666 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
12667 pointers in case that realloc failed.
12668 (re_node_set_merge): Likewise.
12669 (register_state): Likewise.
12670 (create_newstate_common): Invoke memory release functions in case of
12672 (create_ci_newstate): Likewise.
12673 (create_cd_newstate): Likewise.
12674 (free_state): New function.
12675 * posix/regexec.c (re_search_internal): Invoke memory release
12676 functions in case of error conditions.
12677 (sift_states_backward): Likewise.
12678 (merge_state_array): Likewise.
12679 (add_epsilon_src_nodes): Likewise.
12680 (sub_epsilon_src_nodes): Likewise.
12681 (search_subexp): Likewise.
12682 (sift_states_bkref): Likewise.
12683 (transit_state_sb): Likewise.
12684 (transit_state_mb): Likewise.
12685 (transit_state_bkref_loop): Likewise.
12686 (group_nodes_into_DFAstates): Likewise.
12687 (push_fail_stack): Don't edit pointers in case that realloc failed.
12688 (extend_buffers): Likewise.
12689 (match_ctx_add_entry): Likewise.
12691 2002-11-06 Roland McGrath <roland@redhat.com>
12693 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
12694 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12696 * configure.in: Add checks on as and ld for binutils 2.13 or later.
12697 * configure: Regenerated.
12699 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12701 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
12702 If re_compile_internal failed free fastmap buffer.
12703 (free_dfa_content): Broken out of regfree function. Frees all dfa
12705 (regfree): Add free_dfa_content.
12706 (re_compile_internal): If any of the called functions fails free
12707 all dfa related memory.
12709 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12711 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
12712 warnings from the kernel headers.
12714 2002-11-05 Roland McGrath <roland@redhat.com>
12716 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
12717 From Johannes Stezenbach <js@convergence.de>.
12719 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
12720 #errlist-compat magic comment to give 123 as size.
12721 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
12722 (libc: GLIBC_2.2): ... here.
12723 (libc: GLIBC_2.3): Likewise.
12725 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12727 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
12728 which happens at the beginning so that we can unload modules in
12731 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12733 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
12734 under [__USE_MISC || _ASM].
12736 * elf/elf.h: Remove the obsolete SH TLS relocations.
12738 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12740 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
12742 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
12745 __NR_pread64 and __NR_pwrite64.
12746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12747 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
12749 Revert change to use INLINE_SYSCALL.
12750 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12751 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12752 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12753 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
12755 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12758 Update clobber list and add a comment about the syscall ABI.
12760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
12761 s_pwrite64, s_ftruncate, s_truncate): Re-add.
12763 2002-11-05 Jakub Jelinek <jakub@redhat.com>
12765 * iconv/gconv_dl.c (free_mem): Clear loaded.
12766 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
12769 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12771 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
12773 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
12774 as old code without locking. _IO_seekoff calls this function after
12775 locking the stream.
12776 * libio/ioseekpos.c: Likewise for _IO_seekpos.
12777 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
12778 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
12780 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
12781 of _IO_seekoff_internal.
12782 (_IO_rewind): Likewise.
12783 * libio/ioftell.c: Likewise.
12784 * libio/ftello.c: Likewise.
12785 * libio/ftello64.c: Likewise.
12786 * libio/iofgetpos.c: Likewise.
12787 * libio/iofgetpos64.c: Likewise.
12788 * libio/oldiofgetpos.c: Likewise.
12789 * libio/oldiofgetpos64.c: Likewise.
12790 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
12791 _IO_seekpos_internal.
12792 * libio/iofsetpos64.c: Likewise.
12793 * libio/oldiofsetpos.c: Likewise.
12794 * libio/oldiofsetpos64.c: Likewise.
12796 2002-11-04 Roland McGrath <roland@redhat.com>
12798 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
12799 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
12800 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
12801 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
12802 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12803 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12804 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12805 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
12806 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
12807 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12808 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
12809 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
12810 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
12811 Remove these, no longer used.
12813 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12815 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
12816 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
12817 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
12818 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
12819 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
12820 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
12823 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
12824 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12825 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
12827 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12828 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
12830 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12832 2002-11-03 Roland McGrath <roland@redhat.com>
12834 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
12835 `_dl_tls_static_used'.
12836 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
12837 (__libc_setup_tls): Initialize it. Let the initial value of
12838 _dl_tls_static_size indicate some surplus space in the computed value.
12839 * elf/dl-open.c (_dl_tls_static_size): New variable.
12840 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
12841 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
12842 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
12843 (CHECK_STATIC_TLS): Use it.
12844 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
12845 closed objects occupied a trailing contiguous chunk of static TLS area.
12847 2002-10-18 Bruno Haible <bruno@clisp.org>
12849 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
12851 2002-11-04 Ulrich Drepper <drepper@redhat.com>
12853 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
12854 _wide_data->_IO_read_end if adjustment can be made in the current
12857 * sysdeps/unix/sysv/linux/fexecve.c: New file.
12859 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
12860 wide oriented streams are used.
12862 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
12863 service hasn't been used [PR libc/4744].
12865 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
12866 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
12868 * manual/examples/dir.c: Don't include <stddef.h>.
12869 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
12870 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
12872 2002-11-02 H.J. Lu <hjl@gnu.org>
12874 * stdio-common/reg-printf.c: Include <stddef.h>.
12876 2002-11-03 Ulrich Drepper <drepper@redhat.com>
12878 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
12880 * po/ca.po: Update from translation team.
12881 * po/es.po: Likewise.
12883 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
12884 is defined write out memory map.
12885 * sysdeps/unix/sysv/linux/segfault.c: New file.
12887 2002-11-02 Roland McGrath <roland@redhat.com>
12889 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
12890 pointers that can alias.
12891 Reported by Daniel Jacobowitz <drow@mvista.com>.
12893 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
12895 2002-11-02 Roland McGrath <roland@redhat.com>
12897 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
12898 description to be clearer and to say that *RESULT is set to ENTRY.
12900 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12902 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
12903 dests_ch arrays together. Alloca or malloc dest_states,
12904 dest_states_word and dest_states_nl arrays together. Free memory on
12907 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
12909 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
12910 and current_saltbits.
12912 2002-11-02 Roland McGrath <roland@redhat.com>
12914 * stdio-common/reg-printf.c: Include <stdlib.h>.
12916 2002-11-02 H.J. Lu <hjl@gnu.org>
12918 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
12919 caller to EXTRA instead of execve.
12921 2002-11-01 Roland McGrath <roland@redhat.com>
12923 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
12924 in place of [!(USE_TLS && HAVE___THREAD)].
12925 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
12927 2002-10-31 Roger Sayle <roger@eyesopen.com>
12929 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
12931 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12933 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
12934 without defining FP_ROUNDMODE.
12936 2002-10-29 Jakub Jelinek <jakub@redhat.com>
12938 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
12939 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
12941 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12942 (OLD_SIGLIST_SIZE): Define.
12943 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12944 (OLD_SIGLIST_SIZE): Define.
12945 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
12947 2002-11-01 Jakub Jelinek <jakub@redhat.com>
12949 * sysdeps/ia64/strncpy.S: Fix recovery code.
12951 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12953 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
12955 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
12957 * elf/dl-libc.c (free_mem): Likewise.
12958 * iconv/gconv_conf.c (free_mem): Likewise.
12959 * iconv/gconv_db.c (free_mem): Likewise.
12960 * iconv/gconv_dl.c (free_mem): Likewise.
12961 * iconv/gconv_cache.c (free_mem): Likewise.
12962 * intl/finddomain.c (free_mem): Likewise.
12963 * intl/dcigettext.c (free_mem): Likewise.
12964 * locale/setlocale.c (free_mem): Likewise.
12965 * misc/fstab.c (fstab_free): Likewise.
12966 * nss/nsswitch.c (free_mem): Likewise.
12967 * posix/regcomp.c (free_mem): Likewise.
12968 * resolv/gai_misc.c (free_res): Likewise.
12969 * stdlib/fmtmsg.c (free_mem): Likewise.
12970 * sunrpc/clnt_perr.c (free_mem): Likewise.
12971 * sysdeps/generic/setenv.c (free_mem): Likewise.
12972 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
12973 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
12974 * time/tzset.c (free_mem): Likewise.
12975 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
12976 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
12977 * malloc/set-freeres.c (__libc_freeres): Likewise.
12979 * login/getutent.c: Include stdlib.h instead of stddef.h.
12980 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12981 (__getutent): Allocate buffer the first time it is run.
12982 * login/getutid.c: Include stdlib.h instead of stddef.h.
12983 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12984 (__getutid): Allocate buffer the first time it is run.
12985 * login/getutline.c: Include stdlib.h instead of stddef.h.
12986 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12987 (__getutline): Allocate buffer the first time it is run.
12988 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
12989 (mtrace): Allocate malloc_trace_buffer.
12990 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
12991 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
12992 * string/strerror.c: Include libintl.h and errno.h.
12993 (buf): New variable.
12994 (strerror): Only allocate buffer if actually needed (unknown error).
12995 * time/tzfile.c (transitions): Add libc_freeres_ptr.
12998 2002-10-25 Jakub Jelinek <jakub@redhat.com>
13000 * include/libc-symbols.h (libc_freeres_ptr): New macro.
13001 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
13003 (__libc_freeres): Free all pointers in that section.
13004 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
13005 commands when creating .lds script.
13006 (LDSEDCMD-c.so): New variable.
13007 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13008 (rcmd_af): Use strdup to allocate ahostbuf.
13009 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13010 (rexec_af): Use strdup to allocate ahostbuf.
13011 * stdio-common/reg-printf.c (printf_funcs): Remove.
13012 (__printf_arginfo_table): Change into printf_arginfo_function **.
13013 Add libc_freeres_ptr.
13014 (__register_printf_function): Allocate __printf_arginfo_table
13015 and __printf_function_table the first time it is called.
13016 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
13017 printf_arginfo_function **.
13018 (parse_one_spec): Add __builtin_expect.
13019 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
13020 (free_mem): Remove.
13021 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
13022 (free_mem): Remove.
13023 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
13024 (string_space, map): Add libc_freeres_ptr.
13025 (free_mem): Remove.
13026 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
13027 (free_mem): Remove.
13028 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
13029 (free_mem): Remove.
13030 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
13031 (buffer): Add libc_freeres_ptr.
13032 (free_mem): Remove for _LIBC.
13033 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
13034 (free_mem): Remove.
13035 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
13036 (free_mem): Remove.
13037 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
13038 (free_mem): Remove.
13039 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
13040 (free_mem): Remove.
13041 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
13042 (free_mem): Remove.
13043 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
13044 (free_mem): Remove.
13045 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
13047 (free_mem): Remove.
13048 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
13050 (free_mem): Remove.
13052 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13054 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
13055 instead of duplicating the whole function in libc.
13057 2002-10-31 Roland McGrath <roland@redhat.com>
13059 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
13060 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
13062 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13064 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
13065 32bit-predefine when creating .new32 list and -U for each
13066 32bit-predefine when creating .new64 list.
13067 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
13069 2002-10-29 Andreas Schwab <schwab@suse.de>
13071 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
13072 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
13074 2002-10-25 Roland McGrath <roland@redhat.com>
13076 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
13077 * sysdeps/unix/sysv/linux/configure: Regenerated.
13079 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
13080 _dl_starting_up decl.
13082 2002-10-20 H.J. Lu <hjl@gnu.org>
13084 * sysdeps/unix/sysv/linux/configure.in: Don't check
13085 /lib/modules/`uname -r`/build/include for kernel headers if
13087 * sysdeps/unix/sysv/linux/configure: Regenerated.
13089 2002-10-25 Roland McGrath <roland@redhat.com>
13091 * math/math.h (M_LOG2El): Correct the value.
13092 From Stephen L Moshier <steve@moshier.net>.
13094 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
13095 conditional from __libc_multiple_libcs access. Remove kludge for weak
13096 symbol access with old compilers we no longer support.
13097 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13098 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
13100 2002-10-25 Roland McGrath <roland@redhat.com>
13102 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
13103 implement SV_RESETHAND by translating it to SA_RESETHAND.
13105 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
13107 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
13108 type on ELF64 platforms.
13110 2002-10-24 Ulrich Drepper <drepper@redhat.com>
13112 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
13114 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
13116 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13118 * elf/dl-misc.c: Include <sysdep.h>.
13119 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
13121 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
13122 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13123 (INLINE_SYSCALL): Use that.
13124 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
13125 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13126 (INLINE_SYSCALL): Use that.
13127 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
13128 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13129 (INLINE_SYSCALL): Use that.
13130 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
13132 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13133 (__INTERNAL_SYSCALL_STRING): Define.
13134 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13136 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13137 (__INTERNAL_SYSCALL_STRING): Define.
13138 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
13139 __SYSCALL_STRING to inline_syscall*.
13140 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
13142 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
13143 inline_syscall4, inline_syscall5, inline_syscall6): Add string
13146 2002-10-24 Roland McGrath <roland@redhat.com>
13148 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
13149 * sysdeps/unix/sysv/linux/init-first.c: Not here.
13150 * sysdeps/powerpc/elf/libc-start.c: Or here.
13151 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
13152 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
13153 * sysdeps/unix/sysv/aix/init-first.c: Or here.
13154 * sysdeps/generic/libc-start.c: Or here.
13155 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
13156 access with [! SHARED].
13157 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13159 * libio/bug-wfflush.c: New file.
13160 * libio/Makefile (tests): Add bug-wfflush.
13162 2002-10-23 Roland McGrath <roland@redhat.com>
13164 * stdio-common/tst-fphex.c: New file.
13165 * stdio-common/Makefile (tests): Add tst-fphex.
13166 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
13167 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
13168 chars always before the value digits.
13169 Reported by James Antill <james.antill@redhat.com>.
13171 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13173 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
13174 (free_mem): New function.
13175 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
13176 if not cross compiling.
13177 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
13178 (bug-regex14-ENV): Set.
13179 (bug-regex14-mem): New target.
13180 * posix/bug-regex14.c: New file.
13182 2002-10-23 Roland McGrath <roland@redhat.com>
13184 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
13185 target, so we don't touch it when the link fails.
13187 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
13188 Check for the result overflowing off_t and fail with EOVERFLOW.
13189 * libio/ioftell.c (_IO_ftell): Likewise.
13190 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
13192 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
13193 use a temporary timeval on the stack for gettimeofday and copy it.
13194 * login/logout.c (logout): Likewise.
13195 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
13197 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
13198 Use __SWORD_TYPE instead of int for member types.
13199 (struct statfs64): Likewise.
13200 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
13201 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
13202 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
13203 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
13204 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
13206 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
13207 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
13208 (ST_NODIRATIME): Restore fixed value of 2048.
13209 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
13210 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
13212 Rearranged <bits/types.h> definitions to reduce duplication.
13213 * sysdeps/generic/bits/types.h: Rewritten, using macros from
13214 <bits/wordsize.h> and new header <bits/typesizes.h>.
13215 * posix/Makefile (headers): Add bits/typesizes.h here.
13216 * sysdeps/generic/bits/typesizes.h: New file.
13217 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
13218 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
13219 * sysdeps/mach/hurd/bits/typesizes.h: New file.
13220 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
13221 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
13222 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
13223 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
13224 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
13225 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
13226 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
13227 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
13228 <bits/pthreadtypes.h> here, not in <bits/types.h>.
13229 * signal/signal.h: Likewise.
13231 * streams/stropts.h: Include <bits/xtitypes.h>.
13232 * streams/Makefile (headers): Add bits/xtitypes.h here.
13233 * sysdeps/generic/bits/xtitypes.h: New file.
13234 * sysdeps/s390/bits/xtitypes.h: New file.
13235 * sysdeps/ia64/bits/xtitypes.h: New file.
13236 * sysdeps/x86_64/bits/xtitypes.h: New file.
13238 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
13239 * sysdeps/generic/bits/ipctypes.h: New file.
13240 * sysdeps/mips/bits/ipctypes.h: New file.
13241 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
13242 * sysdeps/gnu/bits/msq.h: Likewise.
13243 * sysvipc/sys/ipc.h: Likewise.
13245 2002-10-22 Ulrich Drepper <drepper@redhat.com>
13247 * elf/dl-load.c (struct filebuf): For buf element to have the
13248 alignment of ElfXX_Ehdr since this is what will be stored in it.
13250 2002-10-22 Jakub Jelinek <jakub@redhat.com>
13252 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
13253 into pointer to locrec_offset.
13254 (add_locale_to_archive): Adjust callers. Free normalized_name right
13255 before returning, not immediately after add_locale, pass it to
13256 add_alias if not NULL instead of name. Rename second normalized_name
13257 occurence to nnormalized_codeset_name.
13259 * locale/programs/locarchive.c (enlarge_archive): Make sure
13260 string_size is always a multiple of 4.
13261 Reported by Andreas Schwab <schwab@suse.de>.
13263 2002-10-21 Andreas Schwab <schwab@suse.de>
13265 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
13266 caller to EXTRA instead of execve, since the latter has a
13267 higher-priority implementation in linuxthreads.
13269 2002-10-21 Roland McGrath <roland@redhat.com>
13271 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
13272 slotinfo list's len member to the proper size, not just 1.
13273 Initialize static_map.l_tls_initimage.
13275 * elf/dl-open.c (dl_open_worker): Fix loop searching for
13276 dtv_slotinfo_list element containing new modules' l_tls_modid.
13278 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
13279 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
13280 * elf/Makefile (tests): Add tst-tls9.
13281 (tests-static): Add tst-tls9-static.
13282 (tst-tls9-static-ENV): New variable.
13283 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
13285 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
13286 modids used by partially loaded modules being closed can't be known.
13288 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
13290 * posix/Makefile: Add a test case for the bug reported by Aharon
13291 Robbins <arnold@skeeve.com>.
13292 * posix/bug-regex13.c: New file.
13293 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
13295 2002-10-21 Ulrich Drepper <drepper@redhat.com>
13297 * csu/gmon-start.c: Pretty printing.
13299 2002-10-19 Art Haas <ahaas@neosoft.com>
13301 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
13302 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
13303 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
13304 * configure: Regenerated.
13306 2002-10-19 Roland McGrath <roland@redhat.com>
13308 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
13309 and then set $subdirs directly, because the new Autoconf breaks
13310 compatibility in every way imaginable and insists on whining
13311 about usage that worked since the dawn of time.
13312 * configure: Regenerated.
13314 * configure: Regenerated (using Autoconf 2.54).
13315 * sysdeps/alpha/elf/configure: Likewise.
13316 * sysdeps/generic/configure: Likewise.
13317 * sysdeps/i386/elf/configure: Likewise.
13318 * sysdeps/ia64/elf/configure: Likewise.
13319 * sysdeps/mach/hurd/configure: Likewise.
13320 * sysdeps/mach/configure: Likewise.
13321 * sysdeps/unix/configure: Likewise.
13322 * sysdeps/unix/common/configure: Likewise.
13323 * sysdeps/unix/sysv/aix/configure: Likewise.
13324 * sysdeps/unix/sysv/linux/configure: Likewise.
13325 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13326 * sysdeps/x86_64/elf/configure: Likewise.
13328 * config.make.in: Nix completely-soft nonsense.
13329 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
13330 of machine directories instead of fpu subdirectory.
13331 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
13332 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
13333 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
13334 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
13335 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
13336 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
13337 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
13338 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
13339 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
13340 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
13341 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
13342 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
13343 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
13344 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
13345 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
13346 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
13347 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
13348 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
13349 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
13350 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
13351 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
13352 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
13353 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
13354 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
13355 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
13356 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
13357 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
13358 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
13359 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
13360 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
13361 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
13362 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
13363 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
13364 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
13365 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
13366 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
13367 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
13368 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
13369 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
13370 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
13372 2002-10-19 Bruno Haible <bruno@clisp.org>
13374 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
13376 2002-10-18 Roland McGrath <roland@redhat.com>
13378 * io/Makefile (routines): Add lchmod.
13379 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
13380 * sysdeps/generic/lchmod.c: New file.
13381 * sysdeps/mach/hurd/lchmod.c: New file.
13382 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
13384 2002-10-18 Art Haas <ahaas@neosoft.com>
13386 * configure.in: Remove remaining AC_FD_CC macros, and replace
13387 AC_FD_MSG with AS_MESSAGE_FD.
13389 2002-10-18 Roland McGrath <roland@redhat.com>
13391 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
13392 typos: VALUE -> FINALADDR.
13394 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
13395 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
13396 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
13397 (inline_syscall6): Move these macros ...
13398 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
13400 * configure.in (libc_link_dests, libc_link_sources): Remove these
13401 variables and the AC_LINK_FILES call.
13403 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
13404 change to put new symbols here instead of in GLIBC_2.2.
13405 * sysdeps/powerpc/Subdirs: Move this file ...
13406 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
13408 2002-10-07 Roland McGrath <roland@redhat.com>
13410 * sysdeps/generic/bits/time.h: Replaced with contents of the
13411 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
13412 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
13413 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
13414 macros is ok even for architectures that don't now implement them.
13415 * sysdeps/mach/hurd/bits/time.h: File removed.
13416 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
13417 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
13418 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
13419 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
13420 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
13422 2002-10-18 Jeff Bailey <jbailey@gnu.org>
13424 * configure.in: Replace obsolete AC_OUTPUT syntax with
13425 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
13427 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
13428 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
13430 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
13431 * sysdeps/alpha/elf/configure.in: Likewise.
13432 * sysdeps/i386/elf/configure.in: Likewise.
13433 * sysdeps/mach/hurd/configure.in: Likewise.
13434 * sysdeps/x86_64/elf/configure.in: Likewise.
13436 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
13438 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
13439 * sysdeps/generic/configure.in: Likewise.
13440 * sysdeps/i386/elf/configure.in: Likewise.
13441 * sysdeps/ia64/elf/configure.in: Likewise.
13442 * sysdeps/mach/configure.in: Likewise.
13443 * sysdeps/mach/hurd/configure.in: Likewise.
13444 * sysdeps/unix/configure.in: Likewise.
13445 * sysdeps/unix/common/configure.in: Likewise.
13446 * sysdeps/unix/sysv/aix/configure.in: Likewise.
13447 * sysdeps/unix/sysv/linux/configure.in: Likewise.
13448 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
13449 * sysdeps/x86_64/elf/configure.in: Likewise.
13451 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
13452 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
13453 that it's obvious when extra autoconf machinery is being dragged in.
13455 2002-10-18 Roland McGrath <roland@redhat.com>
13457 * configure.in: Remove bogus echo included in
13458 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
13459 * configure: Regenerated.
13461 2002-10-18 Jakub Jelinek <jakub@redhat.com>
13463 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
13464 (statfs_filesize_max): New function.
13465 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
13466 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
13467 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
13468 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
13469 statfs_filesize_max.
13470 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13471 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
13472 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
13474 2002-10-17 Roland McGrath <roland@redhat.com>
13476 * configure.in (MIG): Just AC_SUBST it here.
13477 * configure: Regenerated.
13478 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
13479 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
13480 * sysdeps/mach/configure: Regenerated.
13482 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
13483 and AC_PROVIDE([_AS_CR_PREPARE]).
13485 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
13486 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
13488 * elf/dl-support.c: Move _dl_tls_* variables to ...
13489 * sysdeps/generic/libc-tls.c: ... here.
13491 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
13492 allow IDX to be one past the current last slotinfo entry.
13493 (_dl_close): Pass IMAP->l_init_called for that parameter.
13495 2002-10-07 Andreas Schwab <schwab@suse.de>
13497 * aclocal.m4: Fix for autoconf 2.53.
13498 * configure.in: Likewise. Require autoconf 2.53.
13500 2002-10-08 Richard Henderson <rth@redhat.com>
13502 * soft-fp/op-4.h: Handle carry correctly in
13503 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
13504 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
13505 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
13507 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13509 * configure.in: Compute completely-soft.
13510 * config.make.in: Make completely-soft available to sub-makes.
13511 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
13512 gcc-double-routines. Add sim-full.c. Add fenv_const and
13513 fe_nomask to libm-support.
13514 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
13515 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
13516 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
13517 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
13518 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
13519 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
13520 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
13521 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
13522 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
13523 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
13524 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
13525 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
13526 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
13527 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
13528 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
13529 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
13530 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
13531 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
13532 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
13533 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
13535 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
13536 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
13537 FP_HANDLE_EXCEPTIONS.
13538 Define FP_ROUNDMODE.
13539 Redefine FP_* macros to correspond to the FE_* bit positions.
13540 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
13541 Define externs for __sim_exceptions, __sim_disabled_exceptions,
13542 __sim_round_mode, __simulate_exceptions.
13543 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
13544 * sysdeps/powerpc/bits/fenv.h: ...to here.
13546 2002-10-06 Jakub Jelinek <jakub@redhat.com>
13548 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13549 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
13550 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
13551 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
13554 2002-10-15 Jakub Jelinek <jakub@redhat.com>
13556 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
13557 __libc_res_nsend): New prototypes.
13558 * resolv/res_query.c (QUERYSIZE): Define.
13559 (__libc_res_nquery): Renamed from res_nquery. Added answerp
13560 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
13561 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
13562 res_nsend, pass answerp.
13563 (res_nquery): Changed into wrapper around __libc_res_nquery.
13564 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
13565 argument. Call __libc_res_nquerydomain and __libc_res_nquery
13566 instead of the non-__libc_ variants, pass them answerp.
13567 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
13568 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
13569 Added answerp argument. Call __libc_res_nquery instead of
13570 res_nquery, pass answerp.
13571 (res_nquerydomain): Changed into wrapper around
13572 __libc_res_nquerydomain.
13573 * resolv/res_send.c: Include sys/ioctl.h.
13574 (MAXPACKET): Define.
13575 (send_vc): Change arguments. Reallocate answer buffer if it is
13577 (send_dg): Likewise.
13578 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
13579 Reallocate answer buffer if it is too small and hooks are in use.
13580 Adjust calls to send_vc and send_dg.
13581 (res_nsend): Changed into wrapper around __libc_res_nsend.
13582 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
13583 just 1K answer buffer on the stack, use __libc_res_nsearch instead
13585 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
13586 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
13587 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
13588 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
13589 (gethostbyaddr): Similarly with __libc_res_nquery.
13590 * resolv/Versions (libresolv): Export __libc_res_nquery and
13591 __libc_res_nsearch at GLIBC_PRIVATE.
13593 2002-10-17 Roland McGrath <roland@redhat.com>
13595 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
13596 * configure: Regenerated.
13598 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
13599 before performing the reloc, not after.
13600 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13602 2002-10-17 Ulrich Drepper <drepper@redhat.com>
13604 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
13605 * locale/programs/linereader.c (lr_open): Likewise.
13606 * locale/programs/charmap-dir.c (charmap_open): Likewise.
13607 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13609 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
13611 * posix/bug-regex11.c: Add a test case for the bug reported by
13612 Paolo Bonzini <bonzini@gnu.org>.
13613 * posix/regexec.c (sift_states_bkref): Use correct destination of
13614 the back reference.
13616 2002-10-17 Roland McGrath <roland@redhat.com>
13618 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
13619 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
13620 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
13621 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
13622 Call it after performing TPOFF relocs.
13623 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13624 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13625 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
13627 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
13628 when closing a partially-initialized object.
13630 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
13631 instead of _dl_fatal_printf when we see PT_TLS.
13633 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
13634 instead of $(libof-$<).
13636 2002-10-16 Roland McGrath <roland@redhat.com>
13638 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
13639 instead of += to append, to be sure $(lib) gets expanded at defn time.
13640 (libof-$(cpp-src)): New variable, define this instead.
13641 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
13642 (lib): Don't use override.
13643 (CPPFLAGS-$(lib)): New variable, put -D's here.
13644 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
13645 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
13646 LIB found by $(libof-*) for basename, target, or source.
13647 * Makerules (CPPFLAGS-nonlib): New variable.
13648 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
13649 * locale/Makefile (lib): Likewise.
13650 * sunrpc/Makefile (lib): Likewise.
13652 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
13653 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
13654 * sysdeps/unix/sysv/linux/pathconf.h: New file.
13655 (statfs_link_max): New function, guts from fpathconf.c.
13656 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
13657 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13658 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
13659 to use the linux/pathconf.c code by #include rather than duplication.
13660 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
13662 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13664 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13665 Use __libc_errno only for libc itself.
13667 2002-10-16 Andreas Jaeger <aj@suse.de>
13669 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
13671 2002-10-16 Ulrich Drepper <drepper@redhat.com>
13673 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13674 Use __libc_errno only for libc itself.
13676 2002-10-15 Roland McGrath <roland@redhat.com>
13677 Jakub Jelinek <jakub@redhat.com>
13679 * sysdeps/unix/sysv/linux/Makefile
13680 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
13681 sparc/Makefile to produce a bi-arch file as needed.
13682 That's now parameterized by the variable $(64bit-predefine).
13683 Use LC_ALL=C for `comm' commands in that rule.
13684 No longer conditional on [$(no_syscall_list_h)].
13685 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
13686 (64bit-predefine): New variable.
13687 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
13688 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
13689 * sysdeps/unix/sysv/linux/powerpc/Makefile
13690 (64bit-predefine): New variable.
13692 2002-10-15 Roland McGrath <roland@redhat.com>
13694 * sysdeps/unix/sysv/linux/Makefile
13695 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
13697 * login/utmp-private.h: Declare __libc_utmp_lock.
13698 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
13699 and call __libc_utmp_jump_table functions directly, instead of using
13702 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
13703 * sysdeps/unix/sysv/linux/configure: Regenerated.
13705 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
13706 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13707 Use int32_t for ll_time.
13708 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13709 Use int32_t instead of long int for ut_session.
13710 Use an anonymous struct with 32-bit fields for ut_tv.
13711 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
13712 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
13713 here as in utmp.h for `struct utmp'.
13714 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
13715 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
13716 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
13717 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
13718 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
13719 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
13721 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
13722 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
13723 All the following files were identical or equivalent to it.
13724 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
13725 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
13726 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
13727 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
13728 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
13729 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
13730 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
13731 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
13732 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
13733 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
13735 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
13736 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
13737 Other than the previously incorrect sign of msg_iovlen, this is a
13738 no-op on 32-bit platforms. On 64-bit platforms it makes this header
13739 match their layouts as well, so the following are now identical to it.
13740 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
13741 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
13742 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
13743 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
13744 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
13746 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13748 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
13749 Define for 2.4+ kernels.
13751 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
13752 are known to have the vfork syscall. Don't confuse the CPUs
13753 branch prediction unit by jumping to the return address.
13755 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
13756 support for reiserfs and xfs.
13758 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
13760 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
13762 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
13764 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13766 * include/libc-symbols.h (attribute_tls_model_ie): Define.
13767 * include/errno.h (errno): Define to __libc_errno in libc.so.
13768 Add attribute_tls_model_ie.
13769 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
13770 Add attribute_tls_model_ie.
13771 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
13772 attribute_tls_model_ie.
13773 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
13775 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
13777 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
13778 attribute_tls_model_ie.
13779 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
13781 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
13782 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
13783 __libc_errno in USE___THREAD case.
13784 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13786 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
13787 __attribute__((tls_model (""))).
13788 * configure: Rebuilt.
13789 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
13791 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13793 * timezone/asia: Update from tzdata2002d.
13794 * timezone/australasia: Likewise.
13795 * timezone/iso3166.tab: Likewise.
13796 * timezone/southamerica: Likewise.
13797 * timezone/zone-tab: Likewise.
13799 2002-10-15 Roland McGrath <roland@redhat.com>
13801 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
13802 Adjust TCB pointer before calling free, so we get the whole block.
13804 2002-10-14 Roland McGrath <roland@redhat.com>
13806 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
13807 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
13808 extern using attribute_hidden instead of static, avoids warning.
13810 2002-10-09 Jakub Jelinek <jakub@redhat.com>
13812 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
13813 * sysdeps/unix/sysv/linux/configure: Rebuilt.
13815 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13817 * po/sv.po: Update from translation team.
13819 2002-10-12 H.J. Lu <hjl@gnu.org>
13821 * sunrpc/thrsvc.c (PROCQUIT): New.
13822 (struct rpc_arg): New.
13823 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
13824 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
13825 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
13826 (main): Modified for struct rpc_arg *.
13828 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13830 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
13832 2002-10-14 Jakub Jelinek <jakub@redhat.com>
13834 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
13835 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
13836 in ld.so even if __thread is supported.
13838 2002-10-13 Jakub Jelinek <jakub@redhat.com>
13840 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
13841 Add hack to prevent the compiler from clobbering the signal context.
13842 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
13844 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
13847 2002-10-14 Andreas Jaeger <aj@suse.de>
13849 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
13850 Guido Guenther <agx@sigxcpu.org>.
13852 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13854 * po/sk.po: Update from translation team.
13856 2002-09-26 Roland McGrath <roland@redhat.com>
13858 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
13859 dynamic string tag.
13860 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
13861 DL_DST_LIB based on $(slibdir).
13863 2002-10-13 Roland McGrath <roland@frob.com>
13865 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
13867 * sysdeps/mach/hurd/getresuid.c: New file.
13868 * sysdeps/mach/hurd/getresgid.c: New file.
13869 * sysdeps/mach/hurd/setresuid.c: New file.
13870 * sysdeps/mach/hurd/setresgid.c: New file.
13872 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
13873 setresgid): Declare them.
13874 * NEWS: Mention it.
13876 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
13877 add libc_hidden_proto.
13878 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
13879 getresuid, getresgid, setresuid, setresgid here.
13880 * Versions.def (libc): Define GLIBC_2.3.2 set.
13881 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
13882 Add libc_hidden_def.
13883 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
13884 * sysdeps/generic/setresgid.c: New file.
13885 * sysdeps/generic/setresuid.c: New file.
13886 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13887 (sysdep_routines): Don't add getresuid and getresgid here.
13888 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
13889 (sysdep_routines): Don't add setresuid and setresgid here.
13890 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13891 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13892 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13893 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13894 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13895 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13896 * posix/Makefile (routines): Add them all here instead.
13897 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
13898 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
13899 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
13900 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
13901 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
13902 [! __NR_setresuid]: Include generic file.
13903 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
13904 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
13905 [! __NR_setresuid]: Include generic file.
13906 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
13907 Caller is - now, not EXTRA.
13908 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
13909 (setresuid, setresgid, getresuid, getresgid): Likewise.
13910 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
13911 Add these calls here.
13912 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
13913 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
13914 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13915 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13916 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
13919 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
13920 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13922 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13923 (sysdep_routines): Add setfsuid and setfsgid here.
13924 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
13925 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
13926 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13927 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13928 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13929 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13930 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13931 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13933 * hurd/errno.c: Renamed to ...
13934 * hurd/errno-loc.c: ... this.
13935 * hurd/Makefile (routines): errno -> errno-loc
13937 2002-10-13 Ulrich Drepper <drepper@redhat.com>
13939 * po/de.po: Update from translation team.
13941 * MakeTAGS: Add -E flag to xgettext runs.
13943 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13945 * po/fr.po: Update from translation team.
13947 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
13948 Optimize a bit for use in glibc.
13950 2002-10-12 Roland McGrath <roland@redhat.com>
13952 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
13953 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
13955 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13957 * po/sv.po: Update from translation team.
13959 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13961 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
13963 (regfree): Likewise.
13964 (create_initial_state): Likewise.
13965 (analyze): Remove the substitutions which became useless.
13966 (calc_first): Likewise.
13967 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
13968 epsilon destination.
13969 (duplicate_node_closure): New function.
13970 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
13971 (calc_inveclosure): Likewise.
13972 (calc_eclosure): Likewise.
13973 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
13974 direct invocation of duplicate_node.
13975 (parse): Don't use comma operator in the return to avoid compiler
13977 (parse_reg_exp): Likewise.
13978 (parse_branch): Likewise.
13979 (parse_expression): Likewise.
13980 (parse_sub_exp): Likewise.
13981 (parse_dup_op): Likewise.
13982 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
13983 which became useless.
13984 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
13985 (create_cd_newstate): Likewise.
13986 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
13987 (re_token_t): Likewise.
13988 (re_dfa_t): Likewise.
13989 (re_node_set_remove): New macro.
13990 * posix/regexec.c (check_matching): Remove the handling
13992 (check_halt_node_context): Likewise.
13993 (proceed_next_node): Likewise.
13994 (pop_fail_stack): Fix the memory leak.
13995 (set_regs): Likewise.
13996 (free_fail_stack_return): New function.
13997 (sift_states_backward): Fix the memory leak. Remove the handling
13999 (update_cur_sifted_state): Append some if clause to avoid redundant
14001 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
14003 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
14004 (check_subexp_limits): Likewise.
14005 (search_subexp): Likewise.
14006 (sift_states_bkref): Likewise.
14007 (transit_state_mb): Likewise.
14008 (transit_state_bkref_loop): Likewise.
14009 (transit_state_bkref_loop): Likewise.
14010 (group_nodes_into_DFAstates): Likewise.
14011 (check_node_accept): Likewise.
14012 (sift_ctx_init): Add initializing.
14014 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14016 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
14019 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14021 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
14022 duplicated variable c.
14024 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
14027 * sysdeps/unix/sysv/linux/i386/sysdep.h
14028 (INTERNAL_SYSCALL_ERROR_P): New define.
14029 (INTERNAL_SYSCALL_ERRNO): Likewise.
14031 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
14032 Add hack to prevent the compiler from clobbering the signal context.
14034 2002-10-11 Roland McGrath <roland@redhat.com>
14036 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14039 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
14040 * sysdeps/sh/dl-lookupcfg.h: File removed.
14041 * sysdeps/i386/dl-lookupcfg.h: File removed.
14043 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
14044 missing labels and ; from last change.
14046 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
14047 number literals, so they are doubles instead of ints.
14049 2002-10-09 Roland McGrath <roland@redhat.com>
14051 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
14052 changed from [USE_TLS && HAVE___THREAD].
14054 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
14055 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
14056 * sysdeps/x86_64/dl-machine.h
14057 (elf_machine_type_class, elf_machine_rela): Likewise.
14058 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
14061 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
14062 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
14063 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
14065 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
14066 instead of ___tls_get_addr.
14067 (___tls_get_addr_internal): Add attribute_hidden to decl.
14069 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
14070 _dl_error_catch_tsd.
14071 * elf/rtld.c (startup_error_tsd): New function.
14072 (dl_main): Point _dl_error_catch_tsd at that.
14073 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
14074 use new function pointer instead.
14075 * elf/dl-tsd.c: New file.
14076 * elf/Makefile (routines): Add it.
14078 2002-10-07 Roland McGrath <roland@redhat.com>
14080 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
14081 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
14082 take _dl_load_lock around calling __writev.
14084 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
14085 (INLINE_SYSCALL): Use that.
14087 * sysdeps/generic/dl-sysdep.h: New file.
14088 * sysdeps/mach/hurd/dl-sysdep.h: New file.
14089 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
14090 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
14091 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
14092 access it directly.
14093 * elf/dl-minimal.c (__errno_location): Removed.
14094 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14095 Use GOTOFF access for errno.
14096 * sysdeps/unix/sysv/linux/i386/sysdep.h
14097 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14099 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14100 Use PC-relative access for errno.
14101 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14102 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14104 * include/tls.h: New file.
14105 (USE___THREAD): New macro.
14106 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
14107 libc or libpthread.
14108 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
14109 changed from [USE_TLS && HAVE___THREAD].
14110 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14111 * sysdeps/unix/i386/sysdep.S: Likewise.
14112 * sysdeps/unix/x86_64/sysdep.S: Likewise.
14113 * include/errno.h: Likewise.
14114 * include/netdb.h: Likewise.
14115 * include/resolv.h: Likewise.
14117 * sysdeps/generic/errno.c: New file.
14118 * csu/Makefile (aux): New variable, list errno.
14119 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
14120 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
14121 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
14122 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14123 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14124 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
14125 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
14126 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
14127 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14128 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
14129 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
14130 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
14131 * sysdeps/unix/alpha/sysdep.S: Likewise.
14132 * sysdeps/generic/start.c: Likewise.
14133 * sysdeps/unix/start.c: Likewise.
14134 * sysdeps/unix/arm/start.c: Likewise.
14135 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
14136 * sysdeps/unix/sparc/start.c: Likewise.
14137 * sysdeps/unix/sysv/irix4/start.c: Likewise.
14138 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
14140 * manual/search.texi (Tree Search Function, Hash Search Function):
14141 Mention search.h clearly.
14143 2002-10-05 Roland McGrath <roland@redhat.com>
14145 * elf/dl-fxstat64.c: File removed.
14146 * elf/dl-xstat64.c: File removed.
14147 * elf/Makefile (rtld-routines): Remove them.
14148 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
14149 Instead, use strong_alias instead of versioned_symbol in the
14150 !SHLIB_COMPAT case.
14151 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
14152 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
14154 * include/shlib-compat.h
14155 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
14156 [! NOT_IN_libc] (IS_IN_libc): Define it.
14157 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
14158 * elf/Makefile (CPPFLAGS-.os): Likewise.
14160 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
14161 Return the status instead of calling exit.
14163 * Makeconfig (CFLAGS): Prepend -std=gnu99.
14164 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
14165 Remove superfluous rm command, whose @ plus make bugs hid
14166 all these commands from the make output.
14168 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
14169 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
14170 Use that file's contents instead of literal echo's for the prologue.
14171 * include/features.h: Include <gnu/stubs.h> unconditionally.
14172 * include/gnu/stubs.h: New file.
14174 2002-09-30 Roland McGrath <roland@redhat.com>
14176 * elf/rtld-Rules: New file.
14177 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
14178 $(objpfx)rtld-libc.a): New targets.
14179 (generated): Add them.
14180 (reloc-link): Remove -o $@ from the variable.
14181 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
14182 (distribute): Add rtld-Rules.
14183 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
14184 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
14185 (common-mostlyclean, common-clean): Clean up rtld-* files.
14186 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
14188 2003-05-20 Jakub Jelinek <jakub@redhat.com>
14190 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
14191 If temp != NULL, copy dynamic entries which need relocation to temp
14192 array before relocating.
14193 (DL_RO_DYN_TEMP_CNT): Define.
14194 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
14195 * elf/rtld.c (_dl_start): Likewise.
14196 (dl_main): Likewise. Add dyn_temp static variable.
14198 2002-10-11 Roland McGrath <roland@redhat.com>
14200 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
14201 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
14203 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
14204 proper set of no-op insn prefixes.
14206 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
14208 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14210 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
14211 __pthread_kill_other_threads_np.
14213 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
14215 2002-10-08 Roland McGrath <roland@redhat.com>
14217 * locale/newlocale.c (__newlocale): If setting all categories to "C",
14218 just return &_nl_C_locobj instead of copying it.
14219 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
14220 * locale/duplocale.c (__duplocale): Likewise.
14222 2002-10-07 Roland McGrath <roland@frob.com>
14224 * config.h.in (HAVE_I386_SET_GDT): New #undef.
14225 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
14226 * sysdeps/mach/configure: Regenerated.
14228 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14231 Add all necessary register outputs for syscall-clobbered registers.
14233 2002-10-02 David Mosberger <davidm@hpl.hp.com>
14235 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
14236 Itanium 2 (and Itanium).
14237 Fix unwind directives and make it fit in 80 columns.
14238 * sysdeps/ia64/memset.S: Likewise.
14239 * sysdeps/ia64/memcpy.S: Likewise.
14240 Move jump table to .rodata section.
14242 2002-10-03 Roland McGrath <roland@frob.com>
14244 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
14247 2002-10-10 Andreas Jaeger <aj@suse.de>
14249 * sysdeps/x86_64/_mcount.S: Restore correct registers.
14251 2002-10-10 Ulrich Drepper <drepper@redhat.com>
14253 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
14255 2002-10-09 Ulrich Drepper <drepper@redhat.com>
14257 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
14258 _dl_allocate_tls_init. Add rtld_hidden_proto.
14259 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
14261 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
14263 * version.h (VERSION): Bump to 2.3.1.
14265 * Make-dist: Add back one of the tar invocations removed before.
14267 * stdlib/Makefile (distribute): Add allocalim.h.
14269 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
14270 (__libc_tsd_address): Use correct variable name.
14271 Patch by Stefan Jones <stefan.jones@multigig.com>.
14273 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
14274 Reported by edwardsg@sgi.com [PR libc/4678].
14276 * Versions.def (libc): Add GLIBC_2.3.1.
14277 (libpthread): Add GLIBC_2.3.1.
14279 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
14280 and __sigtimedwait.
14281 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
14282 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
14284 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
14285 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
14287 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
14288 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
14289 and make old name an alias.
14290 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
14291 and make old name an alias.
14292 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
14295 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
14296 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
14298 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
14300 * sysdeps/posix/readv.c: Likewise
14301 * sysdeps/unix/sysv/aix/readv.c: Likewise.
14302 * sysdeps/unix/sysv/linux/readv.c: Likewise.
14303 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
14305 * sysdeps/posix/writev.c: Likewise
14306 * sysdeps/unix/sysv/aix/writev.c: Likewise.
14307 * sysdeps/unix/sysv/linux/writev.c: Likewise.
14309 * include/sys/wait.h: Declare __waitid.
14310 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
14311 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
14313 * sysdeps/posix/waitid.c: Likewise.
14314 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
14316 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
14318 2002-10-07 Jakub Jelinek <jakub@redhat.com>
14320 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
14322 (__MAX_ALLOCA_CUTOFF): Define.
14323 Include allocalim.h.
14324 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
14325 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
14326 host_buffer depending on __libc_use_alloca.
14327 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
14328 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
14329 net_buffer depending on __libc_use_alloca.
14330 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
14331 buf depending on __libc_use_alloca.
14332 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
14333 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
14334 instead of hardcoded constants.
14335 Pass proper size argument to alloca and compute end for wide char
14337 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
14338 instead of hardcoded constants.
14339 * string/strcoll.c (strcoll): Likewise.
14340 * string/strxfrm.c (strxfrm): Likewise.
14341 * sysdeps/posix/readv.c (__readv): Likewise.
14342 * sysdeps/posix/writev.c (__writev): Likewise.
14343 * sysdeps/generic/allocalim.h: New file.
14345 2002-10-08 Roland McGrath <roland@redhat.com>
14347 * configure.in (aux_missing warning): Change "too old" to
14348 "incompatible versions", since for autoconf it's "too new" right now.
14349 * configure: Regenerated.
14351 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
14352 one found doesn't work on our configure.in.
14353 * configure: Regenerated.
14354 * config.make.in (AUTOCONF): New substituted variable.
14355 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
14356 (autoconf-it): ... here, use that instead of defining conditionally.
14357 Use $(AUTOCONF) instead of literal autoconf.
14358 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
14359 with this condition.
14360 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
14362 2002-10-08 Ulrich Drepper <drepper@redhat.com>
14364 * Make-dist (dist): Cleanup a bit. We are not interested in the
14365 14 char filename limit anymore. Remove intermediate files and
14368 2002-10-05 Ulrich Drepper <drepper@redhat.com>
14370 * po/sk.po: Update from translation team.
14371 * po/tr.po: Likewise.
14372 * po/gl.po: Likewise.
14374 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14376 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
14378 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14380 * version.h (RELEASE): Change to stable.
14382 2002-10-03 Jakub Jelinek <jakub@redhat.com>
14384 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
14385 __syscall_exit_group): New prototypes.
14387 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14389 * glibc 2.3 released.
14392 See ChangeLog.13 for earlier changes.