1 2004-02-23 Jakub Jelinek <jakub@redhat.com>
3 * sysdeps/posix/getaddrinfo.c (gaih_inet): If _res has not been
4 inited yet, try to init it before saving old _res.options.
5 * posix/Makefile (xtests): Add bug-ga2.
6 (generated): Add bug-ga2.mtrace and bug-ga2-mem.
7 (xtests): Depend on bug-ga2-mem.
8 ($(objpfx)bug-ga2-mem, bug-ga2-ENV): New.
9 * posix/bug-ga2.c: New test.
11 2004-02-22 Ulrich Drepper <drepper@redhat.com>
13 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Pop register
14 content also in case of an overflow in the parameter.
15 Reported by Momchil Velikov <velco@fadata.bg>.
17 2004-02-21 Ulrich Drepper <drepper@redhat.com>
19 * elf/dynamic-link.h (elf_get_dynamic_info): Recognize DF_1_NOW.
20 In ld.so, neither DT_FLAGS nor DT_FLAGS_1 must be used.
22 2004-02-21 Andreas Jaeger <aj@suse.de>
24 * posix/bug-ga1.c: Include <string.h> for memset prototype.
26 * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue.
28 * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as
31 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
33 * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__]
34 (__frame_state_for): Set frame_State_for to abort if the compiler
36 * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to
37 build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper.
39 2004-02-20 Alexandre Oliva <aoliva@redhat.com>
41 * resolv/Versions: Remove semicolon from the end of libresolv's
42 GLIBC_2.3.2 version block.
43 * Versions.def (libresolv): Add GLIBC_2.3.2.
45 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
47 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp
48 status register loads.
50 2004-02-20 Thorsten Kukuk <kukuk@suse.de>
52 * nscd/nscd.c (termination_handler): Use _exit instead of exit
54 2004-02-20 Ulrich Drepper <drepper@redhat.com>
56 * nscd/nscd.c (main): Report fork errors.
58 * dlfcn/dlsym.c: Get ld.so loading lock before the call into ld.so.
59 * dlfcn/dlvsym.c: Likewise.
60 * elf/dl-addr.c: Get loading lock while using _dl_loaded data.
61 * elf/dl-fini.c: Likewise.
62 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
64 2004-02-20 Jakub Jelinek <jakub@redhat.com>
66 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the
67 2003-11-27 atan2 test.
69 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect
70 with #ifndef __powerpc64__.
72 * sysdeps/generic/ldsodefs.h (_dl_argv, _dl_argv_internal): If
73 DL_ARGV_NOT_RELRO defined, don't use attribute_relro.
74 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
75 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
76 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
77 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
78 * sysdeps/alpha/dl-sysdep.h: New file.
79 * sysdeps/ia64/dl-sysdep.h: New file.
80 * sysdeps/sparc/dl-sysdep.h: New file.
82 2004-02-19 Jakub Jelinek <jakub@redhat.com>
84 * sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated
85 for .gnu.linkonce.b.__sparc32_atomic_locks section.
86 (__sparc32_atomic_locks): Add __sec_comment at the end of section name.
88 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
90 * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC):
92 * sysdeps/powerpc/elf/libc-start.c: Define LIBC_START_DISABLE_INLINE
93 because gcc does not allow inline of functions that call setjmp.
95 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
97 * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit.
99 2004-02-19 Jakub Jelinek <jakub@redhat.com>
101 * elf/rtld.c (_dl_argv): If DL_ARGV_NOT_RELRO defined, don't
102 use attribute_relro for _dl_argv.
103 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
104 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
105 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
106 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
108 2004-02-19 Ulrich Drepper <drepper@redhat.com>
110 * libio/iopopen.c (_IO_new_proc_open): It's not kosher to use
111 vfork instead of fork.
112 * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
114 * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which
115 prevented system-dependent handling from being used.
117 2004-02-18 Carlos O'Donell <carlos@baldric.uwo.ca>
119 * test-skeleton.c (main): If set, use environment variable
120 TIMEOUTFACTOR to scale test TIMEOUT.
122 2004-02-18 Ulrich Drepper <drepper@redhat.com>
124 * nscd/nscd_conf.c: Include <stdio_ext.h>.
126 2004-02-16 Ulrich Drepper <drepper@redhat.com>
128 * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop
131 * stdlib/canonicalize.c (__realpath): Remove unnecessary copy
134 * nscd/nscd_conf.c (nscd_parse_file): Little optimization.
136 2004-02-14 Thorsten Kukuk <kukuk@suse.de>
138 * nscd/dbg_log.c (set_logfile): Only save name of logfile,
140 (init_logfile): New function, open logfile if requested.
141 * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile.
142 * nscd/nscd.c (main): Call init_logfile after forking in background.
143 * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile.
145 2004-02-16 Ulrich Drepper <drepper@redhat.com>
147 * elf/rtld.c (dl_main): Don't fail execution if file named in
148 ld.so.preload is not present [BZ #18].
150 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended
151 changes in last patch.
153 * posix/regexec.c (transit_state): Fix typo in commented-out code
156 * sysdeps/posix/getaddrinfo.c (match_prefix): Correctly match
157 partial bytes [BZ #24].
158 * posix/Makefile (tests): Add bug-ga1.
159 * posix/bug-ga1.c: New file.
161 2004-02-13 Steven Munroe <sjmunroe@us.ibm.com>
163 * sysdeps/powerpc/powerpc64/__longjmp-common.S: New file.
164 * sysdeps/powerpc/powerpc64/__longjmp.S [NOT_IN_libc](__longjmp):
165 Non-versioned __longjmp for rtld-__longjmp.
166 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
167 default version of __longjmp.
168 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
169 (__novmx__longjmp): Original version of __longjmp.
170 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
171 Non-versioned _setjmp for rtld-_setjmp.
172 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
173 as default version of _setjmp.
174 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
175 (__novmx_setjmp): Original version of _setjmp.
176 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__vmxsetjmp): Branch to
177 __vmx__sigsetjmp and define as default version of setjmp.
178 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
179 (__novmxsetjmp): Original version of setjmp.
180 * sysdeps/powerpc/powerpc64/setjmp-common.S: New file.
181 * sysdeps/powerpc/powerpc64/setjmp.S [NOT_IN_libc](__setjmp):
182 Non-versioned __sigsetjmp for rtld-setjmp.
183 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
184 as default version of __sigsetjmp.
185 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
186 (__novmx__sigsetjmp): Original version of __sigsetjmp.
188 * sysdeps/powerpc/powerpc32/__longjmp-common.S: New File
189 * sysdeps/powerpc/powerpc32/__longjmp.S [NOT_IN_libc](__longjmp):
190 Non-versioned __longjmp for rtld-__longjmp.
191 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
192 default version of __longjmp.
193 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
194 (__novmx__longjmp): Original version of __longjmp.
195 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
196 Non-versioned _setjmp for rtld-_setjmp.
197 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
198 as default version of _setjmp.
199 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
200 (__novmx_setjmp): Original version of _setjmp.
201 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__vmxsetjmp): Branch to
202 __vmx__sigsetjmp and define as default version of setjmp.
203 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
204 (__novmxsetjmp): Original version of setjmp.
205 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: New file.
206 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S [NOT_IN_libc](__longjmp):
207 Non-versioned __longjmp for rtld-__longjmp.
208 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
209 default version of __longjmp.
210 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
211 (__novmx__longjmp): Original version of __longjmp.
212 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: New file.
213 * sysdeps/powerpc/powerpc32/fpu/setjmp.S [NOT_IN_libc](__setjmp):
214 Non-versioned __sigsetjmp for rtld-setjmp.
215 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
216 as default version of __sigsetjmp.
217 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
218 (__novmx__sigsetjmp): Original version of __sigsetjmp.
219 * sysdeps/powerpc/powerpc32/setjmp-common.S: New file.
220 * sysdeps/powerpc/powerpc32/setjmp.S [NOT_IN_libc](__setjmp):
221 Non-versioned __sigsetjmp for rtld-setjmp.
222 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
223 as default version of __sigsetjmp.
224 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
225 (__novmx__sigsetjmp): Original version of __sigsetjmp.
227 * sysdeps/powerpc/Dist: New File.
228 * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c
230 * sysdeps/powerpc/Versions (libc): To GLIBC_2.3_4 add _longjmp,
231 __sigsetjmp, _setjmp, longjmp, and setjmp. To GLIBC_PRIVATE add
232 __novmx__libc_longjmp, __novmx__libc_siglongjmp, __vmx__libc_longjmp,
233 and __vmx__libc_siglongjmp.
234 * sysdeps/powerpc/bits/setjmp.h: Define JB_VRSAVE, JB_VRS, and adjust
235 JB_SIZE to add VMX regs to __jmp_buf.
236 * sysdeps/powerpc/longjmp.c: New file.
237 * sysdeps/powerpc/novmxsetjmp.h: New file.
238 * sysdeps/powerpc/novmx-longjmp.c: New file.
239 * sysdeps/powerpc/novmx-sigjmp.c: New file.
240 * sysdeps/powerpc/sigjmp.c: New file.
242 2004-02-13 Jakub Jelinek <jakub@redhat.com>
244 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf):
246 (__lrintl, lrintl): Remove.
247 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c (__lrint): Fix a typo in
248 strong_alias spelling.
249 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: Remove.
250 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: New file.
252 2004-02-12 Ulrich Drepper <drepper@redhat.com>
254 * posix/getopt.h: Add some non-gcc support. Patch by Aharon Robbins.
256 2004-02-12 Mark Brown <bmark@us.ibm.com>
258 * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license.
260 2004-02-12 Jakub Jelinek <jakub@redhat.com>
262 * sysdeps/powerpc/fpu/s_lrint.c: Move to...
263 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: ... here.
264 * sysdeps/powerpc/fpu/s_llrint.c: Move to...
265 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: ... here.
266 * sysdeps/powerpc/fpu/s_llrintf.c: Move to...
267 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: ... here.
268 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
269 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: New file.
270 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: New file.
272 * math/libm-test.inc (lrint_test): Add new test.
273 (llrint_test, lround_test, llround_test): Likewise.
274 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case
275 with result taking up 48 bits.
276 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
277 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
278 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case
279 with result taking up 31 bits.
281 2004-02-12 Ulrich Drepper <drepper@redhat.com>
283 * locale/programs/locale.c (show_locale_vars): Don't print a value
284 for LANG if it is not set.
286 2004-02-11 Jakub Jelinek <jakub@redhat.com>
288 * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
289 (find_collation_sequence_value): Don't look beyond end of
291 * posix/Makefile (tests): Add bug-regex23.
292 (bug-regex23-ENV): New.
293 * posix/bug-regex23.c: New file.
295 2004-02-10 Roland McGrath <roland@frob.com>
297 * sysdeps/mach/hurd/times.c (__times): Use union instead of cast.
298 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
300 * sysdeps/mach/hurd/configure.in: Move `retcode' check to ...
301 * sysdeps/mach/configure.in: ... here.
302 * sysdeps/mach/hurd/configure: Regenerated.
303 * sysdeps/mach/configure.in: Regenerated.
305 2004-02-10 Ulrich Drepper <drepper@redhat.com>
307 * sysdeps/generic/setenv.c (__add_to_environ): Don't let the
308 temporary copies of the variables accumulate on the stack.
310 * stdio-common/_i18n_number.h: Finish last patch.
312 2004-02-09 Ulrich Drepper <drepper@redhat.com>
314 * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu.
316 2003-12-05 Roland McGrath <roland@redhat.com>
318 * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
319 for vm86@GLIBC_2.0 version. Add new vm86@GLIBC_2.3.4.
320 * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86.
321 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.
323 2004-02-09 Ulrich Drepper <drepper@redhat.com>
325 * nis/ypclnt.c: Cleanup last patch.
327 2004-02-09 Andreas Jaeger <aj@suse.de>
329 * configure.in: Remove glibcbug creation.
330 * configure: Regenerated.
332 * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes.
334 2004-02-03 Thorsten Kukuk <kukuk@suse.de>
336 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
337 of duplicated code from __yp_bind.
338 (__yp_bind_file): New, binding dir code from __yp_bind.
339 (__yp_bind_client_create): New, ypbind code from __yp_bind.
340 (__ypclnt_call): New, make NIS query.
341 (do_ypcall): At first use cached data, then try data from
342 binding directory, after this ask ypbind for a working ypserv.
343 Based on a patch from Jeff Bastian <jmbastia@ti.com> and
344 Chris Barrera <cbarrera@ti.com>
346 2004-01-19 Roland McGrath <roland@redhat.com>
348 * configure.in: Don't set CCVERSION.
349 * configure: Regenerated.
350 * glibcbug.in: File removed.
351 * Makefile (install-bin-script): Remove glibcbug.
352 (glibcbug): Target removed.
353 (distclean-1): Don't rm glibcbug.
354 (distribute): Remove glibcbug.in.
356 2004-02-09 Roland McGrath <roland@redhat.com>
358 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
361 2004-01-29 Roland McGrath <roland@redhat.com>
363 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
364 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
366 2004-02-09 Ulrich Drepper <drepper@redhat.com>
368 * libio/genops.c (_IO_cleanup): Do not use locking when flushing
369 the buffers. Some thread might be using a stream.
371 2004-02-09 Andreas Jaeger <aj@suse.de>
373 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
374 Patch by Jan Beulich <jbeulich@novell.com>.
376 2004-02-09 Andreas Schwab <schwab@suse.de>
378 * include/rpc/rpc.h: Declare thread variables with their correct type.
379 * sunrpc/clnt_perr.c: Don't cast thread variables.
380 * sunrpc/clnt_raw.c: Likewise.
381 * sunrpc/clnt_simp.c: Likewise.
382 * sunrpc/key_call.c: Likewise.
383 * sunrpc/svcauth_des.c: Likewise.
384 * sunrpc/svc.c: Likewise.
385 * sunrpc/svc_raw.c: Likewise.
386 * sunrpc/svc_simple.c: Likewise.
388 2004-02-09 Ulrich Drepper <drepper@redhat.com>
390 * stdio-common/_i18n_number.h: Support printing localized decimal
391 point and thousand separator.
392 * wctype/wctrans.c: Add __wctrans alias.
393 * include/wctype.h: Declare __wctrans.
394 Based on a patch by Hamed Malek.
396 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
397 other than the status bits [BZ #10].
399 2004-02-08 Ulrich Drepper <drepper@redhat.com>
401 Make stream locking operations really work.
402 * misc/Makefile (CFLAGS-mntent_r.c): Define.
403 * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
404 (CFLAGS-putspent.c): Define.
405 * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
406 (CFLAGS-putgrent.c): Define.
407 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
408 Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
410 * elf/dl-load.c (lose): Use noinline attribute instead of silly
411 alloca to prevent inlining.
412 * elf/dl-runtime.c (fixup): Likewise.
413 (profile_fixup): Likewise.
415 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
416 Initialize width correctly.
418 2004-02-07 Andreas Jaeger <aj@suse.de>
420 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
422 (internal_ucs4le_loop_single): Likewise.
423 (ucs4_internal_loop): Likewise.
425 (internal_ucs4_loop_single): Likewise.
426 * iconvdata/iso8859-1.c (BODY): Likewise.
427 * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
428 * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
429 * iconvdata/gb18030.c (BODY): Likewise.
430 * iconvdata/armscii-8.c (BODY): Likewise.
431 * stdlib/msort.c (msort_with_tmp): Likewise.
433 * iconv/gconv_open.c (__gconv_open): Remove conditional expression
436 2004-02-06 Steven Munroe <sjmunroe@us.ibm.com>
438 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
440 (__elf_machine_runtime_setup): Invalidate the instruction cache over
441 the whole range of the PLT.
443 2004-02-06 Andreas Schwab <schwab@suse.de>
445 * posix/regcomp.c (build_range_exp): Fix off-by-one.
446 (parse_bracket_exp): Likewise.
448 2004-02-05 Ulrich Drepper <drepper@redhat.com>
450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
451 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard.
453 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
455 * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
456 (re_search_internal): Pass new parameter to check_matching.
457 (check_matching): Unless a parenthesized group is found at the
458 beginning of the regexp, advance P_MATCH_FIRST until we entered
459 a state different from the initial state.
461 2004-02-01 Ulrich Drepper <drepper@redhat.com>
463 * math/libm-test.inc (lround_test): Add new test.
464 (llround_test): Likewise.
465 (lrint_test): Likewise.
466 (llrint_test): Likewise.
467 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
468 with result taking up 20 bits.
469 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
470 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
471 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
472 case with result taking up 31 bits.
473 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
475 * po/nl.po: Update from translation team.
477 2004-01-30 Andreas Schwab <schwab@suse.de>
479 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
480 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
481 SEGV_PSTKOVF): Remove underscore prefix from definition.
483 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
485 Merge regex changes in gawk.
486 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
487 of collation elements.
488 * posix/regex.c: Include limits.h.
489 * posix/regex.h: Document REG_ECOLLATE correctly.
490 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
492 2004-01-24 Andreas Jaeger <aj@suse.de>
494 * malloc/obstack.h: Import gnulib version.
495 * malloc/obstack.c: Likewise.
497 2004-01-26 David Mosberger <davidm@hpl.hp.com>
499 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
500 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
501 increment dl_load_adds.
502 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
503 with equivalent GL(dl_load_adds - GL(dl_nloaded).
504 (dl_iterate_phdr): Likewise.
505 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
506 * elf/dl-support.c: Remove global variable _dl_load_subs.
507 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
508 _dl_load_subs member.
510 2004-01-27 Jakub Jelinek <jakub@redhat.com>
512 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
513 (_dl_start): And neither here.
514 (dl_main): Set GL(dl_loaded)->l_relro_* and
515 GL(dl_rtld_map)->l_relro_*.
517 2004-01-23 David Mosberger <davidm@hpl.hp.com>
519 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
520 _dl_load_adds and _dl_load_subs.
521 * elf/dl-support.c (_dl_load_adds): New variable.
522 (_dl_load_subs): Likewise.
523 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
524 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
525 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
527 * include/link.h: Likewise.
528 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
529 and dlpi_subs members.
530 (dl_iterate_phdr): Likewise.
531 * elf/tst-dlmodcount.c: New file.
532 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
533 (tests): If build-shared, mention tst-dlmodcount.
534 ($(objpfx)tst-dlmodcount): If build-shared, build and
537 2004-01-22 Jakub Jelinek <jakub@redhat.com>
539 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
541 (_dl_protect_relro): New routine.
542 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
543 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
545 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
546 Call _dl_protect_relro for libraries if prelinking.
548 2004-01-23 Richard Henderson <rth@redhat.com>
550 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
551 * sysdeps/alpha/fpu/Versions (libm): Likewise.
552 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
553 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
555 2004-01-22 Andreas Jaeger <aj@suse.de>
557 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
558 avoid warnings for builtin function log2.
560 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
563 2004-01-20 Ulrich Drepper <drepper@redhat.com>
565 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
566 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
567 Patch by Davide Libenzi.
569 * sysdeps/unix/sysv/linux/kernel-features.h: Define
570 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
572 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
574 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
575 instead of loff_t. Include <fcntl.h>.
576 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
577 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
578 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
579 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
580 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
581 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
582 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
583 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
584 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
585 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
586 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
587 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
589 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
591 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
593 2003-12-31 Bruno Haible <bruno@clisp.org>
595 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
596 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
597 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
598 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
599 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
600 0x00 0x20. Don't map U+2500..U+25E3.
602 2004-01-19 Jakub Jelinek <jakub@redhat.com>
604 * posix/regexec.c (get_subexp): Remove bkref_str variable.
605 Extend buffers if needed before comparisons.
606 (get_subexp_sub): Handle clean_state_log_if_needed failure.
608 2004-01-17 Ulrich Drepper <drepper@redhat.com>
610 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
611 atomic_decrement. Patch by Davin McCall.
613 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
615 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
616 (__sim_disabled_exceptions, __sim_round_mode): Declare with
617 hidden data and nocommon.
618 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
619 (__sim_disabled_exceptions, __sim_round_mode): Use
621 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
622 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
624 2004-01-16 Ulrich Drepper <drepper@redhat.com>
626 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
629 2004-01-16 Richard Henderson <rth@redhat.com>
631 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
632 (__libc_enable_secure_internal): Likewise.
634 * elf/dl-load.c: Don't declare __libc_stack_end.
635 * sysdeps/generic/libc-start.c: Likewise.
636 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
637 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
638 * sysdeps/generic/backtrace.c: Likewise.
640 2004-01-15 Ulrich Drepper <drepper@redhat.com>
642 * Versions.def: Add GLIBC_2.3.4.
644 2004-01-15 Richard Henderson <rth@redhat.com>
646 * sysdeps/unix/alpha/sysdep.h: Revert last change.
648 2004-01-15 Richard Henderson <rth@redhat.com>
650 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
652 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
655 2004-01-15 Richard Henderson <rth@redhat.com>
657 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
658 ucontext-offsets.sym.
659 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
660 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
661 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
662 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
663 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
665 2004-01-15 Richard Henderson <rth@redhat.com>
667 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
668 __syscall_, move nop inside, adjust users by +4.
670 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
672 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
673 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
674 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
676 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
677 gen-as-const-headers.
678 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
679 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
680 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
681 * sysdeps/unix/sysv/linux/kernel-features.h
682 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
683 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
684 Declare mcontext_t inline and include altivec state for 64-bit.
685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
686 versions for setcontext, getcontext, and swapcontext.
688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
689 versions for setcontext, getcontext, swapcontext, and makecontext.
690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
691 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
692 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
693 Compatible with GLIBC_2.3.3 release.
694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
695 (__makecontext): Use parm save area instead of compiler_dw to hold
697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
698 (__setcontext): Upgrade to restore Altivec regs and version
700 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
701 Compatible with GLIBC_2.3.3 release.
702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
703 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
704 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
705 Compatible with GLIBC_2.3.3 release.
706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
707 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
709 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
712 versions for setcontext, getcontext, swapcontext, and makecontext.
713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
714 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
715 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
716 Compatible with GLIBC_2.3.3 release.
717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
718 (__makecontext): Upgrade to align for Altivec regs and version
720 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
721 Compatible with GLIBC_2.3.3 release.
722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
723 (__setcontext): Upgrade to restore Altivec regs and version
725 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
726 Compatible with GLIBC_2.3.3 release.
727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
728 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
729 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
730 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
732 (_UC_VSCR, _UC_VRSAVE): Define.
733 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
734 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
736 2004-01-15 Ulrich Drepper <drepper@redhat.com>
738 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
740 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
742 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
745 2004-01-15 Ulrich Drepper <drepper@redhat.com>
747 * elf/elf.h: Fix typo in comment.
749 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
750 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
752 * resolv/resolv.h: Add RES_USEBSTRING.
753 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
754 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
755 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
756 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
757 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
758 Otherwise use the two nibble formats.
760 2004-01-14 Ulrich Drepper <drepper@redhat.com>
762 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
763 * config.h.in: Add entry for HAVE_Z_RELRO.
764 * include/libc-symbols.h: Define attribute_relro.
765 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
766 max_capstrlen, and max_dirnamelen definitions.
767 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
768 load_time, start_time, library_path, preloadlist, version_info,
770 Remove rtld_total_time. Make it a local variable. Pass pointer to
771 it to print_statistics. Change print_statistics accordingly.
772 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
773 attribute_relro instead of explicitly assigning variable to the
774 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
775 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
776 _dl_argv, _dl_argv_internal with attribute_relro.
778 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
780 * Makerules (gen-as-const): Don't silently continue on failure.
782 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
784 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
785 rtld_hidden_data_def.
787 2004-01-14 Ulrich Drepper <drepper@redhat.com>
789 * libio/libio.h: Add const to function tables types.
790 * libio/libioP.h: Likewise.
791 * login/utmp-private.h: Likewise.
792 * libio/fileops.c: Add const to jump table variable definition.
793 * libio/genops.c: Likewise.
794 * libio/iofopncook.c: Likewise.
795 * libio/iopopen.c: Likewise.
796 * libio/memstream.c: Likewise.
797 * libio/obprintf.c: Likewise.
798 * libio/oldfileops.c: Likewise.
799 * libio/oldiopopen.c: Likewise.
800 * libio/strops.c: Likewise.
801 * libio/vsnprintf.c: Likewise.
802 * libio/vswprintf.c: Likewise.
803 * libio/wfileops.c: Likewise.
804 * libio/wstrops.c: Likewise.
805 * login/getutent_r.c: Likewise.
806 * login/getutid_r.c Likewise.
807 * login/getutline_r.c: Likewise.
808 * sysdeps/generic/utmp_file.c: Likewise.
810 2004-01-09 Bruno Haible <bruno@clisp.org>
812 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
813 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
814 (_nl_load_domain): Treat major revision 1 like major revision 0.
816 2004-01-11 Bruno Haible <bruno@clisp.org>
818 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
819 width or precision has been seen.
821 2004-01-08 Bruno Haible <bruno@clisp.org>
823 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
824 dependent segment not known to this version of the library, ignore
825 the string pair instead of crashing.
827 2004-01-13 Ulrich Drepper <drepper@redhat.com>
829 * configure.in: Rewrite test to give gcc to clean up after itself.
830 Patch by Greg Schafer.
832 * posix/regex.c: Support crappy compilers and platforms which have
833 problems with alloca.
834 * posix/regex_internal.h: Likewise.
835 Patch by Paolo Bonzini.
837 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
839 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
840 Drop code to support this, it is never true.
841 (build_range_exp) [!_LIBC]: Do not create a range
842 in MBCSET for a single-byte character set.
843 (build_range_exp) [_LIBC]: Do not create a range
844 in MBCSET for a single-byte character set without
846 (init_dfa): Do not conditionalize on _LIBC, it
847 just makes the code less clear.
848 (parse_bracket_exp): Use NON_MATCH variable in
849 addition to "mbcset->non_match", not as an
851 (build_charclass_op): rename NOT parameter to
852 NON_MATCH, use it instead of declaring a variable.
853 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
854 if the character set is single-byte.
856 2004-01-14 Jakub Jelinek <jakub@redhat.com>
858 * posix/regcomp.c (peek_token_bracket): Check remaining
859 string length before re_string_peek_byte (x, 1).
860 (parse_bracket_symbol): Likewise.
861 * posix/regex_internal.h (re_string_is_single_byte_char): Return
862 true at last byte in the string.
863 * posix/bug-regex22.c (main): Add new test.
865 2004-01-13 Ulrich Drepper <drepper@redhat.com>
867 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
870 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
872 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
873 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
874 rtld_hidden_def and move into .data.rel.ro section.
875 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
877 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
880 2004-01-13 Richard Henderson <rth@redhat.com>
882 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
884 2004-01-13 Ulrich Drepper <drepper@redhat.com>
886 * sysdeps/unix/sysv/linux/dl-execstack.c
887 (_dl_make_stack_executable): Move common code in front. Use
890 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
891 challenge for caller.
892 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
893 member in rtld_global appropriately.
894 * elf/dl-support.c: Likewise.
895 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
896 Pass it on to the changed function.
897 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
899 2004-01-13 Richard Henderson <rth@redhat.com>
901 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
902 Cast old up to uint64_t before back down to inner width.
903 (__arch_compare_and_exchange_xxx_16_int): Likewise.
904 (__arch_compare_and_exchange_xxx_32_int): Likewise.
905 (__arch_compare_and_exchange_xxx_64_int): Likewise.
906 (__arch_compare_and_exchange_val_8_int): Cast result to
907 the type of the memory.
908 (__arch_compare_and_exchange_val_16_int): Likewise.
909 (__arch_compare_and_exchange_val_32_int): Likewise.
910 (__arch_compare_and_exchange_val_64_int): Likewise.
911 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
912 (atomic_compare_and_exchange_bool_rel): Likewise.
914 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
915 based on HAVE___THREAD instead of USE_TLS.
917 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
918 (__adjtimex_tv64): Use it.
920 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
921 to void* rather than directly to the compatibility structure type.
922 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
924 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
927 2004-01-13 Richard Henderson <rth@redhat.com>
929 * Versions.def (libm): Add GLIBC_2.3.3.
930 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
931 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
932 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
933 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
934 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
935 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
936 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
937 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
938 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
939 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
940 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
941 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
942 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
943 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
944 functions for gcc 3.3.
946 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
947 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
948 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
949 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
950 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
951 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
952 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
953 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
954 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
955 weak_alias if the function name has been #defined.
957 * math/cabsf.c: Move ...
958 * sysdeps/generic/cabsf.c: ... here.
959 * math/cargf.c: Move ...
960 * sysdeps/generic/cargf.c: ... here.
961 * math/cimagf.c: Move ...
962 * sysdeps/generic/cimagf.c: ... here.
963 * math/conjf.c: Move ...
964 * sysdeps/generic/conjf.c: ... here.
965 * math/crealf.c: Move ...
966 * sysdeps/generic/crealf.c: ... here.
968 2004-01-13 Ulrich Drepper <drepper@redhat.com>
970 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
971 LDFLAGS.so and LDFLAGS-rtld.
972 (+link): Add relro-LDFLAGS.
973 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
974 __libc_thread_subfreeres sections after .jcr section.
975 * config.make.in: Add have-z-relro.
976 * configure.in: Add check for -z relro option.
977 * include/link.h (struct link_map): Add relro_addr and relro_size
979 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
980 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
981 part of loaded segments read-only.
982 * elf/elf.h: Define PT_GNU_RELRO.
983 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
984 (dl_main): Recognize PT_GNU_RELRO of the application. Call
985 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
988 2004-01-12 Jakub Jelinek <jakub@redhat.com>
990 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
992 2004-01-11 Andreas Jaeger <aj@suse.de>
994 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
996 2004-01-10 Andreas Jaeger <aj@suse.de>
998 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
999 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
1000 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1001 * sysdeps/x86_64/strcspn.S: Likewise.
1002 * sysdeps/x86_64/strspn.S: Likewise.
1004 2004-01-08 Jakub Jelinek <jakub@redhat.com>
1006 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
1007 right before syscall and cfi_startproc before PSEUDO_END.
1008 Clear %rbp in thread_start.
1010 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1012 * posix/regcomp.c (regcomp): Fix comment typo.
1013 (regfree): Free preg->translate, clear buffer, allocated, fastmap
1014 and translate fields.
1016 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
1017 argument to unsigned RE_TRANSLATE_TYPE.
1018 * posix/regex_internal.h (re_string_t): Change trans type to
1019 unsigned RE_TRANSLATE_TYPE.
1020 * posix/regex_internal.c (re_string_construct_common): Cast
1021 trans to unsigned RE_TRANSLATE_TYPE.
1022 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
1023 path if pstr->trans. Never translate the character through
1025 * posix/Makefile (tests): Add bug-regex22.
1026 (bug-regex22-ENV): Set.
1027 * posix/bug-regex22.c: New test.
1029 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
1031 * posix/regex_internal.c (re_node_set_add_intersect,
1032 re_node_set_merge): Rewritten.
1033 (re_node_set_insert, re_node_set_remove_at):
1034 Avoid memmove, we know what direction we should copy and that we
1035 are copying 32-bit words.
1036 (re_node_set_compare): Iterate backwards.
1038 2003-12-30 Paul Eggert <eggert@twinsun.com>
1040 * time/mktime.c (verify): New macro.
1041 (time_t_is_integer, twos_complement_arithmetic,
1042 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
1043 C99_integer_division): Document these longstanding assumptions in the
1044 code, and verify them at compile-time.
1046 2004-01-02 Jakub Jelinek <jakub@redhat.com>
1048 * posix/regex_internal.h (re_match_context_t): Add dfa member.
1049 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
1050 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
1051 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
1052 sift_states_backward, update_cur_sifted_state, check_dst_limits,
1053 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
1054 check_subexp_matching_top, transit_state_sb, transit_state_mb,
1055 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
1056 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
1057 Remove dfa parameter. Get dfa from mctx. Adjust callers.
1058 (re_search_internal): Initialize mctx.dfa.
1060 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
1062 * posix/regex_internal.h (re_dfa_t): Add syntax field.
1063 * posix/regcomp.c (parse): Initialize dfa->syntax.
1064 * posix/regexec.c (acquire_init_state_context,
1065 prune_impossible_nodes, check_matching, check_halt_state_context,
1066 proceed_next_node, sift_states_iter_mb, sift_states_backward,
1067 update_cur_sifted_state, sift_states_bkref, transit_state,
1068 transit_state_sb, transit_state_mb, transit_state_bkref,
1069 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
1070 build_trtable): Remove preg argument, add dfa argument instead
1071 and remove dfa = preg->buffer initialization in the body.
1073 (check_node_accept_bytes, group_nodes_into_DFAstates,
1074 check_node_accept): Likewise. Use dfa->syntax instead of
1076 (check_arrival_add_next_nodes): Remove preg argument.
1078 * posix/regex_internal.h (re_match_context_t): Make input
1079 re_string_t instead of a pointer to it.
1080 * posix/regex_internal.c (re_string_construct_common): Don't clear
1082 (re_string_construct): ... but only here.
1083 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
1084 initialize fields to zero.
1085 (re_search_internal): Move input into mctx.input.
1086 (acquire_init_state_context, check_matching,
1087 check_halt_state_context, proceed_next_node,
1088 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
1089 transit_state, transit_state_sb, transit_state_mb,
1090 transit_state_bkref, get_subexp, check_arrival,
1091 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
1092 Change mctx->input into &mctx->input and mctx->input->field into
1095 2004-01-02 Jakub Jelinek <jakub@redhat.com>
1096 Paolo Bonzini <bonzini@gnu.org>
1098 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
1099 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
1100 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
1101 (re_string_context_at, re_string_reconstruct): Remove last argument.
1102 * posix/regex_internal.c (re_string_allocate): Initialize
1103 pstr->word_char and pstr->word_ops_used.
1104 (re_string_context_at): Remove newline_anchor argument.
1105 Use input->newline_anchor instead, swap && conditions.
1106 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
1107 Use input->word_char bitmap instead of IS_WORD_CHAR.
1108 (re_string_reconstruct): Likewise.
1109 Adjust re_string_context_at caller.
1110 * posix/regexec.c (acquire_init_state_context,
1111 check_halt_state_context, transit_state, transit_state_sb,
1112 transit_state_mb, transit_state_bkref, check_arrival,
1113 check_node_accept): Adjust re_string_context_at and
1114 re_string_reconstruct callers.
1115 (re_search_internal): Likewise. Set input.newline_anchor.
1116 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
1117 * posix/regcomp.c (init_word_char): Change return type to void.
1118 Set dfa->word_ops_used.
1119 (free_dfa_content): Don't free dfa->word_char.
1120 (parse_expression): Remove error handling for init_word_char.
1122 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
1124 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
1127 * posix/regex_internal.c (re_node_set_insert): Rewrite.
1129 2004-01-01 Ulrich Drepper <drepper@redhat.com>
1131 * posix/getconf.c: Update copyright year.
1132 * nss/getent.c: Likewise.
1133 * nscd/nscd_nischeck.c: Likewise.
1134 * iconv/iconvconfig.c: Likewise.
1135 * iconv/iconv_prog.c: Likewise.
1136 * elf/ldconfig.c: Likewise.
1137 * catgets/gencat.c: Likewise.
1138 * csu/version.c: Likewise.
1139 * elf/ldd.bash.in: Likewise.
1140 * elf/sprof.c (print_version): Likewise.
1141 * locale/programs/locale.c: Likewise.
1142 * locale/programs/localedef.c: Likewise.
1143 * nscd/nscd.c (print_version): Likewise.
1144 * debug/xtrace.sh: Likewise.
1145 * malloc/memusage.sh: Likewise.
1146 * malloc/mtrace.pl: Likewise.
1148 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
1150 * stdlib/strfmon.c: Make formatting of left-justified currency
1151 values match the the POSIX standard. When using format string
1152 "[%-14#5.4n]" to print -123.45, the result should be
1153 "[-$ 123.4500 ]", not "[-$123.4500 ]".
1155 2004-01-01 Andreas Jaeger <aj@suse.de>
1157 * resolv/Makefile (generated): New.
1159 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
1161 * CONFORMANCE: Update.
1163 2003-12-30 Paul Eggert <eggert@twinsun.com>
1165 * time/mktime.c: (my_mktime_localtime_r):
1166 Remove. All uses changed to __localtime_r.
1167 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
1168 get its implementation.
1169 Fix compile-command to allow for TIME_R_POSIX.
1171 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
1172 Remove. All uses changed to __localtime_r and __gmtime_r.
1173 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
1174 Include "time_r.h" to get their implementations.
1176 * time/timegm.c: Allow use in GNU applications outside glibc.
1177 [defined HAVE_CONFIG_H]: Include <config.h>.
1178 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
1179 Define __gmtime_r, and declare __mktime_internal.
1180 (timegm): Define via a prototype, since we can safely assume C89 now.
1182 * time/mktime.c (check_result): Use less-confusing report format.
1183 "long" -> "long int", as per usual GNU style.
1185 Don't loop if the iteration overflows time_t.
1186 Allow a negative step in the iteration.
1188 * time/mktime.c: Assume freestanding C89 or better.
1189 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
1191 (__P): Remove; not used.
1192 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
1193 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
1194 Prototypes use const * where appropriate.
1195 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
1196 which caused the testing code to dump core on some hosts.
1198 2003-12-31 Ulrich Drepper <drepper@redhat.com>
1200 * locale/setlocale.c (setlocale): Avoid duplicating locale names
1201 if we can reuse old strings.
1203 * inet/rcmd.c: Provide better error message in case of unknown
1204 host. Remove USE_IN_LIBIO.
1206 * nscd/nscd.init: Updated version, more conforming with current
1207 init file standards.
1209 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
1210 /var/run/nscd directory.
1211 (_PATH_NSCDSOCKET): Likewise.
1213 * test-skeleton.c (timeout_handler): Fix error message.
1215 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
1218 2003-12-30 Jakub Jelinek <jakub@redhat.com>
1220 * posix/regexec.c (get_subexp): Only set bkref_str after the first
1221 loop, use buf + bkref_str_off in the loop instead.
1222 * posix/bug-regex11.c (tests): Add 3 new tests.
1224 * posix/regexec.c (clean_state_log_if_need): Rename to...
1225 (clean_state_log_if_needed): ...this.
1226 (transit_state_mb, get_subexp_sub): Adjust callers.
1228 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
1229 failed. Reported by Steve Grubb.
1231 2003-12-29 Ulrich Drepper <drepper@redhat.com>
1233 * elf/elf.h: Add a few definitions from Solaris 9.
1235 2003-12-29 Andreas Schwab <schwab@suse.de>
1237 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
1238 $(fno_unit_at_a_time) to avoid reordering assembler output.
1240 2003-12-29 Jakub Jelinek <jakub@redhat.com>
1242 * posix/regexec.c (re_copy_regs): Revert comment change.
1243 Avoid memory leak if realloc fails.
1244 (proceed_next_node): Return -2 if re_node_set_insert fails.
1245 Return -2 if push_fail_stack fails.
1246 (push_fail_stack): Change fs->alloc only after successful realloc.
1247 (pop_fail_stack): Formatting.
1248 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
1249 (check_arrival_add_next_nodes): Merge identical statements
1252 * signal/Makefile (tests): Add tst-raise.
1253 * signal/tst-raise.c: New test.
1255 2003-12-28 Ulrich Drepper <drepper@redhat.com>
1257 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
1259 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
1260 (push_fail_stack): Add missing check for failed memory allocation.
1262 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
1263 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
1266 2003-12-28 Andreas Jaeger <aj@suse.de>
1268 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
1269 overflow for 0 as argument. Raise Invalid exception for negative args.
1270 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1271 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
1272 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
1273 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
1274 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
1275 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
1276 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
1277 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
1278 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1279 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
1280 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
1282 * math/libm-test.inc (yn_test): Expect invalid exception for
1284 (y0_test): Likewise.
1285 (y1_test): Likewise.
1287 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
1288 execptions for exp(NaN).
1290 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
1292 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
1293 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
1294 among the tokens, rather than among the epsilon-transiting nodes.
1295 (re_token_t): Add the opt_subexp flag.
1296 * posix/regcomp.c (optimize_utf8, calc_first,
1297 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
1298 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
1299 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
1300 OP_DUP_ASTERISK and marking optional subexpressions
1301 as such using mark_opt_subexp.
1302 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
1303 and pass it to update_regs.
1304 (update_regs): Use the PREV_INDEX_MATCH parameter, together
1305 with the opt_subexp flag, in order to discard a final empty
1306 match of a repeated subexpression.
1307 * posix/BOOST.tests: Adjust test vectors.
1308 * posix/PCRE.tests: Likewise.
1309 * posix/rxspencer/tests: Likewise.
1311 2000-05-22 Jakub Jelinek <jakub@redhat.com>
1313 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
1314 with omitted middle operand.
1316 2003-12-22 Jakub Jelinek <jakub@redhat.com>
1318 * posix/regcomp.c: Remove C99-ism.
1319 * posix/tst-rxspencer.c: Likewise.
1320 Based on a patch by Alex Davis <alex14641@yahoo.com>.
1322 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
1324 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
1325 (re_string_allocate, re_string_construct, re_string_reconstruct,
1326 re_string_realloc_buffers, build_wcs_buffer,
1327 build_wcs_upper_buffer, build_upper_buffer,
1328 re_string_translate_buffer, re_string_destruct,
1329 re_string_elem_size_at, re_string_char_size_at,
1330 re_string_wchar_at, re_string_context_at,
1331 re_node_set_alloc, re_node_set_init_1
1332 re_node_set_init_2, re_node_set_init_copy,
1333 re_node_set_add_intersect, re_node_set_init_union,
1334 re_node_set_merge, re_node_set_insert
1335 re_node_set_compare, re_node_set_contains
1336 re_node_set_remove_at, re_dfa_add_node,
1337 re_acquire_state, re_acquire_state_context,
1338 free_state): Add internal_function to declaration.
1340 * posix/regexec.c (match_ctx_init, match_ctx_clean,
1341 match_ctx_free, match_ctx_free_subtops,
1342 match_ctx_add_entry, search_cur_bkref_entry,
1343 match_ctx_clear_flag, match_ctx_add_subtop,
1344 match_ctx_add_sublast, sift_ctx_init,
1345 re_search_internal, re_search_2_stub, re_search_stub,
1346 re_copy_regs, acquire_init_state_context,
1347 prune_impossible_nodes, check_matching,
1348 check_halt_node_context, check_halt_state_context
1349 update_regs, proceed_next_node, push_fail_stack,
1350 pop_fail_stack, set_regs, free_fail_stack_return,
1351 sift_states_iter_mb, sift_states_backward
1352 update_cur_sifted_state, add_epsilon_src_nodes,
1353 sub_epsilon_src_nodes, check_dst_limits,
1354 check_dst_limits_calc_pos, check_subexp_limits,
1355 sift_states_bkref, clean_state_log_if_need,
1356 merge_state_array, transit_state,
1357 check_subexp_matching_top, transit_state_sb,
1358 transit_state_mb, transit_state_bkref,
1359 get_subexp, get_subexp_sub, find_subexp_node,
1360 check_arrival, check_arrival_add_next_nodes,
1361 find_collation_sequence_value, check_arrival_expand_ecl,
1362 check_arrival_expand_ecl_sub, expand_bkref_cache,
1363 build_trtable, check_node_accept_bytes, extend_buffers,
1364 group_nodes_into_DFAstates, check_node_accept): Likewise.
1366 * posix/regex_internal.c (re_string_construct_common,
1367 re_string_skip_chars, create_newstate_common,
1368 register_state, create_ci_newstate, create_cd_newstate,
1369 calc_state_hash): Likewise.
1370 (re_string_peek_byte_case, re_fetch_byte_case): Change
1371 declaration from ANSI to K&R.
1373 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
1375 * posix/regexec.c (build_trtable): Don't allocate the trtable
1376 until state->word_trtable is known. Don't hardcode UINT_BITS
1377 iterations on each bitset item.
1379 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1381 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
1382 Initialize REF before passing it to _dl_lookup_symbol.
1384 2003-12-21 Roland McGrath <roland@frob.com>
1386 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
1388 2003-12-21 Jakub Jelinek <jakub@redhat.com>
1390 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
1392 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
1393 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
1394 * posix/bug-regex19.c (tests): Add new tests.
1396 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
1398 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
1399 after checking syntax. Optimize.
1400 (calc_first): Fix comment.
1401 * posix/bug-regex13.c (tests): Add new tests.
1403 2003-12-21 Roland McGrath <roland@redhat.com>
1405 * manual/arith.texi (Parsing of Integers): Typo fix.
1407 2003-12-20 Roland McGrath <roland@frob.com>
1409 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
1410 add missing dereference of IFREQS before counting loop.
1412 2003-12-21 Andreas Schwab <schwab@suse.de>
1414 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
1417 2003-12-20 Ulrich Drepper <drepper@redhat.com>
1419 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
1421 2003-12-18 Ulrich Drepper <drepper@redhat.com>
1423 * stdio-common/printf_fp.c: Add support to use alternative decimal
1425 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
1426 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
1428 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
1430 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
1431 reload PIC if we need to call __syscall_error, cleanup asm.
1433 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
1435 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
1436 FE_ALL_EXCEPT before complimenting.
1437 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
1438 and gcc '+r' constraint.
1439 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
1440 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
1441 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
1442 exception bits, OR with envp, pass to fesetenv.
1443 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
1444 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
1445 triggered by M_PI/69.69 converted to single precision.
1446 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
1447 bits not raised exception bits.
1449 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
1450 correct build strings.
1451 * sysdeps/hppa/dl-fptr.h: New file.
1452 * sysdeps/hppa/dl-fptr.c: Removed.
1453 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
1454 remove const qualifier for map.
1455 (_dl_function_address): Removed.
1456 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
1457 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
1458 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
1459 DL_DT_FINI_ADDRESS use the previous two macros.
1461 2003-12-17 Jakub Jelinek <jakub@redhat.com>
1463 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
1464 (tr_memalignhook): New function.
1465 (mtrace): Register tr_memalignhook.
1466 (muntrace): Deregister tr_memalignhook.
1467 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
1468 call it directly instead of memalign_internal.
1470 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1472 * misc/mntent_r.c: Change encoding to match recently changed decoder.
1473 Patch by Alexander Achenbach <xela@slit.de>.
1475 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1477 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
1480 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1482 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
1483 conditional to include typedef elf_vrreg_t.
1485 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
1487 * posix/regexec.c (re_search_internal): Limit search to the
1488 beginning of the buffer if the initial states are empty for
1489 contexts that do not include CONTEXT_BEGBUF or, if
1490 !preg->newline_anchor, that do not include any one of
1491 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
1493 2003-12-17 Andreas Jaeger <aj@suse.de>
1495 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
1496 Kevin Pedretti <pedretti@ieee.org>.
1498 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1500 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
1501 removes the visibility attributes which might be defined earlier
1502 for some gcc versions. Instead spell out what strong_alias does
1503 plus the visibility.
1505 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
1507 * posix/regex_internal.h: Make sure the regex code compile
1508 with non-GCC compilers by hiding attributes.
1510 2003-12-16 Jakub Jelinek <jakub@redhat.com>
1511 Paolo Bonzini <bonzini@gnu.org>
1513 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
1514 dests_ch items that are empty.
1516 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1518 * posix/regexec.c (check_arrival): Remove duplicate test.
1520 2003-12-15 Ulrich Drepper <drepper@redhat.com>
1522 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
1523 * posix/regex_internal.c: Likewise.
1524 * posix/regexec.c: Likewise.
1525 Patch by Paolo Bonzini.
1527 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1529 * posix/regex_internal.c (re_acquire_state_context):
1530 Compare the node sets after all the other comparisons.
1532 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
1534 * posix/regexec.c (find_subexp_node, check_arrival,
1535 check_arrival_add_next_nodes, check_arrival_expand_ecl,
1536 check_arrival_expand_ecl_sub, expand_bkref_cache):
1537 Rename the FL_OPEN parameter to TYPE, which is either
1538 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
1540 2003-12-12 Andreas Jaeger <aj@suse.de>
1542 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
1545 2003-12-11 Ulrich Drepper <drepper@redhat.com>
1547 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
1548 There might always be processes which have no vDSO.
1549 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
1550 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1552 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1554 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
1557 2003-12-01 Jes Sorensen <jes@wildopensource.com>
1559 * rt/tst-clock.c (do_test): Print message when skipping
1560 CLOCK_PROCESS_CPUTIME_ID test.
1562 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
1563 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
1565 2003-12-02 David Mosberger <davidm@hpl.hp.com>
1567 * sysdeps/ia64/elf/initfini.c: Add unwind info.
1569 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
1571 (elf_machine_dynamic): Mark with attributes "unused" and "const".
1572 (elf_machine_runtime_setup): Likewise.
1574 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
1575 attribute "always_inline".
1576 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
1579 * configure.in: Check whether compiler has libunwind support.
1580 * config.make.in (have-cc-with-libunwind): New variable.
1581 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
1582 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
1585 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1587 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
1588 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
1589 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
1592 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
1593 instead of DO_CALL().
1595 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
1598 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
1599 to take advantage of DO_CALL() macro.
1600 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1601 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1603 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
1604 program header. On ia64, the check failed previously because
1605 there are two program headers.
1607 2003-12-10 Andreas Jaeger <aj@suse.de>
1608 Ruediger Oertel <ro@suse.de>
1610 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
1612 2003-12-07 Ulrich Drepper <drepper@redhat.com>
1614 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
1615 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1616 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1617 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1618 * sysdeps/generic/s_nexttowardf.c: Likewise.
1619 * math/Makefile (tests): Add bug-nexttoward.
1620 * math/bug-nexttoward.c: New file.
1622 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
1623 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1624 * math/bug-nextafter.c (main): Add tests for overflow and negative
1627 2003-12-06 Ulrich Drepper <drepper@redhat.com>
1629 * math/Makefile (tests): Add bug-nextafter.
1630 * math/bug-nextafter.c: New file.
1631 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
1632 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1633 * math/libm-test.inc (nextafter_test): Add test for overflow after
1636 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
1638 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
1640 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1642 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1644 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1646 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1647 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1648 (END): Add cfi_endproc directive.
1649 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1650 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1651 cfi_startproc and cfi_endproc directive.
1652 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1653 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1654 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1655 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1656 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1658 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1660 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1661 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1662 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1663 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1664 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1665 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1666 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1667 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1668 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1670 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1672 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1673 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1674 make backchain terminate.
1675 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1677 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1678 (unwind_backtrace, unwind_getip): New variables.
1679 (init, __backchain_backtrace, backtrace_helper): New functions.
1680 (__backtrace): Use unwind info for backtrace instead of backchain
1681 walking if the unwind functions can be found.
1682 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1684 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1686 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1687 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1688 (elf_prstatus32, elf_prpsinfo32): New structures.
1689 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1691 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1692 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1694 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
1696 * stdlib/strfmon.c: Correct formatting of international currency
1697 values. The international currency formatting should prefer the
1698 int_* values if they are set for a locale, and use the domestic
1699 values if the int_* values are unset.
1701 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1703 * posix/Makefile (distribute): Add BOOST.tests.
1704 (tests): Add tst-boost, depend on tst-boost-mem.
1705 (generated): Add tst-boost-mem and tst-boost.mtrace.
1706 (tst-boost-ARGS, tst-boost-ENV): Set.
1707 ($(objpfx)tst-boost-mem): New.
1708 * posix/tst-boost.c: New test.
1709 * posix/BOOST.tests: New file.
1711 * posix/Makefile (distribute): Add PCRE.tests.
1712 (tests): Add tst-pcre, depend on tst-pcre-mem.
1713 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1714 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1715 ($(objpfx)tst-pcre-mem): New.
1716 * posix/tst-pcre.c: New test.
1717 * posix/PCRE.tests: New file.
1719 2003-12-02 Jakub Jelinek <jakub@redhat.com>
1721 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1723 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1724 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1726 2003-12-03 Ulrich Drepper <drepper@redhat.com>
1728 * locale/programs/locarchive.c (enlarge_archive): Print size info
1729 only in verbose mode.
1731 * locale/iso-3166.def: Three letter code of Romania changed.
1733 2003-12-02 Roland McGrath <roland@redhat.com>
1735 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1736 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1738 2003-11-30 Andreas Jaeger <aj@suse.de>
1740 * config.make.in (fno-unit-at-a-time): Define.
1742 * configure.in: Add test for -fno-unit-at-a-time.
1745 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1746 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1748 2003-12-01 Automatic
1750 * version.h (VERSION): Bump to 2.3.3.
1752 2003-11-30 Andreas Jaeger <aj@suse.de>
1754 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1755 decrease stack usage.
1757 2003-11-30 Andreas Schwab <schwab@suse.de>
1759 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1760 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1762 2003-11-29 Ulrich Drepper <drepper@redhat.com>
1764 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1765 recognize \134 as well.
1767 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1769 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1771 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1773 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1775 (struct ia64_fpreg): New definition.
1777 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1779 (ELF_NGREG): New #define.
1780 (ELF_NFPREG): Likewise.
1781 (elf_greg_t): New type.
1782 (elf_gregset_t): Likewise.
1783 (elf_fpreg_t): Likewise.
1784 (elf_fpregset_t): Likewise.
1786 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1788 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1790 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
1791 (pt_all_user_regs): New type.
1793 2003-10-10 Simon Josefsson <jas@extundo.com>
1795 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1796 strchrnul.h, strndup.h (from gnulib).
1797 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1799 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1800 Autoconf manual version.
1801 * argp/argp.h: Map __restrict to restrict or empty string when
1802 necessary, copied verbatim from posix/regex.h.
1804 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1806 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1807 addition to c++-types-$(base-machine)-$(config-os).data.
1808 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1809 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1811 2003-11-28 Ulrich Drepper <drepper@redhat.com>
1813 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1815 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1816 Reported by Andries.Brouwer@cwi.nl.
1818 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1819 to compensate other setup.
1821 2003-11-27 Andreas Jaeger <aj@suse.de>
1823 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1825 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1826 Reported by "Willus" <etc231etc231@willus.com>.
1828 2003-11-27 Michael Matz <matz@suse.de>
1830 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1833 2003-11-28 Jakub Jelinek <jakub@redhat.com>
1835 * posix/regexec.c (acquire_init_state_context): Make inline.
1836 Add always_inline attribute.
1837 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1838 into if (dfa->nbackref).
1839 (sift_states_backward): Fix comment.
1840 (transit_state): Add BE macro. Move if (next_state->has_backref)
1841 into if (dfa->nbackref && next_state). Don't check for next_state
1843 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1845 (parse_expression): Only call init_word_char if word context will be
1848 * posix/bug-regex11.c (tests): Add new tests.
1850 * posix/tst-regex.c: Include getopt.h.
1851 (timing): New variable.
1852 (main): Set timing to 1 if --timing argument is present.
1854 (run_test, run_test_backwards): Handle timing.
1856 2003-11-27 Jakub Jelinek <jakub@redhat.com>
1858 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1859 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1860 offsets_needed fields. Change icase, is_utf8 and map_notascii
1861 type from int bitfield to unsigned char.
1862 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1863 (build_wcs_upper_buffer): Change prototype to return int.
1864 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1865 defines, add prototypes.
1866 * posix/regex_internal.c (re_string_allocate): Don't initialize
1867 stop here. Don't initialize mbs_case. Set valid_raw_len.
1868 Use mbs_allocated instead of MBS_* macros.
1869 (re_string_construct): Don't initialize stop and valid_len here.
1870 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1871 macros. Reallocate buffers if build_wcs_upper_buffer converted
1872 too few bytes. Set valid_len to bufs_len only for single byte
1873 no translation and set in that case valid_raw_len as well.
1874 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1875 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1877 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1879 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1880 after it. Set valid_raw_len. Don't set mbs_case.
1881 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1882 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1883 before mbrtowc instead of after it. If upper case character
1884 uses different number of bytes than lower case, goto to the
1885 slow path. Don't call towupper unnecessarily twice. Set
1886 valid_raw_len as well. Handle in the slow path the case if
1887 lower and upper case use different number of characters.
1889 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
1890 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
1892 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
1894 (re_string_reconstruct): Use raw_len/raw_stop to initialize
1895 len/stop. Clear valid_raw_len and offsets_needed when clearing
1896 valid_len. Use mbs_allocated instead of MBS_* macros.
1897 Check original offset against valid_raw_len instead of valid_len.
1898 Remove mbs_case handling. Adjust valid_raw_len together with
1899 valid_len. If is_utf8 and looking for tip context, apply
1900 pstr->trans first. If buffers start with partial multi-byte
1901 character, initialize mbs array as well if mbs_allocated.
1902 Check return value of build_wcs_upper_buffer.
1903 (re_string_peek_byte_case): New function.
1904 (re_string_fetch_byte_case): New function.
1905 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
1906 Don't free mbs_case. Free offsets.
1907 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
1909 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
1910 as well. Use valid_raw_len instead of valid_len when looking
1911 through fastmap. Adjust registers through input.offsets.
1912 (extend_buffers): Allow build_wcs_upper_buffer to fail.
1913 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
1916 2003-11-26 Jakub Jelinek <jakub@redhat.com>
1918 * posix/regexec.c (check_subexp_limits): Only check close
1919 subexpression limitation if one is found. Formatting.
1920 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
1922 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
1925 2003-11-26 Ulrich Drepper <drepper@redhat.com>
1927 * sysdeps/unix/sysv/linux/kernel-features.h
1928 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
1929 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
1930 if __ASSUME_PROT_GROWSUPDOWN is defined.
1932 2003-11-26 Andreas Jaeger <aj@suse.de>
1934 * sysdeps/unix/sysv/linux/dl-execstack.c
1935 (_dl_make_stack_executable): Set dl_stack_flags always for
1938 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
1940 * locale/program/ld-monetary.c: Only check the first three
1941 characters in int_curr_symbol against ISO-4217, to make the
1942 separator character used by a locale independent of the content
1944 * locale/iso-4217.def: Remove the space character from all
1945 currency values to get the new test code in ld-monetary.c working.
1947 2003-11-21 David Mosberger <davidm@hpl.hp.com>
1949 * elf/soinit.c (_fini): Put _fini() in .init_array section if
1950 HAVE_INITFINI_ARRAY is defined.
1952 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1954 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
1955 Define it appropriately after last change. Use it where __sqrtl
1958 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
1960 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
1961 sqrt for gcc 3.3 and above.
1963 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1965 * posix/runptests.c (main): Make errors fatal.
1966 * posix/PTESTS: One test in GA135 and GA136 check functionality
1967 which seems not guaranteed.
1969 2003-11-25 Jakub Jelinek <jakub@redhat.com>
1971 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
1972 returned REG_NOMATCH, set match_last to -1. Don't initialize
1973 pmatch[0] needlessly. Fix comment.
1974 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
1975 (set_regs): Fix comment.
1976 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
1977 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
1978 (build_charclass_op): Set has_plural_match if adding both
1979 SIMPLE_BRACKET and COMPLEX_BRACKET.
1980 * posix/bug-regex11.c (tests): Fix register values for one commented
1981 out test. Add new tests.
1983 * posix/regex_internal.c (re_string_allocate): Make sure init_len
1984 is at least dfa->mb_cur_max.
1985 (re_string_reconstruct): If is_utf8, don't fall back into
1986 re_string_skip_chars just because idx points into a middle of
1987 valid UTF-8 character. Instead, set the wcs bytes which correspond
1988 to the partial character bytes to WEOF.
1989 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
1990 instead of dfa->nodes_len + 1 state_log entries initially.
1991 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
1994 2003-11-24 Jakub Jelinek <jakub@redhat.com>
1996 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
1998 (re_dfa_t): Add sb_char field.
1999 (bitset_mask): New function.
2000 * posix/regcomp.c (free_dfa_content): Free sb_char.
2001 (init_dfa): Don't initialize word_char unnecessarily.
2003 (duplicate_node): Don't duplicate !word_char CHARACTERs with
2004 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
2005 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
2006 (duplicate_node_closure): Handle clone_dest == -1 from
2008 (peek_token): Initialize word_char bit.
2009 (parse_expression, parse_dup_op): Add comments.
2010 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
2011 starting bytes here at the beginning. Mask off the bits right
2012 before creating SIMPLE_BRACKET.
2013 (build_charclass_op): Likewise.
2014 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
2015 set accept bits for single-byte characters.
2016 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
2017 being single byte encoded and the rest multi-byte.
2018 * posix/bug-regex19.c (tests): Add new tests.
2019 (do_mb_tests): Initialize t to *test.
2020 (main): Fail even on do_mb_tests errors.
2022 2003-11-23 Ulrich Drepper <drepper@redhat.com>
2024 * posix/regexec.c: Correct several memory allocation problems.
2026 * posix/regex_internal.c: Likewise.
2027 * posix/regcomp.c: Likewise.
2029 * posix/regexec.c: Add const in a number of places.
2030 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
2031 debugging. Its value isn't important.
2033 2003-11-22 Ulrich Drepper <drepper@redhat.com>
2035 * posix/PTESTS: Fix first test of GA143.
2037 2003-11-21 Ulrich Drepper <drepper@redhat.com>
2039 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
2042 * locale/programs/charmap.c (charmap_read): If encoding is found
2043 not ASCII compatible, set enc_not_ascii_compatible.
2044 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
2045 * locale/programs/ld-ctype.c (ctype_startup): If
2046 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
2048 2003-11-22 Jakub Jelinek <jakub@redhat.com>
2050 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
2051 if !__libc_enable_secure.
2053 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
2055 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
2056 (dl_main): Set GL(dl_use_load_bias) default.
2057 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
2058 Add EXTRA_LD_ENVVARS_13.
2059 * elf/dl-support.c (_dl_use_load_bias): New variable.
2060 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
2061 with GL(dl_use_load_bias).
2062 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
2064 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
2065 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
2066 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
2067 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
2068 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
2070 2003-11-21 Ulrich Drepper <drepper@redhat.com>
2072 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
2074 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
2075 pointer. Adjust callers.
2077 * posix/regcomp.c (fetch_token): Change interface to match
2078 peek_token. This avoids some copying and reduces code size.
2080 2003-11-21 Jakub Jelinek <jakub@redhat.com>
2082 * posix/bug-regex19.c (tests): Add more tests.
2084 * posix/bug-regex11.c: And one more commented out test.
2086 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
2087 tests multiple times unnecessarily.
2089 * posix/bug-regex19.c (BRE, ERE): Define.
2090 (tests): Add many new tests, remove UTF-8 ones.
2091 (do_one_test, do_mb_tests): New functions.
2092 (main): Rewritten using do_one_test and do_mb_tests.
2094 2003-11-20 Ulrich Drepper <drepper@redhat.com>
2096 * posix/PTESTS: Fix first test in GA143.
2098 2003-11-20 Jakub Jelinek <jakub@redhat.com>
2100 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
2102 * posix/regex_internal.c (create_newstate_common, free_state):
2103 Don't free trtable_search.
2104 * posix/regexec.c (check_matching): Remove fl_search argument.
2105 (transit_state_sb): Likewise. #ifdef out as unused.
2106 (build_trtable): Remove fl_search argument. Set state->word_trtable
2107 and state->trtable. Build separate word and non-word tables if
2108 multi-byte and they differ for some character.
2109 (transit_state): Remove fl_search argument. Don't update
2110 state->trtable here. Handle state->word_trtable.
2111 #ifdef out unused call to transit_state_sb.
2112 (re_search_internal): Update check_matching caller.
2113 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
2114 bitmask for multi-byte locales.
2115 * posix/bug-regex19.c (tests): Enable some commented out tests, add
2117 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
2118 multi-byte. Don't run identical multi-byte tests multiple times
2120 (main): Check setlocale return value.
2121 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
2122 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
2123 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
2124 here, without --utf8 argument but with MALLOC_TRACE.
2126 2003-11-19 Jakub Jelinek <jakub@redhat.com>
2128 * posix/regexec.c (extend_buffers): Don't allocate
2129 twice as big state_log as needed. Don't modify pstr->valid_len
2130 for mb_cur_max == 1 !icase !trans.
2132 * posix/regcomp.c (free_bin_tree): Removed.
2133 (create_tree): Add dfa argument. Don't call re_malloc for
2134 each tree, instead allocate from str_tree_storage.
2135 (re_dfa_add_tree_node): New function.
2136 (free_dfa_content): Handle freeing if dfa->nodes == NULL
2137 or dfa->state_table == NULL.
2138 (re_compile_internal): Call free_dfa_content if init_dfa
2139 fails. Call free_workarea_compile, re_string_destruct
2140 and free_dfa_content for most of the other failure paths.
2141 (init_dfa): Initialize str_tree_storage_idx.
2142 Don't clear any fields on allocation failure.
2143 (free_workarea_compile): Free str_tree_storage chunks
2144 instead of free_bin_tree (dfa->str_tree).
2145 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
2146 followed by create_tree. Add dfa argument to remaining
2147 create_tree calls. Remove new_idx variable. Remove calls
2149 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
2150 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
2151 (duplicate_tree): Remove calls to free_bin_tree, add dfa
2152 argument to create_tree.
2153 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
2154 (bin_tree_storage_t): New type.
2155 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
2157 * posix/Makefile (tests): Add bug-regex21.
2158 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
2159 tst-rxspencer-mem and tst-rxspencer.mtrace.
2160 (tests): Depend on $(objpfx)bug-regex21-mem
2161 and $(objpfx)tst-rxspencer-mem.
2162 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
2163 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
2164 * posix/tst-rxspencer.c (main): Add call to mtrace.
2165 Free line at the end.
2166 * posix/bug-regex21.c: New test.
2168 2003-11-19 Ulrich Drepper <drepper@redhat.com>
2170 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
2172 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
2173 fails, just use the byte, do no fancy conversions.
2175 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
2177 (re_string_is_single_byte_char): Likewise.
2179 2003-11-18 Ulrich Drepper <drepper@redhat.com>
2181 * posix/regexec.c (get_subexp): After calling get_subexp_sub
2182 reload buf and bkref_str. Little optimization by avoiding memcmp.
2184 2003-11-14 David Mosberger <davidm@hpl.hp.com>
2186 * sysdeps/unix/sysv/linux/ia64/sysdep.h
2187 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
2188 that all existing GAS versions have a problem with .align inside
2190 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
2191 * sysdeps/ia64/memcpy.S: Likewise.
2192 * sysdeps/ia64/memset.S: Likewise.
2193 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
2194 out of .text into .rodata, where it belongs.
2196 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
2197 save/restore input-arguments, because they're necessarily
2198 preserved by the kernel to support syscall-restart.
2200 2003-11-18 Jakub Jelinek <jakub@redhat.com>
2202 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
2203 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
2205 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
2206 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
2207 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
2208 Handle OP_UTF8_PERIOD.
2209 (re_string_reconstruct): Set valid_len for single byte char searching
2210 with no translation and case sensitivity.
2211 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
2213 (re_compile_internal): Don't call optimize_utf8 if preg->translate
2215 (optimize_utf8): Remove BACK_SLASH case.
2216 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
2218 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
2219 any bits set and COMPLEX_BRACKET is used.
2220 * posix/regexec.c (transit_state_mb): Fix comment typo.
2221 (group_nodes_into_DFAstates, check_node_accept): Handle
2223 (check_node_accept_bytes): Likewise. Reorder slightly so that
2224 re_string_char_size_at and re_string_elem_size_at are called
2226 * posix/bug-regex20.c (BRE, ERE): Define.
2227 (tests): Use them to make lines shorter. Expect . to be
2228 optimized. Add lots of new tests.
2229 (main): Run (ATM just case sensitive) test with backwards searching
2232 2003-11-18 Jakub Jelinek <jakub@redhat.com>
2234 * io/bug-ftw4.c: Include string.h.
2235 * posix/fnmatch.c (mbsinit): Remove define.
2237 2003-11-17 Jakub Jelinek <jakub@redhat.com>
2239 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
2241 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
2242 followed by dup operator is expected to be optimized.
2244 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
2245 variables to the block where they are only used, initialize
2246 nrules only immediately before using it.
2248 2003-11-15 Andreas Jaeger <aj@suse.de>
2250 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
2251 * sysdeps/x86_64/fpu/s_truncl.S: New file.
2252 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
2253 * sysdeps/x86_64/fpu/s_floorl.S: New file.
2254 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
2255 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
2257 * math/libm-test.inc (floor_test): Test also ±0.25.
2258 (ceil_test): Test -0.25.
2260 2003-11-17 Ulrich Drepper <drepper@redhat.com>
2262 * sysdeps/posix/getaddrinfo.c: Add support for destination address
2263 selection according to RFC 3484.
2265 2003-11-15 Ulrich Drepper <drepper@redhat.com>
2267 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
2268 Replace last two parameters of re_string_allocate and
2269 re_string_construct with pointer to DFA.
2270 (re_dfa_t): Add map_notascii field.
2271 * posix/regcomp.c (re_compile_internal): Add call of
2272 re_string_construct.
2273 (init_dfa): Initialize map_notascii.
2274 * posix/regex_internal.c: Adjust definitions of re_string_allocate
2275 and re_string_construct.
2276 Pass DFA to re_string_construct. Adjust definition. Initialize
2278 (build_wcs_upper_buffer): If map_notascii is zero use simplified
2279 method to map ASCII values to upper case.
2280 * posix/regex.c: Include localeinfo.h.
2281 * posix/regexec.c: Adjust call of re_string_allocate.
2283 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
2284 * locale/localeinfo.h (LIMAGIC): Change value.
2285 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
2286 * locale/C-ctype.h: Likewise.
2287 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
2288 ASCII to non-ASCII value. Write out that value.
2290 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
2291 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
2293 2003-11-14 Jakub Jelinek <jakub@redhat.com>
2295 * posix/tst-rxspencer.c (check_match): @ without any following
2296 characters must match only end of string.
2297 (main): Fix filename in error message.
2299 2003-11-12 David Mosberger <davidm@hpl.hp.com>
2301 * sysdeps/ia64/dl-machine.h: Force inlining of
2302 elf_machine_runtime_setup().
2304 2003-11-13 Andreas Jaeger <aj@suse.de>
2306 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
2307 (CFLAGS-test-double.c): Likewise.
2308 (CFLAGS-test-ldouble.c): Likewise.
2309 (CPPFLAGS-test-ifloat.c): Likewise.
2310 (CPPFLAGS-test-idouble.c): Likewise.
2311 (CPPFLAGS-test-ildoubl.c): Likewise.
2313 * math/libm-test.inc (ceil_test): Test ceil (0.25).
2315 2003-11-04 Ulrich Drepper <drepper@redhat.com>
2317 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
2318 sends the netlink data.
2319 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
2321 2003-11-13 Jakub Jelinek <jakub@redhat.com>
2323 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
2324 with no bits set for >= 0x80 chars is seen.
2325 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
2327 (main): Run all tests with RE_ICASE as well.
2329 2003-11-13 Ulrich Drepper <drepper@redhat.com>
2331 * posix/Makefile: Add rules to build and run tst-rxspencer.
2332 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
2333 * posix/tst-rxspencer.c: New file.
2334 * posix/rxspencer/tests: New file.
2335 * posix/rxspencer/COPYRIGHT: New file.
2336 Patch mostly by Jakub Jelinek.
2338 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
2339 this is no option given the first token.
2341 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
2342 hyphen in range expression. Return EBRACK in this case.
2344 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
2345 we expect them or it's the last element in the bracket expression.
2346 Indicated by new parameter. Adjust all callers.
2348 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
2349 Prettier error messages.
2351 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
2352 number in {,} expression is larger.
2354 2003-11-13 Andreas Jaeger <aj@suse.de>
2356 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2357 Define appropriately for x86_64.
2358 (__ASSUME_UTIMES): Likewise.
2359 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
2361 * sysdeps/x86_64/fpu/s_ceill.S: New file.
2363 2003-11-13 Ulrich Drepper <drepper@redhat.com>
2365 * posix/regcomp.c (parse_expression): In BRE consecutive
2366 duplications are not allowed.
2368 2003-11-12 Ulrich Drepper <drepper@redhat.com>
2370 * posix/regcomp.c (parse_bracket_exp): If end of expression is
2371 seen, return EBRACK error, not BADPAT.
2373 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
2374 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
2375 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
2376 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
2378 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
2381 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
2382 * posix/runptests.c (main): Handle comments.
2383 * posix/PTESTS2C.sed: Handle comments.
2385 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2387 * posix/regcomp.c (optimize_utf8): New function.
2388 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
2390 (re_compile_internal): Call optimize_utf8 if not case insensitive
2391 and in UTF-8 locale.
2392 * posix/regex_internal.h: Ifdef out some prototypes if
2393 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
2394 * posix/Makefile (tests): Add bug-regex20.
2395 (bug-regex20-ENV): Add LOCPATH.
2396 * posix/bug-regex20.c: New test.
2398 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2400 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
2402 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2404 * posix/tst-regex.c (umemlen): New variable.
2405 (test_expr): Add expectedicase argument. Test case insensitive
2406 searches as well as backwards searches (case sensitive and
2408 (run_test): Add icase argument. Use it to compute regcomp flags.
2409 (run_test_backwards): New function.
2410 (main): Cast read to size_t to avoid warning. Set umemlen.
2411 Add expectedicase arguments to test_expr.
2412 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
2413 find previous character by walking back instead of converting
2414 all chars from beginning.
2416 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2418 * posix/regex_internal.h (struct re_string_t): Add is_utf8
2419 and mb_cur_max fields.
2420 (struct re_dfa_t): Likewise. Reorder fields to make structure
2421 smaller on 64-bit arches.
2422 (re_string_allocate, re_string_construct): Add mb_cur_max and
2424 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
2425 instead of MB_CUR_MAX.
2426 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
2427 instead of MB_CUR_MAX.
2428 (re_compile_internal): Pass new arguments to re_string_construct.
2429 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
2430 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
2432 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
2433 dfa->mb_cur_max instead of MB_CUR_MAX.
2434 * posix/regex_internal.c (re_string_construct_common): Add
2435 mb_cur_max and is_utf8 arguments. Initialize fields with them.
2436 (re_string_allocate, re_string_construct): Add mb_cur_max and
2437 is_utf8 arguments, pass them to re_string_construct_common.
2438 Use mb_cur_max instead of MB_CUR_MAX.
2439 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
2441 (re_string_reconstruct): Likewise.
2442 (re_string_context_at): Use input->mb_cur_max instead of
2444 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
2445 instead of MB_CUR_MAX.
2446 * posix/regexec.c (re_search_internal): Likewise.
2447 Pass new arguments to re_string_allocate.
2448 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
2450 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
2452 2003-11-12 Jakub Jelinek <jakub@redhat.com>
2454 * posix/Makefile (tests): Add bug-regex19.
2455 (bug-regex19-ENV): Add LOCPATH.
2456 * posix/bug-regex19.c: New test.
2458 2003-11-11 Jakub Jelinek <jakub@redhat.com>
2460 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
2461 with MB_CUR_MAX > 1 locales in the fastmap.
2463 2003-11-11 Jakub Jelinek <jakub@redhat.com>
2465 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
2466 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
2468 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
2469 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
2470 * posix/bug-regex17.c: New file
2471 * posix/bug-regex18.c: New file.
2473 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
2475 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
2476 Define __NR_pread/__NR_pwrite if not done in kernel headers
2478 2003-11-11 Roland McGrath <roland@redhat.com>
2480 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
2482 * manual/Makefile (info): Don't depend on dir-add.info.
2483 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
2484 (dir-add.info): Target removed, replaced with ...
2485 (dir-add.texi): New target.
2486 (distribute): Add it.
2487 (install): Remove variant with --section arguments.
2488 Let the @dircategory directives do their work.
2489 (mostlyclean): Don't remove dir-add.info here.
2490 (realclean): Remove dir-add.texi here.
2491 * manual/libc.texinfo: @include dir-add.texi
2492 * configure.in: Remove check for old Debian install-info.
2493 * configure: Regenerated.
2494 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
2496 2003-11-08 Andreas Schwab <schwab@suse.de>
2498 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
2500 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2502 * io/ftwtest-sh: Fix nested sed commands.
2504 2003-11-10 Jakub Jelinek <jakub@redhat.com>
2506 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
2507 valid_len wide chars.
2509 2003-11-09 Roland McGrath <roland@redhat.com>
2511 * manual/examples/dir2.c (one): Add const to argument type.
2512 Reported by J de Haan <j.de.haan@home.nl>.
2514 2003-11-07 Ulrich Drepper <drepper@redhat.com>
2516 * po/pl.po: Update from translation team.
2518 2003-11-07 Jakub Jelinek <jakub@redhat.com>
2520 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2521 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
2522 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
2523 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
2525 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2526 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
2527 and nftw64@@GLIBC_2.3.3.
2529 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
2530 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
2531 * io/ftw.c (ftw_dir): Add old_dir argument.
2532 Clear result if it was FTW_SKIP_SIBLINGS after processing all
2533 dir entries. Change cwd back if old_dir != NULL.
2534 (process_entry): Adjust caller. Don't change cwd back here.
2535 Change FTW_SKIP_SUBTREE result to 0.
2536 (ftw_startup): Adjust ftw_dir caller.
2537 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
2538 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
2539 (options, main): Add --skip-subtree and --skip-siblings options.
2540 (cb): Use return FTW_CONTINUE instead of return 0.
2541 Handle --skip-subtree and --skip-siblings.
2542 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
2543 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
2545 2003-11-04 Jakub Jelinek <jakub@redhat.com>
2547 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
2549 * io/Makefile (tests): Add bug-ftw4.
2550 * io/bug-ftw4.c: New test.
2552 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
2554 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
2555 (struct _IO_FILE_complete_plus): New type.
2556 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
2557 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2558 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
2559 Call _IO_old_init instead of _IO_init.
2561 2003-11-03 Ulrich Drepper <drepper@redhat.com>
2563 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
2565 * locale/iso-639.def: Add Blin.
2566 Patch by Daniel Yacob <locales@geez.org>.
2568 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
2570 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
2571 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
2573 2003-11-01 Randolph Chung <tausq@debian.org>
2575 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
2576 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
2577 Add missing parentheses.
2579 2003-11-01 Roland McGrath <roland@redhat.com>
2581 * libio/bug-ftell.c (do_test): Add a cast.
2583 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
2585 * Makerules (shlib.lds): Make sure that ld doesn't try to link
2586 anything while generating the linker script.
2588 2003-10-31 Roland McGrath <roland@redhat.com>
2590 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
2593 2003-10-29 Ulrich Drepper <drepper@redhat.com>
2595 * po/be.po: Update from translation team.
2597 2003-10-27 Ulrich Drepper <drepper@redhat.com>
2599 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
2602 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
2605 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
2606 rest of line. We use getline which means this cannot happen.
2608 2003-10-26 Ulrich Drepper <drepper@redhat.com>
2610 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
2611 Avoid infinite loops in case the mounts file is hosed.
2612 * io/Makefile: Add rules to build and run tst-statvfs.
2613 * io/tst-statvfs.c: New file.
2615 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
2616 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
2617 executables unless __RTLD_OPENEXEC flag is present.
2618 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
2619 _dl_map_object when loading the executable.
2621 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
2623 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
2625 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
2626 reverse lookup format for IPv6 addresses is using bitstring and
2628 * resolv/ns_name.c: Implement encoding and decoding bitstring in
2631 2003-10-23 Jakub Jelinek <jakub@redhat.com>
2633 * locale/programs/locale.c (show_info): Fix printing word values on
2634 64-bit big-endian architectures.
2636 2003-10-19 Bruno Haible <bruno@clisp.org>
2638 * intl/hash-string.c (hash_string): Zero-extend each char from the
2639 string; the old code did a sign-extend on some platforms.
2641 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
2643 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
2644 append options to these.
2645 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
2647 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2649 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2651 2003-10-15 Roland McGrath <roland@redhat.com>
2653 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
2654 Fake an entry for the main executable and then call __dl_iterate_phdr.
2655 * elf/Makefile (routines): Remove dl-iteratephdr-static.
2656 (elide-routines.os): Likewise.
2657 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
2658 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
2659 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
2661 2003-10-15 Jakub Jelinek <jakub@redhat.com>
2663 * elf/rtld.c (print_statistics): Print also number of relative
2666 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
2668 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
2669 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
2670 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
2671 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
2672 and undef JUMPTARGET before use.
2673 [PIC]: Save pic register around syscall.
2674 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
2675 Cleanup asm statment.
2677 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2679 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
2680 after trapa instruction.
2682 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2684 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
2686 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2688 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2690 2003-10-09 Roland McGrath <roland@redhat.com>
2692 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
2695 2003-10-08 Jakub Jelinek <jakub@redhat.com>
2697 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
2698 two identical copies of strings.
2700 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2702 * posix/bug-regex11.c: Add some more tests which fail so far.
2703 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
2705 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
2707 * posix/bug-regex11.c: Add more backreference-related test cases.
2708 (main): Show the failing regex in the error messages.
2709 * posix/regexec.c (check_dst_limits_calc_pos):
2710 Simplify some nested conditionals. Replace if's with a switch
2712 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
2713 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
2714 does not change in the recursive invocation, fixing an infinite loop
2715 in the ()\1*\1* regex.
2716 (sift_states_backward): Fix function comment.
2717 * posix/regcomp.c (calc_epsdest): Add an assertion.
2719 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2721 * manual/examples/testopt.c: Fix warnings. Better error message
2722 for missing -c argument.
2723 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
2725 * timezone/asia: Update from tzdata2003d.
2726 * timezone/australasia: Likewise.
2727 * timezone/backward: Likewise.
2728 * timezone/europe: Likewise.
2729 * timezone/iso3166.tab: Likewise.
2730 * timezone/northamerica: Likewise.
2731 * timezone/southamerica: Likewise.
2732 * timezone/zone.tab: Likewise.
2734 2003-10-05 Jakub Jelinek <jakub@redhat.com>
2736 * sysdeps/ia64/backtrace.c: New file.
2737 * sysdeps/x86_64/backtrace.c: New file.
2738 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
2739 (_Unwind_Backtrace): New prototype.
2741 2003-10-03 Ulrich Drepper <drepper@redhat.com>
2743 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
2744 * sysdeps/i386/elf/setjmp.S: Likewise.
2746 2003-10-02 Roland McGrath <roland@redhat.com>
2748 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
2749 * argp/argp-namefrob.h
2750 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
2751 (__argp_short_program_name): Don't declare fn, define it as a macro.
2753 2003-08-22 Simon Josefsson <jas@extundo.com>
2755 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
2757 * argp/argp-help.c: Don't include malloc.h, some platforms
2758 complain and it doesn't appear to be used.
2759 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
2761 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
2763 (hol_entry_long_iterate): Change __attribute to __attribute__.
2764 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
2765 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
2766 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
2767 modified after comments from Ulrich Drepper.
2768 (__argp_short_program_name): Ditto.
2769 (__argp_state_help, __argp_error, __argp_failure): Use it.
2770 (__argp_failure): Use strerror when necessary.
2772 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
2773 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
2774 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
2775 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
2776 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
2777 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
2778 non-unlocked functions.
2779 [!_LIBC]: Add prototypes for __argp_basename and
2780 __argp_short_program_name.
2782 * argp/argp-parse.c (argp_default_parser): Only use
2783 program_invocation{_short,}_name if declared.
2784 (parser_init): Use __argp_short_program_name.
2786 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
2787 '#include features.h'.
2789 * argp/argp.h [!__attribute__]: Define to nothing.
2791 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
2793 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
2794 for the first token in a subexpression as well.
2796 2003-10-02 Jakub Jelinek <jakub@redhat.com>
2798 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
2800 (parse_reg_exp): Likewise.
2801 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
2803 * posix/bug-regex11.c (tests): Add new tests.
2804 * posix/bug-regex12.c (tests): Add new test.
2806 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
2808 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2809 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
2811 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
2813 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
2814 the old thread-m.h header too.
2816 2003-10-02 Ulrich Drepper <drepper@redhat.com>
2818 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
2819 back to 131027 since this is what the kernel enforces.
2821 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
2822 define it with libc_freeres_ptr.
2824 2003-10-01 Roland McGrath <roland@redhat.com>
2826 * elf/rtld.c (dl_main): Add cast in last change.
2828 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2830 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
2831 "#if 0" surrounding most of contents.
2832 (SYSCALL_ERROR_LABEL): Define.
2833 (__SYSCALL_CLOBBERS): Add $10.
2834 (internal_syscall7): Remove.
2835 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2837 2003-09-30 Ulrich Drepper <drepper@redhat.com>
2839 * elf/rtld.c (dl_main): Also set l_map_start.
2841 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
2843 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
2844 to work around kernel problem.
2846 2003-09-27 Wolfram Gloger <wg@malloc.de>
2848 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
2849 "thread-m.h", so that default parameters can be overridden in a
2850 system-specific malloc-machine.h. Remove extra ; from extern "C"
2852 * sysdeps/generic/malloc-machine.h: New file.
2853 * sysdeps/mach/hurd/malloc-machine.h: New file.
2854 * malloc/thread-m.h: Removed.
2855 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
2856 is in sysdeps/generic/malloc-machine.h now.
2858 2003-09-29 Ulrich Drepper <drepper@redhat.com>
2860 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2861 variables only used if TLS_TCB_AT_TP is defined into the #if
2864 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
2865 well to cover using long long in C90.
2867 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
2869 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
2870 Redefine and use __libc_cleanup_region_end instead.
2872 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
2874 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
2875 fix prototypes for picky C++ compilers.
2877 2003-09-27 Ulrich Drepper <drepper@redhat.com>
2879 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
2880 the device ID is invalid and return -1.
2881 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2883 2003-09-26 Andreas Schwab <schwab@suse.de>
2885 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
2886 rt_sigprocmask system call.
2888 2003-09-25 Roland McGrath <roland@redhat.com>
2890 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2891 Don't check for zero __libc_stack_end, it should be initialized.
2892 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
2893 and fall back if it fails with EINVAL.
2894 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
2896 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2898 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
2899 sysdeps/i386/dl-procinfo.c instead of
2900 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
2901 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
2904 2003-09-25 Ulrich Drepper <drepper@redhat.com>
2906 * posix/regcomp.c (peek_token): Remove recent changes for anchor
2908 (parse_reg_exp): Likewise.
2909 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
2911 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
2914 * nis/nis_table.c (nis_list): Always strdup string used with
2915 ibreq->ibr_name. Add several NULL pointer checks.
2917 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
2919 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2920 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2921 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2922 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
2923 * nis/nss_nisplus/nisplus-network.c: Likewise.
2924 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2925 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2926 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2927 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2928 * nis/nss_nisplus/nisplus-service.c: Likewise.
2929 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2931 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
2933 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2934 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
2935 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2936 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2937 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2938 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2939 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2940 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2941 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2942 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2943 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2945 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2947 * misc/syslog.c: Include locale.h.
2948 (vsyslog): Add date always in C locale %h %e %T format.
2950 2003-09-24 Paul Eggert <eggert@twinsun.com>
2952 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
2953 size_t overflow when reallocating storage.
2954 * argp/argp-help.c (make_hol, hol_append): Likewise.
2955 (SIZE_MAX): New macro.
2957 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
2959 * sysdeps/mach/hurd/bits/libc-lock.h
2960 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
2962 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
2964 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
2965 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
2966 #include_next dl-procinfo.h to get them.
2967 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
2968 (_DL_PLATFORMS_COUNT): Likewise.
2969 (_DL_FIRST_PLATFORM): Likewise.
2970 (_DL_HWCAP_PLATFORM): Likewise.
2971 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
2972 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
2973 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
2974 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
2975 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
2976 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
2977 HWCAP_IMPORTANT): Likewise.
2978 (_DL_PROCINFO_H_): Likewise.
2979 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
2980 (_dl_string_platform): Likewise.
2981 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
2982 * sysdeps/i386/dl-procinfo.c: ... here, new file.
2984 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2986 * sysdeps/unix/sysv/linux/dl-execstack.c
2987 (_dl_make_stack_executable): Remember that we changed the permission.
2989 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
2990 __libc_stack_end. Patch by David Mosberger.
2992 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2994 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
2995 __libc_stack_end@GLIBC_PRIVATE.
2997 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
2998 (_dl_sysdep_start): Set __libc_stack_end here.
2999 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
3001 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
3002 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
3003 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
3004 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
3005 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
3006 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
3007 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
3008 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
3009 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
3010 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
3011 (RTLD_START): Remove setting of __libc_stack_end.
3012 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
3013 (RTLD_START): Remove setting of __libc_stack_end.
3015 2003-09-24 Ulrich Drepper <drepper@redhat.com>
3017 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
3018 function definitions. Adjust macro expansions accordingly.
3019 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
3020 minor, makedev name.
3021 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
3023 2003-09-24 Jakub Jelinek <jakub@redhat.com>
3025 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
3028 2003-09-24 Jakub Jelinek <jakub@redhat.com>
3030 * nscd/Makefile (others): Add nscd before including ../Rules.
3032 2003-09-24 Ulrich Drepper <drepper@redhat.com>
3034 * nscd/Makefile: Add rules to build nscd as a PIE.
3035 * configure.in: Check for -fpie and -pie compiler options.
3036 * config.make.in (have-fpie): Define.
3038 2003-09-23 Ulrich Drepper <drepper@redhat.com>
3040 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
3042 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
3043 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
3044 * sysdeps/unix/sysv/linux/makedev.c: New file.
3045 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
3046 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
3047 (sysdep_routines): Add makedev.
3048 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
3049 major, minor, makedev.
3050 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
3052 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
3053 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
3054 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
3055 Code by Alexander Viro <aviro@redhat.com>.
3057 2003-09-23 Ulrich Drepper <drepper@redhat.com>
3059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
3060 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
3062 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
3063 for include Altivec support for PPC32. It was not compatible.
3064 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
3065 offsets for ucontext_t change.
3066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
3067 for ucontext_t change. Add compatibility code.
3068 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
3069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3071 Patch by Paul Mackerras <paulus@samba.org>.
3073 2003-02-25 Randolph Chung <tausq@debian.org>
3075 * sysdeps/hppa/Makefile: Include compat code in build.
3076 * sysdeps/hppa/libgcc-compat.c: New file.
3077 * sysdeps/hppa/Dist: Add libgcc-compat.c.
3078 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
3080 2003-09-23 Roland McGrath <roland@redhat.com>
3082 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
3083 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
3084 Move GL(dl_make_stack_executable_hook) initialization up.
3085 * elf/tst-execstack-prog.c: New file.
3086 * elf/Makefile (tests-execstack-yes): Add it.
3087 (LDFLAGS-tst-execstack-prog): New variable.
3089 2003-09-23 Jakub Jelinek <jakub@redhat.com>
3091 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
3092 before calling _dl_start, using %rip relative access.
3093 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
3096 2003-09-23 Roland McGrath <roland@redhat.com>
3098 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
3099 calling _dl_start, using GOTOFF access.
3101 * configure.in (libc_cv_z_execstack): New check.
3102 * configure: Regenerated.
3103 * config.make.in (have-z-execstack): New variable set by it.
3104 * elf/tst-execstack.c: New file.
3105 * elf/tst-execstack-mod.c: New file.
3106 * elf/tst-execstack-needed.c: New file.
3107 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
3109 (tests, modules-names): Conditionally include them.
3110 (distribute): Add tst-execstack-mod.c here.
3111 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
3112 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
3113 ($(objpfx)tst-execstack-needed): New target.
3114 (LDFLAGS-tst-execstack-needed): New variable.
3116 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
3117 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
3118 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
3119 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
3120 Initialize _dl_make_stack_executable_hook.
3121 * elf/dl-support.c: Define those new variables.
3122 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
3123 (_dl_phdr): Fix type.
3124 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
3125 enable execute permission for the stack if necessary.
3126 * sysdeps/generic/dl-execstack.c: New file.
3127 * elf/Makefile (dl-routines): Add it.
3128 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
3129 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
3131 2003-09-23 Ulrich Drepper <drepper@redhat.com>
3133 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
3135 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
3137 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
3138 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
3141 2003-09-22 Ulrich Drepper <drepper@redhat.com>
3143 * malloc/malloc.c: Include <stdint.h>.
3145 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
3147 * posix/regcomp.c (build_word_op): Rename like...
3148 (build_charclass_op): ...this. Accept two extra parameters,
3149 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
3150 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
3151 (parse_expression): Replace build_word_op with
3152 build_charclass_op, add new arguments, accept OP_SPACE
3154 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
3157 * posix/regcomp.c (peek_token): Don't look back for ( or |
3158 to check whether to treat a caret as special. It fails
3159 for the (extended) regex \(^.
3160 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
3161 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
3163 * posix/regexec.c: Check out of bounds value before shifting.
3165 * posix/regex_internal.h: Define __attribute for non-gcc.
3167 2003-09-22 Jakub Jelinek <jakub@redhat.com>
3169 * include/atomic.h (atomic_compare_and_exchange_val_rel,
3170 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
3173 * sysdeps/unix/opendir.c: Include string.h.
3175 2003-09-22 Ulrich Drepper <drepper@redhat.com>
3177 * timezone/zdump.c: Update from tzcode2003c.
3178 * timezone/zic.c: Likewise.
3179 * timezone/leapseconds: Update from tzdata2003c.
3181 2003-09-19 Ulrich Drepper <drepper@redhat.com>
3183 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
3184 final build to ease quality control.
3186 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
3187 ld.so, don't include NULL buffer pointer handling.
3189 2003-09-19 Jakub Jelinek <jakub@redhat.com>
3191 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
3193 2003-09-18 Jakub Jelinek <jakub@redhat.com>
3195 * libio/memstream.c (open_memstream): Use _IO_init instead of
3198 2003-09-17 Ulrich Drepper <drepper@redhat.com>
3200 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
3201 have to recognize octal and hexadecimal numbers as well. Simplify
3202 function, signs are handled in strtol.
3203 * posix/wordexp-test.c: Add tests for octal and hexadecimal
3204 numbers in arithmetic expressions.
3206 2003-09-17 Jakub Jelinek <jakub@redhat.com>
3208 * elf/Makefile (distribute): Add tst-alignmod.c.
3209 (tests): Add tst-align.
3210 (modules-names): Add tst-alignmod.
3211 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
3212 $(stack-align-test-flags).
3213 ($(objpfx)tst-align): Depend on libdl.
3214 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
3215 * elf/tst-align.c: New file.
3216 * elf/tst-alignmod.c: New file.
3217 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
3218 * misc/tst-tsearch.c: Include tst-stack-align.h.
3219 (stack_align_check): New array.
3220 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
3221 (main): Report error if stack was not enough aligned
3222 in cmp_fn or walk_action.
3223 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
3224 * stdlib/tst-qsort.c: Include tst-stack-align.h.
3225 (align_check): New var.
3226 (compare): Use TEST_STACK_ALIGN () macro.
3227 (main): Report error if stack was not enough aligned in compare.
3228 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
3229 unneeded -mpreferred-stack-boundary=4.
3230 * sysdeps/x86_64/tst-stack-align.h: New file.
3232 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
3233 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
3235 2003-09-17 Philip Blundell <philb@gnu.org>
3237 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
3239 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
3241 * sysdeps/arm/sysdep.h (DO_RET): New.
3243 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
3244 required but not defined. Improve test of error code.
3246 2003-09-17 Jakub Jelinek <jakub@redhat.com>
3248 * sysdeps/i386/Makefile (stack-align-test-flags): Add
3249 -malign-double -mpreferred-stack-boundary=4.
3251 2003-09-17 Ulrich Drepper <drepper@redhat.com>
3253 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
3254 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
3256 2003-09-15 Jakub Jelinek <jakub@redhat.com>
3258 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
3259 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
3261 2003-09-17 Jakub Jelinek <jakub@redhat.com>
3263 * Makeconfig (stack-align-test-flags): Set.
3264 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
3265 $(stack-align-test-flags).
3266 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
3267 (align_check): New var.
3268 (comp): Use TEST_STACK_ALIGN macro.
3269 (do_test): Fail if align_check != 1.
3270 * sysdeps/generic/tst-stack-align.h: New file.
3271 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
3272 * sysdeps/i386/i686/tst-stack-align.h: New file.
3274 2003-09-17 Ulrich Drepper <drepper@redhat.com>
3276 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
3277 stack which is aligned (mod 16).
3279 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
3280 Hans-Peter Nilsson <hp@axis.com>
3282 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
3283 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
3285 2003-09-17 Jakub Jelinek <jakub@redhat.com>
3287 * dirent/scandir.c: Include bits/libc-lock.h.
3288 (struct scandir_cancel_struct): New type.
3289 (cancel_handler): New function.
3290 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
3291 scandir_cancel_struct.
3293 2003-09-16 Ulrich Drepper <drepper@redhat.com>
3295 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
3296 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3297 Add internal_statvfs.
3298 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
3299 instead of including "internal_statvfs.c".
3300 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
3301 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
3302 Add code to avoid the stat calls on all the reported mount points
3303 when we can determine mismatch in advance.
3304 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
3305 USBDEVFS_SUPER_MAGIC.
3307 2003-09-16 Jakub Jelinek <jakub@redhat.com>
3309 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
3310 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
3312 2003-09-16 Bruno Haible <bruno@clisp.org>
3314 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
3315 invoking msgfmt, not before.
3317 2003-09-15 Jakub Jelinek <jakub@redhat.com>
3319 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
3320 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
3322 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
3323 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
3324 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
3325 * elf/dl-iteratephdr.c (cancel_handler): New function.
3326 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
3327 * elf/link.h (dl_iterate_phdr): Remove __THROW.
3328 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
3329 Add $(uses-callbacks).
3330 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
3331 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
3332 $(exceptions) to $(uses-callbacks).
3333 * Makeconfig (uses-callbacks): Set to $(exceptions).
3334 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
3336 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
3339 2003-09-15 Andreas Schwab <schwab@suse.de>
3341 * sysdeps/m68k/setjmp.c: Add hidden_def.
3343 2003-09-14 Ulrich Drepper <drepper@redhat.com>
3345 * libio/memstream.c (open_memstream): Don't allow wide char operations.
3347 * dirent/dirent.h: Remove __THROW from scandir.
3349 2003-09-14 Philip Blundell <philb@gnu.org>
3351 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
3354 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
3356 * sysdeps/arm/memset.S: Rewrite.
3358 2003-09-12 Jakub Jelinek <jakub@redhat.com>
3360 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
3361 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
3362 __SLONGWORD_TYPE otherwise.
3364 2003-09-14 Ulrich Drepper <drepper@redhat.com>
3366 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
3367 (CFLAGS-ftw64.c): Likewise.
3369 2003-09-13 Ulrich Drepper <drepper@redhat.com>
3371 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
3372 (CFLAGS-nscd_getgr_r.c): Likewise.
3373 (CFLAGS-nscd_gethst_r.c): Likewise.
3375 2003-09-12 Ulrich Drepper <drepper@redhat.com>
3377 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
3380 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
3381 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
3382 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
3383 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
3384 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
3385 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
3387 * misc/Makefile (CFLAGS-err.c): Likewise.
3388 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
3389 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
3390 CFLAGS-glob64.c): Likewise.
3391 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
3392 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
3393 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
3394 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
3395 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
3397 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
3399 * libio/stdio.h: Remove __THROW from cuserid prototype.
3401 * locale/loadarchive.c: Use only non-cancelable interfaces.
3402 * resolv/herror.c (herror): Likewise.
3404 * malloc/hooks.c: Before using IO stream mark stream so it uses
3405 only non-cancelable interfaces.
3406 * malloc/malloc.c: Likewise.
3407 * posix/getopt.c: Likewise.
3410 2003-09-11 Jakub Jelinek <jakub@redhat.com>
3412 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
3414 2003-09-12 Ulrich Drepper <drepper@redhat.com>
3416 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
3418 * misc/err.h: Remove __THROW from all prototypes.
3420 * posix/getopt.h (__THROW): Define if not already defined. Add
3421 __THROW to the getopt functions.
3423 2003-09-11 Ulrich Drepper <drepper@redhat.com>
3425 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
3426 (CFLAGS-fts.c): Likewise.
3427 * io/fcntl.h: Remove __THROW from lockf prototypes.
3428 * io/fts.h: Remove most __THROW.
3430 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
3432 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
3436 2003-09-11 Jakub Jelinek <jakub@redhat.com>
3438 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
3439 _IO_free_backup_area call.
3441 2003-09-10 Chris Demetriou <cgd@broadcom.com>
3443 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
3445 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
3446 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
3447 Also, only assert off_t size is 4 for N32 and O32, and clean up
3449 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
3451 2003-09-10 Roland McGrath <roland@redhat.com>
3453 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
3454 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
3455 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
3456 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3457 Reported by Daniel Jacobowitz <drow@mvista.com>.
3459 2003-09-10 Jakub Jelinek <jakub@redhat.com>
3461 * string/Makefile (strop-tests): Add memccpy.
3462 * string/test-memccpy.c: New test.
3464 2003-09-09 Jakub Jelinek <jakub@redhat.com>
3466 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
3467 siginfo_t * argument before, change into struct ucontext *.
3468 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
3469 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
3470 instead of structure.
3471 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
3474 2003-09-09 Ulrich Drepper <drepper@redhat.com>
3476 * string/stratcliff.c (main): Check memccpy.
3478 2003-04-11 Jes Sorensen <jes@wildopensource.com>
3480 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
3481 character is found during recovery, use correct register when
3482 determining the position of the found character.
3484 2003-04-01 Jes Sorensen <jes@wildopensource.com>
3486 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
3487 avoid segfaults when reading from unmapped pages. For aligned
3488 reload and continue, for misaligned, roll back and use byte copy.
3489 Save ar.ec on entry and restore on exit.
3491 2003-09-09 Chris Demetriou <cgd@broadcom.com>
3493 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
3495 2003-09-08 Chris Demetriou <cgd@broadcom.com>
3497 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
3498 the top of the list.
3499 * sysdeps/mips/mips64/n64/Implies: Likewise.
3501 2003-09-08 Roland McGrath <roland@frob.com>
3503 * sysdeps/unix/sysv/linux/speed.c
3504 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
3505 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
3506 * sysdeps/unix/sysv/linux/bits/termios.h
3507 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
3508 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3509 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3511 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3513 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
3514 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
3516 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3518 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
3519 (__u_quad_t): Make unsigned long int if 64-bit.
3520 (__SQUAD_TYPE): Make long int if 64-bit.
3521 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
3522 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
3524 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3526 * Makefile (tests): Run check-c++-types.sh if possible.
3527 * scripts/check-c++-types.h: New file.
3528 * scripts/data/c++-types-i386-linux-gnu.data: New file.
3530 2003-09-08 Andreas Jaeger <aj@suse.de>
3532 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3533 Use struct sigcontext.
3535 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
3536 Use struct sigcontext.
3538 (GET_FRAME): Likewise.
3539 (GET_STACK): Likewise.
3541 2003-09-08 Wolfram Gloger <wg@malloc.de>
3543 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
3544 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
3545 (mALLOPt): Avoid requirement of C99.
3547 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3549 * libio/bug-ftell.c: Include <sys/types.h>.
3550 (main): Mark cp as const.
3552 2003-09-07 Jakub Jelinek <jakub@redhat.com>
3554 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
3555 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
3557 2003-09-05 Roland McGrath <roland@redhat.com>
3559 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
3560 and c_ospeed fields.
3561 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
3562 (cfsetispeed): Set c_ispeed field.
3563 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
3564 to match corresponding speed.c code.
3566 2003-09-06 Ulrich Drepper <drepper@redhat.com>
3568 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
3569 narrow character buffer.
3570 * libio/Makefile: Add rules to build and run bug-ftell.
3571 * libio/bug-ftell.c: New file.
3573 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
3575 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
3576 matching the decimal point and possibly leading the thousands
3577 separator. This caused the recognition of thousands separators to
3580 2003-09-05 Ulrich Drepper <drepper@redhat.com>
3582 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
3583 write mode from read in backup buffer.
3584 * libio/Makefile (tests): Add bug-ungetc2.
3585 * libio/bug-ungetc2.c: New file.
3587 2003-09-05 Roland McGrath <roland@redhat.com>
3589 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
3591 2003-09-04 Roland McGrath <roland@frob.com>
3593 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
3594 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
3596 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
3598 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
3601 2003-09-05 Andreas Jaeger <aj@suse.de>
3603 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
3604 to make it conforming C.
3605 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
3607 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
3608 prototype to use variable argument lists and get the possible one
3609 argument via va_arg.
3610 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
3611 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
3613 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3615 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
3617 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3618 Report correct value for vxfs.
3619 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
3621 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
3624 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
3625 over the place. It would be allowed to have these functions as
3626 cancellation points but the cleanup would be ugly and a lot of
3629 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
3630 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
3632 * include/fcntl.h (__fcntl_nocancel): Declare.
3633 * sysdeps/unix/sysv/linux/fcntl.c: New file.
3634 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
3635 cancellation if absolutely needed.
3636 (__fcntl_nocancel): Define.
3638 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
3639 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
3641 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
3644 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
3647 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
3648 unnecessary errno handling.
3650 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
3651 Initialize it in all cases. Change it to be a bit more like the
3654 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3656 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
3658 (_IO_file_open): Likewise. Use close_not_cancel.
3660 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3662 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
3663 * libio/fileops.c [_LIBC]: Remove close macro.
3664 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
3665 (_IO_new_file_open): Recognize 'c' flag in mode string.
3666 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
3667 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
3669 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
3670 * inet/rcmd.c: Likewise.
3671 * inet/ruserpass.c: Likewise.
3672 * intl/localealias.c: Likewise.
3673 * malloc/mtrace.c: Likewise.
3674 * misc/getpass.c: Likewise.
3675 * misc/getttyent.c: Likewise.
3676 * misc/mntent_r.c: Likewise.
3677 * misc/getusershell.c: Likewise.
3678 * nss/nsswitch.c: Likewise.
3679 * resolv/res_hconf.c: Likewise.
3680 * resolv/res_init.c: Likewise.
3681 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3682 * time/getdate.c: Likewise.
3683 * time/tzfile.c: Likewise.
3684 * misc/fstab.h: Undo last change.
3685 * misc/mntent.h: Likewise.
3686 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
3687 CFLAGS-fstab.c definition.
3689 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3691 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
3693 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3695 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
3696 returning ERANGE if this wasn't intended.
3698 2003-09-03 Jakub Jelinek <jakub@redhat.com>
3700 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
3701 function-like macros.
3703 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3705 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
3706 (CFLAGS-getgrent.c): Likewise.
3707 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
3708 (CFLAGS-getpwent.c): Likewise.
3709 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
3710 (CFLAGS-getspent.c): Likewise.
3712 * inet/Makefile: Add -fexceptions to CFLAGS for the various
3713 getXXent and getXXbyYY functions.
3715 * locale/loadlocale.c: Use not-cancelable variants of open, close,
3718 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3720 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3721 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
3723 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
3725 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
3726 unused __syscall_ stubs.
3727 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
3729 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
3730 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
3731 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
3732 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
3733 unused __syscall_ stubs.
3734 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
3735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3736 (__syscall_*): Remove unused __syscall_ stubs.
3737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3738 (__syscall_*): Likewise.
3739 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
3741 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
3742 Remove unused __syscall_ stubs.
3743 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
3744 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
3745 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
3746 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
3747 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
3748 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
3749 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
3750 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
3751 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
3752 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
3753 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
3754 __syscall_* prototypes.
3755 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
3756 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3757 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3758 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3759 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
3760 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3761 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3762 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3763 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3764 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3765 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3766 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3767 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3768 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3769 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3770 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3771 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3772 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3773 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3774 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3775 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3776 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3777 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3778 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3779 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3780 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3781 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3782 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3783 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3784 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3785 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3786 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3787 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3788 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3789 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3790 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3791 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3792 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
3793 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3794 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
3795 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
3796 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3797 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3798 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3799 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3800 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
3801 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3802 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3803 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3804 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3805 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
3806 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3807 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3808 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3809 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3810 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
3811 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
3812 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3813 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3814 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
3815 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3816 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
3817 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3818 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3819 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3820 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3821 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3822 * sysdeps/unix/sysv/linux/execve.c: Likewise.
3823 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3824 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3825 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
3826 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3827 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3828 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3829 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3830 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3831 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3832 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3833 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3834 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3835 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
3836 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
3837 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
3838 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3839 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3840 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3841 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3842 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
3843 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3844 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3845 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3846 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3847 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3848 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
3849 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3850 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3851 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3852 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3853 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3854 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3855 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3856 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3858 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3860 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
3861 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
3862 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
3864 2003-09-02 Ulrich Drepper <drepper@redhat.com>
3866 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
3868 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
3869 open, close, and read.
3871 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
3874 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
3876 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
3877 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
3878 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
3880 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
3882 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
3883 (CFLAGS-fstatfs.c): Likewise.
3884 (CFLAGS-statvfs.c): Likewise.
3885 (CFLAGS-fstatvfs.c): Likewise.
3887 2003-09-01 Ulrich Drepper <drepper@redhat.com>
3889 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
3890 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
3892 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
3893 (CFLAGS-pathconf.c): Likewise.
3894 (CFLAGS-fpathconf.c): Likewise.
3896 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
3897 * misc/fstab.h: Remove all __THROW.
3898 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
3899 (CFLAGS-mntent_r.c): Likewise.
3900 * misc/mntent.h: Remove most __THROW.
3902 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3903 (CFLAGS-mkstemp64.c): Likewise.
3905 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
3906 around call to exec_comm.
3907 * posix/wordexp.h: Remove __THROW from wordexp.
3908 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
3910 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
3911 not-cancelable functions.
3913 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
3914 (CFLAGS-iofopen.c): Likewise.
3915 (CFLAGS-iofopen64.c): Likewise.
3917 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
3919 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
3920 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
3922 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
3923 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
3925 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
3927 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
3928 NSS_STATUS_SUCCESS if entry was found.
3929 (getspent_next_file): Store user in blacklist after entry
3930 was found, use innetgr.
3932 2003-09-01 Jakub Jelinek <jakub@redhat.com>
3934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
3935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
3937 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
3938 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
3939 DTV_AT_TP, optimize.
3941 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3943 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
3944 posix_fallocate64 at GLIBC_2.3.3.
3945 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
3946 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3948 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3950 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
3953 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3955 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
3956 Code by Richard Henderson.
3958 2003-08-31 Philip Blundell <philb@gnu.org>
3960 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
3961 posix_fallocate64 at GLIBC_2.3.3.
3963 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3965 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
3966 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
3968 2003-08-30 Jakub Jelinek <jakub@redhat.com>
3970 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
3971 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
3972 included multiple times.
3973 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
3974 ptid, tls, ctid arguments to the kernel.
3975 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3976 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
3977 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3978 (__libc_sigaction): Use INLINE_SYSCALL instead of
3979 __syscall_rt_sigaction.
3980 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3981 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
3982 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
3983 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
3984 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
3985 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
3986 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
3987 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
3988 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
3989 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
3990 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
3991 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3992 (__CLONE_SYSCALL_STRING): Define.
3993 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
3995 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3996 (__CLONE_SYSCALL_STRING): Define.
3997 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
3999 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
4001 2003-08-30 Ulrich Drepper <drepper@redhat.com>
4003 * sunrpc/rpc/clnt.h: Remove a few __THROW.
4004 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
4005 (CFLAGS-key_call.c): Likewise.
4006 (CFLAGS-pmap_rmt.c): Likewise.
4007 (CFLAGS-clnt_perr.c): Likewise.
4008 * sunrpc/rpc/auth.h: Remove serveral __THROW.
4010 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
4011 (CFLAGS-gethstbynm_r.c): Likewise.
4012 (CFLAGS-gethstbynm2_r.c): Likewise.
4013 (CFLAGS-rcmd.c): Likewise.
4014 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
4016 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
4017 (CFLAGS-argp-fmtstream.c): Likewise.
4018 * argp/argp.h: Remove a number of __THROW.
4020 * misc/sys/syslog.h (vsyslog): Remove __THROW.
4022 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
4023 * misc/getpass.c (getpass): Add cleanup handler to ensure the
4024 stream is closed even if the thread is canceled.
4025 (call_fclose): New function.
4026 * posix/unistd.h: Remove __THROW from getpass prototype.
4028 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
4030 * signal/signal.h (psignal): Remove __THROW.
4031 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
4033 * misc/Makefile (CFLAGS-error.c): Define.
4034 * misc/error.c (error): Disable cancellation handling around the
4035 actual output. The message should in any case be printed.
4036 (error_at_line): Likewise.
4038 * misc/error.h: Protect parameter names with leading __.
4040 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
4042 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
4044 2003-08-29 Jakub Jelinek <jakub@redhat.com>
4046 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
4049 2003-08-29 Ulrich Drepper <drepper@redhat.com>
4051 * libio/stdio.h: Remove a few more __THROW.
4053 2003-08-29 Jakub Jelinek <jakub@redhat.com>
4055 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
4056 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
4057 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
4058 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
4059 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
4060 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
4061 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
4062 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
4063 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
4064 putwchar.c and rewind.c with exceptions.
4065 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
4066 _IO_release_lock): Define.
4067 * libio/fileops.c (_IO_new_file_underflow): Use it.
4068 * libio/fputc.c (fputc): Likewise.
4069 * libio/fputwc.c (fputwc): Likewise.
4070 * libio/freopen64.c (freopen64):
4071 * libio/freopen.c (freopen): Likewise.
4072 * libio/fseek.c (fseek): Likewise.
4073 * libio/fseeko64.c (fseeko64): Likewise.
4074 * libio/fseeko.c (fseeko): Likewise.
4075 * libio/ftello64.c (ftello64): Likewise.
4076 * libio/ftello.c (ftello): Likewise.
4077 * libio/fwide.c (fwide): Likewise.
4078 * libio/getc.c (_IO_getc): Likewise.
4079 * libio/getchar.c (getchar): Likewise.
4080 * libio/getwc.c (_IO_getwc): Likewise.
4081 * libio/getwchar.c (getwchar): Likewise.
4082 * libio/iofclose.c (_IO_new_fclose):
4083 * libio/iofflush.c (_IO_fflush): Likewise.
4084 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
4085 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
4086 * libio/iofgets.c (_IO_fgets): Likewise.
4087 * libio/iofgetws.c (fgetws): Likewise.
4088 * libio/iofputs.c (_IO_fputs): Likewise.
4089 * libio/iofputws.c (fputws): Likewise.
4090 * libio/iofread.c (_IO_fread): Likewise.
4091 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
4092 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
4093 * libio/ioftell.c (_IO_ftell): Likewise.
4094 * libio/iofwrite.c (_IO_fwrite): Likewise.
4095 * libio/iogetdelim.c (_IO_getdelim): Likewise.
4096 * libio/iogets.c (_IO_gets): Likewise.
4097 * libio/ioputs.c (_IO_puts): Likewise.
4098 * libio/ioseekoff.c (_IO_seekoff): Likewise.
4099 * libio/ioseekpos.c (_IO_seekpos): Likewise.
4100 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
4101 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
4102 * libio/ioungetc.c (_IO_ungetc): Likewise.
4103 * libio/ioungetwc.c (ungetwc): Likewise.
4104 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
4105 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
4106 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
4107 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
4108 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
4109 * libio/peekc.c (_IO_peekc_locked): Likewise.
4110 * libio/putc.c (_IO_putc): Likewise.
4111 * libio/putchar.c (putchar): Likewise.
4112 * libio/putwc.c (putwc): Likewise.
4113 * libio/putwchar.c (putwchar): Likewise.
4114 * libio/rewind.c (rewind): Likewise.
4115 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
4117 2003-08-29 Ulrich Drepper <drepper@redhat.com>
4119 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
4120 available in XPG4.2.
4122 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
4123 Jakub Jelinek <jakub@redhat.com>
4125 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
4126 big endian arches. Don't read beyond end of fds_bits array.
4128 2003-04-27 Bruno Haible <bruno@clisp.org>
4130 * manual/message.texi (Advanced gettext functions): Add information
4131 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
4132 Add section about Lithuanian, reported by Ricardas Cepas
4133 <rch@richard.eu.org>.
4134 Add information about Croatian.
4135 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
4136 Remove remark about continuation lines that is not true for PO files.
4137 Fix formula for Slovenian, reported by Roman Maurer
4138 <roman.maurer@amis.net>.
4140 2003-08-27 Ulrich Drepper <drepper@redhat.com>
4142 * math/math_private.h: Declare __copysignf.
4143 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
4146 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
4147 __signbit, and __signbitl inline functions.
4149 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
4150 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
4152 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
4153 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
4155 2003-08-27 Jakub Jelinek <jakub@redhat.com>
4157 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
4159 2003-08-27 Ulrich Drepper <drepper@redhat.com>
4161 * include/stdio.h: Add declarations for __builtin_fwrite and
4162 __builtin_fwrite_unlocked.
4164 2003-08-27 Jakub Jelinek <jakub@redhat.com>
4166 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
4167 fits into allocation. Add padding on 32-bit arches so that
4168 dirp->data is enough aligned for struct dirent64.
4169 Avoid clearing of the buffer, just clear DIR structure.
4171 2003-08-26 Ulrich Drepper <drepper@redhat.com>
4173 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
4174 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
4176 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
4178 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
4180 2003-08-26 Jakub Jelinek <jakub@redhat.com>
4182 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
4183 to match format string.
4184 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
4186 (__new_semctl): Shut up warning.
4187 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
4188 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
4190 2003-08-26 Jakub Jelinek <jakub@redhat.com>
4192 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
4193 link file use the real file name, not the resolved name we got by
4194 following the symlinks.
4196 2003-08-25 Ulrich Drepper <drepper@redhat.com>
4198 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
4199 if the object size is large enough.
4201 2003-08-25 Jakub Jelinek <jakub@redhat.com>
4203 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4204 if it won't point to itself unless it is .so symlink for the linker.
4206 2003-08-25 Ulrich Drepper <drepper@redhat.com>
4208 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
4209 use _mode if _IO_fwide_maybe_incompatible.
4210 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
4211 the compatibility test.
4213 2003-08-25 Jakub Jelinek <jakub@redhat.com>
4215 * elf/cache.c (save_cache): Don't write beyond end of file_entries
4217 Duplicate last old cache entry if the count would be odd.
4219 2003-08-25 Andreas Jaeger <aj@suse.de>
4221 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
4222 __LONG_LONG_PAIR to long.
4224 2003-08-25 Philip Blundell <philb@gnu.org>
4226 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
4227 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
4229 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
4231 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
4232 and use __libc_cleanup_region_end instead.
4234 2003-08-25 Ulrich Drepper <drepper@redhat.com>
4236 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
4238 2003-08-22 Ulrich Drepper <drepper@redhat.com>
4240 * io/fcntl.h (posix_fallocate): Change type of third parameter to
4242 (posix_fallocate64): Change type of third parameter to off64_t.
4243 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
4244 * sysdeps/posix/posix_fallocate.c: Likewise.
4245 * sysdeps/generic/posix_fallocate64.c: Likewise.
4246 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
4247 code for 32-bit platforms.
4248 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
4250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
4251 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
4252 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4254 2003-08-19 Ulrich Drepper <drepper@redhat.com>
4256 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
4257 the type, not to name.
4259 * stdio-common/test-vfprintf.c (main): Don't write temporary file
4260 into source directory.
4262 * malloc/malloc.c (_int_free): Add cheap test for some invalid
4265 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
4268 2003-08-18 Ulrich Drepper <drepper@redhat.com>
4270 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
4273 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
4275 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
4276 (elf_machine_lazy_rel): Likewise.
4278 2003-08-18 Art Haas <ahaas@airmail.net>
4280 * malloc/malloc.h: Remove unneeded ';' where closing the C++
4283 2003-08-18 Ulrich Drepper <drepper@redhat.com>
4285 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
4286 loading big binaries where @gprel(sym) cannot be handled in 'add'
4287 but instead has to be used with 'movl'.
4289 2003-08-17 Juergen Kreileder <jk@blackdown.de>
4290 Andreas Jaeger <aj@suse.de>
4292 * sysdeps/x86_64/bits/byteswap.h: New file.
4294 2003-08-17 Andreas Jaeger <aj@suse.de>
4296 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
4298 2003-08-16 Jakub Jelinek <jakub@redhat.com>
4300 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
4301 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4302 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
4303 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4304 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
4305 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4306 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
4307 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
4308 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
4309 ret_ERRVAL): Define.
4310 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
4311 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
4312 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
4313 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
4314 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
4316 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
4317 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
4318 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
4320 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
4321 posix_fadvise64_64): Remove.
4322 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
4324 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
4326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
4327 (posix_fadvise64): Likewise.
4328 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
4329 (posix_fadvise64): Likewise.
4330 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4331 (posix_fadvise64): Likewise.
4332 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
4334 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
4335 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
4336 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
4337 (__posix_fadvise64_l32): New function.
4338 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
4339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
4340 posix_fadvise64@@GLIBC_2.3.3.
4341 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
4342 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
4343 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
4345 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
4347 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4348 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
4350 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4352 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
4353 (elf_machine_matches_host): Remove weak extern stuff.
4354 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
4355 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
4356 stuff. Use GL(dl_hwcap) unconditionally.
4358 2003-08-16 Alan Modra <amodra@bigpond.net.au>
4360 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
4361 __libc_start_main branch.
4363 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
4364 Andreas Jaeger <aj@suse.de>
4366 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
4367 instead of setting errno.
4368 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
4370 2003-08-16 Andreas Jaeger <aj@suse.de>
4372 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
4373 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
4375 2003-08-15 Ulrich Drepper <drepper@redhat.com>
4377 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
4379 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
4380 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
4381 description indicating the error value is returned, not -1.
4382 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
4383 __ASSUME_FADVISE64_64_SYSCALL.
4384 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
4385 posix_madvise in one file. Have posix_madvise defined with error
4387 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
4389 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
4390 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
4391 PSEUDO_END_ERRVAL, and ret_ERRVAL.
4392 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4393 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4394 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
4397 * posix/Makefile (routines): Add posix_madvise.
4398 * sysdeps/generic/madvise.c: Don't define posix_madvise.
4399 * sysdeps/generic/posix_madvise.c: New file.
4400 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
4401 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
4402 Add posix_fadvise64_64.
4404 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4406 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
4407 3.0, not for !gcc or gcc < 3.0.
4409 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
4411 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
4412 Address passed to test_in_mod1 and test_in_mod2 without casting.
4413 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
4414 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
4415 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
4416 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
4418 2003-08-15 Jakub Jelinek <jakub@redhat.com>
4420 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
4421 Change quotes before using [].
4423 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
4425 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
4427 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
4428 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
4429 argument. Select one of 64 locks from address bits.
4430 (atomic_compare_and_exchange_val_acq,
4431 atomic_compare_and_exchange_bool_acq): Pass memory address to
4432 __sparc32_atomic_do_{,un}lock.
4434 2003-08-14 Ulrich Drepper <drepper@redhat.com>
4436 * assert/assert.h (assert): Use !! in front of expression to allow
4439 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
4440 Changed conversion of JIS X 0201 from using a table to calculating.
4441 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
4442 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
4444 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
4445 * iconvdata/CP932.irreversible: New file.
4446 * iconvdata/EUC-JP-MS.irreversible: New file.
4447 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4449 2003-08-13 Ulrich Drepper <drepper@redhat.com>
4451 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
4453 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
4454 text processing tools.
4456 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
4457 element unless BROKEN_THREAD_SIGNALS is defined.
4458 (struct requestlist): Likewise.
4459 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
4460 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
4461 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
4462 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
4463 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
4464 Pass current PID to __aio_sigqueue.
4465 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
4466 call. Don't initialize caller_pid field of waitlist element.
4468 2003-08-12 Jakub Jelinek <jakub@redhat.com>
4470 * libio/libioP.h (_IO_vtable_offset): Define.
4471 * libio/freopen.c (freopen): Use it.
4472 * libio/ioputs.c (_IO_puts): Likewise.
4473 * libio/freopen64.c (freopen64): Likewise.
4474 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
4476 * libio/iofclose.c (_IO_new_fclose): Likewise.
4477 * libio/iofputs.c (_IO_fputs): Likewise.
4478 * libio/ioftell.c (_IO_ftell): Likewise.
4479 * libio/iofwrite.c (_IO_fwrite): Likewise.
4480 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
4481 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
4482 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
4483 * stdio-common/vfscanf.c (ORIENT): Likewise.
4485 2003-08-11 Ulrich Drepper <drepper@redhat.com>
4487 * assert/assert.h: Use __builtin_expect in assert and
4488 assert_perror definitions if possible.
4490 2003-08-07 Jakub Jelinek <jakub@redhat.com>
4492 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
4493 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
4494 * elf/rtld.c (rtld_lock_default_lock_recursive,
4495 rtld_lock_default_unlock_recursive): New functions.
4496 (dl_main): Initialize _dl_rtld_lock_recursive and
4497 _dl_rtld_unlock_recursive.
4499 2003-08-05 Jakub Jelinek <jakub@redhat.com>
4501 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
4502 config_file directories instead of prepending.
4504 2003-08-02 Ulrich Drepper <drepper@redhat.com>
4506 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4507 __ASSUME_CLONE_STOPPED.
4509 2003-08-01 Ulrich Drepper <drepper@redhat.com>
4511 * sysdeps/generic/bits/libc-lock.h
4512 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
4514 2003-08-01 Roland McGrath <roland@frob.com>
4516 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
4518 2003-07-31 Jakub Jelinek <jakub@redhat.com>
4520 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
4521 instead of __SWORD_TYPE.
4522 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4523 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4524 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
4526 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
4528 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
4530 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
4532 * dlfcn/dlerror.c (once): New.
4533 (dlerror): Call __libc_once.
4534 (_dlerror_run): Remove once.
4536 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4537 Sync with 2.5.7 and 2.5.73 kernel changes.
4539 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
4540 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
4542 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
4543 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
4544 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
4545 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
4546 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
4547 difference argument.
4548 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
4550 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
4551 %d format and cast expected value to int.
4552 * sysdeps/generic/libc-start.c (STATIC): Add
4553 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
4554 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
4555 to ieee_float_shape_type.
4556 (__sqrt): Avoid type punning.
4557 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
4558 to ieee_float_shape_type.
4559 (__sqrtf): Avoid type punning.
4560 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
4561 refsym if in dl-conflict.c.
4562 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4563 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
4564 (__new_semctl): Shut up warning.
4565 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
4566 (__new_semctl): Shut up warning.
4567 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
4568 Change old into union of __old_shmid_ds and __old_shminfo structs.
4570 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
4572 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
4573 modtime computation.
4574 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
4575 * sysdeps/posix/utimes.c (__utimes): Likewise.
4577 2003-07-30 Jakub Jelinek <jakub@redhat.com>
4579 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
4580 call dl_signal_error directly. If already relocated, call
4581 GL(dl_init_static_tls) directly, otherwise queue it for later.
4582 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
4583 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
4584 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
4585 for all static TLS initializations delayed in _dl_allocate_static_tls.
4586 * elf/dl-support.c (_dl_init_static_tls): New variable.
4587 * include/link.h (struct link_map): Add l_need_tls_init.
4588 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
4589 (_dl_nothread_init_static_tls): New prototype.
4590 (_dl_allocate_static_tls): Adjust prototype.
4592 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
4594 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
4596 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4597 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
4598 reloc_addr is aligned.
4599 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
4600 elf_machine_rela_relative): Adjust.
4601 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
4602 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4603 * sysdeps/cris/dl-machine.h (elf_machine_rela,
4604 elf_machine_rela_relative): Adjust.
4605 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
4606 elf_machine_rela_relative): Adjust.
4607 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
4608 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4609 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
4610 elf_machine_rela_relative): Adjust.
4611 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
4612 elf_machine_rela_relative): Adjust.
4613 * sysdeps/mips/dl-machine.h (elf_machine_rela,
4614 elf_machine_rela_relative): Adjust.
4615 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
4616 elf_machine_rela_relative): Adjust.
4617 * sysdeps/powerpc/powerpc64/dl-machine.h
4618 (elf_machine_rela_relative, elf_machine_rela): Adjust.
4619 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
4620 elf_machine_rela_relative): Adjust.
4621 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
4622 elf_machine_rela_relative): Adjust.
4623 * sysdeps/sh/dl-machine.h (elf_machine_rela,
4624 elf_machine_rela_relative): Adjust.
4625 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4626 elf_machine_rela_relative): Adjust.
4627 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4628 elf_machine_rela_relative): Adjust.
4629 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
4630 elf_machine_rela_relative): Adjust.
4632 2003-07-29 Ulrich Drepper <drepper@redhat.com>
4634 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
4635 alignment of TCB used before the last change so that it matches
4636 ld's output for IE code.
4638 2003-07-29 Jakub Jelinek <jakub@redhat.com>
4640 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
4641 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
4642 break strict-aliasing rules" warnings.
4644 2003-07-29 Roland McGrath <roland@redhat.com>
4646 * elf/Makefile: Revert accidental changes in last commit.
4647 * elf/dl-support.c: Likewise.
4649 * rt/tst-timer2.c: New file.
4650 * rt/Makefile (tests): Add it.
4652 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4654 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
4656 2003-07-29 Roland McGrath <roland@redhat.com>
4658 * elf/Makefile (tests) [$(build-shared) = yes]:
4659 Depend on $(test-modules).
4660 * dlfcn/Makefile: Likewise.
4662 2003-07-28 Roland McGrath <roland@redhat.com>
4664 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
4665 Use that instead of `typedef' when using __*_TYPE macros in rhs.
4667 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
4668 * elf/tst-tlsmod14a.c: Likewise.
4670 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
4671 before <linux/sysctl.h>.
4673 2003-07-27 Ulrich Drepper <drepper@redhat.com>
4675 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
4676 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
4677 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
4678 * sysdeps/unix/syscalls.list: umask syscall never fails.
4680 2003-07-27 Andreas Jaeger <aj@suse.de>
4682 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
4684 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4686 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
4687 Include bits/a.out.h.
4688 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4690 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
4691 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
4692 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
4693 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
4694 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
4695 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
4696 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
4697 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
4699 2003-07-24 Jakub Jelinek <jakub@redhat.com>
4701 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
4702 if aiocbp != NULL and has already completed. Return -1/EINVAL if
4703 aiocbp->aio_fildes does not match fildes.
4705 2003-07-24 Ulrich Drepper <drepper@redhat.com>
4707 * timezone/zic.c (rpytime): Replace cheap overflow check with a
4710 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
4711 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
4712 Fix calculation of offsets to take misalignment of first byte in
4714 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
4715 l_tls_firstbyte_offset field.
4716 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
4717 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
4718 Take l_tls_firstbyte_offset information into account.
4719 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
4720 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
4721 * elf/Makefile: Add rules to build and run tst-tls14.
4722 * elf/tst-tls14.c: New file.
4723 * elf/tst-tlsmod14a.c: New file.
4724 * elf/tst-tlsmod14b.c: New file.
4726 2003-07-23 Jakub Jelinek <jakub@redhat.com>
4728 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
4729 (lio_listio): Use it.
4730 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
4731 after few defines to avoid duplication.
4733 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4735 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
4736 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4738 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4739 Add libc_hidden_def.
4740 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
4741 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4742 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
4743 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
4744 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
4745 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
4746 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
4748 * sysdeps/generic/unwind.inc: Removed.
4750 * include/resolv.h (__resp): Declare. Define to __libc_resp
4752 (_res): If USE___THREAD, define to (*__resp).
4753 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
4754 even if USE___THREAD.
4755 (__resp): New __thread variable.
4756 (__libc_resp): New alias.
4757 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
4758 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
4759 * sysdeps/generic/res-state.c (__res_state): Return __resp
4762 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4764 * elf/dl-support.c (_dl_hwcap): New variable.
4765 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
4767 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
4768 and <dl-procinfo.h>.
4769 (__feclearexcept): Clear MXCSR if needed.
4770 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4772 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
4773 that newer hardware needs more than these macros.
4775 * sysdeps/i386/setfpucw.c: New file.
4777 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4779 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
4780 * elf/ldconfig.c: Include dl-procinfo.c.
4781 (PROCINFO_CLASS): Define.
4782 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
4783 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
4784 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
4785 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
4786 Define if not yet defined. Use it instead of EXTERN. Undefine
4787 at the end of the file.
4788 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
4790 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
4791 (PROCINFO_CLASS): Likewise.
4792 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
4793 (PROCINFO_CLASS): Likewise.
4795 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4797 * elf/ldconfig.c (main): Issue a fatal error if relative path
4798 is used to build cache.
4800 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4802 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
4804 2003-07-21 Art Haas <ahaas@airmail.net>
4806 * manual/charset.texi (Converting a Character): Fix example code so a
4807 valid pointer is returned.
4809 2003-07-22 Andreas Jaeger <aj@suse.de>
4811 * elf/readlib.c (process_file): Check that file is a shared
4814 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
4815 will not optimize it away.
4816 (__DTOR_END__): Likewise.
4817 (__CTOR_END__): Likewise.
4819 * include/libc-symbols.h (_elf_set_element): Use attribute used so
4820 that gcc will not optimize it away.
4821 (link_warning): Likewise.
4823 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4825 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
4826 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
4827 * wcsmbs/tst-wcpncpy.c: New file.
4829 2003-07-21 Ulrich Drepper <drepper@redhat.com>
4831 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
4833 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
4834 stmxcsr and ldmxcsr.
4836 * Makerules (build-module-helper): Add -z defs unless explicitly said
4838 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
4839 which has undefined symbols.
4840 * elf/Makefile: Likewise.
4842 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
4843 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4844 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4845 * sysdeps/i386/fpu/fesetround.c: Likewise.
4846 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
4848 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
4850 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4851 if it won't point to itself.
4853 2003-07-20 Ulrich Drepper <drepper@redhat.com>
4855 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
4857 2003-07-20 Andreas Jaeger <aj@suse.de>
4859 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
4860 STANDARD_TO_LOOP_ERR_HANDLER.
4861 * iconvdata/euc-jp-ms.c (BODY): Likewise.
4863 2003-07-19 Ulrich Drepper <drepper@redhat.com>
4865 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
4867 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
4869 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
4870 Andreas Jaeger <aj@suse.de>
4872 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
4873 256K, remove unneeded declaration of __getpagesize.
4875 2003-07-16 Andreas Schwab <schwab@suse.de>
4877 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
4879 2003-07-15 Ulrich Drepper <drepper@redhat.com>
4881 * io/test-utime.c (main): Make test yet more robust.
4883 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4885 More cancellation handling fixups.
4886 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
4887 * sysdeps/generic/not-cancel.h: Likewise.
4888 * catgets/open_catalog.c: Use not-cancelable syscalls.
4889 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
4890 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
4891 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
4892 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
4893 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
4894 * libio/fileops.c: Use not-cancelable syscalls for fclose.
4895 * libio/iopopen.c: Use no-cancelable syscalls.
4896 * libio/stdio.h: Mark popen and pclose with __THROW again.
4897 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
4898 * misc/syslog.c: Fix locking and cancellation cleanup handling.
4899 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
4900 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
4901 CFLAGS-tempname.c): Add -fexceptions.
4902 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4903 * string/string.h: Mark strerror and strerror_r with _THROW again.
4904 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
4905 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
4906 #ifs since we now need all the code compiled.
4907 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
4908 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
4909 * sysdeps/unix/opendir.c: Likewise.
4911 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
4912 Add rule for EUC-JP-MS dependency.
4913 * iconvdata/cp932.c: New file.
4914 * iconvdata/eucjp-ms.c: New file.
4915 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
4916 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4918 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
4923 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4925 * sysdeps/unix/sysv/linux/kernel-features.h
4926 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
4927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
4929 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
4931 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4933 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4934 __ASSUME_TGKILL for Alpha appropriately.
4936 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4938 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4939 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
4941 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
4944 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4945 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
4947 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
4948 second parameter == NULL.
4949 * sysdeps/unix/sysv/linux/utimes.c: New file.
4951 2003-07-12 Jakub Jelinek <jakub@redhat.com>
4953 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
4954 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
4957 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4959 * time/sys/time.h: Namespace cleanup.
4960 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4961 __ASSUME_UTIMES for the architectures which always had the syscall.
4962 * sysdeps/unix/sysv/linux/futimes.c: New file.
4964 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4966 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
4967 register across CENABLE and CDISABLE.
4969 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4971 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
4972 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4973 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4974 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
4975 int before assigning to max to avoid warnings.
4977 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
4981 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
4982 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
4984 2003-07-10 Jakub Jelinek <jakub@redhat.com>
4986 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
4987 .data.rel.ro.local to "aw".
4989 2003-07-10 Ulrich Drepper <drepper@redhat.com>
4991 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
4992 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
4993 (PIC-ccflag): Define.
4995 2003-07-04 Jakub Jelinek <jakub@redhat.com>
4997 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
4999 * sysdeps/s390/s390-64/elf/start.S: Likewise.
5001 2003-07-07 Jakub Jelinek <jakub@redhat.com>
5003 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
5004 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
5006 2003-07-07 Ulrich Drepper <drepper@redhat.com>
5008 * sysdeps/unix/sysv/linux/kernel-features.h: Version
5009 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
5011 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
5012 compilation with HAVE_AUX_SECURE defined.
5014 2003-07-05 Richard Henderson <rth@redhat.com>
5016 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
5018 2003-07-03 Ulrich Drepper <drepper@redhat.com>
5020 * configure.in: Also check for .cfi_rel_offset pseudo-op.
5022 2003-07-03 Jakub Jelinek <jakub@redhat.com>
5024 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
5027 2003-07-03 Ulrich Drepper <drepper@redhat.com>
5029 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
5031 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
5033 2003-07-02 Jakub Jelinek <jakub@redhat.com>
5035 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
5036 decl and use with #ifdef NEED_DL_SYSINFO.
5038 2003-07-02 Ulrich Drepper <drepper@redhat.com>
5040 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
5041 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
5042 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5043 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
5044 vsyscall DSO was added.
5046 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
5047 depending on selected standard.
5048 (NGROUPS_MAX): Define to 8 if not defined.
5050 2003-07-02 Andreas Jaeger <aj@suse.de>
5052 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
5054 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
5056 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
5057 * malloc/thread-m.h: Include <atomic.h>.
5058 (atomic_full_barrier): Provide default.
5059 (atomic_read_barrier): Likewise.
5060 (atomic_write_barrier): Likewise.
5061 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
5063 2003-06-30 Ulrich Drepper <drepper@redhat.com>
5065 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
5067 2003-06-30 Richard Henderson <rth@redhat.com>
5069 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
5070 Invert the sense of the return value.
5071 (__arch_exchange_16_int): Fix paste-o.
5072 (__arch_exchange_{32,64}_int): Fix think-o.
5074 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
5076 2003-06-30 Richard Henderson <rth@redhat.com>
5078 * include/sys/resource.h (__getrusage): Mark hidden.
5079 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
5080 * include/sys/wait.h (__wait4): Likewise.
5082 2003-06-17 Guido Guenther <agx@sigxcpu.org>
5084 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
5086 (xstat_conv): Rename to __xstat_conv and remove static inline.
5087 (xstat64_conv): Likewise.
5089 2003-06-29 Ulrich Drepper <drepper@redhat.com>
5091 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
5092 values which cannot be handled in one nanosleep call.
5094 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
5096 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
5097 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
5099 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
5101 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5103 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
5106 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
5108 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
5109 Conditionalize function definitions that use struct kernel_stat.
5110 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
5111 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
5112 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
5114 2003-06-28 Ulrich Drepper <drepper@redhat.com>
5116 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
5119 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
5121 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
5122 (getgrent_next_file): Don't store group name to early in blacklist.
5124 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
5125 and use memcpy instead of strcpy.
5127 2003-06-28 Ulrich Drepper <drepper@redhat.com>
5129 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
5131 * nis/nss_compat/compat-initgroups.c: Likewise.
5132 * nis/nss_compat/compat-pwd.c: Likewise.
5133 * nis/nss_compat/compat-spwd.c: Likewise.
5135 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
5137 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
5138 functions, dlopen corresponding NSS module instead.
5140 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
5142 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
5143 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5144 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5145 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5147 2003-06-27 Ulrich Drepper <drepper@redhat.com>
5149 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
5151 2003-06-26 Roland McGrath <roland@frob.com>
5153 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
5154 * sysdeps/mach/configure: Regenerated.
5155 * sysdeps/mach/hurd/times.c (times_init): Function removed.
5156 (__times): Assume `creation_time' field is available.
5157 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
5158 Don't append set-init.
5159 * sysdeps/mach/hurd/set-init.c: File removed.
5161 2003-06-26 Roland McGrath <roland@redhat.com>
5163 * elf/elf.h (AT_SECURE): New macro.
5164 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
5165 set __libc_enable_secure.
5166 (_dl_show_auxv): Add AT_SECURE to name table.
5167 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
5168 __libc_enable_secure and __libc_enable_secure_decided.
5169 * sysdeps/unix/sysv/linux/ldsodefs.h
5170 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
5171 * sysdeps/unix/sysv/linux/kernel-features.h
5172 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
5174 2003-06-26 Ulrich Drepper <drepper@redhat.com>
5176 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
5177 boundary test to take rounding of nanoseconds into account.
5179 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
5180 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5181 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
5182 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
5183 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5184 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5185 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5187 2003-06-26 Andreas Schwab <schwab@suse.de>
5189 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
5190 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
5191 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
5193 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
5195 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
5196 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
5197 dlopen corresponding NSS module instead.
5198 * nis/nss_compat/compat-pwd.c: Likewise.
5199 * nis/nss_compat/compat-spwd.c: Likewise.
5200 * nis/nss_compat/compat-initgroups.c: Disabled for now.
5201 * nss/Versions: Export __nss_lookup_function.
5203 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5205 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
5206 for the SH architecture.
5208 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
5210 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
5212 2003-06-25 Andreas Jaeger <aj@suse.de>
5214 * stdlib/tst-strtod.c (main): Declare constant long double as
5215 suggested by Jakub Jelinek and Andreas Schwab.
5217 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
5220 * stdio-common/tst-fphex.c: Fix format string.
5222 * posix/transbug.c: Include <string.h> for memset and strlen
5225 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
5227 * stdlib/tst-strtod.c (main): Pass long double value.
5229 * test-skeleton.c: Include <time.h> for nanosleep declaration.
5231 2003-06-25 Ulrich Drepper <drepper@redhat.com>
5233 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
5236 2003-06-11 Jakub Jelinek <jakub@redhat.com>
5238 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
5239 * elf/dl-libc.c (struct dl_open_hook): New.
5240 (_dl_open_hook): New variable.
5241 (do_dlsym_private): New function.
5242 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
5243 and initialize it if found.
5244 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
5245 call dlopen_mode hook.
5246 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
5248 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
5251 2003-06-25 Ulrich Drepper <drepper@redhat.com>
5253 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
5254 result to long int so that extensions to long long int work.
5255 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5257 2003-06-19 Jakub Jelinek <jakub@redhat.com>
5259 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
5260 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
5261 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
5263 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
5264 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
5265 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
5266 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
5268 2003-06-19 Jakub Jelinek <jakub@redhat.com>
5270 * test-skeleton.c (timeout_handler): If waitpid returned 0,
5271 retry once after a second. If killed == 0, assume
5272 WTERMSIG (status) == SIGKILL.
5274 2003-06-18 Roland McGrath <roland@redhat.com>
5276 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
5277 elements in the table instead of printing an empty name string.
5279 2003-06-05 Roland McGrath <roland@redhat.com>
5281 * elf/elf.h (PT_GNU_STACK): New macro.
5283 2003-06-24 Ulrich Drepper <drepper@redhat.com>
5285 * include/time.h: Define CLOCK_IDFIELD_SIZE.
5286 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
5287 * sysdeps/unix/clock_gettime.c: Likewise.
5288 * sysdeps/unix/clock_settime.c: Likewise.
5289 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
5290 clock id for thread CPU clocks.
5292 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
5293 for the fstatfs64 syscall.
5294 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
5295 the statfs64 syscall.
5297 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5298 __ASSUME_STATFS64 appropriately.
5300 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
5301 from statfs structure if it has been filled in.
5303 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
5305 (struct statfs64): Likewise.
5306 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
5307 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
5309 2003-06-24 Richard Henderson <rth@redhat.com>
5311 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
5312 the 64-bit syscall name.
5314 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
5316 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
5317 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
5319 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
5320 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
5322 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5323 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
5326 * sysdeps/alpha/bits/atomic.h: New file.
5328 2003-06-24 Andreas Schwab <schwab@suse.de>
5330 * sysdeps/m68k/fpu/libm-test-ulps: Update.
5332 2003-06-24 Andreas Jaeger <aj@suse.de>
5334 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
5335 redeclaration with 32-bit code.
5337 2003-05-19 Ed Connell <ed.connell@sas.com>
5339 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
5340 floating point mask.
5341 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
5343 2003-06-23 Ulrich Drepper <drepper@redhat.com>
5345 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
5346 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
5347 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
5349 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
5350 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
5351 instead of __libc_cleanup_region_*.
5353 2003-06-20 Richard Henderson <rth@redhat.com>
5355 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
5356 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
5358 2003-06-20 Richard Henderson <rth@redhat.com>
5360 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
5361 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
5363 (__ASSUME_TIMEVAL64): Set for alpha.
5364 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
5365 adjtimex, osf_sigprocmask, old_adjtimex.
5366 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
5367 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
5368 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
5369 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
5370 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
5371 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5372 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
5373 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
5374 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
5375 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
5376 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
5378 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
5379 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
5380 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
5381 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
5382 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
5383 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
5384 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
5385 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
5386 defer to __syscall_name; error for rt_sigaction.
5387 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
5389 2003-06-18 Ulrich Drepper <drepper@redhat.com>
5391 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
5392 hasn't happened yet.
5394 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5395 Fix completely broken implementation. The second parameter is of
5396 type struct ucontext*.
5398 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
5401 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
5402 * sysdeps/generic/dl-hash.h: Likewise.
5404 * sysdeps/generic/memcmp.c: Remove inline from
5405 memcmp_common_alignment and memcmp_not_common_alignment definition.
5407 * intl/localealias.c (read_alias_file): Determine whether line is
5408 read incompletely early, before we modify the line.
5410 2003-06-17 Jakub Jelinek <jakub@redhat.com>
5412 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
5413 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
5415 2003-06-17 Paul Mackerras <paulus@samba.org>
5417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
5418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
5419 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
5420 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
5421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
5422 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
5424 2003-06-17 Jakub Jelinek <jakub@redhat.com>
5426 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
5428 2003-06-17 Ulrich Drepper <drepper@redhat.com>
5430 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
5431 takes care of enabling cancellation.
5433 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
5434 cancelable. It's not correct to disable cancellation. Instead of
5437 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
5438 and part of the incoming set, create a temporary set without this
5440 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5441 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5443 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
5444 returning because seconds==0. Add __builtin_expect.
5446 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5448 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
5450 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
5453 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
5455 * include/libc-symbols.h: Add static_link_warning macro.
5456 * grp/initgroups.c: Print linker warning if this function
5457 is called in a static linked binary.
5458 * nss/getXXbyYY.c: Likewise.
5459 * nss/getXXbyYY_r.c: Likewise.
5460 * nss/getXXent.c: Likewise.
5461 * nss/getXXent_r.c: Likewise.
5462 * sysdeps/posix/getaddrinfo.c: Likewise.
5464 2003-06-16 Bruno Haible <bruno@clisp.org>
5466 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
5468 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
5469 (IBM1047): Add alias IBM-1047.
5470 (GBK): Add aliases MS936, WINDOWS-936.
5472 2003-06-16 Jakub Jelinek <jakub@redhat.com>
5474 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
5475 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
5476 (__xstat64_conv): Change xstat_conv to __xstat_conv.
5478 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5480 * locale/iso-639.def: Update from current official ISO 639.
5482 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
5484 2003-06-15 Andreas Jaeger <aj@suse.de>
5486 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
5488 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5489 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
5490 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
5492 * math/tgmath.h (carg): Handle real arguments.
5498 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
5499 (tests): Add test-tgmath-ret.
5500 * math/test-tgmath-ret.c: New file.
5502 * math/tgmath.h (ilogb): Return always an int.
5504 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5506 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
5507 computation so that prelinking works.
5509 2003-06-15 Ulrich Drepper <drepper@redhat.com>
5511 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
5513 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
5514 dynamic linker's map.
5516 Fix cancellation point handling wrt exception based cleanup.
5517 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
5518 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
5520 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
5521 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
5522 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
5524 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
5525 sigwait.c, and sigwaitinfo.c with exceptions.
5526 * stdlib/Makefile: Compile system.c with exceptions.
5527 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
5528 * termios/Makefile: Compile tcdrain.c with exceptions.
5529 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
5531 * sysdeps/generic/pselect.c: Likewise.
5532 * sysdeps/posix/sigpause.c: Likewise.
5533 * sysdeps/posix/system.c: Likewise.
5534 * sysdeps/posix/waitid.c: Likewise.
5535 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5536 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
5537 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
5538 INTERNAL_SYSCALL to not use push inside asm statement so that
5539 unwind info is correct around the syscall.
5540 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
5541 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5543 2003-06-15 Andreas Jaeger <aj@suse.de>
5545 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5548 2003-06-15 Guido Guenther <agx@sigxcpu.org>
5550 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
5553 2003-06-14 Ulrich Drepper <drepper@redhat.com>
5555 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
5558 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
5559 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
5562 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
5563 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
5564 * inet/Makefile (routines): Add inet6_option.
5565 * inet/inet6_option.c: New file.
5566 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
5567 inet6_option_init, inet6_option_append, inet6_option_alloc,
5568 inet6_option_next, and inet6_option_find.
5570 2003-06-13 Ulrich Drepper <drepper@redhat.com>
5572 * inet/netinet/ip6.h (struct ip6_ext): Define.
5574 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
5576 Fixing gcc 3.3 warnings, part II.
5577 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
5578 * elf/dl-load.c (cache_rpath): Don't inline.
5579 * iconvdata/cns11642l2.h: Always inline all functions.
5580 * iconvdata/iso-ir-165.h: Likewise.
5581 * locale/Makefile (aux): Add coll-lookup.
5582 * locale/coll-lookup.c: New file.
5583 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
5584 (collseq_table_lookup): Likewise.
5585 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
5586 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
5588 * posix/regcomp.c: Likewise.
5589 * posix/regexec.c: Likewise.
5590 * locale/programs/3level.h (*_get): Always inline.
5591 * locale/programs/locfile.h: Move definition of handle_copy to...
5592 * locale/programs/locfile.c: ...here.
5593 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
5594 (obstack_int32_grow_fast): Likewise.
5595 (utf8_encode): Likewise.
5596 (find_element): Avoid aliasing problems.
5597 (insert_value): Likewise.
5598 (collate_read): Likewise.
5599 * nss/getent.c (print_hosts): Don't inline
5600 (print_networks): Likewise.
5601 (print_shadow): Likewise.
5602 (build_doc): Likewise.
5603 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
5605 * posix/regcomp.c (re_set_fastmap): Always inline.
5606 (seek_collating_symbol_entry): Likewise.
5607 (lookup_collation_sequence_value): Likewise.
5608 (build_range_exp): Likewise.
5609 (build_collating_symbol): Likewise.
5610 * posix/regexec.c (acquire_init_state_context): Don't inline.
5611 (clean_state_log_if_need): Likewise.
5612 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
5614 (evConsTime): Likewise.
5615 (evAddTime): Likewise.
5616 (evSubTime): Likewise.
5617 (evNowTime): Likewise.
5618 (evTimeSpec): Removed.
5619 (__libc_res_nsend): Avoid aliasing problem.
5620 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
5621 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
5622 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
5624 (_dl_string_platform): Likewise.
5625 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
5626 (wcwidth_table_lookup): Likewise.
5627 (wctrans_table_lookup): Likewise.
5629 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
5631 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5633 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
5635 2003-05-29 Jim Meyering <jim@meyering.net>
5637 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
5638 && HAVE_STRFTIME]: Use underlying_strftime for %r.
5639 Suggested by Daniel Yacob <locales@geez.org>.
5641 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
5643 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
5644 @got notation with @toc.
5645 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
5646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
5648 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5650 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
5651 if only PF_INET address is needed.
5653 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
5656 * scripts/config.guess: Update from upstream version.
5657 * scripts/config.sub: Likewise.
5659 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5661 * locale/programs/ld-time.c (time_output): Also copy the era format,
5664 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
5666 * posix/transbug.c (run_test): Return 1 for failure.
5667 (do_test): Compare only if run_test is successful.
5669 2003-06-12 Simon Josefsson <jas@extundo.com>
5671 * argp/argp.h [!__THROW]: Define if undefined.
5673 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5675 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
5676 more than four parameters.
5677 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5679 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5681 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5682 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
5683 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
5685 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
5687 2003-06-12 Roland McGrath <roland@redhat.com>
5689 * Makerules ($(objpfx)stubs): Rewrite sed magic.
5691 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5693 * posix/regcomp.c (parse_expression): Deliver translation to
5694 build_word_op, and build_charclass.
5695 (build_charclass): Apply translation for character classes too.
5696 (build_word_op): Deliver translation to build_charclass.
5697 * posix/transbug.c: New file.
5698 * posix/Makefile (tests): Add transbug.
5700 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
5702 * posix/regexec.c (group_nodes_into_DFAstates): Check for
5703 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
5704 'continue' before the others.
5706 2003-06-11 Ulrich Drepper <drepper@redhat.com>
5708 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
5709 function [PR libc/5045].
5711 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
5714 * time/tzfile.c: Add a couple of __builtin_expect.
5716 Remove warnings gcc 3.3 shows.
5717 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
5718 * elf/dl-load.c (fillin_rpath): Likewise.
5719 (add_path): Likewise.
5720 * elf/dl-version.c (find_needed): Always inline.
5721 * elf/do-lookup.c (FCT): Don't inline.
5722 * iconv/Makefile: Extend vpath to intl subdir.
5723 (iconvconfig-modules): Add hash-string.
5724 * iconv/gconv_charset.h (strip): Don't inline.
5725 (upstr): Always inline.
5726 Move __gconv_compare_alias prototype to...
5727 * iconv/gconv_int.h: ...here.
5728 * iconv/gconv_db.c: Don't include gconv_charset.h.
5729 * iconv/gconv_conf.c (add_alias): Don't inline.
5730 (insert_module): Likewise.
5731 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
5732 (internal_ucs4_loop_unaligned): Likewise.
5733 (internal_ucs4_loop_single): Likewise.
5734 (ucs4_internal_loop): Likewise.
5735 (ucs4_internal_loop_unaligned): Likewise.
5736 (ucs4_internal_loop_single): Likewise.
5737 (internal_ucs4le_loop): Always inline.
5738 (internal_ucs4le_loop_unaligned): Likewise.
5739 (internal_ucs4le_loop_single): Likewise.
5740 (ucs4le_internal_loop): Likewise.
5741 (ucs4le_internal_loop_unaligned): Likewise.
5742 (ucs4le_internal_loop_single): Likewise.
5743 * iconv/loop.c: Always inline the defined functions.
5744 * iconvdata/cns11642.h: Likewise.
5745 * iconvdata/cns11642l1.h: Likewise.
5746 * iconvdata/euc-kr.c: Likewise.
5747 * iconvdata/gb2312.h: Likewise.
5748 * iconvdata/jis0201.h: Likewise.
5749 * iconvdata/jis0208.h: Likewise.
5750 * iconvdata/jis0212.h: Likewise.
5751 * iconvdata/jisx0213.h: Likewise.
5752 * iconvdata/ksc5601.h: Likewise.
5753 * iconvdata/utf-7.c (base64): Don't inline.
5754 * include/libc-symbols.h (symbol_set_first_element): Add cast
5755 (symbol_set_end_p): Likewise.
5756 * include/set-hooks (RUN_HOOK): Likewise.
5757 * inet/Makefile (aux): Add ifreq.
5758 * intl/Makefile (aux): Add some entries from routines. Add
5760 * intl/hash-string.c: New file.
5761 * intl/hash-string.h: Remove hash_string definition. Declare
5763 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
5764 * iconv/iconvconfig.c (new_name): Likewise.
5765 * intl/dcigettext.c (_nl_find_msg): Likewise.
5766 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5767 * io/ftw.c (open_dir_stream): Always inline.
5768 (process_entry): Don't inline.
5769 * locale/findlocale.c: Include gconv_int.h.
5770 * locale/setlocale.c (new_composite_name): Don't inline.
5771 * locale/weight.h (findidx): Always inline.
5772 * locale/weightwc.h (findidx): Likewise.
5773 * locale/programs/linereader.c (lr_ignore_rest): Define here.
5774 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
5776 (lr_getc): Always inline.
5777 (lr_ungetc): Likewise.
5778 * nss/nss_files/files-parse.c (parse_list): Likewise.
5779 * stdio-common/Makefile (aux): Add printf-parsemb and
5781 * stdio-common/_itoa.h (_itoa_word): Always inline.
5782 (_fitoa_word, _fitoa): Don't define here, only declare.
5783 * stdio-common/_itoa.c (_iftoa_word): Add here.
5785 * stdio-common/_itowa.h (_itowa_word): Always inline.
5786 * stdio-common/printf-parse.h (read_int): Don't inline.
5787 (find_spec): Don't define.
5788 Declare __find_specmb and __find_specwc.
5789 (parse_one_spec): Don't define.
5790 Declare __parse_one_specmb and __parse_one_specwc.
5791 * stdio-common/printf-parsemb.c: New file.
5792 * stdio-common/printf-parsewc.c: New file.
5793 * stdio-common/vfprintf.c: Update calls to find_spec and
5794 parse_one_spec for new names.
5795 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
5796 * stdlib/Makefile (aux): Add grouping and groupingwc.
5797 * stdlib/grouping.c: New file.
5798 * stdlib/groupingwc.c: New file.
5799 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
5801 * stdlib/rpmatch.c (try): Don't inline.
5802 * stdlib/strtod.c (round_and_return): Don't line.
5803 (str_to_mpn): Likewise.
5804 (__mpn_lshift_1): Always inline. Optimize only for constant count.
5805 Adjust for name change of correctly_grouped_prefix.
5806 * sysdeps/generic/strtol.c: Adjust for name change of
5807 correctly_grouped_prefix.
5808 * string/strxfrm.c (utf8_encode): Don't inline.
5809 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
5810 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
5811 * sysdeps/generic/ifreq.c: New file.
5812 * sysdeps/unix/sysv/linux/ifreq.c: New file.
5813 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
5814 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
5815 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
5816 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
5817 (fde_split): Likewise.
5818 (fde_merge): Likewise.
5819 (end_fde_sort): Likewise.
5820 (init_object): Likewise.
5821 (binary_search_unencoded_fdes): Likewise.
5822 (binary_search_single_encoding_fdes): Likewise.
5823 (binary_search_mixed_encoding_fdes): Likewise.
5824 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
5825 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
5826 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
5827 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5829 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
5830 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
5831 Export them. Prepend __ to name.
5832 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
5833 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
5834 conversion functions.
5835 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5836 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5837 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5838 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5839 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5840 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5841 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5842 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5843 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
5844 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
5845 to name. Change callers.
5846 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
5847 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
5849 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
5850 * time/tzfile.c (decode): Always inline.
5851 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
5852 Remove cast in tomb function call.
5853 * wcsmbs/wcsrtombs.c Likewise.
5854 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
5857 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5859 * po/zh_CN.po: Update from translation team.
5861 2003-06-10 Jakub Jelinek <jakub@redhat.com>
5863 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
5864 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
5866 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5868 * inet/Makefile (aux): Add check_pf.
5869 * include/ifaddrs.h: Add prototype for __check_pf.
5870 * sysdeps/generic/check_pf.c: New file.
5871 * sysdeps/unix/sysv/linux/check_pf.c: New file.
5872 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
5873 from no_netlink_support. Export.
5874 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
5877 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
5879 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
5880 from getifaddr calls.
5882 2003-06-09 Jakub Jelinek <jakub@redhat.com>
5884 * sysdeps/unix/sysv/linux/kernel-features.h
5885 (__ASSUME_SETRESGID_SYSCALL): Define.
5886 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
5887 instead of __ASSUME_SETRESUID_SYSCALL.
5888 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
5890 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
5891 inline syscall if __NR_setresuid32 is defined.
5892 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5893 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
5894 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
5895 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5896 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
5897 code handling non-existant setresgid32 syscall with
5898 #if __ASSUME_SETRESGID_SYSCALL == 0.
5900 2003-06-09 Andreas Schwab <schwab@suse.de>
5902 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
5903 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
5904 $(objpfx)rpc-proto.d.
5905 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
5906 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
5907 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
5909 2003-06-08 Ulrich Drepper <drepper@redhat.com>
5911 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
5912 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5913 defined drop compatibility code.
5914 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
5915 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5916 defined drop compatibility code.
5917 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
5918 setresuid32 syscall directly if possible.
5919 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5920 setresgid32 syscall directly if possible.
5921 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
5922 compliant. Don't change sgid.
5923 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
5924 compliant. Don't change suid.
5926 * config.h.in: Add have-forced-unwind.
5927 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
5929 2003-06-07 Ulrich Drepper <drepper@redhat.com>
5931 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
5932 returned status from child matches.
5934 * Makeconfig (gnulib): Add -lgcc_eh once again.
5936 2003-06-06 Ulrich Drepper <drepper@redhat.com>
5938 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
5940 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
5941 %edx for first parameter. This means no pushl and therefore the
5942 unwind info isn't screwed up.
5944 2003-06-04 Richard Henderson <rth@redhat.com>
5946 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
5947 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5948 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
5949 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
5950 entry sequence and explicit relocs. Add unwind info for sigreturn
5952 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
5954 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
5955 Annotate some parameters.
5956 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
5958 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
5960 * include/libc-symbols.h (symbol_set_declare): Use arrays
5961 of unspecified size.
5963 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5965 * config.make.in (ASFLAGS-config): New.
5966 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
5967 * configure.in (libc_cv_as_noexecstack): New check.
5968 (ASFLAGS_config): Substitute.
5970 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5972 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
5973 hypot, logb): Protect with #ifdef __FAST_MATH__.
5975 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5977 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
5978 #ifdef __FAST_MATH__.
5980 2003-06-03 Ulrich Drepper <drepper@redhat.com>
5982 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
5983 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5984 * posix/globtest.sh: Adjust for this change.
5986 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
5987 to get the actual PID value used in the records passed up.
5988 (getifaddrs): Don't initialize nh.pid here.
5990 2003-06-02 Ulrich Drepper <drepper@redhat.com>
5992 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
5995 * po/zh_CN.po: Update from translation team.
5997 * posix/getconf.c (main): Also recognize names without the
6000 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
6002 2003-06-02 Bernd Schmidt <bernds@redhat.com>
6004 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
6005 ldexpf, ldexpl): Only define if __FAST_MATH__.
6007 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
6009 Replace hard-coded offsets into struct sigcontext with generated file.
6010 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
6011 * sysdeps/unix/sysv/linux/ia64/Makefile
6012 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
6013 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
6014 defining SC_* macros here.
6016 2003-06-02 Jakub Jelinek <jakub@redhat.com>
6018 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
6020 2003-06-01 Jakub Jelinek <jakub@redhat.com>
6022 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
6024 2003-06-01 Ulrich Drepper <drepper@redhat.com>
6026 * test-skeleton.c (main): Request getopt to not reorder the
6029 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
6031 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
6034 2003-05-31 Ulrich Drepper <drepper@redhat.com>
6036 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
6038 2003-05-31 Jakub Jelinek <jakub@redhat.com>
6040 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
6042 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
6043 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
6044 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
6046 2003-05-31 Ulrich Drepper <drepper@redhat.com>
6048 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
6051 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
6053 * libio/fileops.c (_IO_file_open): Don't mark as inline.
6055 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
6058 2003-05-30 Ulrich Drepper <drepper@redhat.com>
6060 * scripts/config.guess: Update from master copy.
6061 * scripts/config.sub: Likewise.
6063 2003-05-30 Guido Guenther <agx@sigxcpu.org>
6065 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
6066 SETUP_GP64 and friends.
6067 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
6068 names in internal_syscall{6,7}.
6069 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
6070 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
6071 number of syscall arguments.
6072 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6073 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6074 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6076 2003-05-30 Andreas Jaeger <aj@suse.de>
6078 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6081 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
6084 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
6086 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6089 2003-05-30 Jakub Jelinek <jakub@redhat.com>
6091 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
6094 2003-05-11 Andreas Schwab <schwab@suse.de>
6096 * Makerules: Always use -MP together with -MD.
6097 (sed-remove-dotot): Substitute $(..) also at start of line.
6098 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
6099 Generated defines with a single compiler call.
6100 Use $(sed-remove-dotdot).
6101 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
6102 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
6103 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6104 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
6105 * sysdeps/unix/sysv/linux/mips/Makefile
6106 ($(objpfx)syscall-%.h): Likewise.
6108 2003-05-28 Roland McGrath <roland@redhat.com>
6110 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
6112 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
6114 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
6116 2003-05-28 Roland McGrath <roland@redhat.com>
6118 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
6119 rt_sigprocmask system call.
6120 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
6121 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
6123 2003-05-28 Ulrich Drepper <drepper@redhat.com>
6125 * include/libc-symbols.h: Define hidden attribute for real also if
6126 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
6128 * csu/Makefile: Add rules to build Scrt1.o.
6129 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
6130 * sysdeps/x86_64/elf/start.S: Likewise.
6132 2003-05-27 Jakub Jelinek <jakub@redhat.com>
6134 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
6135 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
6136 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
6137 pa_short_int, pa_u_short_int and pa_float.
6139 2003-05-26 Jakub Jelinek <jakub@redhat.com>
6141 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
6142 _IO_str_init_static_internal.
6143 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
6144 change size argument to _IO_size_t, don't limit sprintf to 64M.
6145 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
6146 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
6147 _IO_size_t, don't limit swprintf to 256M.
6148 (_IO_wstr_init_readonly): Remove.
6149 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
6151 (_IO_wstr_init_readonly): Remove prototype.
6152 * libio/iovsprintf.c (_IO_vsprintf): Use
6153 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
6154 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
6155 * libio/memstream.c (open_memstream): Likewise.
6156 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
6157 * libio/vasprintf.c (_IO_vasprintf): Likewise.
6158 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
6159 * stdio-common/tst-sprintf.c (main): Add new test.
6161 2003-05-26 Ulrich Drepper <drepper@redhat.com>
6163 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
6164 other implementation in respect of multiple uses of parameter with
6167 2003-05-25 Ulrich Drepper <drepper@redhat.com>
6169 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6170 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
6172 2003-05-22 Andreas Jaeger <aj@suse.de>
6174 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
6176 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
6177 * sysdeps/x86_64/strtok.S: Likewise.
6179 2003-05-20 Guido Guenther <agx@sigxcpu.org>
6181 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
6182 to -60 and define SI_TKILL.
6184 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
6186 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
6187 (feexcp_mask_test): Likewise.
6189 2003-05-21 Ulrich Drepper <drepper@redhat.com>
6191 * locale/programs/locale.c (main): Fix typo in last patch.
6193 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
6194 __init_array_start, __init_array_end, __fini_array_start, and
6195 __fini_array_end as hidden.
6197 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
6199 * locale/programs/locale.c (main): Report an error if setlocale()
6200 fails [PR libc/2254].
6202 2003-05-21 Jakub Jelinek <jakub@redhat.com>
6204 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6206 2003-05-21 Jakub Jelinek <jakub@redhat.com>
6208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
6209 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
6210 LOADARGS_6): Don't error if syscall argument is a string literal.
6211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
6212 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
6213 LOADARGS_6): Likewise.
6215 2003-05-21 Andreas Jaeger <aj@suse.de>
6217 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
6218 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
6219 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
6221 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
6225 * configure.in: Test for asm cfi directives.
6227 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
6229 2003-05-17 Andreas Jaeger <aj@suse.de>
6231 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
6233 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
6235 2003-05-16 Ulrich Drepper <drepper@redhat.com>
6237 * rt/Makefile (tests): Add tst-clock_nanosleep.
6238 * rt/tst-clock_nanosleep.c: New file.
6239 * posix/Makefile (tests): Add tst-nanosleep.
6240 * posix/tst-nanosleep.c: New file.
6242 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
6244 * include/features.h (__USE_XOPEN2K): Define also for
6245 _POSIX_C_SOURCE>=200112L.
6247 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
6248 SI_TKILL code into SI_USER.
6249 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
6251 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
6253 2003-05-15 Jakub Jelinek <jakub@redhat.com>
6255 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
6256 Remove sym argument, always use refsym.
6257 (__process_machine_rela): Adjust callers.
6258 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
6260 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
6262 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
6264 2003-05-15 Ulrich Drepper <drepper@redhat.com>
6266 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
6267 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
6268 print numeric values.
6270 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
6272 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
6274 2003-05-14 Andreas Schwab <schwab@suse.de>
6276 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
6278 2003-05-14 Jakub Jelinek <jakub@redhat.com>
6280 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
6281 even if no DT_NEEDED is present.
6283 2003-05-13 David Mosberger <davidm@hpl.hp.com>
6285 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
6286 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
6287 __sigjmp_save) so we can't keep the saved unat value in a scratch
6288 register (r16). Use loc2 instead.
6290 2003-05-13 Ulrich Drepper <drepper@redhat.com>
6292 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
6293 binaries it has to be relocatable.
6295 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
6297 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
6299 * sysdeps/powerpc/bits/atomic.h
6300 (__arch_compare_and_exchange_bool_8_rel): Define.
6301 (__arch_compare_and_exchange_bool_16_rel): Define.
6302 (__ARCH_REL_INSTR): Define if not already defined.
6303 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
6304 (__arch_atomic_decrement_if_positive_32):
6305 Add "memory" to clobber list.
6306 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
6307 (__arch_compare_and_exchange_val_32_rel): Define.
6308 (__arch_atomic_exchange_32): Remove.
6309 (__arch_atomic_exchange_32_acq): Define.
6310 (__arch_atomic_exchange_32_rel): Define.
6311 (atomic_compare_and_exchange_val_rel): Define.
6312 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
6313 (atomic_exchange_rel): Define.
6314 * sysdeps/powerpc/powerpc32/bits/atomic.h
6315 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
6316 (__arch_compare_and_exchange_bool_32_rel): Define.
6317 (__arch_compare_and_exchange_bool_64_rel): Define.
6318 (__arch_compare_and_exchange_val_64_rel): Define.
6319 (__arch_atomic_exchange_64): Remove.
6320 (__arch_atomic_exchange_64_acq): Define.
6321 (__arch_atomic_exchange_64_rel): Define.
6322 * sysdeps/powerpc/powerpc64/bits/atomic.h
6323 (__arch_compare_and_exchange_bool_32_rel): Define.
6324 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
6325 (__arch_compare_and_exchange_bool_64_rel): Define.
6326 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
6327 (__arch_compare_and_exchange_val_64_rel): Define.
6328 (__arch_atomic_exchange_64): Remove.
6329 (__arch_atomic_exchange_64_acq): Define.
6330 (__arch_atomic_exchange_64_rel): Define.
6331 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
6332 (__arch_atomic_decrement_if_positive_64):
6333 Add "memory" to clobber list.
6334 [!UP](__ARCH_REL_INSTR): Define as lwsync.
6336 2003-05-11 Andreas Schwab <schwab@suse.de>
6338 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
6340 2003-05-11 Ulrich Drepper <drepper@redhat.com>
6342 * time/tst-strftime.c (do_test): Add tests for - flag.
6344 2003-05-11 Jim Meyering <jim@meyering.net>
6346 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
6347 the space-padded-by-default conversion specifiers, %e, %k, %l.
6349 2003-05-11 Andreas Schwab <schwab@suse.de>
6351 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
6353 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6355 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
6356 already defined and when really needed.
6357 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6359 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
6361 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
6362 headers, add defines from kernel header, move it from here...
6363 * inet/netinet/igmp.h: ... to here.
6364 * inet/Makefile (headers): Add netinet/igmp.h.
6365 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
6366 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
6368 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6370 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
6371 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
6373 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
6375 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
6376 (remove __THROW from possible cancellation points).
6378 2003-05-10 Ulrich Drepper <drepper@redhat.com>
6380 * posix/sched.h (CPU_SETSIZE): Define.
6382 2003-05-09 Ulrich Drepper <drepper@redhat.com>
6384 * Makeconfig (gnulib): Remove -lgcc_eh again.
6386 * posix/sched.h: Change prototypes of sched_getaffinity and
6387 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
6388 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
6389 * sysdeps/generic/sched_setaffinity.c: Likewise.
6390 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
6391 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
6392 __CPU_CLR, and __CPU_ISSET.
6393 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6394 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
6395 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
6397 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
6398 (atomic_exchange_rel): New #define.
6399 * sysdeps/ia64/bits/atomic.h: Likewise.
6400 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
6402 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
6403 * sysdeps/powerpc/bits/atomic.h: Likewise.
6404 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
6405 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
6406 * sysdeps/x86_64/bits/atomic.h: Likewise.
6407 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
6409 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
6411 2003-05-08 Ulrich Drepper <drepper@redhat.com>
6413 * malloc/thread-m.h: Remove special handling of thread_atfork if
6414 HAVE_register_atfork_malloc is defined.
6416 2003-05-07 Andreas Jaeger <aj@suse.de>
6418 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
6421 2003-05-06 Ulrich Drepper <drepper@redhat.com>
6423 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
6424 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6425 * libio/libioP.h: Declare _IO_old_init.
6426 * libio/genops.c (_IO_no_init): Split in two. New function
6429 2003-05-05 Ulrich Drepper <drepper@redhat.com>
6431 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
6433 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
6435 * include/unistd.h: Declare __libc_enable_secure_decided.
6436 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
6437 and AT_EGID. If all found, set __libc_enable_secure and
6438 __libc_enable_secure_decided.
6440 * sysdeps/generic/libc-start.c [!SHARED]: Call
6441 __libc_check_standard_fds after __libc_init_first.
6443 2003-05-05 Roland McGrath <roland@redhat.com>
6445 * Makerules (common-before-compile): New variable.
6446 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
6447 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
6448 to after all setting of before-compile.
6450 2003-05-05 Jakub Jelinek <jakub@redhat.com>
6452 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
6453 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
6454 * sysdeps/powerpc/powerpc32/bits/atomic.h
6455 (__arch_compare_and_exchange_val_64_acq): Likewise.
6456 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
6457 (__arch_compare_and_exchange_val_8_acq,
6458 __arch_compare_and_exchange_val_16_acq,
6459 __arch_compare_and_exchange_val_64_acq): Likewise.
6460 * sysdeps/sparc/sparc64/bits/atomic.h
6461 (__arch_compare_and_exchange_val_8_acq,
6462 __arch_compare_and_exchange_val_16_acq): Likewise.
6463 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
6464 __arch_compare_and_exchange_val_16_acq,
6465 __arch_compare_and_exchange_val_64_acq): Likewise.
6466 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
6467 (__arch_compare_and_exchange_val_64_acq): Likewise.
6468 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
6470 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
6472 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6473 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
6474 Return long instead of int.
6475 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
6476 0xfffff001u with -4095UL.
6478 2003-05-05 Andreas Jaeger <aj@suse.de>
6480 * sysdeps/x86_64/fpu_control.h: New from i386.
6482 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
6483 Define if not defined.
6485 * sunrpc/Makefile (generated-dirs): New variable.
6486 * resolv/Makefile (generated): New variable.
6488 2003-05-04 Roland McGrath <roland@redhat.com>
6490 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
6491 Depend on $(before-compile).
6493 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
6494 pattern rule. The implicit rule could be ruled out when $(objpfx)
6495 didn't exist at the time of its consideration (ugh!).
6497 * Makerules (+make-deps): Fix target matching.
6498 Use $(sed-remove-dotdot).
6500 2003-05-03 Ulrich Drepper <drepper@redhat.com>
6502 * nscd/nscd.c (main): Parse config file right after parsing
6503 parameters. Then, if get_stats is true, call receive_print_stats.
6504 Drop parameter from nscd_init call.
6505 (get_stats): New variable.
6506 (parse_opt): Set get_stats, don't call receive_print_stats here.
6507 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
6509 * nscd/connections.c (stat_user, stat_uid): New variables.
6511 (nscd_init): Don't read configuration file here. Drop parameter.
6512 (handle_request): Cleanup handling of non-database lookup requests.
6513 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
6514 Get UID of the specified user. Use xstrdup instead of strdup.
6515 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
6517 * nscd/Makefile (nscd-modules): Add xstrdup.
6518 * nscd/nscd.conf: Document stat-user entry.
6520 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
6522 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
6525 2003-04-22 Roland McGrath <roland@redhat.com>
6527 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
6528 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6529 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
6530 * elf/dl-support.c: Update defn.
6531 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
6532 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6533 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
6534 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
6535 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
6536 set, set up a link_map for the preloaded, prelinked object.
6538 2003-05-03 Roland McGrath <roland@redhat.com>
6540 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
6541 * stdio-common/Makefile: ... not here.
6543 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
6544 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
6546 2003-05-02 Ulrich Drepper <drepper@redhat.com>
6548 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
6550 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
6552 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
6553 comparing ftab elements.
6554 (_dl_unmap): Fix typo in test.
6555 (_dl_make_fptr): Fix typos introduced in last change.
6557 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
6558 original patch. Use non-exported symbols. Mark translatable
6559 strings. Pretty printing.
6561 2003-05-02 Roland McGrath <roland@redhat.com>
6563 * Makerules (do-stamp): Do $(make-target-directory).
6565 2003-04-07 H.J. Lu <hjl@gnu.org>
6567 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
6569 2003-04-03 H.J. Lu <hjl@gnu.org>
6571 * sysdeps/ia64/dl-fptr.c: Moved to ...
6572 * sysdeps/generic/dl-fptr.c: Here.
6574 * sysdeps/generic/dl-fptr.h: New.
6575 * sysdeps/ia64/dl-fptr.h: New.
6577 * sysdeps/ia64/dl-symaddr.c: Moved to ...
6578 * sysdeps/generic/dl-symaddr.c: here.
6580 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
6581 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
6582 (ia64_fdesc): Likewise.
6583 (ia64_fdesc_table): Likewise.
6584 (__ia64_make_fptr): Likewise.
6585 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
6586 with _dl_boot_fptr_table.
6587 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
6589 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
6591 2003-05-01 Roland McGrath <roland@redhat.com>
6593 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
6594 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
6596 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6597 Use $(make-target-directory).
6598 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6600 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
6601 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
6602 (compile-command.s, compile-command.c): Likewise.
6603 ($(objpfx)%.d): All such pattern rules removed.
6604 ($(+sysdir_pfx)sysd-rules): Don't generate them.
6605 ($(common-objpfx)dummy.d): Target removed.
6606 (make-dummy-dep): Variable removed.
6607 (generate-md5): Likewise.
6608 (%.d: %.dt): New pattern rule.
6609 (+depfiles): Use $(wildcard) function to get just existing *.d files
6610 and .d files for existing *.dt files.
6611 (common-clean): Remove all *.d and *.dt files.
6612 (before-compile): Add $(objpfx). when it doesn't exist,
6613 regardless of $(no_deps).
6614 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
6615 (rtld-depfiles): Use .os.d instead of .d names.
6616 Include existing *.d files and .d files for existing *.dt files.
6618 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
6619 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
6621 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
6622 Do s-*.d includes only if we have some syscall routines in this subdir.
6624 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
6625 @nobits. The former is accepted by gas on any ELF platform.
6627 2003-05-01 Ulrich Drepper <drepper@redhat.com>
6629 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
6631 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
6633 2003-04-29 Andreas Schwab <schwab@suse.de>
6635 * string/test-strcat.c (do_one_test): Fix attribute name.
6637 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
6639 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
6640 uc_flags long for all ABIs.
6642 2003-04-30 Andreas Jaeger <aj@suse.de>
6644 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
6645 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
6646 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
6647 Add bi-arch support.
6649 2003-04-30 Ulrich Drepper <drepper@redhat.com>
6651 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
6652 (__posix_memalign): Use __memalign_internal instead of memalign.
6654 2003-04-29 Roland McGrath <roland@redhat.com>
6656 * configure.in: Search for AUTOCONF unconditionally.
6657 Just don't complain about missing it under --without-cvs.
6659 * include/libc-symbols.h (__symbol_set_attribute): New macro,
6660 give hidden for [SHARED] and weak for [! SHARED].
6661 (symbol_set_declare): Use that. Never need weak_extern these days.
6662 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
6663 Depend on $(..)Makerules.
6665 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6667 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
6668 variants of socket, bind, recvmsg, and sendto.
6670 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
6672 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
6673 * signal/sigaddset.c: Add libc_hidden_def.
6674 * signal/sigdelset.c: Likewise.
6676 2003-04-29 Jakub Jelinek <jakub@redhat.com>
6678 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
6679 to the end of the file.
6681 * configure.in: Change __oline__ to $LINENO.
6682 (HAVE_BUILTIN_REDIRECTION): New check.
6683 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
6684 * include/libc-symbols.h (libc_hidden_builtin_proto,
6685 libc_hidden_builtin_def, libc_hidden_builtin_weak,
6686 libc_hidden_builtin_ver): Define.
6687 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
6688 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
6689 strspn, strstr): Add libc_hidden_builtin_proto.
6690 * intl/plural.y: Include string.h.
6691 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
6692 libc_hidden_builtin_def.
6693 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
6694 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
6695 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
6696 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
6697 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
6698 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
6699 * sysdeps/alpha/memchr.S (memchr): Likewise.
6700 * sysdeps/alpha/memset.S (memset): Likewise.
6701 * sysdeps/alpha/strcat.S (strcat): Likewise.
6702 * sysdeps/alpha/strchr.S (strchr): Likewise.
6703 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
6704 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
6705 * sysdeps/alpha/strlen.S (strlen): Likewise.
6706 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
6707 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
6708 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
6709 * sysdeps/arm/memset.S (memset): Likewise.
6710 * sysdeps/arm/strlen.S (strlen): Likewise.
6711 * sysdeps/generic/memchr.c (memchr): Likewise.
6712 * sysdeps/generic/memcpy.c (memcpy): Likewise.
6713 * sysdeps/generic/memmove.c (memmove): Likewise.
6714 * sysdeps/generic/memset.c (memset): Likewise.
6715 * sysdeps/generic/strcat.c (strcat): Likewise.
6716 * sysdeps/generic/strchr.c (strchr): Likewise.
6717 * sysdeps/generic/strcmp.c (strcmp): Likewise.
6718 * sysdeps/generic/strcpy.c (strcpy): Likewise.
6719 * sysdeps/generic/strcspn.c (strcspn): Likewise.
6720 * sysdeps/generic/strlen.c (strlen): Likewise.
6721 * sysdeps/generic/strncmp.c (strncmp): Likewise.
6722 * sysdeps/generic/strncpy.c (strncpy): Likewise.
6723 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
6724 * sysdeps/generic/strrchr.c (strrchr): Likewise.
6725 * sysdeps/generic/strspn.c (strspn): Likewise.
6726 * sysdeps/generic/strstr.c (strstr): Likewise.
6727 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6728 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6729 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
6730 * sysdeps/i386/i586/memset.S (memset): Likewise.
6731 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
6732 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
6733 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6734 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
6735 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6736 * sysdeps/i386/i686/memset.S (memset): Likewise.
6737 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6738 * sysdeps/i386/memchr.S (memchr): Likewise.
6739 * sysdeps/i386/memset.c (memset): Likewise.
6740 * sysdeps/i386/strchr.S (strchr): Likewise.
6741 * sysdeps/i386/strcspn.S (strcspn): Likewise.
6742 * sysdeps/i386/strlen.c (strlen): Likewise.
6743 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6744 * sysdeps/i386/strrchr.S (strrchr): Likewise.
6745 * sysdeps/i386/strspn.S (strspn): Likewise.
6746 * sysdeps/ia64/memchr.S (memchr): Likewise.
6747 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
6748 * sysdeps/ia64/memmove.S (memmove): Likewise.
6749 * sysdeps/ia64/memset.S (memset): Likewise.
6750 * sysdeps/ia64/strcat.S (strcat): Likewise.
6751 * sysdeps/ia64/strchr.S (strchr): Likewise.
6752 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
6753 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
6754 * sysdeps/ia64/strlen.S (strlen): Likewise.
6755 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
6756 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
6757 * sysdeps/m68k/memchr.S (memchr): Likewise.
6758 * sysdeps/m68k/strchr.S (strchr): Likewise.
6759 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
6760 * sysdeps/mips/mips64/memset.S (memset): Likewise.
6761 * sysdeps/mips/memcpy.S (memcpy): Likewise.
6762 * sysdeps/mips/memset.S (memset): Likewise.
6763 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6764 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
6765 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
6766 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
6767 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
6768 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6769 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6770 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
6771 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
6772 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
6773 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
6774 * sysdeps/powerpc/strcat.c (strcat): Likewise.
6775 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
6776 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
6777 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
6778 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
6779 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
6780 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
6781 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
6782 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
6783 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
6784 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
6785 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
6786 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
6787 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
6788 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
6789 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
6790 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
6791 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
6792 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
6793 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
6794 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
6795 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
6796 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
6797 * sysdeps/sh/memcpy.S (memcpy): Likewise.
6798 * sysdeps/sh/memset.S (memset): Likewise.
6799 * sysdeps/sh/strlen.S (strlen): Likewise.
6800 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
6801 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
6802 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
6803 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
6804 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
6805 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
6806 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
6807 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
6808 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
6809 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
6810 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
6811 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
6812 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6813 * sysdeps/x86_64/memset.S (memset): Likewise.
6814 * sysdeps/x86_64/strcat.S (strcat): Likewise.
6815 * sysdeps/x86_64/strchr.S (strchr): Likewise.
6816 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
6817 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
6818 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
6819 * sysdeps/x86_64/strlen.S (strlen): Likewise.
6820 * sysdeps/x86_64/strspn.S (strspn): Likewise.
6821 * string/string-inlines.c: Move...
6822 * sysdeps/generic/string-inlines.c: ...here.
6823 (__memcpy_g, __strchr_g): Remove.
6824 (__NO_INLINE__): Define before including <string.h>,
6825 undefine after. Include bits/string.h and bits/string2.h.
6826 * sysdeps/i386/i486/string-inlines.c: New file.
6827 * sysdeps/i386/string-inlines.c: New file.
6828 * sysdeps/i386/i486/Versions: Remove.
6829 All GLIBC_2.1.1 symbols moved...
6830 * sysdeps/i386/Versions (libc): ...here.
6832 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6834 * sysdeps/i386/fpu/Makefile: New file.
6835 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
6836 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6837 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6838 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
6841 2003-04-28 Ulrich Drepper <drepper@redhat.com>
6843 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
6844 * nscd/nscd_getpw_r.c: Likewise.
6845 * nscd/nscd_gethst_r.c: Likewise.
6847 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6849 * nscd/pwdcache.c: Initialize .version element in result.
6850 * nscd/grpcache.c: Likewise.
6851 * nscd/pwdcache.c: Likewise.
6853 2003-04-27 Andreas Schwab <schwab@suse.de>
6855 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
6858 2003-04-27 Andreas Schwab <schwab@suse.de>
6860 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
6862 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6864 * nscd/connections.c (client_queued): New variable.
6865 (nscd_run): Revamp the loop. Don't call poll except for cleanup
6866 threads. Keep track of the number of delays caused because of busy
6868 * nscd/nscd.h: Declare client_queued.
6869 * nscd/nscd_stat.c: Transmit and print client_queued information.
6871 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
6873 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
6874 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
6876 2003-04-26 Ulrich Drepper <drepper@redhat.com>
6878 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
6879 tracking of freed memory in static TLS block.
6880 * elf/Makefile: Add rules to build and run tst-tls13.
6881 * elf/tst-tls13.c: New file.
6882 * elf/tst-tlsmod13.c: New file.
6883 * elf/tst-tlsmod13a.c: New file.
6885 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
6887 * elf/dl-reloc.c: Pretty printing.
6889 2003-04-26 Roland McGrath <roland@redhat.com>
6891 * Makerules ($(common-objpfx)shlib.lds): New target.
6892 (common-generated): Add it.
6893 (build-shlib, build-module): Use that instead of generating every time.
6894 ($(common-objpfx)libc.so): Depend on it.
6895 (lib%.so rule): Likewise.
6896 (build-module-helper-objlist): Remove %.lds.
6897 (LDSEDCMD-c.so): Variable removed.
6898 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
6899 Depend on $(common-objpfx)shlib.lds.
6900 * dlfcn/Makefile ($(test-modules)): Likewise.
6902 2003-04-26 Roland McGrath <roland@frob.com>
6904 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
6906 2003-04-26 Andreas Schwab <schwab@suse.de>
6908 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
6910 2003-04-25 Ulrich Drepper <drepper@redhat.com>
6912 * nscd/cache.c (cache_search): Keep track of how many chain links
6913 we searched and update table statistics.
6914 (cache_add): Keep track of how many values are in the table.
6915 (prune_cache): Likewise. Keep track of locking success.
6916 Print messages about removed entries in separate pass.
6917 * nscd/connections.c (handle_request): Don't print debug message here.
6918 The caller will do it. Keep track of locking success.
6919 (nscd_run): Print debug message. Also print PID of the client process.
6920 * nscd/nscd.c (start_time): New variable.
6921 (main): Remember start time.
6922 * nscd/nscd.h: Declare start_time.
6923 (struct database): Add more members for new statistics.
6924 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
6927 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
6929 2003-04-22 Jakub Jelinek <jakub@redhat.com>
6931 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
6932 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
6933 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
6935 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
6936 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
6937 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
6938 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
6941 2003-04-24 Ulrich Drepper <drepper@redhat.com>
6943 * nss/getent.c: Implement alternative host database lookup via
6946 * include/ifaddrs.h: New file.
6947 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
6949 * resolv/netdb.h: ...here.
6950 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
6951 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6952 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
6955 2003-04-24 Roland McGrath <roland@redhat.com>
6957 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
6959 2003-04-24 Jakub Jelinek <jakub@redhat.com>
6961 * elf/dl-reloc.c (allocate_static_tls): Rename to...
6962 (_dl_allocate_static_tls): ... this function. No longer static.
6963 (CHECK_STATIC_TLS): Adjust.
6964 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
6965 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
6966 Add SYM_MAP argument.
6967 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
6968 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
6969 TLS relocs here. #ifdef out relocs which never appear in
6970 .gnu.conflict section from dl-conflict.c processing.
6971 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6972 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
6974 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
6975 out relocs which never appear in .gnu.conflict section from
6976 dl-conflict.c processing.
6977 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6978 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6979 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6980 Use r_type in RESOLVE macro.
6982 2003-04-23 Ulrich Drepper <drepper@redhat.com>
6984 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
6985 NULL. Remove code made redundant by this assumption.
6986 (__yp_unbind): Add call to free. Adjust all callers.
6988 * nis/ypclnt.c (yp_all): Free the dom_binding object after
6991 * grp/initgroups.c (getgrouplist): Don't copy too much into the
6992 user buffer if more groups are found than fit into it.
6994 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
6997 2003-04-23 Jakub Jelinek <jakub@redhat.com>
6999 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
7000 not rc == errno. Use extend_alloca.
7002 * elf/tst-tls12.c (main): Fix declaration.
7003 * elf/tst-tls10.c (dummy): Make hidden instead of static.
7004 * elf/tst-tlsmod7.c (dummy): Likewise.
7005 * elf/tst-tlsmod8.c (dummy): Likewise.
7006 * elf/tst-tlsmod9.c (dummy): Likewise.
7008 2003-04-22 Roland McGrath <roland@redhat.com>
7010 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
7011 (open_not_cancel): Make last argument non-optional.
7012 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
7013 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7014 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7016 * include/tls.h: Protect against multiple inclusion.
7018 2003-04-22 Ulrich Drepper <drepper@redhat.com>
7020 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
7021 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
7022 open_socket. Not static anymore.
7023 (nscd_gethst_r): Use __nscd_open_socket.
7024 * nscd/nscd_getgr_r.c (open_socket): Removed.
7025 (nscd_getgr_r): Use __nscd_open_socket.
7026 * nscd/nscd_getpw_r.c (open_socket): Removed.
7027 (nscd_getpw_r): Use __nscd_open_socket.
7029 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
7030 * nscd/connections.c (handle_request): Add cast to avoid warning.
7032 2003-04-21 Ulrich Drepper <drepper@redhat.com>
7034 * signal/sigfillset.c: Moved to...
7035 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
7036 do not set the corresponding bit.
7038 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
7040 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
7041 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
7042 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
7043 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
7044 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
7046 2003-04-20 Ulrich Drepper <drepper@redhat.com>
7048 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
7049 first syscall parameter to const char*.
7051 2003-04-19 Ulrich Drepper <drepper@redhat.com>
7053 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
7055 * configure.in: Add AC_PROG_CXX.
7056 * config.make.in (CXX): Define.
7058 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
7059 __len to size_t to avoid warnings.
7061 2003-04-18 Jes Sorensen <jes@wildopensource.com>
7063 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
7065 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7067 2003-04-19 Ulrich Drepper <drepper@redhat.com>
7069 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
7070 UNREGISTER_ATFORK if d == NULL.
7072 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
7073 * dirent/dirent.h: Likewise.
7074 * dlfcn/dlfcn.h: Likewise.
7075 * grp/grp.h: Likewise.
7076 * iconv/iconv.h: Likewise.
7077 * io/fcntl.h: Likewise.
7078 * io/ftw.h: Likewise.
7079 * libio/stdio.h: Likewise.
7080 * misc/sys/mman.h: Likewise.
7081 * misc/sys/select.h: Likewise.
7082 * misc/sys/syslog.h: Likewise.
7083 * misc/sys/uio.h: Likewise.
7084 * posix/spawn.h: Likewise.
7085 * posix/unistd.h: Likewise.
7086 * posix/sys/wait.h: Likewise.
7087 * pwd/pwd.h: Likewise.
7088 * resolv/netdb.h: Likewise.
7089 * rt/aio.h: Likewise.
7090 * shadow/shadow.h: Likewise.
7091 * signal/signal.h: Likewise.
7092 * socket/sys/socket.h: Likewise.
7093 * stdlib/stdlib.h: Likewise.
7094 * streams/stropts.h: Likewise.
7095 * string/string.h: Likewise.
7096 * sysdeps/gnu/utmpx.h: Likewise.
7097 * sysvipc/sys/msg.h: Likewise.
7098 * termios/termios.h: Likewise.
7099 * time/time.h: Likewise.
7100 * wcsmbs/wchar.h: Likewise.
7101 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
7103 * misc/daemon.c: Likewise.
7104 * sysdeps/generic/backtracesymsfd.c: Likewise.
7105 * sysdeps/generic/check_fds.c: Likewise.
7106 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
7107 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
7108 * sysdeps/generic/not-cancel.h: New file.
7109 * csu/Makefile (distribute): Add not-cancel.h.
7110 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
7111 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
7112 for assert.c and assert-perr.c to include <fatal-prepare.h>.
7113 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
7115 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
7116 errno and unlink first.
7118 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
7120 2003-04-18 Ulrich Drepper <drepper@redhat.com>
7122 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
7123 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
7125 2003-04-17 Ulrich Drepper <drepper@redhat.com>
7127 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
7129 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
7130 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
7133 * signal/Makefile (tests): Add tst-sigsimple.
7134 * signal/tst-sigsimple.c: New file.
7136 2003-04-16 Jakub Jelinek <jakub@redhat.com>
7138 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
7140 (tests): Add tst-tls1[0-2].
7141 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
7142 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
7143 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
7144 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
7145 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
7146 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
7147 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
7148 * elf/tst-tls10.c: New test.
7149 * elf/tst-tls11.c: New test.
7150 * elf/tst-tls12.c: New test.
7151 * elf/tst-tls10.h: New file.
7152 * elf/tst-tlsmod7.c: New file.
7153 * elf/tst-tlsmod8.c: New file.
7154 * elf/tst-tlsmod9.c: New file.
7155 * elf/tst-tlsmod10.c: New file.
7156 * elf/tst-tlsmod11.c: New file.
7157 * elf/tst-tlsmod12.c: New file.
7159 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
7161 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
7162 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
7163 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
7165 2003-04-17 Ulrich Drepper <drepper@redhat.com>
7167 * posix/regex.h: Include <sys/types.h>.
7169 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
7170 The signal number must be checked.
7171 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
7172 The signal number must be checked [PR libc/5004].
7174 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
7175 don't do anything fancy.
7177 * sysdeps/generic/bits/libc-lock.h: Define
7178 __rtld_lock_define_initialized_recursive.
7180 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
7181 contacting nscd if NOT_USENSCD_NAME > 0.
7182 * nss/nsswitch.c (__nss_disable_nscd): New function.
7183 * nss/nsswitch.h: Declare it.
7184 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
7185 * nscd/nscd.c (main): Call __nss_disable_nscd.
7187 2003-04-16 Ulrich Drepper <drepper@redhat.com>
7189 * stdio-common/perror.c (perror): We don't need to set the offset
7190 to _IO_pos_bad, this is how streams are initialized.
7192 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
7193 (time_output): If necessary, allocate new buffer for .name string if
7194 padding is required.
7196 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
7197 before copying. This might leave holes in the list. Adjust
7198 pointers if necessary.
7199 (netlink_receive): Allocate only one block.
7200 (free_netlink_handle): Adjust appropriately.
7201 (getifaddrs): Lots of cleanups.
7203 * string/test-strncpy.c (do_one_test): Mark start and stop as
7205 * string/test-memchr.c: Likewise.
7206 * string/test-memcmp.c: Likewise.
7207 * string/test-memcpy.c: Likewise.
7208 * string/test-memmove.c: Likewise.
7209 * string/test-memset.c: Likewise.
7210 * string/test-strcat.c: Likewise.
7211 * string/test-strchr.c: Likewise.
7212 * string/test-strcmp.c: Likewise.
7213 * string/test-strcpy.c: Likewise.
7214 * string/test-strlen.c: Likewise.
7215 * string/test-strncmp.c: Likewise.
7216 * string/test-strpbrk.c: Likewise.
7217 * string/test-strrchr.c: Likewise.
7218 * string/test-strspn.c: Likewise.
7220 2003-04-15 Roland McGrath <roland@redhat.com>
7222 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
7224 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
7225 INTUSE(__register_frame_info_bases).
7227 2003-04-15 Ulrich Drepper <drepper@redhat.com>
7229 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
7230 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
7231 AT_SYSINFO_EH_FRAME. Adjust string width.
7232 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
7233 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
7234 Add _dl_sysinfo_eh_frame field.
7235 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
7236 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
7238 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
7239 if _dl_sysinfo_eh_frame is non-NULL.
7241 * Makeconfig (gnulib): Add -lgcc_eh.
7243 * config.h.in: Define HAVE_FORCED_UNWIND.
7245 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
7247 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
7248 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
7250 2003-04-15 Jakub Jelinek <jakub@redhat.com>
7252 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
7253 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
7254 against local symbol in conflict processing.
7256 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
7258 * sysdeps/powerpc/bits/atomic.h
7259 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
7260 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
7262 (__arch_compare_and_exchange_val_32_acq): Define.
7263 (atomic_compare_and_exchange_val_acq): Define.
7265 2003-04-15 Ulrich Drepper <drepper@redhat.com>
7267 * include/atomic.h: Pretty printing.
7269 2003-04-14 Ulrich Drepper <drepper@redhat.com>
7271 * stdio-common/vfscanf.c: Add casts to avoid warnings.
7273 2003-04-14 Jakub Jelinek <jakub@redhat.com>
7275 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
7276 * sysdeps/x86_64/bits/atomic.h: Likewise.
7278 2003-04-14 Ulrich Drepper <drepper@redhat.com>
7280 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
7281 POPARGS_1 to emit labels for the mov instructions.
7283 2003-04-14 Jakub Jelinek <jakub@redhat.com>
7285 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
7287 2003-04-14 Roland McGrath <roland@redhat.com>
7289 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
7292 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
7294 2003-04-14 Ulrich Drepper <drepper@redhat.com>
7296 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
7297 position. Reported by jreiser@BitWagon.com.
7299 2003-04-13 Ulrich Drepper <drepper@redhat.com>
7301 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
7302 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
7303 * sysdeps/generic/unwind-dw2.c: Likewise.
7304 * sysdeps/generic/unwind-pe.h: Likewise.
7306 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
7308 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
7309 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
7310 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
7311 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
7312 (mcontext_t): Make it match the 32-bit mips kernel in o32.
7313 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
7314 the mips and mips64 headers.
7315 (struct user): Port to n32/n64.
7317 2003-04-12 Ulrich Drepper <drepper@redhat.com>
7319 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
7322 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
7323 __ASSUME_VSYSCALL is defined don't add restorer.
7324 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7325 __ASSUME_VSYSCALL for 2.5.53.
7327 2003-04-11 Ulrich Drepper <drepper@redhat.com>
7329 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
7330 Remove HAVE_CANCELBUF code. Replace with code using the new
7331 initializers for unwind-based cleanup handling.
7332 * sysdeps/generic/unwind.h: Update from latest gcc version.
7333 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
7334 places to allow unwind data generation.
7335 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
7336 * sysdeps/x86_64/bits/setjmp.h: Likewise.
7337 * sysdeps/sh/bits/setjmp.h: Likewise.
7338 * sysdeps/powerpc/bits/setjmp.h: Likewise.
7339 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
7340 * sysdeps/alpha/bits/setjmp.h: Likewise.
7342 2003-04-11 Roland McGrath <roland@redhat.com>
7344 * csu/tst-empty.c: New file.
7345 * csu/Makefile (tests, tests-static): Add it.
7347 2003-04-11 Jakub Jelinek <jakub@redhat.com>
7349 * string/test-strcmp.c (do_random_tests): Test whether return value
7350 has been promoted to wordsize if the ABI requires caller to do so.
7351 * string/test-strncmp.c (do_random_tests): Likewise.
7352 * string/test-memcmp.c (do_random_tests): Likewise.
7354 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
7357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7358 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
7359 is not defined, but the prctl constants are.
7361 * string/tester.c (test_strcmp): Fix a typo.
7363 2003-04-09 Ulrich Drepper <drepper@redhat.com>
7365 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
7366 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
7368 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
7370 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
7372 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
7374 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
7376 * sysdeps/mips/mips64/memset.S: Likewise.
7377 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
7378 Use t0 instead of t4 as temporary.
7380 2003-04-07 Ulrich Drepper <drepper@redhat.com>
7382 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
7383 feof_unlocked instead of feof.
7384 (add_dir): Ignore trailing whitespace.
7386 2003-04-07 Jakub Jelinek <jakub@redhat.com>
7388 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
7389 sum of SIZE1 and SIZE2 arguments.
7391 2003-04-06 Ulrich Drepper <drepper@redhat.com>
7393 * iconv/iconv_prog.c (process_block): Don't print message about
7394 invalid input if the -c option is used.
7395 (main): Correctly append IGNORE string for -c option.
7397 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7399 * sysdeps/sh/bits/atomic.h: Moved to ...
7400 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
7401 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
7403 (atomic_bit_set, atomic_bit_test_set): Likewise.
7404 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
7406 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7408 2003-04-06 Roland McGrath <roland@redhat.com>
7410 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
7411 restoration as done for setcontext yesterday.
7413 2003-04-06 Jakub Jelinek <jakub@redhat.com>
7415 * elf/rtld.c: Revert 2003-03-14 change.
7416 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
7417 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
7419 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7421 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
7423 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7424 Always initialize *signgamp before returning an error.
7426 2003-04-05 Roland McGrath <roland@redhat.com>
7428 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
7429 below the stack pointer even if switching to the same context we are
7432 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7434 * catgets/gencat.c (read_input_file): Make sure that \n is not
7435 alone on the line before testing for continuation.
7437 * math/test-tgmath.c (compile_test): Initialize c.
7439 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
7441 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
7442 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
7443 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
7445 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
7446 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
7447 structure on n32 as well.
7448 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
7449 data types on n32 and n64.
7451 2003-04-05 Ulrich Drepper <drepper@redhat.com>
7453 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
7456 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
7457 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
7458 instead of __register_atfork.
7460 2003-04-05 Jakub Jelinek <jakub@redhat.com>
7462 * stdio-common/reg-printf.c (__register_printf_function): Calloc
7463 instead of malloc __printf_arginfo_table and __printf_function_table.
7464 Reported by John Reiser <jreiser@BitWagon.com>.
7466 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
7468 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
7469 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
7471 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
7474 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
7476 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
7479 2003-04-03 Roland McGrath <roland@redhat.com>
7481 * configure.in: Fix up use of compilation flags to match the build:
7482 For .s files, $ASFLAGS;
7483 For .S files, $CPPFLAGS $ASFLAGS;
7484 For .c files, $CFLAGS $CPPFLAGS;
7485 when linking, add $LDFLAGS.
7486 * configure: Regenerated.
7488 2003-04-03 Jakub Jelinek <jakub@redhat.com>
7490 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
7491 for atomic_compare_and_exchange_bool_acq failure.
7493 2003-04-03 Ulrich Drepper <drepper@redhat.com>
7495 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
7496 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
7497 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
7498 Remove declaration of pthread_atfork.
7500 2003-04-02 Ulrich Drepper <drepper@redhat.com>
7502 * locale/iso-639.def: Add many more languages from the current ISO 639.
7504 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
7505 * sysdeps/generic/semtimedop.c: New file.
7506 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
7507 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
7508 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7509 * sysvipc/Makefile (routines): Add semtimedop.
7510 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
7511 * sysvipc/sys/sem.h: Declare semtimedop.
7513 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
7515 * configure.in: Check for __register_frame_info in both
7517 * configure: Regenerated.
7519 2003-04-01 Roland McGrath <roland@redhat.com>
7521 * scripts/abilist.awk: Allow dots in soname suffix.
7523 * scripts/abilist.awk (emit): Fix bailout condition.
7525 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7527 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
7530 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
7531 register as input to asm.
7533 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7535 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
7537 2003-04-01 Andreas Jaeger <aj@suse.de>
7539 * configure.in: Output as/ld as name if version is too old.
7541 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
7543 * configure.in: Don't require an installed C library in the test
7544 for ".set" assembler support.
7546 2003-03-31 Roland McGrath <roland@redhat.com>
7548 * signal/tst-sigset.c: New file.
7549 * signal/Makefile (tests): Add it.
7551 2003-03-31 Ulrich Drepper <drepper@redhat.com>
7553 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
7554 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
7555 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
7556 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
7557 (__SIGRTMAX): Adjust accordingly.
7558 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
7559 second compatibility symbol set.
7560 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
7562 2003-03-31 Andreas Schwab <schwab@suse.de>
7564 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
7566 (atomic_decrement_and_test): Fix test.
7568 2003-03-31 Jakub Jelinek <jakub@redhat.com>
7570 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
7571 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
7572 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
7573 * sysdeps/sparc/sparc32/atomicity.h: Removed.
7574 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
7575 * sysdeps/sparc/sparc64/atomicity.h: Removed.
7577 2003-03-30 Roland McGrath <roland@redhat.com>
7579 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
7581 * intl/po2test.sed: Anchor substitution regexps to fix last change.
7583 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
7585 * intl/po2test.sed: Unify the transformations for msgid and msgstr
7586 and remove a useless s/// command.
7588 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7590 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
7591 directive into empty .prologue region to ensure that call-chain
7592 is terminated even for the first instruction.
7594 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
7595 to terminate call-chain right from the get-go.
7597 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
7598 stop bit between compare & branch.
7600 2003-03-29 Ulrich Drepper <drepper@redhat.com>
7602 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
7603 point correctly [PR libc/4993].
7605 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
7606 netlink_open calls if netlink is known to not be available.
7608 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
7610 * configure.in: Add mips64* support.
7611 * sysdeps/mips/bits/endian.h: Make it bi-endian.
7612 * sysdeps/mips/mipsel/bits/endian.h: Removed.
7613 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
7614 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
7615 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
7616 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
7617 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
7618 * sysdeps/mips/Implies: Moved wordsize-32 to...
7619 * sysdeps/mips/mips32/Implies: New file.
7620 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
7622 (ret, PSEUDO_END): Moved past END.
7623 (PSEUDO): Moved to...
7624 * sysdeps/unix/mips/mips32/sysdep.h: New file.
7625 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
7626 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
7627 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
7628 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
7629 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
7631 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
7634 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
7636 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
7637 * inet/test-ifaddrs.c: Allow AF_PACKET.
7638 * sysdeps/unix/sysv/linux/kernel-features.h: Add
7639 __ASSUME_NETLINK_SUPPORT.
7641 2003-03-28 Ulrich Drepper <drepper@redhat.com>
7643 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
7645 2003-03-26 H.J. Lu <hjl@gnu.org>
7647 * elf/vismod.h (getvarlocal1): Return const char **.
7648 (getvarinmod1): Likewise.
7649 (getvaritcpt1): Likewise.
7650 (getvarlocal2): Likewise.
7651 (getvarinmod2): Likewise.
7652 (getvaritcpt2): Likewise.
7653 (getvaritcpt3): Likewise.
7654 * elf/vismain.c (do_test): Adjusted.
7655 * elf/vismod1.c (getvarlocal1): Return address.
7656 (getvarinmod1): Likewise.
7657 (getvaritcpt1): Likewise.
7658 * elf/vismod2.c (getvarlocal2): Likewise.
7659 (getvarinmod2): Likewise.
7660 (getvaritcpt2): Likewise.
7661 * elf/vismod3.c (getvaritcpt3): Likewise.
7663 2003-03-28 Roland McGrath <roland@redhat.com>
7665 * elf/vismain.c (do_test): Print both addresses when they don't match.
7667 * scripts/abilist.awk: If given -v filename_regexp and/or -v
7668 libname_regexp when parsing names, then produce output only
7669 for those matching the given regexps. In combine mode, save all
7670 stanzas for a final sorting by stanza header at the end.
7671 Emit a blank line between stanzas.
7673 * scripts/abilist.awk: When given -v combine=1, do parse_names and
7674 emit a single output stream with lib name in stanza header lines.
7676 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
7678 2003-03-27 Roland McGrath <roland@redhat.com>
7680 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
7681 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
7683 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7685 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7686 Return old value. Make asm output reg constraint earlyclobber.
7688 (__arch_compare_and_exchange_8_acq): ... this.
7689 (__arch_compare_and_exchange_val_16_acq):
7690 Return old value. Make asm output reg constraint earlyclobber.
7692 (__arch_compare_and_exchange_16_acq): ... this.
7693 (__arch_compare_and_exchange_val_32_acq):
7694 Return old value. Make asm output reg constraint earlyclobber.
7696 (__arch_compare_and_exchange_32_acq): ... this.
7697 (__arch_compare_and_exchange_val_64_acq):
7699 (__arch_compare_and_exchange_64_acq): ... this.
7700 (atomic_exchange_and_add): Use local variables and
7701 __arch_compare_and_exchange_val_64_acq.
7702 (atomic_add): Likewise.
7703 (atomic_add_negative, atomic_add_zero): Use local variables.
7705 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
7707 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
7709 2003-03-27 Ulrich Drepper <drepper@redhat.com>
7711 * Makefile: Remove libmd5crypt goal.
7713 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7715 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
7716 special handling of relocations against local symbols.
7718 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
7720 * sysdeps/powerpc/bits/atomic.h
7721 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
7722 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
7723 Define PPC64 specific version.
7724 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
7725 Change (mem) constraint to "b".
7726 [__powerpc64__] (__arch_atomic_exchange_and add_64):
7727 Replace addi with add. Change (value) contraint to "r".
7728 Change (mem) constraint to "b".
7729 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
7730 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
7731 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
7732 (__arch_atomic_decrement_if_positive_32): New macro.
7733 (atomic_decrement_if_positive): Use __arch* macros.
7735 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7737 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7739 2003-03-27 Roland McGrath <roland@redhat.com>
7741 * scripts/rpm2dynsym.sh: New file.
7742 * Makefile (distribute): Add it.
7744 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7746 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
7747 ar.unat before returning. Add missing .mem.offset directives
7748 to ensure file gets assembled without warnings.
7749 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7751 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7753 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
7754 Return -1 instead of 0 if clock_getres failed.
7756 2003-03-27 Roland McGrath <roland@redhat.com>
7758 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
7759 header lines and write out foo.symlist files for each foo.so.NN listed.
7761 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
7762 This symbol is exported, and we don't want to hide it.
7763 Add libc_hidden_proto instead.
7764 (_IO_file_jumps): Add libc_hidden_proto.
7765 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
7767 * libio/fileops.c (_IO_file_jumps): Likewise.
7768 * libio/stdfiles.c: Don't use INTUSE on them.
7769 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7770 * libio/iofopen.c (__fopen_internal): Likewise.
7771 * libio/freopen.c (freopen): Likewise.
7772 * libio/freopen64.c (freopen64): Likewise.
7773 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7775 * Makerules (check-abi) [$(enable-check-abi) = warn]:
7776 Ignore exit status from diff.
7777 * configure.in (enable_check_abi): Document possible value "warn".
7778 Change default to no for now.
7779 * configure: Regenerated.
7781 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
7782 macro calls and a #include <stub-tag.h> at the end.
7783 * Makerules ($(objpfx)stubs): Tweak sed commands.
7785 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
7786 caller column for *xattr syscalls, since they are in sysdeps/generic.
7788 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
7789 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
7791 2003-03-26 Roland McGrath <roland@redhat.com>
7793 * Makerules (check-abi-config): Use /thread instead of /tls when
7794 use-thread and not just use-tls is set.
7796 * Makerules (update-abi): Put quotes around $(update-abi-config).
7798 * elf/Makefile (check-abi): Depend on check-abi-ld.
7799 (update-abi): Depend on update-abi-ld.
7801 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7803 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
7804 do not check for errors (unless testing for 32bit variant).
7805 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
7807 2003-03-27 Philip Blundell <philb@gnu.org>
7809 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
7810 unconditional mov. Remove nop.
7812 * sysdeps/unix/sysv/linux/kernel-features.h
7813 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
7814 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
7815 when __ASSUME_VFORK_SYSCALL is defined.
7816 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
7817 __ASSUME_MMAP2_SYSCALL.
7818 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
7819 __ASSUME_REALTIME_SIGNALS.
7821 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7823 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
7824 only if DL_NO_COPY_RELOCS is not defined.
7825 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
7827 2003-03-26 Roland McGrath <roland@redhat.com>
7829 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
7830 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
7831 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
7832 (sysdep_routines): Add stub-syscalls.
7833 ($(objpfx)stub-syscalls.c): New target.
7834 (generated): Add stub-syscalls.c.
7836 * tls.make.c: Also define use-tls according to USE_TLS macro.
7838 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7840 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
7841 no-op padding element.
7842 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7843 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7844 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7845 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7847 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7849 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
7850 condition check for the return value of getgroups32.
7852 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7854 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
7856 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
7857 PSEUDO_END_NOERRNO): Define.
7858 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
7859 Define to PSEUDO_END.
7861 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7863 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
7865 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
7867 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
7868 * iconvdata/bug-iconv4.c: New file.
7869 * iconvdata/Makefile (tests): Add bug-iconv4.
7871 2003-03-25 H.J. Lu <hjl@gnu.org>
7873 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
7875 (_dl_lookup_versioned_symbol): Likewise.
7877 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7879 * csu/tst-atomic.c (do_test): Add some new
7880 atomic_compare_and_exchange_val_acq, atomic_add_zero,
7881 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
7882 * include/atomic.h (atomic_add_negative, atomic_add_zero):
7883 Prefix local variable so that it doesn't clash with the one
7884 in atomic_exchange_and_add.
7885 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
7887 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
7888 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
7889 value into register.
7890 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
7891 Cast newval to long.
7892 * sysdeps/x86_64/bits/atomic.h
7893 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
7895 (atomic_exchange): Cast newvalue to long if sizeof == 8.
7896 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
7897 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7898 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
7900 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
7902 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
7903 bit from backtrace addresses.
7905 2003-03-21 Andreas Schwab <schwab@suse.de>
7907 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
7910 2003-03-25 Roland McGrath <roland@redhat.com>
7912 * config.make.in (enable-check-abi): New variable from configure.
7913 * configure.in (enable_check_abi): New substituted variable,
7914 controlled by --{enable,disable}-check-abi (default yes).
7915 * configure: Regenerated.
7916 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
7917 on check-abi dependency.
7919 2003-03-26 Andreas Schwab <schwab@suse.de>
7921 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
7922 * include/atomic.h: Likewise.
7924 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
7926 2003-03-25 Roland McGrath <roland@redhat.com>
7928 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
7929 (__arch_atomic_exchange_64): New macro.
7930 (atomic_exchange): Use them.
7931 (__arch_atomic_exchange_and_add_32): New macro.
7932 (__arch_atomic_exchange_and_add_64): New macro.
7933 (atomic_exchange_and_add): Use them.
7934 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
7936 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
7938 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
7940 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
7942 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
7943 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
7944 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7945 to decide whether to add padding.
7946 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7947 to decide whether to add padding.
7948 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
7949 old_kernel_sigaction): Likewise.
7951 2003-03-25 Ulrich Drepper <drepper@redhat.com>
7953 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
7954 atomic_add_zero were supposed to do.
7955 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
7958 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
7959 This matches the new timer implementation.
7960 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
7962 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
7964 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
7965 timer info for what the kernel provides these days.
7966 (struct sigevent): Add _tid field.
7967 Define SIGEV_THREAD_ID.
7968 Remove struct __pthread_attr_s forward declaration.
7969 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
7970 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7971 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7972 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7974 * Versions.def (librt): Add GLIBC_2.3.3.
7976 * abilist/libpthread.abilist: Update for nptl.
7978 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
7980 * inet/netinet/in.h: Add IPPROTO_SCTP.
7982 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7984 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
7986 2003-03-24 Philip Blundell <philb@gnu.org>
7988 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
7989 Remove a1 from clobber list.
7991 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7993 * timezone/antarctica: Update from tzdata2003a.
7994 * timezone/asia: Likewise.
7995 * timezone/australasia: Likewise.
7996 * timezone/europe: Likewise.
7997 * timezone/iso3166.tab: Likewise.
7998 * timezone/northamerica: Likewise.
7999 * timezone/southamerica: Likewise.
8000 * timezone/zone.tab: Likewise.
8002 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
8004 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
8006 2003-03-23 Ulrich Drepper <drepper@redhat.com>
8008 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
8009 unwanted expansion by definining to ret. Patch by Ian Wienand.
8011 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
8012 the parameter description to denote no error checking. Generate
8013 appropriate pseudo asm code.
8014 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
8015 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
8016 getpgrp, and getppid with 'E'.
8017 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
8018 PSEUDO_END_NOERRNO, and ret_NOERRNO.
8019 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
8020 * sysdeps/unix/sysdep.h: Likewise.
8021 * sysdeps/unix/alpha/sysdep.h: Likewise.
8022 * sysdeps/unix/sparc/sysdep.h: Likewise.
8023 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
8024 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
8025 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
8026 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8027 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
8028 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
8029 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8030 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8031 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
8032 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8033 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8035 2003-03-23 Roland McGrath <roland@redhat.com>
8037 * Makeconfig (+includes): Don't use $(last-includes).
8039 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
8041 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
8042 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8044 2003-03-23 Jakub Jelinek <jakub@redhat.com>
8046 * sysdeps/alpha/fpu/libm-test-ulps: Update.
8047 * sysdeps/arm/libm-test-ulps: Update.
8048 * sysdeps/hppa/fpu/libm-test-ulps: Update.
8049 * sysdeps/ia64/fpu/libm-test-ulps: Update.
8050 * sysdeps/mips/fpu/libm-test-ulps: Update.
8051 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8052 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8053 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
8054 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
8055 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
8056 * sysdeps/s390/fpu/libm-test-ulps: Update.
8057 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8059 2003-03-22 Roland McGrath <roland@redhat.com>
8061 * include/atomic.h: Put parens around all macro arguments.
8062 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
8063 (atomic_compare_and_exchange_val_acq): Use it.
8064 (atomic_compare_and_exchange_bool_acq): Likewise.
8065 (atomic_increment_and_test): Invert sense of test.
8066 (atomic_decrement_and_test): Likewise.
8067 * csu/tst-atomic.c: Update those tests to match.
8069 2003-03-22 Jakub Jelinek <jakub@redhat.com>
8071 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
8072 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
8073 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
8074 __oldval variable in the macro, since it might be macro argument.
8075 (atomic_decrement_if_positive): Initialize __memp, remove setting
8076 of non-existent variable.
8077 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
8078 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
8079 using atomic_compare_and_exchange_val_acq.
8080 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
8081 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
8083 (__arch_compare_and_exchange_bool_8_acq): ... this.
8084 (__arch_compare_and_exchange_val_16_acq): Renamed from...
8085 (__arch_compare_and_exchange_bool_16_acq): ... this.
8086 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
8088 (__arch_compare_and_exchange_bool_32_acq): ... this.
8089 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
8091 (__arch_compare_and_exchange_bool_64_acq): ... this.
8092 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
8093 variables types instead of assuming int.
8094 Change prefix of local variables to __arch.
8095 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
8097 (atomic_compare_and_exchange_val_acq,
8098 atomic_compare_and_exchange_bool_acq): Define.
8100 * csu/tst-atomic.c: New test.
8101 * csu/tst-atomic-long.c: New test.
8102 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
8104 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
8106 * sysdeps/s390/Versions: Add trailing newline.
8108 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
8109 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
8111 2003-03-22 Andreas Schwab <schwab@suse.de>
8113 * sysdeps/m68k/fpu/libm-test-ulps: Update.
8115 * sysdeps/m68k/m68020/bits/atomic.h: New file.
8116 * sysdeps/m68k/m68020/atomicity.h: Removed.
8118 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
8120 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
8121 data structures and macros. Protect from multiple inclusion.
8123 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
8126 2003-03-21 Andreas Jaeger <aj@suse.de>
8128 * sysdeps/i386/fpu/libm-test-ulps: Update.
8130 * math/libm-test.inc (tgamma_test): Recompute some constants with
8131 36 digits precision.
8132 (lgamma_test): Likewise.
8133 (ccos_test): Likewise.
8134 (ccosh_test): Likewise.
8135 (clog10_test): Likewise.
8136 (csin_test): Likewise.
8137 (csinh_test): Likewise.
8138 (ctan_test): Likewise.
8139 (ctanh_test): Likewise.
8141 2003-03-19 Jakub Jelinek <jakub@redhat.com>
8143 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
8145 2003-03-21 Roland McGrath <roland@redhat.com>
8147 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
8148 constraint to permit non-constant BIT argument.
8149 (atomic_bit_test_set): Likewise.
8150 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
8151 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
8152 For quadword case, use "i" constraint if __builtin_constant_p and < 32
8153 or "r" constraint otherwise.
8155 * configure.in: Move AC_PROG_CC and other program-finding before all
8157 * configure: Regenerated.
8159 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
8161 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
8162 unaligned copying of 8-15 bytes. From Chris Demetriou
8163 <cgd@broadcom.com>. Fix label names.
8164 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
8165 change as to memcpy.S.
8166 * sysdeps/mips/memcpy.S: Formatting changes.
8167 * sysdeps/mips/memset.S: Likewise.
8169 2003-03-21 Roland McGrath <roland@redhat.com>
8171 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
8173 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
8175 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
8176 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
8178 2003-03-21 Roland McGrath <roland@redhat.com>
8180 * sysdeps/i386/i486/bits/atomic.h
8181 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
8182 version of the macro to avoid compile-time warnings.
8183 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
8184 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
8185 (atomic_increment, atomic_decrement): Likewise.
8187 2003-03-21 Ulrich Drepper <drepper@redhat.com>
8189 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
8190 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8192 2003-03-21 Roland McGrath <roland@redhat.com>
8194 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
8196 2003-03-20 Ulrich Drepper <drepper@redhat.com>
8198 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
8199 atomic_compare_and_exchange_val_rel,
8200 atomic_compare_and_exchange_bool_acq, and
8201 atomic_compare_and_exchange_bool_rel instead of
8202 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
8203 * sysdeps/i386/i486/bits/atomic.h: Define
8204 __arch_compare_and_exchange_val_*_acq instead of
8205 __arch_compare_and_exchange_*_acq.
8206 * sysdeps/x86_64/bits/atomic.h: Likewise.
8207 * sysdeps/ia64/bits/atomic.h: Define
8208 __arch_compare_and_exchange_bool_*_acq instead of
8209 __arch_compare_and_exchange_*_acq.
8210 * sysdeps/powerpc/bits/atomic.h: Likewise.
8211 * sysdeps/s390/bits/atomic.h: Likewise.
8212 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
8213 * malloc/set-freeres.c: Likewise.
8214 * nscd/cache.c: Likewise.
8215 * stdlib/cxa_finalize.c: Likewise.
8216 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
8218 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
8220 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
8221 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
8222 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8224 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
8225 into high and low halves on n64.
8226 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8227 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
8228 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8230 2003-03-20 Ulrich Drepper <drepper@redhat.com>
8232 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
8233 correct atomic_compare_and_exchange_acq semantics.
8235 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
8237 * sysdeps/mips/ieee754.h: Remove excess #endif.
8239 2003-03-20 Roland McGrath <roland@redhat.com>
8241 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
8242 variable. Remove superfluous memory clobber.
8244 * include/atomic.h: Syntax braino fix.
8246 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
8247 in decimal. Don't bail if niced at start. Just check that nice call
8248 bumps the total at all.
8250 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
8252 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
8253 including pc, gp, sp and fp, as long long.
8254 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
8255 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
8256 Add gp argument, and set gp in the jmpbuf to it.
8257 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
8259 2003-03-20 Ulrich Drepper <drepper@redhat.com>
8261 * include/atomic.h: Define atomic_exchange and
8262 atomic_decrement_if_positive if not already defined. Add some
8264 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
8265 * sysdeps/x86_64/bits/atomic.h: Likewise.
8266 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
8267 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
8268 atomic_exchange, atomic_exchange_and_add, and
8269 atomic_decrement_if_positive
8271 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
8273 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
8274 with a single instruction.
8276 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
8278 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
8280 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
8281 Word before comparing with gotsym. Take reloc_addr argument as
8282 void*. Remove the code added for the compiler to drop any
8283 alignment assumptions.
8285 2003-03-19 Ulrich Drepper <drepper@redhat.com>
8287 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
8288 * include/atomic.h: New file.
8289 * sysdeps/i386/i486/bits/atomic.h: New file.
8290 * sysdeps/x86_64/bits/atomic.h: New file.
8291 * sysdeps/s390/bits/atomic.h: New file.
8292 * sysdeps/sh/bits/atomic.h: New file.
8293 * sysdeps/ia64/bits/atomic.h: New file.
8294 * sysdeps/powerpc/bits/atomic.h: New file.
8295 * sysdeps/generic/bits/atomic.h: New file.
8296 * sysdeps/i386/i486/atomicity.h: Removed.
8297 * sysdeps/x86_64/atomicity.h: Removed.
8298 * sysdeps/s390/s390-32/atomicity.h: Removed.
8299 * sysdeps/s390/s390-64/atomicity.h: Removed.
8300 * sysdeps/ia64/atomicity.h: Removed.
8301 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
8302 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
8303 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
8304 use of macros from atomicity.h to new names and semantics.
8305 * gmon_mcount.c: Likewise.
8306 * malloc/set-freeres.c: Likewise.
8307 * nscd/cache.c: Likewise.
8308 * stdlib/cxa_finalize.c: Likewise.
8309 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
8311 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
8313 * sysdeps/mips/ieee754.h: New file, suitable to replace both
8314 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
8315 mips-specific for now.
8317 2003-03-19 Ulrich Drepper <drepper@redhat.com>
8319 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
8320 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
8321 * stdlib/tst-strtod.c: Add test for the bug.
8323 * posix/tst-nice.c (do_test): Remove invalid of return value.
8324 Don't run test if initial level != 0.
8326 2003-03-19 Amos Waterland <apw@us.ibm.com>
8328 * posix/tst-nice.c: New file.
8329 * posix/Makefile (tests): Add tst-nice.
8331 2003-03-18 Roland McGrath <roland@redhat.com>
8333 * abilist: New directory of libfoo.abilist files maintained using
8334 scripts/merge-abilist.awk and "make update-abi" rules.
8335 * Makefile (distribute): Add abilist/*.abilist.
8336 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
8337 Depend on check-abi.
8339 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
8340 * configure: Regenerated.
8342 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
8344 2003-03-18 Ulrich Drepper <drepper@redhat.com>
8346 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
8349 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
8351 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
8353 2003-03-18 Ulrich Drepper <drepper@redhat.com>
8355 * Versions.def: Add GLIBC_2.3.3 for libpthread.
8357 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8359 * sysdeps/generic/libc-start.c [!SHARED &&
8360 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
8362 2003-03-17 Roland McGrath <roland@redhat.com>
8364 * include/ctype.h: Revert last change.
8366 2003-03-17 Ulrich Drepper <drepper@redhat.com>
8368 * argp/tst-argp1.c: Use test-skeleton.c.
8369 * locale/tst-C-locale.c: Likewise.
8371 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
8373 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
8374 * sysdeps/mips/mips64/n64/Implies: New file.
8375 * sysdeps/mips/mips64/n64/Makefile: New file.
8376 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
8377 * sysdeps/mips/mips64/n32/Implies: New file.
8378 * sysdeps/mips/mips64/n32/Makefile: New file.
8379 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
8380 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
8381 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
8382 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
8383 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
8384 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
8385 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
8386 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
8387 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
8388 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
8389 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
8390 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
8391 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
8392 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
8394 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
8395 lib64 for mips64/n64 and lib32 for mips64/n32.
8396 (ldd_rewrite_script): Needed for all mips64 configurations.
8397 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8398 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
8399 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
8401 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
8404 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
8405 asm/unistd.h into asm-unistd.h.
8406 * sysdeps/unix/sysv/linux/mips/configure: Generated.
8407 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
8409 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
8410 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
8413 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
8414 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
8415 long type for registers on n32.
8417 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
8419 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
8420 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
8421 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
8422 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
8423 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
8424 * sysdeps/unix/mips/brk.S: Likewise.
8425 * sysdeps/unix/mips/sysdep.S: Likewise.
8426 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8427 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
8428 * sysdeps/mips/sys/ucontext.h: Likewise.
8429 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
8430 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
8431 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
8432 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8433 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
8434 * sysdeps/mips/mips64/setjmp.S: Likewise.
8435 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
8436 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
8439 2003-03-16 Ulrich Drepper <drepper@redhat.com>
8441 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
8442 not at function level.
8443 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
8445 2003-03-15 Roland McGrath <roland@redhat.com>
8447 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
8448 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
8449 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
8450 * nis/nis_table.c (__create_ib_request): Likewise.
8452 * posix/fnmatch_loop.c: Add casts for signedness.
8453 * nss/nss_files/files-hosts.c: Likewise.
8454 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8455 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
8456 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
8458 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
8459 get errors into the log file.
8460 (libc_cv_broken_visibility_attribute): Likewise.
8461 (libc_cv_broken_alias_attribute): Likewise.
8462 (libc_cv_asm_weak_directive): Likewise.
8463 (libc_cv_need_minus_P): Likewise.
8464 (libc_cv_dot_text): Likewise.
8465 (libc_cv_asm_global_directive): Likewise.
8466 (libc_cv_asm_type_prefix): Likewise.
8467 * configure: Regenerated.
8469 * nscd/cache.c (cache_search): Give first arg type `request_type'.
8470 * nscd/nscd.h: Update decl.
8472 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
8473 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8474 * elf/dl-close.c (_dl_close): Likewise.
8475 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
8476 * io/fts.c (fts_build): Likewise.
8477 * elf/cache.c (add_to_cache): Likewise.
8478 * locale/programs/locarchive.c (show_archive_content): Likewise.
8480 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
8482 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
8484 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
8486 2003-03-15 Ulrich Drepper <drepper@redhat.com>
8488 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
8489 code for most parts.
8491 2003-03-15 Roland McGrath <roland@redhat.com>
8493 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
8494 * sysdeps/unix/sysv/linux/system.c: ... here.
8495 (FORK): Don't #define if already #define'd.
8496 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
8497 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
8498 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
8500 * dlfcn/tst-dlinfo.c: New file.
8501 * dlfcn/Makefile (tests): Add tst-dlinfo.
8502 ($(objpfx)tst-dlinfo): New target.
8504 * dlfcn/dlinfo.c: New file.
8505 * dlfcn/Makefile (libdl-routines): Add it.
8506 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
8507 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
8508 [__USE_GNU] (RTLD_DI_*): New enum constants.
8509 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
8510 * elf/dl-load.c (cache_rpath): New inline function.
8511 (_dl_map_object): Use it.
8512 (_dl_rtld_di_serinfo): New function.
8513 * sysdeps/generic/ldsodefs.h: Declare it.
8514 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8516 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
8517 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
8518 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
8519 (__libc_start_main): Just call the generic one for most of the work.
8521 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
8522 static function by that name instead of BP_SYM (__libc_start_main).
8523 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
8524 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
8525 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
8527 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
8528 Use this macro for extra AT_* cases.
8529 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
8530 New macro, guts from ...
8531 (__aux_init_cache): ... here, function removed.
8532 (DL_PLATFORM_INIT): Don't define this.
8534 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
8535 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
8537 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
8539 2003-03-14 Roland McGrath <roland@redhat.com>
8541 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
8543 2003-03-14 Jakub Jelinek <jakub@redhat.com>
8545 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
8547 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8548 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
8550 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8552 * sysdeps/mips/fpu/bits/mathdef.h: New.
8553 (__NO_LONG_DOUBLE_MATH): Define for o32.
8555 * sysdeps/mips/sys/asm.h: Formatting changes.
8556 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
8557 (CPADD): Define for all of them.
8558 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
8559 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
8560 NARGSAVE): Define per ABI spec.
8561 (END): Don't redefine.
8562 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
8563 LONG_SRAV): Remove duplicate definitions.
8564 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
8565 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
8566 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
8567 (PTR_LA): Define for all 3 ABIs.
8569 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
8570 (elf_machine_matches_host): Prevent linking of o32 and n32
8572 (elf_machine_dynamic): Document assumption on $gp.
8573 (STRINGXP, STRINGXV, STRINGV_): New macros.
8574 (elf_machine_load_address): Use them to stringize PTR_LA and
8576 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
8577 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
8578 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
8579 (__dl_runtime_resolve): Cast the symtab initializer to the
8581 (RTLD_START): Use it. Adjust it for all 3 ABIs.
8582 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
8583 Handle 64-bit R_MIPS_REL composite relocation and accept
8584 R_MIPS_64 relocations to shift addend size to 64 bits.
8585 Document assumption regarding local GOT entries. Document
8586 backward-compatibility departing from the ABI behavior in
8587 applying relocations that reference section symbols, no longer
8588 used. Support relocations to mis-aligned offsets.
8589 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
8591 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
8593 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
8594 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
8595 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
8596 restore_rt functions. Use them.
8598 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
8599 .set mips2 on new abis.
8601 2003-03-13 Ulrich Drepper <drepper@redhat.com>
8603 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
8604 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
8605 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
8606 * sysdeps/posix/pathconf.c: Likewise.
8607 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8608 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
8609 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
8611 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
8614 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8616 * include/gmp.h: Include/gmp-mparam.h.
8617 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
8620 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
8621 ELF_MACHINE_NO_RELA is set.
8622 * elf/rtld.c (dl_main): No prelink support for REL-only.
8624 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
8625 FLAG_MIPS64_LIBN64): Define.
8626 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
8628 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
8629 * sysdeps/mips/memset.S: Likewise.
8630 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
8631 depending on the ABI.
8633 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
8634 Don't .set mips2 on new abi.
8635 (compare_and_swap): Likewise. Support 64-bit longs on n64.
8637 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
8639 2003-03-13 Roland McGrath <roland@redhat.com>
8641 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
8642 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
8644 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
8646 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
8648 * stdlib/fpioconst.c: Likewise.
8649 * stdlib/strtod.c: Likewise.
8651 * sysdeps/mips/add_n.S: Use L macro for local labels.
8652 * sysdeps/mips/addmul_1.S: Likewise.
8653 * sysdeps/mips/lshift.S: Likewise.
8654 * sysdeps/mips/memcpy.S: Likewise.
8655 * sysdeps/mips/memset.S: Likewise.
8656 * sysdeps/mips/mul_1.S: Likewise.
8657 * sysdeps/mips/rshift.S: Likewise.
8658 * sysdeps/mips/sub_n.S: Likewise.
8659 * sysdeps/mips/submul_1.S: Likewise.
8660 * sysdeps/mips/mips64/add_n.S: Likewise.
8661 * sysdeps/mips/mips64/addmul_1.S: Likewise.
8662 * sysdeps/mips/mips64/lshift.S: Likewise.
8663 * sysdeps/mips/mips64/mul_1.S: Likewise.
8664 * sysdeps/mips/mips64/rshift.S: Likewise.
8665 * sysdeps/mips/mips64/sub_n.S: Likewise.
8666 * sysdeps/mips/mips64/submul_1.S: Likewise.
8667 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
8668 conventions. Define END as in sys/asm.h.
8669 * sysdeps/unix/mips/sysdep.S: Likewise.
8670 * sysdeps/unix/mips/wait.S: Likewise.
8671 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8673 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
8674 Cast shifted values that may be too narrow to mp_limb_t.
8675 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
8677 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
8679 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
8680 (__mpn_extract_long_double): Likewise.
8681 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
8682 (__mpn_construct_long_double): Likewise.
8683 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
8684 (__mpn_extract_long_double): Likewise.
8685 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
8686 (__mpn_construct_long_double): Likewise.
8688 2003-03-13 Roland McGrath <roland@redhat.com>
8690 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
8691 entries in the map file match too.
8693 2003-03-13 Guido Guenther <agx@sigxcpu.org>
8695 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
8696 label .Lthread_start since current binutils don't allow branches
8697 to globally visible symbols.
8699 2003-03-13 Jakub Jelinek <jakub@redhat.com>
8701 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
8702 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
8703 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
8704 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
8705 clobbered by the syscall.
8706 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
8707 ASM_ARGS_6): Change constraints from r to index of corresponding
8709 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
8710 ptid and ctid to match kernel.
8711 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
8713 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
8715 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
8716 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
8717 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
8719 2003-03-11 Roland McGrath <roland@redhat.com>
8721 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8722 Check SYM_MAP rather than SYM as definedness check.
8723 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
8724 Don't handle R_PPC64_REL24 reloc.
8725 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8727 * sysdeps/powerpc/powerpc64/dl-machine.h
8728 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
8729 block, so we cover all the TPREL16* flavors without 6 ||s.
8730 [USE_TLS] (elf_machine_tprel): New function.
8731 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
8732 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
8733 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8735 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
8737 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
8738 instead of jalr to invoke subroutine so restoring the $gp register
8741 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
8743 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
8744 to __NR_pread if not defined.
8745 (__NR_pwrite64): Define to __NR_pwrite if not defined.
8747 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8749 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
8750 * sysdeps/unix/sysv/linux/kernel-features.h
8751 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
8754 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8756 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
8757 allocate space even for the trailing '/'.
8758 Reported by John Reiser <jreiser@BitWagon.com>.
8760 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
8761 ASM_CLOBBERS_6): Define.
8762 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
8763 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
8764 to match IA-32 order.
8765 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
8767 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
8769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
8770 Copy extra params for NPTL to registers used in clone syscall.
8772 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8774 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
8775 call names for pread and pwrite.
8777 2003-03-10 Roland McGrath <roland@redhat.com>
8779 * dlfcn/Makefile (libdl-routines): Add dladdr1.
8780 * dlfcn/dladdr1.c: New file.
8781 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
8782 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
8783 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
8784 a const ElfNN_Sym ** to fill in.
8785 * include/dlfcn.h: Update decl. Include <link.h>.
8786 * dlfcn/dladdr.c (dladdr): Update caller.
8787 * malloc/mtrace.c (tr_where): Likewise.
8788 * sysdeps/generic/elf/backtracesyms.c: Likewise.
8789 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8790 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
8791 * Versions.def (libdl): Define GLIBC_2.3.3 set.
8793 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
8795 * sysdeps/unix/Makefile (compile-syscall): New variable.
8796 Pass -g0 to compiler for assembling syscall stubs from stdin.
8798 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
8799 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
8800 Define these to do nothing.
8802 * configure.in: New check for -g on .S files.
8803 * configure: Regenerated.
8804 * config.make.in (have-cpp-asm-debuginfo): New variable.
8805 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
8806 * Makeconfig (ASFLAGS): New variable, if undefined and
8807 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
8808 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
8810 2003-03-09 Roland McGrath <roland@redhat.com>
8812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
8813 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
8815 2003-03-09 Ulrich Drepper <drepper@redhat.com>
8817 * po/fi.po: Update from translation team.
8818 * po/ca.po: Likewise.
8819 * po/da.po: Likewise.
8821 2003-03-08 Ulrich Drepper <drepper@redhat.com>
8823 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
8825 2003-03-07 Ulrich Drepper <drepper@redhat.com>
8827 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
8829 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
8831 2003-03-07 Roland McGrath <roland@redhat.com>
8833 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
8834 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
8836 2003-03-04 Guido Guenther <agx@sigxcpu.org>
8838 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
8839 stubs, we have INLINE_SYSCALL.
8840 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
8843 2003-03-06 Roland McGrath <roland@redhat.com>
8845 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
8846 permanent extent and add a comment about testing its implicit teardown.
8848 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
8850 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
8852 2003-03-05 Ulrich Drepper <drepper@redhat.com>
8854 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
8855 reversed __builtin_expect expectation.
8857 2003-03-05 Roland McGrath <roland@redhat.com>
8859 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
8860 * libio/swscanf.c: Likewise.
8861 * libio/swprintf.c: Likewise.
8863 2003-03-04 Roland McGrath <roland@redhat.com>
8865 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
8866 (elf_machine_rela): Always use RESOLVE_MAP, needed for
8867 R_PPC64_JMP_SLOT as well as TLS cases.
8868 (BIT_INSERT): Move parenthesis where it ought to have been.
8869 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8871 * posix/confstr.c (confstr): Correct STRING_LEN values for
8872 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
8873 break. Reported by Alexandre Julliard <julliard@winehq.com>.
8875 2003-03-04 Jakub Jelinek <jakub@redhat.com>
8877 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
8879 2003-03-04 Ulrich Drepper <drepper@redhat.com>
8881 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
8884 * po/sv.po: Update from translation team.
8886 2003-03-04 Andreas Jaeger <aj@suse.de>
8887 Ulrich Drepper <drepper@redhat.com>
8889 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
8891 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8893 * sysdeps/generic/dl-sysdep.h: Add double include protection.
8895 * po/tr.po: Update from translation team.
8897 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
8898 are holes between the segments. Only call mprotect to set
8899 proection to PROT_NONE if there are some.
8901 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
8904 * include/sched.h (__clone2): Use ... instead of adding all the
8907 2003-03-03 Roland McGrath <roland@redhat.com>
8909 * elf/dl-load.c (struct filebuf): Fix typo in last change.
8911 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
8912 PI_STATIC_AND_HIDDEN.
8914 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
8916 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
8918 * include/sched.h: Update clone2 prototype.
8920 2003-03-03 Andreas Jaeger <aj@suse.de>
8922 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
8923 (llrint): Use it to correct return type.
8926 (llround): Likewise.
8928 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8930 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
8933 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
8934 if ccs parameter isn't valid. Reported by Andreas Schwab.
8936 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8938 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
8939 for system call numbers > 255.
8940 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
8941 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8942 INTERNAL_SYSCALL): Likewise.
8943 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
8944 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
8945 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8946 INTERNAL_SYSCALL): Likewise.
8948 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8950 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
8951 array if it is the initial dtv.
8953 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8955 * po/es.po: Update from translation team.
8956 * po/fr.po: Likewise.
8957 * po/gl.po: Likewise.
8958 * po/sk.po: Likewise.
8959 * po/sv.po: Likewise.
8961 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
8962 * misc/sys/mman.h: Add prototype for remap_file_pages.
8963 * sysdeps/generic/remap_file_pages.c: New file.
8964 * misc/Makefile (routines): Add remap_file_pages.
8965 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
8967 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
8969 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8970 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
8971 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8972 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8973 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
8974 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
8975 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8976 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8978 2003-03-03 Roland McGrath <roland@redhat.com>
8980 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
8981 * sysdeps/ia64/dl-machine.h: Likewise.
8982 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
8984 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
8986 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
8987 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
8988 * locale/Versions (libc: GLIBC_2.3): Move those to ...
8989 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
8990 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
8991 * Versions.def (libc): Add GLIBC_2.3.3 set.
8993 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
8994 * sysdeps/ia64/dl-machine.h: Update decl.
8996 2003-03-03 Andreas Jaeger <aj@suse.de>
8998 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
9000 2003-03-02 Roland McGrath <roland@redhat.com>
9002 * scripts/abilist.awk: Reject data items with apparent 0 size.
9004 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
9005 after foo.* as if it were a duplicate.
9007 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
9009 2003-03-02 Ulrich Drepper <drepper@redhat.com>
9011 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
9013 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
9014 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
9015 if not already defined. Use SYSDEP_GETRES to allow other files to
9016 provide alternative implementations.
9017 * sysdeps/unix/sysv/linux/clock_getres.c: New file
9018 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
9019 if not already defined. Use SYSDEP_GETTIME to allow other files to
9020 provide alternative implementations.
9021 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
9022 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
9023 if not already defined. Use SYSDEP_GETTIME to allow other files to
9024 provide alternative implementations.
9025 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
9026 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
9027 other files to provide alternative implementations. Rearrange
9028 tests for invalid parameters.
9029 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
9030 * sysdeps/unix/sysv/linux/sysconf.c: New file.
9031 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9032 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
9033 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
9034 _POSIX_MONOTONIC_CLOCK.
9036 2003-03-02 Roland McGrath <roland@redhat.com>
9038 * scripts/merge-abilist.awk: More checks for bogus input.
9039 Uniquify duplicate config names.
9041 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
9043 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
9044 from dl_reloc_overflow, make global.
9045 (__process_machine_rela): Update callers.
9046 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
9047 Add attribute_hidden to __process_machine_rela decl.
9048 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
9050 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
9053 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
9054 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
9055 (elf_machine_rela): Clean up.
9057 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
9059 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
9060 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
9061 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
9062 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
9063 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
9064 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
9067 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
9068 macros out of [SHARED].
9069 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
9071 * elf/elf.h: Define R_PPC_* relocs for TLS support.
9072 Clean up R_PPC64_* macro definition comments.
9074 * configure.in: In "running configure fragment for" message,
9075 omit $srcdir from the name if we prepended it.
9076 * configure: Regenerated.
9078 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
9079 From Jakub Jelinek <jakub@redhat.com>.
9081 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
9082 which duplicated the O_DIRECT defn.
9084 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
9086 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
9089 2003-03-01 Andreas Schwab <schwab@suse.de>
9091 * resolv/Makefile (tests): Don't depend on
9092 $(objpfx)mtrace-tst-leaks when cross compiling.
9094 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
9095 __libc_stack_end through GOT since it is a global symbol.
9097 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
9099 * argp/argp.h: Fix a typo.
9100 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
9102 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
9104 2003-02-27 Pat Rankin <rankin@pactechdata.com>
9106 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
9108 (get_subexp): Likewise.
9110 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
9112 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
9114 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
9116 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
9118 2003-02-27 Roland McGrath <roland@redhat.com>
9120 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
9121 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
9122 repeat it and avoids the test for the common case.
9123 Clean up and fix calculations for TLS relocs.
9125 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
9126 * sysdeps/powerpc/dl-tls.h: ... here.
9127 (TLS_TP_OFFSET): New macro.
9129 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
9131 2003-02-27 Ulrich Drepper <drepper@redhat.com>
9133 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
9134 code generation changes in recent gcc.
9136 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
9138 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
9139 Rename argument to avoid symbol conflict.
9141 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
9142 [__USE_GNU] (O_DIRECT): New macro.
9144 2003-02-24 David Mosberger <davidm@hpl.hp.com>
9146 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
9149 2003-02-27 Ulrich Drepper <drepper@redhat.com>
9151 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
9152 initializer anymore now that res_thread_freeres is more careful.
9154 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
9155 except the PKTINFO. Reset interface in PKTINFO.
9156 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
9158 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
9160 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
9161 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
9163 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
9164 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
9165 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
9166 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
9168 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
9169 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
9171 2003-02-25 Andreas Jaeger <aj@suse.de>
9173 * manual/memory.texi (Malloc Tunable Parameters): Clarify
9174 behaviour of M_MMAP_THRESHOLD.
9176 2003-02-25 Roland McGrath <roland@redhat.com>
9178 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
9179 zero, inidicating _res was not initialized yet.
9181 2003-02-24 Ulrich Drepper <drepper@redhat.com>
9183 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
9186 2003-02-24 Roland McGrath <roland@redhat.com>
9188 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
9190 2003-02-23 Roland McGrath <roland@redhat.com>
9192 * sysdeps/posix/pause.c: New file.
9193 * sysdeps/unix/common/pause.c: File removed.
9195 2003-02-23 Ulrich Drepper <drepper@redhat.com>
9197 * sysdeps/generic/bits/confname.h: Remove #ifs.
9199 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
9200 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
9202 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
9205 2003-02-22 Ulrich Drepper <drepper@redhat.com>
9207 * sysdeps/generic/dl-sysdep.c: Avoid warning.
9209 2003-02-22 Roland McGrath <roland@redhat.com>
9211 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
9212 * resolv/Makefile (tests): Add tst-leaks.
9213 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
9214 (tst-leaks-ENV): New variable.
9215 ($(objpfx)mtrace-tst-leaks): New target.
9216 (tests): Depend on it.
9218 * include/libc-internal.h: Declare __libc_thread_freeres.
9220 * Makerules: Fix last change to use $($(subdir)-version) when set.
9222 * Makerules (install-lib-nosubdir): Depend on installed
9223 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
9224 regardless of the libfoo.so target's dependencies.
9226 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
9227 Use that in $(MAKE) calls.
9229 2003-02-22 Ulrich Drepper <drepper@redhat.com>
9231 * catgets/gencat.c (read_input_file): Collision between
9232 auto-assigned numbers and user-defined nubmers is not fatal.
9234 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
9235 * catgets/Makefile: Add rules to run test2.msg test.
9236 * catgets/test2.msg: New file.
9238 * catgets/gencat.c (main): Return 1 if messages have been printed.
9240 * iconv/iconv_prog.c (main): Unify messages.
9242 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
9243 when shifting retval.
9244 * stdlib/tst-strtod.c (main): Add strtold test case.
9245 Reported by Fred J. Tydeman <tydeman@tybor.com>.
9247 2003-02-21 Roland McGrath <roland@redhat.com>
9249 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
9250 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
9251 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
9253 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
9254 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
9255 (res_thread_freeres): New function, on __libc_thread_subfreeres and
9258 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
9259 * malloc/thread-freeres.c: New file.
9260 * malloc/Makefile (aux): Add it.
9261 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
9262 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
9263 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
9265 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
9266 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
9268 2003-02-21 Roland McGrath <roland@frob.com>
9270 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
9272 * iconvdata/Makefile (tests): Add bug-iconv3 only if
9273 [$(have-thread-library) = yes].
9275 2003-02-21 Ulrich Drepper <drepper@redhat.com>
9277 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
9279 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
9280 not chechk for errors (unless testing for 32bit variant).
9281 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
9282 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
9283 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
9285 2003-02-21 Jakub Jelinek <jakub@redhat.com>
9287 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
9288 Check for signed overflow, not unsigned.
9290 * sysdeps/sparc/sparc64/elf/configure.in: New file.
9291 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
9292 Use -fcall-used-g6, not -fcall-used-g7.
9294 2003-02-21 Andreas Jaeger <aj@suse.de>
9296 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
9299 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
9300 clear whole mxcsr but only exceptions.
9302 2003-02-21 Roland McGrath <roland@redhat.com>
9304 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
9305 for libfoo.so that need $(make-link) rules.
9307 2003-02-21 Roland McGrath <roland@frob.com>
9309 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
9310 to match existing struct stat layout in mig protocols.
9312 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9314 * version.h (VERSION): Bump to 2.3.2.
9316 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
9317 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
9319 * sysdeps/generic/Dist: Add sysdep-cancel.h.
9320 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
9321 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
9322 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
9323 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
9324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
9326 * Makefile (distribute): Add include/stubs-prologue.h,
9327 include/gnu/stubs.h, scripts/merge-abilist.awk, and
9328 scripts/extract-abilist.awk.
9330 2003-02-20 Roland McGrath <roland@redhat.com>
9332 * math/Makefile (distribute): Don't add generated files.
9334 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9336 * math/Makefile: Rearrange variable definitions slightly to get
9337 definition in the right order.
9339 2003-02-20 Roland McGrath <roland@redhat.com>
9341 * Makerules: Clean up conditional around include of tls.make.
9342 * Make-dist: Export generating=t to prevent using that.
9343 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
9345 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9347 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
9348 around in search if port IPPORT_RESERVED/2 has been test.
9350 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
9352 * posix/regcomp.c: Remove inclusions.
9353 * posix/regexec.c: Likewise.
9354 * posix/regex_internal.c: Likewise.
9355 * posix/regex_internal.h: Add inclusions here.
9356 * posix/regex.c: Only include sys/types.h before regex.h. Include
9357 regex_internal.h here. Include regex_internal.c before regcomp.c
9358 and regexec.c (might expose more opportunities to the C compiler).
9360 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
9362 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
9363 [!_LIBC] (__wcrtomb): New definition.
9364 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
9365 HAVE_LOCALE_H as well.
9367 2003-02-20 Ulrich Drepper <drepper@redhat.com>
9369 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
9370 patch to check for system call errors.
9372 2002-07-24 Philip Blundell <philb@gnu.org>
9374 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
9377 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9379 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
9380 * sysdeps/unix/sysv/linux/kernel-features.h
9381 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
9382 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
9384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
9385 interprocedure branches.
9386 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
9387 * sysdeps/powerpc/nofpu/Dist: ...here.
9388 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
9389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
9390 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
9391 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
9392 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
9394 2003-02-18 Alan Modra <amodra@bigpond.net.au>
9396 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
9398 2003-02-20 Philip Blundell <philb@gnu.org>
9400 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
9401 missing arguments to INTERNAL_SYSCALL_ERROR_P and
9402 INTERNAL_SYSCALL_ERRNO.
9404 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9406 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
9407 for __ASSUME_32BITUIDS.
9409 2003-02-20 Andreas Schwab <schwab@suse.de>
9411 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
9412 POSIX_MADV_* constants.
9414 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9416 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
9417 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
9418 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
9419 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
9421 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
9423 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
9425 2003-02-16 Roland McGrath <roland@redhat.com>
9427 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
9429 2003-02-19 Ulrich Drepper <drepper@redhat.com>
9431 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
9432 decimal input digits.
9433 * stdlib/tst-strtod.c (main): Add test for strtof bug.
9435 2003-02-18 Ulrich Drepper <drepper@redhat.com>
9437 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
9438 invalid file descriptors and missing access permissions.
9440 2003-02-17 Ulrich Drepper <drepper@redhat.com>
9442 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
9445 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
9446 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
9447 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
9450 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
9451 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9453 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
9454 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
9455 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
9456 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
9457 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
9459 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9461 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
9462 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
9463 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
9464 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
9465 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
9466 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
9468 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
9469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
9470 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
9471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
9473 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
9474 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
9475 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
9476 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
9478 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
9480 * nss/getent.c (print_hosts): Print all IP addresses of one host.
9482 2003-02-15 Roland McGrath <roland@frob.com>
9484 * sysdeps/mach/hurd/tls.h: New file.
9485 * sysdeps/mach/hurd/i386/tls.h: New file.
9487 * mach/errsystems.awk: Include <errno.h> in generated output.
9489 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
9490 use target mach-before-compile instead of generated.
9491 (mach-before-compile): New target.
9492 * Makerules: Disable use of tls.make if $(generating) is set.
9493 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
9494 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
9495 mach-shortcuts.h so mach/ generation happens before hurd/.
9497 2003-02-14 Ulrich Drepper <drepper@redhat.com>
9499 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
9500 of demorm correctly if low word is zero.
9501 Reported by Fred J. Tydeman <tydeman@tybor.com>.
9502 * math/libm-test.inc (nextafter_test): New test, but disabled due
9505 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
9506 counter and only call __exit_thread if this is not the last thread.
9508 2003-02-13 Jakub Jelinek <jakub@redhat.com>
9510 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
9511 subtracting map->l_tls_offset.
9513 2003-02-12 Ulrich Drepper <drepper@redhat.com>
9515 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
9516 _CS_GNU_LIBPTHREAD_VERSION.
9517 * posix/conststr.c: Handle these new values.
9518 * posix/getconf.c: Likewise.
9520 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
9521 masking of version index.
9522 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9524 2003-02-11 Ulrich Drepper <drepper@redhat.com>
9526 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
9527 correctly. Reported by Thorsten Kukuk.
9529 2003-02-10 Ulrich Drepper <drepper@redhat.com>
9531 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
9532 _BSD_SOURCE to compiler.
9533 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
9534 Patches by Alan Modra.
9536 2003-02-08 Ulrich Drepper <drepper@redhat.com>
9538 * io/ftwtest.c: Get current working directory before and after the
9539 nftw call and make sure they match.
9541 2003-02-08 Jim Meyering <jim@meyering.net>
9543 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
9544 the current directory, not just when DIR contains a slash.
9545 Reported by Manoj Srivastava.
9547 2003-02-07 Jim Meyering <jim@meyering.net>
9549 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
9550 Include autoconf-recommended block of dirent/NAMELEN-related
9551 definitions and includes. Use NAMELEN throughout, rather than
9553 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
9554 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
9555 (stpcpy): Declare, if necessary.
9556 (mempcpy): Define, if necessary.
9557 [!_LIBC] (__stpcpy, __mempcpy): Define.
9558 [!_LIBC] (LXSTAT, XSTAT): Define.
9559 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
9560 (find_object): Don't use c99-style struct initializer.
9561 Tweak wording in a couple comments.
9563 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9565 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
9567 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
9568 after the trapa instruction.
9569 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
9571 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
9572 (NEED_SYSCALL_INST_PAD): Define.
9573 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
9574 avoid to use definition for the kernel.
9575 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9576 Save and restore the frame pointer.
9577 (SYSCALL_INST_PAD): Define.
9578 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9579 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
9580 after trapa instruction.
9581 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9582 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9584 2003-02-07 Jakub Jelinek <jakub@redhat.com>
9586 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
9587 so that it can have aliases.
9588 * inet/herrno.c (h_errno): Put it into .bss not .data section.
9590 2003-02-07 Ulrich Drepper <drepper@redhat.com>
9592 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
9593 (profile_fixup): Likewise.
9594 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9596 2002-11-24 Robert Love <rml@tech9.net>
9598 * posix/sched.h: Second parameter of sched_setaffinity and
9599 sched_getaffinity is `unsigned int', not `unsigned long'.
9600 * sysdeps/generic/sched_setaffinity.c: Likewise.
9601 * sysdeps/generic/sched_getaffinity.c: Likewise.
9603 2003-02-05 Ulrich Drepper <drepper@redhat.com>
9605 * debug/catchsegv.sh: Fix typo in error messsage.
9606 Reported by John Levon <levon@movementarian.org>.
9608 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
9609 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
9610 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
9611 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9613 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9614 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9616 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
9617 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
9619 2003-02-05 Jim Meyering <jim@meyering.net>
9621 Fix a heap-corrupting bug.
9622 * io/ftw.c: Include <limits.h>.
9623 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
9624 (process_entry): Allocate enough space to hold the resulting
9625 file name. Don't presume that 2*dirbufsize is enough.
9626 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
9627 it is guaranteed to be defined.
9629 2003-02-04 Ulrich Drepper <drepper@redhat.com>
9631 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
9632 * iconvdata/bug-iconv3.c: New file.
9634 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
9636 * sysdeps/unix/sysv/linux/s390/system.c: New file.
9638 2003-02-03 Jakub Jelinek <jakub@redhat.com>
9640 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
9642 * config.h.in (BROKEN_SPARC_WDISP22): Add.
9644 2003-02-03 Ulrich Drepper <drepper@redhat.com>
9646 * sysdeps/i386/i686/memmove.S: New file.
9648 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
9651 Include kernel-features.h
9652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
9653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
9654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
9655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
9657 2003-02-02 Jakub Jelinek <jakub@redhat.com>
9659 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
9661 2003-01-25 Jim Meyering <jim@meyering.net>
9663 * io/ftw.c (object_compare): Compare inode numbers before device
9664 numbers, since the former are much more likely to differ.
9666 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9668 * time/tzfile.c (__tzfile_compute): Change return value type to
9669 void. Adjust return statements.
9670 * include/time.h (__tzfile_compute): Adjust prototype.
9672 2003-02-01 Jim Meyering <jim@meyering.net>
9674 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
9677 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9680 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
9682 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9685 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
9686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9687 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9689 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9691 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9693 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9695 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
9696 back to 2.4.19 for powerpc64.
9697 * sysdeps/unix/sysv/linux/kernel-features.h
9698 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
9699 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
9701 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9703 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
9704 platforms with strange alignment requirements on wchar_t.
9706 2003-01-31 Andreas Schwab <schwab@suse.de>
9708 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
9709 aliases, already added by make-syscalls.sh.
9710 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9711 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9712 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9713 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9714 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9715 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9716 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9717 * sysdeps/unix/inet/syscalls.list: Likewise.
9718 * sysdeps/unix/syscalls.list: Likewise.
9720 2003-01-31 Andreas Schwab <schwab@suse.de>
9722 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
9725 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9727 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
9728 not l to load tls from stack.
9730 2003-01-30 Roland McGrath <roland@redhat.com>
9732 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
9733 null argument before all else.
9734 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9736 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9738 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
9739 Move to RESOLVE protected part of the header.
9740 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
9743 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9745 * stdio-common/Makefile (tests): Add bug15.
9746 (bug15-ENV): Define.
9747 * stdio-common/bug15.c: New file.
9749 2002-10-07 Wolfram Gloger <wg@malloc.de>
9751 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
9752 to foreign sbrk()'s if arena is contiguous. Bug report from
9753 Bruno Haible <bruno@clisp.org>.
9755 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9757 * sysdeps/s390/libc-tls.c: Include stdlib.h.
9759 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9761 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
9764 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9766 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
9768 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
9770 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9772 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9774 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
9775 (allocate_static_tls): ...here. Add __attribute_noinline__.
9776 Don't return on failure.
9777 (_dl_reloc_bad_type): Add __attribute_noinline__.
9778 * elf/do-rel.h (elf_dynamic_do_rel): Add
9779 __attribute__((always_inline)).
9780 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
9781 elf_machine_rel_relative, elf_machine_rela_relative,
9782 elf_machine_lazy_rel): Add prototypes with
9783 __attribute__((always_inline)).
9785 2003-01-29 David Mosberger <davidm@hpl.hp.com>
9787 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
9789 2003-01-29 Roland McGrath <roland@redhat.com>
9791 * configure.in: Barf if configured in $srcdir.
9793 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
9795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9796 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
9798 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
9800 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
9801 clone parameters to match the order used on ia32.
9802 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9804 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
9806 * elf/elf.h: Add new s390 relocs.
9807 * elf/tls-macros.h: Add s390 versions.
9808 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
9809 * sysdeps/s390/dl-tls.h: New file.
9810 * sysdeps/s390/libc-tls.c: New file.
9811 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
9812 relocs for class PLT.
9813 (elf_machine_rela): Handle TLS relocs.
9814 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9815 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
9816 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9817 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
9818 CLONE_CHILD_*TID flags.
9819 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9820 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
9822 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9823 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9824 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
9825 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
9826 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
9828 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9829 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
9830 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9832 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
9833 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
9834 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
9835 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9838 2003-01-28 Ulrich Drepper <drepper@redhat.com>
9840 * sysdeps/unix/common/pause.c (do_pause): New function. Split
9841 from __libc_pause. Implement using sigsuspend.
9842 (__libc_pause): Call do_pause to do the real work.
9844 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
9845 sig_or_mask parameter is is_sig != 0.
9847 2003-01-21 Philip Blundell <philb@gnu.org>
9849 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
9851 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
9853 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
9855 2003-01-27 Ulrich Drepper <drepper@redhat.com>
9857 * stdio-common/bug14.c: Use official name for the locale.
9859 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
9860 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
9861 instead of __libc_cleanup_region_end.
9863 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
9864 as first parameter to __libc_cleanup_region_start.
9866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9867 (__fe_nomask_env): Use __prctl not prctl.
9868 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
9871 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
9873 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
9875 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
9876 wrap-around in test.
9878 2003-01-26 Andreas Schwab <schwab@suse.de>
9880 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
9881 compatibility symbols. Remove INTDEF for __divdi3.
9882 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
9883 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
9884 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
9886 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
9888 2003-01-24 Jakub Jelinek <jakub@redhat.com>
9890 * elf/tls-macros.h: Add SPARC 32-bit definitions.
9891 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
9892 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
9893 for the first half of the header. Include tls.h.
9894 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
9896 (elf_machine_rela): Handle TLS relocs.
9897 * sysdeps/sparc/dl-tls.h: New file.
9899 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
9902 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
9903 * sysdeps/sparc/sparc32/memchr.S: Likewise.
9904 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
9905 * sysdeps/sparc/sparc32/strcat.S: Likewise.
9906 * sysdeps/sparc/sparc32/strchr.S: Likewise.
9907 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
9908 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
9909 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
9910 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9911 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9912 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
9913 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
9914 * sysdeps/sparc/sparc64/strcat.S: Likewise.
9915 * sysdeps/sparc/sparc64/strchr.S: Likewise.
9916 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
9917 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
9918 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
9919 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
9920 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9921 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9923 2003-01-24 Andreas Schwab <schwab@suse.de>
9925 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
9926 elements, and process them backwards.
9927 * elf/Makefile ($(objpfx)tst-array4): New target.
9928 ($(objpfx)tst-array4.out): Likewise.
9929 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
9930 * elf/tst-array4.c: New file.
9931 * elf/tst-array4.exp: Likewise.
9933 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
9935 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
9937 2003-01-27 Guido Guenther <agx@sigxcpu.org>
9939 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
9940 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
9941 cancellation handling and handle both __NR_pread64 and __NR_pread.
9942 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9943 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
9944 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
9945 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9946 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
9947 case, use register names consistently.
9949 2003-01-27 Wolfram Gloger <wg@malloc.de>
9951 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
9952 pointer, not of the computed chunk. Bug report from Carlos
9953 O'Donell <carlos@baldric.uwo.ca>.
9955 2003-01-25 Andreas Schwab <schwab@suse.de>
9957 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
9958 addressing to save GOT entries.
9960 2003-01-21 Jakub Jelinek <jakub@redhat.com>
9962 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
9963 inline_syscall1, inline_syscall2, inline_syscall3,
9964 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
9965 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
9966 __attribute__((unused)) to ChEcK.
9968 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9970 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
9971 Fix inline assembler constraints.
9972 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
9975 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
9978 2003-01-20 Segher Boessenkool <segher@koffie.nl>
9980 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
9981 compute the cosine, not the sine, even if x > 0.8.
9983 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9985 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
9986 _nss_nis_setspent. Work around the different prototypes.
9987 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
9988 internal_nis_endrpcent.
9989 (internal_nis_endrpcent): Change return type to void. Change callers.
9990 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
9991 _nss_nis_setpwent. Work around the different prototypes.
9992 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
9993 of the function to...
9994 (internal_nis_endprotoent): ... here. New function.
9995 (internal_nis_setprotoent): Use internal_nis_endprotoent.
9996 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
9997 _nss_nis_setnetent. Work around the different prototypes.
9998 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
9999 of the function to...
10000 (internal_nis_endnetgrent): ... here. New function.
10001 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
10003 2003-01-19 Jim Meyering <jim@meyering.net>
10005 * time/strftime.c: (widen): Merge nearly-identical definitions.
10006 (nl_get_alt_digit) [! defined my_strftime]: Define.
10007 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
10008 _nl_get_alt_digit and _nl_get_walt_digit.
10010 2003-01-19 Ulrich Drepper <drepper@redhat.com>
10012 * time/strftime.c (my_strftime): Handle very large width
10013 specifications for numeric values correctly. Improve checks for
10015 * time/Makefile (tests): Add tst-strftime.
10016 * time/tst-strftime.c: New file.
10018 2003-01-18 Ulrich Drepper <drepper@redhat.com>
10020 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
10021 _nss_nis_sethostent. Work around the different prototypes.
10022 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
10023 _nss_nis_setgrent. Work around the different prototypes.
10024 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
10025 function. Split out from _nss_nis_endetherent.
10026 (internal_nis_setetherent): Use internal_nis_endetherent instead of
10027 duplicating the code.
10028 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
10029 of _nss_nis_setaliasent.
10030 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
10031 internal_nis_endservent code, don't duplicate it.
10033 * inet/rexec.c (rexec_af): Protect socket operations with
10034 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
10035 * inet/rcmd.c (rcmd_af): Likewise.
10037 2003-01-17 Roland McGrath <roland@redhat.com>
10039 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
10040 Add test of value 0.80190127184058835.
10042 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
10044 2003-01-17 Richard Henderson <rth@redhat.com>
10046 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
10047 relocs for class PLT.
10048 * sysdeps/alpha/libc-tls.c: New file.
10049 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
10050 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
10052 2003-01-17 Jakub Jelinek <jakub@redhat.com>
10054 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
10055 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
10056 on _dl_static_lock.
10058 2003-01-17 Andreas Jaeger <aj@suse.de>
10060 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
10062 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
10064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
10065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
10066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
10067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
10068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
10069 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
10070 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
10073 2003-01-16 Ulrich Drepper <drepper@redhat.com>
10075 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
10076 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
10079 * sysdeps/generic/sysconf.c: Unconditionally implement
10080 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
10081 * sysdeps/posix/sysconf.c: Likewise.
10083 2003-01-16 Jakub Jelinek <jakub@redhat.com>
10085 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
10086 set *err to the returned error, not to REG_ESPACE unconditionally.
10087 (build_word_op): Likewise.
10088 * posix/Makefile (tests): Add bug-regex16.
10089 * posix/bug-regex16.c: New test.
10091 2003-01-16 Jakub Jelinek <jakub@redhat.com>
10093 * elf/dl-load.c (_dl_map_object_from_fd): Use
10094 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
10095 been already initialized.
10097 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
10099 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
10101 2003-01-16 Jakub Jelinek <jakub@redhat.com>
10103 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
10104 allocated too. Reported by Al Viro <aviro@redhat.com>.
10106 2003-01-16 Roland McGrath <roland@redhat.com>
10108 Tweak merged .abilist file format to merge duplicate symbols in
10109 different sets into multi-version stanzas with new "| SET regexp..."
10110 header continuation lines.
10111 * scripts/merge-abilist.awk: Rewritten for new format.
10112 * scripts/extract-abilist.awk: Likewise.
10114 2003-01-15 Ulrich Drepper <drepper@redhat.com>
10116 * nscd/connections.c (nscd_run): Remove bogus return which isn't
10117 necessary with gcc 3.2+.
10118 (nscd_init): Don't use error() to print message, use dbg_log.
10120 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
10121 expected size into state.
10122 (UNPACK_BYTES): Do the reverse.
10123 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
10124 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
10125 Reported by Al Viro <aviro@redhat.com>.
10127 * stdio-common/Makefile (tests): Add bug14.
10128 * stdio-common/bug14.c: New file.
10130 * stdio-common/vfscanf.c: When recognizing multibyte characters in
10131 string reset the byte counter after mbrtowc reported it is not a
10132 partial character. Reported by Al Viro <aviro@redhat.com>.
10134 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
10136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
10137 sysdep-cancel.h, not sysdep.h.
10139 2003-01-15 Ulrich Drepper <drepper@redhat.com>
10141 * nscd/connections.c (nscd_run): Protect accept call with
10142 TEMP_FAILURE_RETRY.
10144 2003-01-15 Andreas Schwab <schwab@suse.de>
10146 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
10147 (common-generated): Add s-proto-bp.d.
10148 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
10150 * sysdeps/unix/s-proto-bp.S: New file.
10151 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
10152 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
10153 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
10155 2003-01-15 Roland McGrath <roland@redhat.com>
10157 * Makerules: Use -include for tls.make, suppresses warning.
10158 Move gen-as-const-headers rules up so before-compile is set in time.
10159 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
10161 2003-01-15 Ulrich Drepper <drepper@redhat.com>
10163 * nscd/nscd.c (main): Make code to close all file descriptors
10164 faster and more robust.
10166 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
10167 request with one writev call. Protect all read calls with
10168 TEMP_FAILURE_RETRY.
10169 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10170 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10172 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
10173 Protect writev calls with TEMP_FAILURE_RETRY.
10174 * nscd/grpcache.c: Likewise.
10175 * nscd/pwdcache.c: Likewise.
10177 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
10178 IPv6 address in debug output.
10180 2003-01-14 Roland McGrath <roland@redhat.com>
10182 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
10183 $(objpfx) directories, and get rid of vpath directives. The previous
10184 arrangement resulted in files being written to the source directories
10185 when run in a clean build. Find all .abilist files in $(..)abilist/.
10186 (update-abi-%): Likewise.
10187 (generated): Don't add .symlist files, they'll be intermediates.
10189 * sysdeps/generic/init-first.c: Add a comment.
10191 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
10193 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
10194 #includes and expressions.
10196 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
10197 config list when it already contains cpu-.*-os.* without / part.
10199 * Makerules (sed-remove-dotdot): New variable.
10200 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
10201 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
10202 (check-abi-config): New variable, append /tls or /notls to the tuple.
10203 (check-abi-%): Use that for -v config value.
10204 Find .abilist files in abilist/libfoo.abilist, not in subdir.
10205 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
10207 2003-01-14 Ulrich Drepper <drepper@redhat.com>
10209 * manual/install.texi: Correct description of header preparation for
10210 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
10212 2003-01-14 Guido Guenther <agx@sigxcpu.org>
10214 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
10215 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10216 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
10218 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10221 (INTERNAL_SYSCALL): Make use of ERR parameter.
10222 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10223 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
10224 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
10225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
10227 2003-01-14 Ulrich Drepper <drepper@redhat.com>
10229 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
10231 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
10233 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
10234 Fix entry for bit 31.
10236 * iconvdata/Makefile: Add rules to build IBM866NAV.
10237 * iconvdata/ibm866nav.c: New file.
10238 * iconvdata/tst-tables.sh: Add IBM866NAV.
10239 * iconvdata/gconv-modules: Add entries for IBM866NAV.
10241 2003-01-13 Ulrich Drepper <drepper@redhat.com>
10243 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
10244 to test void* parameters.
10246 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
10247 source pointer before dereferencing.
10248 (__STRING_SMALLL_GET32): Likewise.
10249 (__memset_gc): Add missing parenthesis around macro arguments.
10250 Patch by Denis Zaitsev <zzz@cd-club.ru>.
10252 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
10253 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
10255 2003-01-14 Jakub Jelinek <jakub@redhat.com>
10257 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
10260 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
10262 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
10263 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
10265 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
10267 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
10269 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
10271 (PSEUDO): ... to here.
10272 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
10274 (PSEUDO): ... to here.
10276 2003-01-13 Ulrich Drepper <drepper@redhat.com>
10278 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
10279 dirent64 instead of struct dirent for dirent. Call readdir64
10280 instead of readdir.
10282 * locale/programs/locfile.c (siblings_uncached): Use struct
10283 dirent64 instead of struct dirent for other_dentry. Call
10284 readdir64 instead of readdir.
10286 * elf/ldconfig.c (direntry): Change type to struct dirent64.
10287 (search_dir): Use readdir64 instead of readdir.
10288 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
10290 2003-01-12 Roland McGrath <roland@redhat.com>
10292 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
10293 not strtol. The former is usable in ld.so, the latter not.
10295 * include/fcntl.h: Declare __libc_creat.
10297 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
10298 libhurduser-link.so-no-z-defs): New variables.
10300 * malloc/malloc.c: Revert last change.
10301 * malloc/malloc.h (_int_*): Move these decls to ...
10302 * include/malloc.h: ... here. Add attribute_hidden.
10303 (_int_valloc): Declare it too.
10305 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10307 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
10308 search for removed searchlist. Reported by Roland McGrath.
10310 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
10311 given as start file.
10313 * io/ftw.c (ftw_startup): Use correct name in check for symlink
10314 without existing target. Patch by Jim Meyering.
10316 * Makerules (build-shlib-helper): Don't use -z defs linker option
10317 if no-z-defs is defined either.
10319 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
10321 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
10324 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
10326 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
10327 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10329 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10331 * io/ftwtest-sh: Add test case for relative path with /. at the end.
10333 2003-01-12 Jim Meyering <jim@meyering.net>
10335 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
10336 use the basename if we've already chdir'd into its parent directory.
10338 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10340 * io/ftw.c (process_entry): Use relative path when using chdir()
10341 to change directory after call to ftw_dir.
10342 * io/ftwtest-sh: Add test for relative path argument to nftw()
10343 with FTW_CHDIR option.
10345 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10347 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10348 Define for powerpc.
10349 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
10351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10352 (INTERNAL_SYSCALL): Make use of ERR parameter.
10353 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10354 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
10355 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
10356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
10358 2003-01-09 Richard Henderson <rth@redhat.com>
10360 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
10361 DTPREL64 and TPREL64 without loadbase applied.
10363 2003-01-09 Richard Henderson <rth@redhat.com>
10365 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
10368 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
10369 * sysdeps/unix/alpha/sysdep.h: ... here.
10370 (PSEUDO_LOADGP): Remove.
10371 (PSEUDO_PROLOGUE): Load GP in non-pic case.
10372 (SYSCALL_ERROR_LABEL): New.
10373 (PSEUDO): Use it in error branch.
10374 (PSEUDO_END): Add $syscall_error label.
10376 2003-01-12 Andreas Jaeger <aj@suse.de>
10378 * math/bits/mathcalls.h: Round is a const function.
10380 2003-01-11 Jim Meyering <jim@meyering.net>
10382 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
10383 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
10384 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
10385 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
10386 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
10387 [!_LIBC] (internal_function, dirent64, MAX): Define.
10388 (__set_errno): Define if not already defined.
10389 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
10390 the basename, not the entire file name.
10391 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
10392 the basename, not the entire file name.
10394 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10396 * string/tester.c (test_strcpy): Disable last added strcpy until
10399 2003-01-11 Philip Blundell <philb@gnu.org>
10401 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
10403 2003-01-11 Andreas Schwab <schwab@suse.de>
10405 * Makerules: Add vpath for %.dynsym and %.so so that the
10406 implicit rule chaining for check-abi works.
10408 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10410 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10413 2003-01-11 Jakub Jelinek <jakub@redhat.com>
10415 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
10416 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
10418 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
10419 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
10420 Ensure libc.so in DT_NEEDED.
10421 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
10422 CHECK_STATIC_TLS before l_tls_offset use.
10423 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10425 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10426 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
10427 Allocate TLS_PRE_TCB_SIZE bytes below result.
10428 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
10429 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
10430 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
10431 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
10432 bytes below result and add tcb_offset to memsz.
10433 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
10434 * sysdeps/ia64/dl-machine.h: Include tls.h.
10435 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
10437 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
10438 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
10439 * sysdeps/ia64/libc-tls.c: New file.
10441 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
10443 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
10444 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
10445 Fix type. Move definition out of #if.
10446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
10447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
10448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
10449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
10450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
10451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
10453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
10454 ftruncate64, pread64, pwrite64, truncate64 entries.
10455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10456 (INLINE_SYSCALL): New version that supports function call like
10457 syscalls. Add __builtin_expect.
10458 (LOADARGS_n): Add argument size safety checks.
10459 (INTERNAL_SYSCALL): New Macro.
10460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
10461 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
10462 redefinition of elf_fpreg_t and elf_fpregset_t.
10464 2003-01-12 Ulrich Drepper <drepper@redhat.com>
10466 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
10467 simplify test for unloading. If loader of a DSO is unloaded do not
10468 use its scope anymore. Fall back to own scope and adjust opencounts.
10469 Fix several comments.
10470 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
10471 the l_searchlist, not only for l_initfini.
10473 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
10474 dependencies if objects cannot be removed. Remove object with the
10475 definition as not unloadable if necessary.
10477 * elf/reldep6.c: Create relocation dependency before closing the first
10480 2003-01-10 Guido Günther <agx@sigxcpu.org>
10482 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
10483 * sysdeps/unix/mips/brk.S: Likewise.
10484 * sysdeps/unix/mips/pipe.S: Likewise.
10486 2003-01-10 Andreas Schwab <schwab@suse.de>
10488 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
10490 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
10491 are known to have the vfork syscall.
10493 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
10495 * sysdeps/unix/sysv/linux/kernel-features.h
10496 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
10497 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
10498 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
10500 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10502 * elf/Makefile: Add rules to build and run reldep9 test.
10503 * elf/reldep9.c: New file.
10504 * elf/reldep9mod1.c: New file.
10505 * elf/reldep9mod2.c: New file.
10506 * elf/reldep9mod3.c: New file.
10508 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10510 * elf/Makefile: Add rules to build and run nodelete2 test.
10511 * elf/nodelete2.c: New file.
10512 * elf/nodel2mod1.c: New file.
10513 * elf/nodel2mod2.c: New file.
10514 * elf/nodel2mod3.c: New file.
10516 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10518 * posix/test-vfork.c (noop): Add __attribute_noinline__.
10519 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
10520 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
10522 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
10523 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
10524 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
10525 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
10526 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
10528 2003-01-09 Andreas Schwab <schwab@suse.de>
10530 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
10532 2003-01-08 Ulrich Drepper <drepper@redhat.com>
10534 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
10535 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10537 (INTERNAL_SYSCALL_DECL): Define.
10539 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10541 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
10542 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10544 (INTERNAL_SYSCALL_DECL): Define.
10545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10546 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10547 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10548 (INLINE_SYSCALL): Adjust.
10549 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10550 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10551 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10552 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10553 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
10554 add err argument to INTERNAL_SYSCALL* macros.
10555 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
10556 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
10557 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
10558 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
10560 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
10561 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
10562 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
10564 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10566 Unify symbols in user namespace exported by libc.so and libc.a.
10567 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
10568 argp_fmtstream_free, and argp_fmtstream_printf.
10569 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
10570 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
10571 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
10572 argp_fmtstream_point.
10573 * gmon/gmon.c: Don't define write_profiling.
10574 * libio/genops.c: Don't define _cleanup.
10576 * intl/explodename.c (_nl_find_language.c): Mark as static.
10577 * intl/loadinfo.h: Remove _nl_find_language prototype.
10579 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
10580 * libio/libioP.h: Remove declaration.
10582 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
10583 * libio/libioP.h: Remove declaration.
10585 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
10586 * sysdeps/generic/framestate.c: Define STATIC before including
10589 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
10591 2003-01-06 Philip Blundell <philb@gnu.org>
10593 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
10594 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
10596 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
10598 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
10599 (SYSCALL_ERROR): New.
10600 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
10602 (INTERNAL_SYSCALL): Define.
10603 (INLINE_SYSCALL): Use it.
10604 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10605 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
10606 SYSCALL_ERROR in place of __syscall_error.
10608 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10610 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10611 __bswap_32, __bswap_64): Put x into temporary variable
10613 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10614 (inline) functions.
10615 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10616 __bswap_32, __bswap_64): Put x into temporary variable
10618 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10619 (inline) functions.
10620 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
10623 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10625 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
10628 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10630 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
10631 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
10633 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10635 * math/libm-test.inc (significand_test): New function.
10638 2003-01-06 Roland McGrath <roland@redhat.com>
10640 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
10642 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
10643 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
10644 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
10646 * string/tester.c (test_strcpy): Add test with `void *' arguments.
10648 2003-01-06 Ulrich Drepper <drepper@redhat.com>
10650 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
10651 return significand and not the exponent.
10652 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10654 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
10655 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
10657 * malloc/malloc.c: Mark all _int_* functions as static.
10659 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10661 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
10662 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
10664 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10666 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10668 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
10669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
10671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
10672 ftruncate64, truncate64, pread64 and pwrite64 entries.
10673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10674 (INLINE_SYSCALL): Add __builtin_expect.
10675 (LOADARGS_n): Add argument size safety checks.
10676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
10677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
10678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
10679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
10680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
10681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
10683 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10685 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
10686 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
10687 (LIBC_CANCEL_HANDLED): Add.
10689 * sysdeps/unix/sysv/linux/alpha/sysdep.h
10690 (inline_syscall_r0_constraint): Rename to...
10691 (inline_syscall_r0_out_constraint): ... this. Add =.
10692 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
10694 2003-01-06 Andreas Schwab <schwab@suse.de>
10696 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
10697 sure this is always inlined.
10698 (elf_machine_rela): Likewise.
10700 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
10702 2003-01-04 Roland McGrath <roland@redhat.com>
10704 * Makeconfig (+mkdep): Add -MP flag.
10705 Suggested by Art Haas <ahaas@airmail.net>.
10707 2003-01-05 Andreas Schwab <schwab@suse.de>
10709 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
10711 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10713 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
10714 SYSCALL_ERROR_HANDLER.
10715 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
10716 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
10717 Add support for cancellation handling.
10718 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
10719 SYSCALL_ERROR_HANDLER.
10720 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
10721 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
10722 Add support for cancellation handling.
10723 (SYSCALL_ERROR_HANDLER): Define PIC variants.
10725 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
10728 __syscall_pread64 and __syscall_pwrite64 cancelable.
10729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10730 (INTERNAL_SYSCALL): New macro.
10731 (LOADARGS_0, LOADARGS_1): Fix.
10733 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10735 * Makerules (build-shlip-helper): Unless told otherwise, add
10736 -Wl,-z,defs to linker command line.
10737 * rt/Makefile (librt.so): Link with ld.so.
10738 * dlfcn/Makefile (libdl.so): Likewise.
10740 2003-01-05 Jakub Jelinek <jakub@redhat.com>
10742 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
10743 cancellation handling.
10744 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10745 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
10747 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10749 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
10750 order of parameters passed to kill.
10752 2003-01-04 Andreas Schwab <schwab@suse.de>
10754 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
10756 2003-01-03 Paul Eggert <eggert@twinsun.com>
10758 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
10759 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10760 when compiling Bison 1.875's `bitset bset = obstack_alloc
10761 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
10763 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10765 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
10767 Correct reference counter in case SIGQUIT handler installation failed.
10769 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10771 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
10772 Define using _Pragma(weak ...).
10774 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
10776 * resolv/res_libc.c: Provide declaration for __res_init_weak and
10777 reorder declarations.
10779 2003-01-03 Art Haas <ahaas@airmail.net>
10781 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
10782 initializer syntax to C99.
10783 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
10784 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
10785 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
10786 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
10787 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
10788 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
10789 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
10790 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
10791 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
10792 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
10793 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
10794 * localedata/tests-mbwc/dat_mblen.c: Likewise.
10795 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
10796 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
10797 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
10798 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
10799 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
10800 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
10801 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
10802 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
10803 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
10804 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
10805 * localedata/tests-mbwc/dat_towlower.c: Likewise.
10806 * localedata/tests-mbwc/dat_towupper.c: Likewise.
10807 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
10808 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
10809 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
10810 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
10811 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
10812 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
10813 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
10814 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
10815 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
10816 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
10817 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
10818 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
10819 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
10820 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
10821 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
10822 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
10823 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
10824 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
10825 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
10826 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
10827 * localedata/tests-mbwc/dat_wctob.c: Likewise.
10828 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
10829 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
10830 * localedata/tests-mbwc/dat_wctype.c: Likewise.
10831 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
10833 2003-01-03 Richard Henderson <rth@redhat.com>
10835 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
10836 (inline_syscall_r0_constraint): New.
10837 (inline_syscall[0-6]): Use them.
10839 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10841 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
10842 Add rtld_hidden_proto.
10843 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
10844 (_dl_allocate_tls): Likewise. Remove INTDEF.
10846 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10848 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
10849 Morita <toshiyasu.morita@hsa.hitachi.com>.
10850 * sysdeps/sh/memcpy.S: Likewise.
10852 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10854 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
10855 any, but unify the test.
10857 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10859 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
10860 sigaction): Protect weak_alias and libc_hidden_weak with
10861 #ifndef LIBC_SIGACTION.
10862 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
10863 sigaction): Likewise.
10864 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
10865 sigaction): Likewise.
10866 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
10867 sigaction): Likewise.
10868 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
10869 sigaction): Likewise.
10870 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
10871 sigaction): Likewise.
10872 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
10873 sigaction): Likewise.
10874 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
10875 sigaction): Likewise. Remove SIGCANCEL handling here.
10876 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
10879 2003-01-02 Art Haas <ahaas@airmail.net>
10881 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
10883 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10885 * posix/getconf.c: Update copyright year.
10886 * nss/getent.c: Likewise.
10887 * nscd/nscd_nischeck.c: Likewise.
10888 * iconv/iconvconfig.c: Likewise.
10889 * iconv/iconv_prog.c: Likewise.
10890 * elf/ldconfig.c: Likewise.
10891 * catgets/gencat.c: Likewise.
10892 * csu/version.c: Likewise.
10893 * elf/ldd.bash.in: Likewise.
10894 * elf/sprof.c (print_version): Likewise.
10895 * locale/programs/locale.c: Likewise.
10896 * locale/programs/localedef.c: Likewise.
10897 * nscd/nscd.c (print_version): Likewise.
10898 * debug/xtrace.sh: Likewise.
10899 * malloc/memusage.sh: Likewise.
10900 * malloc/mtrace.pl: Likewise.
10902 2003-01-01 Jakub Jelinek <jakub@redhat.com>
10904 * io/sys/stat.h: Include time.h with __need_timespec even if
10905 __USE_MISC is defined but __USE_XOPEN is not.
10907 2003-01-01 Andreas Jaeger <aj@suse.de>
10909 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
10910 type to avoid strict aliasing problem.
10911 (_nss_dns_gethostbyname2_r): Likewise.
10912 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10913 (_nss_dns_getnetbyname_r): Likewise.
10914 * resolv/gethnamaddr.c (_gethtent): Likewise.
10915 (gethostbyname2): Likewise.
10917 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10919 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
10920 to avoid using the exported symbols. Define aliases with the
10921 original names separately.
10923 * include/time.h: Add libc_hidden_proto for __strftime_l.
10924 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
10925 * time/strftime.c: Always use libc_hidden_def if _LIBC.
10927 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
10928 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
10930 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
10933 * csu/Makefile (routines): Add dso_handle.
10934 * csu/dso_handle.c: New file.
10936 2002-12-31 Roland McGrath <roland@redhat.com>
10938 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
10939 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
10940 (S-CPPFLAGS): Add -DASSEMBLER here instead.
10941 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
10943 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10945 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
10948 2002-12-31 Andreas Jaeger <aj@suse.de>
10950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
10952 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10953 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
10954 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
10956 * sysdeps/unix/sysv/linux/kernel_stat.h
10957 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
10959 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
10960 __unused[1-3] since they're needed by some platforms. Handle
10961 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
10963 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
10964 for structs stat and stat64.
10965 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10966 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10967 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10968 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10970 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10972 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10973 nsec resolution changes.
10974 (xstat64_conv): Likewise.
10975 (xstat32_conv): Likewise.
10977 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10978 struct kernel_stat.
10980 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10981 structs stat and stat64.
10983 * time/time.h (__timespec_defined): Define for __USE_MISC.
10985 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10987 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
10988 and __libc_current_sigrtmax.
10990 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10992 * include/errno.h (__errno_location): Add prototype.
10993 Use libc_hidden_proto unconditionally.
10994 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
10996 * include/resolv.h (__res_state): Likewise.
10998 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
10999 * include/sys/socket.h (accept): Add libc_hidden_proto.
11000 * include/errno.h (__errno_location): Likewise.
11001 * include/netdb.h (__h_errno_location): Likewise.
11002 * include/resolv.h (__res_state): Likewise.
11003 * include/unistd.h (__lseek): Likewise.
11004 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
11005 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
11006 * sysdeps/generic/res-state.c (__res_state): Likewise.
11007 * sysdeps/generic/accept.c (accept): Likewise.
11008 * sysdeps/generic/lseek.c (__lseek): Likewise.
11009 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
11010 __libc_current_sigrtmax): Likewise.
11011 * sysdeps/mach/hurd/accept.c (accept): Likewise.
11012 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
11013 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
11014 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
11015 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
11016 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
11017 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
11018 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
11019 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
11021 (__GI_accept): New alias to accept.
11022 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
11023 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
11024 New alias to llseek.
11025 (__GI_accept): New alias to accept.
11026 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
11028 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
11030 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
11032 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
11033 strong_alias (name, __GI_name).
11034 * sysdeps/arm/bsd-_setjmp.S : Likewise.
11035 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
11036 * sysdeps/i386/bsd-_setjmp.S : Likewise.
11037 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
11038 * sysdeps/mips/bsd-_setjmp.S : Likewise.
11039 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
11040 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
11041 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
11042 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
11043 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
11044 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
11045 * sysdeps/sh/bsd-_setjmp.S : Likewise.
11046 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
11047 * sysdeps/unix/arm/fork.S : Likewise.
11048 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
11049 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
11050 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
11051 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
11052 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
11053 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
11054 * sysdeps/unix/i386/fork.S : Likewise.
11055 * sysdeps/unix/mips/fork.S : Likewise.
11056 * sysdeps/unix/sparc/fork.S : Likewise.
11057 * sysdeps/unix/sparc/vfork.S : Likewise.
11058 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
11059 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
11060 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
11061 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
11062 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
11063 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
11064 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
11065 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
11066 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
11067 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
11068 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
11069 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
11070 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
11071 * sysdeps/unix/fork.S : Likewise.
11072 * sysdeps/vax/bsd-_setjmp.S : Likewise.
11073 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
11075 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
11078 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11080 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
11081 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
11082 * sysdeps/mach/hurd/fork.c: Likewise.
11083 * sysdeps/unix/sysv/aix/fork.c: Likewise.
11084 * sysdeps/unix/fork.S: Add __GI___fork alias.
11085 * sysdeps/unix/arm/fork.S: Likewise.
11086 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
11087 * sysdeps/unix/i386/fork.S: Likewise.
11088 * sysdeps/unix/mips/fork.S: Likewise.
11089 * sysdeps/unix/sparc/fork.S: Likewise.
11090 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
11091 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
11092 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11093 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
11094 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
11095 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
11096 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
11097 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
11098 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
11099 * sysdeps/unix/sparc/vfork.S: Likewise.
11100 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
11101 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
11102 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11103 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
11104 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
11105 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
11106 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
11107 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11109 * include/time.h: Add libc_hidden_proto for __nanosleep.
11110 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
11111 * sysdeps/mach/nanosleep.c: Likewise.
11112 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
11113 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
11115 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
11116 _IO_list_unlock, and _IO_list_resetlock.
11117 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
11118 _IO_list_unlock, and _IO_list_resetlock.
11120 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
11121 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
11122 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
11123 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
11125 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
11126 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
11127 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
11128 __GI___longjmp alias.
11130 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
11131 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
11132 * sysdeps/arm/bsd-_setjmp.S: Likewise.
11133 * sysdeps/generic/bsd-_setjmp.c: Likewise.
11134 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
11135 * sysdeps/i386/bsd-_setjmp.S: Likewise.
11136 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11137 * sysdeps/mips/bsd-_setjmp.S: Likewise.
11138 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
11139 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
11140 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
11141 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
11142 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
11143 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
11144 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
11145 * sysdeps/sh/bsd-_setjmp.S: Likewise.
11146 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
11147 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
11148 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
11149 * sysdeps/vax/bsd-_setjmp.S: Likewise.
11150 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
11152 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11154 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
11156 2002-12-30 Roland McGrath <roland@redhat.com>
11158 * Rules (generated): Target removed.
11159 * mach/Makefile (generated): Define it here instead.
11161 * math/Makefile (generated): Add m_*l and m_*f variants too.
11163 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11165 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
11166 the to-be-deleted objects right away instead of later separately.
11167 The latter fails because the scope data structures of the DSO
11168 might already be gone.
11170 * elf/Makefile: Add rules to build and run reldep8 test.
11171 * elf/reldep8.c: New file.
11172 * elf/reldep8mod1.c: New file.
11173 * elf/reldep8mod2.c: New file.
11174 * elf/reldep8mod3.c: New file.
11175 Contributed by Jakub Jelinek.
11177 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
11179 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
11180 checking of return value ENOSYS from getdents64.
11182 2002-12-28 Andreas Schwab <schwab@suse.de>
11184 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
11185 ($(common-objpfx)s-%.d): Generalized from
11186 $(common-objpfx)s-proto.d rule.
11187 (common-generated): Add s-proto-cancel.d.
11188 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
11189 cancellable syscalls.
11190 * sysdeps/unix/s-proto-cancel.S: New file.
11192 2002-12-29 Roland McGrath <roland@redhat.com>
11194 * resolv/res_libc.c: Move _res defn magic after res_init defn
11195 so _res macro is in effect for that code.
11197 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
11198 pattern for prepending $(..) so it doesn't affect $(foo).
11200 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
11202 2002-12-29 Jakub Jelinek <jakub@redhat.com>
11204 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
11207 2002-12-28 Ulrich Drepper <drepper@redhat.com>
11209 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
11211 2002-12-28 Andreas Jaeger <aj@suse.de>
11213 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
11215 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
11217 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11219 * inet/herrno.c (__h_errno_location): Remove.
11220 * inet/Makefile (routines): Add herrno-loc.
11221 * resolv/res_libc.c (__res_state): Remove.
11222 * resolv/Makefile (routines): Add res-state.
11223 * sysdeps/generic/herrno-loc.c: New file.
11224 * sysdeps/generic/res-state.c: New file.
11226 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11228 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
11229 Only define if USE_DL_SYSINFO is defined.
11231 2002-12-22 Jakub Jelinek <jakub@redhat.com>
11233 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
11234 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
11235 Define. Patch by Richard Henderson and Jes Sorensen.
11236 (PSEUDO): Remove unnecessary ;;.
11237 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
11238 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
11239 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
11240 if not initializing thread pointer.
11241 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
11242 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
11243 make it weak also if NONTLS_INIT_TP.
11244 * sysdeps/unix/common/pause.c: Handle cancellation.
11245 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
11246 (LOADSYSCALL): Remove.
11247 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
11248 (SYSCALL_ERROR_HANDLER): Use it.
11249 (PSEUDO): Don't jump around error handler.
11250 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
11251 jump around error handler.
11252 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
11253 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
11254 to __syscall_error_handler on failure.
11255 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
11256 (LOADSYSCALL): Remove.
11257 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
11258 (SYSCALL_ERROR_HANDLER): Use it.
11259 (PSEUDO): Don't jump around error handler.
11260 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
11261 jump around error handler.
11262 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
11263 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
11264 to __syscall_error_handler on failure.
11266 2002-12-27 Roland McGrath <roland@redhat.com>
11268 * scripts/gen-as-const.awk: New file.
11269 * Makefile (distribute): Add it.
11270 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
11271 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
11273 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
11275 2002-12-27 Andreas Schwab <schwab@suse.de>
11277 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
11279 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11281 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
11284 2002-12-27 Andreas Schwab <schwab@suse.de>
11286 * Makerules ($(common-objpfx)%.make): Filter through
11287 $(sed-remove-objpfx).
11289 2002-12-23 Roland McGrath <roland@redhat.com>
11291 * scripts/abilist.awk: Produce a more compact format, divided into
11292 stanzas for each version set, the set name listed only once.
11293 * scripts/extract-abilist.awk: New file.
11294 * scripts/merge-abilist.awk: New file.
11295 * Makerules (check-abi-%, update-abi-%): New pattern rules.
11296 (update-abi, check-abi): New targets.
11297 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
11299 2002-12-19 Roland McGrath <roland@redhat.com>
11301 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
11303 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
11306 2002-12-21 Andreas Schwab <schwab@suse.de>
11308 * elf/check-textrel.c (handle_file): Swap p_type.
11310 2002-12-21 Andreas Schwab <schwab@suse.de>
11312 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
11313 (INLINE_SYSCALL): Use it.
11314 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
11315 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
11317 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
11318 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
11320 2002-12-20 Art Haas <ahaas@airmail.net>
11322 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
11325 2002-12-21 Philip Blundell <philb@gnu.org>
11327 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
11328 top as seventh arg to __libc_start_main.
11329 Reported by paulnash@wildseed.com.
11331 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
11333 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
11334 compatibility cruft when new enough kernel is assumed.
11336 2002-12-20 Jakub Jelinek <jakub@redhat.com>
11338 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
11339 instead of INLINE_SYSCALL.
11341 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11343 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
11346 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
11347 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11348 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
11349 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11350 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11351 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11352 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11353 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11354 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
11355 Patch by William Lee Irwin <wli@holomorphy.com>.
11357 2002-12-20 Andreas Schwab <schwab@suse.de>
11359 * locale/programs/ld-measurement.c (measurement_output): Fix
11362 2002-12-20 Ulrich Drepper <drepper@redhat.com>
11364 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
11365 Redefine _IO_flockifle and _IO_funlockfile as inlines.
11367 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
11368 builds add "tls" in the search path.
11369 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
11370 (path_hwcap): Recognize "tls".
11372 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11374 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
11375 __waitpid instead of waitpid.
11377 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
11379 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11380 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11381 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11383 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
11384 information for system calls.
11386 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
11389 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
11391 2002-12-19 Roland McGrath <roland@redhat.com>
11393 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
11394 * iconvdata/ibm922.h: Likewise.
11395 * iconvdata/ibm930.h: Likewise.
11396 * iconvdata/ibm932.h: Likewise.
11397 * iconvdata/ibm933.h: Likewise.
11398 * iconvdata/ibm935.h: Likewise.
11399 * iconvdata/ibm937.h: Likewise.
11400 * iconvdata/ibm939.h: Likewise.
11401 * iconvdata/ibm943.h: Likewise.
11402 * iconvdata/isiri-3342.h: Likewise.
11404 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11406 * test-skeleton.c (main): Make sure correct value is seen as
11407 argv[0] after adjustment of argv, and argc.
11409 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
11410 RTLD_CORRECT_DYNAMIC_WEAK is defined.
11412 2002-12-19 Jakub Jelinek <jakub@redhat.com>
11414 * nscd/connections.c (nscd_run): Shut up warning.
11415 * tst-ungetc.c (assert): Undefined before redefining.
11417 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11419 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
11422 2002-12-17 Art Haas <ahaas@airmail.net>
11424 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
11425 * iconvdata/cp775.h: Likewise.
11426 * iconvdata/ibm1046.h: Likewise.
11427 * iconvdata/ibm1124.h: Likewise.
11428 * iconvdata/ibm1129.h: Likewise.
11429 * iconvdata/ibm1132.h: Likewise.
11430 * iconvdata/ibm1133.h: Likewise.
11431 * iconvdata/ibm1160.h: Likewise.
11432 * iconvdata/ibm1161.h: Likewise.
11433 * iconvdata/ibm1162.h: Likewise.
11434 * iconvdata/ibm1163.h: Likewise.
11435 * iconvdata/ibm1164.h: Likewise.
11437 2002-12-19 Ulrich Drepper <drepper@redhat.com>
11439 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
11440 __ASSUME_CLONE_THREAD_FLAGS is defined.
11441 * sysdeps/unix/sysv/linux/kernel-features.h
11442 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
11444 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11446 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
11448 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11450 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
11452 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
11454 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
11456 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
11458 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
11459 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
11460 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
11463 2002-12-18 Jakub Jelinek <jakub@redhat.com>
11465 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
11466 __libc_writev to...
11467 [libc: GLIBC_PRIVATE]: ...here.
11468 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
11469 __libc_msgsnd to...
11470 [libc: GLIBC_PRIVATE]: ...here.
11472 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11474 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
11475 Use it instead of directly int $0x80.
11476 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
11477 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11478 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11479 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11480 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11481 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11483 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11485 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
11487 * elf/elf.h (AT_SYSINFO): New define.
11488 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
11491 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11493 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
11495 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
11497 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
11499 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
11501 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
11503 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
11505 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
11506 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
11507 available, otherwise __libc_maybe_call.
11508 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
11509 cancellation handling.
11510 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
11512 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
11514 * posix/regcomp.c (free_workarea_compile): Free the new member
11516 (analyze): Initialize ORG_INDICES.
11517 (duplicate_node_closure): Search for a existing node, which is
11518 duplicated from the node ORG_DEST and satisfies the constraint
11519 CONSTRAINT. And use it to avoid inifimite loop.
11520 (search_duplicated_node): New function.
11521 (duplicate_node): Store the index of the original node.
11522 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
11524 * posix/regex_internal.h (re_dfa_t): Add new members.
11526 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11528 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
11530 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11532 * sysdeps/posix/system.c (do_system): Add support for installation
11533 of cancellation handlers.
11534 * sysdeps/unix/sysv/linux/i386/system.c: New file.
11536 * stdlib/Makefile (tests): Add tst-system.
11537 * stdlib/tst-system.c: New file.
11539 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
11540 CENABLE]: Don't lose content of %ebx.
11542 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11544 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
11545 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
11547 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11549 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
11550 fails to return a function pointer don't use it.
11552 2002-12-16 Art Haas <ahaas@airmail.net>
11554 * io/ftw.c: Convert GCC extension initializer syntax to C99.
11555 * iconvdata/iso-ir-165.c: Likewise.
11556 * iconvdata/jis0208.c: Likewise.
11557 * iconvdata/jis0212.c: Likewise.
11559 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11561 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
11562 epoll_ctl, and epoll_wait.
11563 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
11564 epoll_create, epoll_ctl, and epoll_wait.
11565 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
11566 Davide Libenzi <davidel@xmailserver.org>.
11567 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
11568 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11571 2002-12-16 Art Haas <ahaas@airmail.net>
11573 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
11575 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
11576 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
11577 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
11579 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11581 * stdio-common/Makefile (routines): Remove lockfile. Add
11582 flockfile, ftrylockfile, and funlockfile.
11583 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
11584 * sysdeps/generic/flockfile.c: New file.
11585 * sysdeps/generic/ftrylockfile.c: New file.
11586 * sysdeps/generic/funlockfile.c: New file.
11588 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11590 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
11591 macros instead of doing the calls directly.
11592 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
11593 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
11596 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11598 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
11599 * sysdeps/ieee754/bits/nan.h: Likewise.
11601 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
11602 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
11604 2002-12-16 Roland McGrath <roland@redhat.com>
11606 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
11607 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
11608 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
11610 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
11611 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
11613 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
11614 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
11615 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
11616 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
11617 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
11618 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
11619 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
11620 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
11622 2002-12-13 Paul Eggert <eggert@twinsun.com>
11624 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
11625 is now u_int, not int.
11626 (struct XDR.x_handy): Now u_int, not int.
11627 * sunrpc/xdr_mem.c: Include <limits.h>.
11628 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
11629 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
11630 x_handy is now unsigned, not signed.
11631 Do not decrement x_handy if no change is made.
11632 (xdrmem_setpos): Check for int overflow.
11633 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
11634 (xdr_sizeof): Remove cast that is now unnecessary, now that
11635 x_handy is unsigned.
11637 2002-12-15 Art Haas <ahaas@airmail.net>
11639 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
11640 * iconvdata/gap.awk: Likewise.
11641 * iconvdata/gen-8bit-gap-1.sh: Likewise.
11642 * iconvdata/gen-8bit-gap.sh: Likewise.
11643 * locale/C-address.c: Likewise.
11644 * locale/C-collate.c: Likewise.
11645 * locale/C-ctype.c: Likewise.
11646 * locale/C-identification.c: Likewise.
11647 * locale/C-measurement.c: Likewise.
11648 * locale/C-messages.c: Likewise.
11649 * locale/C-monetary.c: Likewise.
11650 * locale/C-name.c: Likewise.
11651 * locale/C-numeric.c: Likewise.
11652 * locale/C-paper.c: Likewise.
11653 * locale/C-telephone.c: Likewise.
11654 * locale/C-time.c: Likewise.
11655 * nscd/connections.c: Likewise.
11656 * nscd/grpcache.c: Likewise.
11657 * nscd/hstcache.c: Likewise.
11658 * nscd/pwdcache.c: Likewise.
11659 * stdio-common/vfprintf.c: Likewise.
11660 * stdlib/random.c: Likewise.
11661 * sysdeps/generic/siglist.c: Likewise.
11662 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11663 * sysdeps/ieee754/bits/nan.h: Likewise.
11664 * sysdeps/posix/sprofil.c: Likewise.
11665 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
11666 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
11667 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
11669 2002-12-15 Roland McGrath <roland@redhat.com>
11671 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
11673 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
11674 <tls.h> here, no need for it.
11675 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11677 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
11678 parameter, not varargs parameter.
11680 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
11681 argument so it's not an unused variable.
11683 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
11684 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
11687 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
11689 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11691 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
11692 original __libc_fcntl code. Just renamed.
11694 2002-12-15 Andreas Schwab <schwab@suse.de>
11696 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
11698 2002-12-14 Olaf Hering <olh@suse.de>
11700 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
11701 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
11703 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11705 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
11707 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
11708 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
11710 * sysdeps/unix/sysv/linux/open64.c: New file.
11712 * sysdeps/generic/pselect.c: Add support for cancellation handling.
11713 * sysdeps/posix/open64.c: Likewise.
11714 * sysdeps/posix/sigpause.c: Likewise.
11715 * sysdeps/posix/sigwait.c: Likewise.
11716 * sysdeps/posix/system.c: Likewise.
11717 * sysdeps/posix/waitid.c: Likewise.
11718 * sysdeps/unix/sysv/linux/accept.S: Likewise.
11719 * sysdeps/unix/sysv/linux/connect.S: Likewise.
11720 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
11721 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11722 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
11723 * sysdeps/unix/sysv/linux/poll.c: Likewise.
11724 * sysdeps/unix/sysv/linux/pread.c: Likewise.
11725 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11726 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
11727 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11728 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11729 * sysdeps/unix/sysv/linux/recv.S: Likewise.
11730 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
11731 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
11732 * sysdeps/unix/sysv/linux/send.S: Likewise.
11733 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
11734 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
11735 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
11736 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
11737 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
11738 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
11739 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
11740 * sysdeps/unix/sysv/linux/wait.c: Likewise.
11741 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11742 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11743 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
11744 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11746 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11748 * sysdeps/generic/sysdep-cancel.h: New file.
11749 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
11750 cancelable syscall.
11751 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
11752 recvmsg, send, sendmsg, sendto): Make cancelable.
11753 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
11754 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
11755 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11756 sendto, osf_select): Likewise.
11757 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
11758 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11759 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
11760 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11762 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
11763 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11764 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
11765 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11767 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
11768 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11769 sendto, select): Likewise.
11770 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
11771 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
11773 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
11774 select, fcntl): Likewise.
11775 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
11776 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
11777 read, readv, select, sigsuspend, write, writev): Likewise.
11779 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11781 * dirent/bug-readdir1.c: Include unistd.h.
11783 2002-12-13 Jakub Jelinek <jakub@redhat.com>
11785 * locale/programs/locale.c: Include locarchive.h.
11786 (ARCHIVE_NAME): Define.
11787 (write_archive_locales): New function.
11788 (write_locales): Use it. Ensure the same locale is not printed
11789 multiple times in verbose mode.
11790 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
11791 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
11793 (struct nameent): New type.
11794 (nameentcmp): New function.
11796 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11798 * posix/regex_internal.c (re_string_context_at): Guard wide char
11799 code with #ifdef RE_ENABLE_I18N.
11801 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
11803 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
11805 2002-12-13 Roland McGrath <roland@redhat.com>
11807 * posix/bug-regex15.c: New file.
11808 * posix/Makefile (tests): Add it.
11810 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
11811 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
11813 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11815 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
11817 * misc/syslog.c (log_cleanup): Don't use parameter in
11818 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
11819 pass NULL instead of a pointer to syslog_lock.
11821 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11823 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
11824 linker map for all iconv modules.
11825 (distribute): Add gconv.map.
11826 * iconvdata/gconv.map: New file.
11828 * elf/Makefile: Also check all iconv modules for text relocations.
11830 * stdlib/Makefile: Remove code to automatically import GMP.
11832 * elf/Makefile (tests): Add rules to build and run check-textrel.
11833 * elf/check-textrel.c: New file.
11835 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
11838 2002-12-11 Jakub Jelinek <jakub@redhat.com>
11840 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
11843 2002-04-30 Bruno Haible <bruno@clisp.org>
11845 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
11846 the encoding if it already has slashes.
11847 Reported by Perry Rapp <prapp@erols.com>.
11849 2002-12-11 Roland McGrath <roland@redhat.com>
11851 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
11852 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
11853 Turn off PIC for compiling this file.
11855 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11857 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
11858 definitions. Not needed.
11859 [_LIBC]: Use definitions from libc-lock.h instead of referencing
11860 pthread routines directly.
11861 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
11863 (arena_get2): Don't look at return value of mutex_lock.
11865 2002-12-11 Roland McGrath <roland@redhat.com>
11867 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
11868 elf-init.o instead of compiling a PIC version.
11870 2002-12-11 Bruno Haible <bruno@clisp.org>
11872 * intl/gettext.h: Renamed to ...
11873 * intl/gmo.h: ... here.
11874 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11875 * intl/gettextP.h: Update.
11876 * intl/loadmsgcat.c: Update.
11878 * intl/gettextP.h (PARAMS): Make more portable.
11879 (attribute_hidden): Define as empty macro if not already defined.
11880 * intl/hash-string.h (PARAMS): Make more portable.
11881 * intl/loadinfo.h (PARAMS): Likewise.
11882 * intl/plural-exp.h (PARAMS): Likewise.
11883 (attribute_hidden): Move definition near the definition of
11886 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
11887 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
11889 2002-07-13 Bruno Haible <bruno@clisp.org>
11891 * intl/dcigettext.c (freea): New macro.
11892 (FREE_BLOCKS): Free also the registered blocks.
11893 (DCIGETTEXT): Free the 'search' variable.
11894 Reported by Andreas Fischer <a.fischer@asentics.de>.
11896 2002-04-27 Bruno Haible <bruno@clisp.org>
11898 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
11899 * intl/dcigettext.c: Likewise.
11900 * intl/dcgettext.c: Likewise.
11901 * intl/dgettext.c: Likewise.
11902 * intl/gettext.c: Likewise.
11903 * intl/dcngettext.c: Likewise.
11904 * intl/dngettext.c: Likewise.
11905 * intl/ngettext.c: Likewise.
11906 * intl/textdomain.c: Likewise.
11907 * intl/bindtextdom.c: Likewise.
11908 * intl/plural-exp.h: Likewise.
11910 2002-01-02 Bruno Haible <bruno@clisp.org>
11912 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
11914 2001-04-30 Bruno Haible <bruno@clisp.org>
11916 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
11917 default macro definitions. Needed for mingw32.
11919 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11921 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
11922 __builtin_constant_p to macro parameter.
11924 * sysdeps/generic/sigpause.c: Define all functions as weak.
11925 * sysdeps/posix/sigpause.c: Likewise.
11927 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
11930 2002-12-10 Jakub Jelinek <jakub@redhat.com>
11932 * elf/tst-array1.c (preinit_array, init_array, fini_array):
11933 Explicitly align the array to sizeof (void *).
11934 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
11936 * include/libc-symbols.h: Fix a comment typo.
11938 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
11939 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
11941 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
11943 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
11944 (__libc_sigsuspend): Likewise.
11945 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
11946 (__libc_sigsuspend): Likewise.
11947 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
11948 (creat): New weak alias.
11950 2002-12-10 Roland McGrath <roland@redhat.com>
11952 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
11953 contributes a manual chapter.
11954 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
11957 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
11958 and move contents to ...
11959 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
11960 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
11961 it instead of duplicating its contents.
11962 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
11964 2002-12-09 Jakub Jelinek <jakub@redhat.com>
11966 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
11968 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
11970 (EXTRA_LD_ENVVARS): Use it.
11971 (DL_OSVERSION_INIT): Define.
11972 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
11974 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
11976 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11978 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
11980 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
11981 call. It is not allowed to destroy pthread mutexes which are
11982 still in use even though it is safe for our implementations. If
11983 somebody still uses the descriptor it is a bug.
11985 2002-12-09 Richard Henderson <rth@redhat.com>
11987 * csu/abi-note.S: Use .p2align, not .align.
11989 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11991 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
11992 __libc_select aliases.
11994 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
11997 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
11999 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
12001 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
12003 * sysdeps/unix/syscalls.list: Define __libc_select alias.
12005 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
12007 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
12008 __libc___xpg_sigpause aliases.
12010 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
12012 * misc/error.c: Remove use of USE_IN_LIBIO.
12014 2002-12-08 Roland McGrath <roland@redhat.com>
12016 * elf/Makefile (tests): Uncomment tst-array[123].
12017 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
12018 * csu/elf-init.c: New file.
12019 * csu/Makefile (routines, static-only-routines): Add elf-init.
12020 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
12021 and __libc_csu_fini in place of _fini.
12022 * sysdeps/arm/elf/start.S: Likewise.
12023 * sysdeps/cris/elf/start.S: Likewise.
12024 * sysdeps/hppa/elf/start.S: Likewise.
12025 * sysdeps/i386/elf/start.S: Likewise.
12026 * sysdeps/ia64/elf/start.S: Likewise.
12027 * sysdeps/m68k/elf/start.S: Likewise.
12028 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
12029 * sysdeps/mips/elf/start.S: Likewise.
12030 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
12031 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
12032 * sysdeps/s390/s390-32/elf/start.S: Likewise.
12033 * sysdeps/s390/s390-64/elf/start.S: Likewise.
12034 * sysdeps/sh/elf/start.S: Likewise.
12035 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12036 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12037 * sysdeps/x86_64/elf/start.S: Likewise.
12039 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
12040 struct containing function ptr and value, free it.
12041 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
12042 It's not safe to let the new thread use the SIGEV pointer.
12044 2001-10-20 Paul Eggert <eggert@twinsun.com>
12046 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
12047 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
12048 Use strerror_r that is only a macro, even if it is not a function.
12049 (strerror): Check for HAVE_DECL_STRERROR before declaring.
12050 (private_strerror): Use prototypes, not old-style function definition.
12051 (print_errno_message): New function.
12052 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
12053 char*-flavored one.
12054 (error_tail, error, error_at_line): Use it.
12056 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
12058 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
12060 2002-12-08 Ulrich Drepper <drepper@redhat.com>
12062 * scripts/output-format.sed: Fix bug in one of the s expressions
12063 which used / for one too many things.
12065 * include/unistd.h: Declare __libc_close.
12067 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12069 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
12071 2002-12-07 Roland McGrath <roland@redhat.com>
12073 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
12074 from 2002-12-06, but remove unnecessary memset call without removing
12075 necessary copy of initialization image.
12077 * Makerules ($(common-objpfx)format.lds): New target.
12078 (common-generated): Add it.
12079 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
12080 * scripts/output-format.sed: New file.
12081 * Makefile (distribute): Add it.
12083 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12085 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
12086 Reported by Art Haas <ahaas@airmail.net>.
12088 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
12090 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
12092 2002-12-07 Jakub Jelinek <jakub@redhat.com>
12094 * string/test-strncpy.c (do_random_tests): Improve test coverage.
12096 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12098 * test-skeleton.c (timeout_handler): Allow expected signal to be
12101 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
12103 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
12105 2002-12-07 Jakub Jelinek <jakub@redhat.com>
12107 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
12108 (SYSCALL_ERROR_HANDLER): Fix a pasto.
12109 Reported by Jeff Bailey <jbailey@nisa.net>.
12111 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12113 * sysdeps/generic/libc-tls.c: Undo last patch.
12115 * include/wctype.h: Define iswalnum with libc_hidden_proto.
12117 * include/signal.h: Define raise with libc_hidden_proto.
12119 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
12120 __execve instead of snprintf and execve.
12122 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
12125 2002-12-06 Jakub Jelinek <jakub@redhat.com>
12127 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
12128 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
12130 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12132 * misc/syslog.c (log_cleanup): New function.
12133 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
12134 (closelog): Likewise.
12136 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
12137 * elf/dl-iteratephdr.c: Likewise.
12138 * elf/dl-lookup.c: Likewise.
12139 * elf/dl-misc.c: Likewise.
12140 * elf/dl-open.c: Likewise.
12141 * elf/dl-support.c: Likewise.
12142 * elf/rtld.c: Likewise.
12143 * sysdeps/generic/ldsodefs.h: Likewise.
12144 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
12145 * sysdeps/mach/bits/libc-lock.h: Likewise.
12146 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
12148 2002-12-06 Roland McGrath <roland@redhat.com>
12150 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
12152 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
12153 (malloc_starter, memalign_starter, free_starter): Don't define these.
12154 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
12155 Don't declare them either.
12156 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
12157 __pthread_initialize, so no need to set hooks to *_starter.
12158 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
12159 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
12160 (__libc_malloc_pthread_startup): New function.
12161 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
12163 * malloc/hooks.c (memalign_starter): New function.
12164 * malloc/malloc.c: Declare it.
12165 * malloc/arena.c (save_memalign_hook): New variable.
12166 (ptmalloc_init): Set __memalign_hook to memalign_starter.
12168 * elf/dl-minimal.c (free): Clear the memory.
12169 (calloc): Just call malloc, knowing all memory it returns is cleared.
12171 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
12172 malloc and memset; calloc can avoid the zeroing when redundant.
12173 (_dl_tls_setup): Likewise.
12174 * elf/dl-load.c (decompose_rpath): Likewise.
12175 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
12176 call, since memory from sbrk at startup is already zero.
12178 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
12179 error string for failure, null for success. Update callers.
12180 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
12181 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12183 2002-12-05 Jakub Jelinek <jakub@redhat.com>
12185 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
12187 (readahead): Change args to i:iii.
12188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
12189 Change args to i:iii.
12190 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
12193 2002-12-05 Roland McGrath <roland@redhat.com>
12195 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
12196 call all functions rather than none.
12197 Reported by Mark P. Mitchell <mark@codesourcery.com>.
12199 2002-12-04 Roland McGrath <roland@redhat.com>
12201 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
12202 on _nl_current_LC_* variables.
12204 2002-12-05 Ulrich Drepper <drepper@redhat.com>
12206 * dirent/bug-readdir1.c (main): Don't call closedir, just close
12207 the file descriptor. This is testing what the bug report was about.
12209 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12211 * po/be.po: New file.
12213 * argp/Makefile (tests): Add tst-argp1.
12215 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
12216 Change type of _attribute to void*.
12217 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12218 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
12219 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
12220 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12221 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12223 2002-12-04 Roland McGrath <roland@redhat.com>
12225 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
12226 members to the end, so a libpthread compiled with !USE_TLS will still
12227 find other members properly.
12229 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
12230 operand for DEST memory. Fix dummy input operand to use SRC.
12231 Reported by Davin McCall <davmac@ozonline.com.au>.
12233 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
12234 alignment when initializing the DTV entry.
12236 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
12237 when TLS has not been set up, try to set it up if we can.
12238 * elf/tst-tls4.c: Revert last change.
12239 * elf/tst-tls5.c: Likewise.
12240 * elf/tst-tls6.c: Likewise.
12241 * elf/tst-tls7.c: Likewise.
12242 * elf/tst-tls8.c: Likewise.
12243 * elf/tst-tls9.c: Likewise.
12245 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
12246 * sysdeps/generic/ldsodefs.h: Declare it.
12247 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
12248 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
12249 function, broken out of __libc_setup_tls.
12250 (init_static_tls): Likewise.
12251 (__libc_setup_tls): Call them.
12252 (_dl_tls_setup): New function, uses new subroutines.
12254 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
12255 Clear the pointer when returning true.
12256 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
12257 first element of the slotinfo list too.
12259 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
12262 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
12263 (_dl_determine_tlsoffset): Likewise.
12265 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
12266 startup_error_tsd, made global.
12267 (dl_main): Update initialization.
12268 * elf/dl-tsd.c: Likewise.
12269 * sysdeps/generic/ldsodefs.h: Declare it.
12271 2002-12-03 Ulrich Drepper <drepper@redhat.com>
12273 * manual/texinfo.tex: Update from latest upstream version.
12275 2002-12-03 Roland McGrath <roland@redhat.com>
12277 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
12278 area surplus in calculation for sbrk call.
12280 * iconvdata/cp1125.c: New file.
12281 * iconvdata/Makefile (distribute): Add it.
12282 (modules): Add CP1125.
12283 (gen-8bit-gap-modules): Add cp1125.
12284 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
12285 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
12287 2002-12-03 Andreas Jaeger <aj@suse.de>
12289 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
12291 2002-12-03 Ulrich Drepper <drepper@redhat.com>
12293 * sysdeps/posix/system.c (do_system): Make signal handler
12294 installation thread safe.
12296 2002-12-02 Roland McGrath <roland@redhat.com>
12298 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
12299 caller from EXTRA to -.
12300 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12301 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
12302 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
12304 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
12306 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
12307 bits of RM are cleared.
12309 2002-12-02 Roland McGrath <roland@redhat.com>
12311 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
12312 TLS setup is required.
12313 * elf/tst-tls5.c: Likewise.
12314 * elf/tst-tls6.c: Likewise.
12315 * elf/tst-tls7.c: Likewise.
12316 * elf/tst-tls8.c: Likewise.
12317 * elf/tst-tls9.c: Likewise.
12319 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
12320 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
12321 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
12322 for being null before calling free_slotinfo.
12323 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
12324 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
12326 2002-11-30 Bruno Haible <bruno@clisp.org>
12328 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
12329 (struct __gconv_step): New field __btowc_fct.
12330 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
12331 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
12333 (__gconv_btwoc_ascii): New declaration.
12334 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
12335 (__gconv_btwoc_ascii): New function.
12336 * iconv/gconv_builtin.h: Add BtowcFct argument to all
12337 BUILTIN_TRANSFORMATION invocations.
12338 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
12339 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
12340 * iconv/gconv_builtin.c (map): New field btowc_fct.
12341 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
12343 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
12344 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
12345 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
12346 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
12347 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
12348 (gconv_init): Initialize __btowc_fct field.
12349 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
12350 * iconv/loop.c: Document ONEBYTE_BODY.
12351 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
12352 Undefine ONEBYTE_BODY at the end.
12353 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
12354 * iconvdata/8bit-gap.c (NONNUL): New macro.
12355 (BODY for FROM_LOOP): Use it.
12356 (ONEBYTE_BODY): New macro.
12357 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
12358 (NONNUL): New macro.
12359 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
12360 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
12361 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
12362 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
12363 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
12364 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
12365 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
12366 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
12367 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
12368 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
12369 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
12370 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
12371 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
12372 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
12373 * iconvdata/ibm932.c: Include <stdbool.h>.
12374 (TRUE, FALSE): Remove macros.
12375 (BODY for FROM_LOOP): Remove unused variable rp1.
12376 (ONEBYTE_BODY): New macro.
12377 (BODY for TO_LOOP): Use bool.
12378 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
12379 * iconvdata/ibm943.c: Include <stdbool.h>.
12380 (TRUE, FALSE): Remove macros.
12381 (BODY for FROM_LOOP): Remove unused variable rp1.
12382 (ONEBYTE_BODY): New macro.
12383 (BODY for TO_LOOP): Use bool.
12384 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
12385 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
12386 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
12387 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
12388 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
12389 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
12390 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
12391 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
12392 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
12393 * iconvdata/gbbig5.c: Tweak comment.
12395 2002-12-02 Ulrich Drepper <drepper@redhat.com>
12397 * po/fi.po: Update from translation team.
12399 2002-12-01 Roland McGrath <roland@redhat.com>
12401 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
12402 testing getdents64 return value.
12404 * scripts/versions.awk: Don't pass -n flag to sort command.
12406 * posix/bug-regex13.c: Include <string.h>.
12408 * sysdeps/generic/libc-start.c (__libc_start_main): Do
12409 DL_SYSDEP_OSCHECK here.
12410 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
12411 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
12413 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
12414 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
12416 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
12417 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
12419 * include/link.h: Comment typo fix.
12421 2002-12-01 Roland McGrath <roland@frob.com>
12423 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
12424 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
12425 _POSIX_MEMORY_PROTECTION): Likewise.
12426 (_POSIX_POLL, _POSIX_SELECT): Removed.
12428 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12430 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
12431 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
12433 2002-11-28 Jakub Jelinek <jakub@redhat.com>
12435 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
12437 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
12440 2002-11-28 Ulrich Drepper <drepper@redhat.com>
12442 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
12443 branch prediction buffers by using unpaired call/ret.
12445 2002-11-27 Ulrich Drepper <drepper@redhat.com>
12447 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
12448 first parameters constraint string.
12449 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
12451 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
12453 * posix/regcomp.c (parse_expression): Set the bit since the back
12454 reference is used in the regular expression.
12455 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
12457 (re_node_set_init_copy): Likewise.
12458 * posix/regex_internal.h (state_array_t): New structure.
12459 (re_sub_match_last_t): Likewise.
12460 (re_sub_match_top_t): Likewise.
12461 (re_match_context_t): Add new members.
12462 (re_dfa_t): Likewise.
12463 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
12464 to check the matching is really correct, and retry if failed.
12465 Move the routin pruning the impossible nodes from here, ...
12466 (prune_impossible_nodes): To this function.
12467 (check_matching): Invoke check_subexp_matching_top, and replace
12468 redundant checking with transit_state_bkref invocation.
12469 (proceed_next_node): Replace strncmp with memcmp. Reported by
12470 Paolo Bonzini <bonzini@gnu.org>.
12471 (update_cur_sifted_state): Remove search_subexp invocation.
12472 (search_subexp): Remove this function.
12473 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
12475 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
12476 Remove unused invocation of match_ctx_add_entry.
12477 (transit_state): Invoke check_subexp_matching_top.
12478 (check_subexp_matching_top): New function.
12479 (transit_state_bkref): Remove unused array.
12480 Merge transit_state_bkref_loop.
12481 (transit_state_bkref_loop): Use get_subexp instead of
12482 sift_states_backward. Use search_cur_bkref_entry for optimization.
12483 Merge this function to transit_state_bkref.
12484 (get_subexp): New function.
12485 (get_subexp_sub): Likewise.
12486 (find_subexp_node): Likewise.
12487 (check_arrival): Likewise.
12488 (check_arrival_expand_ecl): Likewise.
12489 (check_arrival_expand_ecl_sub): Likewise.
12490 (expand_bkref_cache): Likewise.
12491 (match_ctx_init): Initialize new members.
12492 (match_ctx_clean): New function.
12493 (match_ctx_free): Release new members.
12494 (match_ctx_free_subtops): New function.
12495 (match_ctx_add_entry): Fix indent.
12496 (search_cur_bkref_entry): New function.
12497 (match_ctx_add_subtop): Likewise.
12498 (match_ctx_add_sublast): Likewise.
12500 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12502 * iconv/Makefile (tests): Remove tst-iconv4.c
12503 * iconv/tst-iconv4.c: Moved to...
12504 * iconvdata/tst-iconv4.c: ...here. New file.
12505 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
12507 2002-11-25 Roland McGrath <roland@redhat.com>
12509 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
12510 Grok AF_LINK if defined.
12511 From Momchil Velikov <velco@fadata.bg>.
12513 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
12514 brdaddr, or dstaddr, just set those pointers to null and don't fail.
12515 Reported by Momchil Velikov <velco@fadata.bg>.
12517 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
12518 is > sizeof IFR->ifa_addr, advance past the whole longer length.
12519 (__ifreq): Count up NIFS that way too.
12520 Reported by Momchil Velikov <velco@fadata.bg>.
12522 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
12524 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
12525 and <fpu_control.h>.
12527 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12529 * elf/elf.h (EM_ST19): Fix typo.
12531 2002-11-25 Jakub Jelinek <jakub@redhat.com>
12533 * include/errno.h (__set_errno): Define as errno = val
12536 2002-11-24 Roland McGrath <roland@redhat.com>
12538 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
12539 * sysdeps/posix/writev.c: Likewise.
12540 From Momchil Velikov <velco@fadata.bg>.
12542 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
12543 calling *GL(dl_error_catch_tsd) for a thread-local location.
12544 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
12545 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
12546 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
12548 * libio/iofflush.c: Add libc_hidden_def.
12549 * libio/iofwrite.c: Likewise.
12550 * sysdeps/generic/sigtimedwait.c: Likewise.
12551 * sysdeps/generic/sigwaitinfo.c: Likewise.
12552 * sysdeps/posix/sigwait.c: Likewise.
12553 Reported by Momchil Velikov <velco@fadata.bg>.
12555 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
12556 to match <arpa/inet.h> declaration.
12557 * inet/inet_netof.c (inet_netof): Likewise.
12558 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
12559 Reported by Momchil Velikov <velco@fadata.bg>.
12561 * configure.in: Skip AUTOCONF check under --without-cvs.
12562 * configure: Regenerated.
12564 * posix/Makefile (headers): Add bits/pthreadtypes.h.
12565 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
12566 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
12568 2002-11-24 Andreas Schwab <schwab@suse.de>
12570 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
12571 with six arguments.
12573 2002-11-19 Jim Meyering <jim@meyering.net>
12575 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
12577 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
12579 2002-11-23 Roland McGrath <roland@redhat.com>
12581 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
12582 Just produce hex output for datum sizes.
12584 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
12585 Reported by Luca Barbieri <ldb@ldb.ods.org>.
12587 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
12589 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
12590 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12591 and __unused3 fields.
12592 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
12593 [__WORDSIZE == 32]: Only PPC32 requires __unused1
12594 and __unused2 fields.
12595 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
12596 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12597 __unused3, and __unused4 fields.
12599 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
12600 obtain lowest address for profiling in __monstartup call.
12602 2002-11-21 Roland McGrath <roland@redhat.com>
12604 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
12605 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
12607 * locale/localeinfo.h (struct locale_data): Revert last change.
12609 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
12610 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12612 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
12613 __NR_pread64 if not defined.
12614 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
12615 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12617 2002-11-21 Roland McGrath <roland@frob.com>
12619 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
12620 __libc_multiple_libcs here. Call __setfpucw.
12622 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12624 * elf/Makefile (tests): Don't run test-arrayX tests for now.
12626 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
12627 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
12628 CLONE_CHILD_*TID flags.
12630 2002-11-20 Andreas Jaeger <aj@suse.de>
12632 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
12633 We pass struct ucontext on x86-64.
12635 (GET_FRAME): Adjust.
12636 (GET_STACK): Adjust.
12638 2002-11-20 Roland McGrath <roland@redhat.com>
12640 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
12641 conditionalize [! DO_VERSIONING] #error.
12643 * scripts/abilist.awk: Grok function descriptor symbols.
12645 * intl/tst-gettext.c (main): Check return values from setlocale.
12646 Add necessary unsetenv's to make LANG=existing-locale check work.
12648 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
12649 so aborted prior runs don't confuse things.
12651 * locale/localeinfo.h (struct locale_data: union locale_data_value):
12652 Use uintptr_t instead of unsigned int for `word' member.
12653 (_NL_CURRENT_WORD): Cast to uint32_t.
12655 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
12658 2002-11-20 Ulrich Drepper <drepper@redhat.com>
12660 * elf/tls-macros.h: Add IA-64 definitions.
12661 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
12663 * iconv/Makefile (tests): Add tst-iconv4.
12664 * iconv/tst-iconv4.c: New file.
12666 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
12667 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
12668 __GCONV_INCOMPLETE_INPUT.
12669 (ucs4le_internal_loop): Likewise.
12670 (ucs4le_internal_loop_unaligned): Likewise.
12671 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
12672 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
12673 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
12675 * iconv/loop.c (LOOPFCT): First test for empty input then for full
12678 * inet/getnameinfo.c: Use extend_alloca where appropriate.
12679 * sysdeps/posix/getaddrinfo.c: Likewise.
12681 * include/alloca.h (extend_alloca): New define. Based on stack
12682 direction it'll try to append to the previouls allocated buffer.
12684 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
12686 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
12687 use the same service for AF_INET and AF_INET6.
12689 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12691 * intl/localealias.c (read_alias_file): Use only about 400 bytes
12692 of stack space instead of 16k.
12694 2002-11-18 Wolfram Gloger <wg@malloc.de>
12697 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
12698 nothing if not initialized. Bug report from Marcus Brinkmann
12699 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12701 2002-11-19 Roland McGrath <roland@redhat.com>
12703 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
12706 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
12707 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
12708 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
12709 * configure: Regenerated.
12711 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12713 * include/dlfcn.h: __libc_dlopen is now a macro calling
12714 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
12715 (__libc_dlopen_mode): New prototype.
12716 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
12717 new parameter. Store new parameter in mode field of structure passed
12719 (struct do_dlopen_args): Add new field mode.
12720 (do_dlopen): Pass mode from parameter structure to _dl_open.
12722 2002-11-11 Randolf Chung <tausq@debian.org>
12724 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
12725 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
12726 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
12728 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
12730 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
12731 Set -mdisable-fpregs for this file.
12733 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
12735 * sysdeps/unix/sysv/linux/configure.in:
12736 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
12737 from gcc-3.0 era for backwards compatibility.
12738 * sysdeps/unix/sysv/linux/configure: Regenerate.
12740 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
12741 Define mcontext_t as a sigcontext.
12743 2002-11-18 Roland McGrath <roland@redhat.com>
12745 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
12746 Free memory in `last_result' if it was used.
12748 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
12749 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
12750 Do the parsing inline instead of copying strings and calling
12751 inet_network, and properly skip all alias names not matching the form.
12753 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
12755 2002-11-17 Ulrich Drepper <drepper@redhat.com>
12757 * manual/pattern.texi (Wordexp Example): Fix sample code.
12759 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
12760 childs stack which will be loaded into the %esi register.
12762 2002-11-14 Paul Eggert <eggert@twinsun.com>
12764 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
12765 overflow when skipping the question part and when unpacking aliases.
12767 2002-11-15 Roland McGrath <roland@redhat.com>
12769 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
12770 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
12771 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
12773 2002-11-15 Jakub Jelinek <jakub@redhat.com>
12775 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
12776 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
12778 2002-11-15 Roland McGrath <roland@redhat.com>
12780 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
12781 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
12782 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
12783 (+make-include-of-dep): New canned sequence.
12785 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
12786 From Dmitry V. Levin <ldv@altlinux.org>.
12788 2002-11-14 Roland McGrath <roland@redhat.com>
12790 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
12791 * inet/herrno.c (__libc_h_errno): Likewise.
12792 * resolv/res_libc.c (__libc_res): Likewise.
12793 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
12794 (__res_state) [! USE___THREAD]: Don't define as weak.
12795 * csu/Versions: Revert last change.
12796 * resolv/Versions: Revert last change.
12798 * Makerules ($(common-objpfx)%.make): New pattern rule.
12799 * tls.make.c: New file.
12800 * Makefile (distribute): Add it.
12802 * sysdeps/generic/errno.c [! USE___THREAD]
12803 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
12804 with compat_symbol so they are not link-time visible.
12805 [! USE___THREAD] (__libc_errno): New alias for errno.
12806 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12807 Add __libc_errno here.
12808 * inet/herrno.c [USE___THREAD]: Use this conditional
12809 in place of [USE_TLS && HAVE___THREAD].
12810 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
12811 (h_errno, _h_errno): Declare these with compat_symbol so they are not
12813 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
12814 * resolv/res_libc.c [! USE___THREAD]
12815 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
12816 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
12817 (__libc_res): Define as alias for _res.
12818 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12819 Add __libc_h_errno and __libc_res here.
12821 2002-11-14 Jakub Jelinek <jakub@redhat.com>
12823 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
12824 * resolv/Versions (h_errno, _res): Likewise.
12826 2002-11-14 Roland McGrath <roland@redhat.com>
12828 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
12829 (%.symlist): Likewise.
12831 2002-11-13 Roland McGrath <roland@redhat.com>
12833 * scripts/abilist.awk: New file.
12834 * Makefile (distribute): Add it.
12835 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
12836 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
12837 [$(subdir) = elf] (tests): Depend on libc.symlist.
12838 (generated, common-generated): Add those files.
12840 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
12841 * configure: Regenerated.
12842 * config.make.in (OBJDUMP): New variable, substituted by configure.
12844 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
12845 (mallochook, reallochook): Set them up.
12846 (checkhdr): Check HDR->magic2 value.
12847 (freehook): Reset HDR->magic2.
12848 (memalignhook): New static function.
12849 (old_memalign_hook): New static variable.
12850 (mcheck, reallochook): Set __memalign_hook to memalignhook.
12852 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
12855 2002-11-13 Andreas Jaeger <aj@suse.de>
12857 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
12859 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12861 2002-11-11 Paul Eggert <eggert@twinsun.com>
12863 * manual/crypt.texi (Cryptographic Functions): Mention that
12864 the MD5 one-way algorithm is compatible with BSD's.
12866 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12868 * posix/regex_internal.c (re_string_skip_chars): Also return the last
12870 (re_string_reconstruct): Calculate the context by itself when the
12871 offset points out of the valid range.
12872 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
12873 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
12874 (IS_WIDE_WORD_CHAR): New macro.
12875 (IS_WIDE_NEWLINE): New macro.
12877 2002-11-12 Andreas Jaeger <aj@suse.de>
12879 * sysdeps/x86_64/strchr.S: Don't use one register for two
12880 purposes, this fixes a bug noticed by test-strchr.c.
12882 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
12885 2002-11-12 Roland McGrath <roland@redhat.com>
12887 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
12888 (_G_IO_NO_BACKWARD_COMPAT): Define it.
12890 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
12891 instead of <pt-machine.h>.
12892 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
12894 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12896 2002-11-10 Roland McGrath <roland@redhat.com>
12898 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
12899 Call fputs instead of fwprintf (simpler to follow in debugger).
12901 * crypt/md5-crypt.c: Doc fix.
12903 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
12904 the beginning of generated target commands.
12906 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
12907 dependencies for these in case implicit rule search skipped the
12908 nonexistent source directory.
12909 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
12910 files with $(object-suffixes) as targets too.
12911 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
12912 and a target for it using $(make-target-directory).
12914 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
12916 2002-11-10 Roland McGrath <roland@frob.com>
12918 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
12919 * sysdeps/generic/bits/pthreadtypes.h: ... here.
12921 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
12922 l_start == 0 and l_len == 1 as we do l_len == 0.
12924 2002-11-10 Ulrich Drepper <drepper@redhat.com>
12926 * po/da.po: Update from translation team.
12928 2002-11-10 Roland McGrath <roland@redhat.com>
12930 * config.make.in (includedir): New variable, substituted by configure.
12931 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
12932 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
12934 2002-11-10 Andreas Jaeger <aj@suse.de>
12936 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
12937 REG_OLDMASK and REG_CR2 to synch with kernel header.
12940 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
12942 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
12943 * nss/getnssent_r.c (__nss_getent_r): Likewise.
12944 (__nss_setent): Likewise.
12945 (__nss_getent_r): Likewise.
12946 * inet/getnetgrent_r.c (innetgr): Likewise.
12947 (__internal_setnetgrent_reuse): Likewise.
12948 (internal_getnetgrent_r): Likewise.
12949 * inet/ether_hton.c (ether_hostton): Likewise.
12950 * inet/ether_ntoh.c (ether_ntohost): Likewise.
12951 * sunrpc/netname.c (netname2user): Likewise.
12952 * sunrpc/publickey.c (getpublickey): Likewise.
12953 (getsecretkey): Likewise.
12955 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
12957 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
12958 error in range calculation.
12960 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12962 * string/test-strspn.c (do_test): Ensure zero termination.
12963 * string/test-strpbrk.c (do_test): Likewise.
12964 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
12965 * string/test-strncpy.c (stupid_strncpy): Likewise.
12966 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
12968 2002-10-08 Roland McGrath <roland@redhat.com>
12970 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
12971 nonzero characters.
12973 2002-09-22 H.J. Lu <hjl@gnu.org>
12975 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
12976 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
12977 only if __NR_mmap2 is defined.
12979 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
12980 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
12981 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
12982 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
12984 2002-11-08 Jakub Jelinek <jakub@redhat.com>
12986 * posix/bug-regex13.c (tests): Add new test.
12988 * string/test-strchr.c (stupid_strchr): New function.
12989 (do_random_tests): Make sure the string is zero terminated.
12990 * string/test-strpbrk.c (stupid_strpbrk): New function.
12991 (do_random_tests): Make sure the string is zero terminated.
12992 * string/test-strcmp.c (stupid_strcmp): New function.
12993 (do_random_tests): Make sure the strings are zero terminated.
12994 * string/test-strspn.c (stupid_strspn): New function.
12995 (simple_strspn): Rename rej argument to acc.
12996 (do_random_tests): Make sure the string is zero terminated.
12997 * string/test-strcspn.c (stupid_strcspn): New function.
12998 * string/test-strncpy.c (stupid_strncpy): New function.
12999 * string/test-stpncpy.c (stupid_stpncpy): New function.
13000 * string/test-strncmp.c (stupid_strncmp): New function.
13001 (do_random_tests): Make sure the strings are zero terminated.
13002 * string/test-string.h (impl_t): Change test into long.
13003 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
13005 2002-11-08 Roland McGrath <roland@redhat.com>
13007 * sysdeps/ia64/elf/configure.in: Add TLS check.
13008 From Ian Wienand <ianw@cse.unsw.edu.au>.
13009 * sysdeps/ia64/elf/configure: Regenerated.
13011 2002-11-07 Roland McGrath <roland@redhat.com>
13013 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
13014 place of _IO_new_do_write.
13015 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
13016 #undef before versioned_symbol use.
13018 2002-11-07 Richard Henderson <rth@redhat.com>
13020 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
13021 * configure: Regenerated.
13022 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
13023 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
13024 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
13025 _dl_fini via gp-relative relocations.
13026 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
13028 * elf/tls-macros.h: Add alpha versions.
13029 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
13030 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
13031 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
13032 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
13033 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
13034 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
13035 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
13036 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
13037 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
13038 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
13039 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
13040 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
13041 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
13042 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
13043 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
13044 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
13045 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
13046 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
13048 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
13049 Kill argument registers across the inline syscall.
13051 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
13053 * linuxthreads/sysdeps/alpha/tls.h: New file.
13054 * sysdeps/alpha/dl-tls.h: New file.
13056 2002-10-29 David Mosberger <davidm@hpl.hp.com>
13058 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
13059 (gmon_initializer): New function.
13060 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
13061 __gmon_start__ here. Call it from gmon_initializer() instead.
13063 2002-03-12 H.J. Lu <hjl@gnu.org>
13065 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
13066 tst-array2, and tst-array3.
13067 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
13068 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
13069 ($(objpfx)tst-array1.out): New target.
13070 ($(objpfx)tst-array2): Likewise.
13071 ($(objpfx)tst-array2.out): Likewise.
13072 ($(objpfx)tst-array3.out): Likewise.
13073 * elf/tst-array1.c: New file.
13074 * elf/tst-array1.exp: Likewise.
13075 * elf/tst-array2.c: Likewise.
13076 * elf/tst-array2dep.c: Likewise.
13077 * elf/tst-array2.exp: Likewise.
13078 * elf/tst-array3.c: Likewise.
13080 2002-10-28 David Mosberger <davidm@hpl.hp.com>
13082 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
13083 Don't add L->l_addr to array entry values.
13085 2002-11-07 Jakub Jelinek <jakub@redhat.com>
13087 * string/test-string.h: New file.
13088 * string/test-strlen.c: New file.
13089 * string/test-string.h: New file.
13090 * string/test-strcmp.c: New file.
13091 * string/test-strchr.c: New file.
13092 * string/test-strrchr.c: New file.
13093 * string/test-strcpy.c: New file.
13094 * string/test-stpcpy.c: New file.
13095 * string/test-strncpy.c: New file.
13096 * string/test-stpncpy.c: New file.
13097 * string/test-strpbrk.c: New file.
13098 * string/test-strcspn.c: New file.
13099 * string/test-strspn.c: New file.
13100 * string/test-strcat.c: New file.
13101 * string/test-strncmp.c: New file.
13102 * string/test-memchr.c: New file.
13103 * string/test-memcmp.c: New file.
13104 * string/test-memset.c: New file.
13105 * string/test-memcpy.c: New file.
13106 * string/test-mempcpy.c: New file.
13107 * string/test-memmove.c: New file.
13108 * string/Makefile (strop-tests): New variable.
13109 (tests): Add strop-tests.
13110 (distribute): Add test-string.h.
13112 2002-11-06 Ulrich Drepper <drepper@redhat.com>
13114 * posix/regcomp.c: Use tabs instead of spaces.
13115 * posix/regexec.c: Likewise.
13116 * posix/regex_internal.h: Likewise.
13118 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
13120 2002-11-06 Jakub Jelinek <jakub@redhat.com>
13122 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
13124 (regcomp): Don't set can_be_null here.
13125 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
13126 (re_compile_internal): Clear can_be_null, set regs_allocated.
13128 * posix/regcomp.c (re_set_fastmap): New function.
13129 (re_compile_fastmap_iter): Use it. Remove redundant type ==
13130 COMPLEX_BRACKET check.
13131 * posix/regexec.c (re_search_internal): Optimize searching with
13132 fastmap. Call re_string_reconstruct even if match_first is
13133 smaller than raw_mbs_idx.
13135 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
13137 * posix/regcomp (free_dfa_content): Use free_state.
13138 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
13139 pointers in case that realloc failed.
13140 (re_node_set_merge): Likewise.
13141 (register_state): Likewise.
13142 (create_newstate_common): Invoke memory release functions in case of
13144 (create_ci_newstate): Likewise.
13145 (create_cd_newstate): Likewise.
13146 (free_state): New function.
13147 * posix/regexec.c (re_search_internal): Invoke memory release
13148 functions in case of error conditions.
13149 (sift_states_backward): Likewise.
13150 (merge_state_array): Likewise.
13151 (add_epsilon_src_nodes): Likewise.
13152 (sub_epsilon_src_nodes): Likewise.
13153 (search_subexp): Likewise.
13154 (sift_states_bkref): Likewise.
13155 (transit_state_sb): Likewise.
13156 (transit_state_mb): Likewise.
13157 (transit_state_bkref_loop): Likewise.
13158 (group_nodes_into_DFAstates): Likewise.
13159 (push_fail_stack): Don't edit pointers in case that realloc failed.
13160 (extend_buffers): Likewise.
13161 (match_ctx_add_entry): Likewise.
13163 2002-11-06 Roland McGrath <roland@redhat.com>
13165 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
13166 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13168 * configure.in: Add checks on as and ld for binutils 2.13 or later.
13169 * configure: Regenerated.
13171 2002-11-06 Ulrich Drepper <drepper@redhat.com>
13173 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
13174 If re_compile_internal failed free fastmap buffer.
13175 (free_dfa_content): Broken out of regfree function. Frees all dfa
13177 (regfree): Add free_dfa_content.
13178 (re_compile_internal): If any of the called functions fails free
13179 all dfa related memory.
13181 2002-11-05 Ulrich Drepper <drepper@redhat.com>
13183 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
13184 warnings from the kernel headers.
13186 2002-11-05 Roland McGrath <roland@redhat.com>
13188 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
13189 From Johannes Stezenbach <js@convergence.de>.
13191 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
13192 #errlist-compat magic comment to give 123 as size.
13193 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
13194 (libc: GLIBC_2.2): ... here.
13195 (libc: GLIBC_2.3): Likewise.
13197 2002-11-05 Ulrich Drepper <drepper@redhat.com>
13199 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
13200 which happens at the beginning so that we can unload modules in
13203 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
13205 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
13206 under [__USE_MISC || _ASM].
13208 * elf/elf.h: Remove the obsolete SH TLS relocations.
13210 2002-11-05 Ulrich Drepper <drepper@redhat.com>
13212 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
13214 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
13217 __NR_pread64 and __NR_pwrite64.
13218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13219 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
13221 Revert change to use INLINE_SYSCALL.
13222 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
13223 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
13224 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
13225 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
13227 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
13229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
13230 Update clobber list and add a comment about the syscall ABI.
13232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
13233 s_pwrite64, s_ftruncate, s_truncate): Re-add.
13235 2002-11-05 Jakub Jelinek <jakub@redhat.com>
13237 * iconv/gconv_dl.c (free_mem): Clear loaded.
13238 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
13241 2002-11-05 Ulrich Drepper <drepper@redhat.com>
13243 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
13245 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
13246 as old code without locking. _IO_seekoff calls this function after
13247 locking the stream.
13248 * libio/ioseekpos.c: Likewise for _IO_seekpos.
13249 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
13250 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
13252 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
13253 of _IO_seekoff_internal.
13254 (_IO_rewind): Likewise.
13255 * libio/ioftell.c: Likewise.
13256 * libio/ftello.c: Likewise.
13257 * libio/ftello64.c: Likewise.
13258 * libio/iofgetpos.c: Likewise.
13259 * libio/iofgetpos64.c: Likewise.
13260 * libio/oldiofgetpos.c: Likewise.
13261 * libio/oldiofgetpos64.c: Likewise.
13262 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
13263 _IO_seekpos_internal.
13264 * libio/iofsetpos64.c: Likewise.
13265 * libio/oldiofsetpos.c: Likewise.
13266 * libio/oldiofsetpos64.c: Likewise.
13268 2002-11-04 Roland McGrath <roland@redhat.com>
13270 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
13271 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
13272 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
13273 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
13274 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
13275 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
13276 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
13277 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
13278 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
13279 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
13280 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
13281 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
13282 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
13283 Remove these, no longer used.
13285 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
13288 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
13289 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
13290 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
13291 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
13292 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
13295 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
13296 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
13297 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
13299 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
13300 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
13302 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
13304 2002-11-03 Roland McGrath <roland@redhat.com>
13306 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
13307 `_dl_tls_static_used'.
13308 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
13309 (__libc_setup_tls): Initialize it. Let the initial value of
13310 _dl_tls_static_size indicate some surplus space in the computed value.
13311 * elf/dl-open.c (_dl_tls_static_size): New variable.
13312 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
13313 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
13314 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
13315 (CHECK_STATIC_TLS): Use it.
13316 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
13317 closed objects occupied a trailing contiguous chunk of static TLS area.
13319 2002-10-18 Bruno Haible <bruno@clisp.org>
13321 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
13323 2002-11-04 Ulrich Drepper <drepper@redhat.com>
13325 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
13326 _wide_data->_IO_read_end if adjustment can be made in the current
13329 * sysdeps/unix/sysv/linux/fexecve.c: New file.
13331 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
13332 wide oriented streams are used.
13334 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
13335 service hasn't been used [PR libc/4744].
13337 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
13338 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
13340 * manual/examples/dir.c: Don't include <stddef.h>.
13341 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
13342 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
13344 2002-11-02 H.J. Lu <hjl@gnu.org>
13346 * stdio-common/reg-printf.c: Include <stddef.h>.
13348 2002-11-03 Ulrich Drepper <drepper@redhat.com>
13350 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
13352 * po/ca.po: Update from translation team.
13353 * po/es.po: Likewise.
13355 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
13356 is defined write out memory map.
13357 * sysdeps/unix/sysv/linux/segfault.c: New file.
13359 2002-11-02 Roland McGrath <roland@redhat.com>
13361 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
13362 pointers that can alias.
13363 Reported by Daniel Jacobowitz <drow@mvista.com>.
13365 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
13367 2002-11-02 Roland McGrath <roland@redhat.com>
13369 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
13370 description to be clearer and to say that *RESULT is set to ENTRY.
13372 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13374 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
13375 dests_ch arrays together. Alloca or malloc dest_states,
13376 dest_states_word and dest_states_nl arrays together. Free memory on
13379 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
13381 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
13382 and current_saltbits.
13384 2002-11-02 Roland McGrath <roland@redhat.com>
13386 * stdio-common/reg-printf.c: Include <stdlib.h>.
13388 2002-11-02 H.J. Lu <hjl@gnu.org>
13390 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
13391 caller to EXTRA instead of execve.
13393 2002-11-01 Roland McGrath <roland@redhat.com>
13395 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
13396 in place of [!(USE_TLS && HAVE___THREAD)].
13397 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
13399 2002-10-31 Roger Sayle <roger@eyesopen.com>
13401 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
13403 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
13405 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
13406 without defining FP_ROUNDMODE.
13408 2002-10-29 Jakub Jelinek <jakub@redhat.com>
13410 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
13411 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
13413 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
13414 (OLD_SIGLIST_SIZE): Define.
13415 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
13416 (OLD_SIGLIST_SIZE): Define.
13417 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
13419 2002-11-01 Jakub Jelinek <jakub@redhat.com>
13421 * sysdeps/ia64/strncpy.S: Fix recovery code.
13423 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13425 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
13427 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
13429 * elf/dl-libc.c (free_mem): Likewise.
13430 * iconv/gconv_conf.c (free_mem): Likewise.
13431 * iconv/gconv_db.c (free_mem): Likewise.
13432 * iconv/gconv_dl.c (free_mem): Likewise.
13433 * iconv/gconv_cache.c (free_mem): Likewise.
13434 * intl/finddomain.c (free_mem): Likewise.
13435 * intl/dcigettext.c (free_mem): Likewise.
13436 * locale/setlocale.c (free_mem): Likewise.
13437 * misc/fstab.c (fstab_free): Likewise.
13438 * nss/nsswitch.c (free_mem): Likewise.
13439 * posix/regcomp.c (free_mem): Likewise.
13440 * resolv/gai_misc.c (free_res): Likewise.
13441 * stdlib/fmtmsg.c (free_mem): Likewise.
13442 * sunrpc/clnt_perr.c (free_mem): Likewise.
13443 * sysdeps/generic/setenv.c (free_mem): Likewise.
13444 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
13445 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
13446 * time/tzset.c (free_mem): Likewise.
13447 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
13448 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
13449 * malloc/set-freeres.c (__libc_freeres): Likewise.
13451 * login/getutent.c: Include stdlib.h instead of stddef.h.
13452 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13453 (__getutent): Allocate buffer the first time it is run.
13454 * login/getutid.c: Include stdlib.h instead of stddef.h.
13455 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13456 (__getutid): Allocate buffer the first time it is run.
13457 * login/getutline.c: Include stdlib.h instead of stddef.h.
13458 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
13459 (__getutline): Allocate buffer the first time it is run.
13460 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
13461 (mtrace): Allocate malloc_trace_buffer.
13462 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
13463 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
13464 * string/strerror.c: Include libintl.h and errno.h.
13465 (buf): New variable.
13466 (strerror): Only allocate buffer if actually needed (unknown error).
13467 * time/tzfile.c (transitions): Add libc_freeres_ptr.
13470 2002-10-25 Jakub Jelinek <jakub@redhat.com>
13472 * include/libc-symbols.h (libc_freeres_ptr): New macro.
13473 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
13475 (__libc_freeres): Free all pointers in that section.
13476 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
13477 commands when creating .lds script.
13478 (LDSEDCMD-c.so): New variable.
13479 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13480 (rcmd_af): Use strdup to allocate ahostbuf.
13481 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13482 (rexec_af): Use strdup to allocate ahostbuf.
13483 * stdio-common/reg-printf.c (printf_funcs): Remove.
13484 (__printf_arginfo_table): Change into printf_arginfo_function **.
13485 Add libc_freeres_ptr.
13486 (__register_printf_function): Allocate __printf_arginfo_table
13487 and __printf_function_table the first time it is called.
13488 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
13489 printf_arginfo_function **.
13490 (parse_one_spec): Add __builtin_expect.
13491 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
13492 (free_mem): Remove.
13493 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
13494 (free_mem): Remove.
13495 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
13496 (string_space, map): Add libc_freeres_ptr.
13497 (free_mem): Remove.
13498 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
13499 (free_mem): Remove.
13500 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
13501 (free_mem): Remove.
13502 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
13503 (buffer): Add libc_freeres_ptr.
13504 (free_mem): Remove for _LIBC.
13505 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
13506 (free_mem): Remove.
13507 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
13508 (free_mem): Remove.
13509 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
13510 (free_mem): Remove.
13511 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
13512 (free_mem): Remove.
13513 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
13514 (free_mem): Remove.
13515 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
13516 (free_mem): Remove.
13517 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
13519 (free_mem): Remove.
13520 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
13522 (free_mem): Remove.
13524 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13526 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
13527 instead of duplicating the whole function in libc.
13529 2002-10-31 Roland McGrath <roland@redhat.com>
13531 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
13532 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
13534 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13536 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
13537 32bit-predefine when creating .new32 list and -U for each
13538 32bit-predefine when creating .new64 list.
13539 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
13541 2002-10-29 Andreas Schwab <schwab@suse.de>
13543 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
13544 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
13546 2002-10-25 Roland McGrath <roland@redhat.com>
13548 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
13549 * sysdeps/unix/sysv/linux/configure: Regenerated.
13551 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
13552 _dl_starting_up decl.
13554 2002-10-20 H.J. Lu <hjl@gnu.org>
13556 * sysdeps/unix/sysv/linux/configure.in: Don't check
13557 /lib/modules/`uname -r`/build/include for kernel headers if
13559 * sysdeps/unix/sysv/linux/configure: Regenerated.
13561 2002-10-25 Roland McGrath <roland@redhat.com>
13563 * math/math.h (M_LOG2El): Correct the value.
13564 From Stephen L Moshier <steve@moshier.net>.
13566 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
13567 conditional from __libc_multiple_libcs access. Remove kludge for weak
13568 symbol access with old compilers we no longer support.
13569 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13570 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
13572 2002-10-25 Roland McGrath <roland@redhat.com>
13574 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
13575 implement SV_RESETHAND by translating it to SA_RESETHAND.
13577 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
13579 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
13580 type on ELF64 platforms.
13582 2002-10-24 Ulrich Drepper <drepper@redhat.com>
13584 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
13586 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
13588 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13590 * elf/dl-misc.c: Include <sysdep.h>.
13591 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
13593 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
13594 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13595 (INLINE_SYSCALL): Use that.
13596 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
13597 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13598 (INLINE_SYSCALL): Use that.
13599 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
13600 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13601 (INLINE_SYSCALL): Use that.
13602 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
13604 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13605 (__INTERNAL_SYSCALL_STRING): Define.
13606 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13608 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13609 (__INTERNAL_SYSCALL_STRING): Define.
13610 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
13611 __SYSCALL_STRING to inline_syscall*.
13612 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
13614 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
13615 inline_syscall4, inline_syscall5, inline_syscall6): Add string
13618 2002-10-24 Roland McGrath <roland@redhat.com>
13620 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
13621 * sysdeps/unix/sysv/linux/init-first.c: Not here.
13622 * sysdeps/powerpc/elf/libc-start.c: Or here.
13623 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
13624 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
13625 * sysdeps/unix/sysv/aix/init-first.c: Or here.
13626 * sysdeps/generic/libc-start.c: Or here.
13627 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
13628 access with [! SHARED].
13629 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13631 * libio/bug-wfflush.c: New file.
13632 * libio/Makefile (tests): Add bug-wfflush.
13634 2002-10-23 Roland McGrath <roland@redhat.com>
13636 * stdio-common/tst-fphex.c: New file.
13637 * stdio-common/Makefile (tests): Add tst-fphex.
13638 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
13639 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
13640 chars always before the value digits.
13641 Reported by James Antill <james.antill@redhat.com>.
13643 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13645 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
13646 (free_mem): New function.
13647 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
13648 if not cross compiling.
13649 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
13650 (bug-regex14-ENV): Set.
13651 (bug-regex14-mem): New target.
13652 * posix/bug-regex14.c: New file.
13654 2002-10-23 Roland McGrath <roland@redhat.com>
13656 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
13657 target, so we don't touch it when the link fails.
13659 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
13660 Check for the result overflowing off_t and fail with EOVERFLOW.
13661 * libio/ioftell.c (_IO_ftell): Likewise.
13662 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
13664 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
13665 use a temporary timeval on the stack for gettimeofday and copy it.
13666 * login/logout.c (logout): Likewise.
13667 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
13669 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
13670 Use __SWORD_TYPE instead of int for member types.
13671 (struct statfs64): Likewise.
13672 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
13673 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
13674 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
13675 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
13676 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
13678 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
13679 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
13680 (ST_NODIRATIME): Restore fixed value of 2048.
13681 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
13682 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
13684 Rearranged <bits/types.h> definitions to reduce duplication.
13685 * sysdeps/generic/bits/types.h: Rewritten, using macros from
13686 <bits/wordsize.h> and new header <bits/typesizes.h>.
13687 * posix/Makefile (headers): Add bits/typesizes.h here.
13688 * sysdeps/generic/bits/typesizes.h: New file.
13689 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
13690 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
13691 * sysdeps/mach/hurd/bits/typesizes.h: New file.
13692 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
13693 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
13694 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
13695 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
13696 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
13697 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
13698 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
13699 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
13700 <bits/pthreadtypes.h> here, not in <bits/types.h>.
13701 * signal/signal.h: Likewise.
13703 * streams/stropts.h: Include <bits/xtitypes.h>.
13704 * streams/Makefile (headers): Add bits/xtitypes.h here.
13705 * sysdeps/generic/bits/xtitypes.h: New file.
13706 * sysdeps/s390/bits/xtitypes.h: New file.
13707 * sysdeps/ia64/bits/xtitypes.h: New file.
13708 * sysdeps/x86_64/bits/xtitypes.h: New file.
13710 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
13711 * sysdeps/generic/bits/ipctypes.h: New file.
13712 * sysdeps/mips/bits/ipctypes.h: New file.
13713 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
13714 * sysdeps/gnu/bits/msq.h: Likewise.
13715 * sysvipc/sys/ipc.h: Likewise.
13717 2002-10-22 Ulrich Drepper <drepper@redhat.com>
13719 * elf/dl-load.c (struct filebuf): For buf element to have the
13720 alignment of ElfXX_Ehdr since this is what will be stored in it.
13722 2002-10-22 Jakub Jelinek <jakub@redhat.com>
13724 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
13725 into pointer to locrec_offset.
13726 (add_locale_to_archive): Adjust callers. Free normalized_name right
13727 before returning, not immediately after add_locale, pass it to
13728 add_alias if not NULL instead of name. Rename second normalized_name
13729 occurence to nnormalized_codeset_name.
13731 * locale/programs/locarchive.c (enlarge_archive): Make sure
13732 string_size is always a multiple of 4.
13733 Reported by Andreas Schwab <schwab@suse.de>.
13735 2002-10-21 Andreas Schwab <schwab@suse.de>
13737 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
13738 caller to EXTRA instead of execve, since the latter has a
13739 higher-priority implementation in linuxthreads.
13741 2002-10-21 Roland McGrath <roland@redhat.com>
13743 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
13744 slotinfo list's len member to the proper size, not just 1.
13745 Initialize static_map.l_tls_initimage.
13747 * elf/dl-open.c (dl_open_worker): Fix loop searching for
13748 dtv_slotinfo_list element containing new modules' l_tls_modid.
13750 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
13751 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
13752 * elf/Makefile (tests): Add tst-tls9.
13753 (tests-static): Add tst-tls9-static.
13754 (tst-tls9-static-ENV): New variable.
13755 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
13757 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
13758 modids used by partially loaded modules being closed can't be known.
13760 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
13762 * posix/Makefile: Add a test case for the bug reported by Aharon
13763 Robbins <arnold@skeeve.com>.
13764 * posix/bug-regex13.c: New file.
13765 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
13767 2002-10-21 Ulrich Drepper <drepper@redhat.com>
13769 * csu/gmon-start.c: Pretty printing.
13771 2002-10-19 Art Haas <ahaas@neosoft.com>
13773 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
13774 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
13775 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
13776 * configure: Regenerated.
13778 2002-10-19 Roland McGrath <roland@redhat.com>
13780 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
13781 and then set $subdirs directly, because the new Autoconf breaks
13782 compatibility in every way imaginable and insists on whining
13783 about usage that worked since the dawn of time.
13784 * configure: Regenerated.
13786 * configure: Regenerated (using Autoconf 2.54).
13787 * sysdeps/alpha/elf/configure: Likewise.
13788 * sysdeps/generic/configure: Likewise.
13789 * sysdeps/i386/elf/configure: Likewise.
13790 * sysdeps/ia64/elf/configure: Likewise.
13791 * sysdeps/mach/hurd/configure: Likewise.
13792 * sysdeps/mach/configure: Likewise.
13793 * sysdeps/unix/configure: Likewise.
13794 * sysdeps/unix/common/configure: Likewise.
13795 * sysdeps/unix/sysv/aix/configure: Likewise.
13796 * sysdeps/unix/sysv/linux/configure: Likewise.
13797 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13798 * sysdeps/x86_64/elf/configure: Likewise.
13800 * config.make.in: Nix completely-soft nonsense.
13801 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
13802 of machine directories instead of fpu subdirectory.
13803 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
13804 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
13805 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
13806 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
13807 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
13808 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
13809 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
13810 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
13811 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
13812 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
13813 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
13814 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
13815 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
13816 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
13817 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
13818 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
13819 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
13820 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
13821 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
13822 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
13823 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
13824 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
13825 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
13826 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
13827 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
13828 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
13829 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
13830 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
13831 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
13832 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
13833 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
13834 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
13835 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
13836 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
13837 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
13838 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
13839 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
13840 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
13841 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
13842 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
13844 2002-10-19 Bruno Haible <bruno@clisp.org>
13846 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
13848 2002-10-18 Roland McGrath <roland@redhat.com>
13850 * io/Makefile (routines): Add lchmod.
13851 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
13852 * sysdeps/generic/lchmod.c: New file.
13853 * sysdeps/mach/hurd/lchmod.c: New file.
13854 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
13856 2002-10-18 Art Haas <ahaas@neosoft.com>
13858 * configure.in: Remove remaining AC_FD_CC macros, and replace
13859 AC_FD_MSG with AS_MESSAGE_FD.
13861 2002-10-18 Roland McGrath <roland@redhat.com>
13863 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
13864 typos: VALUE -> FINALADDR.
13866 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
13867 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
13868 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
13869 (inline_syscall6): Move these macros ...
13870 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
13872 * configure.in (libc_link_dests, libc_link_sources): Remove these
13873 variables and the AC_LINK_FILES call.
13875 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
13876 change to put new symbols here instead of in GLIBC_2.2.
13877 * sysdeps/powerpc/Subdirs: Move this file ...
13878 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
13880 2002-10-07 Roland McGrath <roland@redhat.com>
13882 * sysdeps/generic/bits/time.h: Replaced with contents of the
13883 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
13884 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
13885 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
13886 macros is ok even for architectures that don't now implement them.
13887 * sysdeps/mach/hurd/bits/time.h: File removed.
13888 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
13889 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
13890 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
13891 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
13892 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
13894 2002-10-18 Jeff Bailey <jbailey@gnu.org>
13896 * configure.in: Replace obsolete AC_OUTPUT syntax with
13897 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
13899 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
13900 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
13902 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
13903 * sysdeps/alpha/elf/configure.in: Likewise.
13904 * sysdeps/i386/elf/configure.in: Likewise.
13905 * sysdeps/mach/hurd/configure.in: Likewise.
13906 * sysdeps/x86_64/elf/configure.in: Likewise.
13908 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
13910 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
13911 * sysdeps/generic/configure.in: Likewise.
13912 * sysdeps/i386/elf/configure.in: Likewise.
13913 * sysdeps/ia64/elf/configure.in: Likewise.
13914 * sysdeps/mach/configure.in: Likewise.
13915 * sysdeps/mach/hurd/configure.in: Likewise.
13916 * sysdeps/unix/configure.in: Likewise.
13917 * sysdeps/unix/common/configure.in: Likewise.
13918 * sysdeps/unix/sysv/aix/configure.in: Likewise.
13919 * sysdeps/unix/sysv/linux/configure.in: Likewise.
13920 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
13921 * sysdeps/x86_64/elf/configure.in: Likewise.
13923 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
13924 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
13925 that it's obvious when extra autoconf machinery is being dragged in.
13927 2002-10-18 Roland McGrath <roland@redhat.com>
13929 * configure.in: Remove bogus echo included in
13930 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
13931 * configure: Regenerated.
13933 2002-10-18 Jakub Jelinek <jakub@redhat.com>
13935 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
13936 (statfs_filesize_max): New function.
13937 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
13938 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
13939 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
13940 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
13941 statfs_filesize_max.
13942 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13943 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
13944 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
13946 2002-10-17 Roland McGrath <roland@redhat.com>
13948 * configure.in (MIG): Just AC_SUBST it here.
13949 * configure: Regenerated.
13950 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
13951 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
13952 * sysdeps/mach/configure: Regenerated.
13954 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
13955 and AC_PROVIDE([_AS_CR_PREPARE]).
13957 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
13958 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
13960 * elf/dl-support.c: Move _dl_tls_* variables to ...
13961 * sysdeps/generic/libc-tls.c: ... here.
13963 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
13964 allow IDX to be one past the current last slotinfo entry.
13965 (_dl_close): Pass IMAP->l_init_called for that parameter.
13967 2002-10-07 Andreas Schwab <schwab@suse.de>
13969 * aclocal.m4: Fix for autoconf 2.53.
13970 * configure.in: Likewise. Require autoconf 2.53.
13972 2002-10-08 Richard Henderson <rth@redhat.com>
13974 * soft-fp/op-4.h: Handle carry correctly in
13975 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
13976 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
13977 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
13979 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13981 * configure.in: Compute completely-soft.
13982 * config.make.in: Make completely-soft available to sub-makes.
13983 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
13984 gcc-double-routines. Add sim-full.c. Add fenv_const and
13985 fe_nomask to libm-support.
13986 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
13987 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
13988 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
13989 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
13990 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
13991 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
13992 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
13993 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
13994 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
13995 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
13996 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
13997 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
13998 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
13999 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
14000 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
14001 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
14002 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
14003 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
14004 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
14005 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
14007 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
14008 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
14009 FP_HANDLE_EXCEPTIONS.
14010 Define FP_ROUNDMODE.
14011 Redefine FP_* macros to correspond to the FE_* bit positions.
14012 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
14013 Define externs for __sim_exceptions, __sim_disabled_exceptions,
14014 __sim_round_mode, __simulate_exceptions.
14015 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
14016 * sysdeps/powerpc/bits/fenv.h: ...to here.
14018 2002-10-06 Jakub Jelinek <jakub@redhat.com>
14020 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14021 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
14022 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
14023 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
14026 2002-10-15 Jakub Jelinek <jakub@redhat.com>
14028 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
14029 __libc_res_nsend): New prototypes.
14030 * resolv/res_query.c (QUERYSIZE): Define.
14031 (__libc_res_nquery): Renamed from res_nquery. Added answerp
14032 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
14033 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
14034 res_nsend, pass answerp.
14035 (res_nquery): Changed into wrapper around __libc_res_nquery.
14036 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
14037 argument. Call __libc_res_nquerydomain and __libc_res_nquery
14038 instead of the non-__libc_ variants, pass them answerp.
14039 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
14040 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
14041 Added answerp argument. Call __libc_res_nquery instead of
14042 res_nquery, pass answerp.
14043 (res_nquerydomain): Changed into wrapper around
14044 __libc_res_nquerydomain.
14045 * resolv/res_send.c: Include sys/ioctl.h.
14046 (MAXPACKET): Define.
14047 (send_vc): Change arguments. Reallocate answer buffer if it is
14049 (send_dg): Likewise.
14050 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
14051 Reallocate answer buffer if it is too small and hooks are in use.
14052 Adjust calls to send_vc and send_dg.
14053 (res_nsend): Changed into wrapper around __libc_res_nsend.
14054 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
14055 just 1K answer buffer on the stack, use __libc_res_nsearch instead
14057 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
14058 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
14059 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
14060 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
14061 (gethostbyaddr): Similarly with __libc_res_nquery.
14062 * resolv/Versions (libresolv): Export __libc_res_nquery and
14063 __libc_res_nsearch at GLIBC_PRIVATE.
14065 2002-10-17 Roland McGrath <roland@redhat.com>
14067 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
14068 * configure: Regenerated.
14070 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
14071 before performing the reloc, not after.
14072 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14074 2002-10-17 Ulrich Drepper <drepper@redhat.com>
14076 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
14077 * locale/programs/linereader.c (lr_open): Likewise.
14078 * locale/programs/charmap-dir.c (charmap_open): Likewise.
14079 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14081 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
14083 * posix/bug-regex11.c: Add a test case for the bug reported by
14084 Paolo Bonzini <bonzini@gnu.org>.
14085 * posix/regexec.c (sift_states_bkref): Use correct destination of
14086 the back reference.
14088 2002-10-17 Roland McGrath <roland@redhat.com>
14090 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
14091 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
14092 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
14093 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
14094 Call it after performing TPOFF relocs.
14095 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14096 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14097 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
14099 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
14100 when closing a partially-initialized object.
14102 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
14103 instead of _dl_fatal_printf when we see PT_TLS.
14105 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
14106 instead of $(libof-$<).
14108 2002-10-16 Roland McGrath <roland@redhat.com>
14110 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
14111 instead of += to append, to be sure $(lib) gets expanded at defn time.
14112 (libof-$(cpp-src)): New variable, define this instead.
14113 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
14114 (lib): Don't use override.
14115 (CPPFLAGS-$(lib)): New variable, put -D's here.
14116 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
14117 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
14118 LIB found by $(libof-*) for basename, target, or source.
14119 * Makerules (CPPFLAGS-nonlib): New variable.
14120 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
14121 * locale/Makefile (lib): Likewise.
14122 * sunrpc/Makefile (lib): Likewise.
14124 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
14125 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
14126 * sysdeps/unix/sysv/linux/pathconf.h: New file.
14127 (statfs_link_max): New function, guts from fpathconf.c.
14128 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
14129 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
14130 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
14131 to use the linux/pathconf.c code by #include rather than duplication.
14132 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
14134 2002-10-16 Jakub Jelinek <jakub@redhat.com>
14136 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14137 Use __libc_errno only for libc itself.
14139 2002-10-16 Andreas Jaeger <aj@suse.de>
14141 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
14143 2002-10-16 Ulrich Drepper <drepper@redhat.com>
14145 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14146 Use __libc_errno only for libc itself.
14148 2002-10-15 Roland McGrath <roland@redhat.com>
14149 Jakub Jelinek <jakub@redhat.com>
14151 * sysdeps/unix/sysv/linux/Makefile
14152 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
14153 sparc/Makefile to produce a bi-arch file as needed.
14154 That's now parameterized by the variable $(64bit-predefine).
14155 Use LC_ALL=C for `comm' commands in that rule.
14156 No longer conditional on [$(no_syscall_list_h)].
14157 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
14158 (64bit-predefine): New variable.
14159 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
14160 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
14161 * sysdeps/unix/sysv/linux/powerpc/Makefile
14162 (64bit-predefine): New variable.
14164 2002-10-15 Roland McGrath <roland@redhat.com>
14166 * sysdeps/unix/sysv/linux/Makefile
14167 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
14169 * login/utmp-private.h: Declare __libc_utmp_lock.
14170 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
14171 and call __libc_utmp_jump_table functions directly, instead of using
14174 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
14175 * sysdeps/unix/sysv/linux/configure: Regenerated.
14177 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
14178 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
14179 Use int32_t for ll_time.
14180 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
14181 Use int32_t instead of long int for ut_session.
14182 Use an anonymous struct with 32-bit fields for ut_tv.
14183 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
14184 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
14185 here as in utmp.h for `struct utmp'.
14186 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
14187 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
14188 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
14189 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
14190 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
14191 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
14193 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
14194 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
14195 All the following files were identical or equivalent to it.
14196 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
14197 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
14198 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
14199 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
14200 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
14201 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
14202 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
14203 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
14204 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
14205 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
14207 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
14208 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
14209 Other than the previously incorrect sign of msg_iovlen, this is a
14210 no-op on 32-bit platforms. On 64-bit platforms it makes this header
14211 match their layouts as well, so the following are now identical to it.
14212 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
14213 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
14214 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
14215 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
14216 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
14218 2002-10-15 Ulrich Drepper <drepper@redhat.com>
14220 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
14221 Define for 2.4+ kernels.
14223 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
14224 are known to have the vfork syscall. Don't confuse the CPUs
14225 branch prediction unit by jumping to the return address.
14227 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
14228 support for reiserfs and xfs.
14230 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
14232 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
14234 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
14236 2002-10-16 Jakub Jelinek <jakub@redhat.com>
14238 * include/libc-symbols.h (attribute_tls_model_ie): Define.
14239 * include/errno.h (errno): Define to __libc_errno in libc.so.
14240 Add attribute_tls_model_ie.
14241 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
14242 Add attribute_tls_model_ie.
14243 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
14244 attribute_tls_model_ie.
14245 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
14247 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
14249 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
14250 attribute_tls_model_ie.
14251 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
14253 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
14254 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
14255 __libc_errno in USE___THREAD case.
14256 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14258 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
14259 __attribute__((tls_model (""))).
14260 * configure: Rebuilt.
14261 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
14263 2002-10-15 Ulrich Drepper <drepper@redhat.com>
14265 * timezone/asia: Update from tzdata2002d.
14266 * timezone/australasia: Likewise.
14267 * timezone/iso3166.tab: Likewise.
14268 * timezone/southamerica: Likewise.
14269 * timezone/zone-tab: Likewise.
14271 2002-10-15 Roland McGrath <roland@redhat.com>
14273 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
14274 Adjust TCB pointer before calling free, so we get the whole block.
14276 2002-10-14 Roland McGrath <roland@redhat.com>
14278 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
14279 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
14280 extern using attribute_hidden instead of static, avoids warning.
14282 2002-10-09 Jakub Jelinek <jakub@redhat.com>
14284 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
14285 * sysdeps/unix/sysv/linux/configure: Rebuilt.
14287 2002-10-14 Ulrich Drepper <drepper@redhat.com>
14289 * po/sv.po: Update from translation team.
14291 2002-10-12 H.J. Lu <hjl@gnu.org>
14293 * sunrpc/thrsvc.c (PROCQUIT): New.
14294 (struct rpc_arg): New.
14295 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
14296 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
14297 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
14298 (main): Modified for struct rpc_arg *.
14300 2002-10-14 Ulrich Drepper <drepper@redhat.com>
14302 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
14304 2002-10-14 Jakub Jelinek <jakub@redhat.com>
14306 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
14307 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
14308 in ld.so even if __thread is supported.
14310 2002-10-13 Jakub Jelinek <jakub@redhat.com>
14312 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
14313 Add hack to prevent the compiler from clobbering the signal context.
14314 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
14316 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
14319 2002-10-14 Andreas Jaeger <aj@suse.de>
14321 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
14322 Guido Guenther <agx@sigxcpu.org>.
14324 2002-10-14 Ulrich Drepper <drepper@redhat.com>
14326 * po/sk.po: Update from translation team.
14328 2002-09-26 Roland McGrath <roland@redhat.com>
14330 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
14331 dynamic string tag.
14332 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
14333 DL_DST_LIB based on $(slibdir).
14335 2002-10-13 Roland McGrath <roland@frob.com>
14337 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
14339 * sysdeps/mach/hurd/getresuid.c: New file.
14340 * sysdeps/mach/hurd/getresgid.c: New file.
14341 * sysdeps/mach/hurd/setresuid.c: New file.
14342 * sysdeps/mach/hurd/setresgid.c: New file.
14344 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
14345 setresgid): Declare them.
14346 * NEWS: Mention it.
14348 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
14349 add libc_hidden_proto.
14350 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
14351 getresuid, getresgid, setresuid, setresgid here.
14352 * Versions.def (libc): Define GLIBC_2.3.2 set.
14353 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
14354 Add libc_hidden_def.
14355 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
14356 * sysdeps/generic/setresgid.c: New file.
14357 * sysdeps/generic/setresuid.c: New file.
14358 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
14359 (sysdep_routines): Don't add getresuid and getresgid here.
14360 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
14361 (sysdep_routines): Don't add setresuid and setresgid here.
14362 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
14363 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
14364 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
14365 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
14366 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
14367 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
14368 * posix/Makefile (routines): Add them all here instead.
14369 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
14370 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
14371 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
14372 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
14373 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
14374 [! __NR_setresuid]: Include generic file.
14375 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
14376 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
14377 [! __NR_setresuid]: Include generic file.
14378 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
14379 Caller is - now, not EXTRA.
14380 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
14381 (setresuid, setresgid, getresuid, getresgid): Likewise.
14382 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
14383 Add these calls here.
14384 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
14385 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
14386 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
14387 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
14388 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
14389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
14391 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
14392 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
14394 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
14395 (sysdep_routines): Add setfsuid and setfsgid here.
14396 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
14397 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
14398 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
14399 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
14400 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
14401 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
14402 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
14403 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
14405 * hurd/errno.c: Renamed to ...
14406 * hurd/errno-loc.c: ... this.
14407 * hurd/Makefile (routines): errno -> errno-loc
14409 2002-10-13 Ulrich Drepper <drepper@redhat.com>
14411 * po/de.po: Update from translation team.
14413 * MakeTAGS: Add -E flag to xgettext runs.
14415 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14417 * po/fr.po: Update from translation team.
14419 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
14420 Optimize a bit for use in glibc.
14422 2002-10-12 Roland McGrath <roland@redhat.com>
14424 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
14425 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
14427 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14429 * po/sv.po: Update from translation team.
14431 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
14433 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
14435 (regfree): Likewise.
14436 (create_initial_state): Likewise.
14437 (analyze): Remove the substitutions which became useless.
14438 (calc_first): Likewise.
14439 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
14440 epsilon destination.
14441 (duplicate_node_closure): New function.
14442 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
14443 (calc_inveclosure): Likewise.
14444 (calc_eclosure): Likewise.
14445 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
14446 direct invocation of duplicate_node.
14447 (parse): Don't use comma operator in the return to avoid compiler
14449 (parse_reg_exp): Likewise.
14450 (parse_branch): Likewise.
14451 (parse_expression): Likewise.
14452 (parse_sub_exp): Likewise.
14453 (parse_dup_op): Likewise.
14454 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
14455 which became useless.
14456 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
14457 (create_cd_newstate): Likewise.
14458 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
14459 (re_token_t): Likewise.
14460 (re_dfa_t): Likewise.
14461 (re_node_set_remove): New macro.
14462 * posix/regexec.c (check_matching): Remove the handling
14464 (check_halt_node_context): Likewise.
14465 (proceed_next_node): Likewise.
14466 (pop_fail_stack): Fix the memory leak.
14467 (set_regs): Likewise.
14468 (free_fail_stack_return): New function.
14469 (sift_states_backward): Fix the memory leak. Remove the handling
14471 (update_cur_sifted_state): Append some if clause to avoid redundant
14473 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
14475 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
14476 (check_subexp_limits): Likewise.
14477 (search_subexp): Likewise.
14478 (sift_states_bkref): Likewise.
14479 (transit_state_mb): Likewise.
14480 (transit_state_bkref_loop): Likewise.
14481 (transit_state_bkref_loop): Likewise.
14482 (group_nodes_into_DFAstates): Likewise.
14483 (check_node_accept): Likewise.
14484 (sift_ctx_init): Add initializing.
14486 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14488 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
14491 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14493 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
14494 duplicated variable c.
14496 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
14499 * sysdeps/unix/sysv/linux/i386/sysdep.h
14500 (INTERNAL_SYSCALL_ERROR_P): New define.
14501 (INTERNAL_SYSCALL_ERRNO): Likewise.
14503 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
14504 Add hack to prevent the compiler from clobbering the signal context.
14506 2002-10-11 Roland McGrath <roland@redhat.com>
14508 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14511 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
14512 * sysdeps/sh/dl-lookupcfg.h: File removed.
14513 * sysdeps/i386/dl-lookupcfg.h: File removed.
14515 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
14516 missing labels and ; from last change.
14518 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
14519 number literals, so they are doubles instead of ints.
14521 2002-10-09 Roland McGrath <roland@redhat.com>
14523 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
14524 changed from [USE_TLS && HAVE___THREAD].
14526 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
14527 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
14528 * sysdeps/x86_64/dl-machine.h
14529 (elf_machine_type_class, elf_machine_rela): Likewise.
14530 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
14533 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
14534 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
14535 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
14537 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
14538 instead of ___tls_get_addr.
14539 (___tls_get_addr_internal): Add attribute_hidden to decl.
14541 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
14542 _dl_error_catch_tsd.
14543 * elf/rtld.c (startup_error_tsd): New function.
14544 (dl_main): Point _dl_error_catch_tsd at that.
14545 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
14546 use new function pointer instead.
14547 * elf/dl-tsd.c: New file.
14548 * elf/Makefile (routines): Add it.
14550 2002-10-07 Roland McGrath <roland@redhat.com>
14552 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
14553 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
14554 take _dl_load_lock around calling __writev.
14556 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
14557 (INLINE_SYSCALL): Use that.
14559 * sysdeps/generic/dl-sysdep.h: New file.
14560 * sysdeps/mach/hurd/dl-sysdep.h: New file.
14561 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
14562 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
14563 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
14564 access it directly.
14565 * elf/dl-minimal.c (__errno_location): Removed.
14566 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14567 Use GOTOFF access for errno.
14568 * sysdeps/unix/sysv/linux/i386/sysdep.h
14569 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14571 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14572 Use PC-relative access for errno.
14573 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14574 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14576 * include/tls.h: New file.
14577 (USE___THREAD): New macro.
14578 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
14579 libc or libpthread.
14580 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
14581 changed from [USE_TLS && HAVE___THREAD].
14582 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14583 * sysdeps/unix/i386/sysdep.S: Likewise.
14584 * sysdeps/unix/x86_64/sysdep.S: Likewise.
14585 * include/errno.h: Likewise.
14586 * include/netdb.h: Likewise.
14587 * include/resolv.h: Likewise.
14589 * sysdeps/generic/errno.c: New file.
14590 * csu/Makefile (aux): New variable, list errno.
14591 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
14592 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
14593 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
14594 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14595 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14596 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
14597 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
14598 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
14599 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14600 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
14601 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
14602 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
14603 * sysdeps/unix/alpha/sysdep.S: Likewise.
14604 * sysdeps/generic/start.c: Likewise.
14605 * sysdeps/unix/start.c: Likewise.
14606 * sysdeps/unix/arm/start.c: Likewise.
14607 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
14608 * sysdeps/unix/sparc/start.c: Likewise.
14609 * sysdeps/unix/sysv/irix4/start.c: Likewise.
14610 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
14612 * manual/search.texi (Tree Search Function, Hash Search Function):
14613 Mention search.h clearly.
14615 2002-10-05 Roland McGrath <roland@redhat.com>
14617 * elf/dl-fxstat64.c: File removed.
14618 * elf/dl-xstat64.c: File removed.
14619 * elf/Makefile (rtld-routines): Remove them.
14620 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
14621 Instead, use strong_alias instead of versioned_symbol in the
14622 !SHLIB_COMPAT case.
14623 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
14624 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
14626 * include/shlib-compat.h
14627 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
14628 [! NOT_IN_libc] (IS_IN_libc): Define it.
14629 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
14630 * elf/Makefile (CPPFLAGS-.os): Likewise.
14632 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
14633 Return the status instead of calling exit.
14635 * Makeconfig (CFLAGS): Prepend -std=gnu99.
14636 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
14637 Remove superfluous rm command, whose @ plus make bugs hid
14638 all these commands from the make output.
14640 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
14641 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
14642 Use that file's contents instead of literal echo's for the prologue.
14643 * include/features.h: Include <gnu/stubs.h> unconditionally.
14644 * include/gnu/stubs.h: New file.
14646 2002-09-30 Roland McGrath <roland@redhat.com>
14648 * elf/rtld-Rules: New file.
14649 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
14650 $(objpfx)rtld-libc.a): New targets.
14651 (generated): Add them.
14652 (reloc-link): Remove -o $@ from the variable.
14653 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
14654 (distribute): Add rtld-Rules.
14655 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
14656 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
14657 (common-mostlyclean, common-clean): Clean up rtld-* files.
14658 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
14660 2003-05-20 Jakub Jelinek <jakub@redhat.com>
14662 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
14663 If temp != NULL, copy dynamic entries which need relocation to temp
14664 array before relocating.
14665 (DL_RO_DYN_TEMP_CNT): Define.
14666 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
14667 * elf/rtld.c (_dl_start): Likewise.
14668 (dl_main): Likewise. Add dyn_temp static variable.
14670 2002-10-11 Roland McGrath <roland@redhat.com>
14672 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
14673 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
14675 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
14676 proper set of no-op insn prefixes.
14678 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
14680 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14682 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
14683 __pthread_kill_other_threads_np.
14685 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
14687 2002-10-08 Roland McGrath <roland@redhat.com>
14689 * locale/newlocale.c (__newlocale): If setting all categories to "C",
14690 just return &_nl_C_locobj instead of copying it.
14691 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
14692 * locale/duplocale.c (__duplocale): Likewise.
14694 2002-10-07 Roland McGrath <roland@frob.com>
14696 * config.h.in (HAVE_I386_SET_GDT): New #undef.
14697 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
14698 * sysdeps/mach/configure: Regenerated.
14700 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14703 Add all necessary register outputs for syscall-clobbered registers.
14705 2002-10-02 David Mosberger <davidm@hpl.hp.com>
14707 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
14708 Itanium 2 (and Itanium).
14709 Fix unwind directives and make it fit in 80 columns.
14710 * sysdeps/ia64/memset.S: Likewise.
14711 * sysdeps/ia64/memcpy.S: Likewise.
14712 Move jump table to .rodata section.
14714 2002-10-03 Roland McGrath <roland@frob.com>
14716 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
14719 2002-10-10 Andreas Jaeger <aj@suse.de>
14721 * sysdeps/x86_64/_mcount.S: Restore correct registers.
14723 2002-10-10 Ulrich Drepper <drepper@redhat.com>
14725 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
14727 2002-10-09 Ulrich Drepper <drepper@redhat.com>
14729 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
14730 _dl_allocate_tls_init. Add rtld_hidden_proto.
14731 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
14733 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
14735 * version.h (VERSION): Bump to 2.3.1.
14737 * Make-dist: Add back one of the tar invocations removed before.
14739 * stdlib/Makefile (distribute): Add allocalim.h.
14741 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
14742 (__libc_tsd_address): Use correct variable name.
14743 Patch by Stefan Jones <stefan.jones@multigig.com>.
14745 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
14746 Reported by edwardsg@sgi.com [PR libc/4678].
14748 * Versions.def (libc): Add GLIBC_2.3.1.
14749 (libpthread): Add GLIBC_2.3.1.
14751 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
14752 and __sigtimedwait.
14753 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
14754 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
14756 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
14757 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
14759 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
14760 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
14761 and make old name an alias.
14762 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
14763 and make old name an alias.
14764 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
14767 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
14768 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
14770 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
14772 * sysdeps/posix/readv.c: Likewise
14773 * sysdeps/unix/sysv/aix/readv.c: Likewise.
14774 * sysdeps/unix/sysv/linux/readv.c: Likewise.
14775 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
14777 * sysdeps/posix/writev.c: Likewise
14778 * sysdeps/unix/sysv/aix/writev.c: Likewise.
14779 * sysdeps/unix/sysv/linux/writev.c: Likewise.
14781 * include/sys/wait.h: Declare __waitid.
14782 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
14783 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
14785 * sysdeps/posix/waitid.c: Likewise.
14786 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
14788 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
14790 2002-10-07 Jakub Jelinek <jakub@redhat.com>
14792 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
14794 (__MAX_ALLOCA_CUTOFF): Define.
14795 Include allocalim.h.
14796 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
14797 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
14798 host_buffer depending on __libc_use_alloca.
14799 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
14800 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
14801 net_buffer depending on __libc_use_alloca.
14802 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
14803 buf depending on __libc_use_alloca.
14804 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
14805 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
14806 instead of hardcoded constants.
14807 Pass proper size argument to alloca and compute end for wide char
14809 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
14810 instead of hardcoded constants.
14811 * string/strcoll.c (strcoll): Likewise.
14812 * string/strxfrm.c (strxfrm): Likewise.
14813 * sysdeps/posix/readv.c (__readv): Likewise.
14814 * sysdeps/posix/writev.c (__writev): Likewise.
14815 * sysdeps/generic/allocalim.h: New file.
14817 2002-10-08 Roland McGrath <roland@redhat.com>
14819 * configure.in (aux_missing warning): Change "too old" to
14820 "incompatible versions", since for autoconf it's "too new" right now.
14821 * configure: Regenerated.
14823 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
14824 one found doesn't work on our configure.in.
14825 * configure: Regenerated.
14826 * config.make.in (AUTOCONF): New substituted variable.
14827 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
14828 (autoconf-it): ... here, use that instead of defining conditionally.
14829 Use $(AUTOCONF) instead of literal autoconf.
14830 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
14831 with this condition.
14832 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
14834 2002-10-08 Ulrich Drepper <drepper@redhat.com>
14836 * Make-dist (dist): Cleanup a bit. We are not interested in the
14837 14 char filename limit anymore. Remove intermediate files and
14840 2002-10-05 Ulrich Drepper <drepper@redhat.com>
14842 * po/sk.po: Update from translation team.
14843 * po/tr.po: Likewise.
14844 * po/gl.po: Likewise.
14846 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14848 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
14850 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14852 * version.h (RELEASE): Change to stable.
14854 2002-10-03 Jakub Jelinek <jakub@redhat.com>
14856 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
14857 __syscall_exit_group): New prototypes.
14859 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14861 * glibc 2.3 released.
14864 See ChangeLog.13 for earlier changes.