1 2004-02-03 Thorsten Kukuk <kukuk@suse.de>
3 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
4 of duplicated code from __yp_bind.
5 (__yp_bind_file): New, binding dir code from __yp_bind.
6 (__yp_bind_client_create): New, ypbind code from __yp_bind.
7 (__ypclnt_call): New, make NIS query.
8 (do_ypcall): At first use cached data, then try data from
9 binding directory, after this ask ypbind for a working ypserv.
10 Based on a patch from Jeff Bastian <jmbastia@ti.com> and
11 Chris Barrera <cbarrera@ti.com>
13 2004-01-19 Roland McGrath <roland@redhat.com>
15 * configure.in: Don't set CCVERSION.
16 * configure: Regenerated.
17 * glibcbug.in: File removed.
18 * Makefile (install-bin-script): Remove glibcbug.
19 (glibcbug): Target removed.
20 (distclean-1): Don't rm glibcbug.
21 (distribute): Remove glibcbug.in.
23 2004-02-09 Roland McGrath <roland@redhat.com>
25 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
28 2004-01-29 Roland McGrath <roland@redhat.com>
30 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
31 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
33 2004-02-09 Ulrich Drepper <drepper@redhat.com>
35 * libio/genops.c (_IO_cleanup): Do not use locking when flushing
36 the buffers. Some thread might be using a stream.
38 2004-02-09 Andreas Jaeger <aj@suse.de>
40 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
41 Patch by Jan Beulich <jbeulich@novell.com>.
43 2004-02-09 Andreas Schwab <schwab@suse.de>
45 * include/rpc/rpc.h: Declare thread variables with their correct
47 * sunrpc/clnt_perr.c: Don't cast thread variables.
48 * sunrpc/clnt_raw.c: Likewise.
49 * sunrpc/clnt_simp.c: Likewise.
50 * sunrpc/key_call.c: Likewise.
51 * sunrpc/svcauth_des.c: Likewise.
52 * sunrpc/svc.c: Likewise.
53 * sunrpc/svc_raw.c: Likewise.
54 * sunrpc/svc_simple.c: Likewise.
56 2004-02-09 Ulrich Drepper <drepper@redhat.com>
58 * stdio-common/_i18n_number.h: Support printing localized decimal
59 point and thousand separator.
60 * wctype/wctrans.c: Add __wctrans alias.
61 * include/wctype.h: Declare __wctrans.
62 Based on a patch by Hamed Malek.
64 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
65 other than the status bits [BZ #10].
67 2004-02-08 Ulrich Drepper <drepper@redhat.com>
69 Make stream locking operations really work.
70 * misc/Makefile (CFLAGS-mntent_r.c): Define.
71 * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
72 (CFLAGS-putspent.c): Define.
73 * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
74 (CFLAGS-putgrent.c): Define.
75 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
76 Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
78 * elf/dl-load.c (lose): Use noinline attribute instead of silly
79 alloca to prevent inlining.
80 * elf/dl-runtime.c (fixup): Likewise.
81 (profile_fixup): Likewise.
83 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
84 Initialize width correctly.
86 2004-02-07 Andreas Jaeger <aj@suse.de>
88 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
90 (internal_ucs4le_loop_single): Likewise.
91 (ucs4_internal_loop): Likewise.
93 (internal_ucs4_loop_single): Likewise.
94 * iconvdata/iso8859-1.c (BODY): Likewise.
95 * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
96 * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
97 * iconvdata/gb18030.c (BODY): Likewise.
98 * iconvdata/armscii-8.c (BODY): Likewise.
99 * stdlib/msort.c (msort_with_tmp): Likewise.
101 * iconv/gconv_open.c (__gconv_open): Remove conditional expression
104 2004-02-06 Steven Munroe <sjmunroe@us.ibm.com>
106 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
108 (__elf_machine_runtime_setup): Invalidate the instruction cache over
109 the whole range of the PLT.
111 2004-02-06 Andreas Schwab <schwab@suse.de>
113 * posix/regcomp.c (build_range_exp): Fix off-by-one.
114 (parse_bracket_exp): Likewise.
116 2004-02-05 Ulrich Drepper <drepper@redhat.com>
118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
119 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard.
121 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
123 * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
124 (re_search_internal): Pass new parameter to check_matching.
125 (check_matching): Unless a parenthesized group is found at the
126 beginning of the regexp, advance P_MATCH_FIRST until we entered
127 a state different from the initial state.
129 2004-02-01 Ulrich Drepper <drepper@redhat.com>
131 * math/libm-test.inc (lround_test): Add new test.
132 (llround_test): Likewise.
133 (lrint_test): Likewise.
134 (llrint_test): Likewise.
135 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
136 with result taking up 20 bits.
137 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
138 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
139 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
140 case with result taking up 31 bits.
141 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
143 * po/nl.po: Update from translation team.
145 2004-01-30 Andreas Schwab <schwab@suse.de>
147 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
148 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
149 SEGV_PSTKOVF): Remove underscore prefix from definition.
151 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
153 Merge regex changes in gawk.
154 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
155 of collation elements.
156 * posix/regex.c: Include limits.h.
157 * posix/regex.h: Document REG_ECOLLATE correctly.
158 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
160 2004-01-24 Andreas Jaeger <aj@suse.de>
162 * malloc/obstack.h: Import gnulib version.
163 * malloc/obstack.c: Likewise.
165 2004-01-26 David Mosberger <davidm@hpl.hp.com>
167 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
168 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
169 increment dl_load_adds.
170 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
171 with equivalent GL(dl_load_adds - GL(dl_nloaded).
172 (dl_iterate_phdr): Likewise.
173 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
174 * elf/dl-support.c: Remove global variable _dl_load_subs.
175 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
176 _dl_load_subs member.
178 2004-01-27 Jakub Jelinek <jakub@redhat.com>
180 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
181 (_dl_start): And neither here.
182 (dl_main): Set GL(dl_loaded)->l_relro_* and
183 GL(dl_rtld_map)->l_relro_*.
185 2004-01-23 David Mosberger <davidm@hpl.hp.com>
187 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
188 _dl_load_adds and _dl_load_subs.
189 * elf/dl-support.c (_dl_load_adds): New variable.
190 (_dl_load_subs): Likewise.
191 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
192 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
193 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
195 * include/link.h: Likewise.
196 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
197 and dlpi_subs members.
198 (dl_iterate_phdr): Likewise.
199 * elf/tst-dlmodcount.c: New file.
200 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
201 (tests): If build-shared, mention tst-dlmodcount.
202 ($(objpfx)tst-dlmodcount): If build-shared, build and
205 2004-01-22 Jakub Jelinek <jakub@redhat.com>
207 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
209 (_dl_protect_relro): New routine.
210 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
211 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
213 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
214 Call _dl_protect_relro for libraries if prelinking.
216 2004-01-23 Richard Henderson <rth@redhat.com>
218 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
219 * sysdeps/alpha/fpu/Versions (libm): Likewise.
220 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
221 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
223 2004-01-22 Andreas Jaeger <aj@suse.de>
225 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
226 avoid warnings for builtin function log2.
228 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
231 2004-01-20 Ulrich Drepper <drepper@redhat.com>
233 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
234 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
235 Patch by Davide Libenzi.
237 * sysdeps/unix/sysv/linux/kernel-features.h: Define
238 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
240 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
242 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
243 instead of loff_t. Include <fcntl.h>.
244 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
245 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
246 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
247 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
248 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
249 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
250 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
251 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
252 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
253 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
254 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
255 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
257 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
259 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
261 2003-12-31 Bruno Haible <bruno@clisp.org>
263 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
264 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
265 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
266 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
267 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
268 0x00 0x20. Don't map U+2500..U+25E3.
270 2004-01-19 Jakub Jelinek <jakub@redhat.com>
272 * posix/regexec.c (get_subexp): Remove bkref_str variable.
273 Extend buffers if needed before comparisons.
274 (get_subexp_sub): Handle clean_state_log_if_needed failure.
276 2004-01-17 Ulrich Drepper <drepper@redhat.com>
278 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
279 atomic_decrement. Patch by Davin McCall.
281 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
283 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
284 (__sim_disabled_exceptions, __sim_round_mode): Declare with
285 hidden data and nocommon.
286 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
287 (__sim_disabled_exceptions, __sim_round_mode): Use
289 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
290 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
292 2004-01-16 Ulrich Drepper <drepper@redhat.com>
294 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
297 2004-01-16 Richard Henderson <rth@redhat.com>
299 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
300 (__libc_enable_secure_internal): Likewise.
302 * elf/dl-load.c: Don't declare __libc_stack_end.
303 * sysdeps/generic/libc-start.c: Likewise.
304 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
305 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
306 * sysdeps/generic/backtrace.c: Likewise.
308 2004-01-15 Ulrich Drepper <drepper@redhat.com>
310 * Versions.def: Add GLIBC_2.3.4.
312 2004-01-15 Richard Henderson <rth@redhat.com>
314 * sysdeps/unix/alpha/sysdep.h: Revert last change.
316 2004-01-15 Richard Henderson <rth@redhat.com>
318 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
320 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
323 2004-01-15 Richard Henderson <rth@redhat.com>
325 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
326 ucontext-offsets.sym.
327 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
328 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
329 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
330 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
331 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
333 2004-01-15 Richard Henderson <rth@redhat.com>
335 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
336 __syscall_, move nop inside, adjust users by +4.
338 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
340 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
341 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
342 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
344 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
345 gen-as-const-headers.
346 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
347 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
348 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
349 * sysdeps/unix/sysv/linux/kernel-features.h
350 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
351 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
352 Declare mcontext_t inline and include altivec state for 64-bit.
353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
354 versions for setcontext, getcontext, and swapcontext.
356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
357 versions for setcontext, getcontext, swapcontext, and makecontext.
358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
359 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
360 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
361 Compatible with GLIBC_2.3.3 release.
362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
363 (__makecontext): Use parm save area instead of compiler_dw to hold
365 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
366 (__setcontext): Upgrade to restore Altivec regs and version
368 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
369 Compatible with GLIBC_2.3.3 release.
370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
371 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
372 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
373 Compatible with GLIBC_2.3.3 release.
374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
375 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
377 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
380 versions for setcontext, getcontext, swapcontext, and makecontext.
381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
382 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
383 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
384 Compatible with GLIBC_2.3.3 release.
385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
386 (__makecontext): Upgrade to align for Altivec regs and version
388 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
389 Compatible with GLIBC_2.3.3 release.
390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
391 (__setcontext): Upgrade to restore Altivec regs and version
393 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
394 Compatible with GLIBC_2.3.3 release.
395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
396 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
397 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
398 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
400 (_UC_VSCR, _UC_VRSAVE): Define.
401 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
402 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
404 2004-01-15 Ulrich Drepper <drepper@redhat.com>
406 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
408 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
410 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
413 2004-01-15 Ulrich Drepper <drepper@redhat.com>
415 * elf/elf.h: Fix typo in comment.
417 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
418 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
420 * resolv/resolv.h: Add RES_USEBSTRING.
421 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
422 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
423 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
424 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
425 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
426 Otherwise use the two nibble formats.
428 2004-01-14 Ulrich Drepper <drepper@redhat.com>
430 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
431 * config.h.in: Add entry for HAVE_Z_RELRO.
432 * include/libc-symbols.h: Define attribute_relro.
433 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
434 max_capstrlen, and max_dirnamelen definitions.
435 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
436 load_time, start_time, library_path, preloadlist, version_info,
438 Remove rtld_total_time. Make it a local variable. Pass pointer to
439 it to print_statistics. Change print_statistics accordingly.
440 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
441 attribute_relro instead of explicitly assigning variable to the
442 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
443 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
444 _dl_argv, _dl_argv_internal with attribute_relro.
446 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
448 * Makerules (gen-as-const): Don't silently continue on failure.
450 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
452 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
453 rtld_hidden_data_def.
455 2004-01-14 Ulrich Drepper <drepper@redhat.com>
457 * libio/libio.h: Add const to function tables types.
458 * libio/libioP.h: Likewise.
459 * login/utmp-private.h: Likewise.
460 * libio/fileops.c: Add const to jump table variable definition.
461 * libio/genops.c: Likewise.
462 * libio/iofopncook.c: Likewise.
463 * libio/iopopen.c: Likewise.
464 * libio/memstream.c: Likewise.
465 * libio/obprintf.c: Likewise.
466 * libio/oldfileops.c: Likewise.
467 * libio/oldiopopen.c: Likewise.
468 * libio/strops.c: Likewise.
469 * libio/vsnprintf.c: Likewise.
470 * libio/vswprintf.c: Likewise.
471 * libio/wfileops.c: Likewise.
472 * libio/wstrops.c: Likewise.
473 * login/getutent_r.c: Likewise.
474 * login/getutid_r.c Likewise.
475 * login/getutline_r.c: Likewise.
476 * sysdeps/generic/utmp_file.c: Likewise.
478 2004-01-09 Bruno Haible <bruno@clisp.org>
480 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
481 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
482 (_nl_load_domain): Treat major revision 1 like major revision 0.
484 2004-01-11 Bruno Haible <bruno@clisp.org>
486 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
487 width or precision has been seen.
489 2004-01-08 Bruno Haible <bruno@clisp.org>
491 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
492 dependent segment not known to this version of the library, ignore
493 the string pair instead of crashing.
495 2004-01-13 Ulrich Drepper <drepper@redhat.com>
497 * configure.in: Rewrite test to give gcc to clean up after itself.
498 Patch by Greg Schafer.
500 * posix/regex.c: Support crappy compilers and platforms which have
501 problems with alloca.
502 * posix/regex_internal.h: Likewise.
503 Patch by Paolo Bonzini.
505 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
507 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
508 Drop code to support this, it is never true.
509 (build_range_exp) [!_LIBC]: Do not create a range
510 in MBCSET for a single-byte character set.
511 (build_range_exp) [_LIBC]: Do not create a range
512 in MBCSET for a single-byte character set without
514 (init_dfa): Do not conditionalize on _LIBC, it
515 just makes the code less clear.
516 (parse_bracket_exp): Use NON_MATCH variable in
517 addition to "mbcset->non_match", not as an
519 (build_charclass_op): rename NOT parameter to
520 NON_MATCH, use it instead of declaring a variable.
521 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
522 if the character set is single-byte.
524 2004-01-14 Jakub Jelinek <jakub@redhat.com>
526 * posix/regcomp.c (peek_token_bracket): Check remaining
527 string length before re_string_peek_byte (x, 1).
528 (parse_bracket_symbol): Likewise.
529 * posix/regex_internal.h (re_string_is_single_byte_char): Return
530 true at last byte in the string.
531 * posix/bug-regex22.c (main): Add new test.
533 2004-01-13 Ulrich Drepper <drepper@redhat.com>
535 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
538 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
540 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
541 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
542 rtld_hidden_def and move into .data.rel.ro section.
543 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
545 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
548 2004-01-13 Richard Henderson <rth@redhat.com>
550 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
552 2004-01-13 Ulrich Drepper <drepper@redhat.com>
554 * sysdeps/unix/sysv/linux/dl-execstack.c
555 (_dl_make_stack_executable): Move common code in front. Use
558 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
559 challenge for caller.
560 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
561 member in rtld_global appropriately.
562 * elf/dl-support.c: Likewise.
563 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
564 Pass it on to the changed function.
565 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
567 2004-01-13 Richard Henderson <rth@redhat.com>
569 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
570 Cast old up to uint64_t before back down to inner width.
571 (__arch_compare_and_exchange_xxx_16_int): Likewise.
572 (__arch_compare_and_exchange_xxx_32_int): Likewise.
573 (__arch_compare_and_exchange_xxx_64_int): Likewise.
574 (__arch_compare_and_exchange_val_8_int): Cast result to
575 the type of the memory.
576 (__arch_compare_and_exchange_val_16_int): Likewise.
577 (__arch_compare_and_exchange_val_32_int): Likewise.
578 (__arch_compare_and_exchange_val_64_int): Likewise.
579 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
580 (atomic_compare_and_exchange_bool_rel): Likewise.
582 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
583 based on HAVE___THREAD instead of USE_TLS.
585 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
586 (__adjtimex_tv64): Use it.
588 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
589 to void* rather than directly to the compatibility structure type.
590 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
592 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
595 2004-01-13 Richard Henderson <rth@redhat.com>
597 * Versions.def (libm): Add GLIBC_2.3.3.
598 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
599 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
600 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
601 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
602 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
603 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
604 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
605 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
606 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
607 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
608 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
609 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
610 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
611 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
612 functions for gcc 3.3.
614 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
615 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
616 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
617 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
618 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
619 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
620 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
621 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
622 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
623 weak_alias if the function name has been #defined.
625 * math/cabsf.c: Move ...
626 * sysdeps/generic/cabsf.c: ... here.
627 * math/cargf.c: Move ...
628 * sysdeps/generic/cargf.c: ... here.
629 * math/cimagf.c: Move ...
630 * sysdeps/generic/cimagf.c: ... here.
631 * math/conjf.c: Move ...
632 * sysdeps/generic/conjf.c: ... here.
633 * math/crealf.c: Move ...
634 * sysdeps/generic/crealf.c: ... here.
636 2004-01-13 Ulrich Drepper <drepper@redhat.com>
638 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
639 LDFLAGS.so and LDFLAGS-rtld.
640 (+link): Add relro-LDFLAGS.
641 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
642 __libc_thread_subfreeres sections after .jcr section.
643 * config.make.in: Add have-z-relro.
644 * configure.in: Add check for -z relro option.
645 * include/link.h (struct link_map): Add relro_addr and relro_size
647 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
648 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
649 part of loaded segments read-only.
650 * elf/elf.h: Define PT_GNU_RELRO.
651 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
652 (dl_main): Recognize PT_GNU_RELRO of the application. Call
653 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
656 2004-01-12 Jakub Jelinek <jakub@redhat.com>
658 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
660 2004-01-11 Andreas Jaeger <aj@suse.de>
662 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
664 2004-01-10 Andreas Jaeger <aj@suse.de>
666 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
667 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
668 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
669 * sysdeps/x86_64/strcspn.S: Likewise.
670 * sysdeps/x86_64/strspn.S: Likewise.
672 2004-01-08 Jakub Jelinek <jakub@redhat.com>
674 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
675 right before syscall and cfi_startproc before PSEUDO_END.
676 Clear %rbp in thread_start.
678 2004-01-05 Jakub Jelinek <jakub@redhat.com>
680 * posix/regcomp.c (regcomp): Fix comment typo.
681 (regfree): Free preg->translate, clear buffer, allocated, fastmap
682 and translate fields.
684 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
685 argument to unsigned RE_TRANSLATE_TYPE.
686 * posix/regex_internal.h (re_string_t): Change trans type to
687 unsigned RE_TRANSLATE_TYPE.
688 * posix/regex_internal.c (re_string_construct_common): Cast
689 trans to unsigned RE_TRANSLATE_TYPE.
690 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
691 path if pstr->trans. Never translate the character through
693 * posix/Makefile (tests): Add bug-regex22.
694 (bug-regex22-ENV): Set.
695 * posix/bug-regex22.c: New test.
697 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
699 * posix/regex_internal.c (re_node_set_add_intersect,
700 re_node_set_merge): Rewritten.
701 (re_node_set_insert, re_node_set_remove_at):
702 Avoid memmove, we know what direction we should copy and that we
703 are copying 32-bit words.
704 (re_node_set_compare): Iterate backwards.
706 2003-12-30 Paul Eggert <eggert@twinsun.com>
708 * time/mktime.c (verify): New macro.
709 (time_t_is_integer, twos_complement_arithmetic,
710 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
711 C99_integer_division): Document these longstanding assumptions in the
712 code, and verify them at compile-time.
714 2004-01-02 Jakub Jelinek <jakub@redhat.com>
716 * posix/regex_internal.h (re_match_context_t): Add dfa member.
717 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
718 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
719 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
720 sift_states_backward, update_cur_sifted_state, check_dst_limits,
721 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
722 check_subexp_matching_top, transit_state_sb, transit_state_mb,
723 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
724 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
725 Remove dfa parameter. Get dfa from mctx. Adjust callers.
726 (re_search_internal): Initialize mctx.dfa.
728 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
730 * posix/regex_internal.h (re_dfa_t): Add syntax field.
731 * posix/regcomp.c (parse): Initialize dfa->syntax.
732 * posix/regexec.c (acquire_init_state_context,
733 prune_impossible_nodes, check_matching, check_halt_state_context,
734 proceed_next_node, sift_states_iter_mb, sift_states_backward,
735 update_cur_sifted_state, sift_states_bkref, transit_state,
736 transit_state_sb, transit_state_mb, transit_state_bkref,
737 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
738 build_trtable): Remove preg argument, add dfa argument instead
739 and remove dfa = preg->buffer initialization in the body.
741 (check_node_accept_bytes, group_nodes_into_DFAstates,
742 check_node_accept): Likewise. Use dfa->syntax instead of
744 (check_arrival_add_next_nodes): Remove preg argument.
746 * posix/regex_internal.h (re_match_context_t): Make input
747 re_string_t instead of a pointer to it.
748 * posix/regex_internal.c (re_string_construct_common): Don't clear
750 (re_string_construct): ... but only here.
751 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
752 initialize fields to zero.
753 (re_search_internal): Move input into mctx.input.
754 (acquire_init_state_context, check_matching,
755 check_halt_state_context, proceed_next_node,
756 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
757 transit_state, transit_state_sb, transit_state_mb,
758 transit_state_bkref, get_subexp, check_arrival,
759 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
760 Change mctx->input into &mctx->input and mctx->input->field into
763 2004-01-02 Jakub Jelinek <jakub@redhat.com>
764 Paolo Bonzini <bonzini@gnu.org>
766 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
767 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
768 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
769 (re_string_context_at, re_string_reconstruct): Remove last argument.
770 * posix/regex_internal.c (re_string_allocate): Initialize
771 pstr->word_char and pstr->word_ops_used.
772 (re_string_context_at): Remove newline_anchor argument.
773 Use input->newline_anchor instead, swap && conditions.
774 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
775 Use input->word_char bitmap instead of IS_WORD_CHAR.
776 (re_string_reconstruct): Likewise.
777 Adjust re_string_context_at caller.
778 * posix/regexec.c (acquire_init_state_context,
779 check_halt_state_context, transit_state, transit_state_sb,
780 transit_state_mb, transit_state_bkref, check_arrival,
781 check_node_accept): Adjust re_string_context_at and
782 re_string_reconstruct callers.
783 (re_search_internal): Likewise. Set input.newline_anchor.
784 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
785 * posix/regcomp.c (init_word_char): Change return type to void.
786 Set dfa->word_ops_used.
787 (free_dfa_content): Don't free dfa->word_char.
788 (parse_expression): Remove error handling for init_word_char.
790 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
792 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
795 * posix/regex_internal.c (re_node_set_insert): Rewrite.
797 2004-01-01 Ulrich Drepper <drepper@redhat.com>
799 * posix/getconf.c: Update copyright year.
800 * nss/getent.c: Likewise.
801 * nscd/nscd_nischeck.c: Likewise.
802 * iconv/iconvconfig.c: Likewise.
803 * iconv/iconv_prog.c: Likewise.
804 * elf/ldconfig.c: Likewise.
805 * catgets/gencat.c: Likewise.
806 * csu/version.c: Likewise.
807 * elf/ldd.bash.in: Likewise.
808 * elf/sprof.c (print_version): Likewise.
809 * locale/programs/locale.c: Likewise.
810 * locale/programs/localedef.c: Likewise.
811 * nscd/nscd.c (print_version): Likewise.
812 * debug/xtrace.sh: Likewise.
813 * malloc/memusage.sh: Likewise.
814 * malloc/mtrace.pl: Likewise.
816 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
818 * stdlib/strfmon.c: Make formatting of left-justified currency
819 values match the the POSIX standard. When using format string
820 "[%-14#5.4n]" to print -123.45, the result should be
821 "[-$ 123.4500 ]", not "[-$123.4500 ]".
823 2004-01-01 Andreas Jaeger <aj@suse.de>
825 * resolv/Makefile (generated): New.
827 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
829 * CONFORMANCE: Update.
831 2003-12-30 Paul Eggert <eggert@twinsun.com>
833 * time/mktime.c: (my_mktime_localtime_r):
834 Remove. All uses changed to __localtime_r.
835 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
836 get its implementation.
837 Fix compile-command to allow for TIME_R_POSIX.
839 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
840 Remove. All uses changed to __localtime_r and __gmtime_r.
841 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
842 Include "time_r.h" to get their implementations.
844 * time/timegm.c: Allow use in GNU applications outside glibc.
845 [defined HAVE_CONFIG_H]: Include <config.h>.
846 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
847 Define __gmtime_r, and declare __mktime_internal.
848 (timegm): Define via a prototype, since we can safely assume C89 now.
850 * time/mktime.c (check_result): Use less-confusing report format.
851 "long" -> "long int", as per usual GNU style.
853 Don't loop if the iteration overflows time_t.
854 Allow a negative step in the iteration.
856 * time/mktime.c: Assume freestanding C89 or better.
857 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
859 (__P): Remove; not used.
860 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
861 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
862 Prototypes use const * where appropriate.
863 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
864 which caused the testing code to dump core on some hosts.
866 2003-12-31 Ulrich Drepper <drepper@redhat.com>
868 * locale/setlocale.c (setlocale): Avoid duplicating locale names
869 if we can reuse old strings.
871 * inet/rcmd.c: Provide better error message in case of unknown
872 host. Remove USE_IN_LIBIO.
874 * nscd/nscd.init: Updated version, more conforming with current
877 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
878 /var/run/nscd directory.
879 (_PATH_NSCDSOCKET): Likewise.
881 * test-skeleton.c (timeout_handler): Fix error message.
883 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
886 2003-12-30 Jakub Jelinek <jakub@redhat.com>
888 * posix/regexec.c (get_subexp): Only set bkref_str after the first
889 loop, use buf + bkref_str_off in the loop instead.
890 * posix/bug-regex11.c (tests): Add 3 new tests.
892 * posix/regexec.c (clean_state_log_if_need): Rename to...
893 (clean_state_log_if_needed): ...this.
894 (transit_state_mb, get_subexp_sub): Adjust callers.
896 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
897 failed. Reported by Steve Grubb.
899 2003-12-29 Ulrich Drepper <drepper@redhat.com>
901 * elf/elf.h: Add a few definitions from Solaris 9.
903 2003-12-29 Andreas Schwab <schwab@suse.de>
905 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
906 $(fno_unit_at_a_time) to avoid reordering assembler output.
908 2003-12-29 Jakub Jelinek <jakub@redhat.com>
910 * posix/regexec.c (re_copy_regs): Revert comment change.
911 Avoid memory leak if realloc fails.
912 (proceed_next_node): Return -2 if re_node_set_insert fails.
913 Return -2 if push_fail_stack fails.
914 (push_fail_stack): Change fs->alloc only after successful realloc.
915 (pop_fail_stack): Formatting.
916 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
917 (check_arrival_add_next_nodes): Merge identical statements
920 * signal/Makefile (tests): Add tst-raise.
921 * signal/tst-raise.c: New test.
923 2003-12-28 Ulrich Drepper <drepper@redhat.com>
925 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
927 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
928 (push_fail_stack): Add missing check for failed memory allocation.
930 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
931 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
934 2003-12-28 Andreas Jaeger <aj@suse.de>
936 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
937 overflow for 0 as argument. Raise Invalid exception for negative args.
938 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
939 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
940 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
941 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
942 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
943 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
944 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
945 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
946 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
947 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
948 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
950 * math/libm-test.inc (yn_test): Expect invalid exception for
955 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
956 execptions for exp(NaN).
958 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
960 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
961 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
962 among the tokens, rather than among the epsilon-transiting nodes.
963 (re_token_t): Add the opt_subexp flag.
964 * posix/regcomp.c (optimize_utf8, calc_first,
965 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
966 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
967 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
968 OP_DUP_ASTERISK and marking optional subexpressions
969 as such using mark_opt_subexp.
970 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
971 and pass it to update_regs.
972 (update_regs): Use the PREV_INDEX_MATCH parameter, together
973 with the opt_subexp flag, in order to discard a final empty
974 match of a repeated subexpression.
975 * posix/BOOST.tests: Adjust test vectors.
976 * posix/PCRE.tests: Likewise.
977 * posix/rxspencer/tests: Likewise.
979 2000-05-22 Jakub Jelinek <jakub@redhat.com>
981 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
982 with omitted middle operand.
984 2003-12-22 Jakub Jelinek <jakub@redhat.com>
986 * posix/regcomp.c: Remove C99-ism.
987 * posix/tst-rxspencer.c: Likewise.
988 Based on a patch by Alex Davis <alex14641@yahoo.com>.
990 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
992 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
993 (re_string_allocate, re_string_construct, re_string_reconstruct,
994 re_string_realloc_buffers, build_wcs_buffer,
995 build_wcs_upper_buffer, build_upper_buffer,
996 re_string_translate_buffer, re_string_destruct,
997 re_string_elem_size_at, re_string_char_size_at,
998 re_string_wchar_at, re_string_context_at,
999 re_node_set_alloc, re_node_set_init_1
1000 re_node_set_init_2, re_node_set_init_copy,
1001 re_node_set_add_intersect, re_node_set_init_union,
1002 re_node_set_merge, re_node_set_insert
1003 re_node_set_compare, re_node_set_contains
1004 re_node_set_remove_at, re_dfa_add_node,
1005 re_acquire_state, re_acquire_state_context,
1006 free_state): Add internal_function to declaration.
1008 * posix/regexec.c (match_ctx_init, match_ctx_clean,
1009 match_ctx_free, match_ctx_free_subtops,
1010 match_ctx_add_entry, search_cur_bkref_entry,
1011 match_ctx_clear_flag, match_ctx_add_subtop,
1012 match_ctx_add_sublast, sift_ctx_init,
1013 re_search_internal, re_search_2_stub, re_search_stub,
1014 re_copy_regs, acquire_init_state_context,
1015 prune_impossible_nodes, check_matching,
1016 check_halt_node_context, check_halt_state_context
1017 update_regs, proceed_next_node, push_fail_stack,
1018 pop_fail_stack, set_regs, free_fail_stack_return,
1019 sift_states_iter_mb, sift_states_backward
1020 update_cur_sifted_state, add_epsilon_src_nodes,
1021 sub_epsilon_src_nodes, check_dst_limits,
1022 check_dst_limits_calc_pos, check_subexp_limits,
1023 sift_states_bkref, clean_state_log_if_need,
1024 merge_state_array, transit_state,
1025 check_subexp_matching_top, transit_state_sb,
1026 transit_state_mb, transit_state_bkref,
1027 get_subexp, get_subexp_sub, find_subexp_node,
1028 check_arrival, check_arrival_add_next_nodes,
1029 find_collation_sequence_value, check_arrival_expand_ecl,
1030 check_arrival_expand_ecl_sub, expand_bkref_cache,
1031 build_trtable, check_node_accept_bytes, extend_buffers,
1032 group_nodes_into_DFAstates, check_node_accept): Likewise.
1034 * posix/regex_internal.c (re_string_construct_common,
1035 re_string_skip_chars, create_newstate_common,
1036 register_state, create_ci_newstate, create_cd_newstate,
1037 calc_state_hash): Likewise.
1038 (re_string_peek_byte_case, re_fetch_byte_case): Change
1039 declaration from ANSI to K&R.
1041 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
1043 * posix/regexec.c (build_trtable): Don't allocate the trtable
1044 until state->word_trtable is known. Don't hardcode UINT_BITS
1045 iterations on each bitset item.
1047 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1049 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
1050 Initialize REF before passing it to _dl_lookup_symbol.
1052 2003-12-21 Roland McGrath <roland@frob.com>
1054 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
1056 2003-12-21 Jakub Jelinek <jakub@redhat.com>
1058 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
1060 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
1061 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
1062 * posix/bug-regex19.c (tests): Add new tests.
1064 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
1066 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
1067 after checking syntax. Optimize.
1068 (calc_first): Fix comment.
1069 * posix/bug-regex13.c (tests): Add new tests.
1071 2003-12-21 Roland McGrath <roland@redhat.com>
1073 * manual/arith.texi (Parsing of Integers): Typo fix.
1075 2003-12-20 Roland McGrath <roland@frob.com>
1077 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
1078 add missing dereference of IFREQS before counting loop.
1080 2003-12-21 Andreas Schwab <schwab@suse.de>
1082 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
1085 2003-12-20 Ulrich Drepper <drepper@redhat.com>
1087 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
1089 2003-12-18 Ulrich Drepper <drepper@redhat.com>
1091 * stdio-common/printf_fp.c: Add support to use alternative decimal
1093 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
1094 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
1096 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
1098 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
1099 reload PIC if we need to call __syscall_error, cleanup asm.
1101 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
1103 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
1104 FE_ALL_EXCEPT before complimenting.
1105 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
1106 and gcc '+r' constraint.
1107 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
1108 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
1109 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
1110 exception bits, OR with envp, pass to fesetenv.
1111 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
1112 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
1113 triggered by M_PI/69.69 converted to single precision.
1114 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
1115 bits not raised exception bits.
1117 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
1118 correct build strings.
1119 * sysdeps/hppa/dl-fptr.h: New file.
1120 * sysdeps/hppa/dl-fptr.c: Removed.
1121 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
1122 remove const qualifier for map.
1123 (_dl_function_address): Removed.
1124 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
1125 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
1126 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
1127 DL_DT_FINI_ADDRESS use the previous two macros.
1129 2003-12-17 Jakub Jelinek <jakub@redhat.com>
1131 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
1132 (tr_memalignhook): New function.
1133 (mtrace): Register tr_memalignhook.
1134 (muntrace): Deregister tr_memalignhook.
1135 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
1136 call it directly instead of memalign_internal.
1138 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1140 * misc/mntent_r.c: Change encoding to match recently changed decoder.
1141 Patch by Alexander Achenbach <xela@slit.de>.
1143 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1145 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
1148 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1150 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
1151 conditional to include typedef elf_vrreg_t.
1153 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
1155 * posix/regexec.c (re_search_internal): Limit search to the
1156 beginning of the buffer if the initial states are empty for
1157 contexts that do not include CONTEXT_BEGBUF or, if
1158 !preg->newline_anchor, that do not include any one of
1159 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
1161 2003-12-17 Andreas Jaeger <aj@suse.de>
1163 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
1164 Kevin Pedretti <pedretti@ieee.org>.
1166 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1168 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
1169 removes the visibility attributes which might be defined earlier
1170 for some gcc versions. Instead spell out what strong_alias does
1171 plus the visibility.
1173 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
1175 * posix/regex_internal.h: Make sure the regex code compile
1176 with non-GCC compilers by hiding attributes.
1178 2003-12-16 Jakub Jelinek <jakub@redhat.com>
1179 Paolo Bonzini <bonzini@gnu.org>
1181 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
1182 dests_ch items that are empty.
1184 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1186 * posix/regexec.c (check_arrival): Remove duplicate test.
1188 2003-12-15 Ulrich Drepper <drepper@redhat.com>
1190 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
1191 * posix/regex_internal.c: Likewise.
1192 * posix/regexec.c: Likewise.
1193 Patch by Paolo Bonzini.
1195 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1197 * posix/regex_internal.c (re_acquire_state_context):
1198 Compare the node sets after all the other comparisons.
1200 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
1202 * posix/regexec.c (find_subexp_node, check_arrival,
1203 check_arrival_add_next_nodes, check_arrival_expand_ecl,
1204 check_arrival_expand_ecl_sub, expand_bkref_cache):
1205 Rename the FL_OPEN parameter to TYPE, which is either
1206 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
1208 2003-12-12 Andreas Jaeger <aj@suse.de>
1210 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
1213 2003-12-11 Ulrich Drepper <drepper@redhat.com>
1215 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
1216 There might always be processes which have no vDSO.
1217 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
1218 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1220 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1222 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
1225 2003-12-01 Jes Sorensen <jes@wildopensource.com>
1227 * rt/tst-clock.c (do_test): Print message when skipping
1228 CLOCK_PROCESS_CPUTIME_ID test.
1230 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
1231 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
1233 2003-12-02 David Mosberger <davidm@hpl.hp.com>
1235 * sysdeps/ia64/elf/initfini.c: Add unwind info.
1237 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
1239 (elf_machine_dynamic): Mark with attributes "unused" and "const".
1240 (elf_machine_runtime_setup): Likewise.
1242 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
1243 attribute "always_inline".
1244 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
1247 * configure.in: Check whether compiler has libunwind support.
1248 * config.make.in (have-cc-with-libunwind): New variable.
1249 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
1250 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
1253 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1255 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
1256 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
1257 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
1260 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
1261 instead of DO_CALL().
1263 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
1266 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
1267 to take advantage of DO_CALL() macro.
1268 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1269 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1271 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
1272 program header. On ia64, the check failed previously because
1273 there are two program headers.
1275 2003-12-10 Andreas Jaeger <aj@suse.de>
1276 Ruediger Oertel <ro@suse.de>
1278 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
1280 2003-12-07 Ulrich Drepper <drepper@redhat.com>
1282 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
1283 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1284 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1285 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1286 * sysdeps/generic/s_nexttowardf.c: Likewise.
1287 * math/Makefile (tests): Add bug-nexttoward.
1288 * math/bug-nexttoward.c: New file.
1290 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
1291 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1292 * math/bug-nextafter.c (main): Add tests for overflow and negative
1295 2003-12-06 Ulrich Drepper <drepper@redhat.com>
1297 * math/Makefile (tests): Add bug-nextafter.
1298 * math/bug-nextafter.c: New file.
1299 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
1300 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1301 * math/libm-test.inc (nextafter_test): Add test for overflow after
1304 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
1306 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
1308 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1310 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1312 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1314 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1315 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1316 (END): Add cfi_endproc directive.
1317 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1318 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1319 cfi_startproc and cfi_endproc directive.
1320 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1321 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1322 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1323 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1324 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1326 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1328 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1329 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1330 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1331 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1332 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1333 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1334 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1335 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1336 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1338 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1340 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1341 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1342 make backchain terminate.
1343 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1345 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1346 (unwind_backtrace, unwind_getip): New variables.
1347 (init, __backchain_backtrace, backtrace_helper): New functions.
1348 (__backtrace): Use unwind info for backtrace instead of backchain
1349 walking if the unwind functions can be found.
1350 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1352 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1354 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1355 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1356 (elf_prstatus32, elf_prpsinfo32): New structures.
1357 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1359 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1360 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1362 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
1364 * stdlib/strfmon.c: Correct formatting of international currency
1365 values. The international currency formatting should prefer the
1366 int_* values if they are set for a locale, and use the domestic
1367 values if the int_* values are unset.
1369 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1371 * posix/Makefile (distribute): Add BOOST.tests.
1372 (tests): Add tst-boost, depend on tst-boost-mem.
1373 (generated): Add tst-boost-mem and tst-boost.mtrace.
1374 (tst-boost-ARGS, tst-boost-ENV): Set.
1375 ($(objpfx)tst-boost-mem): New.
1376 * posix/tst-boost.c: New test.
1377 * posix/BOOST.tests: New file.
1379 * posix/Makefile (distribute): Add PCRE.tests.
1380 (tests): Add tst-pcre, depend on tst-pcre-mem.
1381 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1382 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1383 ($(objpfx)tst-pcre-mem): New.
1384 * posix/tst-pcre.c: New test.
1385 * posix/PCRE.tests: New file.
1387 2003-12-02 Jakub Jelinek <jakub@redhat.com>
1389 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1391 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1392 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1394 2003-12-03 Ulrich Drepper <drepper@redhat.com>
1396 * locale/programs/locarchive.c (enlarge_archive): Print size info
1397 only in verbose mode.
1399 * locale/iso-3166.def: Three letter code of Romania changed.
1401 2003-12-02 Roland McGrath <roland@redhat.com>
1403 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1404 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1406 2003-11-30 Andreas Jaeger <aj@suse.de>
1408 * config.make.in (fno-unit-at-a-time): Define.
1410 * configure.in: Add test for -fno-unit-at-a-time.
1413 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1414 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1416 2003-12-01 Automatic
1418 * version.h (VERSION): Bump to 2.3.3.
1420 2003-11-30 Andreas Jaeger <aj@suse.de>
1422 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1423 decrease stack usage.
1425 2003-11-30 Andreas Schwab <schwab@suse.de>
1427 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1428 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1430 2003-11-29 Ulrich Drepper <drepper@redhat.com>
1432 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1433 recognize \134 as well.
1435 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1437 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1439 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1441 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1443 (struct ia64_fpreg): New definition.
1445 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1447 (ELF_NGREG): New #define.
1448 (ELF_NFPREG): Likewise.
1449 (elf_greg_t): New type.
1450 (elf_gregset_t): Likewise.
1451 (elf_fpreg_t): Likewise.
1452 (elf_fpregset_t): Likewise.
1454 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1456 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1458 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
1459 (pt_all_user_regs): New type.
1461 2003-10-10 Simon Josefsson <jas@extundo.com>
1463 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1464 strchrnul.h, strndup.h (from gnulib).
1465 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1467 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1468 Autoconf manual version.
1469 * argp/argp.h: Map __restrict to restrict or empty string when
1470 necessary, copied verbatim from posix/regex.h.
1472 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1474 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1475 addition to c++-types-$(base-machine)-$(config-os).data.
1476 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1477 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1479 2003-11-28 Ulrich Drepper <drepper@redhat.com>
1481 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1483 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1484 Reported by Andries.Brouwer@cwi.nl.
1486 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1487 to compensate other setup.
1489 2003-11-27 Andreas Jaeger <aj@suse.de>
1491 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1493 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1494 Reported by "Willus" <etc231etc231@willus.com>.
1496 2003-11-27 Michael Matz <matz@suse.de>
1498 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1501 2003-11-28 Jakub Jelinek <jakub@redhat.com>
1503 * posix/regexec.c (acquire_init_state_context): Make inline.
1504 Add always_inline attribute.
1505 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1506 into if (dfa->nbackref).
1507 (sift_states_backward): Fix comment.
1508 (transit_state): Add BE macro. Move if (next_state->has_backref)
1509 into if (dfa->nbackref && next_state). Don't check for next_state
1511 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1513 (parse_expression): Only call init_word_char if word context will be
1516 * posix/bug-regex11.c (tests): Add new tests.
1518 * posix/tst-regex.c: Include getopt.h.
1519 (timing): New variable.
1520 (main): Set timing to 1 if --timing argument is present.
1522 (run_test, run_test_backwards): Handle timing.
1524 2003-11-27 Jakub Jelinek <jakub@redhat.com>
1526 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1527 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1528 offsets_needed fields. Change icase, is_utf8 and map_notascii
1529 type from int bitfield to unsigned char.
1530 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1531 (build_wcs_upper_buffer): Change prototype to return int.
1532 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1533 defines, add prototypes.
1534 * posix/regex_internal.c (re_string_allocate): Don't initialize
1535 stop here. Don't initialize mbs_case. Set valid_raw_len.
1536 Use mbs_allocated instead of MBS_* macros.
1537 (re_string_construct): Don't initialize stop and valid_len here.
1538 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1539 macros. Reallocate buffers if build_wcs_upper_buffer converted
1540 too few bytes. Set valid_len to bufs_len only for single byte
1541 no translation and set in that case valid_raw_len as well.
1542 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1543 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1545 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1547 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1548 after it. Set valid_raw_len. Don't set mbs_case.
1549 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1550 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1551 before mbrtowc instead of after it. If upper case character
1552 uses different number of bytes than lower case, goto to the
1553 slow path. Don't call towupper unnecessarily twice. Set
1554 valid_raw_len as well. Handle in the slow path the case if
1555 lower and upper case use different number of characters.
1557 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
1558 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
1560 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
1562 (re_string_reconstruct): Use raw_len/raw_stop to initialize
1563 len/stop. Clear valid_raw_len and offsets_needed when clearing
1564 valid_len. Use mbs_allocated instead of MBS_* macros.
1565 Check original offset against valid_raw_len instead of valid_len.
1566 Remove mbs_case handling. Adjust valid_raw_len together with
1567 valid_len. If is_utf8 and looking for tip context, apply
1568 pstr->trans first. If buffers start with partial multi-byte
1569 character, initialize mbs array as well if mbs_allocated.
1570 Check return value of build_wcs_upper_buffer.
1571 (re_string_peek_byte_case): New function.
1572 (re_string_fetch_byte_case): New function.
1573 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
1574 Don't free mbs_case. Free offsets.
1575 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
1577 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
1578 as well. Use valid_raw_len instead of valid_len when looking
1579 through fastmap. Adjust registers through input.offsets.
1580 (extend_buffers): Allow build_wcs_upper_buffer to fail.
1581 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
1584 2003-11-26 Jakub Jelinek <jakub@redhat.com>
1586 * posix/regexec.c (check_subexp_limits): Only check close
1587 subexpression limitation if one is found. Formatting.
1588 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
1590 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
1593 2003-11-26 Ulrich Drepper <drepper@redhat.com>
1595 * sysdeps/unix/sysv/linux/kernel-features.h
1596 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
1597 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
1598 if __ASSUME_PROT_GROWSUPDOWN is defined.
1600 2003-11-26 Andreas Jaeger <aj@suse.de>
1602 * sysdeps/unix/sysv/linux/dl-execstack.c
1603 (_dl_make_stack_executable): Set dl_stack_flags always for
1606 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
1608 * locale/program/ld-monetary.c: Only check the first three
1609 characters in int_curr_symbol against ISO-4217, to make the
1610 separator character used by a locale independent of the content
1612 * locale/iso-4217.def: Remove the space character from all
1613 currency values to get the new test code in ld-monetary.c working.
1615 2003-11-21 David Mosberger <davidm@hpl.hp.com>
1617 * elf/soinit.c (_fini): Put _fini() in .init_array section if
1618 HAVE_INITFINI_ARRAY is defined.
1620 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1622 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
1623 Define it appropriately after last change. Use it where __sqrtl
1626 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
1628 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
1629 sqrt for gcc 3.3 and above.
1631 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1633 * posix/runptests.c (main): Make errors fatal.
1634 * posix/PTESTS: One test in GA135 and GA136 check functionality
1635 which seems not guaranteed.
1637 2003-11-25 Jakub Jelinek <jakub@redhat.com>
1639 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
1640 returned REG_NOMATCH, set match_last to -1. Don't initialize
1641 pmatch[0] needlessly. Fix comment.
1642 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
1643 (set_regs): Fix comment.
1644 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
1645 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
1646 (build_charclass_op): Set has_plural_match if adding both
1647 SIMPLE_BRACKET and COMPLEX_BRACKET.
1648 * posix/bug-regex11.c (tests): Fix register values for one commented
1649 out test. Add new tests.
1651 * posix/regex_internal.c (re_string_allocate): Make sure init_len
1652 is at least dfa->mb_cur_max.
1653 (re_string_reconstruct): If is_utf8, don't fall back into
1654 re_string_skip_chars just because idx points into a middle of
1655 valid UTF-8 character. Instead, set the wcs bytes which correspond
1656 to the partial character bytes to WEOF.
1657 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
1658 instead of dfa->nodes_len + 1 state_log entries initially.
1659 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
1662 2003-11-24 Jakub Jelinek <jakub@redhat.com>
1664 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
1666 (re_dfa_t): Add sb_char field.
1667 (bitset_mask): New function.
1668 * posix/regcomp.c (free_dfa_content): Free sb_char.
1669 (init_dfa): Don't initialize word_char unnecessarily.
1671 (duplicate_node): Don't duplicate !word_char CHARACTERs with
1672 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
1673 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
1674 (duplicate_node_closure): Handle clone_dest == -1 from
1676 (peek_token): Initialize word_char bit.
1677 (parse_expression, parse_dup_op): Add comments.
1678 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
1679 starting bytes here at the beginning. Mask off the bits right
1680 before creating SIMPLE_BRACKET.
1681 (build_charclass_op): Likewise.
1682 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
1683 set accept bits for single-byte characters.
1684 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
1685 being single byte encoded and the rest multi-byte.
1686 * posix/bug-regex19.c (tests): Add new tests.
1687 (do_mb_tests): Initialize t to *test.
1688 (main): Fail even on do_mb_tests errors.
1690 2003-11-23 Ulrich Drepper <drepper@redhat.com>
1692 * posix/regexec.c: Correct several memory allocation problems.
1694 * posix/regex_internal.c: Likewise.
1695 * posix/regcomp.c: Likewise.
1697 * posix/regexec.c: Add const in a number of places.
1698 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
1699 debugging. Its value isn't important.
1701 2003-11-22 Ulrich Drepper <drepper@redhat.com>
1703 * posix/PTESTS: Fix first test of GA143.
1705 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1707 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
1710 * locale/programs/charmap.c (charmap_read): If encoding is found
1711 not ASCII compatible, set enc_not_ascii_compatible.
1712 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
1713 * locale/programs/ld-ctype.c (ctype_startup): If
1714 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
1716 2003-11-22 Jakub Jelinek <jakub@redhat.com>
1718 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
1719 if !__libc_enable_secure.
1721 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
1723 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
1724 (dl_main): Set GL(dl_use_load_bias) default.
1725 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
1726 Add EXTRA_LD_ENVVARS_13.
1727 * elf/dl-support.c (_dl_use_load_bias): New variable.
1728 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
1729 with GL(dl_use_load_bias).
1730 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
1732 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
1733 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
1734 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
1735 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
1736 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
1738 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1740 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
1742 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
1743 pointer. Adjust callers.
1745 * posix/regcomp.c (fetch_token): Change interface to match
1746 peek_token. This avoids some copying and reduces code size.
1748 2003-11-21 Jakub Jelinek <jakub@redhat.com>
1750 * posix/bug-regex19.c (tests): Add more tests.
1752 * posix/bug-regex11.c: And one more commented out test.
1754 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
1755 tests multiple times unnecessarily.
1757 * posix/bug-regex19.c (BRE, ERE): Define.
1758 (tests): Add many new tests, remove UTF-8 ones.
1759 (do_one_test, do_mb_tests): New functions.
1760 (main): Rewritten using do_one_test and do_mb_tests.
1762 2003-11-20 Ulrich Drepper <drepper@redhat.com>
1764 * posix/PTESTS: Fix first test in GA143.
1766 2003-11-20 Jakub Jelinek <jakub@redhat.com>
1768 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
1770 * posix/regex_internal.c (create_newstate_common, free_state):
1771 Don't free trtable_search.
1772 * posix/regexec.c (check_matching): Remove fl_search argument.
1773 (transit_state_sb): Likewise. #ifdef out as unused.
1774 (build_trtable): Remove fl_search argument. Set state->word_trtable
1775 and state->trtable. Build separate word and non-word tables if
1776 multi-byte and they differ for some character.
1777 (transit_state): Remove fl_search argument. Don't update
1778 state->trtable here. Handle state->word_trtable.
1779 #ifdef out unused call to transit_state_sb.
1780 (re_search_internal): Update check_matching caller.
1781 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
1782 bitmask for multi-byte locales.
1783 * posix/bug-regex19.c (tests): Enable some commented out tests, add
1785 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
1786 multi-byte. Don't run identical multi-byte tests multiple times
1788 (main): Check setlocale return value.
1789 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
1790 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
1791 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
1792 here, without --utf8 argument but with MALLOC_TRACE.
1794 2003-11-19 Jakub Jelinek <jakub@redhat.com>
1796 * posix/regexec.c (extend_buffers): Don't allocate
1797 twice as big state_log as needed. Don't modify pstr->valid_len
1798 for mb_cur_max == 1 !icase !trans.
1800 * posix/regcomp.c (free_bin_tree): Removed.
1801 (create_tree): Add dfa argument. Don't call re_malloc for
1802 each tree, instead allocate from str_tree_storage.
1803 (re_dfa_add_tree_node): New function.
1804 (free_dfa_content): Handle freeing if dfa->nodes == NULL
1805 or dfa->state_table == NULL.
1806 (re_compile_internal): Call free_dfa_content if init_dfa
1807 fails. Call free_workarea_compile, re_string_destruct
1808 and free_dfa_content for most of the other failure paths.
1809 (init_dfa): Initialize str_tree_storage_idx.
1810 Don't clear any fields on allocation failure.
1811 (free_workarea_compile): Free str_tree_storage chunks
1812 instead of free_bin_tree (dfa->str_tree).
1813 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
1814 followed by create_tree. Add dfa argument to remaining
1815 create_tree calls. Remove new_idx variable. Remove calls
1817 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
1818 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
1819 (duplicate_tree): Remove calls to free_bin_tree, add dfa
1820 argument to create_tree.
1821 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
1822 (bin_tree_storage_t): New type.
1823 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
1825 * posix/Makefile (tests): Add bug-regex21.
1826 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
1827 tst-rxspencer-mem and tst-rxspencer.mtrace.
1828 (tests): Depend on $(objpfx)bug-regex21-mem
1829 and $(objpfx)tst-rxspencer-mem.
1830 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
1831 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
1832 * posix/tst-rxspencer.c (main): Add call to mtrace.
1833 Free line at the end.
1834 * posix/bug-regex21.c: New test.
1836 2003-11-19 Ulrich Drepper <drepper@redhat.com>
1838 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
1840 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
1841 fails, just use the byte, do no fancy conversions.
1843 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
1845 (re_string_is_single_byte_char): Likewise.
1847 2003-11-18 Ulrich Drepper <drepper@redhat.com>
1849 * posix/regexec.c (get_subexp): After calling get_subexp_sub
1850 reload buf and bkref_str. Little optimization by avoiding memcmp.
1852 2003-11-14 David Mosberger <davidm@hpl.hp.com>
1854 * sysdeps/unix/sysv/linux/ia64/sysdep.h
1855 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
1856 that all existing GAS versions have a problem with .align inside
1858 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
1859 * sysdeps/ia64/memcpy.S: Likewise.
1860 * sysdeps/ia64/memset.S: Likewise.
1861 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
1862 out of .text into .rodata, where it belongs.
1864 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
1865 save/restore input-arguments, because they're necessarily
1866 preserved by the kernel to support syscall-restart.
1868 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1870 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
1871 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
1873 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
1874 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
1875 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
1876 Handle OP_UTF8_PERIOD.
1877 (re_string_reconstruct): Set valid_len for single byte char searching
1878 with no translation and case sensitivity.
1879 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
1881 (re_compile_internal): Don't call optimize_utf8 if preg->translate
1883 (optimize_utf8): Remove BACK_SLASH case.
1884 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
1886 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
1887 any bits set and COMPLEX_BRACKET is used.
1888 * posix/regexec.c (transit_state_mb): Fix comment typo.
1889 (group_nodes_into_DFAstates, check_node_accept): Handle
1891 (check_node_accept_bytes): Likewise. Reorder slightly so that
1892 re_string_char_size_at and re_string_elem_size_at are called
1894 * posix/bug-regex20.c (BRE, ERE): Define.
1895 (tests): Use them to make lines shorter. Expect . to be
1896 optimized. Add lots of new tests.
1897 (main): Run (ATM just case sensitive) test with backwards searching
1900 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1902 * io/bug-ftw4.c: Include string.h.
1903 * posix/fnmatch.c (mbsinit): Remove define.
1905 2003-11-17 Jakub Jelinek <jakub@redhat.com>
1907 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
1909 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
1910 followed by dup operator is expected to be optimized.
1912 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
1913 variables to the block where they are only used, initialize
1914 nrules only immediately before using it.
1916 2003-11-15 Andreas Jaeger <aj@suse.de>
1918 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
1919 * sysdeps/x86_64/fpu/s_truncl.S: New file.
1920 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
1921 * sysdeps/x86_64/fpu/s_floorl.S: New file.
1922 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
1923 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
1925 * math/libm-test.inc (floor_test): Test also ±0.25.
1926 (ceil_test): Test -0.25.
1928 2003-11-17 Ulrich Drepper <drepper@redhat.com>
1930 * sysdeps/posix/getaddrinfo.c: Add support for destination address
1931 selection according to RFC 3484.
1933 2003-11-15 Ulrich Drepper <drepper@redhat.com>
1935 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
1936 Replace last two parameters of re_string_allocate and
1937 re_string_construct with pointer to DFA.
1938 (re_dfa_t): Add map_notascii field.
1939 * posix/regcomp.c (re_compile_internal): Add call of
1940 re_string_construct.
1941 (init_dfa): Initialize map_notascii.
1942 * posix/regex_internal.c: Adjust definitions of re_string_allocate
1943 and re_string_construct.
1944 Pass DFA to re_string_construct. Adjust definition. Initialize
1946 (build_wcs_upper_buffer): If map_notascii is zero use simplified
1947 method to map ASCII values to upper case.
1948 * posix/regex.c: Include localeinfo.h.
1949 * posix/regexec.c: Adjust call of re_string_allocate.
1951 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
1952 * locale/localeinfo.h (LIMAGIC): Change value.
1953 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
1954 * locale/C-ctype.h: Likewise.
1955 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
1956 ASCII to non-ASCII value. Write out that value.
1958 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
1959 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
1961 2003-11-14 Jakub Jelinek <jakub@redhat.com>
1963 * posix/tst-rxspencer.c (check_match): @ without any following
1964 characters must match only end of string.
1965 (main): Fix filename in error message.
1967 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1969 * sysdeps/ia64/dl-machine.h: Force inlining of
1970 elf_machine_runtime_setup().
1972 2003-11-13 Andreas Jaeger <aj@suse.de>
1974 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
1975 (CFLAGS-test-double.c): Likewise.
1976 (CFLAGS-test-ldouble.c): Likewise.
1977 (CPPFLAGS-test-ifloat.c): Likewise.
1978 (CPPFLAGS-test-idouble.c): Likewise.
1979 (CPPFLAGS-test-ildoubl.c): Likewise.
1981 * math/libm-test.inc (ceil_test): Test ceil (0.25).
1983 2003-11-04 Ulrich Drepper <drepper@redhat.com>
1985 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
1986 sends the netlink data.
1987 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1989 2003-11-13 Jakub Jelinek <jakub@redhat.com>
1991 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
1992 with no bits set for >= 0x80 chars is seen.
1993 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
1995 (main): Run all tests with RE_ICASE as well.
1997 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1999 * posix/Makefile: Add rules to build and run tst-rxspencer.
2000 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
2001 * posix/tst-rxspencer.c: New file.
2002 * posix/rxspencer/tests: New file.
2003 * posix/rxspencer/COPYRIGHT: New file.
2004 Patch mostly by Jakub Jelinek.
2006 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
2007 this is no option given the first token.
2009 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
2010 hyphen in range expression. Return EBRACK in this case.
2012 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
2013 we expect them or it's the last element in the bracket expression.
2014 Indicated by new parameter. Adjust all callers.
2016 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
2017 Prettier error messages.
2019 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
2020 number in {,} expression is larger.
2022 2003-11-13 Andreas Jaeger <aj@suse.de>
2024 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2025 Define appropriately for x86_64.
2026 (__ASSUME_UTIMES): Likewise.
2027 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
2029 * sysdeps/x86_64/fpu/s_ceill.S: New file.
2031 2003-11-13 Ulrich Drepper <drepper@redhat.com>
2033 * posix/regcomp.c (parse_expression): In BRE consecutive
2034 duplications are not allowed.
2036 2003-11-12 Ulrich Drepper <drepper@redhat.com>
2038 * posix/regcomp.c (parse_bracket_exp): If end of expression is
2039 seen, return EBRACK error, not BADPAT.
2041 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
2042 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
2043 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
2044 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
2046 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
2049 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
2050 * posix/runptests.c (main): Handle comments.
2051 * posix/PTESTS2C.sed: Handle comments.
2053 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2055 * posix/regcomp.c (optimize_utf8): New function.
2056 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
2058 (re_compile_internal): Call optimize_utf8 if not case insensitive
2059 and in UTF-8 locale.
2060 * posix/regex_internal.h: Ifdef out some prototypes if
2061 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
2062 * posix/Makefile (tests): Add bug-regex20.
2063 (bug-regex20-ENV): Add LOCPATH.
2064 * posix/bug-regex20.c: New test.
2066 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2068 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
2070 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2072 * posix/tst-regex.c (umemlen): New variable.
2073 (test_expr): Add expectedicase argument. Test case insensitive
2074 searches as well as backwards searches (case sensitive and
2076 (run_test): Add icase argument. Use it to compute regcomp flags.
2077 (run_test_backwards): New function.
2078 (main): Cast read to size_t to avoid warning. Set umemlen.
2079 Add expectedicase arguments to test_expr.
2080 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
2081 find previous character by walking back instead of converting
2082 all chars from beginning.
2084 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2086 * posix/regex_internal.h (struct re_string_t): Add is_utf8
2087 and mb_cur_max fields.
2088 (struct re_dfa_t): Likewise. Reorder fields to make structure
2089 smaller on 64-bit arches.
2090 (re_string_allocate, re_string_construct): Add mb_cur_max and
2092 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
2093 instead of MB_CUR_MAX.
2094 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
2095 instead of MB_CUR_MAX.
2096 (re_compile_internal): Pass new arguments to re_string_construct.
2097 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
2098 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
2100 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
2101 dfa->mb_cur_max instead of MB_CUR_MAX.
2102 * posix/regex_internal.c (re_string_construct_common): Add
2103 mb_cur_max and is_utf8 arguments. Initialize fields with them.
2104 (re_string_allocate, re_string_construct): Add mb_cur_max and
2105 is_utf8 arguments, pass them to re_string_construct_common.
2106 Use mb_cur_max instead of MB_CUR_MAX.
2107 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
2109 (re_string_reconstruct): Likewise.
2110 (re_string_context_at): Use input->mb_cur_max instead of
2112 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
2113 instead of MB_CUR_MAX.
2114 * posix/regexec.c (re_search_internal): Likewise.
2115 Pass new arguments to re_string_allocate.
2116 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
2118 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
2120 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2122 * posix/Makefile (tests): Add bug-regex19.
2123 (bug-regex19-ENV): Add LOCPATH.
2124 * posix/bug-regex19.c: New test.
2126 2003-11-11 Jakub Jelinek <jakub@redhat.com>
2128 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
2129 with MB_CUR_MAX > 1 locales in the fastmap.
2131 2003-11-11 Jakub Jelinek <jakub@redhat.com>
2133 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
2134 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
2136 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
2137 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
2138 * posix/bug-regex17.c: New file
2139 * posix/bug-regex18.c: New file.
2141 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
2143 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
2144 Define __NR_pread/__NR_pwrite if not done in kernel headers
2146 2003-11-11 Roland McGrath <roland@redhat.com>
2148 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
2150 * manual/Makefile (info): Don't depend on dir-add.info.
2151 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
2152 (dir-add.info): Target removed, replaced with ...
2153 (dir-add.texi): New target.
2154 (distribute): Add it.
2155 (install): Remove variant with --section arguments.
2156 Let the @dircategory directives do their work.
2157 (mostlyclean): Don't remove dir-add.info here.
2158 (realclean): Remove dir-add.texi here.
2159 * manual/libc.texinfo: @include dir-add.texi
2160 * configure.in: Remove check for old Debian install-info.
2161 * configure: Regenerated.
2162 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
2164 2003-11-08 Andreas Schwab <schwab@suse.de>
2166 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
2168 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2170 * io/ftwtest-sh: Fix nested sed commands.
2172 2003-11-10 Jakub Jelinek <jakub@redhat.com>
2174 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
2175 valid_len wide chars.
2177 2003-11-09 Roland McGrath <roland@redhat.com>
2179 * manual/examples/dir2.c (one): Add const to argument type.
2180 Reported by J de Haan <j.de.haan@home.nl>.
2182 2003-11-07 Ulrich Drepper <drepper@redhat.com>
2184 * po/pl.po: Update from translation team.
2186 2003-11-07 Jakub Jelinek <jakub@redhat.com>
2188 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2189 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
2190 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
2191 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
2193 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2194 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
2195 and nftw64@@GLIBC_2.3.3.
2197 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
2198 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
2199 * io/ftw.c (ftw_dir): Add old_dir argument.
2200 Clear result if it was FTW_SKIP_SIBLINGS after processing all
2201 dir entries. Change cwd back if old_dir != NULL.
2202 (process_entry): Adjust caller. Don't change cwd back here.
2203 Change FTW_SKIP_SUBTREE result to 0.
2204 (ftw_startup): Adjust ftw_dir caller.
2205 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
2206 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
2207 (options, main): Add --skip-subtree and --skip-siblings options.
2208 (cb): Use return FTW_CONTINUE instead of return 0.
2209 Handle --skip-subtree and --skip-siblings.
2210 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
2211 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
2213 2003-11-04 Jakub Jelinek <jakub@redhat.com>
2215 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
2217 * io/Makefile (tests): Add bug-ftw4.
2218 * io/bug-ftw4.c: New test.
2220 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
2222 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
2223 (struct _IO_FILE_complete_plus): New type.
2224 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
2225 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2226 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
2227 Call _IO_old_init instead of _IO_init.
2229 2003-11-03 Ulrich Drepper <drepper@redhat.com>
2231 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
2233 * locale/iso-639.def: Add Blin.
2234 Patch by Daniel Yacob <locales@geez.org>.
2236 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
2238 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
2239 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
2241 2003-11-01 Randolph Chung <tausq@debian.org>
2243 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
2244 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
2245 Add missing parentheses.
2247 2003-11-01 Roland McGrath <roland@redhat.com>
2249 * libio/bug-ftell.c (do_test): Add a cast.
2251 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
2253 * Makerules (shlib.lds): Make sure that ld doesn't try to link
2254 anything while generating the linker script.
2256 2003-10-31 Roland McGrath <roland@redhat.com>
2258 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
2261 2003-10-29 Ulrich Drepper <drepper@redhat.com>
2263 * po/be.po: Update from translation team.
2265 2003-10-27 Ulrich Drepper <drepper@redhat.com>
2267 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
2270 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
2273 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
2274 rest of line. We use getline which means this cannot happen.
2276 2003-10-26 Ulrich Drepper <drepper@redhat.com>
2278 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
2279 Avoid infinite loops in case the mounts file is hosed.
2280 * io/Makefile: Add rules to build and run tst-statvfs.
2281 * io/tst-statvfs.c: New file.
2283 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
2284 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
2285 executables unless __RTLD_OPENEXEC flag is present.
2286 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
2287 _dl_map_object when loading the executable.
2289 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
2291 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
2293 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
2294 reverse lookup format for IPv6 addresses is using bitstring and
2296 * resolv/ns_name.c: Implement encoding and decoding bitstring in
2299 2003-10-23 Jakub Jelinek <jakub@redhat.com>
2301 * locale/programs/locale.c (show_info): Fix printing word values on
2302 64-bit big-endian architectures.
2304 2003-10-19 Bruno Haible <bruno@clisp.org>
2306 * intl/hash-string.c (hash_string): Zero-extend each char from the
2307 string; the old code did a sign-extend on some platforms.
2309 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
2311 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
2312 append options to these.
2313 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
2315 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2317 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2319 2003-10-15 Roland McGrath <roland@redhat.com>
2321 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
2322 Fake an entry for the main executable and then call __dl_iterate_phdr.
2323 * elf/Makefile (routines): Remove dl-iteratephdr-static.
2324 (elide-routines.os): Likewise.
2325 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
2326 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
2327 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
2329 2003-10-15 Jakub Jelinek <jakub@redhat.com>
2331 * elf/rtld.c (print_statistics): Print also number of relative
2334 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
2336 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
2337 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
2338 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
2339 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
2340 and undef JUMPTARGET before use.
2341 [PIC]: Save pic register around syscall.
2342 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
2343 Cleanup asm statment.
2345 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2347 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
2348 after trapa instruction.
2350 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2352 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
2354 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2356 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2358 2003-10-09 Roland McGrath <roland@redhat.com>
2360 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
2363 2003-10-08 Jakub Jelinek <jakub@redhat.com>
2365 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
2366 two identical copies of strings.
2368 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2370 * posix/bug-regex11.c: Add some more tests which fail so far.
2371 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
2373 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
2375 * posix/bug-regex11.c: Add more backreference-related test cases.
2376 (main): Show the failing regex in the error messages.
2377 * posix/regexec.c (check_dst_limits_calc_pos):
2378 Simplify some nested conditionals. Replace if's with a switch
2380 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
2381 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
2382 does not change in the recursive invocation, fixing an infinite loop
2383 in the ()\1*\1* regex.
2384 (sift_states_backward): Fix function comment.
2385 * posix/regcomp.c (calc_epsdest): Add an assertion.
2387 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2389 * manual/examples/testopt.c: Fix warnings. Better error message
2390 for missing -c argument.
2391 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
2393 * timezone/asia: Update from tzdata2003d.
2394 * timezone/australasia: Likewise.
2395 * timezone/backward: Likewise.
2396 * timezone/europe: Likewise.
2397 * timezone/iso3166.tab: Likewise.
2398 * timezone/northamerica: Likewise.
2399 * timezone/southamerica: Likewise.
2400 * timezone/zone.tab: Likewise.
2402 2003-10-05 Jakub Jelinek <jakub@redhat.com>
2404 * sysdeps/ia64/backtrace.c: New file.
2405 * sysdeps/x86_64/backtrace.c: New file.
2406 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
2407 (_Unwind_Backtrace): New prototype.
2409 2003-10-03 Ulrich Drepper <drepper@redhat.com>
2411 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
2412 * sysdeps/i386/elf/setjmp.S: Likewise.
2414 2003-10-02 Roland McGrath <roland@redhat.com>
2416 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
2417 * argp/argp-namefrob.h
2418 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
2419 (__argp_short_program_name): Don't declare fn, define it as a macro.
2421 2003-08-22 Simon Josefsson <jas@extundo.com>
2423 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
2425 * argp/argp-help.c: Don't include malloc.h, some platforms
2426 complain and it doesn't appear to be used.
2427 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
2429 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
2431 (hol_entry_long_iterate): Change __attribute to __attribute__.
2432 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
2433 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
2434 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
2435 modified after comments from Ulrich Drepper.
2436 (__argp_short_program_name): Ditto.
2437 (__argp_state_help, __argp_error, __argp_failure): Use it.
2438 (__argp_failure): Use strerror when necessary.
2440 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
2441 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
2442 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
2443 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
2444 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
2445 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
2446 non-unlocked functions.
2447 [!_LIBC]: Add prototypes for __argp_basename and
2448 __argp_short_program_name.
2450 * argp/argp-parse.c (argp_default_parser): Only use
2451 program_invocation{_short,}_name if declared.
2452 (parser_init): Use __argp_short_program_name.
2454 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
2455 '#include features.h'.
2457 * argp/argp.h [!__attribute__]: Define to nothing.
2459 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
2461 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
2462 for the first token in a subexpression as well.
2464 2003-10-02 Jakub Jelinek <jakub@redhat.com>
2466 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
2468 (parse_reg_exp): Likewise.
2469 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
2471 * posix/bug-regex11.c (tests): Add new tests.
2472 * posix/bug-regex12.c (tests): Add new test.
2474 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
2476 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2477 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
2479 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
2481 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
2482 the old thread-m.h header too.
2484 2003-10-02 Ulrich Drepper <drepper@redhat.com>
2486 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
2487 back to 131027 since this is what the kernel enforces.
2489 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
2490 define it with libc_freeres_ptr.
2492 2003-10-01 Roland McGrath <roland@redhat.com>
2494 * elf/rtld.c (dl_main): Add cast in last change.
2496 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2498 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
2499 "#if 0" surrounding most of contents.
2500 (SYSCALL_ERROR_LABEL): Define.
2501 (__SYSCALL_CLOBBERS): Add $10.
2502 (internal_syscall7): Remove.
2503 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2505 2003-09-30 Ulrich Drepper <drepper@redhat.com>
2507 * elf/rtld.c (dl_main): Also set l_map_start.
2509 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
2511 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
2512 to work around kernel problem.
2514 2003-09-27 Wolfram Gloger <wg@malloc.de>
2516 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
2517 "thread-m.h", so that default parameters can be overridden in a
2518 system-specific malloc-machine.h. Remove extra ; from extern "C"
2520 * sysdeps/generic/malloc-machine.h: New file.
2521 * sysdeps/mach/hurd/malloc-machine.h: New file.
2522 * malloc/thread-m.h: Removed.
2523 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
2524 is in sysdeps/generic/malloc-machine.h now.
2526 2003-09-29 Ulrich Drepper <drepper@redhat.com>
2528 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2529 variables only used if TLS_TCB_AT_TP is defined into the #if
2532 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
2533 well to cover using long long in C90.
2535 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
2537 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
2538 Redefine and use __libc_cleanup_region_end instead.
2540 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
2542 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
2543 fix prototypes for picky C++ compilers.
2545 2003-09-27 Ulrich Drepper <drepper@redhat.com>
2547 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
2548 the device ID is invalid and return -1.
2549 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2551 2003-09-26 Andreas Schwab <schwab@suse.de>
2553 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
2554 rt_sigprocmask system call.
2556 2003-09-25 Roland McGrath <roland@redhat.com>
2558 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2559 Don't check for zero __libc_stack_end, it should be initialized.
2560 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
2561 and fall back if it fails with EINVAL.
2562 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
2564 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2566 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
2567 sysdeps/i386/dl-procinfo.c instead of
2568 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
2569 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
2572 2003-09-25 Ulrich Drepper <drepper@redhat.com>
2574 * posix/regcomp.c (peek_token): Remove recent changes for anchor
2576 (parse_reg_exp): Likewise.
2577 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
2579 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
2582 * nis/nis_table.c (nis_list): Always strdup string used with
2583 ibreq->ibr_name. Add several NULL pointer checks.
2585 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
2587 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2588 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2589 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2590 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
2591 * nis/nss_nisplus/nisplus-network.c: Likewise.
2592 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2593 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2594 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2595 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2596 * nis/nss_nisplus/nisplus-service.c: Likewise.
2597 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2599 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
2601 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2602 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
2603 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2604 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2605 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2606 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2607 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2608 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2609 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2610 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2611 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2613 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2615 * misc/syslog.c: Include locale.h.
2616 (vsyslog): Add date always in C locale %h %e %T format.
2618 2003-09-24 Paul Eggert <eggert@twinsun.com>
2620 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
2621 size_t overflow when reallocating storage.
2622 * argp/argp-help.c (make_hol, hol_append): Likewise.
2623 (SIZE_MAX): New macro.
2625 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
2627 * sysdeps/mach/hurd/bits/libc-lock.h
2628 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
2630 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
2632 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
2633 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
2634 #include_next dl-procinfo.h to get them.
2635 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
2636 (_DL_PLATFORMS_COUNT): Likewise.
2637 (_DL_FIRST_PLATFORM): Likewise.
2638 (_DL_HWCAP_PLATFORM): Likewise.
2639 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
2640 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
2641 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
2642 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
2643 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
2644 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
2645 HWCAP_IMPORTANT): Likewise.
2646 (_DL_PROCINFO_H_): Likewise.
2647 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
2648 (_dl_string_platform): Likewise.
2649 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
2650 * sysdeps/i386/dl-procinfo.c: ... here, new file.
2652 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2654 * sysdeps/unix/sysv/linux/dl-execstack.c
2655 (_dl_make_stack_executable): Remember that we changed the permission.
2657 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
2658 __libc_stack_end. Patch by David Mosberger.
2660 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2662 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
2663 __libc_stack_end@GLIBC_PRIVATE.
2665 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
2666 (_dl_sysdep_start): Set __libc_stack_end here.
2667 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
2669 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
2670 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
2671 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
2672 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2673 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
2674 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
2675 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
2676 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
2677 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
2678 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
2679 (RTLD_START): Remove setting of __libc_stack_end.
2680 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
2681 (RTLD_START): Remove setting of __libc_stack_end.
2683 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2685 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
2686 function definitions. Adjust macro expansions accordingly.
2687 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
2688 minor, makedev name.
2689 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
2691 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2693 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
2696 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2698 * nscd/Makefile (others): Add nscd before including ../Rules.
2700 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2702 * nscd/Makefile: Add rules to build nscd as a PIE.
2703 * configure.in: Check for -fpie and -pie compiler options.
2704 * config.make.in (have-fpie): Define.
2706 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2708 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
2710 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
2711 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
2712 * sysdeps/unix/sysv/linux/makedev.c: New file.
2713 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
2714 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
2715 (sysdep_routines): Add makedev.
2716 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
2717 major, minor, makedev.
2718 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
2720 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
2721 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2722 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
2723 Code by Alexander Viro <aviro@redhat.com>.
2725 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
2728 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
2730 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
2731 for include Altivec support for PPC32. It was not compatible.
2732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
2733 offsets for ucontext_t change.
2734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
2735 for ucontext_t change. Add compatibility code.
2736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
2737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2739 Patch by Paul Mackerras <paulus@samba.org>.
2741 2003-02-25 Randolph Chung <tausq@debian.org>
2743 * sysdeps/hppa/Makefile: Include compat code in build.
2744 * sysdeps/hppa/libgcc-compat.c: New file.
2745 * sysdeps/hppa/Dist: Add libgcc-compat.c.
2746 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
2748 2003-09-23 Roland McGrath <roland@redhat.com>
2750 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
2751 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
2752 Move GL(dl_make_stack_executable_hook) initialization up.
2753 * elf/tst-execstack-prog.c: New file.
2754 * elf/Makefile (tests-execstack-yes): Add it.
2755 (LDFLAGS-tst-execstack-prog): New variable.
2757 2003-09-23 Jakub Jelinek <jakub@redhat.com>
2759 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
2760 before calling _dl_start, using %rip relative access.
2761 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
2764 2003-09-23 Roland McGrath <roland@redhat.com>
2766 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
2767 calling _dl_start, using GOTOFF access.
2769 * configure.in (libc_cv_z_execstack): New check.
2770 * configure: Regenerated.
2771 * config.make.in (have-z-execstack): New variable set by it.
2772 * elf/tst-execstack.c: New file.
2773 * elf/tst-execstack-mod.c: New file.
2774 * elf/tst-execstack-needed.c: New file.
2775 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
2777 (tests, modules-names): Conditionally include them.
2778 (distribute): Add tst-execstack-mod.c here.
2779 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
2780 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
2781 ($(objpfx)tst-execstack-needed): New target.
2782 (LDFLAGS-tst-execstack-needed): New variable.
2784 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
2785 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
2786 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
2787 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
2788 Initialize _dl_make_stack_executable_hook.
2789 * elf/dl-support.c: Define those new variables.
2790 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
2791 (_dl_phdr): Fix type.
2792 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
2793 enable execute permission for the stack if necessary.
2794 * sysdeps/generic/dl-execstack.c: New file.
2795 * elf/Makefile (dl-routines): Add it.
2796 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
2797 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
2799 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2801 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
2803 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
2805 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
2806 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
2809 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2811 * malloc/malloc.c: Include <stdint.h>.
2813 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
2815 * posix/regcomp.c (build_word_op): Rename like...
2816 (build_charclass_op): ...this. Accept two extra parameters,
2817 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
2818 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
2819 (parse_expression): Replace build_word_op with
2820 build_charclass_op, add new arguments, accept OP_SPACE
2822 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
2825 * posix/regcomp.c (peek_token): Don't look back for ( or |
2826 to check whether to treat a caret as special. It fails
2827 for the (extended) regex \(^.
2828 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
2829 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
2831 * posix/regexec.c: Check out of bounds value before shifting.
2833 * posix/regex_internal.h: Define __attribute for non-gcc.
2835 2003-09-22 Jakub Jelinek <jakub@redhat.com>
2837 * include/atomic.h (atomic_compare_and_exchange_val_rel,
2838 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
2841 * sysdeps/unix/opendir.c: Include string.h.
2843 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2845 * timezone/zdump.c: Update from tzcode2003c.
2846 * timezone/zic.c: Likewise.
2847 * timezone/leapseconds: Update from tzdata2003c.
2849 2003-09-19 Ulrich Drepper <drepper@redhat.com>
2851 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
2852 final build to ease quality control.
2854 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
2855 ld.so, don't include NULL buffer pointer handling.
2857 2003-09-19 Jakub Jelinek <jakub@redhat.com>
2859 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
2861 2003-09-18 Jakub Jelinek <jakub@redhat.com>
2863 * libio/memstream.c (open_memstream): Use _IO_init instead of
2866 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2868 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
2869 have to recognize octal and hexadecimal numbers as well. Simplify
2870 function, signs are handled in strtol.
2871 * posix/wordexp-test.c: Add tests for octal and hexadecimal
2872 numbers in arithmetic expressions.
2874 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2876 * elf/Makefile (distribute): Add tst-alignmod.c.
2877 (tests): Add tst-align.
2878 (modules-names): Add tst-alignmod.
2879 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
2880 $(stack-align-test-flags).
2881 ($(objpfx)tst-align): Depend on libdl.
2882 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
2883 * elf/tst-align.c: New file.
2884 * elf/tst-alignmod.c: New file.
2885 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
2886 * misc/tst-tsearch.c: Include tst-stack-align.h.
2887 (stack_align_check): New array.
2888 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
2889 (main): Report error if stack was not enough aligned
2890 in cmp_fn or walk_action.
2891 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
2892 * stdlib/tst-qsort.c: Include tst-stack-align.h.
2893 (align_check): New var.
2894 (compare): Use TEST_STACK_ALIGN () macro.
2895 (main): Report error if stack was not enough aligned in compare.
2896 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
2897 unneeded -mpreferred-stack-boundary=4.
2898 * sysdeps/x86_64/tst-stack-align.h: New file.
2900 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
2901 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
2903 2003-09-17 Philip Blundell <philb@gnu.org>
2905 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
2907 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2909 * sysdeps/arm/sysdep.h (DO_RET): New.
2911 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
2912 required but not defined. Improve test of error code.
2914 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2916 * sysdeps/i386/Makefile (stack-align-test-flags): Add
2917 -malign-double -mpreferred-stack-boundary=4.
2919 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2921 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
2922 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
2924 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2926 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
2927 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
2929 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2931 * Makeconfig (stack-align-test-flags): Set.
2932 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
2933 $(stack-align-test-flags).
2934 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
2935 (align_check): New var.
2936 (comp): Use TEST_STACK_ALIGN macro.
2937 (do_test): Fail if align_check != 1.
2938 * sysdeps/generic/tst-stack-align.h: New file.
2939 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
2940 * sysdeps/i386/i686/tst-stack-align.h: New file.
2942 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2944 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
2945 stack which is aligned (mod 16).
2947 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
2948 Hans-Peter Nilsson <hp@axis.com>
2950 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
2951 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
2953 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2955 * dirent/scandir.c: Include bits/libc-lock.h.
2956 (struct scandir_cancel_struct): New type.
2957 (cancel_handler): New function.
2958 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
2959 scandir_cancel_struct.
2961 2003-09-16 Ulrich Drepper <drepper@redhat.com>
2963 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
2964 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2965 Add internal_statvfs.
2966 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
2967 instead of including "internal_statvfs.c".
2968 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2969 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
2970 Add code to avoid the stat calls on all the reported mount points
2971 when we can determine mismatch in advance.
2972 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
2973 USBDEVFS_SUPER_MAGIC.
2975 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2977 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
2978 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
2980 2003-09-16 Bruno Haible <bruno@clisp.org>
2982 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
2983 invoking msgfmt, not before.
2985 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2987 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
2988 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
2990 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
2991 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
2992 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
2993 * elf/dl-iteratephdr.c (cancel_handler): New function.
2994 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
2995 * elf/link.h (dl_iterate_phdr): Remove __THROW.
2996 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
2997 Add $(uses-callbacks).
2998 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
2999 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
3000 $(exceptions) to $(uses-callbacks).
3001 * Makeconfig (uses-callbacks): Set to $(exceptions).
3002 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
3004 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
3007 2003-09-15 Andreas Schwab <schwab@suse.de>
3009 * sysdeps/m68k/setjmp.c: Add hidden_def.
3011 2003-09-14 Ulrich Drepper <drepper@redhat.com>
3013 * libio/memstream.c (open_memstream): Don't allow wide char operations.
3015 * dirent/dirent.h: Remove __THROW from scandir.
3017 2003-09-14 Philip Blundell <philb@gnu.org>
3019 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
3022 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
3024 * sysdeps/arm/memset.S: Rewrite.
3026 2003-09-12 Jakub Jelinek <jakub@redhat.com>
3028 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
3029 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
3030 __SLONGWORD_TYPE otherwise.
3032 2003-09-14 Ulrich Drepper <drepper@redhat.com>
3034 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
3035 (CFLAGS-ftw64.c): Likewise.
3037 2003-09-13 Ulrich Drepper <drepper@redhat.com>
3039 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
3040 (CFLAGS-nscd_getgr_r.c): Likewise.
3041 (CFLAGS-nscd_gethst_r.c): Likewise.
3043 2003-09-12 Ulrich Drepper <drepper@redhat.com>
3045 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
3048 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
3049 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
3050 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
3051 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
3052 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
3053 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
3055 * misc/Makefile (CFLAGS-err.c): Likewise.
3056 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
3057 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
3058 CFLAGS-glob64.c): Likewise.
3059 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
3060 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
3061 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
3062 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
3063 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
3065 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
3067 * libio/stdio.h: Remove __THROW from cuserid prototype.
3069 * locale/loadarchive.c: Use only non-cancelable interfaces.
3070 * resolv/herror.c (herror): Likewise.
3072 * malloc/hooks.c: Before using IO stream mark stream so it uses
3073 only non-cancelable interfaces.
3074 * malloc/malloc.c: Likewise.
3075 * posix/getopt.c: Likewise.
3078 2003-09-11 Jakub Jelinek <jakub@redhat.com>
3080 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
3082 2003-09-12 Ulrich Drepper <drepper@redhat.com>
3084 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
3086 * misc/err.h: Remove __THROW from all prototypes.
3088 * posix/getopt.h (__THROW): Define if not already defined. Add
3089 __THROW to the getopt functions.
3091 2003-09-11 Ulrich Drepper <drepper@redhat.com>
3093 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
3094 (CFLAGS-fts.c): Likewise.
3095 * io/fcntl.h: Remove __THROW from lockf prototypes.
3096 * io/fts.h: Remove most __THROW.
3098 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
3100 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
3104 2003-09-11 Jakub Jelinek <jakub@redhat.com>
3106 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
3107 _IO_free_backup_area call.
3109 2003-09-10 Chris Demetriou <cgd@broadcom.com>
3111 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
3113 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
3114 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
3115 Also, only assert off_t size is 4 for N32 and O32, and clean up
3117 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
3119 2003-09-10 Roland McGrath <roland@redhat.com>
3121 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
3122 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
3123 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
3124 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3125 Reported by Daniel Jacobowitz <drow@mvista.com>.
3127 2003-09-10 Jakub Jelinek <jakub@redhat.com>
3129 * string/Makefile (strop-tests): Add memccpy.
3130 * string/test-memccpy.c: New test.
3132 2003-09-09 Jakub Jelinek <jakub@redhat.com>
3134 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
3135 siginfo_t * argument before, change into struct ucontext *.
3136 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
3137 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
3138 instead of structure.
3139 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
3142 2003-09-09 Ulrich Drepper <drepper@redhat.com>
3144 * string/stratcliff.c (main): Check memccpy.
3146 2003-04-11 Jes Sorensen <jes@wildopensource.com>
3148 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
3149 character is found during recovery, use correct register when
3150 determining the position of the found character.
3152 2003-04-01 Jes Sorensen <jes@wildopensource.com>
3154 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
3155 avoid segfaults when reading from unmapped pages. For aligned
3156 reload and continue, for misaligned, roll back and use byte copy.
3157 Save ar.ec on entry and restore on exit.
3159 2003-09-09 Chris Demetriou <cgd@broadcom.com>
3161 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
3163 2003-09-08 Chris Demetriou <cgd@broadcom.com>
3165 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
3166 the top of the list.
3167 * sysdeps/mips/mips64/n64/Implies: Likewise.
3169 2003-09-08 Roland McGrath <roland@frob.com>
3171 * sysdeps/unix/sysv/linux/speed.c
3172 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
3173 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
3174 * sysdeps/unix/sysv/linux/bits/termios.h
3175 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
3176 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3177 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3179 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3181 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
3182 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
3184 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3186 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
3187 (__u_quad_t): Make unsigned long int if 64-bit.
3188 (__SQUAD_TYPE): Make long int if 64-bit.
3189 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
3190 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
3192 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3194 * Makefile (tests): Run check-c++-types.sh if possible.
3195 * scripts/check-c++-types.h: New file.
3196 * scripts/data/c++-types-i386-linux-gnu.data: New file.
3198 2003-09-08 Andreas Jaeger <aj@suse.de>
3200 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3201 Use struct sigcontext.
3203 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
3204 Use struct sigcontext.
3206 (GET_FRAME): Likewise.
3207 (GET_STACK): Likewise.
3209 2003-09-08 Wolfram Gloger <wg@malloc.de>
3211 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
3212 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
3213 (mALLOPt): Avoid requirement of C99.
3215 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3217 * libio/bug-ftell.c: Include <sys/types.h>.
3218 (main): Mark cp as const.
3220 2003-09-07 Jakub Jelinek <jakub@redhat.com>
3222 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
3223 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
3225 2003-09-05 Roland McGrath <roland@redhat.com>
3227 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
3228 and c_ospeed fields.
3229 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
3230 (cfsetispeed): Set c_ispeed field.
3231 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
3232 to match corresponding speed.c code.
3234 2003-09-06 Ulrich Drepper <drepper@redhat.com>
3236 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
3237 narrow character buffer.
3238 * libio/Makefile: Add rules to build and run bug-ftell.
3239 * libio/bug-ftell.c: New file.
3241 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
3243 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
3244 matching the decimal point and possibly leading the thousands
3245 separator. This caused the recognition of thousands separators to
3248 2003-09-05 Ulrich Drepper <drepper@redhat.com>
3250 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
3251 write mode from read in backup buffer.
3252 * libio/Makefile (tests): Add bug-ungetc2.
3253 * libio/bug-ungetc2.c: New file.
3255 2003-09-05 Roland McGrath <roland@redhat.com>
3257 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
3259 2003-09-04 Roland McGrath <roland@frob.com>
3261 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
3262 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
3264 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
3266 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
3269 2003-09-05 Andreas Jaeger <aj@suse.de>
3271 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
3272 to make it conforming C.
3273 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
3275 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
3276 prototype to use variable argument lists and get the possible one
3277 argument via va_arg.
3278 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
3279 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
3281 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3283 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
3285 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3286 Report correct value for vxfs.
3287 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
3289 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
3292 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
3293 over the place. It would be allowed to have these functions as
3294 cancellation points but the cleanup would be ugly and a lot of
3297 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
3298 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
3300 * include/fcntl.h (__fcntl_nocancel): Declare.
3301 * sysdeps/unix/sysv/linux/fcntl.c: New file.
3302 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
3303 cancellation if absolutely needed.
3304 (__fcntl_nocancel): Define.
3306 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
3307 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
3309 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
3312 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
3315 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
3316 unnecessary errno handling.
3318 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
3319 Initialize it in all cases. Change it to be a bit more like the
3322 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3324 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
3326 (_IO_file_open): Likewise. Use close_not_cancel.
3328 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3330 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
3331 * libio/fileops.c [_LIBC]: Remove close macro.
3332 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
3333 (_IO_new_file_open): Recognize 'c' flag in mode string.
3334 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
3335 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
3337 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
3338 * inet/rcmd.c: Likewise.
3339 * inet/ruserpass.c: Likewise.
3340 * intl/localealias.c: Likewise.
3341 * malloc/mtrace.c: Likewise.
3342 * misc/getpass.c: Likewise.
3343 * misc/getttyent.c: Likewise.
3344 * misc/mntent_r.c: Likewise.
3345 * misc/getusershell.c: Likewise.
3346 * nss/nsswitch.c: Likewise.
3347 * resolv/res_hconf.c: Likewise.
3348 * resolv/res_init.c: Likewise.
3349 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3350 * time/getdate.c: Likewise.
3351 * time/tzfile.c: Likewise.
3352 * misc/fstab.h: Undo last change.
3353 * misc/mntent.h: Likewise.
3354 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
3355 CFLAGS-fstab.c definition.
3357 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3359 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
3361 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3363 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
3364 returning ERANGE if this wasn't intended.
3366 2003-09-03 Jakub Jelinek <jakub@redhat.com>
3368 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
3369 function-like macros.
3371 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3373 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
3374 (CFLAGS-getgrent.c): Likewise.
3375 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
3376 (CFLAGS-getpwent.c): Likewise.
3377 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
3378 (CFLAGS-getspent.c): Likewise.
3380 * inet/Makefile: Add -fexceptions to CFLAGS for the various
3381 getXXent and getXXbyYY functions.
3383 * locale/loadlocale.c: Use not-cancelable variants of open, close,
3386 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3388 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3389 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
3391 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
3393 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
3394 unused __syscall_ stubs.
3395 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
3397 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
3398 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
3399 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
3400 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
3401 unused __syscall_ stubs.
3402 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
3403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3404 (__syscall_*): Remove unused __syscall_ stubs.
3405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3406 (__syscall_*): Likewise.
3407 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
3409 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
3410 Remove unused __syscall_ stubs.
3411 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
3412 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
3413 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
3414 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
3415 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
3416 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
3417 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
3418 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
3419 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
3420 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
3421 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
3422 __syscall_* prototypes.
3423 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
3424 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3425 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3426 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3427 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
3428 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3429 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3430 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3431 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3432 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3433 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3434 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3435 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3436 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3437 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3438 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3439 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3440 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3441 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3442 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3443 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3444 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3445 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3446 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3447 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3448 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3449 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3450 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3451 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3452 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3453 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3454 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3455 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3456 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3457 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3458 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3459 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3460 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
3461 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3462 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
3463 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
3464 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3465 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3466 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3467 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3468 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
3469 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3470 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3471 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3472 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3473 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
3474 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3475 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3476 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3477 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3478 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
3479 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
3480 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3481 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3482 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
3483 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3484 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
3485 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3486 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3487 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3488 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3489 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3490 * sysdeps/unix/sysv/linux/execve.c: Likewise.
3491 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3492 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3493 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
3494 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3495 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3496 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3497 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3498 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3499 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3500 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3501 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3502 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3503 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
3504 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
3505 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
3506 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3507 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3508 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3509 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3510 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
3511 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3512 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3513 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3514 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3515 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3516 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
3517 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3518 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3519 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3520 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3521 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3522 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3523 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3524 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3526 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3528 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
3529 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
3530 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
3532 2003-09-02 Ulrich Drepper <drepper@redhat.com>
3534 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
3536 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
3537 open, close, and read.
3539 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
3542 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
3544 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
3545 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
3546 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
3548 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
3550 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
3551 (CFLAGS-fstatfs.c): Likewise.
3552 (CFLAGS-statvfs.c): Likewise.
3553 (CFLAGS-fstatvfs.c): Likewise.
3555 2003-09-01 Ulrich Drepper <drepper@redhat.com>
3557 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
3558 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
3560 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
3561 (CFLAGS-pathconf.c): Likewise.
3562 (CFLAGS-fpathconf.c): Likewise.
3564 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
3565 * misc/fstab.h: Remove all __THROW.
3566 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
3567 (CFLAGS-mntent_r.c): Likewise.
3568 * misc/mntent.h: Remove most __THROW.
3570 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3571 (CFLAGS-mkstemp64.c): Likewise.
3573 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
3574 around call to exec_comm.
3575 * posix/wordexp.h: Remove __THROW from wordexp.
3576 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
3578 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
3579 not-cancelable functions.
3581 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
3582 (CFLAGS-iofopen.c): Likewise.
3583 (CFLAGS-iofopen64.c): Likewise.
3585 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
3587 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
3588 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
3590 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
3591 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
3593 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
3595 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
3596 NSS_STATUS_SUCCESS if entry was found.
3597 (getspent_next_file): Store user in blacklist after entry
3598 was found, use innetgr.
3600 2003-09-01 Jakub Jelinek <jakub@redhat.com>
3602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
3603 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
3605 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
3606 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
3607 DTV_AT_TP, optimize.
3609 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3611 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
3612 posix_fallocate64 at GLIBC_2.3.3.
3613 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
3614 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3616 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3618 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
3621 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3623 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
3624 Code by Richard Henderson.
3626 2003-08-31 Philip Blundell <philb@gnu.org>
3628 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
3629 posix_fallocate64 at GLIBC_2.3.3.
3631 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3633 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
3634 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
3636 2003-08-30 Jakub Jelinek <jakub@redhat.com>
3638 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
3639 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
3640 included multiple times.
3641 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
3642 ptid, tls, ctid arguments to the kernel.
3643 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3644 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
3645 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3646 (__libc_sigaction): Use INLINE_SYSCALL instead of
3647 __syscall_rt_sigaction.
3648 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3649 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
3650 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
3651 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
3652 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
3653 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
3654 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
3655 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
3656 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
3657 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
3658 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
3659 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3660 (__CLONE_SYSCALL_STRING): Define.
3661 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
3663 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3664 (__CLONE_SYSCALL_STRING): Define.
3665 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
3667 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
3669 2003-08-30 Ulrich Drepper <drepper@redhat.com>
3671 * sunrpc/rpc/clnt.h: Remove a few __THROW.
3672 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
3673 (CFLAGS-key_call.c): Likewise.
3674 (CFLAGS-pmap_rmt.c): Likewise.
3675 (CFLAGS-clnt_perr.c): Likewise.
3676 * sunrpc/rpc/auth.h: Remove serveral __THROW.
3678 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
3679 (CFLAGS-gethstbynm_r.c): Likewise.
3680 (CFLAGS-gethstbynm2_r.c): Likewise.
3681 (CFLAGS-rcmd.c): Likewise.
3682 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
3684 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
3685 (CFLAGS-argp-fmtstream.c): Likewise.
3686 * argp/argp.h: Remove a number of __THROW.
3688 * misc/sys/syslog.h (vsyslog): Remove __THROW.
3690 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
3691 * misc/getpass.c (getpass): Add cleanup handler to ensure the
3692 stream is closed even if the thread is canceled.
3693 (call_fclose): New function.
3694 * posix/unistd.h: Remove __THROW from getpass prototype.
3696 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
3698 * signal/signal.h (psignal): Remove __THROW.
3699 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
3701 * misc/Makefile (CFLAGS-error.c): Define.
3702 * misc/error.c (error): Disable cancellation handling around the
3703 actual output. The message should in any case be printed.
3704 (error_at_line): Likewise.
3706 * misc/error.h: Protect parameter names with leading __.
3708 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3710 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
3712 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3714 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
3717 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3719 * libio/stdio.h: Remove a few more __THROW.
3721 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3723 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
3724 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
3725 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
3726 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
3727 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
3728 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
3729 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
3730 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
3731 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
3732 putwchar.c and rewind.c with exceptions.
3733 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
3734 _IO_release_lock): Define.
3735 * libio/fileops.c (_IO_new_file_underflow): Use it.
3736 * libio/fputc.c (fputc): Likewise.
3737 * libio/fputwc.c (fputwc): Likewise.
3738 * libio/freopen64.c (freopen64):
3739 * libio/freopen.c (freopen): Likewise.
3740 * libio/fseek.c (fseek): Likewise.
3741 * libio/fseeko64.c (fseeko64): Likewise.
3742 * libio/fseeko.c (fseeko): Likewise.
3743 * libio/ftello64.c (ftello64): Likewise.
3744 * libio/ftello.c (ftello): Likewise.
3745 * libio/fwide.c (fwide): Likewise.
3746 * libio/getc.c (_IO_getc): Likewise.
3747 * libio/getchar.c (getchar): Likewise.
3748 * libio/getwc.c (_IO_getwc): Likewise.
3749 * libio/getwchar.c (getwchar): Likewise.
3750 * libio/iofclose.c (_IO_new_fclose):
3751 * libio/iofflush.c (_IO_fflush): Likewise.
3752 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
3753 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3754 * libio/iofgets.c (_IO_fgets): Likewise.
3755 * libio/iofgetws.c (fgetws): Likewise.
3756 * libio/iofputs.c (_IO_fputs): Likewise.
3757 * libio/iofputws.c (fputws): Likewise.
3758 * libio/iofread.c (_IO_fread): Likewise.
3759 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3760 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3761 * libio/ioftell.c (_IO_ftell): Likewise.
3762 * libio/iofwrite.c (_IO_fwrite): Likewise.
3763 * libio/iogetdelim.c (_IO_getdelim): Likewise.
3764 * libio/iogets.c (_IO_gets): Likewise.
3765 * libio/ioputs.c (_IO_puts): Likewise.
3766 * libio/ioseekoff.c (_IO_seekoff): Likewise.
3767 * libio/ioseekpos.c (_IO_seekpos): Likewise.
3768 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3769 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3770 * libio/ioungetc.c (_IO_ungetc): Likewise.
3771 * libio/ioungetwc.c (ungetwc): Likewise.
3772 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3773 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
3774 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
3775 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
3776 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
3777 * libio/peekc.c (_IO_peekc_locked): Likewise.
3778 * libio/putc.c (_IO_putc): Likewise.
3779 * libio/putchar.c (putchar): Likewise.
3780 * libio/putwc.c (putwc): Likewise.
3781 * libio/putwchar.c (putwchar): Likewise.
3782 * libio/rewind.c (rewind): Likewise.
3783 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
3785 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3787 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
3788 available in XPG4.2.
3790 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
3791 Jakub Jelinek <jakub@redhat.com>
3793 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
3794 big endian arches. Don't read beyond end of fds_bits array.
3796 2003-04-27 Bruno Haible <bruno@clisp.org>
3798 * manual/message.texi (Advanced gettext functions): Add information
3799 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
3800 Add section about Lithuanian, reported by Ricardas Cepas
3801 <rch@richard.eu.org>.
3802 Add information about Croatian.
3803 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
3804 Remove remark about continuation lines that is not true for PO files.
3805 Fix formula for Slovenian, reported by Roman Maurer
3806 <roman.maurer@amis.net>.
3808 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3810 * math/math_private.h: Declare __copysignf.
3811 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
3814 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
3815 __signbit, and __signbitl inline functions.
3817 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
3818 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
3820 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
3821 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
3823 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3825 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
3827 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3829 * include/stdio.h: Add declarations for __builtin_fwrite and
3830 __builtin_fwrite_unlocked.
3832 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3834 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
3835 fits into allocation. Add padding on 32-bit arches so that
3836 dirp->data is enough aligned for struct dirent64.
3837 Avoid clearing of the buffer, just clear DIR structure.
3839 2003-08-26 Ulrich Drepper <drepper@redhat.com>
3841 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
3842 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
3844 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
3846 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
3848 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3850 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
3851 to match format string.
3852 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
3854 (__new_semctl): Shut up warning.
3855 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3856 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
3858 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3860 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
3861 link file use the real file name, not the resolved name we got by
3862 following the symlinks.
3864 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3866 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
3867 if the object size is large enough.
3869 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3871 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3872 if it won't point to itself unless it is .so symlink for the linker.
3874 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3876 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
3877 use _mode if _IO_fwide_maybe_incompatible.
3878 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
3879 the compatibility test.
3881 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3883 * elf/cache.c (save_cache): Don't write beyond end of file_entries
3885 Duplicate last old cache entry if the count would be odd.
3887 2003-08-25 Andreas Jaeger <aj@suse.de>
3889 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
3890 __LONG_LONG_PAIR to long.
3892 2003-08-25 Philip Blundell <philb@gnu.org>
3894 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
3895 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3897 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
3899 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
3900 and use __libc_cleanup_region_end instead.
3902 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3904 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
3906 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3908 * io/fcntl.h (posix_fallocate): Change type of third parameter to
3910 (posix_fallocate64): Change type of third parameter to off64_t.
3911 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
3912 * sysdeps/posix/posix_fallocate.c: Likewise.
3913 * sysdeps/generic/posix_fallocate64.c: Likewise.
3914 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
3915 code for 32-bit platforms.
3916 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
3918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
3919 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3920 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3922 2003-08-19 Ulrich Drepper <drepper@redhat.com>
3924 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
3925 the type, not to name.
3927 * stdio-common/test-vfprintf.c (main): Don't write temporary file
3928 into source directory.
3930 * malloc/malloc.c (_int_free): Add cheap test for some invalid
3933 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
3936 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3938 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
3941 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
3943 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
3944 (elf_machine_lazy_rel): Likewise.
3946 2003-08-18 Art Haas <ahaas@airmail.net>
3948 * malloc/malloc.h: Remove unneeded ';' where closing the C++
3951 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3953 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
3954 loading big binaries where @gprel(sym) cannot be handled in 'add'
3955 but instead has to be used with 'movl'.
3957 2003-08-17 Juergen Kreileder <jk@blackdown.de>
3958 Andreas Jaeger <aj@suse.de>
3960 * sysdeps/x86_64/bits/byteswap.h: New file.
3962 2003-08-17 Andreas Jaeger <aj@suse.de>
3964 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
3966 2003-08-16 Jakub Jelinek <jakub@redhat.com>
3968 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
3969 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3970 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
3971 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3972 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
3973 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3974 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
3975 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3976 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
3977 ret_ERRVAL): Define.
3978 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
3979 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3980 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
3981 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3982 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
3984 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
3985 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3986 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
3988 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
3989 posix_fadvise64_64): Remove.
3990 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
3992 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
3994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3995 (posix_fadvise64): Likewise.
3996 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
3997 (posix_fadvise64): Likewise.
3998 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3999 (posix_fadvise64): Likewise.
4000 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
4002 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
4003 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
4004 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
4005 (__posix_fadvise64_l32): New function.
4006 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
4007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
4008 posix_fadvise64@@GLIBC_2.3.3.
4009 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
4010 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
4011 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
4013 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
4015 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4016 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
4018 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4020 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
4021 (elf_machine_matches_host): Remove weak extern stuff.
4022 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
4023 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
4024 stuff. Use GL(dl_hwcap) unconditionally.
4026 2003-08-16 Alan Modra <amodra@bigpond.net.au>
4028 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
4029 __libc_start_main branch.
4031 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
4032 Andreas Jaeger <aj@suse.de>
4034 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
4035 instead of setting errno.
4036 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
4038 2003-08-16 Andreas Jaeger <aj@suse.de>
4040 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
4041 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
4043 2003-08-15 Ulrich Drepper <drepper@redhat.com>
4045 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
4047 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
4048 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
4049 description indicating the error value is returned, not -1.
4050 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
4051 __ASSUME_FADVISE64_64_SYSCALL.
4052 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
4053 posix_madvise in one file. Have posix_madvise defined with error
4055 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
4057 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
4058 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
4059 PSEUDO_END_ERRVAL, and ret_ERRVAL.
4060 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4061 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4062 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
4065 * posix/Makefile (routines): Add posix_madvise.
4066 * sysdeps/generic/madvise.c: Don't define posix_madvise.
4067 * sysdeps/generic/posix_madvise.c: New file.
4068 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
4069 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
4070 Add posix_fadvise64_64.
4072 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4074 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
4075 3.0, not for !gcc or gcc < 3.0.
4077 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
4079 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
4080 Address passed to test_in_mod1 and test_in_mod2 without casting.
4081 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
4082 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
4083 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
4084 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
4086 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4088 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
4089 Change quotes before using [].
4091 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
4093 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
4095 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
4096 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
4097 argument. Select one of 64 locks from address bits.
4098 (atomic_compare_and_exchange_val_acq,
4099 atomic_compare_and_exchange_bool_acq): Pass memory address to
4100 __sparc32_atomic_do_{,un}lock.
4102 2003-08-14 Ulrich Drepper <drepper@redhat.com>
4104 * assert/assert.h (assert): Use !! in front of expression to allow
4107 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
4108 Changed conversion of JIS X 0201 from using a table to calculating.
4109 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
4110 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
4112 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
4113 * iconvdata/CP932.irreversible: New file.
4114 * iconvdata/EUC-JP-MS.irreversible: New file.
4115 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4117 2003-08-13 Ulrich Drepper <drepper@redhat.com>
4119 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
4121 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
4122 text processing tools.
4124 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
4125 element unless BROKEN_THREAD_SIGNALS is defined.
4126 (struct requestlist): Likewise.
4127 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
4128 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
4129 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
4130 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
4131 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
4132 Pass current PID to __aio_sigqueue.
4133 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
4134 call. Don't initialize caller_pid field of waitlist element.
4136 2003-08-12 Jakub Jelinek <jakub@redhat.com>
4138 * libio/libioP.h (_IO_vtable_offset): Define.
4139 * libio/freopen.c (freopen): Use it.
4140 * libio/ioputs.c (_IO_puts): Likewise.
4141 * libio/freopen64.c (freopen64): Likewise.
4142 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
4144 * libio/iofclose.c (_IO_new_fclose): Likewise.
4145 * libio/iofputs.c (_IO_fputs): Likewise.
4146 * libio/ioftell.c (_IO_ftell): Likewise.
4147 * libio/iofwrite.c (_IO_fwrite): Likewise.
4148 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
4149 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
4150 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
4151 * stdio-common/vfscanf.c (ORIENT): Likewise.
4153 2003-08-11 Ulrich Drepper <drepper@redhat.com>
4155 * assert/assert.h: Use __builtin_expect in assert and
4156 assert_perror definitions if possible.
4158 2003-08-07 Jakub Jelinek <jakub@redhat.com>
4160 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
4161 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
4162 * elf/rtld.c (rtld_lock_default_lock_recursive,
4163 rtld_lock_default_unlock_recursive): New functions.
4164 (dl_main): Initialize _dl_rtld_lock_recursive and
4165 _dl_rtld_unlock_recursive.
4167 2003-08-05 Jakub Jelinek <jakub@redhat.com>
4169 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
4170 config_file directories instead of prepending.
4172 2003-08-02 Ulrich Drepper <drepper@redhat.com>
4174 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4175 __ASSUME_CLONE_STOPPED.
4177 2003-08-01 Ulrich Drepper <drepper@redhat.com>
4179 * sysdeps/generic/bits/libc-lock.h
4180 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
4182 2003-08-01 Roland McGrath <roland@frob.com>
4184 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
4186 2003-07-31 Jakub Jelinek <jakub@redhat.com>
4188 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
4189 instead of __SWORD_TYPE.
4190 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4191 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4192 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
4194 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
4196 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
4198 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
4200 * dlfcn/dlerror.c (once): New.
4201 (dlerror): Call __libc_once.
4202 (_dlerror_run): Remove once.
4204 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4205 Sync with 2.5.7 and 2.5.73 kernel changes.
4207 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
4208 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
4210 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
4211 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
4212 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
4213 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
4214 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
4215 difference argument.
4216 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
4218 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
4219 %d format and cast expected value to int.
4220 * sysdeps/generic/libc-start.c (STATIC): Add
4221 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
4222 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
4223 to ieee_float_shape_type.
4224 (__sqrt): Avoid type punning.
4225 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
4226 to ieee_float_shape_type.
4227 (__sqrtf): Avoid type punning.
4228 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
4229 refsym if in dl-conflict.c.
4230 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4231 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
4232 (__new_semctl): Shut up warning.
4233 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
4234 (__new_semctl): Shut up warning.
4235 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
4236 Change old into union of __old_shmid_ds and __old_shminfo structs.
4238 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
4240 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
4241 modtime computation.
4242 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
4243 * sysdeps/posix/utimes.c (__utimes): Likewise.
4245 2003-07-30 Jakub Jelinek <jakub@redhat.com>
4247 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
4248 call dl_signal_error directly. If already relocated, call
4249 GL(dl_init_static_tls) directly, otherwise queue it for later.
4250 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
4251 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
4252 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
4253 for all static TLS initializations delayed in _dl_allocate_static_tls.
4254 * elf/dl-support.c (_dl_init_static_tls): New variable.
4255 * include/link.h (struct link_map): Add l_need_tls_init.
4256 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
4257 (_dl_nothread_init_static_tls): New prototype.
4258 (_dl_allocate_static_tls): Adjust prototype.
4260 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
4262 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
4264 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4265 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
4266 reloc_addr is aligned.
4267 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
4268 elf_machine_rela_relative): Adjust.
4269 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
4270 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4271 * sysdeps/cris/dl-machine.h (elf_machine_rela,
4272 elf_machine_rela_relative): Adjust.
4273 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
4274 elf_machine_rela_relative): Adjust.
4275 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
4276 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4277 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
4278 elf_machine_rela_relative): Adjust.
4279 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
4280 elf_machine_rela_relative): Adjust.
4281 * sysdeps/mips/dl-machine.h (elf_machine_rela,
4282 elf_machine_rela_relative): Adjust.
4283 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
4284 elf_machine_rela_relative): Adjust.
4285 * sysdeps/powerpc/powerpc64/dl-machine.h
4286 (elf_machine_rela_relative, elf_machine_rela): Adjust.
4287 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
4288 elf_machine_rela_relative): Adjust.
4289 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
4290 elf_machine_rela_relative): Adjust.
4291 * sysdeps/sh/dl-machine.h (elf_machine_rela,
4292 elf_machine_rela_relative): Adjust.
4293 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4294 elf_machine_rela_relative): Adjust.
4295 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4296 elf_machine_rela_relative): Adjust.
4297 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
4298 elf_machine_rela_relative): Adjust.
4300 2003-07-29 Ulrich Drepper <drepper@redhat.com>
4302 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
4303 alignment of TCB used before the last change so that it matches
4304 ld's output for IE code.
4306 2003-07-29 Jakub Jelinek <jakub@redhat.com>
4308 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
4309 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
4310 break strict-aliasing rules" warnings.
4312 2003-07-29 Roland McGrath <roland@redhat.com>
4314 * elf/Makefile: Revert accidental changes in last commit.
4315 * elf/dl-support.c: Likewise.
4317 * rt/tst-timer2.c: New file.
4318 * rt/Makefile (tests): Add it.
4320 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4322 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
4324 2003-07-29 Roland McGrath <roland@redhat.com>
4326 * elf/Makefile (tests) [$(build-shared) = yes]:
4327 Depend on $(test-modules).
4328 * dlfcn/Makefile: Likewise.
4330 2003-07-28 Roland McGrath <roland@redhat.com>
4332 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
4333 Use that instead of `typedef' when using __*_TYPE macros in rhs.
4335 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
4336 * elf/tst-tlsmod14a.c: Likewise.
4338 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
4339 before <linux/sysctl.h>.
4341 2003-07-27 Ulrich Drepper <drepper@redhat.com>
4343 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
4344 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
4345 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
4346 * sysdeps/unix/syscalls.list: umask syscall never fails.
4348 2003-07-27 Andreas Jaeger <aj@suse.de>
4350 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
4352 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4354 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
4355 Include bits/a.out.h.
4356 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4358 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
4359 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
4360 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
4361 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
4362 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
4363 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
4364 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
4365 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
4367 2003-07-24 Jakub Jelinek <jakub@redhat.com>
4369 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
4370 if aiocbp != NULL and has already completed. Return -1/EINVAL if
4371 aiocbp->aio_fildes does not match fildes.
4373 2003-07-24 Ulrich Drepper <drepper@redhat.com>
4375 * timezone/zic.c (rpytime): Replace cheap overflow check with a
4378 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
4379 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
4380 Fix calculation of offsets to take misalignment of first byte in
4382 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
4383 l_tls_firstbyte_offset field.
4384 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
4385 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
4386 Take l_tls_firstbyte_offset information into account.
4387 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
4388 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
4389 * elf/Makefile: Add rules to build and run tst-tls14.
4390 * elf/tst-tls14.c: New file.
4391 * elf/tst-tlsmod14a.c: New file.
4392 * elf/tst-tlsmod14b.c: New file.
4394 2003-07-23 Jakub Jelinek <jakub@redhat.com>
4396 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
4397 (lio_listio): Use it.
4398 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
4399 after few defines to avoid duplication.
4401 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4403 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
4404 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4406 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4407 Add libc_hidden_def.
4408 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
4409 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4410 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
4411 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
4412 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
4413 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
4414 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
4416 * sysdeps/generic/unwind.inc: Removed.
4418 * include/resolv.h (__resp): Declare. Define to __libc_resp
4420 (_res): If USE___THREAD, define to (*__resp).
4421 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
4422 even if USE___THREAD.
4423 (__resp): New __thread variable.
4424 (__libc_resp): New alias.
4425 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
4426 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
4427 * sysdeps/generic/res-state.c (__res_state): Return __resp
4430 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4432 * elf/dl-support.c (_dl_hwcap): New variable.
4433 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
4435 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
4436 and <dl-procinfo.h>.
4437 (__feclearexcept): Clear MXCSR if needed.
4438 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4440 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
4441 that newer hardware needs more than these macros.
4443 * sysdeps/i386/setfpucw.c: New file.
4445 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4447 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
4448 * elf/ldconfig.c: Include dl-procinfo.c.
4449 (PROCINFO_CLASS): Define.
4450 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
4451 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
4452 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
4453 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
4454 Define if not yet defined. Use it instead of EXTERN. Undefine
4455 at the end of the file.
4456 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
4458 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
4459 (PROCINFO_CLASS): Likewise.
4460 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
4461 (PROCINFO_CLASS): Likewise.
4463 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4465 * elf/ldconfig.c (main): Issue a fatal error if relative path
4466 is used to build cache.
4468 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4470 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
4472 2003-07-21 Art Haas <ahaas@airmail.net>
4474 * manual/charset.texi (Converting a Character): Fix example code so a
4475 valid pointer is returned.
4477 2003-07-22 Andreas Jaeger <aj@suse.de>
4479 * elf/readlib.c (process_file): Check that file is a shared
4482 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
4483 will not optimize it away.
4484 (__DTOR_END__): Likewise.
4485 (__CTOR_END__): Likewise.
4487 * include/libc-symbols.h (_elf_set_element): Use attribute used so
4488 that gcc will not optimize it away.
4489 (link_warning): Likewise.
4491 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4493 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
4494 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
4495 * wcsmbs/tst-wcpncpy.c: New file.
4497 2003-07-21 Ulrich Drepper <drepper@redhat.com>
4499 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
4501 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
4502 stmxcsr and ldmxcsr.
4504 * Makerules (build-module-helper): Add -z defs unless explicitly said
4506 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
4507 which has undefined symbols.
4508 * elf/Makefile: Likewise.
4510 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
4511 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4512 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4513 * sysdeps/i386/fpu/fesetround.c: Likewise.
4514 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
4516 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
4518 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4519 if it won't point to itself.
4521 2003-07-20 Ulrich Drepper <drepper@redhat.com>
4523 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
4525 2003-07-20 Andreas Jaeger <aj@suse.de>
4527 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
4528 STANDARD_TO_LOOP_ERR_HANDLER.
4529 * iconvdata/euc-jp-ms.c (BODY): Likewise.
4531 2003-07-19 Ulrich Drepper <drepper@redhat.com>
4533 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
4535 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
4537 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
4538 Andreas Jaeger <aj@suse.de>
4540 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
4541 256K, remove unneeded declaration of __getpagesize.
4543 2003-07-16 Andreas Schwab <schwab@suse.de>
4545 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
4547 2003-07-15 Ulrich Drepper <drepper@redhat.com>
4549 * io/test-utime.c (main): Make test yet more robust.
4551 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4553 More cancellation handling fixups.
4554 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
4555 * sysdeps/generic/not-cancel.h: Likewise.
4556 * catgets/open_catalog.c: Use not-cancelable syscalls.
4557 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
4558 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
4559 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
4560 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
4561 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
4562 * libio/fileops.c: Use not-cancelable syscalls for fclose.
4563 * libio/iopopen.c: Use no-cancelable syscalls.
4564 * libio/stdio.h: Mark popen and pclose with __THROW again.
4565 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
4566 * misc/syslog.c: Fix locking and cancellation cleanup handling.
4567 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
4568 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
4569 CFLAGS-tempname.c): Add -fexceptions.
4570 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4571 * string/string.h: Mark strerror and strerror_r with _THROW again.
4572 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
4573 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
4574 #ifs since we now need all the code compiled.
4575 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
4576 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
4577 * sysdeps/unix/opendir.c: Likewise.
4579 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
4580 Add rule for EUC-JP-MS dependency.
4581 * iconvdata/cp932.c: New file.
4582 * iconvdata/eucjp-ms.c: New file.
4583 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
4584 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4586 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
4591 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4593 * sysdeps/unix/sysv/linux/kernel-features.h
4594 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
4595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
4597 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
4599 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4601 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4602 __ASSUME_TGKILL for Alpha appropriately.
4604 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4606 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4607 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
4609 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
4612 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4613 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
4615 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
4616 second parameter == NULL.
4617 * sysdeps/unix/sysv/linux/utimes.c: New file.
4619 2003-07-12 Jakub Jelinek <jakub@redhat.com>
4621 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
4622 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
4625 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4627 * time/sys/time.h: Namespace cleanup.
4628 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4629 __ASSUME_UTIMES for the architectures which always had the syscall.
4630 * sysdeps/unix/sysv/linux/futimes.c: New file.
4632 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4634 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
4635 register across CENABLE and CDISABLE.
4637 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4639 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
4640 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4641 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4642 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
4643 int before assigning to max to avoid warnings.
4645 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
4649 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
4650 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
4652 2003-07-10 Jakub Jelinek <jakub@redhat.com>
4654 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
4655 .data.rel.ro.local to "aw".
4657 2003-07-10 Ulrich Drepper <drepper@redhat.com>
4659 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
4660 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
4661 (PIC-ccflag): Define.
4663 2003-07-04 Jakub Jelinek <jakub@redhat.com>
4665 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
4667 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4669 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4671 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
4672 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
4674 2003-07-07 Ulrich Drepper <drepper@redhat.com>
4676 * sysdeps/unix/sysv/linux/kernel-features.h: Version
4677 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
4679 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
4680 compilation with HAVE_AUX_SECURE defined.
4682 2003-07-05 Richard Henderson <rth@redhat.com>
4684 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
4686 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4688 * configure.in: Also check for .cfi_rel_offset pseudo-op.
4690 2003-07-03 Jakub Jelinek <jakub@redhat.com>
4692 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
4695 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4697 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
4699 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
4701 2003-07-02 Jakub Jelinek <jakub@redhat.com>
4703 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
4704 decl and use with #ifdef NEED_DL_SYSINFO.
4706 2003-07-02 Ulrich Drepper <drepper@redhat.com>
4708 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
4709 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
4710 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4711 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
4712 vsyscall DSO was added.
4714 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
4715 depending on selected standard.
4716 (NGROUPS_MAX): Define to 8 if not defined.
4718 2003-07-02 Andreas Jaeger <aj@suse.de>
4720 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
4722 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
4724 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
4725 * malloc/thread-m.h: Include <atomic.h>.
4726 (atomic_full_barrier): Provide default.
4727 (atomic_read_barrier): Likewise.
4728 (atomic_write_barrier): Likewise.
4729 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
4731 2003-06-30 Ulrich Drepper <drepper@redhat.com>
4733 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
4735 2003-06-30 Richard Henderson <rth@redhat.com>
4737 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
4738 Invert the sense of the return value.
4739 (__arch_exchange_16_int): Fix paste-o.
4740 (__arch_exchange_{32,64}_int): Fix think-o.
4742 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
4744 2003-06-30 Richard Henderson <rth@redhat.com>
4746 * include/sys/resource.h (__getrusage): Mark hidden.
4747 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
4748 * include/sys/wait.h (__wait4): Likewise.
4750 2003-06-17 Guido Guenther <agx@sigxcpu.org>
4752 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
4754 (xstat_conv): Rename to __xstat_conv and remove static inline.
4755 (xstat64_conv): Likewise.
4757 2003-06-29 Ulrich Drepper <drepper@redhat.com>
4759 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
4760 values which cannot be handled in one nanosleep call.
4762 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
4764 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
4765 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
4767 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
4769 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4771 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
4774 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
4776 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
4777 Conditionalize function definitions that use struct kernel_stat.
4778 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
4779 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
4780 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
4782 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4784 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
4787 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
4789 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
4790 (getgrent_next_file): Don't store group name to early in blacklist.
4792 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
4793 and use memcpy instead of strcpy.
4795 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4797 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
4799 * nis/nss_compat/compat-initgroups.c: Likewise.
4800 * nis/nss_compat/compat-pwd.c: Likewise.
4801 * nis/nss_compat/compat-spwd.c: Likewise.
4803 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
4805 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
4806 functions, dlopen corresponding NSS module instead.
4808 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
4810 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
4811 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4812 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4813 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4815 2003-06-27 Ulrich Drepper <drepper@redhat.com>
4817 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
4819 2003-06-26 Roland McGrath <roland@frob.com>
4821 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
4822 * sysdeps/mach/configure: Regenerated.
4823 * sysdeps/mach/hurd/times.c (times_init): Function removed.
4824 (__times): Assume `creation_time' field is available.
4825 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
4826 Don't append set-init.
4827 * sysdeps/mach/hurd/set-init.c: File removed.
4829 2003-06-26 Roland McGrath <roland@redhat.com>
4831 * elf/elf.h (AT_SECURE): New macro.
4832 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
4833 set __libc_enable_secure.
4834 (_dl_show_auxv): Add AT_SECURE to name table.
4835 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
4836 __libc_enable_secure and __libc_enable_secure_decided.
4837 * sysdeps/unix/sysv/linux/ldsodefs.h
4838 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
4839 * sysdeps/unix/sysv/linux/kernel-features.h
4840 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
4842 2003-06-26 Ulrich Drepper <drepper@redhat.com>
4844 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
4845 boundary test to take rounding of nanoseconds into account.
4847 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
4848 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4849 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
4850 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4851 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4852 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4853 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4855 2003-06-26 Andreas Schwab <schwab@suse.de>
4857 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
4858 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
4859 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
4861 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
4863 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
4864 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
4865 dlopen corresponding NSS module instead.
4866 * nis/nss_compat/compat-pwd.c: Likewise.
4867 * nis/nss_compat/compat-spwd.c: Likewise.
4868 * nis/nss_compat/compat-initgroups.c: Disabled for now.
4869 * nss/Versions: Export __nss_lookup_function.
4871 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4873 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
4874 for the SH architecture.
4876 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
4878 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
4880 2003-06-25 Andreas Jaeger <aj@suse.de>
4882 * stdlib/tst-strtod.c (main): Declare constant long double as
4883 suggested by Jakub Jelinek and Andreas Schwab.
4885 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
4888 * stdio-common/tst-fphex.c: Fix format string.
4890 * posix/transbug.c: Include <string.h> for memset and strlen
4893 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
4895 * stdlib/tst-strtod.c (main): Pass long double value.
4897 * test-skeleton.c: Include <time.h> for nanosleep declaration.
4899 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4901 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
4904 2003-06-11 Jakub Jelinek <jakub@redhat.com>
4906 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
4907 * elf/dl-libc.c (struct dl_open_hook): New.
4908 (_dl_open_hook): New variable.
4909 (do_dlsym_private): New function.
4910 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
4911 and initialize it if found.
4912 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
4913 call dlopen_mode hook.
4914 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
4916 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
4919 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4921 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
4922 result to long int so that extensions to long long int work.
4923 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4925 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4927 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
4928 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
4929 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
4931 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
4932 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
4933 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
4934 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
4936 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4938 * test-skeleton.c (timeout_handler): If waitpid returned 0,
4939 retry once after a second. If killed == 0, assume
4940 WTERMSIG (status) == SIGKILL.
4942 2003-06-18 Roland McGrath <roland@redhat.com>
4944 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
4945 elements in the table instead of printing an empty name string.
4947 2003-06-05 Roland McGrath <roland@redhat.com>
4949 * elf/elf.h (PT_GNU_STACK): New macro.
4951 2003-06-24 Ulrich Drepper <drepper@redhat.com>
4953 * include/time.h: Define CLOCK_IDFIELD_SIZE.
4954 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
4955 * sysdeps/unix/clock_gettime.c: Likewise.
4956 * sysdeps/unix/clock_settime.c: Likewise.
4957 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
4958 clock id for thread CPU clocks.
4960 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
4961 for the fstatfs64 syscall.
4962 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
4963 the statfs64 syscall.
4965 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4966 __ASSUME_STATFS64 appropriately.
4968 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
4969 from statfs structure if it has been filled in.
4971 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
4973 (struct statfs64): Likewise.
4974 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
4975 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
4977 2003-06-24 Richard Henderson <rth@redhat.com>
4979 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
4980 the 64-bit syscall name.
4982 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
4984 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
4985 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
4987 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
4988 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
4990 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4991 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
4994 * sysdeps/alpha/bits/atomic.h: New file.
4996 2003-06-24 Andreas Schwab <schwab@suse.de>
4998 * sysdeps/m68k/fpu/libm-test-ulps: Update.
5000 2003-06-24 Andreas Jaeger <aj@suse.de>
5002 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
5003 redeclaration with 32-bit code.
5005 2003-05-19 Ed Connell <ed.connell@sas.com>
5007 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
5008 floating point mask.
5009 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
5011 2003-06-23 Ulrich Drepper <drepper@redhat.com>
5013 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
5014 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
5015 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
5017 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
5018 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
5019 instead of __libc_cleanup_region_*.
5021 2003-06-20 Richard Henderson <rth@redhat.com>
5023 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
5024 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
5026 2003-06-20 Richard Henderson <rth@redhat.com>
5028 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
5029 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
5031 (__ASSUME_TIMEVAL64): Set for alpha.
5032 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
5033 adjtimex, osf_sigprocmask, old_adjtimex.
5034 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
5035 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
5036 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
5037 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
5038 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5039 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5040 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
5041 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
5042 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
5043 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
5044 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
5046 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5047 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
5048 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
5049 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
5050 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
5051 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
5052 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
5053 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
5054 defer to __syscall_name; error for rt_sigaction.
5055 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
5057 2003-06-18 Ulrich Drepper <drepper@redhat.com>
5059 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
5060 hasn't happened yet.
5062 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5063 Fix completely broken implementation. The second parameter is of
5064 type struct ucontext*.
5066 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
5069 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
5070 * sysdeps/generic/dl-hash.h: Likewise.
5072 * sysdeps/generic/memcmp.c: Remove inline from
5073 memcmp_common_alignment and memcmp_not_common_alignment definition.
5075 * intl/localealias.c (read_alias_file): Determine whether line is
5076 read incompletely early, before we modify the line.
5078 2003-06-17 Jakub Jelinek <jakub@redhat.com>
5080 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
5081 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
5083 2003-06-17 Paul Mackerras <paulus@samba.org>
5085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
5086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
5087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
5088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
5089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
5090 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
5092 2003-06-17 Jakub Jelinek <jakub@redhat.com>
5094 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
5096 2003-06-17 Ulrich Drepper <drepper@redhat.com>
5098 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
5099 takes care of enabling cancellation.
5101 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
5102 cancelable. It's not correct to disable cancellation. Instead of
5105 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
5106 and part of the incoming set, create a temporary set without this
5108 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5109 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5111 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
5112 returning because seconds==0. Add __builtin_expect.
5114 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5116 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
5118 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
5121 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
5123 * include/libc-symbols.h: Add static_link_warning macro.
5124 * grp/initgroups.c: Print linker warning if this function
5125 is called in a static linked binary.
5126 * nss/getXXbyYY.c: Likewise.
5127 * nss/getXXbyYY_r.c: Likewise.
5128 * nss/getXXent.c: Likewise.
5129 * nss/getXXent_r.c: Likewise.
5130 * sysdeps/posix/getaddrinfo.c: Likewise.
5132 2003-06-16 Bruno Haible <bruno@clisp.org>
5134 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
5136 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
5137 (IBM1047): Add alias IBM-1047.
5138 (GBK): Add aliases MS936, WINDOWS-936.
5140 2003-06-16 Jakub Jelinek <jakub@redhat.com>
5142 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
5143 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
5144 (__xstat64_conv): Change xstat_conv to __xstat_conv.
5146 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5148 * locale/iso-639.def: Update from current official ISO 639.
5150 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
5152 2003-06-15 Andreas Jaeger <aj@suse.de>
5154 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
5156 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5157 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
5158 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
5160 * math/tgmath.h (carg): Handle real arguments.
5166 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
5167 (tests): Add test-tgmath-ret.
5168 * math/test-tgmath-ret.c: New file.
5170 * math/tgmath.h (ilogb): Return always an int.
5172 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5174 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
5175 computation so that prelinking works.
5177 2003-06-15 Ulrich Drepper <drepper@redhat.com>
5179 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
5181 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
5182 dynamic linker's map.
5184 Fix cancellation point handling wrt exception based cleanup.
5185 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
5186 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
5188 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
5189 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
5190 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
5192 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
5193 sigwait.c, and sigwaitinfo.c with exceptions.
5194 * stdlib/Makefile: Compile system.c with exceptions.
5195 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
5196 * termios/Makefile: Compile tcdrain.c with exceptions.
5197 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
5199 * sysdeps/generic/pselect.c: Likewise.
5200 * sysdeps/posix/sigpause.c: Likewise.
5201 * sysdeps/posix/system.c: Likewise.
5202 * sysdeps/posix/waitid.c: Likewise.
5203 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5204 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
5205 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
5206 INTERNAL_SYSCALL to not use push inside asm statement so that
5207 unwind info is correct around the syscall.
5208 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
5209 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5211 2003-06-15 Andreas Jaeger <aj@suse.de>
5213 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5216 2003-06-15 Guido Guenther <agx@sigxcpu.org>
5218 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
5221 2003-06-14 Ulrich Drepper <drepper@redhat.com>
5223 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
5226 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
5227 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
5230 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
5231 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
5232 * inet/Makefile (routines): Add inet6_option.
5233 * inet/inet6_option.c: New file.
5234 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
5235 inet6_option_init, inet6_option_append, inet6_option_alloc,
5236 inet6_option_next, and inet6_option_find.
5238 2003-06-13 Ulrich Drepper <drepper@redhat.com>
5240 * inet/netinet/ip6.h (struct ip6_ext): Define.
5242 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
5244 Fixing gcc 3.3 warnings, part II.
5245 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
5246 * elf/dl-load.c (cache_rpath): Don't inline.
5247 * iconvdata/cns11642l2.h: Always inline all functions.
5248 * iconvdata/iso-ir-165.h: Likewise.
5249 * locale/Makefile (aux): Add coll-lookup.
5250 * locale/coll-lookup.c: New file.
5251 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
5252 (collseq_table_lookup): Likewise.
5253 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
5254 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
5256 * posix/regcomp.c: Likewise.
5257 * posix/regexec.c: Likewise.
5258 * locale/programs/3level.h (*_get): Always inline.
5259 * locale/programs/locfile.h: Move definition of handle_copy to...
5260 * locale/programs/locfile.c: ...here.
5261 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
5262 (obstack_int32_grow_fast): Likewise.
5263 (utf8_encode): Likewise.
5264 (find_element): Avoid aliasing problems.
5265 (insert_value): Likewise.
5266 (collate_read): Likewise.
5267 * nss/getent.c (print_hosts): Don't inline
5268 (print_networks): Likewise.
5269 (print_shadow): Likewise.
5270 (build_doc): Likewise.
5271 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
5273 * posix/regcomp.c (re_set_fastmap): Always inline.
5274 (seek_collating_symbol_entry): Likewise.
5275 (lookup_collation_sequence_value): Likewise.
5276 (build_range_exp): Likewise.
5277 (build_collating_symbol): Likewise.
5278 * posix/regexec.c (acquire_init_state_context): Don't inline.
5279 (clean_state_log_if_need): Likewise.
5280 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
5282 (evConsTime): Likewise.
5283 (evAddTime): Likewise.
5284 (evSubTime): Likewise.
5285 (evNowTime): Likewise.
5286 (evTimeSpec): Removed.
5287 (__libc_res_nsend): Avoid aliasing problem.
5288 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
5289 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
5290 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
5292 (_dl_string_platform): Likewise.
5293 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
5294 (wcwidth_table_lookup): Likewise.
5295 (wctrans_table_lookup): Likewise.
5297 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
5299 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5301 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
5303 2003-05-29 Jim Meyering <jim@meyering.net>
5305 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
5306 && HAVE_STRFTIME]: Use underlying_strftime for %r.
5307 Suggested by Daniel Yacob <locales@geez.org>.
5309 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
5311 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
5312 @got notation with @toc.
5313 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
5314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
5316 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5318 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
5319 if only PF_INET address is needed.
5321 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
5324 * scripts/config.guess: Update from upstream version.
5325 * scripts/config.sub: Likewise.
5327 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5329 * locale/programs/ld-time.c (time_output): Also copy the era format,
5332 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
5334 * posix/transbug.c (run_test): Return 1 for failure.
5335 (do_test): Compare only if run_test is successful.
5337 2003-06-12 Simon Josefsson <jas@extundo.com>
5339 * argp/argp.h [!__THROW]: Define if undefined.
5341 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5343 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
5344 more than four parameters.
5345 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5347 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5349 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5350 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
5351 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
5353 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
5355 2003-06-12 Roland McGrath <roland@redhat.com>
5357 * Makerules ($(objpfx)stubs): Rewrite sed magic.
5359 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5361 * posix/regcomp.c (parse_expression): Deliver translation to
5362 build_word_op, and build_charclass.
5363 (build_charclass): Apply translation for character classes too.
5364 (build_word_op): Deliver translation to build_charclass.
5365 * posix/transbug.c: New file.
5366 * posix/Makefile (tests): Add transbug.
5368 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
5370 * posix/regexec.c (group_nodes_into_DFAstates): Check for
5371 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
5372 'continue' before the others.
5374 2003-06-11 Ulrich Drepper <drepper@redhat.com>
5376 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
5377 function [PR libc/5045].
5379 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
5382 * time/tzfile.c: Add a couple of __builtin_expect.
5384 Remove warnings gcc 3.3 shows.
5385 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
5386 * elf/dl-load.c (fillin_rpath): Likewise.
5387 (add_path): Likewise.
5388 * elf/dl-version.c (find_needed): Always inline.
5389 * elf/do-lookup.c (FCT): Don't inline.
5390 * iconv/Makefile: Extend vpath to intl subdir.
5391 (iconvconfig-modules): Add hash-string.
5392 * iconv/gconv_charset.h (strip): Don't inline.
5393 (upstr): Always inline.
5394 Move __gconv_compare_alias prototype to...
5395 * iconv/gconv_int.h: ...here.
5396 * iconv/gconv_db.c: Don't include gconv_charset.h.
5397 * iconv/gconv_conf.c (add_alias): Don't inline.
5398 (insert_module): Likewise.
5399 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
5400 (internal_ucs4_loop_unaligned): Likewise.
5401 (internal_ucs4_loop_single): Likewise.
5402 (ucs4_internal_loop): Likewise.
5403 (ucs4_internal_loop_unaligned): Likewise.
5404 (ucs4_internal_loop_single): Likewise.
5405 (internal_ucs4le_loop): Always inline.
5406 (internal_ucs4le_loop_unaligned): Likewise.
5407 (internal_ucs4le_loop_single): Likewise.
5408 (ucs4le_internal_loop): Likewise.
5409 (ucs4le_internal_loop_unaligned): Likewise.
5410 (ucs4le_internal_loop_single): Likewise.
5411 * iconv/loop.c: Always inline the defined functions.
5412 * iconvdata/cns11642.h: Likewise.
5413 * iconvdata/cns11642l1.h: Likewise.
5414 * iconvdata/euc-kr.c: Likewise.
5415 * iconvdata/gb2312.h: Likewise.
5416 * iconvdata/jis0201.h: Likewise.
5417 * iconvdata/jis0208.h: Likewise.
5418 * iconvdata/jis0212.h: Likewise.
5419 * iconvdata/jisx0213.h: Likewise.
5420 * iconvdata/ksc5601.h: Likewise.
5421 * iconvdata/utf-7.c (base64): Don't inline.
5422 * include/libc-symbols.h (symbol_set_first_element): Add cast
5423 (symbol_set_end_p): Likewise.
5424 * include/set-hooks (RUN_HOOK): Likewise.
5425 * inet/Makefile (aux): Add ifreq.
5426 * intl/Makefile (aux): Add some entries from routines. Add
5428 * intl/hash-string.c: New file.
5429 * intl/hash-string.h: Remove hash_string definition. Declare
5431 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
5432 * iconv/iconvconfig.c (new_name): Likewise.
5433 * intl/dcigettext.c (_nl_find_msg): Likewise.
5434 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5435 * io/ftw.c (open_dir_stream): Always inline.
5436 (process_entry): Don't inline.
5437 * locale/findlocale.c: Include gconv_int.h.
5438 * locale/setlocale.c (new_composite_name): Don't inline.
5439 * locale/weight.h (findidx): Always inline.
5440 * locale/weightwc.h (findidx): Likewise.
5441 * locale/programs/linereader.c (lr_ignore_rest): Define here.
5442 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
5444 (lr_getc): Always inline.
5445 (lr_ungetc): Likewise.
5446 * nss/nss_files/files-parse.c (parse_list): Likewise.
5447 * stdio-common/Makefile (aux): Add printf-parsemb and
5449 * stdio-common/_itoa.h (_itoa_word): Always inline.
5450 (_fitoa_word, _fitoa): Don't define here, only declare.
5451 * stdio-common/_itoa.c (_iftoa_word): Add here.
5453 * stdio-common/_itowa.h (_itowa_word): Always inline.
5454 * stdio-common/printf-parse.h (read_int): Don't inline.
5455 (find_spec): Don't define.
5456 Declare __find_specmb and __find_specwc.
5457 (parse_one_spec): Don't define.
5458 Declare __parse_one_specmb and __parse_one_specwc.
5459 * stdio-common/printf-parsemb.c: New file.
5460 * stdio-common/printf-parsewc.c: New file.
5461 * stdio-common/vfprintf.c: Update calls to find_spec and
5462 parse_one_spec for new names.
5463 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
5464 * stdlib/Makefile (aux): Add grouping and groupingwc.
5465 * stdlib/grouping.c: New file.
5466 * stdlib/groupingwc.c: New file.
5467 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
5469 * stdlib/rpmatch.c (try): Don't inline.
5470 * stdlib/strtod.c (round_and_return): Don't line.
5471 (str_to_mpn): Likewise.
5472 (__mpn_lshift_1): Always inline. Optimize only for constant count.
5473 Adjust for name change of correctly_grouped_prefix.
5474 * sysdeps/generic/strtol.c: Adjust for name change of
5475 correctly_grouped_prefix.
5476 * string/strxfrm.c (utf8_encode): Don't inline.
5477 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
5478 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
5479 * sysdeps/generic/ifreq.c: New file.
5480 * sysdeps/unix/sysv/linux/ifreq.c: New file.
5481 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
5482 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
5483 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
5484 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
5485 (fde_split): Likewise.
5486 (fde_merge): Likewise.
5487 (end_fde_sort): Likewise.
5488 (init_object): Likewise.
5489 (binary_search_unencoded_fdes): Likewise.
5490 (binary_search_single_encoding_fdes): Likewise.
5491 (binary_search_mixed_encoding_fdes): Likewise.
5492 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
5493 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
5494 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
5495 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5497 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
5498 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
5499 Export them. Prepend __ to name.
5500 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
5501 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
5502 conversion functions.
5503 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5504 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5505 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5506 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5507 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5508 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5509 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5510 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5511 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
5512 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
5513 to name. Change callers.
5514 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
5515 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
5517 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
5518 * time/tzfile.c (decode): Always inline.
5519 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
5520 Remove cast in tomb function call.
5521 * wcsmbs/wcsrtombs.c Likewise.
5522 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
5525 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5527 * po/zh_CN.po: Update from translation team.
5529 2003-06-10 Jakub Jelinek <jakub@redhat.com>
5531 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
5532 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
5534 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5536 * inet/Makefile (aux): Add check_pf.
5537 * include/ifaddrs.h: Add prototype for __check_pf.
5538 * sysdeps/generic/check_pf.c: New file.
5539 * sysdeps/unix/sysv/linux/check_pf.c: New file.
5540 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
5541 from no_netlink_support. Export.
5542 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
5545 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
5547 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
5548 from getifaddr calls.
5550 2003-06-09 Jakub Jelinek <jakub@redhat.com>
5552 * sysdeps/unix/sysv/linux/kernel-features.h
5553 (__ASSUME_SETRESGID_SYSCALL): Define.
5554 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
5555 instead of __ASSUME_SETRESUID_SYSCALL.
5556 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
5558 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
5559 inline syscall if __NR_setresuid32 is defined.
5560 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5561 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
5562 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
5563 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5564 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
5565 code handling non-existant setresgid32 syscall with
5566 #if __ASSUME_SETRESGID_SYSCALL == 0.
5568 2003-06-09 Andreas Schwab <schwab@suse.de>
5570 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
5571 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
5572 $(objpfx)rpc-proto.d.
5573 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
5574 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
5575 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
5577 2003-06-08 Ulrich Drepper <drepper@redhat.com>
5579 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
5580 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5581 defined drop compatibility code.
5582 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
5583 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5584 defined drop compatibility code.
5585 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
5586 setresuid32 syscall directly if possible.
5587 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5588 setresgid32 syscall directly if possible.
5589 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
5590 compliant. Don't change sgid.
5591 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
5592 compliant. Don't change suid.
5594 * config.h.in: Add have-forced-unwind.
5595 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
5597 2003-06-07 Ulrich Drepper <drepper@redhat.com>
5599 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
5600 returned status from child matches.
5602 * Makeconfig (gnulib): Add -lgcc_eh once again.
5604 2003-06-06 Ulrich Drepper <drepper@redhat.com>
5606 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
5608 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
5609 %edx for first parameter. This means no pushl and therefore the
5610 unwind info isn't screwed up.
5612 2003-06-04 Richard Henderson <rth@redhat.com>
5614 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
5615 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5616 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
5617 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
5618 entry sequence and explicit relocs. Add unwind info for sigreturn
5620 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
5622 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
5623 Annotate some parameters.
5624 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
5626 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
5628 * include/libc-symbols.h (symbol_set_declare): Use arrays
5629 of unspecified size.
5631 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5633 * config.make.in (ASFLAGS-config): New.
5634 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
5635 * configure.in (libc_cv_as_noexecstack): New check.
5636 (ASFLAGS_config): Substitute.
5638 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5640 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
5641 hypot, logb): Protect with #ifdef __FAST_MATH__.
5643 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5645 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
5646 #ifdef __FAST_MATH__.
5648 2003-06-03 Ulrich Drepper <drepper@redhat.com>
5650 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
5651 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5652 * posix/globtest.sh: Adjust for this change.
5654 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
5655 to get the actual PID value used in the records passed up.
5656 (getifaddrs): Don't initialize nh.pid here.
5658 2003-06-02 Ulrich Drepper <drepper@redhat.com>
5660 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
5663 * po/zh_CN.po: Update from translation team.
5665 * posix/getconf.c (main): Also recognize names without the
5668 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
5670 2003-06-02 Bernd Schmidt <bernds@redhat.com>
5672 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
5673 ldexpf, ldexpl): Only define if __FAST_MATH__.
5675 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
5677 Replace hard-coded offsets into struct sigcontext with generated file.
5678 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
5679 * sysdeps/unix/sysv/linux/ia64/Makefile
5680 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
5681 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
5682 defining SC_* macros here.
5684 2003-06-02 Jakub Jelinek <jakub@redhat.com>
5686 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
5688 2003-06-01 Jakub Jelinek <jakub@redhat.com>
5690 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
5692 2003-06-01 Ulrich Drepper <drepper@redhat.com>
5694 * test-skeleton.c (main): Request getopt to not reorder the
5697 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
5699 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
5702 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5704 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
5706 2003-05-31 Jakub Jelinek <jakub@redhat.com>
5708 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
5710 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
5711 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
5712 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
5714 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5716 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
5719 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
5721 * libio/fileops.c (_IO_file_open): Don't mark as inline.
5723 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
5726 2003-05-30 Ulrich Drepper <drepper@redhat.com>
5728 * scripts/config.guess: Update from master copy.
5729 * scripts/config.sub: Likewise.
5731 2003-05-30 Guido Guenther <agx@sigxcpu.org>
5733 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
5734 SETUP_GP64 and friends.
5735 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
5736 names in internal_syscall{6,7}.
5737 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
5738 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
5739 number of syscall arguments.
5740 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5741 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5742 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5744 2003-05-30 Andreas Jaeger <aj@suse.de>
5746 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5749 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
5752 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
5754 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5757 2003-05-30 Jakub Jelinek <jakub@redhat.com>
5759 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
5762 2003-05-11 Andreas Schwab <schwab@suse.de>
5764 * Makerules: Always use -MP together with -MD.
5765 (sed-remove-dotot): Substitute $(..) also at start of line.
5766 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
5767 Generated defines with a single compiler call.
5768 Use $(sed-remove-dotdot).
5769 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
5770 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
5771 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5772 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
5773 * sysdeps/unix/sysv/linux/mips/Makefile
5774 ($(objpfx)syscall-%.h): Likewise.
5776 2003-05-28 Roland McGrath <roland@redhat.com>
5778 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
5780 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
5782 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
5784 2003-05-28 Roland McGrath <roland@redhat.com>
5786 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
5787 rt_sigprocmask system call.
5788 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
5789 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
5791 2003-05-28 Ulrich Drepper <drepper@redhat.com>
5793 * include/libc-symbols.h: Define hidden attribute for real also if
5794 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
5796 * csu/Makefile: Add rules to build Scrt1.o.
5797 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
5798 * sysdeps/x86_64/elf/start.S: Likewise.
5800 2003-05-27 Jakub Jelinek <jakub@redhat.com>
5802 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
5803 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
5804 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
5805 pa_short_int, pa_u_short_int and pa_float.
5807 2003-05-26 Jakub Jelinek <jakub@redhat.com>
5809 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
5810 _IO_str_init_static_internal.
5811 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
5812 change size argument to _IO_size_t, don't limit sprintf to 64M.
5813 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
5814 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
5815 _IO_size_t, don't limit swprintf to 256M.
5816 (_IO_wstr_init_readonly): Remove.
5817 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
5819 (_IO_wstr_init_readonly): Remove prototype.
5820 * libio/iovsprintf.c (_IO_vsprintf): Use
5821 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
5822 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5823 * libio/memstream.c (open_memstream): Likewise.
5824 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
5825 * libio/vasprintf.c (_IO_vasprintf): Likewise.
5826 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5827 * stdio-common/tst-sprintf.c (main): Add new test.
5829 2003-05-26 Ulrich Drepper <drepper@redhat.com>
5831 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
5832 other implementation in respect of multiple uses of parameter with
5835 2003-05-25 Ulrich Drepper <drepper@redhat.com>
5837 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5838 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
5840 2003-05-22 Andreas Jaeger <aj@suse.de>
5842 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
5844 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
5845 * sysdeps/x86_64/strtok.S: Likewise.
5847 2003-05-20 Guido Guenther <agx@sigxcpu.org>
5849 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
5850 to -60 and define SI_TKILL.
5852 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
5854 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
5855 (feexcp_mask_test): Likewise.
5857 2003-05-21 Ulrich Drepper <drepper@redhat.com>
5859 * locale/programs/locale.c (main): Fix typo in last patch.
5861 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
5862 __init_array_start, __init_array_end, __fini_array_start, and
5863 __fini_array_end as hidden.
5865 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
5867 * locale/programs/locale.c (main): Report an error if setlocale()
5868 fails [PR libc/2254].
5870 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5872 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5874 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
5877 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5878 LOADARGS_6): Don't error if syscall argument is a string literal.
5879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
5880 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5881 LOADARGS_6): Likewise.
5883 2003-05-21 Andreas Jaeger <aj@suse.de>
5885 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
5886 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
5887 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
5889 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
5893 * configure.in: Test for asm cfi directives.
5895 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
5897 2003-05-17 Andreas Jaeger <aj@suse.de>
5899 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
5901 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
5903 2003-05-16 Ulrich Drepper <drepper@redhat.com>
5905 * rt/Makefile (tests): Add tst-clock_nanosleep.
5906 * rt/tst-clock_nanosleep.c: New file.
5907 * posix/Makefile (tests): Add tst-nanosleep.
5908 * posix/tst-nanosleep.c: New file.
5910 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
5912 * include/features.h (__USE_XOPEN2K): Define also for
5913 _POSIX_C_SOURCE>=200112L.
5915 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
5916 SI_TKILL code into SI_USER.
5917 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
5919 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
5921 2003-05-15 Jakub Jelinek <jakub@redhat.com>
5923 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
5924 Remove sym argument, always use refsym.
5925 (__process_machine_rela): Adjust callers.
5926 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
5928 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
5930 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5932 2003-05-15 Ulrich Drepper <drepper@redhat.com>
5934 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
5935 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
5936 print numeric values.
5938 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
5940 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
5942 2003-05-14 Andreas Schwab <schwab@suse.de>
5944 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
5946 2003-05-14 Jakub Jelinek <jakub@redhat.com>
5948 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
5949 even if no DT_NEEDED is present.
5951 2003-05-13 David Mosberger <davidm@hpl.hp.com>
5953 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
5954 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
5955 __sigjmp_save) so we can't keep the saved unat value in a scratch
5956 register (r16). Use loc2 instead.
5958 2003-05-13 Ulrich Drepper <drepper@redhat.com>
5960 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
5961 binaries it has to be relocatable.
5963 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
5965 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
5967 * sysdeps/powerpc/bits/atomic.h
5968 (__arch_compare_and_exchange_bool_8_rel): Define.
5969 (__arch_compare_and_exchange_bool_16_rel): Define.
5970 (__ARCH_REL_INSTR): Define if not already defined.
5971 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
5972 (__arch_atomic_decrement_if_positive_32):
5973 Add "memory" to clobber list.
5974 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
5975 (__arch_compare_and_exchange_val_32_rel): Define.
5976 (__arch_atomic_exchange_32): Remove.
5977 (__arch_atomic_exchange_32_acq): Define.
5978 (__arch_atomic_exchange_32_rel): Define.
5979 (atomic_compare_and_exchange_val_rel): Define.
5980 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
5981 (atomic_exchange_rel): Define.
5982 * sysdeps/powerpc/powerpc32/bits/atomic.h
5983 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
5984 (__arch_compare_and_exchange_bool_32_rel): Define.
5985 (__arch_compare_and_exchange_bool_64_rel): Define.
5986 (__arch_compare_and_exchange_val_64_rel): Define.
5987 (__arch_atomic_exchange_64): Remove.
5988 (__arch_atomic_exchange_64_acq): Define.
5989 (__arch_atomic_exchange_64_rel): Define.
5990 * sysdeps/powerpc/powerpc64/bits/atomic.h
5991 (__arch_compare_and_exchange_bool_32_rel): Define.
5992 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
5993 (__arch_compare_and_exchange_bool_64_rel): Define.
5994 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
5995 (__arch_compare_and_exchange_val_64_rel): Define.
5996 (__arch_atomic_exchange_64): Remove.
5997 (__arch_atomic_exchange_64_acq): Define.
5998 (__arch_atomic_exchange_64_rel): Define.
5999 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
6000 (__arch_atomic_decrement_if_positive_64):
6001 Add "memory" to clobber list.
6002 [!UP](__ARCH_REL_INSTR): Define as lwsync.
6004 2003-05-11 Andreas Schwab <schwab@suse.de>
6006 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
6008 2003-05-11 Ulrich Drepper <drepper@redhat.com>
6010 * time/tst-strftime.c (do_test): Add tests for - flag.
6012 2003-05-11 Jim Meyering <jim@meyering.net>
6014 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
6015 the space-padded-by-default conversion specifiers, %e, %k, %l.
6017 2003-05-11 Andreas Schwab <schwab@suse.de>
6019 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
6021 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6023 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
6024 already defined and when really needed.
6025 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6027 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
6029 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
6030 headers, add defines from kernel header, move it from here...
6031 * inet/netinet/igmp.h: ... to here.
6032 * inet/Makefile (headers): Add netinet/igmp.h.
6033 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
6034 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
6036 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6038 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
6039 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
6041 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
6043 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
6044 (remove __THROW from possible cancellation points).
6046 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6048 * posix/sched.h (CPU_SETSIZE): Define.
6050 2003-05-09 Ulrich Drepper <drepper@redhat.com>
6052 * Makeconfig (gnulib): Remove -lgcc_eh again.
6054 * posix/sched.h: Change prototypes of sched_getaffinity and
6055 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
6056 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
6057 * sysdeps/generic/sched_setaffinity.c: Likewise.
6058 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
6059 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
6060 __CPU_CLR, and __CPU_ISSET.
6061 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6062 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
6063 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
6065 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
6066 (atomic_exchange_rel): New #define.
6067 * sysdeps/ia64/bits/atomic.h: Likewise.
6068 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
6070 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
6071 * sysdeps/powerpc/bits/atomic.h: Likewise.
6072 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
6073 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
6074 * sysdeps/x86_64/bits/atomic.h: Likewise.
6075 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
6077 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
6079 2003-05-08 Ulrich Drepper <drepper@redhat.com>
6081 * malloc/thread-m.h: Remove special handling of thread_atfork if
6082 HAVE_register_atfork_malloc is defined.
6084 2003-05-07 Andreas Jaeger <aj@suse.de>
6086 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
6089 2003-05-06 Ulrich Drepper <drepper@redhat.com>
6091 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
6092 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6093 * libio/libioP.h: Declare _IO_old_init.
6094 * libio/genops.c (_IO_no_init): Split in two. New function
6097 2003-05-05 Ulrich Drepper <drepper@redhat.com>
6099 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
6101 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
6103 * include/unistd.h: Declare __libc_enable_secure_decided.
6104 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
6105 and AT_EGID. If all found, set __libc_enable_secure and
6106 __libc_enable_secure_decided.
6108 * sysdeps/generic/libc-start.c [!SHARED]: Call
6109 __libc_check_standard_fds after __libc_init_first.
6111 2003-05-05 Roland McGrath <roland@redhat.com>
6113 * Makerules (common-before-compile): New variable.
6114 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
6115 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
6116 to after all setting of before-compile.
6118 2003-05-05 Jakub Jelinek <jakub@redhat.com>
6120 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
6121 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
6122 * sysdeps/powerpc/powerpc32/bits/atomic.h
6123 (__arch_compare_and_exchange_val_64_acq): Likewise.
6124 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
6125 (__arch_compare_and_exchange_val_8_acq,
6126 __arch_compare_and_exchange_val_16_acq,
6127 __arch_compare_and_exchange_val_64_acq): Likewise.
6128 * sysdeps/sparc/sparc64/bits/atomic.h
6129 (__arch_compare_and_exchange_val_8_acq,
6130 __arch_compare_and_exchange_val_16_acq): Likewise.
6131 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
6132 __arch_compare_and_exchange_val_16_acq,
6133 __arch_compare_and_exchange_val_64_acq): Likewise.
6134 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
6135 (__arch_compare_and_exchange_val_64_acq): Likewise.
6136 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
6138 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
6140 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6141 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
6142 Return long instead of int.
6143 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
6144 0xfffff001u with -4095UL.
6146 2003-05-05 Andreas Jaeger <aj@suse.de>
6148 * sysdeps/x86_64/fpu_control.h: New from i386.
6150 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
6151 Define if not defined.
6153 * sunrpc/Makefile (generated-dirs): New variable.
6154 * resolv/Makefile (generated): New variable.
6156 2003-05-04 Roland McGrath <roland@redhat.com>
6158 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
6159 Depend on $(before-compile).
6161 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
6162 pattern rule. The implicit rule could be ruled out when $(objpfx)
6163 didn't exist at the time of its consideration (ugh!).
6165 * Makerules (+make-deps): Fix target matching.
6166 Use $(sed-remove-dotdot).
6168 2003-05-03 Ulrich Drepper <drepper@redhat.com>
6170 * nscd/nscd.c (main): Parse config file right after parsing
6171 parameters. Then, if get_stats is true, call receive_print_stats.
6172 Drop parameter from nscd_init call.
6173 (get_stats): New variable.
6174 (parse_opt): Set get_stats, don't call receive_print_stats here.
6175 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
6177 * nscd/connections.c (stat_user, stat_uid): New variables.
6179 (nscd_init): Don't read configuration file here. Drop parameter.
6180 (handle_request): Cleanup handling of non-database lookup requests.
6181 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
6182 Get UID of the specified user. Use xstrdup instead of strdup.
6183 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
6185 * nscd/Makefile (nscd-modules): Add xstrdup.
6186 * nscd/nscd.conf: Document stat-user entry.
6188 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
6190 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
6193 2003-04-22 Roland McGrath <roland@redhat.com>
6195 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
6196 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6197 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
6198 * elf/dl-support.c: Update defn.
6199 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
6200 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6201 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
6202 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
6203 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
6204 set, set up a link_map for the preloaded, prelinked object.
6206 2003-05-03 Roland McGrath <roland@redhat.com>
6208 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
6209 * stdio-common/Makefile: ... not here.
6211 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
6212 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
6214 2003-05-02 Ulrich Drepper <drepper@redhat.com>
6216 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
6218 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
6220 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
6221 comparing ftab elements.
6222 (_dl_unmap): Fix typo in test.
6223 (_dl_make_fptr): Fix typos introduced in last change.
6225 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
6226 original patch. Use non-exported symbols. Mark translatable
6227 strings. Pretty printing.
6229 2003-05-02 Roland McGrath <roland@redhat.com>
6231 * Makerules (do-stamp): Do $(make-target-directory).
6233 2003-04-07 H.J. Lu <hjl@gnu.org>
6235 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
6237 2003-04-03 H.J. Lu <hjl@gnu.org>
6239 * sysdeps/ia64/dl-fptr.c: Moved to ...
6240 * sysdeps/generic/dl-fptr.c: Here.
6242 * sysdeps/generic/dl-fptr.h: New.
6243 * sysdeps/ia64/dl-fptr.h: New.
6245 * sysdeps/ia64/dl-symaddr.c: Moved to ...
6246 * sysdeps/generic/dl-symaddr.c: here.
6248 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
6249 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
6250 (ia64_fdesc): Likewise.
6251 (ia64_fdesc_table): Likewise.
6252 (__ia64_make_fptr): Likewise.
6253 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
6254 with _dl_boot_fptr_table.
6255 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
6257 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
6259 2003-05-01 Roland McGrath <roland@redhat.com>
6261 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
6262 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
6264 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6265 Use $(make-target-directory).
6266 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6268 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
6269 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
6270 (compile-command.s, compile-command.c): Likewise.
6271 ($(objpfx)%.d): All such pattern rules removed.
6272 ($(+sysdir_pfx)sysd-rules): Don't generate them.
6273 ($(common-objpfx)dummy.d): Target removed.
6274 (make-dummy-dep): Variable removed.
6275 (generate-md5): Likewise.
6276 (%.d: %.dt): New pattern rule.
6277 (+depfiles): Use $(wildcard) function to get just existing *.d files
6278 and .d files for existing *.dt files.
6279 (common-clean): Remove all *.d and *.dt files.
6280 (before-compile): Add $(objpfx). when it doesn't exist,
6281 regardless of $(no_deps).
6282 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
6283 (rtld-depfiles): Use .os.d instead of .d names.
6284 Include existing *.d files and .d files for existing *.dt files.
6286 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
6287 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
6289 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
6290 Do s-*.d includes only if we have some syscall routines in this subdir.
6292 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
6293 @nobits. The former is accepted by gas on any ELF platform.
6295 2003-05-01 Ulrich Drepper <drepper@redhat.com>
6297 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
6299 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
6301 2003-04-29 Andreas Schwab <schwab@suse.de>
6303 * string/test-strcat.c (do_one_test): Fix attribute name.
6305 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
6307 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
6308 uc_flags long for all ABIs.
6310 2003-04-30 Andreas Jaeger <aj@suse.de>
6312 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
6313 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
6314 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
6315 Add bi-arch support.
6317 2003-04-30 Ulrich Drepper <drepper@redhat.com>
6319 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
6320 (__posix_memalign): Use __memalign_internal instead of memalign.
6322 2003-04-29 Roland McGrath <roland@redhat.com>
6324 * configure.in: Search for AUTOCONF unconditionally.
6325 Just don't complain about missing it under --without-cvs.
6327 * include/libc-symbols.h (__symbol_set_attribute): New macro,
6328 give hidden for [SHARED] and weak for [! SHARED].
6329 (symbol_set_declare): Use that. Never need weak_extern these days.
6330 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
6331 Depend on $(..)Makerules.
6333 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6335 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
6336 variants of socket, bind, recvmsg, and sendto.
6338 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
6340 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
6341 * signal/sigaddset.c: Add libc_hidden_def.
6342 * signal/sigdelset.c: Likewise.
6344 2003-04-29 Jakub Jelinek <jakub@redhat.com>
6346 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
6347 to the end of the file.
6349 * configure.in: Change __oline__ to $LINENO.
6350 (HAVE_BUILTIN_REDIRECTION): New check.
6351 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
6352 * include/libc-symbols.h (libc_hidden_builtin_proto,
6353 libc_hidden_builtin_def, libc_hidden_builtin_weak,
6354 libc_hidden_builtin_ver): Define.
6355 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
6356 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
6357 strspn, strstr): Add libc_hidden_builtin_proto.
6358 * intl/plural.y: Include string.h.
6359 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
6360 libc_hidden_builtin_def.
6361 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
6362 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
6363 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
6364 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
6365 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
6366 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
6367 * sysdeps/alpha/memchr.S (memchr): Likewise.
6368 * sysdeps/alpha/memset.S (memset): Likewise.
6369 * sysdeps/alpha/strcat.S (strcat): Likewise.
6370 * sysdeps/alpha/strchr.S (strchr): Likewise.
6371 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
6372 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
6373 * sysdeps/alpha/strlen.S (strlen): Likewise.
6374 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
6375 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
6376 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
6377 * sysdeps/arm/memset.S (memset): Likewise.
6378 * sysdeps/arm/strlen.S (strlen): Likewise.
6379 * sysdeps/generic/memchr.c (memchr): Likewise.
6380 * sysdeps/generic/memcpy.c (memcpy): Likewise.
6381 * sysdeps/generic/memmove.c (memmove): Likewise.
6382 * sysdeps/generic/memset.c (memset): Likewise.
6383 * sysdeps/generic/strcat.c (strcat): Likewise.
6384 * sysdeps/generic/strchr.c (strchr): Likewise.
6385 * sysdeps/generic/strcmp.c (strcmp): Likewise.
6386 * sysdeps/generic/strcpy.c (strcpy): Likewise.
6387 * sysdeps/generic/strcspn.c (strcspn): Likewise.
6388 * sysdeps/generic/strlen.c (strlen): Likewise.
6389 * sysdeps/generic/strncmp.c (strncmp): Likewise.
6390 * sysdeps/generic/strncpy.c (strncpy): Likewise.
6391 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
6392 * sysdeps/generic/strrchr.c (strrchr): Likewise.
6393 * sysdeps/generic/strspn.c (strspn): Likewise.
6394 * sysdeps/generic/strstr.c (strstr): Likewise.
6395 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6396 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6397 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
6398 * sysdeps/i386/i586/memset.S (memset): Likewise.
6399 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
6400 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
6401 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6402 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
6403 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6404 * sysdeps/i386/i686/memset.S (memset): Likewise.
6405 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6406 * sysdeps/i386/memchr.S (memchr): Likewise.
6407 * sysdeps/i386/memset.c (memset): Likewise.
6408 * sysdeps/i386/strchr.S (strchr): Likewise.
6409 * sysdeps/i386/strcspn.S (strcspn): Likewise.
6410 * sysdeps/i386/strlen.c (strlen): Likewise.
6411 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6412 * sysdeps/i386/strrchr.S (strrchr): Likewise.
6413 * sysdeps/i386/strspn.S (strspn): Likewise.
6414 * sysdeps/ia64/memchr.S (memchr): Likewise.
6415 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
6416 * sysdeps/ia64/memmove.S (memmove): Likewise.
6417 * sysdeps/ia64/memset.S (memset): Likewise.
6418 * sysdeps/ia64/strcat.S (strcat): Likewise.
6419 * sysdeps/ia64/strchr.S (strchr): Likewise.
6420 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
6421 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
6422 * sysdeps/ia64/strlen.S (strlen): Likewise.
6423 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
6424 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
6425 * sysdeps/m68k/memchr.S (memchr): Likewise.
6426 * sysdeps/m68k/strchr.S (strchr): Likewise.
6427 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
6428 * sysdeps/mips/mips64/memset.S (memset): Likewise.
6429 * sysdeps/mips/memcpy.S (memcpy): Likewise.
6430 * sysdeps/mips/memset.S (memset): Likewise.
6431 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6432 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
6433 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
6434 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
6435 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
6436 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6437 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6438 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
6439 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
6440 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
6441 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
6442 * sysdeps/powerpc/strcat.c (strcat): Likewise.
6443 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
6444 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
6445 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
6446 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
6447 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
6448 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
6449 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
6450 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
6451 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
6452 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
6453 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
6454 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
6455 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
6456 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
6457 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
6458 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
6459 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
6460 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
6461 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
6462 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
6463 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
6464 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
6465 * sysdeps/sh/memcpy.S (memcpy): Likewise.
6466 * sysdeps/sh/memset.S (memset): Likewise.
6467 * sysdeps/sh/strlen.S (strlen): Likewise.
6468 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
6469 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
6470 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
6471 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
6472 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
6473 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
6474 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
6475 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
6476 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
6477 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
6478 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
6479 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
6480 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6481 * sysdeps/x86_64/memset.S (memset): Likewise.
6482 * sysdeps/x86_64/strcat.S (strcat): Likewise.
6483 * sysdeps/x86_64/strchr.S (strchr): Likewise.
6484 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
6485 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
6486 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
6487 * sysdeps/x86_64/strlen.S (strlen): Likewise.
6488 * sysdeps/x86_64/strspn.S (strspn): Likewise.
6489 * string/string-inlines.c: Move...
6490 * sysdeps/generic/string-inlines.c: ...here.
6491 (__memcpy_g, __strchr_g): Remove.
6492 (__NO_INLINE__): Define before including <string.h>,
6493 undefine after. Include bits/string.h and bits/string2.h.
6494 * sysdeps/i386/i486/string-inlines.c: New file.
6495 * sysdeps/i386/string-inlines.c: New file.
6496 * sysdeps/i386/i486/Versions: Remove.
6497 All GLIBC_2.1.1 symbols moved...
6498 * sysdeps/i386/Versions (libc): ...here.
6500 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6502 * sysdeps/i386/fpu/Makefile: New file.
6503 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
6504 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6505 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6506 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
6509 2003-04-28 Ulrich Drepper <drepper@redhat.com>
6511 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
6512 * nscd/nscd_getpw_r.c: Likewise.
6513 * nscd/nscd_gethst_r.c: Likewise.
6515 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6517 * nscd/pwdcache.c: Initialize .version element in result.
6518 * nscd/grpcache.c: Likewise.
6519 * nscd/pwdcache.c: Likewise.
6521 2003-04-27 Andreas Schwab <schwab@suse.de>
6523 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
6526 2003-04-27 Andreas Schwab <schwab@suse.de>
6528 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
6530 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6532 * nscd/connections.c (client_queued): New variable.
6533 (nscd_run): Revamp the loop. Don't call poll except for cleanup
6534 threads. Keep track of the number of delays caused because of busy
6536 * nscd/nscd.h: Declare client_queued.
6537 * nscd/nscd_stat.c: Transmit and print client_queued information.
6539 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
6541 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
6542 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
6544 2003-04-26 Ulrich Drepper <drepper@redhat.com>
6546 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
6547 tracking of freed memory in static TLS block.
6548 * elf/Makefile: Add rules to build and run tst-tls13.
6549 * elf/tst-tls13.c: New file.
6550 * elf/tst-tlsmod13.c: New file.
6551 * elf/tst-tlsmod13a.c: New file.
6553 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
6555 * elf/dl-reloc.c: Pretty printing.
6557 2003-04-26 Roland McGrath <roland@redhat.com>
6559 * Makerules ($(common-objpfx)shlib.lds): New target.
6560 (common-generated): Add it.
6561 (build-shlib, build-module): Use that instead of generating every time.
6562 ($(common-objpfx)libc.so): Depend on it.
6563 (lib%.so rule): Likewise.
6564 (build-module-helper-objlist): Remove %.lds.
6565 (LDSEDCMD-c.so): Variable removed.
6566 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
6567 Depend on $(common-objpfx)shlib.lds.
6568 * dlfcn/Makefile ($(test-modules)): Likewise.
6570 2003-04-26 Roland McGrath <roland@frob.com>
6572 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
6574 2003-04-26 Andreas Schwab <schwab@suse.de>
6576 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
6578 2003-04-25 Ulrich Drepper <drepper@redhat.com>
6580 * nscd/cache.c (cache_search): Keep track of how many chain links
6581 we searched and update table statistics.
6582 (cache_add): Keep track of how many values are in the table.
6583 (prune_cache): Likewise. Keep track of locking success.
6584 Print messages about removed entries in separate pass.
6585 * nscd/connections.c (handle_request): Don't print debug message here.
6586 The caller will do it. Keep track of locking success.
6587 (nscd_run): Print debug message. Also print PID of the client process.
6588 * nscd/nscd.c (start_time): New variable.
6589 (main): Remember start time.
6590 * nscd/nscd.h: Declare start_time.
6591 (struct database): Add more members for new statistics.
6592 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
6595 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
6597 2003-04-22 Jakub Jelinek <jakub@redhat.com>
6599 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
6600 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
6601 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
6603 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
6604 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
6605 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
6606 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
6609 2003-04-24 Ulrich Drepper <drepper@redhat.com>
6611 * nss/getent.c: Implement alternative host database lookup via
6614 * include/ifaddrs.h: New file.
6615 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
6617 * resolv/netdb.h: ...here.
6618 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
6619 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6620 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
6623 2003-04-24 Roland McGrath <roland@redhat.com>
6625 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
6627 2003-04-24 Jakub Jelinek <jakub@redhat.com>
6629 * elf/dl-reloc.c (allocate_static_tls): Rename to...
6630 (_dl_allocate_static_tls): ... this function. No longer static.
6631 (CHECK_STATIC_TLS): Adjust.
6632 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
6633 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
6634 Add SYM_MAP argument.
6635 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
6636 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
6637 TLS relocs here. #ifdef out relocs which never appear in
6638 .gnu.conflict section from dl-conflict.c processing.
6639 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6640 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
6642 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
6643 out relocs which never appear in .gnu.conflict section from
6644 dl-conflict.c processing.
6645 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6646 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6647 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6648 Use r_type in RESOLVE macro.
6650 2003-04-23 Ulrich Drepper <drepper@redhat.com>
6652 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
6653 NULL. Remove code made redundant by this assumption.
6654 (__yp_unbind): Add call to free. Adjust all callers.
6656 * nis/ypclnt.c (yp_all): Free the dom_binding object after
6659 * grp/initgroups.c (getgrouplist): Don't copy too much into the
6660 user buffer if more groups are found than fit into it.
6662 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
6665 2003-04-23 Jakub Jelinek <jakub@redhat.com>
6667 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
6668 not rc == errno. Use extend_alloca.
6670 * elf/tst-tls12.c (main): Fix declaration.
6671 * elf/tst-tls10.c (dummy): Make hidden instead of static.
6672 * elf/tst-tlsmod7.c (dummy): Likewise.
6673 * elf/tst-tlsmod8.c (dummy): Likewise.
6674 * elf/tst-tlsmod9.c (dummy): Likewise.
6676 2003-04-22 Roland McGrath <roland@redhat.com>
6678 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
6679 (open_not_cancel): Make last argument non-optional.
6680 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
6681 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6682 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6684 * include/tls.h: Protect against multiple inclusion.
6686 2003-04-22 Ulrich Drepper <drepper@redhat.com>
6688 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
6689 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
6690 open_socket. Not static anymore.
6691 (nscd_gethst_r): Use __nscd_open_socket.
6692 * nscd/nscd_getgr_r.c (open_socket): Removed.
6693 (nscd_getgr_r): Use __nscd_open_socket.
6694 * nscd/nscd_getpw_r.c (open_socket): Removed.
6695 (nscd_getpw_r): Use __nscd_open_socket.
6697 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
6698 * nscd/connections.c (handle_request): Add cast to avoid warning.
6700 2003-04-21 Ulrich Drepper <drepper@redhat.com>
6702 * signal/sigfillset.c: Moved to...
6703 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
6704 do not set the corresponding bit.
6706 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
6708 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
6709 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
6710 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
6711 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
6712 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
6714 2003-04-20 Ulrich Drepper <drepper@redhat.com>
6716 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
6717 first syscall parameter to const char*.
6719 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6721 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
6723 * configure.in: Add AC_PROG_CXX.
6724 * config.make.in (CXX): Define.
6726 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
6727 __len to size_t to avoid warnings.
6729 2003-04-18 Jes Sorensen <jes@wildopensource.com>
6731 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
6733 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6735 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6737 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
6738 UNREGISTER_ATFORK if d == NULL.
6740 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
6741 * dirent/dirent.h: Likewise.
6742 * dlfcn/dlfcn.h: Likewise.
6743 * grp/grp.h: Likewise.
6744 * iconv/iconv.h: Likewise.
6745 * io/fcntl.h: Likewise.
6746 * io/ftw.h: Likewise.
6747 * libio/stdio.h: Likewise.
6748 * misc/sys/mman.h: Likewise.
6749 * misc/sys/select.h: Likewise.
6750 * misc/sys/syslog.h: Likewise.
6751 * misc/sys/uio.h: Likewise.
6752 * posix/spawn.h: Likewise.
6753 * posix/unistd.h: Likewise.
6754 * posix/sys/wait.h: Likewise.
6755 * pwd/pwd.h: Likewise.
6756 * resolv/netdb.h: Likewise.
6757 * rt/aio.h: Likewise.
6758 * shadow/shadow.h: Likewise.
6759 * signal/signal.h: Likewise.
6760 * socket/sys/socket.h: Likewise.
6761 * stdlib/stdlib.h: Likewise.
6762 * streams/stropts.h: Likewise.
6763 * string/string.h: Likewise.
6764 * sysdeps/gnu/utmpx.h: Likewise.
6765 * sysvipc/sys/msg.h: Likewise.
6766 * termios/termios.h: Likewise.
6767 * time/time.h: Likewise.
6768 * wcsmbs/wchar.h: Likewise.
6769 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
6771 * misc/daemon.c: Likewise.
6772 * sysdeps/generic/backtracesymsfd.c: Likewise.
6773 * sysdeps/generic/check_fds.c: Likewise.
6774 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
6775 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
6776 * sysdeps/generic/not-cancel.h: New file.
6777 * csu/Makefile (distribute): Add not-cancel.h.
6778 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
6779 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
6780 for assert.c and assert-perr.c to include <fatal-prepare.h>.
6781 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
6783 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
6784 errno and unlink first.
6786 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
6788 2003-04-18 Ulrich Drepper <drepper@redhat.com>
6790 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
6791 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
6793 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6795 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
6797 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
6798 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
6801 * signal/Makefile (tests): Add tst-sigsimple.
6802 * signal/tst-sigsimple.c: New file.
6804 2003-04-16 Jakub Jelinek <jakub@redhat.com>
6806 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
6808 (tests): Add tst-tls1[0-2].
6809 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
6810 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
6811 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
6812 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
6813 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
6814 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
6815 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
6816 * elf/tst-tls10.c: New test.
6817 * elf/tst-tls11.c: New test.
6818 * elf/tst-tls12.c: New test.
6819 * elf/tst-tls10.h: New file.
6820 * elf/tst-tlsmod7.c: New file.
6821 * elf/tst-tlsmod8.c: New file.
6822 * elf/tst-tlsmod9.c: New file.
6823 * elf/tst-tlsmod10.c: New file.
6824 * elf/tst-tlsmod11.c: New file.
6825 * elf/tst-tlsmod12.c: New file.
6827 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6829 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
6830 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
6831 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
6833 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6835 * posix/regex.h: Include <sys/types.h>.
6837 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
6838 The signal number must be checked.
6839 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6840 The signal number must be checked [PR libc/5004].
6842 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
6843 don't do anything fancy.
6845 * sysdeps/generic/bits/libc-lock.h: Define
6846 __rtld_lock_define_initialized_recursive.
6848 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
6849 contacting nscd if NOT_USENSCD_NAME > 0.
6850 * nss/nsswitch.c (__nss_disable_nscd): New function.
6851 * nss/nsswitch.h: Declare it.
6852 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
6853 * nscd/nscd.c (main): Call __nss_disable_nscd.
6855 2003-04-16 Ulrich Drepper <drepper@redhat.com>
6857 * stdio-common/perror.c (perror): We don't need to set the offset
6858 to _IO_pos_bad, this is how streams are initialized.
6860 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
6861 (time_output): If necessary, allocate new buffer for .name string if
6862 padding is required.
6864 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
6865 before copying. This might leave holes in the list. Adjust
6866 pointers if necessary.
6867 (netlink_receive): Allocate only one block.
6868 (free_netlink_handle): Adjust appropriately.
6869 (getifaddrs): Lots of cleanups.
6871 * string/test-strncpy.c (do_one_test): Mark start and stop as
6873 * string/test-memchr.c: Likewise.
6874 * string/test-memcmp.c: Likewise.
6875 * string/test-memcpy.c: Likewise.
6876 * string/test-memmove.c: Likewise.
6877 * string/test-memset.c: Likewise.
6878 * string/test-strcat.c: Likewise.
6879 * string/test-strchr.c: Likewise.
6880 * string/test-strcmp.c: Likewise.
6881 * string/test-strcpy.c: Likewise.
6882 * string/test-strlen.c: Likewise.
6883 * string/test-strncmp.c: Likewise.
6884 * string/test-strpbrk.c: Likewise.
6885 * string/test-strrchr.c: Likewise.
6886 * string/test-strspn.c: Likewise.
6888 2003-04-15 Roland McGrath <roland@redhat.com>
6890 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
6892 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
6893 INTUSE(__register_frame_info_bases).
6895 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6897 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
6898 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
6899 AT_SYSINFO_EH_FRAME. Adjust string width.
6900 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
6901 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
6902 Add _dl_sysinfo_eh_frame field.
6903 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
6904 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
6906 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
6907 if _dl_sysinfo_eh_frame is non-NULL.
6909 * Makeconfig (gnulib): Add -lgcc_eh.
6911 * config.h.in: Define HAVE_FORCED_UNWIND.
6913 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6915 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
6916 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
6918 2003-04-15 Jakub Jelinek <jakub@redhat.com>
6920 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
6921 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
6922 against local symbol in conflict processing.
6924 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6926 * sysdeps/powerpc/bits/atomic.h
6927 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
6928 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
6930 (__arch_compare_and_exchange_val_32_acq): Define.
6931 (atomic_compare_and_exchange_val_acq): Define.
6933 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6935 * include/atomic.h: Pretty printing.
6937 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6939 * stdio-common/vfscanf.c: Add casts to avoid warnings.
6941 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6943 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
6944 * sysdeps/x86_64/bits/atomic.h: Likewise.
6946 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6948 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
6949 POPARGS_1 to emit labels for the mov instructions.
6951 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6953 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
6955 2003-04-14 Roland McGrath <roland@redhat.com>
6957 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
6960 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
6962 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6964 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
6965 position. Reported by jreiser@BitWagon.com.
6967 2003-04-13 Ulrich Drepper <drepper@redhat.com>
6969 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
6970 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
6971 * sysdeps/generic/unwind-dw2.c: Likewise.
6972 * sysdeps/generic/unwind-pe.h: Likewise.
6974 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
6976 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
6977 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
6978 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
6979 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
6980 (mcontext_t): Make it match the 32-bit mips kernel in o32.
6981 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
6982 the mips and mips64 headers.
6983 (struct user): Port to n32/n64.
6985 2003-04-12 Ulrich Drepper <drepper@redhat.com>
6987 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
6990 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
6991 __ASSUME_VSYSCALL is defined don't add restorer.
6992 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6993 __ASSUME_VSYSCALL for 2.5.53.
6995 2003-04-11 Ulrich Drepper <drepper@redhat.com>
6997 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
6998 Remove HAVE_CANCELBUF code. Replace with code using the new
6999 initializers for unwind-based cleanup handling.
7000 * sysdeps/generic/unwind.h: Update from latest gcc version.
7001 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
7002 places to allow unwind data generation.
7003 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
7004 * sysdeps/x86_64/bits/setjmp.h: Likewise.
7005 * sysdeps/sh/bits/setjmp.h: Likewise.
7006 * sysdeps/powerpc/bits/setjmp.h: Likewise.
7007 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
7008 * sysdeps/alpha/bits/setjmp.h: Likewise.
7010 2003-04-11 Roland McGrath <roland@redhat.com>
7012 * csu/tst-empty.c: New file.
7013 * csu/Makefile (tests, tests-static): Add it.
7015 2003-04-11 Jakub Jelinek <jakub@redhat.com>
7017 * string/test-strcmp.c (do_random_tests): Test whether return value
7018 has been promoted to wordsize if the ABI requires caller to do so.
7019 * string/test-strncmp.c (do_random_tests): Likewise.
7020 * string/test-memcmp.c (do_random_tests): Likewise.
7022 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
7025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7026 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
7027 is not defined, but the prctl constants are.
7029 * string/tester.c (test_strcmp): Fix a typo.
7031 2003-04-09 Ulrich Drepper <drepper@redhat.com>
7033 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
7034 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
7036 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
7038 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
7040 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
7042 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
7044 * sysdeps/mips/mips64/memset.S: Likewise.
7045 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
7046 Use t0 instead of t4 as temporary.
7048 2003-04-07 Ulrich Drepper <drepper@redhat.com>
7050 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
7051 feof_unlocked instead of feof.
7052 (add_dir): Ignore trailing whitespace.
7054 2003-04-07 Jakub Jelinek <jakub@redhat.com>
7056 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
7057 sum of SIZE1 and SIZE2 arguments.
7059 2003-04-06 Ulrich Drepper <drepper@redhat.com>
7061 * iconv/iconv_prog.c (process_block): Don't print message about
7062 invalid input if the -c option is used.
7063 (main): Correctly append IGNORE string for -c option.
7065 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7067 * sysdeps/sh/bits/atomic.h: Moved to ...
7068 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
7069 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
7071 (atomic_bit_set, atomic_bit_test_set): Likewise.
7072 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
7074 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7076 2003-04-06 Roland McGrath <roland@redhat.com>
7078 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
7079 restoration as done for setcontext yesterday.
7081 2003-04-06 Jakub Jelinek <jakub@redhat.com>
7083 * elf/rtld.c: Revert 2003-03-14 change.
7084 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
7085 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
7087 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7089 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
7091 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7092 Always initialize *signgamp before returning an error.
7094 2003-04-05 Roland McGrath <roland@redhat.com>
7096 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
7097 below the stack pointer even if switching to the same context we are
7100 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7102 * catgets/gencat.c (read_input_file): Make sure that \n is not
7103 alone on the line before testing for continuation.
7105 * math/test-tgmath.c (compile_test): Initialize c.
7107 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
7109 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
7110 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
7111 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
7113 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
7114 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
7115 structure on n32 as well.
7116 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
7117 data types on n32 and n64.
7119 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7121 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
7124 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
7125 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
7126 instead of __register_atfork.
7128 2003-04-05 Jakub Jelinek <jakub@redhat.com>
7130 * stdio-common/reg-printf.c (__register_printf_function): Calloc
7131 instead of malloc __printf_arginfo_table and __printf_function_table.
7132 Reported by John Reiser <jreiser@BitWagon.com>.
7134 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
7136 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
7137 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
7139 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
7142 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
7144 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
7147 2003-04-03 Roland McGrath <roland@redhat.com>
7149 * configure.in: Fix up use of compilation flags to match the build:
7150 For .s files, $ASFLAGS;
7151 For .S files, $CPPFLAGS $ASFLAGS;
7152 For .c files, $CFLAGS $CPPFLAGS;
7153 when linking, add $LDFLAGS.
7154 * configure: Regenerated.
7156 2003-04-03 Jakub Jelinek <jakub@redhat.com>
7158 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
7159 for atomic_compare_and_exchange_bool_acq failure.
7161 2003-04-03 Ulrich Drepper <drepper@redhat.com>
7163 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
7164 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
7165 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
7166 Remove declaration of pthread_atfork.
7168 2003-04-02 Ulrich Drepper <drepper@redhat.com>
7170 * locale/iso-639.def: Add many more languages from the current ISO 639.
7172 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
7173 * sysdeps/generic/semtimedop.c: New file.
7174 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
7175 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
7176 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7177 * sysvipc/Makefile (routines): Add semtimedop.
7178 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
7179 * sysvipc/sys/sem.h: Declare semtimedop.
7181 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
7183 * configure.in: Check for __register_frame_info in both
7185 * configure: Regenerated.
7187 2003-04-01 Roland McGrath <roland@redhat.com>
7189 * scripts/abilist.awk: Allow dots in soname suffix.
7191 * scripts/abilist.awk (emit): Fix bailout condition.
7193 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7195 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
7198 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
7199 register as input to asm.
7201 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7203 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
7205 2003-04-01 Andreas Jaeger <aj@suse.de>
7207 * configure.in: Output as/ld as name if version is too old.
7209 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
7211 * configure.in: Don't require an installed C library in the test
7212 for ".set" assembler support.
7214 2003-03-31 Roland McGrath <roland@redhat.com>
7216 * signal/tst-sigset.c: New file.
7217 * signal/Makefile (tests): Add it.
7219 2003-03-31 Ulrich Drepper <drepper@redhat.com>
7221 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
7222 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
7223 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
7224 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
7225 (__SIGRTMAX): Adjust accordingly.
7226 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
7227 second compatibility symbol set.
7228 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
7230 2003-03-31 Andreas Schwab <schwab@suse.de>
7232 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
7234 (atomic_decrement_and_test): Fix test.
7236 2003-03-31 Jakub Jelinek <jakub@redhat.com>
7238 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
7239 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
7240 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
7241 * sysdeps/sparc/sparc32/atomicity.h: Removed.
7242 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
7243 * sysdeps/sparc/sparc64/atomicity.h: Removed.
7245 2003-03-30 Roland McGrath <roland@redhat.com>
7247 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
7249 * intl/po2test.sed: Anchor substitution regexps to fix last change.
7251 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
7253 * intl/po2test.sed: Unify the transformations for msgid and msgstr
7254 and remove a useless s/// command.
7256 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7258 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
7259 directive into empty .prologue region to ensure that call-chain
7260 is terminated even for the first instruction.
7262 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
7263 to terminate call-chain right from the get-go.
7265 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
7266 stop bit between compare & branch.
7268 2003-03-29 Ulrich Drepper <drepper@redhat.com>
7270 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
7271 point correctly [PR libc/4993].
7273 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
7274 netlink_open calls if netlink is known to not be available.
7276 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
7278 * configure.in: Add mips64* support.
7279 * sysdeps/mips/bits/endian.h: Make it bi-endian.
7280 * sysdeps/mips/mipsel/bits/endian.h: Removed.
7281 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
7282 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
7283 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
7284 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
7285 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
7286 * sysdeps/mips/Implies: Moved wordsize-32 to...
7287 * sysdeps/mips/mips32/Implies: New file.
7288 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
7290 (ret, PSEUDO_END): Moved past END.
7291 (PSEUDO): Moved to...
7292 * sysdeps/unix/mips/mips32/sysdep.h: New file.
7293 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
7294 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
7295 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
7296 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
7297 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
7299 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
7302 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
7304 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
7305 * inet/test-ifaddrs.c: Allow AF_PACKET.
7306 * sysdeps/unix/sysv/linux/kernel-features.h: Add
7307 __ASSUME_NETLINK_SUPPORT.
7309 2003-03-28 Ulrich Drepper <drepper@redhat.com>
7311 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
7313 2003-03-26 H.J. Lu <hjl@gnu.org>
7315 * elf/vismod.h (getvarlocal1): Return const char **.
7316 (getvarinmod1): Likewise.
7317 (getvaritcpt1): Likewise.
7318 (getvarlocal2): Likewise.
7319 (getvarinmod2): Likewise.
7320 (getvaritcpt2): Likewise.
7321 (getvaritcpt3): Likewise.
7322 * elf/vismain.c (do_test): Adjusted.
7323 * elf/vismod1.c (getvarlocal1): Return address.
7324 (getvarinmod1): Likewise.
7325 (getvaritcpt1): Likewise.
7326 * elf/vismod2.c (getvarlocal2): Likewise.
7327 (getvarinmod2): Likewise.
7328 (getvaritcpt2): Likewise.
7329 * elf/vismod3.c (getvaritcpt3): Likewise.
7331 2003-03-28 Roland McGrath <roland@redhat.com>
7333 * elf/vismain.c (do_test): Print both addresses when they don't match.
7335 * scripts/abilist.awk: If given -v filename_regexp and/or -v
7336 libname_regexp when parsing names, then produce output only
7337 for those matching the given regexps. In combine mode, save all
7338 stanzas for a final sorting by stanza header at the end.
7339 Emit a blank line between stanzas.
7341 * scripts/abilist.awk: When given -v combine=1, do parse_names and
7342 emit a single output stream with lib name in stanza header lines.
7344 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
7346 2003-03-27 Roland McGrath <roland@redhat.com>
7348 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
7349 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
7351 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7353 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7354 Return old value. Make asm output reg constraint earlyclobber.
7356 (__arch_compare_and_exchange_8_acq): ... this.
7357 (__arch_compare_and_exchange_val_16_acq):
7358 Return old value. Make asm output reg constraint earlyclobber.
7360 (__arch_compare_and_exchange_16_acq): ... this.
7361 (__arch_compare_and_exchange_val_32_acq):
7362 Return old value. Make asm output reg constraint earlyclobber.
7364 (__arch_compare_and_exchange_32_acq): ... this.
7365 (__arch_compare_and_exchange_val_64_acq):
7367 (__arch_compare_and_exchange_64_acq): ... this.
7368 (atomic_exchange_and_add): Use local variables and
7369 __arch_compare_and_exchange_val_64_acq.
7370 (atomic_add): Likewise.
7371 (atomic_add_negative, atomic_add_zero): Use local variables.
7373 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
7375 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
7377 2003-03-27 Ulrich Drepper <drepper@redhat.com>
7379 * Makefile: Remove libmd5crypt goal.
7381 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7383 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
7384 special handling of relocations against local symbols.
7386 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
7388 * sysdeps/powerpc/bits/atomic.h
7389 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
7390 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
7391 Define PPC64 specific version.
7392 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
7393 Change (mem) constraint to "b".
7394 [__powerpc64__] (__arch_atomic_exchange_and add_64):
7395 Replace addi with add. Change (value) contraint to "r".
7396 Change (mem) constraint to "b".
7397 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
7398 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
7399 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
7400 (__arch_atomic_decrement_if_positive_32): New macro.
7401 (atomic_decrement_if_positive): Use __arch* macros.
7403 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7405 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7407 2003-03-27 Roland McGrath <roland@redhat.com>
7409 * scripts/rpm2dynsym.sh: New file.
7410 * Makefile (distribute): Add it.
7412 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7414 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
7415 ar.unat before returning. Add missing .mem.offset directives
7416 to ensure file gets assembled without warnings.
7417 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7419 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7421 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
7422 Return -1 instead of 0 if clock_getres failed.
7424 2003-03-27 Roland McGrath <roland@redhat.com>
7426 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
7427 header lines and write out foo.symlist files for each foo.so.NN listed.
7429 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
7430 This symbol is exported, and we don't want to hide it.
7431 Add libc_hidden_proto instead.
7432 (_IO_file_jumps): Add libc_hidden_proto.
7433 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
7435 * libio/fileops.c (_IO_file_jumps): Likewise.
7436 * libio/stdfiles.c: Don't use INTUSE on them.
7437 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7438 * libio/iofopen.c (__fopen_internal): Likewise.
7439 * libio/freopen.c (freopen): Likewise.
7440 * libio/freopen64.c (freopen64): Likewise.
7441 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7443 * Makerules (check-abi) [$(enable-check-abi) = warn]:
7444 Ignore exit status from diff.
7445 * configure.in (enable_check_abi): Document possible value "warn".
7446 Change default to no for now.
7447 * configure: Regenerated.
7449 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
7450 macro calls and a #include <stub-tag.h> at the end.
7451 * Makerules ($(objpfx)stubs): Tweak sed commands.
7453 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
7454 caller column for *xattr syscalls, since they are in sysdeps/generic.
7456 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
7457 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
7459 2003-03-26 Roland McGrath <roland@redhat.com>
7461 * Makerules (check-abi-config): Use /thread instead of /tls when
7462 use-thread and not just use-tls is set.
7464 * Makerules (update-abi): Put quotes around $(update-abi-config).
7466 * elf/Makefile (check-abi): Depend on check-abi-ld.
7467 (update-abi): Depend on update-abi-ld.
7469 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7471 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
7472 do not check for errors (unless testing for 32bit variant).
7473 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
7475 2003-03-27 Philip Blundell <philb@gnu.org>
7477 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
7478 unconditional mov. Remove nop.
7480 * sysdeps/unix/sysv/linux/kernel-features.h
7481 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
7482 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
7483 when __ASSUME_VFORK_SYSCALL is defined.
7484 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
7485 __ASSUME_MMAP2_SYSCALL.
7486 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
7487 __ASSUME_REALTIME_SIGNALS.
7489 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7491 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
7492 only if DL_NO_COPY_RELOCS is not defined.
7493 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
7495 2003-03-26 Roland McGrath <roland@redhat.com>
7497 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
7498 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
7499 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
7500 (sysdep_routines): Add stub-syscalls.
7501 ($(objpfx)stub-syscalls.c): New target.
7502 (generated): Add stub-syscalls.c.
7504 * tls.make.c: Also define use-tls according to USE_TLS macro.
7506 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7508 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
7509 no-op padding element.
7510 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7511 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7512 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7513 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7515 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7517 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
7518 condition check for the return value of getgroups32.
7520 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7522 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
7524 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
7525 PSEUDO_END_NOERRNO): Define.
7526 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
7527 Define to PSEUDO_END.
7529 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7531 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
7533 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
7535 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
7536 * iconvdata/bug-iconv4.c: New file.
7537 * iconvdata/Makefile (tests): Add bug-iconv4.
7539 2003-03-25 H.J. Lu <hjl@gnu.org>
7541 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
7543 (_dl_lookup_versioned_symbol): Likewise.
7545 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7547 * csu/tst-atomic.c (do_test): Add some new
7548 atomic_compare_and_exchange_val_acq, atomic_add_zero,
7549 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
7550 * include/atomic.h (atomic_add_negative, atomic_add_zero):
7551 Prefix local variable so that it doesn't clash with the one
7552 in atomic_exchange_and_add.
7553 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
7555 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
7556 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
7557 value into register.
7558 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
7559 Cast newval to long.
7560 * sysdeps/x86_64/bits/atomic.h
7561 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
7563 (atomic_exchange): Cast newvalue to long if sizeof == 8.
7564 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
7565 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7566 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
7568 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
7570 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
7571 bit from backtrace addresses.
7573 2003-03-21 Andreas Schwab <schwab@suse.de>
7575 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
7578 2003-03-25 Roland McGrath <roland@redhat.com>
7580 * config.make.in (enable-check-abi): New variable from configure.
7581 * configure.in (enable_check_abi): New substituted variable,
7582 controlled by --{enable,disable}-check-abi (default yes).
7583 * configure: Regenerated.
7584 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
7585 on check-abi dependency.
7587 2003-03-26 Andreas Schwab <schwab@suse.de>
7589 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
7590 * include/atomic.h: Likewise.
7592 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
7594 2003-03-25 Roland McGrath <roland@redhat.com>
7596 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
7597 (__arch_atomic_exchange_64): New macro.
7598 (atomic_exchange): Use them.
7599 (__arch_atomic_exchange_and_add_32): New macro.
7600 (__arch_atomic_exchange_and_add_64): New macro.
7601 (atomic_exchange_and_add): Use them.
7602 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
7604 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
7606 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
7608 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
7610 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
7611 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
7612 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7613 to decide whether to add padding.
7614 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7615 to decide whether to add padding.
7616 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
7617 old_kernel_sigaction): Likewise.
7619 2003-03-25 Ulrich Drepper <drepper@redhat.com>
7621 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
7622 atomic_add_zero were supposed to do.
7623 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
7626 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
7627 This matches the new timer implementation.
7628 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
7630 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
7632 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
7633 timer info for what the kernel provides these days.
7634 (struct sigevent): Add _tid field.
7635 Define SIGEV_THREAD_ID.
7636 Remove struct __pthread_attr_s forward declaration.
7637 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
7638 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7639 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7640 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7642 * Versions.def (librt): Add GLIBC_2.3.3.
7644 * abilist/libpthread.abilist: Update for nptl.
7646 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
7648 * inet/netinet/in.h: Add IPPROTO_SCTP.
7650 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7652 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
7654 2003-03-24 Philip Blundell <philb@gnu.org>
7656 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
7657 Remove a1 from clobber list.
7659 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7661 * timezone/antarctica: Update from tzdata2003a.
7662 * timezone/asia: Likewise.
7663 * timezone/australasia: Likewise.
7664 * timezone/europe: Likewise.
7665 * timezone/iso3166.tab: Likewise.
7666 * timezone/northamerica: Likewise.
7667 * timezone/southamerica: Likewise.
7668 * timezone/zone.tab: Likewise.
7670 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
7672 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
7674 2003-03-23 Ulrich Drepper <drepper@redhat.com>
7676 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
7677 unwanted expansion by definining to ret. Patch by Ian Wienand.
7679 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
7680 the parameter description to denote no error checking. Generate
7681 appropriate pseudo asm code.
7682 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
7683 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
7684 getpgrp, and getppid with 'E'.
7685 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
7686 PSEUDO_END_NOERRNO, and ret_NOERRNO.
7687 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7688 * sysdeps/unix/sysdep.h: Likewise.
7689 * sysdeps/unix/alpha/sysdep.h: Likewise.
7690 * sysdeps/unix/sparc/sysdep.h: Likewise.
7691 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
7692 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
7693 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
7694 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7695 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
7696 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7697 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7698 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7699 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7700 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7701 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7703 2003-03-23 Roland McGrath <roland@redhat.com>
7705 * Makeconfig (+includes): Don't use $(last-includes).
7707 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7709 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
7710 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7712 2003-03-23 Jakub Jelinek <jakub@redhat.com>
7714 * sysdeps/alpha/fpu/libm-test-ulps: Update.
7715 * sysdeps/arm/libm-test-ulps: Update.
7716 * sysdeps/hppa/fpu/libm-test-ulps: Update.
7717 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7718 * sysdeps/mips/fpu/libm-test-ulps: Update.
7719 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7720 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7721 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7722 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
7723 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
7724 * sysdeps/s390/fpu/libm-test-ulps: Update.
7725 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7727 2003-03-22 Roland McGrath <roland@redhat.com>
7729 * include/atomic.h: Put parens around all macro arguments.
7730 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
7731 (atomic_compare_and_exchange_val_acq): Use it.
7732 (atomic_compare_and_exchange_bool_acq): Likewise.
7733 (atomic_increment_and_test): Invert sense of test.
7734 (atomic_decrement_and_test): Likewise.
7735 * csu/tst-atomic.c: Update those tests to match.
7737 2003-03-22 Jakub Jelinek <jakub@redhat.com>
7739 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
7740 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
7741 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
7742 __oldval variable in the macro, since it might be macro argument.
7743 (atomic_decrement_if_positive): Initialize __memp, remove setting
7744 of non-existent variable.
7745 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
7746 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
7747 using atomic_compare_and_exchange_val_acq.
7748 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
7749 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7751 (__arch_compare_and_exchange_bool_8_acq): ... this.
7752 (__arch_compare_and_exchange_val_16_acq): Renamed from...
7753 (__arch_compare_and_exchange_bool_16_acq): ... this.
7754 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
7756 (__arch_compare_and_exchange_bool_32_acq): ... this.
7757 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
7759 (__arch_compare_and_exchange_bool_64_acq): ... this.
7760 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
7761 variables types instead of assuming int.
7762 Change prefix of local variables to __arch.
7763 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
7765 (atomic_compare_and_exchange_val_acq,
7766 atomic_compare_and_exchange_bool_acq): Define.
7768 * csu/tst-atomic.c: New test.
7769 * csu/tst-atomic-long.c: New test.
7770 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
7772 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
7774 * sysdeps/s390/Versions: Add trailing newline.
7776 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
7777 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
7779 2003-03-22 Andreas Schwab <schwab@suse.de>
7781 * sysdeps/m68k/fpu/libm-test-ulps: Update.
7783 * sysdeps/m68k/m68020/bits/atomic.h: New file.
7784 * sysdeps/m68k/m68020/atomicity.h: Removed.
7786 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7788 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
7789 data structures and macros. Protect from multiple inclusion.
7791 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
7794 2003-03-21 Andreas Jaeger <aj@suse.de>
7796 * sysdeps/i386/fpu/libm-test-ulps: Update.
7798 * math/libm-test.inc (tgamma_test): Recompute some constants with
7799 36 digits precision.
7800 (lgamma_test): Likewise.
7801 (ccos_test): Likewise.
7802 (ccosh_test): Likewise.
7803 (clog10_test): Likewise.
7804 (csin_test): Likewise.
7805 (csinh_test): Likewise.
7806 (ctan_test): Likewise.
7807 (ctanh_test): Likewise.
7809 2003-03-19 Jakub Jelinek <jakub@redhat.com>
7811 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
7813 2003-03-21 Roland McGrath <roland@redhat.com>
7815 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
7816 constraint to permit non-constant BIT argument.
7817 (atomic_bit_test_set): Likewise.
7818 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
7819 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
7820 For quadword case, use "i" constraint if __builtin_constant_p and < 32
7821 or "r" constraint otherwise.
7823 * configure.in: Move AC_PROG_CC and other program-finding before all
7825 * configure: Regenerated.
7827 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7829 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
7830 unaligned copying of 8-15 bytes. From Chris Demetriou
7831 <cgd@broadcom.com>. Fix label names.
7832 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
7833 change as to memcpy.S.
7834 * sysdeps/mips/memcpy.S: Formatting changes.
7835 * sysdeps/mips/memset.S: Likewise.
7837 2003-03-21 Roland McGrath <roland@redhat.com>
7839 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
7841 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7843 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
7844 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
7846 2003-03-21 Roland McGrath <roland@redhat.com>
7848 * sysdeps/i386/i486/bits/atomic.h
7849 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
7850 version of the macro to avoid compile-time warnings.
7851 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
7852 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
7853 (atomic_increment, atomic_decrement): Likewise.
7855 2003-03-21 Ulrich Drepper <drepper@redhat.com>
7857 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
7858 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7860 2003-03-21 Roland McGrath <roland@redhat.com>
7862 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
7864 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7866 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
7867 atomic_compare_and_exchange_val_rel,
7868 atomic_compare_and_exchange_bool_acq, and
7869 atomic_compare_and_exchange_bool_rel instead of
7870 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
7871 * sysdeps/i386/i486/bits/atomic.h: Define
7872 __arch_compare_and_exchange_val_*_acq instead of
7873 __arch_compare_and_exchange_*_acq.
7874 * sysdeps/x86_64/bits/atomic.h: Likewise.
7875 * sysdeps/ia64/bits/atomic.h: Define
7876 __arch_compare_and_exchange_bool_*_acq instead of
7877 __arch_compare_and_exchange_*_acq.
7878 * sysdeps/powerpc/bits/atomic.h: Likewise.
7879 * sysdeps/s390/bits/atomic.h: Likewise.
7880 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
7881 * malloc/set-freeres.c: Likewise.
7882 * nscd/cache.c: Likewise.
7883 * stdlib/cxa_finalize.c: Likewise.
7884 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7886 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7888 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
7889 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
7890 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
7892 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
7893 into high and low halves on n64.
7894 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7895 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7896 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7898 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7900 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
7901 correct atomic_compare_and_exchange_acq semantics.
7903 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7905 * sysdeps/mips/ieee754.h: Remove excess #endif.
7907 2003-03-20 Roland McGrath <roland@redhat.com>
7909 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
7910 variable. Remove superfluous memory clobber.
7912 * include/atomic.h: Syntax braino fix.
7914 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
7915 in decimal. Don't bail if niced at start. Just check that nice call
7916 bumps the total at all.
7918 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7920 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
7921 including pc, gp, sp and fp, as long long.
7922 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
7923 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
7924 Add gp argument, and set gp in the jmpbuf to it.
7925 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
7927 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7929 * include/atomic.h: Define atomic_exchange and
7930 atomic_decrement_if_positive if not already defined. Add some
7932 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
7933 * sysdeps/x86_64/bits/atomic.h: Likewise.
7934 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
7935 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
7936 atomic_exchange, atomic_exchange_and_add, and
7937 atomic_decrement_if_positive
7939 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7941 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
7942 with a single instruction.
7944 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
7946 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
7948 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
7949 Word before comparing with gotsym. Take reloc_addr argument as
7950 void*. Remove the code added for the compiler to drop any
7951 alignment assumptions.
7953 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7955 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
7956 * include/atomic.h: New file.
7957 * sysdeps/i386/i486/bits/atomic.h: New file.
7958 * sysdeps/x86_64/bits/atomic.h: New file.
7959 * sysdeps/s390/bits/atomic.h: New file.
7960 * sysdeps/sh/bits/atomic.h: New file.
7961 * sysdeps/ia64/bits/atomic.h: New file.
7962 * sysdeps/powerpc/bits/atomic.h: New file.
7963 * sysdeps/generic/bits/atomic.h: New file.
7964 * sysdeps/i386/i486/atomicity.h: Removed.
7965 * sysdeps/x86_64/atomicity.h: Removed.
7966 * sysdeps/s390/s390-32/atomicity.h: Removed.
7967 * sysdeps/s390/s390-64/atomicity.h: Removed.
7968 * sysdeps/ia64/atomicity.h: Removed.
7969 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
7970 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
7971 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
7972 use of macros from atomicity.h to new names and semantics.
7973 * gmon_mcount.c: Likewise.
7974 * malloc/set-freeres.c: Likewise.
7975 * nscd/cache.c: Likewise.
7976 * stdlib/cxa_finalize.c: Likewise.
7977 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7979 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
7981 * sysdeps/mips/ieee754.h: New file, suitable to replace both
7982 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
7983 mips-specific for now.
7985 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7987 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
7988 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
7989 * stdlib/tst-strtod.c: Add test for the bug.
7991 * posix/tst-nice.c (do_test): Remove invalid of return value.
7992 Don't run test if initial level != 0.
7994 2003-03-19 Amos Waterland <apw@us.ibm.com>
7996 * posix/tst-nice.c: New file.
7997 * posix/Makefile (tests): Add tst-nice.
7999 2003-03-18 Roland McGrath <roland@redhat.com>
8001 * abilist: New directory of libfoo.abilist files maintained using
8002 scripts/merge-abilist.awk and "make update-abi" rules.
8003 * Makefile (distribute): Add abilist/*.abilist.
8004 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
8005 Depend on check-abi.
8007 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
8008 * configure: Regenerated.
8010 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
8012 2003-03-18 Ulrich Drepper <drepper@redhat.com>
8014 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
8017 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
8019 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
8021 2003-03-18 Ulrich Drepper <drepper@redhat.com>
8023 * Versions.def: Add GLIBC_2.3.3 for libpthread.
8025 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8027 * sysdeps/generic/libc-start.c [!SHARED &&
8028 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
8030 2003-03-17 Roland McGrath <roland@redhat.com>
8032 * include/ctype.h: Revert last change.
8034 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8036 * argp/tst-argp1.c: Use test-skeleton.c.
8037 * locale/tst-C-locale.c: Likewise.
8039 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
8041 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
8042 * sysdeps/mips/mips64/n64/Implies: New file.
8043 * sysdeps/mips/mips64/n64/Makefile: New file.
8044 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
8045 * sysdeps/mips/mips64/n32/Implies: New file.
8046 * sysdeps/mips/mips64/n32/Makefile: New file.
8047 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
8048 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
8049 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
8050 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
8051 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
8052 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
8053 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
8054 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
8055 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
8056 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
8057 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
8058 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
8059 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
8060 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
8062 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
8063 lib64 for mips64/n64 and lib32 for mips64/n32.
8064 (ldd_rewrite_script): Needed for all mips64 configurations.
8065 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8066 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
8067 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
8069 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
8072 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
8073 asm/unistd.h into asm-unistd.h.
8074 * sysdeps/unix/sysv/linux/mips/configure: Generated.
8075 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
8077 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
8078 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
8081 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
8082 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
8083 long type for registers on n32.
8085 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
8087 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
8088 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
8089 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
8090 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
8091 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
8092 * sysdeps/unix/mips/brk.S: Likewise.
8093 * sysdeps/unix/mips/sysdep.S: Likewise.
8094 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8095 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
8096 * sysdeps/mips/sys/ucontext.h: Likewise.
8097 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
8098 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
8099 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
8100 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8101 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
8102 * sysdeps/mips/mips64/setjmp.S: Likewise.
8103 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
8104 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
8107 2003-03-16 Ulrich Drepper <drepper@redhat.com>
8109 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
8110 not at function level.
8111 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
8113 2003-03-15 Roland McGrath <roland@redhat.com>
8115 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
8116 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
8117 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
8118 * nis/nis_table.c (__create_ib_request): Likewise.
8120 * posix/fnmatch_loop.c: Add casts for signedness.
8121 * nss/nss_files/files-hosts.c: Likewise.
8122 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8123 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
8124 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
8126 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
8127 get errors into the log file.
8128 (libc_cv_broken_visibility_attribute): Likewise.
8129 (libc_cv_broken_alias_attribute): Likewise.
8130 (libc_cv_asm_weak_directive): Likewise.
8131 (libc_cv_need_minus_P): Likewise.
8132 (libc_cv_dot_text): Likewise.
8133 (libc_cv_asm_global_directive): Likewise.
8134 (libc_cv_asm_type_prefix): Likewise.
8135 * configure: Regenerated.
8137 * nscd/cache.c (cache_search): Give first arg type `request_type'.
8138 * nscd/nscd.h: Update decl.
8140 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
8141 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8142 * elf/dl-close.c (_dl_close): Likewise.
8143 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
8144 * io/fts.c (fts_build): Likewise.
8145 * elf/cache.c (add_to_cache): Likewise.
8146 * locale/programs/locarchive.c (show_archive_content): Likewise.
8148 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
8150 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
8152 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
8154 2003-03-15 Ulrich Drepper <drepper@redhat.com>
8156 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
8157 code for most parts.
8159 2003-03-15 Roland McGrath <roland@redhat.com>
8161 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
8162 * sysdeps/unix/sysv/linux/system.c: ... here.
8163 (FORK): Don't #define if already #define'd.
8164 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
8165 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
8166 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
8168 * dlfcn/tst-dlinfo.c: New file.
8169 * dlfcn/Makefile (tests): Add tst-dlinfo.
8170 ($(objpfx)tst-dlinfo): New target.
8172 * dlfcn/dlinfo.c: New file.
8173 * dlfcn/Makefile (libdl-routines): Add it.
8174 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
8175 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
8176 [__USE_GNU] (RTLD_DI_*): New enum constants.
8177 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
8178 * elf/dl-load.c (cache_rpath): New inline function.
8179 (_dl_map_object): Use it.
8180 (_dl_rtld_di_serinfo): New function.
8181 * sysdeps/generic/ldsodefs.h: Declare it.
8182 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8184 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
8185 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
8186 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
8187 (__libc_start_main): Just call the generic one for most of the work.
8189 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
8190 static function by that name instead of BP_SYM (__libc_start_main).
8191 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
8192 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
8193 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
8195 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
8196 Use this macro for extra AT_* cases.
8197 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
8198 New macro, guts from ...
8199 (__aux_init_cache): ... here, function removed.
8200 (DL_PLATFORM_INIT): Don't define this.
8202 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
8203 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
8205 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
8207 2003-03-14 Roland McGrath <roland@redhat.com>
8209 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
8211 2003-03-14 Jakub Jelinek <jakub@redhat.com>
8213 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
8215 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8216 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
8218 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8220 * sysdeps/mips/fpu/bits/mathdef.h: New.
8221 (__NO_LONG_DOUBLE_MATH): Define for o32.
8223 * sysdeps/mips/sys/asm.h: Formatting changes.
8224 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
8225 (CPADD): Define for all of them.
8226 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
8227 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
8228 NARGSAVE): Define per ABI spec.
8229 (END): Don't redefine.
8230 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
8231 LONG_SRAV): Remove duplicate definitions.
8232 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
8233 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
8234 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
8235 (PTR_LA): Define for all 3 ABIs.
8237 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
8238 (elf_machine_matches_host): Prevent linking of o32 and n32
8240 (elf_machine_dynamic): Document assumption on $gp.
8241 (STRINGXP, STRINGXV, STRINGV_): New macros.
8242 (elf_machine_load_address): Use them to stringize PTR_LA and
8244 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
8245 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
8246 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
8247 (__dl_runtime_resolve): Cast the symtab initializer to the
8249 (RTLD_START): Use it. Adjust it for all 3 ABIs.
8250 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
8251 Handle 64-bit R_MIPS_REL composite relocation and accept
8252 R_MIPS_64 relocations to shift addend size to 64 bits.
8253 Document assumption regarding local GOT entries. Document
8254 backward-compatibility departing from the ABI behavior in
8255 applying relocations that reference section symbols, no longer
8256 used. Support relocations to mis-aligned offsets.
8257 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
8259 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
8261 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
8262 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
8263 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
8264 restore_rt functions. Use them.
8266 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
8267 .set mips2 on new abis.
8269 2003-03-13 Ulrich Drepper <drepper@redhat.com>
8271 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
8272 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
8273 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
8274 * sysdeps/posix/pathconf.c: Likewise.
8275 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8276 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
8277 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
8279 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
8282 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8284 * include/gmp.h: Include/gmp-mparam.h.
8285 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
8288 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
8289 ELF_MACHINE_NO_RELA is set.
8290 * elf/rtld.c (dl_main): No prelink support for REL-only.
8292 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
8293 FLAG_MIPS64_LIBN64): Define.
8294 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
8296 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
8297 * sysdeps/mips/memset.S: Likewise.
8298 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
8299 depending on the ABI.
8301 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
8302 Don't .set mips2 on new abi.
8303 (compare_and_swap): Likewise. Support 64-bit longs on n64.
8305 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
8307 2003-03-13 Roland McGrath <roland@redhat.com>
8309 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
8310 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
8312 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
8314 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
8316 * stdlib/fpioconst.c: Likewise.
8317 * stdlib/strtod.c: Likewise.
8319 * sysdeps/mips/add_n.S: Use L macro for local labels.
8320 * sysdeps/mips/addmul_1.S: Likewise.
8321 * sysdeps/mips/lshift.S: Likewise.
8322 * sysdeps/mips/memcpy.S: Likewise.
8323 * sysdeps/mips/memset.S: Likewise.
8324 * sysdeps/mips/mul_1.S: Likewise.
8325 * sysdeps/mips/rshift.S: Likewise.
8326 * sysdeps/mips/sub_n.S: Likewise.
8327 * sysdeps/mips/submul_1.S: Likewise.
8328 * sysdeps/mips/mips64/add_n.S: Likewise.
8329 * sysdeps/mips/mips64/addmul_1.S: Likewise.
8330 * sysdeps/mips/mips64/lshift.S: Likewise.
8331 * sysdeps/mips/mips64/mul_1.S: Likewise.
8332 * sysdeps/mips/mips64/rshift.S: Likewise.
8333 * sysdeps/mips/mips64/sub_n.S: Likewise.
8334 * sysdeps/mips/mips64/submul_1.S: Likewise.
8335 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
8336 conventions. Define END as in sys/asm.h.
8337 * sysdeps/unix/mips/sysdep.S: Likewise.
8338 * sysdeps/unix/mips/wait.S: Likewise.
8339 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8341 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
8342 Cast shifted values that may be too narrow to mp_limb_t.
8343 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
8345 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
8347 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
8348 (__mpn_extract_long_double): Likewise.
8349 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
8350 (__mpn_construct_long_double): Likewise.
8351 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
8352 (__mpn_extract_long_double): Likewise.
8353 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
8354 (__mpn_construct_long_double): Likewise.
8356 2003-03-13 Roland McGrath <roland@redhat.com>
8358 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
8359 entries in the map file match too.
8361 2003-03-13 Guido Guenther <agx@sigxcpu.org>
8363 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
8364 label .Lthread_start since current binutils don't allow branches
8365 to globally visible symbols.
8367 2003-03-13 Jakub Jelinek <jakub@redhat.com>
8369 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
8370 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
8371 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
8372 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
8373 clobbered by the syscall.
8374 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
8375 ASM_ARGS_6): Change constraints from r to index of corresponding
8377 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
8378 ptid and ctid to match kernel.
8379 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
8381 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
8383 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
8384 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
8385 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
8387 2003-03-11 Roland McGrath <roland@redhat.com>
8389 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8390 Check SYM_MAP rather than SYM as definedness check.
8391 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
8392 Don't handle R_PPC64_REL24 reloc.
8393 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8395 * sysdeps/powerpc/powerpc64/dl-machine.h
8396 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
8397 block, so we cover all the TPREL16* flavors without 6 ||s.
8398 [USE_TLS] (elf_machine_tprel): New function.
8399 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
8400 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
8401 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8403 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
8405 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
8406 instead of jalr to invoke subroutine so restoring the $gp register
8409 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
8411 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
8412 to __NR_pread if not defined.
8413 (__NR_pwrite64): Define to __NR_pwrite if not defined.
8415 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8417 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
8418 * sysdeps/unix/sysv/linux/kernel-features.h
8419 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
8422 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8424 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
8425 allocate space even for the trailing '/'.
8426 Reported by John Reiser <jreiser@BitWagon.com>.
8428 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
8429 ASM_CLOBBERS_6): Define.
8430 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
8431 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
8432 to match IA-32 order.
8433 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
8435 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
8437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
8438 Copy extra params for NPTL to registers used in clone syscall.
8440 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8442 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
8443 call names for pread and pwrite.
8445 2003-03-10 Roland McGrath <roland@redhat.com>
8447 * dlfcn/Makefile (libdl-routines): Add dladdr1.
8448 * dlfcn/dladdr1.c: New file.
8449 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
8450 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
8451 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
8452 a const ElfNN_Sym ** to fill in.
8453 * include/dlfcn.h: Update decl. Include <link.h>.
8454 * dlfcn/dladdr.c (dladdr): Update caller.
8455 * malloc/mtrace.c (tr_where): Likewise.
8456 * sysdeps/generic/elf/backtracesyms.c: Likewise.
8457 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8458 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
8459 * Versions.def (libdl): Define GLIBC_2.3.3 set.
8461 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
8463 * sysdeps/unix/Makefile (compile-syscall): New variable.
8464 Pass -g0 to compiler for assembling syscall stubs from stdin.
8466 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
8467 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
8468 Define these to do nothing.
8470 * configure.in: New check for -g on .S files.
8471 * configure: Regenerated.
8472 * config.make.in (have-cpp-asm-debuginfo): New variable.
8473 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
8474 * Makeconfig (ASFLAGS): New variable, if undefined and
8475 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
8476 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
8478 2003-03-09 Roland McGrath <roland@redhat.com>
8480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
8481 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
8483 2003-03-09 Ulrich Drepper <drepper@redhat.com>
8485 * po/fi.po: Update from translation team.
8486 * po/ca.po: Likewise.
8487 * po/da.po: Likewise.
8489 2003-03-08 Ulrich Drepper <drepper@redhat.com>
8491 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
8493 2003-03-07 Ulrich Drepper <drepper@redhat.com>
8495 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
8497 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
8499 2003-03-07 Roland McGrath <roland@redhat.com>
8501 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
8502 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
8504 2003-03-04 Guido Guenther <agx@sigxcpu.org>
8506 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
8507 stubs, we have INLINE_SYSCALL.
8508 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
8511 2003-03-06 Roland McGrath <roland@redhat.com>
8513 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
8514 permanent extent and add a comment about testing its implicit teardown.
8516 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
8518 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
8520 2003-03-05 Ulrich Drepper <drepper@redhat.com>
8522 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
8523 reversed __builtin_expect expectation.
8525 2003-03-05 Roland McGrath <roland@redhat.com>
8527 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
8528 * libio/swscanf.c: Likewise.
8529 * libio/swprintf.c: Likewise.
8531 2003-03-04 Roland McGrath <roland@redhat.com>
8533 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
8534 (elf_machine_rela): Always use RESOLVE_MAP, needed for
8535 R_PPC64_JMP_SLOT as well as TLS cases.
8536 (BIT_INSERT): Move parenthesis where it ought to have been.
8537 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8539 * posix/confstr.c (confstr): Correct STRING_LEN values for
8540 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
8541 break. Reported by Alexandre Julliard <julliard@winehq.com>.
8543 2003-03-04 Jakub Jelinek <jakub@redhat.com>
8545 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
8547 2003-03-04 Ulrich Drepper <drepper@redhat.com>
8549 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
8552 * po/sv.po: Update from translation team.
8554 2003-03-04 Andreas Jaeger <aj@suse.de>
8555 Ulrich Drepper <drepper@redhat.com>
8557 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
8559 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8561 * sysdeps/generic/dl-sysdep.h: Add double include protection.
8563 * po/tr.po: Update from translation team.
8565 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
8566 are holes between the segments. Only call mprotect to set
8567 proection to PROT_NONE if there are some.
8569 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
8572 * include/sched.h (__clone2): Use ... instead of adding all the
8575 2003-03-03 Roland McGrath <roland@redhat.com>
8577 * elf/dl-load.c (struct filebuf): Fix typo in last change.
8579 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
8580 PI_STATIC_AND_HIDDEN.
8582 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
8584 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
8586 * include/sched.h: Update clone2 prototype.
8588 2003-03-03 Andreas Jaeger <aj@suse.de>
8590 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
8591 (llrint): Use it to correct return type.
8594 (llround): Likewise.
8596 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8598 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
8601 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
8602 if ccs parameter isn't valid. Reported by Andreas Schwab.
8604 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8606 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
8607 for system call numbers > 255.
8608 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
8609 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8610 INTERNAL_SYSCALL): Likewise.
8611 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
8612 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
8613 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8614 INTERNAL_SYSCALL): Likewise.
8616 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8618 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
8619 array if it is the initial dtv.
8621 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8623 * po/es.po: Update from translation team.
8624 * po/fr.po: Likewise.
8625 * po/gl.po: Likewise.
8626 * po/sk.po: Likewise.
8627 * po/sv.po: Likewise.
8629 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
8630 * misc/sys/mman.h: Add prototype for remap_file_pages.
8631 * sysdeps/generic/remap_file_pages.c: New file.
8632 * misc/Makefile (routines): Add remap_file_pages.
8633 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
8635 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
8637 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8638 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
8639 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8640 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8641 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
8642 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
8643 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8644 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8646 2003-03-03 Roland McGrath <roland@redhat.com>
8648 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
8649 * sysdeps/ia64/dl-machine.h: Likewise.
8650 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
8652 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
8654 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
8655 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
8656 * locale/Versions (libc: GLIBC_2.3): Move those to ...
8657 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
8658 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
8659 * Versions.def (libc): Add GLIBC_2.3.3 set.
8661 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
8662 * sysdeps/ia64/dl-machine.h: Update decl.
8664 2003-03-03 Andreas Jaeger <aj@suse.de>
8666 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
8668 2003-03-02 Roland McGrath <roland@redhat.com>
8670 * scripts/abilist.awk: Reject data items with apparent 0 size.
8672 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
8673 after foo.* as if it were a duplicate.
8675 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
8677 2003-03-02 Ulrich Drepper <drepper@redhat.com>
8679 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
8681 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
8682 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
8683 if not already defined. Use SYSDEP_GETRES to allow other files to
8684 provide alternative implementations.
8685 * sysdeps/unix/sysv/linux/clock_getres.c: New file
8686 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
8687 if not already defined. Use SYSDEP_GETTIME to allow other files to
8688 provide alternative implementations.
8689 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
8690 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
8691 if not already defined. Use SYSDEP_GETTIME to allow other files to
8692 provide alternative implementations.
8693 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
8694 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
8695 other files to provide alternative implementations. Rearrange
8696 tests for invalid parameters.
8697 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
8698 * sysdeps/unix/sysv/linux/sysconf.c: New file.
8699 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8700 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
8701 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8702 _POSIX_MONOTONIC_CLOCK.
8704 2003-03-02 Roland McGrath <roland@redhat.com>
8706 * scripts/merge-abilist.awk: More checks for bogus input.
8707 Uniquify duplicate config names.
8709 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
8711 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
8712 from dl_reloc_overflow, make global.
8713 (__process_machine_rela): Update callers.
8714 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
8715 Add attribute_hidden to __process_machine_rela decl.
8716 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
8718 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
8721 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
8722 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
8723 (elf_machine_rela): Clean up.
8725 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
8727 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
8728 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
8729 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
8730 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
8731 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
8732 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
8735 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
8736 macros out of [SHARED].
8737 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
8739 * elf/elf.h: Define R_PPC_* relocs for TLS support.
8740 Clean up R_PPC64_* macro definition comments.
8742 * configure.in: In "running configure fragment for" message,
8743 omit $srcdir from the name if we prepended it.
8744 * configure: Regenerated.
8746 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
8747 From Jakub Jelinek <jakub@redhat.com>.
8749 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
8750 which duplicated the O_DIRECT defn.
8752 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8754 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
8757 2003-03-01 Andreas Schwab <schwab@suse.de>
8759 * resolv/Makefile (tests): Don't depend on
8760 $(objpfx)mtrace-tst-leaks when cross compiling.
8762 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
8763 __libc_stack_end through GOT since it is a global symbol.
8765 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8767 * argp/argp.h: Fix a typo.
8768 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
8770 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
8772 2003-02-27 Pat Rankin <rankin@pactechdata.com>
8774 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
8776 (get_subexp): Likewise.
8778 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8780 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
8782 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8784 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
8786 2003-02-27 Roland McGrath <roland@redhat.com>
8788 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
8789 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
8790 repeat it and avoids the test for the common case.
8791 Clean up and fix calculations for TLS relocs.
8793 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
8794 * sysdeps/powerpc/dl-tls.h: ... here.
8795 (TLS_TP_OFFSET): New macro.
8797 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
8799 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8801 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
8802 code generation changes in recent gcc.
8804 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8806 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
8807 Rename argument to avoid symbol conflict.
8809 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
8810 [__USE_GNU] (O_DIRECT): New macro.
8812 2003-02-24 David Mosberger <davidm@hpl.hp.com>
8814 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
8817 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8819 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
8820 initializer anymore now that res_thread_freeres is more careful.
8822 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
8823 except the PKTINFO. Reset interface in PKTINFO.
8824 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
8826 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
8828 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
8829 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
8831 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
8832 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
8833 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
8834 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
8836 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
8837 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
8839 2003-02-25 Andreas Jaeger <aj@suse.de>
8841 * manual/memory.texi (Malloc Tunable Parameters): Clarify
8842 behaviour of M_MMAP_THRESHOLD.
8844 2003-02-25 Roland McGrath <roland@redhat.com>
8846 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
8847 zero, inidicating _res was not initialized yet.
8849 2003-02-24 Ulrich Drepper <drepper@redhat.com>
8851 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
8854 2003-02-24 Roland McGrath <roland@redhat.com>
8856 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
8858 2003-02-23 Roland McGrath <roland@redhat.com>
8860 * sysdeps/posix/pause.c: New file.
8861 * sysdeps/unix/common/pause.c: File removed.
8863 2003-02-23 Ulrich Drepper <drepper@redhat.com>
8865 * sysdeps/generic/bits/confname.h: Remove #ifs.
8867 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
8868 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
8870 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
8873 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8875 * sysdeps/generic/dl-sysdep.c: Avoid warning.
8877 2003-02-22 Roland McGrath <roland@redhat.com>
8879 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
8880 * resolv/Makefile (tests): Add tst-leaks.
8881 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
8882 (tst-leaks-ENV): New variable.
8883 ($(objpfx)mtrace-tst-leaks): New target.
8884 (tests): Depend on it.
8886 * include/libc-internal.h: Declare __libc_thread_freeres.
8888 * Makerules: Fix last change to use $($(subdir)-version) when set.
8890 * Makerules (install-lib-nosubdir): Depend on installed
8891 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
8892 regardless of the libfoo.so target's dependencies.
8894 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
8895 Use that in $(MAKE) calls.
8897 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8899 * catgets/gencat.c (read_input_file): Collision between
8900 auto-assigned numbers and user-defined nubmers is not fatal.
8902 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
8903 * catgets/Makefile: Add rules to run test2.msg test.
8904 * catgets/test2.msg: New file.
8906 * catgets/gencat.c (main): Return 1 if messages have been printed.
8908 * iconv/iconv_prog.c (main): Unify messages.
8910 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
8911 when shifting retval.
8912 * stdlib/tst-strtod.c (main): Add strtold test case.
8913 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8915 2003-02-21 Roland McGrath <roland@redhat.com>
8917 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
8918 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
8919 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
8921 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
8922 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
8923 (res_thread_freeres): New function, on __libc_thread_subfreeres and
8926 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
8927 * malloc/thread-freeres.c: New file.
8928 * malloc/Makefile (aux): Add it.
8929 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
8930 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
8931 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
8933 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
8934 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
8936 2003-02-21 Roland McGrath <roland@frob.com>
8938 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
8940 * iconvdata/Makefile (tests): Add bug-iconv3 only if
8941 [$(have-thread-library) = yes].
8943 2003-02-21 Ulrich Drepper <drepper@redhat.com>
8945 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
8947 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
8948 not chechk for errors (unless testing for 32bit variant).
8949 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
8950 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
8951 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
8953 2003-02-21 Jakub Jelinek <jakub@redhat.com>
8955 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
8956 Check for signed overflow, not unsigned.
8958 * sysdeps/sparc/sparc64/elf/configure.in: New file.
8959 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
8960 Use -fcall-used-g6, not -fcall-used-g7.
8962 2003-02-21 Andreas Jaeger <aj@suse.de>
8964 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
8967 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
8968 clear whole mxcsr but only exceptions.
8970 2003-02-21 Roland McGrath <roland@redhat.com>
8972 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
8973 for libfoo.so that need $(make-link) rules.
8975 2003-02-21 Roland McGrath <roland@frob.com>
8977 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
8978 to match existing struct stat layout in mig protocols.
8980 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8982 * version.h (VERSION): Bump to 2.3.2.
8984 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
8985 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
8987 * sysdeps/generic/Dist: Add sysdep-cancel.h.
8988 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
8989 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
8990 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
8991 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
8992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
8994 * Makefile (distribute): Add include/stubs-prologue.h,
8995 include/gnu/stubs.h, scripts/merge-abilist.awk, and
8996 scripts/extract-abilist.awk.
8998 2003-02-20 Roland McGrath <roland@redhat.com>
9000 * math/Makefile (distribute): Don't add generated files.
9002 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9004 * math/Makefile: Rearrange variable definitions slightly to get
9005 definition in the right order.
9007 2003-02-20 Roland McGrath <roland@redhat.com>
9009 * Makerules: Clean up conditional around include of tls.make.
9010 * Make-dist: Export generating=t to prevent using that.
9011 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
9013 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9015 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
9016 around in search if port IPPORT_RESERVED/2 has been test.
9018 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
9020 * posix/regcomp.c: Remove inclusions.
9021 * posix/regexec.c: Likewise.
9022 * posix/regex_internal.c: Likewise.
9023 * posix/regex_internal.h: Add inclusions here.
9024 * posix/regex.c: Only include sys/types.h before regex.h. Include
9025 regex_internal.h here. Include regex_internal.c before regcomp.c
9026 and regexec.c (might expose more opportunities to the C compiler).
9028 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
9030 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
9031 [!_LIBC] (__wcrtomb): New definition.
9032 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
9033 HAVE_LOCALE_H as well.
9035 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9037 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
9038 patch to check for system call errors.
9040 2002-07-24 Philip Blundell <philb@gnu.org>
9042 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
9045 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9047 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
9048 * sysdeps/unix/sysv/linux/kernel-features.h
9049 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
9050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
9052 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
9053 interprocedure branches.
9054 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
9055 * sysdeps/powerpc/nofpu/Dist: ...here.
9056 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
9057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
9058 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
9059 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
9060 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
9062 2003-02-18 Alan Modra <amodra@bigpond.net.au>
9064 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
9066 2003-02-20 Philip Blundell <philb@gnu.org>
9068 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
9069 missing arguments to INTERNAL_SYSCALL_ERROR_P and
9070 INTERNAL_SYSCALL_ERRNO.
9072 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9074 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
9075 for __ASSUME_32BITUIDS.
9077 2003-02-20 Andreas Schwab <schwab@suse.de>
9079 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
9080 POSIX_MADV_* constants.
9082 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9084 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
9085 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
9086 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
9087 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
9089 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
9091 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
9093 2003-02-16 Roland McGrath <roland@redhat.com>
9095 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
9097 2003-02-19 Ulrich Drepper <drepper@redhat.com>
9099 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
9100 decimal input digits.
9101 * stdlib/tst-strtod.c (main): Add test for strtof bug.
9103 2003-02-18 Ulrich Drepper <drepper@redhat.com>
9105 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
9106 invalid file descriptors and missing access permissions.
9108 2003-02-17 Ulrich Drepper <drepper@redhat.com>
9110 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
9113 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
9114 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
9115 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
9118 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
9119 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9121 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
9122 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
9123 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
9124 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
9125 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
9127 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9129 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
9130 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
9131 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
9132 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
9133 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
9134 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
9136 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
9137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
9138 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
9139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
9141 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
9142 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
9143 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
9144 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
9146 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
9148 * nss/getent.c (print_hosts): Print all IP addresses of one host.
9150 2003-02-15 Roland McGrath <roland@frob.com>
9152 * sysdeps/mach/hurd/tls.h: New file.
9153 * sysdeps/mach/hurd/i386/tls.h: New file.
9155 * mach/errsystems.awk: Include <errno.h> in generated output.
9157 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
9158 use target mach-before-compile instead of generated.
9159 (mach-before-compile): New target.
9160 * Makerules: Disable use of tls.make if $(generating) is set.
9161 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
9162 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
9163 mach-shortcuts.h so mach/ generation happens before hurd/.
9165 2003-02-14 Ulrich Drepper <drepper@redhat.com>
9167 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
9168 of demorm correctly if low word is zero.
9169 Reported by Fred J. Tydeman <tydeman@tybor.com>.
9170 * math/libm-test.inc (nextafter_test): New test, but disabled due
9173 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
9174 counter and only call __exit_thread if this is not the last thread.
9176 2003-02-13 Jakub Jelinek <jakub@redhat.com>
9178 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
9179 subtracting map->l_tls_offset.
9181 2003-02-12 Ulrich Drepper <drepper@redhat.com>
9183 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
9184 _CS_GNU_LIBPTHREAD_VERSION.
9185 * posix/conststr.c: Handle these new values.
9186 * posix/getconf.c: Likewise.
9188 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
9189 masking of version index.
9190 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9192 2003-02-11 Ulrich Drepper <drepper@redhat.com>
9194 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
9195 correctly. Reported by Thorsten Kukuk.
9197 2003-02-10 Ulrich Drepper <drepper@redhat.com>
9199 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
9200 _BSD_SOURCE to compiler.
9201 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
9202 Patches by Alan Modra.
9204 2003-02-08 Ulrich Drepper <drepper@redhat.com>
9206 * io/ftwtest.c: Get current working directory before and after the
9207 nftw call and make sure they match.
9209 2003-02-08 Jim Meyering <jim@meyering.net>
9211 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
9212 the current directory, not just when DIR contains a slash.
9213 Reported by Manoj Srivastava.
9215 2003-02-07 Jim Meyering <jim@meyering.net>
9217 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
9218 Include autoconf-recommended block of dirent/NAMELEN-related
9219 definitions and includes. Use NAMELEN throughout, rather than
9221 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
9222 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
9223 (stpcpy): Declare, if necessary.
9224 (mempcpy): Define, if necessary.
9225 [!_LIBC] (__stpcpy, __mempcpy): Define.
9226 [!_LIBC] (LXSTAT, XSTAT): Define.
9227 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
9228 (find_object): Don't use c99-style struct initializer.
9229 Tweak wording in a couple comments.
9231 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9233 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
9235 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
9236 after the trapa instruction.
9237 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
9239 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
9240 (NEED_SYSCALL_INST_PAD): Define.
9241 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
9242 avoid to use definition for the kernel.
9243 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9244 Save and restore the frame pointer.
9245 (SYSCALL_INST_PAD): Define.
9246 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9247 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
9248 after trapa instruction.
9249 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9250 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9252 2003-02-07 Jakub Jelinek <jakub@redhat.com>
9254 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
9255 so that it can have aliases.
9256 * inet/herrno.c (h_errno): Put it into .bss not .data section.
9258 2003-02-07 Ulrich Drepper <drepper@redhat.com>
9260 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
9261 (profile_fixup): Likewise.
9262 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9264 2002-11-24 Robert Love <rml@tech9.net>
9266 * posix/sched.h: Second parameter of sched_setaffinity and
9267 sched_getaffinity is `unsigned int', not `unsigned long'.
9268 * sysdeps/generic/sched_setaffinity.c: Likewise.
9269 * sysdeps/generic/sched_getaffinity.c: Likewise.
9271 2003-02-05 Ulrich Drepper <drepper@redhat.com>
9273 * debug/catchsegv.sh: Fix typo in error messsage.
9274 Reported by John Levon <levon@movementarian.org>.
9276 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
9277 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
9278 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
9279 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9281 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9282 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9284 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
9285 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
9287 2003-02-05 Jim Meyering <jim@meyering.net>
9289 Fix a heap-corrupting bug.
9290 * io/ftw.c: Include <limits.h>.
9291 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
9292 (process_entry): Allocate enough space to hold the resulting
9293 file name. Don't presume that 2*dirbufsize is enough.
9294 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
9295 it is guaranteed to be defined.
9297 2003-02-04 Ulrich Drepper <drepper@redhat.com>
9299 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
9300 * iconvdata/bug-iconv3.c: New file.
9302 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
9304 * sysdeps/unix/sysv/linux/s390/system.c: New file.
9306 2003-02-03 Jakub Jelinek <jakub@redhat.com>
9308 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
9310 * config.h.in (BROKEN_SPARC_WDISP22): Add.
9312 2003-02-03 Ulrich Drepper <drepper@redhat.com>
9314 * sysdeps/i386/i686/memmove.S: New file.
9316 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
9319 Include kernel-features.h
9320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
9321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
9322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
9323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
9325 2003-02-02 Jakub Jelinek <jakub@redhat.com>
9327 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
9329 2003-01-25 Jim Meyering <jim@meyering.net>
9331 * io/ftw.c (object_compare): Compare inode numbers before device
9332 numbers, since the former are much more likely to differ.
9334 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9336 * time/tzfile.c (__tzfile_compute): Change return value type to
9337 void. Adjust return statements.
9338 * include/time.h (__tzfile_compute): Adjust prototype.
9340 2003-02-01 Jim Meyering <jim@meyering.net>
9342 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
9345 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9348 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
9350 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9353 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
9354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9355 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9357 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9359 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9361 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9363 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
9364 back to 2.4.19 for powerpc64.
9365 * sysdeps/unix/sysv/linux/kernel-features.h
9366 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
9367 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
9369 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9371 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
9372 platforms with strange alignment requirements on wchar_t.
9374 2003-01-31 Andreas Schwab <schwab@suse.de>
9376 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
9377 aliases, already added by make-syscalls.sh.
9378 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9379 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9380 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9381 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9382 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9383 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9384 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9385 * sysdeps/unix/inet/syscalls.list: Likewise.
9386 * sysdeps/unix/syscalls.list: Likewise.
9388 2003-01-31 Andreas Schwab <schwab@suse.de>
9390 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
9393 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9395 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
9396 not l to load tls from stack.
9398 2003-01-30 Roland McGrath <roland@redhat.com>
9400 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
9401 null argument before all else.
9402 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9404 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9406 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
9407 Move to RESOLVE protected part of the header.
9408 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
9411 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9413 * stdio-common/Makefile (tests): Add bug15.
9414 (bug15-ENV): Define.
9415 * stdio-common/bug15.c: New file.
9417 2002-10-07 Wolfram Gloger <wg@malloc.de>
9419 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
9420 to foreign sbrk()'s if arena is contiguous. Bug report from
9421 Bruno Haible <bruno@clisp.org>.
9423 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9425 * sysdeps/s390/libc-tls.c: Include stdlib.h.
9427 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9429 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
9432 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9434 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
9436 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
9438 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9440 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9442 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
9443 (allocate_static_tls): ...here. Add __attribute_noinline__.
9444 Don't return on failure.
9445 (_dl_reloc_bad_type): Add __attribute_noinline__.
9446 * elf/do-rel.h (elf_dynamic_do_rel): Add
9447 __attribute__((always_inline)).
9448 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
9449 elf_machine_rel_relative, elf_machine_rela_relative,
9450 elf_machine_lazy_rel): Add prototypes with
9451 __attribute__((always_inline)).
9453 2003-01-29 David Mosberger <davidm@hpl.hp.com>
9455 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
9457 2003-01-29 Roland McGrath <roland@redhat.com>
9459 * configure.in: Barf if configured in $srcdir.
9461 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
9463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9464 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
9466 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
9468 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
9469 clone parameters to match the order used on ia32.
9470 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9472 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
9474 * elf/elf.h: Add new s390 relocs.
9475 * elf/tls-macros.h: Add s390 versions.
9476 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
9477 * sysdeps/s390/dl-tls.h: New file.
9478 * sysdeps/s390/libc-tls.c: New file.
9479 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
9480 relocs for class PLT.
9481 (elf_machine_rela): Handle TLS relocs.
9482 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9483 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
9484 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9485 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
9486 CLONE_CHILD_*TID flags.
9487 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9488 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
9490 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9491 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9492 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
9493 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
9494 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
9496 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9497 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
9498 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9500 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
9501 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
9502 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
9503 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9506 2003-01-28 Ulrich Drepper <drepper@redhat.com>
9508 * sysdeps/unix/common/pause.c (do_pause): New function. Split
9509 from __libc_pause. Implement using sigsuspend.
9510 (__libc_pause): Call do_pause to do the real work.
9512 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
9513 sig_or_mask parameter is is_sig != 0.
9515 2003-01-21 Philip Blundell <philb@gnu.org>
9517 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
9519 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
9521 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
9523 2003-01-27 Ulrich Drepper <drepper@redhat.com>
9525 * stdio-common/bug14.c: Use official name for the locale.
9527 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
9528 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
9529 instead of __libc_cleanup_region_end.
9531 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
9532 as first parameter to __libc_cleanup_region_start.
9534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9535 (__fe_nomask_env): Use __prctl not prctl.
9536 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
9539 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
9541 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
9543 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
9544 wrap-around in test.
9546 2003-01-26 Andreas Schwab <schwab@suse.de>
9548 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
9549 compatibility symbols. Remove INTDEF for __divdi3.
9550 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
9551 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
9552 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
9554 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
9556 2003-01-24 Jakub Jelinek <jakub@redhat.com>
9558 * elf/tls-macros.h: Add SPARC 32-bit definitions.
9559 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
9560 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
9561 for the first half of the header. Include tls.h.
9562 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
9564 (elf_machine_rela): Handle TLS relocs.
9565 * sysdeps/sparc/dl-tls.h: New file.
9567 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
9570 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
9571 * sysdeps/sparc/sparc32/memchr.S: Likewise.
9572 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
9573 * sysdeps/sparc/sparc32/strcat.S: Likewise.
9574 * sysdeps/sparc/sparc32/strchr.S: Likewise.
9575 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
9576 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
9577 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
9578 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9579 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9580 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
9581 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
9582 * sysdeps/sparc/sparc64/strcat.S: Likewise.
9583 * sysdeps/sparc/sparc64/strchr.S: Likewise.
9584 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
9585 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
9586 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
9587 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
9588 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9589 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9591 2003-01-24 Andreas Schwab <schwab@suse.de>
9593 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
9594 elements, and process them backwards.
9595 * elf/Makefile ($(objpfx)tst-array4): New target.
9596 ($(objpfx)tst-array4.out): Likewise.
9597 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
9598 * elf/tst-array4.c: New file.
9599 * elf/tst-array4.exp: Likewise.
9601 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
9603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
9605 2003-01-27 Guido Guenther <agx@sigxcpu.org>
9607 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
9608 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
9609 cancellation handling and handle both __NR_pread64 and __NR_pread.
9610 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9611 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
9612 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
9613 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9614 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
9615 case, use register names consistently.
9617 2003-01-27 Wolfram Gloger <wg@malloc.de>
9619 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
9620 pointer, not of the computed chunk. Bug report from Carlos
9621 O'Donell <carlos@baldric.uwo.ca>.
9623 2003-01-25 Andreas Schwab <schwab@suse.de>
9625 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
9626 addressing to save GOT entries.
9628 2003-01-21 Jakub Jelinek <jakub@redhat.com>
9630 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
9631 inline_syscall1, inline_syscall2, inline_syscall3,
9632 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
9633 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
9634 __attribute__((unused)) to ChEcK.
9636 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9638 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
9639 Fix inline assembler constraints.
9640 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
9643 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
9646 2003-01-20 Segher Boessenkool <segher@koffie.nl>
9648 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
9649 compute the cosine, not the sine, even if x > 0.8.
9651 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9653 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
9654 _nss_nis_setspent. Work around the different prototypes.
9655 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
9656 internal_nis_endrpcent.
9657 (internal_nis_endrpcent): Change return type to void. Change callers.
9658 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
9659 _nss_nis_setpwent. Work around the different prototypes.
9660 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
9661 of the function to...
9662 (internal_nis_endprotoent): ... here. New function.
9663 (internal_nis_setprotoent): Use internal_nis_endprotoent.
9664 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
9665 _nss_nis_setnetent. Work around the different prototypes.
9666 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
9667 of the function to...
9668 (internal_nis_endnetgrent): ... here. New function.
9669 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
9671 2003-01-19 Jim Meyering <jim@meyering.net>
9673 * time/strftime.c: (widen): Merge nearly-identical definitions.
9674 (nl_get_alt_digit) [! defined my_strftime]: Define.
9675 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
9676 _nl_get_alt_digit and _nl_get_walt_digit.
9678 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9680 * time/strftime.c (my_strftime): Handle very large width
9681 specifications for numeric values correctly. Improve checks for
9683 * time/Makefile (tests): Add tst-strftime.
9684 * time/tst-strftime.c: New file.
9686 2003-01-18 Ulrich Drepper <drepper@redhat.com>
9688 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
9689 _nss_nis_sethostent. Work around the different prototypes.
9690 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
9691 _nss_nis_setgrent. Work around the different prototypes.
9692 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
9693 function. Split out from _nss_nis_endetherent.
9694 (internal_nis_setetherent): Use internal_nis_endetherent instead of
9695 duplicating the code.
9696 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
9697 of _nss_nis_setaliasent.
9698 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
9699 internal_nis_endservent code, don't duplicate it.
9701 * inet/rexec.c (rexec_af): Protect socket operations with
9702 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
9703 * inet/rcmd.c (rcmd_af): Likewise.
9705 2003-01-17 Roland McGrath <roland@redhat.com>
9707 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
9708 Add test of value 0.80190127184058835.
9710 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
9712 2003-01-17 Richard Henderson <rth@redhat.com>
9714 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
9715 relocs for class PLT.
9716 * sysdeps/alpha/libc-tls.c: New file.
9717 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
9718 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
9720 2003-01-17 Jakub Jelinek <jakub@redhat.com>
9722 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
9723 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
9726 2003-01-17 Andreas Jaeger <aj@suse.de>
9728 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
9730 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
9732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
9733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
9734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
9735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
9736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
9737 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
9738 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
9741 2003-01-16 Ulrich Drepper <drepper@redhat.com>
9743 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
9744 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
9747 * sysdeps/generic/sysconf.c: Unconditionally implement
9748 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
9749 * sysdeps/posix/sysconf.c: Likewise.
9751 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9753 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
9754 set *err to the returned error, not to REG_ESPACE unconditionally.
9755 (build_word_op): Likewise.
9756 * posix/Makefile (tests): Add bug-regex16.
9757 * posix/bug-regex16.c: New test.
9759 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9761 * elf/dl-load.c (_dl_map_object_from_fd): Use
9762 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
9763 been already initialized.
9765 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
9767 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
9769 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9771 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
9772 allocated too. Reported by Al Viro <aviro@redhat.com>.
9774 2003-01-16 Roland McGrath <roland@redhat.com>
9776 Tweak merged .abilist file format to merge duplicate symbols in
9777 different sets into multi-version stanzas with new "| SET regexp..."
9778 header continuation lines.
9779 * scripts/merge-abilist.awk: Rewritten for new format.
9780 * scripts/extract-abilist.awk: Likewise.
9782 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9784 * nscd/connections.c (nscd_run): Remove bogus return which isn't
9785 necessary with gcc 3.2+.
9786 (nscd_init): Don't use error() to print message, use dbg_log.
9788 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
9789 expected size into state.
9790 (UNPACK_BYTES): Do the reverse.
9791 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
9792 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
9793 Reported by Al Viro <aviro@redhat.com>.
9795 * stdio-common/Makefile (tests): Add bug14.
9796 * stdio-common/bug14.c: New file.
9798 * stdio-common/vfscanf.c: When recognizing multibyte characters in
9799 string reset the byte counter after mbrtowc reported it is not a
9800 partial character. Reported by Al Viro <aviro@redhat.com>.
9802 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
9804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
9805 sysdep-cancel.h, not sysdep.h.
9807 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9809 * nscd/connections.c (nscd_run): Protect accept call with
9812 2003-01-15 Andreas Schwab <schwab@suse.de>
9814 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
9815 (common-generated): Add s-proto-bp.d.
9816 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
9818 * sysdeps/unix/s-proto-bp.S: New file.
9819 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
9820 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
9821 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
9823 2003-01-15 Roland McGrath <roland@redhat.com>
9825 * Makerules: Use -include for tls.make, suppresses warning.
9826 Move gen-as-const-headers rules up so before-compile is set in time.
9827 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
9829 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9831 * nscd/nscd.c (main): Make code to close all file descriptors
9832 faster and more robust.
9834 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
9835 request with one writev call. Protect all read calls with
9837 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9838 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9840 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
9841 Protect writev calls with TEMP_FAILURE_RETRY.
9842 * nscd/grpcache.c: Likewise.
9843 * nscd/pwdcache.c: Likewise.
9845 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
9846 IPv6 address in debug output.
9848 2003-01-14 Roland McGrath <roland@redhat.com>
9850 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
9851 $(objpfx) directories, and get rid of vpath directives. The previous
9852 arrangement resulted in files being written to the source directories
9853 when run in a clean build. Find all .abilist files in $(..)abilist/.
9854 (update-abi-%): Likewise.
9855 (generated): Don't add .symlist files, they'll be intermediates.
9857 * sysdeps/generic/init-first.c: Add a comment.
9859 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
9861 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
9862 #includes and expressions.
9864 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
9865 config list when it already contains cpu-.*-os.* without / part.
9867 * Makerules (sed-remove-dotdot): New variable.
9868 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
9869 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
9870 (check-abi-config): New variable, append /tls or /notls to the tuple.
9871 (check-abi-%): Use that for -v config value.
9872 Find .abilist files in abilist/libfoo.abilist, not in subdir.
9873 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
9875 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9877 * manual/install.texi: Correct description of header preparation for
9878 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
9880 2003-01-14 Guido Guenther <agx@sigxcpu.org>
9882 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
9883 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9884 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
9886 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9889 (INTERNAL_SYSCALL): Make use of ERR parameter.
9890 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9891 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9892 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
9895 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9897 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
9899 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
9901 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
9902 Fix entry for bit 31.
9904 * iconvdata/Makefile: Add rules to build IBM866NAV.
9905 * iconvdata/ibm866nav.c: New file.
9906 * iconvdata/tst-tables.sh: Add IBM866NAV.
9907 * iconvdata/gconv-modules: Add entries for IBM866NAV.
9909 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9911 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
9912 to test void* parameters.
9914 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
9915 source pointer before dereferencing.
9916 (__STRING_SMALLL_GET32): Likewise.
9917 (__memset_gc): Add missing parenthesis around macro arguments.
9918 Patch by Denis Zaitsev <zzz@cd-club.ru>.
9920 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
9921 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9923 2003-01-14 Jakub Jelinek <jakub@redhat.com>
9925 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
9928 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9930 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
9931 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
9933 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
9935 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9937 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
9939 (PSEUDO): ... to here.
9940 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
9942 (PSEUDO): ... to here.
9944 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9946 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
9947 dirent64 instead of struct dirent for dirent. Call readdir64
9950 * locale/programs/locfile.c (siblings_uncached): Use struct
9951 dirent64 instead of struct dirent for other_dentry. Call
9952 readdir64 instead of readdir.
9954 * elf/ldconfig.c (direntry): Change type to struct dirent64.
9955 (search_dir): Use readdir64 instead of readdir.
9956 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
9958 2003-01-12 Roland McGrath <roland@redhat.com>
9960 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
9961 not strtol. The former is usable in ld.so, the latter not.
9963 * include/fcntl.h: Declare __libc_creat.
9965 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
9966 libhurduser-link.so-no-z-defs): New variables.
9968 * malloc/malloc.c: Revert last change.
9969 * malloc/malloc.h (_int_*): Move these decls to ...
9970 * include/malloc.h: ... here. Add attribute_hidden.
9971 (_int_valloc): Declare it too.
9973 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9975 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
9976 search for removed searchlist. Reported by Roland McGrath.
9978 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
9979 given as start file.
9981 * io/ftw.c (ftw_startup): Use correct name in check for symlink
9982 without existing target. Patch by Jim Meyering.
9984 * Makerules (build-shlib-helper): Don't use -z defs linker option
9985 if no-z-defs is defined either.
9987 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9989 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
9992 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9994 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
9995 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9997 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9999 * io/ftwtest-sh: Add test case for relative path with /. at the end.
10001 2003-01-12 Jim Meyering <jim@meyering.net>
10003 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
10004 use the basename if we've already chdir'd into its parent directory.
10006 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10008 * io/ftw.c (process_entry): Use relative path when using chdir()
10009 to change directory after call to ftw_dir.
10010 * io/ftwtest-sh: Add test for relative path argument to nftw()
10011 with FTW_CHDIR option.
10013 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10015 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10016 Define for powerpc.
10017 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
10019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10020 (INTERNAL_SYSCALL): Make use of ERR parameter.
10021 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10022 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
10023 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
10024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
10026 2003-01-09 Richard Henderson <rth@redhat.com>
10028 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
10029 DTPREL64 and TPREL64 without loadbase applied.
10031 2003-01-09 Richard Henderson <rth@redhat.com>
10033 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
10036 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
10037 * sysdeps/unix/alpha/sysdep.h: ... here.
10038 (PSEUDO_LOADGP): Remove.
10039 (PSEUDO_PROLOGUE): Load GP in non-pic case.
10040 (SYSCALL_ERROR_LABEL): New.
10041 (PSEUDO): Use it in error branch.
10042 (PSEUDO_END): Add $syscall_error label.
10044 2003-01-12 Andreas Jaeger <aj@suse.de>
10046 * math/bits/mathcalls.h: Round is a const function.
10048 2003-01-11 Jim Meyering <jim@meyering.net>
10050 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
10051 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
10052 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
10053 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
10054 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
10055 [!_LIBC] (internal_function, dirent64, MAX): Define.
10056 (__set_errno): Define if not already defined.
10057 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
10058 the basename, not the entire file name.
10059 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
10060 the basename, not the entire file name.
10062 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10064 * string/tester.c (test_strcpy): Disable last added strcpy until
10067 2003-01-11 Philip Blundell <philb@gnu.org>
10069 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
10071 2003-01-11 Andreas Schwab <schwab@suse.de>
10073 * Makerules: Add vpath for %.dynsym and %.so so that the
10074 implicit rule chaining for check-abi works.
10076 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10078 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10081 2003-01-11 Jakub Jelinek <jakub@redhat.com>
10083 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
10084 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
10086 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
10087 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
10088 Ensure libc.so in DT_NEEDED.
10089 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
10090 CHECK_STATIC_TLS before l_tls_offset use.
10091 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10093 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10094 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
10095 Allocate TLS_PRE_TCB_SIZE bytes below result.
10096 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
10097 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
10098 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
10099 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
10100 bytes below result and add tcb_offset to memsz.
10101 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
10102 * sysdeps/ia64/dl-machine.h: Include tls.h.
10103 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
10105 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
10106 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
10107 * sysdeps/ia64/libc-tls.c: New file.
10109 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
10111 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
10112 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
10113 Fix type. Move definition out of #if.
10114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
10115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
10116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
10117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
10118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
10119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
10121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
10122 ftruncate64, pread64, pwrite64, truncate64 entries.
10123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10124 (INLINE_SYSCALL): New version that supports function call like
10125 syscalls. Add __builtin_expect.
10126 (LOADARGS_n): Add argument size safety checks.
10127 (INTERNAL_SYSCALL): New Macro.
10128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
10129 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
10130 redefinition of elf_fpreg_t and elf_fpregset_t.
10132 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10134 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
10135 simplify test for unloading. If loader of a DSO is unloaded do not
10136 use its scope anymore. Fall back to own scope and adjust opencounts.
10137 Fix several comments.
10138 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
10139 the l_searchlist, not only for l_initfini.
10141 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
10142 dependencies if objects cannot be removed. Remove object with the
10143 definition as not unloadable if necessary.
10145 * elf/reldep6.c: Create relocation dependency before closing the first
10148 2003-01-10 Guido Günther <agx@sigxcpu.org>
10150 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
10151 * sysdeps/unix/mips/brk.S: Likewise.
10152 * sysdeps/unix/mips/pipe.S: Likewise.
10154 2003-01-10 Andreas Schwab <schwab@suse.de>
10156 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
10158 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
10159 are known to have the vfork syscall.
10161 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
10163 * sysdeps/unix/sysv/linux/kernel-features.h
10164 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
10165 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
10166 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
10168 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10170 * elf/Makefile: Add rules to build and run reldep9 test.
10171 * elf/reldep9.c: New file.
10172 * elf/reldep9mod1.c: New file.
10173 * elf/reldep9mod2.c: New file.
10174 * elf/reldep9mod3.c: New file.
10176 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10178 * elf/Makefile: Add rules to build and run nodelete2 test.
10179 * elf/nodelete2.c: New file.
10180 * elf/nodel2mod1.c: New file.
10181 * elf/nodel2mod2.c: New file.
10182 * elf/nodel2mod3.c: New file.
10184 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10186 * posix/test-vfork.c (noop): Add __attribute_noinline__.
10187 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
10188 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
10190 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
10191 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
10192 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
10193 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
10194 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
10196 2003-01-09 Andreas Schwab <schwab@suse.de>
10198 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
10200 2003-01-08 Ulrich Drepper <drepper@redhat.com>
10202 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
10203 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10205 (INTERNAL_SYSCALL_DECL): Define.
10207 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10209 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
10210 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10212 (INTERNAL_SYSCALL_DECL): Define.
10213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10214 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10215 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10216 (INLINE_SYSCALL): Adjust.
10217 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10218 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10219 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10220 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10221 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
10222 add err argument to INTERNAL_SYSCALL* macros.
10223 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
10224 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
10225 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
10226 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
10228 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
10229 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
10230 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
10232 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10234 Unify symbols in user namespace exported by libc.so and libc.a.
10235 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
10236 argp_fmtstream_free, and argp_fmtstream_printf.
10237 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
10238 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
10239 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
10240 argp_fmtstream_point.
10241 * gmon/gmon.c: Don't define write_profiling.
10242 * libio/genops.c: Don't define _cleanup.
10244 * intl/explodename.c (_nl_find_language.c): Mark as static.
10245 * intl/loadinfo.h: Remove _nl_find_language prototype.
10247 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
10248 * libio/libioP.h: Remove declaration.
10250 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
10251 * libio/libioP.h: Remove declaration.
10253 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
10254 * sysdeps/generic/framestate.c: Define STATIC before including
10257 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
10259 2003-01-06 Philip Blundell <philb@gnu.org>
10261 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
10262 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
10264 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
10266 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
10267 (SYSCALL_ERROR): New.
10268 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
10270 (INTERNAL_SYSCALL): Define.
10271 (INLINE_SYSCALL): Use it.
10272 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10273 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
10274 SYSCALL_ERROR in place of __syscall_error.
10276 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10278 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10279 __bswap_32, __bswap_64): Put x into temporary variable
10281 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10282 (inline) functions.
10283 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10284 __bswap_32, __bswap_64): Put x into temporary variable
10286 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10287 (inline) functions.
10288 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
10291 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10293 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
10296 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10298 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
10299 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
10301 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10303 * math/libm-test.inc (significand_test): New function.
10306 2003-01-06 Roland McGrath <roland@redhat.com>
10308 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
10310 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
10311 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
10312 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
10314 * string/tester.c (test_strcpy): Add test with `void *' arguments.
10316 2003-01-06 Ulrich Drepper <drepper@redhat.com>
10318 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
10319 return significand and not the exponent.
10320 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10322 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
10323 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
10325 * malloc/malloc.c: Mark all _int_* functions as static.
10327 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10329 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
10330 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
10332 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10334 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10336 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
10337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
10339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
10340 ftruncate64, truncate64, pread64 and pwrite64 entries.
10341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10342 (INLINE_SYSCALL): Add __builtin_expect.
10343 (LOADARGS_n): Add argument size safety checks.
10344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
10345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
10346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
10347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
10348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
10349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
10351 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10353 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
10354 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
10355 (LIBC_CANCEL_HANDLED): Add.
10357 * sysdeps/unix/sysv/linux/alpha/sysdep.h
10358 (inline_syscall_r0_constraint): Rename to...
10359 (inline_syscall_r0_out_constraint): ... this. Add =.
10360 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
10362 2003-01-06 Andreas Schwab <schwab@suse.de>
10364 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
10365 sure this is always inlined.
10366 (elf_machine_rela): Likewise.
10368 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
10370 2003-01-04 Roland McGrath <roland@redhat.com>
10372 * Makeconfig (+mkdep): Add -MP flag.
10373 Suggested by Art Haas <ahaas@airmail.net>.
10375 2003-01-05 Andreas Schwab <schwab@suse.de>
10377 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
10379 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10381 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
10382 SYSCALL_ERROR_HANDLER.
10383 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
10384 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
10385 Add support for cancellation handling.
10386 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
10387 SYSCALL_ERROR_HANDLER.
10388 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
10389 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
10390 Add support for cancellation handling.
10391 (SYSCALL_ERROR_HANDLER): Define PIC variants.
10393 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
10396 __syscall_pread64 and __syscall_pwrite64 cancelable.
10397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10398 (INTERNAL_SYSCALL): New macro.
10399 (LOADARGS_0, LOADARGS_1): Fix.
10401 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10403 * Makerules (build-shlip-helper): Unless told otherwise, add
10404 -Wl,-z,defs to linker command line.
10405 * rt/Makefile (librt.so): Link with ld.so.
10406 * dlfcn/Makefile (libdl.so): Likewise.
10408 2003-01-05 Jakub Jelinek <jakub@redhat.com>
10410 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
10411 cancellation handling.
10412 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10413 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
10415 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10417 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
10418 order of parameters passed to kill.
10420 2003-01-04 Andreas Schwab <schwab@suse.de>
10422 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
10424 2003-01-03 Paul Eggert <eggert@twinsun.com>
10426 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
10427 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10428 when compiling Bison 1.875's `bitset bset = obstack_alloc
10429 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
10431 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10433 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
10435 Correct reference counter in case SIGQUIT handler installation failed.
10437 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10439 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
10440 Define using _Pragma(weak ...).
10442 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
10444 * resolv/res_libc.c: Provide declaration for __res_init_weak and
10445 reorder declarations.
10447 2003-01-03 Art Haas <ahaas@airmail.net>
10449 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
10450 initializer syntax to C99.
10451 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
10452 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
10453 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
10454 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
10455 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
10456 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
10457 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
10458 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
10459 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
10460 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
10461 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
10462 * localedata/tests-mbwc/dat_mblen.c: Likewise.
10463 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
10464 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
10465 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
10466 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
10467 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
10468 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
10469 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
10470 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
10471 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
10472 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
10473 * localedata/tests-mbwc/dat_towlower.c: Likewise.
10474 * localedata/tests-mbwc/dat_towupper.c: Likewise.
10475 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
10476 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
10477 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
10478 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
10479 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
10480 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
10481 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
10482 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
10483 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
10484 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
10485 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
10486 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
10487 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
10488 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
10489 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
10490 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
10491 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
10492 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
10493 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
10494 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
10495 * localedata/tests-mbwc/dat_wctob.c: Likewise.
10496 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
10497 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
10498 * localedata/tests-mbwc/dat_wctype.c: Likewise.
10499 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
10501 2003-01-03 Richard Henderson <rth@redhat.com>
10503 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
10504 (inline_syscall_r0_constraint): New.
10505 (inline_syscall[0-6]): Use them.
10507 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10509 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
10510 Add rtld_hidden_proto.
10511 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
10512 (_dl_allocate_tls): Likewise. Remove INTDEF.
10514 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10516 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
10517 Morita <toshiyasu.morita@hsa.hitachi.com>.
10518 * sysdeps/sh/memcpy.S: Likewise.
10520 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10522 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
10523 any, but unify the test.
10525 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10527 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
10528 sigaction): Protect weak_alias and libc_hidden_weak with
10529 #ifndef LIBC_SIGACTION.
10530 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
10531 sigaction): Likewise.
10532 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
10533 sigaction): Likewise.
10534 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
10535 sigaction): Likewise.
10536 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
10537 sigaction): Likewise.
10538 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
10539 sigaction): Likewise.
10540 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
10541 sigaction): Likewise.
10542 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
10543 sigaction): Likewise. Remove SIGCANCEL handling here.
10544 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
10547 2003-01-02 Art Haas <ahaas@airmail.net>
10549 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
10551 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10553 * posix/getconf.c: Update copyright year.
10554 * nss/getent.c: Likewise.
10555 * nscd/nscd_nischeck.c: Likewise.
10556 * iconv/iconvconfig.c: Likewise.
10557 * iconv/iconv_prog.c: Likewise.
10558 * elf/ldconfig.c: Likewise.
10559 * catgets/gencat.c: Likewise.
10560 * csu/version.c: Likewise.
10561 * elf/ldd.bash.in: Likewise.
10562 * elf/sprof.c (print_version): Likewise.
10563 * locale/programs/locale.c: Likewise.
10564 * locale/programs/localedef.c: Likewise.
10565 * nscd/nscd.c (print_version): Likewise.
10566 * debug/xtrace.sh: Likewise.
10567 * malloc/memusage.sh: Likewise.
10568 * malloc/mtrace.pl: Likewise.
10570 2003-01-01 Jakub Jelinek <jakub@redhat.com>
10572 * io/sys/stat.h: Include time.h with __need_timespec even if
10573 __USE_MISC is defined but __USE_XOPEN is not.
10575 2003-01-01 Andreas Jaeger <aj@suse.de>
10577 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
10578 type to avoid strict aliasing problem.
10579 (_nss_dns_gethostbyname2_r): Likewise.
10580 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10581 (_nss_dns_getnetbyname_r): Likewise.
10582 * resolv/gethnamaddr.c (_gethtent): Likewise.
10583 (gethostbyname2): Likewise.
10585 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10587 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
10588 to avoid using the exported symbols. Define aliases with the
10589 original names separately.
10591 * include/time.h: Add libc_hidden_proto for __strftime_l.
10592 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
10593 * time/strftime.c: Always use libc_hidden_def if _LIBC.
10595 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
10596 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
10598 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
10601 * csu/Makefile (routines): Add dso_handle.
10602 * csu/dso_handle.c: New file.
10604 2002-12-31 Roland McGrath <roland@redhat.com>
10606 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
10607 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
10608 (S-CPPFLAGS): Add -DASSEMBLER here instead.
10609 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
10611 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10613 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
10616 2002-12-31 Andreas Jaeger <aj@suse.de>
10618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
10620 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10621 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
10622 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
10624 * sysdeps/unix/sysv/linux/kernel_stat.h
10625 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
10627 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
10628 __unused[1-3] since they're needed by some platforms. Handle
10629 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
10631 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
10632 for structs stat and stat64.
10633 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10634 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10635 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10636 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10638 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10640 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10641 nsec resolution changes.
10642 (xstat64_conv): Likewise.
10643 (xstat32_conv): Likewise.
10645 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10646 struct kernel_stat.
10648 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10649 structs stat and stat64.
10651 * time/time.h (__timespec_defined): Define for __USE_MISC.
10653 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10655 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
10656 and __libc_current_sigrtmax.
10658 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10660 * include/errno.h (__errno_location): Add prototype.
10661 Use libc_hidden_proto unconditionally.
10662 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
10664 * include/resolv.h (__res_state): Likewise.
10666 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
10667 * include/sys/socket.h (accept): Add libc_hidden_proto.
10668 * include/errno.h (__errno_location): Likewise.
10669 * include/netdb.h (__h_errno_location): Likewise.
10670 * include/resolv.h (__res_state): Likewise.
10671 * include/unistd.h (__lseek): Likewise.
10672 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
10673 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
10674 * sysdeps/generic/res-state.c (__res_state): Likewise.
10675 * sysdeps/generic/accept.c (accept): Likewise.
10676 * sysdeps/generic/lseek.c (__lseek): Likewise.
10677 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
10678 __libc_current_sigrtmax): Likewise.
10679 * sysdeps/mach/hurd/accept.c (accept): Likewise.
10680 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
10681 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
10682 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
10683 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
10684 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
10685 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
10686 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
10687 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
10689 (__GI_accept): New alias to accept.
10690 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
10691 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
10692 New alias to llseek.
10693 (__GI_accept): New alias to accept.
10694 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
10696 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
10698 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
10700 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
10701 strong_alias (name, __GI_name).
10702 * sysdeps/arm/bsd-_setjmp.S : Likewise.
10703 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
10704 * sysdeps/i386/bsd-_setjmp.S : Likewise.
10705 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
10706 * sysdeps/mips/bsd-_setjmp.S : Likewise.
10707 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
10708 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
10709 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
10710 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
10711 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
10712 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
10713 * sysdeps/sh/bsd-_setjmp.S : Likewise.
10714 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
10715 * sysdeps/unix/arm/fork.S : Likewise.
10716 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
10717 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
10718 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
10719 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
10720 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
10721 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
10722 * sysdeps/unix/i386/fork.S : Likewise.
10723 * sysdeps/unix/mips/fork.S : Likewise.
10724 * sysdeps/unix/sparc/fork.S : Likewise.
10725 * sysdeps/unix/sparc/vfork.S : Likewise.
10726 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
10727 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
10728 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
10729 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
10730 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
10731 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
10732 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
10733 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
10734 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
10735 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
10736 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
10737 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
10738 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
10739 * sysdeps/unix/fork.S : Likewise.
10740 * sysdeps/vax/bsd-_setjmp.S : Likewise.
10741 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
10743 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
10746 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10748 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
10749 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
10750 * sysdeps/mach/hurd/fork.c: Likewise.
10751 * sysdeps/unix/sysv/aix/fork.c: Likewise.
10752 * sysdeps/unix/fork.S: Add __GI___fork alias.
10753 * sysdeps/unix/arm/fork.S: Likewise.
10754 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
10755 * sysdeps/unix/i386/fork.S: Likewise.
10756 * sysdeps/unix/mips/fork.S: Likewise.
10757 * sysdeps/unix/sparc/fork.S: Likewise.
10758 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
10759 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
10760 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10761 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
10762 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
10763 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10764 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
10765 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
10766 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
10767 * sysdeps/unix/sparc/vfork.S: Likewise.
10768 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
10769 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
10770 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10771 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
10772 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
10773 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
10774 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
10775 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10777 * include/time.h: Add libc_hidden_proto for __nanosleep.
10778 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
10779 * sysdeps/mach/nanosleep.c: Likewise.
10780 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
10781 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
10783 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
10784 _IO_list_unlock, and _IO_list_resetlock.
10785 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
10786 _IO_list_unlock, and _IO_list_resetlock.
10788 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
10789 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10790 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
10791 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10793 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
10794 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
10795 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
10796 __GI___longjmp alias.
10798 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
10799 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
10800 * sysdeps/arm/bsd-_setjmp.S: Likewise.
10801 * sysdeps/generic/bsd-_setjmp.c: Likewise.
10802 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
10803 * sysdeps/i386/bsd-_setjmp.S: Likewise.
10804 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10805 * sysdeps/mips/bsd-_setjmp.S: Likewise.
10806 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10807 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
10808 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
10809 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
10810 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
10811 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
10812 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
10813 * sysdeps/sh/bsd-_setjmp.S: Likewise.
10814 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
10815 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
10816 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
10817 * sysdeps/vax/bsd-_setjmp.S: Likewise.
10818 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
10820 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10822 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
10824 2002-12-30 Roland McGrath <roland@redhat.com>
10826 * Rules (generated): Target removed.
10827 * mach/Makefile (generated): Define it here instead.
10829 * math/Makefile (generated): Add m_*l and m_*f variants too.
10831 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10833 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
10834 the to-be-deleted objects right away instead of later separately.
10835 The latter fails because the scope data structures of the DSO
10836 might already be gone.
10838 * elf/Makefile: Add rules to build and run reldep8 test.
10839 * elf/reldep8.c: New file.
10840 * elf/reldep8mod1.c: New file.
10841 * elf/reldep8mod2.c: New file.
10842 * elf/reldep8mod3.c: New file.
10843 Contributed by Jakub Jelinek.
10845 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
10847 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10848 checking of return value ENOSYS from getdents64.
10850 2002-12-28 Andreas Schwab <schwab@suse.de>
10852 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
10853 ($(common-objpfx)s-%.d): Generalized from
10854 $(common-objpfx)s-proto.d rule.
10855 (common-generated): Add s-proto-cancel.d.
10856 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
10857 cancellable syscalls.
10858 * sysdeps/unix/s-proto-cancel.S: New file.
10860 2002-12-29 Roland McGrath <roland@redhat.com>
10862 * resolv/res_libc.c: Move _res defn magic after res_init defn
10863 so _res macro is in effect for that code.
10865 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
10866 pattern for prepending $(..) so it doesn't affect $(foo).
10868 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
10870 2002-12-29 Jakub Jelinek <jakub@redhat.com>
10872 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
10875 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10877 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
10879 2002-12-28 Andreas Jaeger <aj@suse.de>
10881 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
10883 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
10885 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10887 * inet/herrno.c (__h_errno_location): Remove.
10888 * inet/Makefile (routines): Add herrno-loc.
10889 * resolv/res_libc.c (__res_state): Remove.
10890 * resolv/Makefile (routines): Add res-state.
10891 * sysdeps/generic/herrno-loc.c: New file.
10892 * sysdeps/generic/res-state.c: New file.
10894 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10896 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10897 Only define if USE_DL_SYSINFO is defined.
10899 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10901 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
10902 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
10903 Define. Patch by Richard Henderson and Jes Sorensen.
10904 (PSEUDO): Remove unnecessary ;;.
10905 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
10906 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
10907 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
10908 if not initializing thread pointer.
10909 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
10910 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
10911 make it weak also if NONTLS_INIT_TP.
10912 * sysdeps/unix/common/pause.c: Handle cancellation.
10913 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
10914 (LOADSYSCALL): Remove.
10915 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10916 (SYSCALL_ERROR_HANDLER): Use it.
10917 (PSEUDO): Don't jump around error handler.
10918 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
10919 jump around error handler.
10920 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
10921 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
10922 to __syscall_error_handler on failure.
10923 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
10924 (LOADSYSCALL): Remove.
10925 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10926 (SYSCALL_ERROR_HANDLER): Use it.
10927 (PSEUDO): Don't jump around error handler.
10928 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
10929 jump around error handler.
10930 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
10931 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
10932 to __syscall_error_handler on failure.
10934 2002-12-27 Roland McGrath <roland@redhat.com>
10936 * scripts/gen-as-const.awk: New file.
10937 * Makefile (distribute): Add it.
10938 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
10939 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
10941 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
10943 2002-12-27 Andreas Schwab <schwab@suse.de>
10945 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
10947 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10949 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
10952 2002-12-27 Andreas Schwab <schwab@suse.de>
10954 * Makerules ($(common-objpfx)%.make): Filter through
10955 $(sed-remove-objpfx).
10957 2002-12-23 Roland McGrath <roland@redhat.com>
10959 * scripts/abilist.awk: Produce a more compact format, divided into
10960 stanzas for each version set, the set name listed only once.
10961 * scripts/extract-abilist.awk: New file.
10962 * scripts/merge-abilist.awk: New file.
10963 * Makerules (check-abi-%, update-abi-%): New pattern rules.
10964 (update-abi, check-abi): New targets.
10965 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
10967 2002-12-19 Roland McGrath <roland@redhat.com>
10969 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
10971 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
10974 2002-12-21 Andreas Schwab <schwab@suse.de>
10976 * elf/check-textrel.c (handle_file): Swap p_type.
10978 2002-12-21 Andreas Schwab <schwab@suse.de>
10980 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
10981 (INLINE_SYSCALL): Use it.
10982 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10983 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10985 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
10986 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
10988 2002-12-20 Art Haas <ahaas@airmail.net>
10990 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
10993 2002-12-21 Philip Blundell <philb@gnu.org>
10995 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
10996 top as seventh arg to __libc_start_main.
10997 Reported by paulnash@wildseed.com.
10999 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
11001 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
11002 compatibility cruft when new enough kernel is assumed.
11004 2002-12-20 Jakub Jelinek <jakub@redhat.com>
11006 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
11007 instead of INLINE_SYSCALL.
11009 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11011 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
11014 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
11015 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11016 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
11017 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11018 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11019 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11020 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11021 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11022 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
11023 Patch by William Lee Irwin <wli@holomorphy.com>.
11025 2002-12-20 Andreas Schwab <schwab@suse.de>
11027 * locale/programs/ld-measurement.c (measurement_output): Fix
11030 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11032 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
11033 Redefine _IO_flockifle and _IO_funlockfile as inlines.
11035 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
11036 builds add "tls" in the search path.
11037 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
11038 (path_hwcap): Recognize "tls".
11040 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11042 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
11043 __waitpid instead of waitpid.
11045 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
11047 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11048 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11049 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11051 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
11052 information for system calls.
11054 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
11057 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
11059 2002-12-19 Roland McGrath <roland@redhat.com>
11061 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
11062 * iconvdata/ibm922.h: Likewise.
11063 * iconvdata/ibm930.h: Likewise.
11064 * iconvdata/ibm932.h: Likewise.
11065 * iconvdata/ibm933.h: Likewise.
11066 * iconvdata/ibm935.h: Likewise.
11067 * iconvdata/ibm937.h: Likewise.
11068 * iconvdata/ibm939.h: Likewise.
11069 * iconvdata/ibm943.h: Likewise.
11070 * iconvdata/isiri-3342.h: Likewise.
11072 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11074 * test-skeleton.c (main): Make sure correct value is seen as
11075 argv[0] after adjustment of argv, and argc.
11077 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
11078 RTLD_CORRECT_DYNAMIC_WEAK is defined.
11080 2002-12-19 Jakub Jelinek <jakub@redhat.com>
11082 * nscd/connections.c (nscd_run): Shut up warning.
11083 * tst-ungetc.c (assert): Undefined before redefining.
11085 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11087 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
11090 2002-12-17 Art Haas <ahaas@airmail.net>
11092 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
11093 * iconvdata/cp775.h: Likewise.
11094 * iconvdata/ibm1046.h: Likewise.
11095 * iconvdata/ibm1124.h: Likewise.
11096 * iconvdata/ibm1129.h: Likewise.
11097 * iconvdata/ibm1132.h: Likewise.
11098 * iconvdata/ibm1133.h: Likewise.
11099 * iconvdata/ibm1160.h: Likewise.
11100 * iconvdata/ibm1161.h: Likewise.
11101 * iconvdata/ibm1162.h: Likewise.
11102 * iconvdata/ibm1163.h: Likewise.
11103 * iconvdata/ibm1164.h: Likewise.
11105 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11107 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
11108 __ASSUME_CLONE_THREAD_FLAGS is defined.
11109 * sysdeps/unix/sysv/linux/kernel-features.h
11110 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
11112 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11114 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
11116 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11118 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
11120 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
11122 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
11124 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
11126 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
11127 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
11128 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
11131 2002-12-18 Jakub Jelinek <jakub@redhat.com>
11133 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
11134 __libc_writev to...
11135 [libc: GLIBC_PRIVATE]: ...here.
11136 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
11137 __libc_msgsnd to...
11138 [libc: GLIBC_PRIVATE]: ...here.
11140 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11142 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
11143 Use it instead of directly int $0x80.
11144 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
11145 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11146 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11147 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11148 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11149 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11151 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11153 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
11155 * elf/elf.h (AT_SYSINFO): New define.
11156 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
11159 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11161 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
11163 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
11165 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
11167 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
11169 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
11171 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
11173 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
11174 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
11175 available, otherwise __libc_maybe_call.
11176 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
11177 cancellation handling.
11178 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
11180 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
11182 * posix/regcomp.c (free_workarea_compile): Free the new member
11184 (analyze): Initialize ORG_INDICES.
11185 (duplicate_node_closure): Search for a existing node, which is
11186 duplicated from the node ORG_DEST and satisfies the constraint
11187 CONSTRAINT. And use it to avoid inifimite loop.
11188 (search_duplicated_node): New function.
11189 (duplicate_node): Store the index of the original node.
11190 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
11192 * posix/regex_internal.h (re_dfa_t): Add new members.
11194 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11196 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
11198 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11200 * sysdeps/posix/system.c (do_system): Add support for installation
11201 of cancellation handlers.
11202 * sysdeps/unix/sysv/linux/i386/system.c: New file.
11204 * stdlib/Makefile (tests): Add tst-system.
11205 * stdlib/tst-system.c: New file.
11207 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
11208 CENABLE]: Don't lose content of %ebx.
11210 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11212 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
11213 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
11215 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11217 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
11218 fails to return a function pointer don't use it.
11220 2002-12-16 Art Haas <ahaas@airmail.net>
11222 * io/ftw.c: Convert GCC extension initializer syntax to C99.
11223 * iconvdata/iso-ir-165.c: Likewise.
11224 * iconvdata/jis0208.c: Likewise.
11225 * iconvdata/jis0212.c: Likewise.
11227 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11229 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
11230 epoll_ctl, and epoll_wait.
11231 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
11232 epoll_create, epoll_ctl, and epoll_wait.
11233 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
11234 Davide Libenzi <davidel@xmailserver.org>.
11235 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
11236 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11239 2002-12-16 Art Haas <ahaas@airmail.net>
11241 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
11243 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
11244 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
11245 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
11247 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11249 * stdio-common/Makefile (routines): Remove lockfile. Add
11250 flockfile, ftrylockfile, and funlockfile.
11251 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
11252 * sysdeps/generic/flockfile.c: New file.
11253 * sysdeps/generic/ftrylockfile.c: New file.
11254 * sysdeps/generic/funlockfile.c: New file.
11256 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11258 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
11259 macros instead of doing the calls directly.
11260 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
11261 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
11264 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11266 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
11267 * sysdeps/ieee754/bits/nan.h: Likewise.
11269 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
11270 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
11272 2002-12-16 Roland McGrath <roland@redhat.com>
11274 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
11275 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
11276 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
11278 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
11279 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
11281 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
11282 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
11283 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
11284 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
11285 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
11286 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
11287 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
11288 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
11290 2002-12-13 Paul Eggert <eggert@twinsun.com>
11292 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
11293 is now u_int, not int.
11294 (struct XDR.x_handy): Now u_int, not int.
11295 * sunrpc/xdr_mem.c: Include <limits.h>.
11296 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
11297 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
11298 x_handy is now unsigned, not signed.
11299 Do not decrement x_handy if no change is made.
11300 (xdrmem_setpos): Check for int overflow.
11301 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
11302 (xdr_sizeof): Remove cast that is now unnecessary, now that
11303 x_handy is unsigned.
11305 2002-12-15 Art Haas <ahaas@airmail.net>
11307 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
11308 * iconvdata/gap.awk: Likewise.
11309 * iconvdata/gen-8bit-gap-1.sh: Likewise.
11310 * iconvdata/gen-8bit-gap.sh: Likewise.
11311 * locale/C-address.c: Likewise.
11312 * locale/C-collate.c: Likewise.
11313 * locale/C-ctype.c: Likewise.
11314 * locale/C-identification.c: Likewise.
11315 * locale/C-measurement.c: Likewise.
11316 * locale/C-messages.c: Likewise.
11317 * locale/C-monetary.c: Likewise.
11318 * locale/C-name.c: Likewise.
11319 * locale/C-numeric.c: Likewise.
11320 * locale/C-paper.c: Likewise.
11321 * locale/C-telephone.c: Likewise.
11322 * locale/C-time.c: Likewise.
11323 * nscd/connections.c: Likewise.
11324 * nscd/grpcache.c: Likewise.
11325 * nscd/hstcache.c: Likewise.
11326 * nscd/pwdcache.c: Likewise.
11327 * stdio-common/vfprintf.c: Likewise.
11328 * stdlib/random.c: Likewise.
11329 * sysdeps/generic/siglist.c: Likewise.
11330 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11331 * sysdeps/ieee754/bits/nan.h: Likewise.
11332 * sysdeps/posix/sprofil.c: Likewise.
11333 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
11334 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
11335 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
11337 2002-12-15 Roland McGrath <roland@redhat.com>
11339 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
11341 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
11342 <tls.h> here, no need for it.
11343 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11345 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
11346 parameter, not varargs parameter.
11348 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
11349 argument so it's not an unused variable.
11351 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
11352 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
11355 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
11357 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11359 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
11360 original __libc_fcntl code. Just renamed.
11362 2002-12-15 Andreas Schwab <schwab@suse.de>
11364 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
11366 2002-12-14 Olaf Hering <olh@suse.de>
11368 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
11369 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
11371 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11373 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
11375 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
11376 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
11378 * sysdeps/unix/sysv/linux/open64.c: New file.
11380 * sysdeps/generic/pselect.c: Add support for cancellation handling.
11381 * sysdeps/posix/open64.c: Likewise.
11382 * sysdeps/posix/sigpause.c: Likewise.
11383 * sysdeps/posix/sigwait.c: Likewise.
11384 * sysdeps/posix/system.c: Likewise.
11385 * sysdeps/posix/waitid.c: Likewise.
11386 * sysdeps/unix/sysv/linux/accept.S: Likewise.
11387 * sysdeps/unix/sysv/linux/connect.S: Likewise.
11388 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
11389 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11390 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
11391 * sysdeps/unix/sysv/linux/poll.c: Likewise.
11392 * sysdeps/unix/sysv/linux/pread.c: Likewise.
11393 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11394 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
11395 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11396 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11397 * sysdeps/unix/sysv/linux/recv.S: Likewise.
11398 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
11399 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
11400 * sysdeps/unix/sysv/linux/send.S: Likewise.
11401 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
11402 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
11403 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
11404 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
11405 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
11406 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
11407 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
11408 * sysdeps/unix/sysv/linux/wait.c: Likewise.
11409 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11410 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11411 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
11412 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11414 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11416 * sysdeps/generic/sysdep-cancel.h: New file.
11417 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
11418 cancelable syscall.
11419 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
11420 recvmsg, send, sendmsg, sendto): Make cancelable.
11421 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
11422 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
11423 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11424 sendto, osf_select): Likewise.
11425 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
11426 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11427 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
11428 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11430 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
11431 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11432 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
11433 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11435 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
11436 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11437 sendto, select): Likewise.
11438 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
11439 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
11441 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
11442 select, fcntl): Likewise.
11443 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
11444 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
11445 read, readv, select, sigsuspend, write, writev): Likewise.
11447 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11449 * dirent/bug-readdir1.c: Include unistd.h.
11451 2002-12-13 Jakub Jelinek <jakub@redhat.com>
11453 * locale/programs/locale.c: Include locarchive.h.
11454 (ARCHIVE_NAME): Define.
11455 (write_archive_locales): New function.
11456 (write_locales): Use it. Ensure the same locale is not printed
11457 multiple times in verbose mode.
11458 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
11459 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
11461 (struct nameent): New type.
11462 (nameentcmp): New function.
11464 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11466 * posix/regex_internal.c (re_string_context_at): Guard wide char
11467 code with #ifdef RE_ENABLE_I18N.
11469 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
11471 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
11473 2002-12-13 Roland McGrath <roland@redhat.com>
11475 * posix/bug-regex15.c: New file.
11476 * posix/Makefile (tests): Add it.
11478 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
11479 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
11481 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11483 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
11485 * misc/syslog.c (log_cleanup): Don't use parameter in
11486 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
11487 pass NULL instead of a pointer to syslog_lock.
11489 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11491 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
11492 linker map for all iconv modules.
11493 (distribute): Add gconv.map.
11494 * iconvdata/gconv.map: New file.
11496 * elf/Makefile: Also check all iconv modules for text relocations.
11498 * stdlib/Makefile: Remove code to automatically import GMP.
11500 * elf/Makefile (tests): Add rules to build and run check-textrel.
11501 * elf/check-textrel.c: New file.
11503 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
11506 2002-12-11 Jakub Jelinek <jakub@redhat.com>
11508 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
11511 2002-04-30 Bruno Haible <bruno@clisp.org>
11513 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
11514 the encoding if it already has slashes.
11515 Reported by Perry Rapp <prapp@erols.com>.
11517 2002-12-11 Roland McGrath <roland@redhat.com>
11519 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
11520 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
11521 Turn off PIC for compiling this file.
11523 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11525 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
11526 definitions. Not needed.
11527 [_LIBC]: Use definitions from libc-lock.h instead of referencing
11528 pthread routines directly.
11529 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
11531 (arena_get2): Don't look at return value of mutex_lock.
11533 2002-12-11 Roland McGrath <roland@redhat.com>
11535 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
11536 elf-init.o instead of compiling a PIC version.
11538 2002-12-11 Bruno Haible <bruno@clisp.org>
11540 * intl/gettext.h: Renamed to ...
11541 * intl/gmo.h: ... here.
11542 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11543 * intl/gettextP.h: Update.
11544 * intl/loadmsgcat.c: Update.
11546 * intl/gettextP.h (PARAMS): Make more portable.
11547 (attribute_hidden): Define as empty macro if not already defined.
11548 * intl/hash-string.h (PARAMS): Make more portable.
11549 * intl/loadinfo.h (PARAMS): Likewise.
11550 * intl/plural-exp.h (PARAMS): Likewise.
11551 (attribute_hidden): Move definition near the definition of
11554 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
11555 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
11557 2002-07-13 Bruno Haible <bruno@clisp.org>
11559 * intl/dcigettext.c (freea): New macro.
11560 (FREE_BLOCKS): Free also the registered blocks.
11561 (DCIGETTEXT): Free the 'search' variable.
11562 Reported by Andreas Fischer <a.fischer@asentics.de>.
11564 2002-04-27 Bruno Haible <bruno@clisp.org>
11566 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
11567 * intl/dcigettext.c: Likewise.
11568 * intl/dcgettext.c: Likewise.
11569 * intl/dgettext.c: Likewise.
11570 * intl/gettext.c: Likewise.
11571 * intl/dcngettext.c: Likewise.
11572 * intl/dngettext.c: Likewise.
11573 * intl/ngettext.c: Likewise.
11574 * intl/textdomain.c: Likewise.
11575 * intl/bindtextdom.c: Likewise.
11576 * intl/plural-exp.h: Likewise.
11578 2002-01-02 Bruno Haible <bruno@clisp.org>
11580 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
11582 2001-04-30 Bruno Haible <bruno@clisp.org>
11584 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
11585 default macro definitions. Needed for mingw32.
11587 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11589 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
11590 __builtin_constant_p to macro parameter.
11592 * sysdeps/generic/sigpause.c: Define all functions as weak.
11593 * sysdeps/posix/sigpause.c: Likewise.
11595 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
11598 2002-12-10 Jakub Jelinek <jakub@redhat.com>
11600 * elf/tst-array1.c (preinit_array, init_array, fini_array):
11601 Explicitly align the array to sizeof (void *).
11602 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
11604 * include/libc-symbols.h: Fix a comment typo.
11606 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
11607 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
11609 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
11611 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
11612 (__libc_sigsuspend): Likewise.
11613 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
11614 (__libc_sigsuspend): Likewise.
11615 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
11616 (creat): New weak alias.
11618 2002-12-10 Roland McGrath <roland@redhat.com>
11620 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
11621 contributes a manual chapter.
11622 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
11625 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
11626 and move contents to ...
11627 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
11628 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
11629 it instead of duplicating its contents.
11630 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
11632 2002-12-09 Jakub Jelinek <jakub@redhat.com>
11634 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
11636 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
11638 (EXTRA_LD_ENVVARS): Use it.
11639 (DL_OSVERSION_INIT): Define.
11640 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
11642 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
11644 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11646 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
11648 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
11649 call. It is not allowed to destroy pthread mutexes which are
11650 still in use even though it is safe for our implementations. If
11651 somebody still uses the descriptor it is a bug.
11653 2002-12-09 Richard Henderson <rth@redhat.com>
11655 * csu/abi-note.S: Use .p2align, not .align.
11657 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11659 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
11660 __libc_select aliases.
11662 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
11665 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
11667 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
11669 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
11671 * sysdeps/unix/syscalls.list: Define __libc_select alias.
11673 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
11675 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
11676 __libc___xpg_sigpause aliases.
11678 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
11680 * misc/error.c: Remove use of USE_IN_LIBIO.
11682 2002-12-08 Roland McGrath <roland@redhat.com>
11684 * elf/Makefile (tests): Uncomment tst-array[123].
11685 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
11686 * csu/elf-init.c: New file.
11687 * csu/Makefile (routines, static-only-routines): Add elf-init.
11688 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
11689 and __libc_csu_fini in place of _fini.
11690 * sysdeps/arm/elf/start.S: Likewise.
11691 * sysdeps/cris/elf/start.S: Likewise.
11692 * sysdeps/hppa/elf/start.S: Likewise.
11693 * sysdeps/i386/elf/start.S: Likewise.
11694 * sysdeps/ia64/elf/start.S: Likewise.
11695 * sysdeps/m68k/elf/start.S: Likewise.
11696 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
11697 * sysdeps/mips/elf/start.S: Likewise.
11698 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
11699 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
11700 * sysdeps/s390/s390-32/elf/start.S: Likewise.
11701 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11702 * sysdeps/sh/elf/start.S: Likewise.
11703 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11704 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11705 * sysdeps/x86_64/elf/start.S: Likewise.
11707 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
11708 struct containing function ptr and value, free it.
11709 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
11710 It's not safe to let the new thread use the SIGEV pointer.
11712 2001-10-20 Paul Eggert <eggert@twinsun.com>
11714 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
11715 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
11716 Use strerror_r that is only a macro, even if it is not a function.
11717 (strerror): Check for HAVE_DECL_STRERROR before declaring.
11718 (private_strerror): Use prototypes, not old-style function definition.
11719 (print_errno_message): New function.
11720 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
11721 char*-flavored one.
11722 (error_tail, error, error_at_line): Use it.
11724 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
11726 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
11728 2002-12-08 Ulrich Drepper <drepper@redhat.com>
11730 * scripts/output-format.sed: Fix bug in one of the s expressions
11731 which used / for one too many things.
11733 * include/unistd.h: Declare __libc_close.
11735 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11737 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
11739 2002-12-07 Roland McGrath <roland@redhat.com>
11741 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
11742 from 2002-12-06, but remove unnecessary memset call without removing
11743 necessary copy of initialization image.
11745 * Makerules ($(common-objpfx)format.lds): New target.
11746 (common-generated): Add it.
11747 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
11748 * scripts/output-format.sed: New file.
11749 * Makefile (distribute): Add it.
11751 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11753 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
11754 Reported by Art Haas <ahaas@airmail.net>.
11756 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
11758 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
11760 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11762 * string/test-strncpy.c (do_random_tests): Improve test coverage.
11764 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11766 * test-skeleton.c (timeout_handler): Allow expected signal to be
11769 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
11771 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
11773 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11775 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
11776 (SYSCALL_ERROR_HANDLER): Fix a pasto.
11777 Reported by Jeff Bailey <jbailey@nisa.net>.
11779 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11781 * sysdeps/generic/libc-tls.c: Undo last patch.
11783 * include/wctype.h: Define iswalnum with libc_hidden_proto.
11785 * include/signal.h: Define raise with libc_hidden_proto.
11787 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
11788 __execve instead of snprintf and execve.
11790 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
11793 2002-12-06 Jakub Jelinek <jakub@redhat.com>
11795 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
11796 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
11798 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11800 * misc/syslog.c (log_cleanup): New function.
11801 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
11802 (closelog): Likewise.
11804 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
11805 * elf/dl-iteratephdr.c: Likewise.
11806 * elf/dl-lookup.c: Likewise.
11807 * elf/dl-misc.c: Likewise.
11808 * elf/dl-open.c: Likewise.
11809 * elf/dl-support.c: Likewise.
11810 * elf/rtld.c: Likewise.
11811 * sysdeps/generic/ldsodefs.h: Likewise.
11812 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
11813 * sysdeps/mach/bits/libc-lock.h: Likewise.
11814 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
11816 2002-12-06 Roland McGrath <roland@redhat.com>
11818 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
11820 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
11821 (malloc_starter, memalign_starter, free_starter): Don't define these.
11822 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
11823 Don't declare them either.
11824 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
11825 __pthread_initialize, so no need to set hooks to *_starter.
11826 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
11827 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
11828 (__libc_malloc_pthread_startup): New function.
11829 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
11831 * malloc/hooks.c (memalign_starter): New function.
11832 * malloc/malloc.c: Declare it.
11833 * malloc/arena.c (save_memalign_hook): New variable.
11834 (ptmalloc_init): Set __memalign_hook to memalign_starter.
11836 * elf/dl-minimal.c (free): Clear the memory.
11837 (calloc): Just call malloc, knowing all memory it returns is cleared.
11839 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
11840 malloc and memset; calloc can avoid the zeroing when redundant.
11841 (_dl_tls_setup): Likewise.
11842 * elf/dl-load.c (decompose_rpath): Likewise.
11843 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
11844 call, since memory from sbrk at startup is already zero.
11846 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
11847 error string for failure, null for success. Update callers.
11848 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
11849 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11851 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11853 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
11855 (readahead): Change args to i:iii.
11856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
11857 Change args to i:iii.
11858 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
11861 2002-12-05 Roland McGrath <roland@redhat.com>
11863 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
11864 call all functions rather than none.
11865 Reported by Mark P. Mitchell <mark@codesourcery.com>.
11867 2002-12-04 Roland McGrath <roland@redhat.com>
11869 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
11870 on _nl_current_LC_* variables.
11872 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11874 * dirent/bug-readdir1.c (main): Don't call closedir, just close
11875 the file descriptor. This is testing what the bug report was about.
11877 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11879 * po/be.po: New file.
11881 * argp/Makefile (tests): Add tst-argp1.
11883 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
11884 Change type of _attribute to void*.
11885 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11886 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
11887 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
11888 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11889 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11891 2002-12-04 Roland McGrath <roland@redhat.com>
11893 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
11894 members to the end, so a libpthread compiled with !USE_TLS will still
11895 find other members properly.
11897 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
11898 operand for DEST memory. Fix dummy input operand to use SRC.
11899 Reported by Davin McCall <davmac@ozonline.com.au>.
11901 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
11902 alignment when initializing the DTV entry.
11904 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
11905 when TLS has not been set up, try to set it up if we can.
11906 * elf/tst-tls4.c: Revert last change.
11907 * elf/tst-tls5.c: Likewise.
11908 * elf/tst-tls6.c: Likewise.
11909 * elf/tst-tls7.c: Likewise.
11910 * elf/tst-tls8.c: Likewise.
11911 * elf/tst-tls9.c: Likewise.
11913 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
11914 * sysdeps/generic/ldsodefs.h: Declare it.
11915 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
11916 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
11917 function, broken out of __libc_setup_tls.
11918 (init_static_tls): Likewise.
11919 (__libc_setup_tls): Call them.
11920 (_dl_tls_setup): New function, uses new subroutines.
11922 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
11923 Clear the pointer when returning true.
11924 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
11925 first element of the slotinfo list too.
11927 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
11930 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
11931 (_dl_determine_tlsoffset): Likewise.
11933 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
11934 startup_error_tsd, made global.
11935 (dl_main): Update initialization.
11936 * elf/dl-tsd.c: Likewise.
11937 * sysdeps/generic/ldsodefs.h: Declare it.
11939 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11941 * manual/texinfo.tex: Update from latest upstream version.
11943 2002-12-03 Roland McGrath <roland@redhat.com>
11945 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
11946 area surplus in calculation for sbrk call.
11948 * iconvdata/cp1125.c: New file.
11949 * iconvdata/Makefile (distribute): Add it.
11950 (modules): Add CP1125.
11951 (gen-8bit-gap-modules): Add cp1125.
11952 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
11953 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
11955 2002-12-03 Andreas Jaeger <aj@suse.de>
11957 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11959 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11961 * sysdeps/posix/system.c (do_system): Make signal handler
11962 installation thread safe.
11964 2002-12-02 Roland McGrath <roland@redhat.com>
11966 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
11967 caller from EXTRA to -.
11968 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11969 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11970 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11972 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
11974 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
11975 bits of RM are cleared.
11977 2002-12-02 Roland McGrath <roland@redhat.com>
11979 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
11980 TLS setup is required.
11981 * elf/tst-tls5.c: Likewise.
11982 * elf/tst-tls6.c: Likewise.
11983 * elf/tst-tls7.c: Likewise.
11984 * elf/tst-tls8.c: Likewise.
11985 * elf/tst-tls9.c: Likewise.
11987 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
11988 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
11989 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
11990 for being null before calling free_slotinfo.
11991 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
11992 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
11994 2002-11-30 Bruno Haible <bruno@clisp.org>
11996 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
11997 (struct __gconv_step): New field __btowc_fct.
11998 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
11999 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
12001 (__gconv_btwoc_ascii): New declaration.
12002 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
12003 (__gconv_btwoc_ascii): New function.
12004 * iconv/gconv_builtin.h: Add BtowcFct argument to all
12005 BUILTIN_TRANSFORMATION invocations.
12006 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
12007 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
12008 * iconv/gconv_builtin.c (map): New field btowc_fct.
12009 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
12011 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
12012 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
12013 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
12014 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
12015 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
12016 (gconv_init): Initialize __btowc_fct field.
12017 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
12018 * iconv/loop.c: Document ONEBYTE_BODY.
12019 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
12020 Undefine ONEBYTE_BODY at the end.
12021 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
12022 * iconvdata/8bit-gap.c (NONNUL): New macro.
12023 (BODY for FROM_LOOP): Use it.
12024 (ONEBYTE_BODY): New macro.
12025 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
12026 (NONNUL): New macro.
12027 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
12028 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
12029 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
12030 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
12031 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
12032 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
12033 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
12034 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
12035 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
12036 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
12037 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
12038 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
12039 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
12040 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
12041 * iconvdata/ibm932.c: Include <stdbool.h>.
12042 (TRUE, FALSE): Remove macros.
12043 (BODY for FROM_LOOP): Remove unused variable rp1.
12044 (ONEBYTE_BODY): New macro.
12045 (BODY for TO_LOOP): Use bool.
12046 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
12047 * iconvdata/ibm943.c: Include <stdbool.h>.
12048 (TRUE, FALSE): Remove macros.
12049 (BODY for FROM_LOOP): Remove unused variable rp1.
12050 (ONEBYTE_BODY): New macro.
12051 (BODY for TO_LOOP): Use bool.
12052 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
12053 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
12054 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
12055 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
12056 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
12057 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
12058 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
12059 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
12060 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
12061 * iconvdata/gbbig5.c: Tweak comment.
12063 2002-12-02 Ulrich Drepper <drepper@redhat.com>
12065 * po/fi.po: Update from translation team.
12067 2002-12-01 Roland McGrath <roland@redhat.com>
12069 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
12070 testing getdents64 return value.
12072 * scripts/versions.awk: Don't pass -n flag to sort command.
12074 * posix/bug-regex13.c: Include <string.h>.
12076 * sysdeps/generic/libc-start.c (__libc_start_main): Do
12077 DL_SYSDEP_OSCHECK here.
12078 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
12079 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
12081 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
12082 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
12084 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
12085 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
12087 * include/link.h: Comment typo fix.
12089 2002-12-01 Roland McGrath <roland@frob.com>
12091 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
12092 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
12093 _POSIX_MEMORY_PROTECTION): Likewise.
12094 (_POSIX_POLL, _POSIX_SELECT): Removed.
12096 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12098 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
12099 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
12101 2002-11-28 Jakub Jelinek <jakub@redhat.com>
12103 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
12105 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
12108 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12110 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
12111 branch prediction buffers by using unpaired call/ret.
12113 2002-11-27 Ulrich Drepper <drepper@redhat.com>
12115 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
12116 first parameters constraint string.
12117 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
12119 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
12121 * posix/regcomp.c (parse_expression): Set the bit since the back
12122 reference is used in the regular expression.
12123 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
12125 (re_node_set_init_copy): Likewise.
12126 * posix/regex_internal.h (state_array_t): New structure.
12127 (re_sub_match_last_t): Likewise.
12128 (re_sub_match_top_t): Likewise.
12129 (re_match_context_t): Add new members.
12130 (re_dfa_t): Likewise.
12131 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
12132 to check the matching is really correct, and retry if failed.
12133 Move the routin pruning the impossible nodes from here, ...
12134 (prune_impossible_nodes): To this function.
12135 (check_matching): Invoke check_subexp_matching_top, and replace
12136 redundant checking with transit_state_bkref invocation.
12137 (proceed_next_node): Replace strncmp with memcmp. Reported by
12138 Paolo Bonzini <bonzini@gnu.org>.
12139 (update_cur_sifted_state): Remove search_subexp invocation.
12140 (search_subexp): Remove this function.
12141 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
12143 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
12144 Remove unused invocation of match_ctx_add_entry.
12145 (transit_state): Invoke check_subexp_matching_top.
12146 (check_subexp_matching_top): New function.
12147 (transit_state_bkref): Remove unused array.
12148 Merge transit_state_bkref_loop.
12149 (transit_state_bkref_loop): Use get_subexp instead of
12150 sift_states_backward. Use search_cur_bkref_entry for optimization.
12151 Merge this function to transit_state_bkref.
12152 (get_subexp): New function.
12153 (get_subexp_sub): Likewise.
12154 (find_subexp_node): Likewise.
12155 (check_arrival): Likewise.
12156 (check_arrival_expand_ecl): Likewise.
12157 (check_arrival_expand_ecl_sub): Likewise.
12158 (expand_bkref_cache): Likewise.
12159 (match_ctx_init): Initialize new members.
12160 (match_ctx_clean): New function.
12161 (match_ctx_free): Release new members.
12162 (match_ctx_free_subtops): New function.
12163 (match_ctx_add_entry): Fix indent.
12164 (search_cur_bkref_entry): New function.
12165 (match_ctx_add_subtop): Likewise.
12166 (match_ctx_add_sublast): Likewise.
12168 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12170 * iconv/Makefile (tests): Remove tst-iconv4.c
12171 * iconv/tst-iconv4.c: Moved to...
12172 * iconvdata/tst-iconv4.c: ...here. New file.
12173 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
12175 2002-11-25 Roland McGrath <roland@redhat.com>
12177 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
12178 Grok AF_LINK if defined.
12179 From Momchil Velikov <velco@fadata.bg>.
12181 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
12182 brdaddr, or dstaddr, just set those pointers to null and don't fail.
12183 Reported by Momchil Velikov <velco@fadata.bg>.
12185 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
12186 is > sizeof IFR->ifa_addr, advance past the whole longer length.
12187 (__ifreq): Count up NIFS that way too.
12188 Reported by Momchil Velikov <velco@fadata.bg>.
12190 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
12192 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
12193 and <fpu_control.h>.
12195 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12197 * elf/elf.h (EM_ST19): Fix typo.
12199 2002-11-25 Jakub Jelinek <jakub@redhat.com>
12201 * include/errno.h (__set_errno): Define as errno = val
12204 2002-11-24 Roland McGrath <roland@redhat.com>
12206 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
12207 * sysdeps/posix/writev.c: Likewise.
12208 From Momchil Velikov <velco@fadata.bg>.
12210 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
12211 calling *GL(dl_error_catch_tsd) for a thread-local location.
12212 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
12213 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
12214 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
12216 * libio/iofflush.c: Add libc_hidden_def.
12217 * libio/iofwrite.c: Likewise.
12218 * sysdeps/generic/sigtimedwait.c: Likewise.
12219 * sysdeps/generic/sigwaitinfo.c: Likewise.
12220 * sysdeps/posix/sigwait.c: Likewise.
12221 Reported by Momchil Velikov <velco@fadata.bg>.
12223 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
12224 to match <arpa/inet.h> declaration.
12225 * inet/inet_netof.c (inet_netof): Likewise.
12226 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
12227 Reported by Momchil Velikov <velco@fadata.bg>.
12229 * configure.in: Skip AUTOCONF check under --without-cvs.
12230 * configure: Regenerated.
12232 * posix/Makefile (headers): Add bits/pthreadtypes.h.
12233 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
12234 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
12236 2002-11-24 Andreas Schwab <schwab@suse.de>
12238 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
12239 with six arguments.
12241 2002-11-19 Jim Meyering <jim@meyering.net>
12243 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
12245 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
12247 2002-11-23 Roland McGrath <roland@redhat.com>
12249 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
12250 Just produce hex output for datum sizes.
12252 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
12253 Reported by Luca Barbieri <ldb@ldb.ods.org>.
12255 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
12257 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
12258 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12259 and __unused3 fields.
12260 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
12261 [__WORDSIZE == 32]: Only PPC32 requires __unused1
12262 and __unused2 fields.
12263 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
12264 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12265 __unused3, and __unused4 fields.
12267 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
12268 obtain lowest address for profiling in __monstartup call.
12270 2002-11-21 Roland McGrath <roland@redhat.com>
12272 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
12273 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
12275 * locale/localeinfo.h (struct locale_data): Revert last change.
12277 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
12278 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12280 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
12281 __NR_pread64 if not defined.
12282 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
12283 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12285 2002-11-21 Roland McGrath <roland@frob.com>
12287 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
12288 __libc_multiple_libcs here. Call __setfpucw.
12290 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12292 * elf/Makefile (tests): Don't run test-arrayX tests for now.
12294 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
12295 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
12296 CLONE_CHILD_*TID flags.
12298 2002-11-20 Andreas Jaeger <aj@suse.de>
12300 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
12301 We pass struct ucontext on x86-64.
12303 (GET_FRAME): Adjust.
12304 (GET_STACK): Adjust.
12306 2002-11-20 Roland McGrath <roland@redhat.com>
12308 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
12309 conditionalize [! DO_VERSIONING] #error.
12311 * scripts/abilist.awk: Grok function descriptor symbols.
12313 * intl/tst-gettext.c (main): Check return values from setlocale.
12314 Add necessary unsetenv's to make LANG=existing-locale check work.
12316 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
12317 so aborted prior runs don't confuse things.
12319 * locale/localeinfo.h (struct locale_data: union locale_data_value):
12320 Use uintptr_t instead of unsigned int for `word' member.
12321 (_NL_CURRENT_WORD): Cast to uint32_t.
12323 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
12326 2002-11-20 Ulrich Drepper <drepper@redhat.com>
12328 * elf/tls-macros.h: Add IA-64 definitions.
12329 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
12331 * iconv/Makefile (tests): Add tst-iconv4.
12332 * iconv/tst-iconv4.c: New file.
12334 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
12335 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
12336 __GCONV_INCOMPLETE_INPUT.
12337 (ucs4le_internal_loop): Likewise.
12338 (ucs4le_internal_loop_unaligned): Likewise.
12339 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
12340 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
12341 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
12343 * iconv/loop.c (LOOPFCT): First test for empty input then for full
12346 * inet/getnameinfo.c: Use extend_alloca where appropriate.
12347 * sysdeps/posix/getaddrinfo.c: Likewise.
12349 * include/alloca.h (extend_alloca): New define. Based on stack
12350 direction it'll try to append to the previouls allocated buffer.
12352 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
12354 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
12355 use the same service for AF_INET and AF_INET6.
12357 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12359 * intl/localealias.c (read_alias_file): Use only about 400 bytes
12360 of stack space instead of 16k.
12362 2002-11-18 Wolfram Gloger <wg@malloc.de>
12365 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
12366 nothing if not initialized. Bug report from Marcus Brinkmann
12367 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12369 2002-11-19 Roland McGrath <roland@redhat.com>
12371 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
12374 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
12375 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
12376 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
12377 * configure: Regenerated.
12379 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12381 * include/dlfcn.h: __libc_dlopen is now a macro calling
12382 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
12383 (__libc_dlopen_mode): New prototype.
12384 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
12385 new parameter. Store new parameter in mode field of structure passed
12387 (struct do_dlopen_args): Add new field mode.
12388 (do_dlopen): Pass mode from parameter structure to _dl_open.
12390 2002-11-11 Randolf Chung <tausq@debian.org>
12392 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
12393 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
12394 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
12396 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
12398 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
12399 Set -mdisable-fpregs for this file.
12401 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
12403 * sysdeps/unix/sysv/linux/configure.in:
12404 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
12405 from gcc-3.0 era for backwards compatibility.
12406 * sysdeps/unix/sysv/linux/configure: Regenerate.
12408 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
12409 Define mcontext_t as a sigcontext.
12411 2002-11-18 Roland McGrath <roland@redhat.com>
12413 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
12414 Free memory in `last_result' if it was used.
12416 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
12417 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
12418 Do the parsing inline instead of copying strings and calling
12419 inet_network, and properly skip all alias names not matching the form.
12421 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
12423 2002-11-17 Ulrich Drepper <drepper@redhat.com>
12425 * manual/pattern.texi (Wordexp Example): Fix sample code.
12427 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
12428 childs stack which will be loaded into the %esi register.
12430 2002-11-14 Paul Eggert <eggert@twinsun.com>
12432 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
12433 overflow when skipping the question part and when unpacking aliases.
12435 2002-11-15 Roland McGrath <roland@redhat.com>
12437 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
12438 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
12439 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
12441 2002-11-15 Jakub Jelinek <jakub@redhat.com>
12443 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
12444 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
12446 2002-11-15 Roland McGrath <roland@redhat.com>
12448 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
12449 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
12450 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
12451 (+make-include-of-dep): New canned sequence.
12453 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
12454 From Dmitry V. Levin <ldv@altlinux.org>.
12456 2002-11-14 Roland McGrath <roland@redhat.com>
12458 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
12459 * inet/herrno.c (__libc_h_errno): Likewise.
12460 * resolv/res_libc.c (__libc_res): Likewise.
12461 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
12462 (__res_state) [! USE___THREAD]: Don't define as weak.
12463 * csu/Versions: Revert last change.
12464 * resolv/Versions: Revert last change.
12466 * Makerules ($(common-objpfx)%.make): New pattern rule.
12467 * tls.make.c: New file.
12468 * Makefile (distribute): Add it.
12470 * sysdeps/generic/errno.c [! USE___THREAD]
12471 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
12472 with compat_symbol so they are not link-time visible.
12473 [! USE___THREAD] (__libc_errno): New alias for errno.
12474 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12475 Add __libc_errno here.
12476 * inet/herrno.c [USE___THREAD]: Use this conditional
12477 in place of [USE_TLS && HAVE___THREAD].
12478 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
12479 (h_errno, _h_errno): Declare these with compat_symbol so they are not
12481 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
12482 * resolv/res_libc.c [! USE___THREAD]
12483 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
12484 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
12485 (__libc_res): Define as alias for _res.
12486 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12487 Add __libc_h_errno and __libc_res here.
12489 2002-11-14 Jakub Jelinek <jakub@redhat.com>
12491 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
12492 * resolv/Versions (h_errno, _res): Likewise.
12494 2002-11-14 Roland McGrath <roland@redhat.com>
12496 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
12497 (%.symlist): Likewise.
12499 2002-11-13 Roland McGrath <roland@redhat.com>
12501 * scripts/abilist.awk: New file.
12502 * Makefile (distribute): Add it.
12503 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
12504 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
12505 [$(subdir) = elf] (tests): Depend on libc.symlist.
12506 (generated, common-generated): Add those files.
12508 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
12509 * configure: Regenerated.
12510 * config.make.in (OBJDUMP): New variable, substituted by configure.
12512 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
12513 (mallochook, reallochook): Set them up.
12514 (checkhdr): Check HDR->magic2 value.
12515 (freehook): Reset HDR->magic2.
12516 (memalignhook): New static function.
12517 (old_memalign_hook): New static variable.
12518 (mcheck, reallochook): Set __memalign_hook to memalignhook.
12520 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
12523 2002-11-13 Andreas Jaeger <aj@suse.de>
12525 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
12527 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12529 2002-11-11 Paul Eggert <eggert@twinsun.com>
12531 * manual/crypt.texi (Cryptographic Functions): Mention that
12532 the MD5 one-way algorithm is compatible with BSD's.
12534 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12536 * posix/regex_internal.c (re_string_skip_chars): Also return the last
12538 (re_string_reconstruct): Calculate the context by itself when the
12539 offset points out of the valid range.
12540 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
12541 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
12542 (IS_WIDE_WORD_CHAR): New macro.
12543 (IS_WIDE_NEWLINE): New macro.
12545 2002-11-12 Andreas Jaeger <aj@suse.de>
12547 * sysdeps/x86_64/strchr.S: Don't use one register for two
12548 purposes, this fixes a bug noticed by test-strchr.c.
12550 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
12553 2002-11-12 Roland McGrath <roland@redhat.com>
12555 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
12556 (_G_IO_NO_BACKWARD_COMPAT): Define it.
12558 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
12559 instead of <pt-machine.h>.
12560 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
12562 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12564 2002-11-10 Roland McGrath <roland@redhat.com>
12566 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
12567 Call fputs instead of fwprintf (simpler to follow in debugger).
12569 * crypt/md5-crypt.c: Doc fix.
12571 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
12572 the beginning of generated target commands.
12574 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
12575 dependencies for these in case implicit rule search skipped the
12576 nonexistent source directory.
12577 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
12578 files with $(object-suffixes) as targets too.
12579 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
12580 and a target for it using $(make-target-directory).
12582 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
12584 2002-11-10 Roland McGrath <roland@frob.com>
12586 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
12587 * sysdeps/generic/bits/pthreadtypes.h: ... here.
12589 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
12590 l_start == 0 and l_len == 1 as we do l_len == 0.
12592 2002-11-10 Ulrich Drepper <drepper@redhat.com>
12594 * po/da.po: Update from translation team.
12596 2002-11-10 Roland McGrath <roland@redhat.com>
12598 * config.make.in (includedir): New variable, substituted by configure.
12599 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
12600 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
12602 2002-11-10 Andreas Jaeger <aj@suse.de>
12604 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
12605 REG_OLDMASK and REG_CR2 to synch with kernel header.
12608 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
12610 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
12611 * nss/getnssent_r.c (__nss_getent_r): Likewise.
12612 (__nss_setent): Likewise.
12613 (__nss_getent_r): Likewise.
12614 * inet/getnetgrent_r.c (innetgr): Likewise.
12615 (__internal_setnetgrent_reuse): Likewise.
12616 (internal_getnetgrent_r): Likewise.
12617 * inet/ether_hton.c (ether_hostton): Likewise.
12618 * inet/ether_ntoh.c (ether_ntohost): Likewise.
12619 * sunrpc/netname.c (netname2user): Likewise.
12620 * sunrpc/publickey.c (getpublickey): Likewise.
12621 (getsecretkey): Likewise.
12623 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
12625 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
12626 error in range calculation.
12628 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12630 * string/test-strspn.c (do_test): Ensure zero termination.
12631 * string/test-strpbrk.c (do_test): Likewise.
12632 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
12633 * string/test-strncpy.c (stupid_strncpy): Likewise.
12634 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
12636 2002-10-08 Roland McGrath <roland@redhat.com>
12638 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
12639 nonzero characters.
12641 2002-09-22 H.J. Lu <hjl@gnu.org>
12643 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
12644 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
12645 only if __NR_mmap2 is defined.
12647 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
12648 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
12649 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
12650 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
12652 2002-11-08 Jakub Jelinek <jakub@redhat.com>
12654 * posix/bug-regex13.c (tests): Add new test.
12656 * string/test-strchr.c (stupid_strchr): New function.
12657 (do_random_tests): Make sure the string is zero terminated.
12658 * string/test-strpbrk.c (stupid_strpbrk): New function.
12659 (do_random_tests): Make sure the string is zero terminated.
12660 * string/test-strcmp.c (stupid_strcmp): New function.
12661 (do_random_tests): Make sure the strings are zero terminated.
12662 * string/test-strspn.c (stupid_strspn): New function.
12663 (simple_strspn): Rename rej argument to acc.
12664 (do_random_tests): Make sure the string is zero terminated.
12665 * string/test-strcspn.c (stupid_strcspn): New function.
12666 * string/test-strncpy.c (stupid_strncpy): New function.
12667 * string/test-stpncpy.c (stupid_stpncpy): New function.
12668 * string/test-strncmp.c (stupid_strncmp): New function.
12669 (do_random_tests): Make sure the strings are zero terminated.
12670 * string/test-string.h (impl_t): Change test into long.
12671 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
12673 2002-11-08 Roland McGrath <roland@redhat.com>
12675 * sysdeps/ia64/elf/configure.in: Add TLS check.
12676 From Ian Wienand <ianw@cse.unsw.edu.au>.
12677 * sysdeps/ia64/elf/configure: Regenerated.
12679 2002-11-07 Roland McGrath <roland@redhat.com>
12681 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
12682 place of _IO_new_do_write.
12683 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
12684 #undef before versioned_symbol use.
12686 2002-11-07 Richard Henderson <rth@redhat.com>
12688 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
12689 * configure: Regenerated.
12690 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
12691 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
12692 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
12693 _dl_fini via gp-relative relocations.
12694 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
12696 * elf/tls-macros.h: Add alpha versions.
12697 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
12698 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
12699 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
12700 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
12701 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
12702 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
12703 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
12704 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
12705 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
12706 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
12707 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
12708 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12709 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
12710 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
12711 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
12712 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
12713 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
12714 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
12716 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
12717 Kill argument registers across the inline syscall.
12719 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
12721 * linuxthreads/sysdeps/alpha/tls.h: New file.
12722 * sysdeps/alpha/dl-tls.h: New file.
12724 2002-10-29 David Mosberger <davidm@hpl.hp.com>
12726 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
12727 (gmon_initializer): New function.
12728 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
12729 __gmon_start__ here. Call it from gmon_initializer() instead.
12731 2002-03-12 H.J. Lu <hjl@gnu.org>
12733 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
12734 tst-array2, and tst-array3.
12735 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
12736 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
12737 ($(objpfx)tst-array1.out): New target.
12738 ($(objpfx)tst-array2): Likewise.
12739 ($(objpfx)tst-array2.out): Likewise.
12740 ($(objpfx)tst-array3.out): Likewise.
12741 * elf/tst-array1.c: New file.
12742 * elf/tst-array1.exp: Likewise.
12743 * elf/tst-array2.c: Likewise.
12744 * elf/tst-array2dep.c: Likewise.
12745 * elf/tst-array2.exp: Likewise.
12746 * elf/tst-array3.c: Likewise.
12748 2002-10-28 David Mosberger <davidm@hpl.hp.com>
12750 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
12751 Don't add L->l_addr to array entry values.
12753 2002-11-07 Jakub Jelinek <jakub@redhat.com>
12755 * string/test-string.h: New file.
12756 * string/test-strlen.c: New file.
12757 * string/test-string.h: New file.
12758 * string/test-strcmp.c: New file.
12759 * string/test-strchr.c: New file.
12760 * string/test-strrchr.c: New file.
12761 * string/test-strcpy.c: New file.
12762 * string/test-stpcpy.c: New file.
12763 * string/test-strncpy.c: New file.
12764 * string/test-stpncpy.c: New file.
12765 * string/test-strpbrk.c: New file.
12766 * string/test-strcspn.c: New file.
12767 * string/test-strspn.c: New file.
12768 * string/test-strcat.c: New file.
12769 * string/test-strncmp.c: New file.
12770 * string/test-memchr.c: New file.
12771 * string/test-memcmp.c: New file.
12772 * string/test-memset.c: New file.
12773 * string/test-memcpy.c: New file.
12774 * string/test-mempcpy.c: New file.
12775 * string/test-memmove.c: New file.
12776 * string/Makefile (strop-tests): New variable.
12777 (tests): Add strop-tests.
12778 (distribute): Add test-string.h.
12780 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12782 * posix/regcomp.c: Use tabs instead of spaces.
12783 * posix/regexec.c: Likewise.
12784 * posix/regex_internal.h: Likewise.
12786 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
12788 2002-11-06 Jakub Jelinek <jakub@redhat.com>
12790 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
12792 (regcomp): Don't set can_be_null here.
12793 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
12794 (re_compile_internal): Clear can_be_null, set regs_allocated.
12796 * posix/regcomp.c (re_set_fastmap): New function.
12797 (re_compile_fastmap_iter): Use it. Remove redundant type ==
12798 COMPLEX_BRACKET check.
12799 * posix/regexec.c (re_search_internal): Optimize searching with
12800 fastmap. Call re_string_reconstruct even if match_first is
12801 smaller than raw_mbs_idx.
12803 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
12805 * posix/regcomp (free_dfa_content): Use free_state.
12806 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
12807 pointers in case that realloc failed.
12808 (re_node_set_merge): Likewise.
12809 (register_state): Likewise.
12810 (create_newstate_common): Invoke memory release functions in case of
12812 (create_ci_newstate): Likewise.
12813 (create_cd_newstate): Likewise.
12814 (free_state): New function.
12815 * posix/regexec.c (re_search_internal): Invoke memory release
12816 functions in case of error conditions.
12817 (sift_states_backward): Likewise.
12818 (merge_state_array): Likewise.
12819 (add_epsilon_src_nodes): Likewise.
12820 (sub_epsilon_src_nodes): Likewise.
12821 (search_subexp): Likewise.
12822 (sift_states_bkref): Likewise.
12823 (transit_state_sb): Likewise.
12824 (transit_state_mb): Likewise.
12825 (transit_state_bkref_loop): Likewise.
12826 (group_nodes_into_DFAstates): Likewise.
12827 (push_fail_stack): Don't edit pointers in case that realloc failed.
12828 (extend_buffers): Likewise.
12829 (match_ctx_add_entry): Likewise.
12831 2002-11-06 Roland McGrath <roland@redhat.com>
12833 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
12834 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12836 * configure.in: Add checks on as and ld for binutils 2.13 or later.
12837 * configure: Regenerated.
12839 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12841 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
12842 If re_compile_internal failed free fastmap buffer.
12843 (free_dfa_content): Broken out of regfree function. Frees all dfa
12845 (regfree): Add free_dfa_content.
12846 (re_compile_internal): If any of the called functions fails free
12847 all dfa related memory.
12849 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12851 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
12852 warnings from the kernel headers.
12854 2002-11-05 Roland McGrath <roland@redhat.com>
12856 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
12857 From Johannes Stezenbach <js@convergence.de>.
12859 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
12860 #errlist-compat magic comment to give 123 as size.
12861 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
12862 (libc: GLIBC_2.2): ... here.
12863 (libc: GLIBC_2.3): Likewise.
12865 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12867 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
12868 which happens at the beginning so that we can unload modules in
12871 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12873 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
12874 under [__USE_MISC || _ASM].
12876 * elf/elf.h: Remove the obsolete SH TLS relocations.
12878 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12880 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
12882 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
12885 __NR_pread64 and __NR_pwrite64.
12886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12887 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
12889 Revert change to use INLINE_SYSCALL.
12890 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12891 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12892 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12893 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
12895 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12897 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12898 Update clobber list and add a comment about the syscall ABI.
12900 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
12901 s_pwrite64, s_ftruncate, s_truncate): Re-add.
12903 2002-11-05 Jakub Jelinek <jakub@redhat.com>
12905 * iconv/gconv_dl.c (free_mem): Clear loaded.
12906 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
12909 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12911 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
12913 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
12914 as old code without locking. _IO_seekoff calls this function after
12915 locking the stream.
12916 * libio/ioseekpos.c: Likewise for _IO_seekpos.
12917 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
12918 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
12920 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
12921 of _IO_seekoff_internal.
12922 (_IO_rewind): Likewise.
12923 * libio/ioftell.c: Likewise.
12924 * libio/ftello.c: Likewise.
12925 * libio/ftello64.c: Likewise.
12926 * libio/iofgetpos.c: Likewise.
12927 * libio/iofgetpos64.c: Likewise.
12928 * libio/oldiofgetpos.c: Likewise.
12929 * libio/oldiofgetpos64.c: Likewise.
12930 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
12931 _IO_seekpos_internal.
12932 * libio/iofsetpos64.c: Likewise.
12933 * libio/oldiofsetpos.c: Likewise.
12934 * libio/oldiofsetpos64.c: Likewise.
12936 2002-11-04 Roland McGrath <roland@redhat.com>
12938 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
12939 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
12940 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
12941 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
12942 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12943 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12944 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12945 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
12946 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
12947 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
12949 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
12950 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
12951 Remove these, no longer used.
12953 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
12956 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
12957 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
12958 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
12959 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
12960 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
12963 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
12964 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12965 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
12967 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12968 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
12970 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12972 2002-11-03 Roland McGrath <roland@redhat.com>
12974 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
12975 `_dl_tls_static_used'.
12976 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
12977 (__libc_setup_tls): Initialize it. Let the initial value of
12978 _dl_tls_static_size indicate some surplus space in the computed value.
12979 * elf/dl-open.c (_dl_tls_static_size): New variable.
12980 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
12981 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
12982 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
12983 (CHECK_STATIC_TLS): Use it.
12984 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
12985 closed objects occupied a trailing contiguous chunk of static TLS area.
12987 2002-10-18 Bruno Haible <bruno@clisp.org>
12989 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
12991 2002-11-04 Ulrich Drepper <drepper@redhat.com>
12993 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
12994 _wide_data->_IO_read_end if adjustment can be made in the current
12997 * sysdeps/unix/sysv/linux/fexecve.c: New file.
12999 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
13000 wide oriented streams are used.
13002 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
13003 service hasn't been used [PR libc/4744].
13005 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
13006 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
13008 * manual/examples/dir.c: Don't include <stddef.h>.
13009 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
13010 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
13012 2002-11-02 H.J. Lu <hjl@gnu.org>
13014 * stdio-common/reg-printf.c: Include <stddef.h>.
13016 2002-11-03 Ulrich Drepper <drepper@redhat.com>
13018 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
13020 * po/ca.po: Update from translation team.
13021 * po/es.po: Likewise.
13023 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
13024 is defined write out memory map.
13025 * sysdeps/unix/sysv/linux/segfault.c: New file.
13027 2002-11-02 Roland McGrath <roland@redhat.com>
13029 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
13030 pointers that can alias.
13031 Reported by Daniel Jacobowitz <drow@mvista.com>.
13033 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
13035 2002-11-02 Roland McGrath <roland@redhat.com>
13037 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
13038 description to be clearer and to say that *RESULT is set to ENTRY.
13040 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13042 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
13043 dests_ch arrays together. Alloca or malloc dest_states,
13044 dest_states_word and dest_states_nl arrays together. Free memory on
13047 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
13049 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
13050 and current_saltbits.
13052 2002-11-02 Roland McGrath <roland@redhat.com>
13054 * stdio-common/reg-printf.c: Include <stdlib.h>.
13056 2002-11-02 H.J. Lu <hjl@gnu.org>
13058 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
13059 caller to EXTRA instead of execve.
13061 2002-11-01 Roland McGrath <roland@redhat.com>
13063 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
13064 in place of [!(USE_TLS && HAVE___THREAD)].
13065 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
13067 2002-10-31 Roger Sayle <roger@eyesopen.com>
13069 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
13071 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
13073 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
13074 without defining FP_ROUNDMODE.
13076 2002-10-29 Jakub Jelinek <jakub@redhat.com>
13078 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
13079 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
13081 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
13082 (OLD_SIGLIST_SIZE): Define.
13083 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
13084 (OLD_SIGLIST_SIZE): Define.
13085 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
13087 2002-11-01 Jakub Jelinek <jakub@redhat.com>
13089 * sysdeps/ia64/strncpy.S: Fix recovery code.
13091 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13093 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
13095 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
13097 * elf/dl-libc.c (free_mem): Likewise.
13098 * iconv/gconv_conf.c (free_mem): Likewise.
13099 * iconv/gconv_db.c (free_mem): Likewise.
13100 * iconv/gconv_dl.c (free_mem): Likewise.
13101 * iconv/gconv_cache.c (free_mem): Likewise.
13102 * intl/finddomain.c (free_mem): Likewise.
13103 * intl/dcigettext.c (free_mem): Likewise.
13104 * locale/setlocale.c (free_mem): Likewise.
13105 * misc/fstab.c (fstab_free): Likewise.
13106 * nss/nsswitch.c (free_mem): Likewise.
13107 * posix/regcomp.c (free_mem): Likewise.
13108 * resolv/gai_misc.c (free_res): Likewise.
13109 * stdlib/fmtmsg.c (free_mem): Likewise.
13110 * sunrpc/clnt_perr.c (free_mem): Likewise.
13111 * sysdeps/generic/setenv.c (free_mem): Likewise.
13112 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
13113 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
13114 * time/tzset.c (free_mem): Likewise.
13115 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
13116 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
13117 * malloc/set-freeres.c (__libc_freeres): Likewise.
13119 * login/getutent.c: Include stdlib.h instead of stddef.h.
13120 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13121 (__getutent): Allocate buffer the first time it is run.
13122 * login/getutid.c: Include stdlib.h instead of stddef.h.
13123 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13124 (__getutid): Allocate buffer the first time it is run.
13125 * login/getutline.c: Include stdlib.h instead of stddef.h.
13126 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13127 (__getutline): Allocate buffer the first time it is run.
13128 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
13129 (mtrace): Allocate malloc_trace_buffer.
13130 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
13131 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
13132 * string/strerror.c: Include libintl.h and errno.h.
13133 (buf): New variable.
13134 (strerror): Only allocate buffer if actually needed (unknown error).
13135 * time/tzfile.c (transitions): Add libc_freeres_ptr.
13138 2002-10-25 Jakub Jelinek <jakub@redhat.com>
13140 * include/libc-symbols.h (libc_freeres_ptr): New macro.
13141 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
13143 (__libc_freeres): Free all pointers in that section.
13144 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
13145 commands when creating .lds script.
13146 (LDSEDCMD-c.so): New variable.
13147 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13148 (rcmd_af): Use strdup to allocate ahostbuf.
13149 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13150 (rexec_af): Use strdup to allocate ahostbuf.
13151 * stdio-common/reg-printf.c (printf_funcs): Remove.
13152 (__printf_arginfo_table): Change into printf_arginfo_function **.
13153 Add libc_freeres_ptr.
13154 (__register_printf_function): Allocate __printf_arginfo_table
13155 and __printf_function_table the first time it is called.
13156 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
13157 printf_arginfo_function **.
13158 (parse_one_spec): Add __builtin_expect.
13159 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
13160 (free_mem): Remove.
13161 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
13162 (free_mem): Remove.
13163 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
13164 (string_space, map): Add libc_freeres_ptr.
13165 (free_mem): Remove.
13166 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
13167 (free_mem): Remove.
13168 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
13169 (free_mem): Remove.
13170 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
13171 (buffer): Add libc_freeres_ptr.
13172 (free_mem): Remove for _LIBC.
13173 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
13174 (free_mem): Remove.
13175 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
13176 (free_mem): Remove.
13177 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
13178 (free_mem): Remove.
13179 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
13180 (free_mem): Remove.
13181 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
13182 (free_mem): Remove.
13183 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
13184 (free_mem): Remove.
13185 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
13187 (free_mem): Remove.
13188 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
13190 (free_mem): Remove.
13192 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13194 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
13195 instead of duplicating the whole function in libc.
13197 2002-10-31 Roland McGrath <roland@redhat.com>
13199 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
13200 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
13202 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13204 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
13205 32bit-predefine when creating .new32 list and -U for each
13206 32bit-predefine when creating .new64 list.
13207 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
13209 2002-10-29 Andreas Schwab <schwab@suse.de>
13211 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
13212 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
13214 2002-10-25 Roland McGrath <roland@redhat.com>
13216 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
13217 * sysdeps/unix/sysv/linux/configure: Regenerated.
13219 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
13220 _dl_starting_up decl.
13222 2002-10-20 H.J. Lu <hjl@gnu.org>
13224 * sysdeps/unix/sysv/linux/configure.in: Don't check
13225 /lib/modules/`uname -r`/build/include for kernel headers if
13227 * sysdeps/unix/sysv/linux/configure: Regenerated.
13229 2002-10-25 Roland McGrath <roland@redhat.com>
13231 * math/math.h (M_LOG2El): Correct the value.
13232 From Stephen L Moshier <steve@moshier.net>.
13234 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
13235 conditional from __libc_multiple_libcs access. Remove kludge for weak
13236 symbol access with old compilers we no longer support.
13237 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13238 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
13240 2002-10-25 Roland McGrath <roland@redhat.com>
13242 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
13243 implement SV_RESETHAND by translating it to SA_RESETHAND.
13245 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
13247 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
13248 type on ELF64 platforms.
13250 2002-10-24 Ulrich Drepper <drepper@redhat.com>
13252 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
13254 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
13256 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13258 * elf/dl-misc.c: Include <sysdep.h>.
13259 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
13261 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
13262 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13263 (INLINE_SYSCALL): Use that.
13264 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
13265 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13266 (INLINE_SYSCALL): Use that.
13267 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
13268 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13269 (INLINE_SYSCALL): Use that.
13270 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
13272 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13273 (__INTERNAL_SYSCALL_STRING): Define.
13274 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13276 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13277 (__INTERNAL_SYSCALL_STRING): Define.
13278 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
13279 __SYSCALL_STRING to inline_syscall*.
13280 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
13282 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
13283 inline_syscall4, inline_syscall5, inline_syscall6): Add string
13286 2002-10-24 Roland McGrath <roland@redhat.com>
13288 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
13289 * sysdeps/unix/sysv/linux/init-first.c: Not here.
13290 * sysdeps/powerpc/elf/libc-start.c: Or here.
13291 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
13292 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
13293 * sysdeps/unix/sysv/aix/init-first.c: Or here.
13294 * sysdeps/generic/libc-start.c: Or here.
13295 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
13296 access with [! SHARED].
13297 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13299 * libio/bug-wfflush.c: New file.
13300 * libio/Makefile (tests): Add bug-wfflush.
13302 2002-10-23 Roland McGrath <roland@redhat.com>
13304 * stdio-common/tst-fphex.c: New file.
13305 * stdio-common/Makefile (tests): Add tst-fphex.
13306 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
13307 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
13308 chars always before the value digits.
13309 Reported by James Antill <james.antill@redhat.com>.
13311 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13313 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
13314 (free_mem): New function.
13315 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
13316 if not cross compiling.
13317 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
13318 (bug-regex14-ENV): Set.
13319 (bug-regex14-mem): New target.
13320 * posix/bug-regex14.c: New file.
13322 2002-10-23 Roland McGrath <roland@redhat.com>
13324 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
13325 target, so we don't touch it when the link fails.
13327 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
13328 Check for the result overflowing off_t and fail with EOVERFLOW.
13329 * libio/ioftell.c (_IO_ftell): Likewise.
13330 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
13332 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
13333 use a temporary timeval on the stack for gettimeofday and copy it.
13334 * login/logout.c (logout): Likewise.
13335 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
13337 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
13338 Use __SWORD_TYPE instead of int for member types.
13339 (struct statfs64): Likewise.
13340 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
13341 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
13342 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
13343 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
13344 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
13346 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
13347 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
13348 (ST_NODIRATIME): Restore fixed value of 2048.
13349 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
13350 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
13352 Rearranged <bits/types.h> definitions to reduce duplication.
13353 * sysdeps/generic/bits/types.h: Rewritten, using macros from
13354 <bits/wordsize.h> and new header <bits/typesizes.h>.
13355 * posix/Makefile (headers): Add bits/typesizes.h here.
13356 * sysdeps/generic/bits/typesizes.h: New file.
13357 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
13358 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
13359 * sysdeps/mach/hurd/bits/typesizes.h: New file.
13360 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
13361 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
13362 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
13363 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
13364 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
13365 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
13366 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
13367 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
13368 <bits/pthreadtypes.h> here, not in <bits/types.h>.
13369 * signal/signal.h: Likewise.
13371 * streams/stropts.h: Include <bits/xtitypes.h>.
13372 * streams/Makefile (headers): Add bits/xtitypes.h here.
13373 * sysdeps/generic/bits/xtitypes.h: New file.
13374 * sysdeps/s390/bits/xtitypes.h: New file.
13375 * sysdeps/ia64/bits/xtitypes.h: New file.
13376 * sysdeps/x86_64/bits/xtitypes.h: New file.
13378 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
13379 * sysdeps/generic/bits/ipctypes.h: New file.
13380 * sysdeps/mips/bits/ipctypes.h: New file.
13381 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
13382 * sysdeps/gnu/bits/msq.h: Likewise.
13383 * sysvipc/sys/ipc.h: Likewise.
13385 2002-10-22 Ulrich Drepper <drepper@redhat.com>
13387 * elf/dl-load.c (struct filebuf): For buf element to have the
13388 alignment of ElfXX_Ehdr since this is what will be stored in it.
13390 2002-10-22 Jakub Jelinek <jakub@redhat.com>
13392 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
13393 into pointer to locrec_offset.
13394 (add_locale_to_archive): Adjust callers. Free normalized_name right
13395 before returning, not immediately after add_locale, pass it to
13396 add_alias if not NULL instead of name. Rename second normalized_name
13397 occurence to nnormalized_codeset_name.
13399 * locale/programs/locarchive.c (enlarge_archive): Make sure
13400 string_size is always a multiple of 4.
13401 Reported by Andreas Schwab <schwab@suse.de>.
13403 2002-10-21 Andreas Schwab <schwab@suse.de>
13405 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
13406 caller to EXTRA instead of execve, since the latter has a
13407 higher-priority implementation in linuxthreads.
13409 2002-10-21 Roland McGrath <roland@redhat.com>
13411 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
13412 slotinfo list's len member to the proper size, not just 1.
13413 Initialize static_map.l_tls_initimage.
13415 * elf/dl-open.c (dl_open_worker): Fix loop searching for
13416 dtv_slotinfo_list element containing new modules' l_tls_modid.
13418 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
13419 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
13420 * elf/Makefile (tests): Add tst-tls9.
13421 (tests-static): Add tst-tls9-static.
13422 (tst-tls9-static-ENV): New variable.
13423 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
13425 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
13426 modids used by partially loaded modules being closed can't be known.
13428 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
13430 * posix/Makefile: Add a test case for the bug reported by Aharon
13431 Robbins <arnold@skeeve.com>.
13432 * posix/bug-regex13.c: New file.
13433 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
13435 2002-10-21 Ulrich Drepper <drepper@redhat.com>
13437 * csu/gmon-start.c: Pretty printing.
13439 2002-10-19 Art Haas <ahaas@neosoft.com>
13441 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
13442 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
13443 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
13444 * configure: Regenerated.
13446 2002-10-19 Roland McGrath <roland@redhat.com>
13448 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
13449 and then set $subdirs directly, because the new Autoconf breaks
13450 compatibility in every way imaginable and insists on whining
13451 about usage that worked since the dawn of time.
13452 * configure: Regenerated.
13454 * configure: Regenerated (using Autoconf 2.54).
13455 * sysdeps/alpha/elf/configure: Likewise.
13456 * sysdeps/generic/configure: Likewise.
13457 * sysdeps/i386/elf/configure: Likewise.
13458 * sysdeps/ia64/elf/configure: Likewise.
13459 * sysdeps/mach/hurd/configure: Likewise.
13460 * sysdeps/mach/configure: Likewise.
13461 * sysdeps/unix/configure: Likewise.
13462 * sysdeps/unix/common/configure: Likewise.
13463 * sysdeps/unix/sysv/aix/configure: Likewise.
13464 * sysdeps/unix/sysv/linux/configure: Likewise.
13465 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13466 * sysdeps/x86_64/elf/configure: Likewise.
13468 * config.make.in: Nix completely-soft nonsense.
13469 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
13470 of machine directories instead of fpu subdirectory.
13471 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
13472 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
13473 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
13474 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
13475 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
13476 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
13477 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
13478 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
13479 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
13480 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
13481 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
13482 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
13483 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
13484 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
13485 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
13486 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
13487 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
13488 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
13489 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
13490 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
13491 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
13492 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
13493 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
13494 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
13495 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
13496 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
13497 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
13498 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
13499 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
13500 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
13501 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
13502 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
13503 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
13504 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
13505 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
13506 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
13507 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
13508 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
13509 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
13510 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
13512 2002-10-19 Bruno Haible <bruno@clisp.org>
13514 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
13516 2002-10-18 Roland McGrath <roland@redhat.com>
13518 * io/Makefile (routines): Add lchmod.
13519 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
13520 * sysdeps/generic/lchmod.c: New file.
13521 * sysdeps/mach/hurd/lchmod.c: New file.
13522 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
13524 2002-10-18 Art Haas <ahaas@neosoft.com>
13526 * configure.in: Remove remaining AC_FD_CC macros, and replace
13527 AC_FD_MSG with AS_MESSAGE_FD.
13529 2002-10-18 Roland McGrath <roland@redhat.com>
13531 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
13532 typos: VALUE -> FINALADDR.
13534 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
13535 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
13536 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
13537 (inline_syscall6): Move these macros ...
13538 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
13540 * configure.in (libc_link_dests, libc_link_sources): Remove these
13541 variables and the AC_LINK_FILES call.
13543 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
13544 change to put new symbols here instead of in GLIBC_2.2.
13545 * sysdeps/powerpc/Subdirs: Move this file ...
13546 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
13548 2002-10-07 Roland McGrath <roland@redhat.com>
13550 * sysdeps/generic/bits/time.h: Replaced with contents of the
13551 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
13552 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
13553 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
13554 macros is ok even for architectures that don't now implement them.
13555 * sysdeps/mach/hurd/bits/time.h: File removed.
13556 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
13557 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
13558 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
13559 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
13560 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
13562 2002-10-18 Jeff Bailey <jbailey@gnu.org>
13564 * configure.in: Replace obsolete AC_OUTPUT syntax with
13565 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
13567 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
13568 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
13570 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
13571 * sysdeps/alpha/elf/configure.in: Likewise.
13572 * sysdeps/i386/elf/configure.in: Likewise.
13573 * sysdeps/mach/hurd/configure.in: Likewise.
13574 * sysdeps/x86_64/elf/configure.in: Likewise.
13576 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
13578 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
13579 * sysdeps/generic/configure.in: Likewise.
13580 * sysdeps/i386/elf/configure.in: Likewise.
13581 * sysdeps/ia64/elf/configure.in: Likewise.
13582 * sysdeps/mach/configure.in: Likewise.
13583 * sysdeps/mach/hurd/configure.in: Likewise.
13584 * sysdeps/unix/configure.in: Likewise.
13585 * sysdeps/unix/common/configure.in: Likewise.
13586 * sysdeps/unix/sysv/aix/configure.in: Likewise.
13587 * sysdeps/unix/sysv/linux/configure.in: Likewise.
13588 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
13589 * sysdeps/x86_64/elf/configure.in: Likewise.
13591 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
13592 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
13593 that it's obvious when extra autoconf machinery is being dragged in.
13595 2002-10-18 Roland McGrath <roland@redhat.com>
13597 * configure.in: Remove bogus echo included in
13598 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
13599 * configure: Regenerated.
13601 2002-10-18 Jakub Jelinek <jakub@redhat.com>
13603 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
13604 (statfs_filesize_max): New function.
13605 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
13606 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
13607 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
13608 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
13609 statfs_filesize_max.
13610 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13611 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
13612 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
13614 2002-10-17 Roland McGrath <roland@redhat.com>
13616 * configure.in (MIG): Just AC_SUBST it here.
13617 * configure: Regenerated.
13618 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
13619 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
13620 * sysdeps/mach/configure: Regenerated.
13622 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
13623 and AC_PROVIDE([_AS_CR_PREPARE]).
13625 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
13626 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
13628 * elf/dl-support.c: Move _dl_tls_* variables to ...
13629 * sysdeps/generic/libc-tls.c: ... here.
13631 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
13632 allow IDX to be one past the current last slotinfo entry.
13633 (_dl_close): Pass IMAP->l_init_called for that parameter.
13635 2002-10-07 Andreas Schwab <schwab@suse.de>
13637 * aclocal.m4: Fix for autoconf 2.53.
13638 * configure.in: Likewise. Require autoconf 2.53.
13640 2002-10-08 Richard Henderson <rth@redhat.com>
13642 * soft-fp/op-4.h: Handle carry correctly in
13643 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
13644 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
13645 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
13647 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13649 * configure.in: Compute completely-soft.
13650 * config.make.in: Make completely-soft available to sub-makes.
13651 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
13652 gcc-double-routines. Add sim-full.c. Add fenv_const and
13653 fe_nomask to libm-support.
13654 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
13655 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
13656 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
13657 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
13658 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
13659 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
13660 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
13661 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
13662 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
13663 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
13664 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
13665 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
13666 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
13667 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
13668 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
13669 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
13670 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
13671 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
13672 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
13673 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
13675 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
13676 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
13677 FP_HANDLE_EXCEPTIONS.
13678 Define FP_ROUNDMODE.
13679 Redefine FP_* macros to correspond to the FE_* bit positions.
13680 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
13681 Define externs for __sim_exceptions, __sim_disabled_exceptions,
13682 __sim_round_mode, __simulate_exceptions.
13683 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
13684 * sysdeps/powerpc/bits/fenv.h: ...to here.
13686 2002-10-06 Jakub Jelinek <jakub@redhat.com>
13688 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13689 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
13690 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
13691 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
13694 2002-10-15 Jakub Jelinek <jakub@redhat.com>
13696 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
13697 __libc_res_nsend): New prototypes.
13698 * resolv/res_query.c (QUERYSIZE): Define.
13699 (__libc_res_nquery): Renamed from res_nquery. Added answerp
13700 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
13701 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
13702 res_nsend, pass answerp.
13703 (res_nquery): Changed into wrapper around __libc_res_nquery.
13704 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
13705 argument. Call __libc_res_nquerydomain and __libc_res_nquery
13706 instead of the non-__libc_ variants, pass them answerp.
13707 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
13708 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
13709 Added answerp argument. Call __libc_res_nquery instead of
13710 res_nquery, pass answerp.
13711 (res_nquerydomain): Changed into wrapper around
13712 __libc_res_nquerydomain.
13713 * resolv/res_send.c: Include sys/ioctl.h.
13714 (MAXPACKET): Define.
13715 (send_vc): Change arguments. Reallocate answer buffer if it is
13717 (send_dg): Likewise.
13718 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
13719 Reallocate answer buffer if it is too small and hooks are in use.
13720 Adjust calls to send_vc and send_dg.
13721 (res_nsend): Changed into wrapper around __libc_res_nsend.
13722 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
13723 just 1K answer buffer on the stack, use __libc_res_nsearch instead
13725 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
13726 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
13727 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
13728 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
13729 (gethostbyaddr): Similarly with __libc_res_nquery.
13730 * resolv/Versions (libresolv): Export __libc_res_nquery and
13731 __libc_res_nsearch at GLIBC_PRIVATE.
13733 2002-10-17 Roland McGrath <roland@redhat.com>
13735 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
13736 * configure: Regenerated.
13738 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
13739 before performing the reloc, not after.
13740 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13742 2002-10-17 Ulrich Drepper <drepper@redhat.com>
13744 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
13745 * locale/programs/linereader.c (lr_open): Likewise.
13746 * locale/programs/charmap-dir.c (charmap_open): Likewise.
13747 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13749 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
13751 * posix/bug-regex11.c: Add a test case for the bug reported by
13752 Paolo Bonzini <bonzini@gnu.org>.
13753 * posix/regexec.c (sift_states_bkref): Use correct destination of
13754 the back reference.
13756 2002-10-17 Roland McGrath <roland@redhat.com>
13758 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
13759 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
13760 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
13761 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
13762 Call it after performing TPOFF relocs.
13763 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13764 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13765 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
13767 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
13768 when closing a partially-initialized object.
13770 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
13771 instead of _dl_fatal_printf when we see PT_TLS.
13773 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
13774 instead of $(libof-$<).
13776 2002-10-16 Roland McGrath <roland@redhat.com>
13778 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
13779 instead of += to append, to be sure $(lib) gets expanded at defn time.
13780 (libof-$(cpp-src)): New variable, define this instead.
13781 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
13782 (lib): Don't use override.
13783 (CPPFLAGS-$(lib)): New variable, put -D's here.
13784 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
13785 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
13786 LIB found by $(libof-*) for basename, target, or source.
13787 * Makerules (CPPFLAGS-nonlib): New variable.
13788 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
13789 * locale/Makefile (lib): Likewise.
13790 * sunrpc/Makefile (lib): Likewise.
13792 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
13793 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
13794 * sysdeps/unix/sysv/linux/pathconf.h: New file.
13795 (statfs_link_max): New function, guts from fpathconf.c.
13796 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
13797 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13798 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
13799 to use the linux/pathconf.c code by #include rather than duplication.
13800 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
13802 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13804 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13805 Use __libc_errno only for libc itself.
13807 2002-10-16 Andreas Jaeger <aj@suse.de>
13809 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
13811 2002-10-16 Ulrich Drepper <drepper@redhat.com>
13813 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13814 Use __libc_errno only for libc itself.
13816 2002-10-15 Roland McGrath <roland@redhat.com>
13817 Jakub Jelinek <jakub@redhat.com>
13819 * sysdeps/unix/sysv/linux/Makefile
13820 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
13821 sparc/Makefile to produce a bi-arch file as needed.
13822 That's now parameterized by the variable $(64bit-predefine).
13823 Use LC_ALL=C for `comm' commands in that rule.
13824 No longer conditional on [$(no_syscall_list_h)].
13825 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
13826 (64bit-predefine): New variable.
13827 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
13828 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
13829 * sysdeps/unix/sysv/linux/powerpc/Makefile
13830 (64bit-predefine): New variable.
13832 2002-10-15 Roland McGrath <roland@redhat.com>
13834 * sysdeps/unix/sysv/linux/Makefile
13835 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
13837 * login/utmp-private.h: Declare __libc_utmp_lock.
13838 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
13839 and call __libc_utmp_jump_table functions directly, instead of using
13842 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
13843 * sysdeps/unix/sysv/linux/configure: Regenerated.
13845 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
13846 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13847 Use int32_t for ll_time.
13848 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13849 Use int32_t instead of long int for ut_session.
13850 Use an anonymous struct with 32-bit fields for ut_tv.
13851 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
13852 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
13853 here as in utmp.h for `struct utmp'.
13854 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
13855 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
13856 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
13857 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
13858 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
13859 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
13861 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
13862 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
13863 All the following files were identical or equivalent to it.
13864 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
13865 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
13866 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
13867 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
13868 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
13869 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
13870 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
13871 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
13872 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
13873 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
13875 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
13876 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
13877 Other than the previously incorrect sign of msg_iovlen, this is a
13878 no-op on 32-bit platforms. On 64-bit platforms it makes this header
13879 match their layouts as well, so the following are now identical to it.
13880 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
13881 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
13882 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
13883 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
13884 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
13886 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13888 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
13889 Define for 2.4+ kernels.
13891 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
13892 are known to have the vfork syscall. Don't confuse the CPUs
13893 branch prediction unit by jumping to the return address.
13895 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
13896 support for reiserfs and xfs.
13898 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
13900 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
13902 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
13904 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13906 * include/libc-symbols.h (attribute_tls_model_ie): Define.
13907 * include/errno.h (errno): Define to __libc_errno in libc.so.
13908 Add attribute_tls_model_ie.
13909 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
13910 Add attribute_tls_model_ie.
13911 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
13912 attribute_tls_model_ie.
13913 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
13915 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
13917 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
13918 attribute_tls_model_ie.
13919 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
13921 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
13922 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
13923 __libc_errno in USE___THREAD case.
13924 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13926 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
13927 __attribute__((tls_model (""))).
13928 * configure: Rebuilt.
13929 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
13931 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13933 * timezone/asia: Update from tzdata2002d.
13934 * timezone/australasia: Likewise.
13935 * timezone/iso3166.tab: Likewise.
13936 * timezone/southamerica: Likewise.
13937 * timezone/zone-tab: Likewise.
13939 2002-10-15 Roland McGrath <roland@redhat.com>
13941 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
13942 Adjust TCB pointer before calling free, so we get the whole block.
13944 2002-10-14 Roland McGrath <roland@redhat.com>
13946 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
13947 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
13948 extern using attribute_hidden instead of static, avoids warning.
13950 2002-10-09 Jakub Jelinek <jakub@redhat.com>
13952 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
13953 * sysdeps/unix/sysv/linux/configure: Rebuilt.
13955 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13957 * po/sv.po: Update from translation team.
13959 2002-10-12 H.J. Lu <hjl@gnu.org>
13961 * sunrpc/thrsvc.c (PROCQUIT): New.
13962 (struct rpc_arg): New.
13963 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
13964 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
13965 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
13966 (main): Modified for struct rpc_arg *.
13968 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13970 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
13972 2002-10-14 Jakub Jelinek <jakub@redhat.com>
13974 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
13975 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
13976 in ld.so even if __thread is supported.
13978 2002-10-13 Jakub Jelinek <jakub@redhat.com>
13980 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
13981 Add hack to prevent the compiler from clobbering the signal context.
13982 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
13984 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
13987 2002-10-14 Andreas Jaeger <aj@suse.de>
13989 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
13990 Guido Guenther <agx@sigxcpu.org>.
13992 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13994 * po/sk.po: Update from translation team.
13996 2002-09-26 Roland McGrath <roland@redhat.com>
13998 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
13999 dynamic string tag.
14000 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
14001 DL_DST_LIB based on $(slibdir).
14003 2002-10-13 Roland McGrath <roland@frob.com>
14005 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
14007 * sysdeps/mach/hurd/getresuid.c: New file.
14008 * sysdeps/mach/hurd/getresgid.c: New file.
14009 * sysdeps/mach/hurd/setresuid.c: New file.
14010 * sysdeps/mach/hurd/setresgid.c: New file.
14012 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
14013 setresgid): Declare them.
14014 * NEWS: Mention it.
14016 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
14017 add libc_hidden_proto.
14018 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
14019 getresuid, getresgid, setresuid, setresgid here.
14020 * Versions.def (libc): Define GLIBC_2.3.2 set.
14021 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
14022 Add libc_hidden_def.
14023 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
14024 * sysdeps/generic/setresgid.c: New file.
14025 * sysdeps/generic/setresuid.c: New file.
14026 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
14027 (sysdep_routines): Don't add getresuid and getresgid here.
14028 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
14029 (sysdep_routines): Don't add setresuid and setresgid here.
14030 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
14031 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
14032 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
14033 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
14034 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
14035 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
14036 * posix/Makefile (routines): Add them all here instead.
14037 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
14038 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
14039 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
14040 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
14041 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
14042 [! __NR_setresuid]: Include generic file.
14043 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
14044 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
14045 [! __NR_setresuid]: Include generic file.
14046 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
14047 Caller is - now, not EXTRA.
14048 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
14049 (setresuid, setresgid, getresuid, getresgid): Likewise.
14050 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
14051 Add these calls here.
14052 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
14053 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
14054 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
14055 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
14056 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
14057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
14059 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
14060 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
14062 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
14063 (sysdep_routines): Add setfsuid and setfsgid here.
14064 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
14065 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
14066 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
14067 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
14068 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
14069 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
14070 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
14071 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
14073 * hurd/errno.c: Renamed to ...
14074 * hurd/errno-loc.c: ... this.
14075 * hurd/Makefile (routines): errno -> errno-loc
14077 2002-10-13 Ulrich Drepper <drepper@redhat.com>
14079 * po/de.po: Update from translation team.
14081 * MakeTAGS: Add -E flag to xgettext runs.
14083 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14085 * po/fr.po: Update from translation team.
14087 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
14088 Optimize a bit for use in glibc.
14090 2002-10-12 Roland McGrath <roland@redhat.com>
14092 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
14093 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
14095 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14097 * po/sv.po: Update from translation team.
14099 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
14101 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
14103 (regfree): Likewise.
14104 (create_initial_state): Likewise.
14105 (analyze): Remove the substitutions which became useless.
14106 (calc_first): Likewise.
14107 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
14108 epsilon destination.
14109 (duplicate_node_closure): New function.
14110 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
14111 (calc_inveclosure): Likewise.
14112 (calc_eclosure): Likewise.
14113 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
14114 direct invocation of duplicate_node.
14115 (parse): Don't use comma operator in the return to avoid compiler
14117 (parse_reg_exp): Likewise.
14118 (parse_branch): Likewise.
14119 (parse_expression): Likewise.
14120 (parse_sub_exp): Likewise.
14121 (parse_dup_op): Likewise.
14122 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
14123 which became useless.
14124 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
14125 (create_cd_newstate): Likewise.
14126 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
14127 (re_token_t): Likewise.
14128 (re_dfa_t): Likewise.
14129 (re_node_set_remove): New macro.
14130 * posix/regexec.c (check_matching): Remove the handling
14132 (check_halt_node_context): Likewise.
14133 (proceed_next_node): Likewise.
14134 (pop_fail_stack): Fix the memory leak.
14135 (set_regs): Likewise.
14136 (free_fail_stack_return): New function.
14137 (sift_states_backward): Fix the memory leak. Remove the handling
14139 (update_cur_sifted_state): Append some if clause to avoid redundant
14141 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
14143 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
14144 (check_subexp_limits): Likewise.
14145 (search_subexp): Likewise.
14146 (sift_states_bkref): Likewise.
14147 (transit_state_mb): Likewise.
14148 (transit_state_bkref_loop): Likewise.
14149 (transit_state_bkref_loop): Likewise.
14150 (group_nodes_into_DFAstates): Likewise.
14151 (check_node_accept): Likewise.
14152 (sift_ctx_init): Add initializing.
14154 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14156 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
14159 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14161 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
14162 duplicated variable c.
14164 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
14167 * sysdeps/unix/sysv/linux/i386/sysdep.h
14168 (INTERNAL_SYSCALL_ERROR_P): New define.
14169 (INTERNAL_SYSCALL_ERRNO): Likewise.
14171 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
14172 Add hack to prevent the compiler from clobbering the signal context.
14174 2002-10-11 Roland McGrath <roland@redhat.com>
14176 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14179 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
14180 * sysdeps/sh/dl-lookupcfg.h: File removed.
14181 * sysdeps/i386/dl-lookupcfg.h: File removed.
14183 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
14184 missing labels and ; from last change.
14186 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
14187 number literals, so they are doubles instead of ints.
14189 2002-10-09 Roland McGrath <roland@redhat.com>
14191 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
14192 changed from [USE_TLS && HAVE___THREAD].
14194 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
14195 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
14196 * sysdeps/x86_64/dl-machine.h
14197 (elf_machine_type_class, elf_machine_rela): Likewise.
14198 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
14201 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
14202 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
14203 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
14205 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
14206 instead of ___tls_get_addr.
14207 (___tls_get_addr_internal): Add attribute_hidden to decl.
14209 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
14210 _dl_error_catch_tsd.
14211 * elf/rtld.c (startup_error_tsd): New function.
14212 (dl_main): Point _dl_error_catch_tsd at that.
14213 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
14214 use new function pointer instead.
14215 * elf/dl-tsd.c: New file.
14216 * elf/Makefile (routines): Add it.
14218 2002-10-07 Roland McGrath <roland@redhat.com>
14220 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
14221 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
14222 take _dl_load_lock around calling __writev.
14224 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
14225 (INLINE_SYSCALL): Use that.
14227 * sysdeps/generic/dl-sysdep.h: New file.
14228 * sysdeps/mach/hurd/dl-sysdep.h: New file.
14229 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
14230 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
14231 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
14232 access it directly.
14233 * elf/dl-minimal.c (__errno_location): Removed.
14234 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14235 Use GOTOFF access for errno.
14236 * sysdeps/unix/sysv/linux/i386/sysdep.h
14237 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14239 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14240 Use PC-relative access for errno.
14241 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14242 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14244 * include/tls.h: New file.
14245 (USE___THREAD): New macro.
14246 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
14247 libc or libpthread.
14248 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
14249 changed from [USE_TLS && HAVE___THREAD].
14250 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14251 * sysdeps/unix/i386/sysdep.S: Likewise.
14252 * sysdeps/unix/x86_64/sysdep.S: Likewise.
14253 * include/errno.h: Likewise.
14254 * include/netdb.h: Likewise.
14255 * include/resolv.h: Likewise.
14257 * sysdeps/generic/errno.c: New file.
14258 * csu/Makefile (aux): New variable, list errno.
14259 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
14260 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
14261 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
14262 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14263 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14264 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
14265 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
14266 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
14267 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14268 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
14269 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
14270 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
14271 * sysdeps/unix/alpha/sysdep.S: Likewise.
14272 * sysdeps/generic/start.c: Likewise.
14273 * sysdeps/unix/start.c: Likewise.
14274 * sysdeps/unix/arm/start.c: Likewise.
14275 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
14276 * sysdeps/unix/sparc/start.c: Likewise.
14277 * sysdeps/unix/sysv/irix4/start.c: Likewise.
14278 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
14280 * manual/search.texi (Tree Search Function, Hash Search Function):
14281 Mention search.h clearly.
14283 2002-10-05 Roland McGrath <roland@redhat.com>
14285 * elf/dl-fxstat64.c: File removed.
14286 * elf/dl-xstat64.c: File removed.
14287 * elf/Makefile (rtld-routines): Remove them.
14288 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
14289 Instead, use strong_alias instead of versioned_symbol in the
14290 !SHLIB_COMPAT case.
14291 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
14292 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
14294 * include/shlib-compat.h
14295 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
14296 [! NOT_IN_libc] (IS_IN_libc): Define it.
14297 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
14298 * elf/Makefile (CPPFLAGS-.os): Likewise.
14300 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
14301 Return the status instead of calling exit.
14303 * Makeconfig (CFLAGS): Prepend -std=gnu99.
14304 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
14305 Remove superfluous rm command, whose @ plus make bugs hid
14306 all these commands from the make output.
14308 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
14309 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
14310 Use that file's contents instead of literal echo's for the prologue.
14311 * include/features.h: Include <gnu/stubs.h> unconditionally.
14312 * include/gnu/stubs.h: New file.
14314 2002-09-30 Roland McGrath <roland@redhat.com>
14316 * elf/rtld-Rules: New file.
14317 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
14318 $(objpfx)rtld-libc.a): New targets.
14319 (generated): Add them.
14320 (reloc-link): Remove -o $@ from the variable.
14321 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
14322 (distribute): Add rtld-Rules.
14323 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
14324 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
14325 (common-mostlyclean, common-clean): Clean up rtld-* files.
14326 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
14328 2003-05-20 Jakub Jelinek <jakub@redhat.com>
14330 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
14331 If temp != NULL, copy dynamic entries which need relocation to temp
14332 array before relocating.
14333 (DL_RO_DYN_TEMP_CNT): Define.
14334 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
14335 * elf/rtld.c (_dl_start): Likewise.
14336 (dl_main): Likewise. Add dyn_temp static variable.
14338 2002-10-11 Roland McGrath <roland@redhat.com>
14340 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
14341 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
14343 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
14344 proper set of no-op insn prefixes.
14346 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
14348 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14350 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
14351 __pthread_kill_other_threads_np.
14353 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
14355 2002-10-08 Roland McGrath <roland@redhat.com>
14357 * locale/newlocale.c (__newlocale): If setting all categories to "C",
14358 just return &_nl_C_locobj instead of copying it.
14359 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
14360 * locale/duplocale.c (__duplocale): Likewise.
14362 2002-10-07 Roland McGrath <roland@frob.com>
14364 * config.h.in (HAVE_I386_SET_GDT): New #undef.
14365 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
14366 * sysdeps/mach/configure: Regenerated.
14368 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14371 Add all necessary register outputs for syscall-clobbered registers.
14373 2002-10-02 David Mosberger <davidm@hpl.hp.com>
14375 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
14376 Itanium 2 (and Itanium).
14377 Fix unwind directives and make it fit in 80 columns.
14378 * sysdeps/ia64/memset.S: Likewise.
14379 * sysdeps/ia64/memcpy.S: Likewise.
14380 Move jump table to .rodata section.
14382 2002-10-03 Roland McGrath <roland@frob.com>
14384 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
14387 2002-10-10 Andreas Jaeger <aj@suse.de>
14389 * sysdeps/x86_64/_mcount.S: Restore correct registers.
14391 2002-10-10 Ulrich Drepper <drepper@redhat.com>
14393 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
14395 2002-10-09 Ulrich Drepper <drepper@redhat.com>
14397 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
14398 _dl_allocate_tls_init. Add rtld_hidden_proto.
14399 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
14401 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
14403 * version.h (VERSION): Bump to 2.3.1.
14405 * Make-dist: Add back one of the tar invocations removed before.
14407 * stdlib/Makefile (distribute): Add allocalim.h.
14409 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
14410 (__libc_tsd_address): Use correct variable name.
14411 Patch by Stefan Jones <stefan.jones@multigig.com>.
14413 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
14414 Reported by edwardsg@sgi.com [PR libc/4678].
14416 * Versions.def (libc): Add GLIBC_2.3.1.
14417 (libpthread): Add GLIBC_2.3.1.
14419 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
14420 and __sigtimedwait.
14421 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
14422 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
14424 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
14425 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
14427 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
14428 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
14429 and make old name an alias.
14430 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
14431 and make old name an alias.
14432 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
14435 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
14436 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
14438 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
14440 * sysdeps/posix/readv.c: Likewise
14441 * sysdeps/unix/sysv/aix/readv.c: Likewise.
14442 * sysdeps/unix/sysv/linux/readv.c: Likewise.
14443 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
14445 * sysdeps/posix/writev.c: Likewise
14446 * sysdeps/unix/sysv/aix/writev.c: Likewise.
14447 * sysdeps/unix/sysv/linux/writev.c: Likewise.
14449 * include/sys/wait.h: Declare __waitid.
14450 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
14451 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
14453 * sysdeps/posix/waitid.c: Likewise.
14454 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
14456 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
14458 2002-10-07 Jakub Jelinek <jakub@redhat.com>
14460 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
14462 (__MAX_ALLOCA_CUTOFF): Define.
14463 Include allocalim.h.
14464 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
14465 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
14466 host_buffer depending on __libc_use_alloca.
14467 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
14468 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
14469 net_buffer depending on __libc_use_alloca.
14470 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
14471 buf depending on __libc_use_alloca.
14472 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
14473 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
14474 instead of hardcoded constants.
14475 Pass proper size argument to alloca and compute end for wide char
14477 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
14478 instead of hardcoded constants.
14479 * string/strcoll.c (strcoll): Likewise.
14480 * string/strxfrm.c (strxfrm): Likewise.
14481 * sysdeps/posix/readv.c (__readv): Likewise.
14482 * sysdeps/posix/writev.c (__writev): Likewise.
14483 * sysdeps/generic/allocalim.h: New file.
14485 2002-10-08 Roland McGrath <roland@redhat.com>
14487 * configure.in (aux_missing warning): Change "too old" to
14488 "incompatible versions", since for autoconf it's "too new" right now.
14489 * configure: Regenerated.
14491 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
14492 one found doesn't work on our configure.in.
14493 * configure: Regenerated.
14494 * config.make.in (AUTOCONF): New substituted variable.
14495 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
14496 (autoconf-it): ... here, use that instead of defining conditionally.
14497 Use $(AUTOCONF) instead of literal autoconf.
14498 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
14499 with this condition.
14500 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
14502 2002-10-08 Ulrich Drepper <drepper@redhat.com>
14504 * Make-dist (dist): Cleanup a bit. We are not interested in the
14505 14 char filename limit anymore. Remove intermediate files and
14508 2002-10-05 Ulrich Drepper <drepper@redhat.com>
14510 * po/sk.po: Update from translation team.
14511 * po/tr.po: Likewise.
14512 * po/gl.po: Likewise.
14514 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14516 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
14518 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14520 * version.h (RELEASE): Change to stable.
14522 2002-10-03 Jakub Jelinek <jakub@redhat.com>
14524 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
14525 __syscall_exit_group): New prototypes.
14527 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14529 * glibc 2.3 released.
14532 See ChangeLog.13 for earlier changes.