1 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4 if it won't point to itself unless it is .so symlink for the linker.
6 2003-08-25 Ulrich Drepper <drepper@redhat.com>
8 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
9 use _mode if _IO_fwide_maybe_incompatible.
10 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
11 the compatibility test.
13 2003-08-25 Jakub Jelinek <jakub@redhat.com>
15 * elf/cache.c (save_cache): Don't write beyond end of file_entries
17 Duplicate last old cache entry if the count would be odd.
19 2003-08-25 Andreas Jaeger <aj@suse.de>
21 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
22 __LONG_LONG_PAIR to long.
24 2003-08-25 Philip Blundell <philb@gnu.org>
26 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
27 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
29 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
31 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
32 and use __libc_cleanup_region_end instead.
34 2003-08-25 Ulrich Drepper <drepper@redhat.com>
36 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
38 2003-08-22 Ulrich Drepper <drepper@redhat.com>
40 * io/fcntl.h (posix_fallocate): Change type of third parameter to
42 (posix_fallocate64): Change type of third parameter to off64_t.
43 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
44 * sysdeps/posix/posix_fallocate.c: Likewise.
45 * sysdeps/generic/posix_fallocate64.c: Likewise.
46 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
47 code for 32-bit platforms.
48 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
50 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
51 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
52 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
54 2003-08-19 Ulrich Drepper <drepper@redhat.com>
56 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
57 the type, not to name.
59 * stdio-common/test-vfprintf.c (main): Don't write temporary file
60 into source directory.
62 * malloc/malloc.c (_int_free): Add cheap test for some invalid
65 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
68 2003-08-18 Ulrich Drepper <drepper@redhat.com>
70 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
73 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
75 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
76 (elf_machine_lazy_rel): Likewise.
78 2003-08-18 Art Haas <ahaas@airmail.net>
80 * malloc/malloc.h: Remove unneeded ';' where closing the C++
83 2003-08-18 Ulrich Drepper <drepper@redhat.com>
85 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
86 loading big binaries where @gprel(sym) cannot be handled in 'add'
87 but instead has to be used with 'movl'.
89 2003-08-17 Juergen Kreileder <jk@blackdown.de>
90 Andreas Jaeger <aj@suse.de>
92 * sysdeps/x86_64/bits/byteswap.h: New file.
94 2003-08-17 Andreas Jaeger <aj@suse.de>
96 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
98 2003-08-16 Jakub Jelinek <jakub@redhat.com>
100 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
101 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
102 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
103 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
104 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
105 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
106 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
107 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
108 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
110 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
111 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
112 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
113 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
114 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
116 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
117 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
118 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
120 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
121 posix_fadvise64_64): Remove.
122 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
124 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
127 (posix_fadvise64): Likewise.
128 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
129 (posix_fadvise64): Likewise.
130 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
131 (posix_fadvise64): Likewise.
132 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
134 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
135 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
136 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
137 (__posix_fadvise64_l32): New function.
138 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
140 posix_fadvise64@@GLIBC_2.3.3.
141 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
142 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
143 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
145 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
147 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
148 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
150 2003-08-15 Jakub Jelinek <jakub@redhat.com>
152 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
153 (elf_machine_matches_host): Remove weak extern stuff.
154 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
155 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
156 stuff. Use GL(dl_hwcap) unconditionally.
158 2003-08-16 Alan Modra <amodra@bigpond.net.au>
160 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
161 __libc_start_main branch.
163 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
164 Andreas Jaeger <aj@suse.de>
166 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
167 instead of setting errno.
168 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
170 2003-08-16 Andreas Jaeger <aj@suse.de>
172 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
173 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
175 2003-08-15 Ulrich Drepper <drepper@redhat.com>
177 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
179 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
180 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
181 description indicating the error value is returned, not -1.
182 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
183 __ASSUME_FADVISE64_64_SYSCALL.
184 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
185 posix_madvise in one file. Have posix_madvise defined with error
187 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
189 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
190 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
191 PSEUDO_END_ERRVAL, and ret_ERRVAL.
192 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
193 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
194 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
197 * posix/Makefile (routines): Add posix_madvise.
198 * sysdeps/generic/madvise.c: Don't define posix_madvise.
199 * sysdeps/generic/posix_madvise.c: New file.
200 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
201 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
202 Add posix_fadvise64_64.
204 2003-08-15 Jakub Jelinek <jakub@redhat.com>
206 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
207 3.0, not for !gcc or gcc < 3.0.
209 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
211 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
212 Address passed to test_in_mod1 and test_in_mod2 without casting.
213 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
214 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
215 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
216 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
218 2003-08-15 Jakub Jelinek <jakub@redhat.com>
220 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
221 Change quotes before using [].
223 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
225 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
227 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
228 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
229 argument. Select one of 64 locks from address bits.
230 (atomic_compare_and_exchange_val_acq,
231 atomic_compare_and_exchange_bool_acq): Pass memory address to
232 __sparc32_atomic_do_{,un}lock.
234 2003-08-14 Ulrich Drepper <drepper@redhat.com>
236 * assert/assert.h (assert): Use !! in front of expression to allow
239 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
240 Changed conversion of JIS X 0201 from using a table to calculating.
241 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
242 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
244 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
245 * iconvdata/CP932.irreversible: New file.
246 * iconvdata/EUC-JP-MS.irreversible: New file.
247 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
249 2003-08-13 Ulrich Drepper <drepper@redhat.com>
251 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
253 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
254 text processing tools.
256 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
257 element unless BROKEN_THREAD_SIGNALS is defined.
258 (struct requestlist): Likewise.
259 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
260 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
261 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
262 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
263 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
264 Pass current PID to __aio_sigqueue.
265 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
266 call. Don't initialize caller_pid field of waitlist element.
268 2003-08-12 Jakub Jelinek <jakub@redhat.com>
270 * libio/libioP.h (_IO_vtable_offset): Define.
271 * libio/freopen.c (freopen): Use it.
272 * libio/ioputs.c (_IO_puts): Likewise.
273 * libio/freopen64.c (freopen64): Likewise.
274 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
276 * libio/iofclose.c (_IO_new_fclose): Likewise.
277 * libio/iofputs.c (_IO_fputs): Likewise.
278 * libio/ioftell.c (_IO_ftell): Likewise.
279 * libio/iofwrite.c (_IO_fwrite): Likewise.
280 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
281 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
282 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
283 * stdio-common/vfscanf.c (ORIENT): Likewise.
285 2003-08-11 Ulrich Drepper <drepper@redhat.com>
287 * assert/assert.h: Use __builtin_expect in assert and
288 assert_perror definitions if possible.
290 2003-08-07 Jakub Jelinek <jakub@redhat.com>
292 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
293 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
294 * elf/rtld.c (rtld_lock_default_lock_recursive,
295 rtld_lock_default_unlock_recursive): New functions.
296 (dl_main): Initialize _dl_rtld_lock_recursive and
297 _dl_rtld_unlock_recursive.
299 2003-08-05 Jakub Jelinek <jakub@redhat.com>
301 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
302 config_file directories instead of prepending.
304 2003-08-02 Ulrich Drepper <drepper@redhat.com>
306 * sysdeps/unix/sysv/linux/kernel-features.h: Define
307 __ASSUME_CLONE_STOPPED.
309 2003-08-01 Ulrich Drepper <drepper@redhat.com>
311 * sysdeps/generic/bits/libc-lock.h
312 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
314 2003-08-01 Roland McGrath <roland@frob.com>
316 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
318 2003-07-31 Jakub Jelinek <jakub@redhat.com>
320 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
321 instead of __SWORD_TYPE.
322 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
323 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
324 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
326 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
328 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
330 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
332 * dlfcn/dlerror.c (once): New.
333 (dlerror): Call __libc_once.
334 (_dlerror_run): Remove once.
336 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
337 Sync with 2.5.7 and 2.5.73 kernel changes.
339 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
340 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
342 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
343 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
344 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
345 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
346 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
348 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
350 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
351 %d format and cast expected value to int.
352 * sysdeps/generic/libc-start.c (STATIC): Add
353 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
354 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
355 to ieee_float_shape_type.
356 (__sqrt): Avoid type punning.
357 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
358 to ieee_float_shape_type.
359 (__sqrtf): Avoid type punning.
360 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
361 refsym if in dl-conflict.c.
362 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
363 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
364 (__new_semctl): Shut up warning.
365 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
366 (__new_semctl): Shut up warning.
367 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
368 Change old into union of __old_shmid_ds and __old_shminfo structs.
370 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
372 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
374 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
375 * sysdeps/posix/utimes.c (__utimes): Likewise.
377 2003-07-30 Jakub Jelinek <jakub@redhat.com>
379 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
380 call dl_signal_error directly. If already relocated, call
381 GL(dl_init_static_tls) directly, otherwise queue it for later.
382 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
383 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
384 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
385 for all static TLS initializations delayed in _dl_allocate_static_tls.
386 * elf/dl-support.c (_dl_init_static_tls): New variable.
387 * include/link.h (struct link_map): Add l_need_tls_init.
388 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
389 (_dl_nothread_init_static_tls): New prototype.
390 (_dl_allocate_static_tls): Adjust prototype.
392 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
394 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
396 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
397 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
398 reloc_addr is aligned.
399 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
400 elf_machine_rela_relative): Adjust.
401 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
402 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
403 * sysdeps/cris/dl-machine.h (elf_machine_rela,
404 elf_machine_rela_relative): Adjust.
405 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
406 elf_machine_rela_relative): Adjust.
407 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
408 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
409 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
410 elf_machine_rela_relative): Adjust.
411 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
412 elf_machine_rela_relative): Adjust.
413 * sysdeps/mips/dl-machine.h (elf_machine_rela,
414 elf_machine_rela_relative): Adjust.
415 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
416 elf_machine_rela_relative): Adjust.
417 * sysdeps/powerpc/powerpc64/dl-machine.h
418 (elf_machine_rela_relative, elf_machine_rela): Adjust.
419 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
420 elf_machine_rela_relative): Adjust.
421 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
422 elf_machine_rela_relative): Adjust.
423 * sysdeps/sh/dl-machine.h (elf_machine_rela,
424 elf_machine_rela_relative): Adjust.
425 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
426 elf_machine_rela_relative): Adjust.
427 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
428 elf_machine_rela_relative): Adjust.
429 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
430 elf_machine_rela_relative): Adjust.
432 2003-07-29 Ulrich Drepper <drepper@redhat.com>
434 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
435 alignment of TCB used before the last change so that it matches
436 ld's output for IE code.
438 2003-07-29 Jakub Jelinek <jakub@redhat.com>
440 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
441 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
442 break strict-aliasing rules" warnings.
444 2003-07-29 Roland McGrath <roland@redhat.com>
446 * elf/Makefile: Revert accidental changes in last commit.
447 * elf/dl-support.c: Likewise.
449 * rt/tst-timer2.c: New file.
450 * rt/Makefile (tests): Add it.
452 2003-07-25 Jakub Jelinek <jakub@redhat.com>
454 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
456 2003-07-29 Roland McGrath <roland@redhat.com>
458 * elf/Makefile (tests) [$(build-shared) = yes]:
459 Depend on $(test-modules).
460 * dlfcn/Makefile: Likewise.
462 2003-07-28 Roland McGrath <roland@redhat.com>
464 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
465 Use that instead of `typedef' when using __*_TYPE macros in rhs.
467 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
468 * elf/tst-tlsmod14a.c: Likewise.
470 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
471 before <linux/sysctl.h>.
473 2003-07-27 Ulrich Drepper <drepper@redhat.com>
475 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
476 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
477 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
478 * sysdeps/unix/syscalls.list: umask syscall never fails.
480 2003-07-27 Andreas Jaeger <aj@suse.de>
482 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
484 2003-07-25 Jakub Jelinek <jakub@redhat.com>
486 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
487 Include bits/a.out.h.
488 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
490 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
491 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
492 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
493 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
494 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
495 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
496 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
497 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
499 2003-07-24 Jakub Jelinek <jakub@redhat.com>
501 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
502 if aiocbp != NULL and has already completed. Return -1/EINVAL if
503 aiocbp->aio_fildes does not match fildes.
505 2003-07-24 Ulrich Drepper <drepper@redhat.com>
507 * timezone/zic.c (rpytime): Replace cheap overflow check with a
510 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
511 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
512 Fix calculation of offsets to take misalignment of first byte in
514 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
515 l_tls_firstbyte_offset field.
516 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
517 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
518 Take l_tls_firstbyte_offset information into account.
519 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
520 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
521 * elf/Makefile: Add rules to build and run tst-tls14.
522 * elf/tst-tls14.c: New file.
523 * elf/tst-tlsmod14a.c: New file.
524 * elf/tst-tlsmod14b.c: New file.
526 2003-07-23 Jakub Jelinek <jakub@redhat.com>
528 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
529 (lio_listio): Use it.
530 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
531 after few defines to avoid duplication.
533 2003-07-22 Jakub Jelinek <jakub@redhat.com>
535 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
536 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
538 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
540 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
541 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
542 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
543 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
544 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
545 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
546 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
548 * sysdeps/generic/unwind.inc: Removed.
550 * include/resolv.h (__resp): Declare. Define to __libc_resp
552 (_res): If USE___THREAD, define to (*__resp).
553 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
554 even if USE___THREAD.
555 (__resp): New __thread variable.
556 (__libc_resp): New alias.
557 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
558 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
559 * sysdeps/generic/res-state.c (__res_state): Return __resp
562 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
564 * elf/dl-support.c (_dl_hwcap): New variable.
565 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
567 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
569 (__feclearexcept): Clear MXCSR if needed.
570 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
572 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
573 that newer hardware needs more than these macros.
575 * sysdeps/i386/setfpucw.c: New file.
577 2003-07-22 Jakub Jelinek <jakub@redhat.com>
579 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
580 * elf/ldconfig.c: Include dl-procinfo.c.
581 (PROCINFO_CLASS): Define.
582 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
583 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
584 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
585 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
586 Define if not yet defined. Use it instead of EXTERN. Undefine
587 at the end of the file.
588 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
590 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
591 (PROCINFO_CLASS): Likewise.
592 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
593 (PROCINFO_CLASS): Likewise.
595 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
597 * elf/ldconfig.c (main): Issue a fatal error if relative path
598 is used to build cache.
600 2003-07-22 Ulrich Drepper <drepper@redhat.com>
602 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
604 2003-07-21 Art Haas <ahaas@airmail.net>
606 * manual/charset.texi (Converting a Character): Fix example code so a
607 valid pointer is returned.
609 2003-07-22 Andreas Jaeger <aj@suse.de>
611 * elf/readlib.c (process_file): Check that file is a shared
614 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
615 will not optimize it away.
616 (__DTOR_END__): Likewise.
617 (__CTOR_END__): Likewise.
619 * include/libc-symbols.h (_elf_set_element): Use attribute used so
620 that gcc will not optimize it away.
621 (link_warning): Likewise.
623 2003-07-22 Ulrich Drepper <drepper@redhat.com>
625 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
626 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
627 * wcsmbs/tst-wcpncpy.c: New file.
629 2003-07-21 Ulrich Drepper <drepper@redhat.com>
631 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
633 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
636 * Makerules (build-module-helper): Add -z defs unless explicitly said
638 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
639 which has undefined symbols.
640 * elf/Makefile: Likewise.
642 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
643 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
644 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
645 * sysdeps/i386/fpu/fesetround.c: Likewise.
646 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
648 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
650 * elf/ldconfig.c (search_dir): Treat symlink as regular file
651 if it won't point to itself.
653 2003-07-20 Ulrich Drepper <drepper@redhat.com>
655 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
657 2003-07-20 Andreas Jaeger <aj@suse.de>
659 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
660 STANDARD_TO_LOOP_ERR_HANDLER.
661 * iconvdata/euc-jp-ms.c (BODY): Likewise.
663 2003-07-19 Ulrich Drepper <drepper@redhat.com>
665 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
667 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
669 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
670 Andreas Jaeger <aj@suse.de>
672 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
673 256K, remove unneeded declaration of __getpagesize.
675 2003-07-16 Andreas Schwab <schwab@suse.de>
677 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
679 2003-07-15 Ulrich Drepper <drepper@redhat.com>
681 * io/test-utime.c (main): Make test yet more robust.
683 2003-07-14 Ulrich Drepper <drepper@redhat.com>
685 More cancellation handling fixups.
686 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
687 * sysdeps/generic/not-cancel.h: Likewise.
688 * catgets/open_catalog.c: Use not-cancelable syscalls.
689 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
690 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
691 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
692 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
693 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
694 * libio/fileops.c: Use not-cancelable syscalls for fclose.
695 * libio/iopopen.c: Use no-cancelable syscalls.
696 * libio/stdio.h: Mark popen and pclose with __THROW again.
697 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
698 * misc/syslog.c: Fix locking and cancellation cleanup handling.
699 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
700 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
701 CFLAGS-tempname.c): Add -fexceptions.
702 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
703 * string/string.h: Mark strerror and strerror_r with _THROW again.
704 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
705 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
706 #ifs since we now need all the code compiled.
707 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
708 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
709 * sysdeps/unix/opendir.c: Likewise.
711 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
712 Add rule for EUC-JP-MS dependency.
713 * iconvdata/cp932.c: New file.
714 * iconvdata/eucjp-ms.c: New file.
715 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
716 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
718 2003-07-15 Jakub Jelinek <jakub@redhat.com>
720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
723 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
725 * sysdeps/unix/sysv/linux/kernel-features.h
726 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
729 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
731 2003-07-14 Ulrich Drepper <drepper@redhat.com>
733 * sysdeps/unix/sysv/linux/kernel-features.h: Define
734 __ASSUME_TGKILL for Alpha appropriately.
736 2003-07-12 Ulrich Drepper <drepper@redhat.com>
738 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
739 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
741 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
744 * sysdeps/unix/sysv/linux/kernel-features.h: Define
745 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
747 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
748 second parameter == NULL.
749 * sysdeps/unix/sysv/linux/utimes.c: New file.
751 2003-07-12 Jakub Jelinek <jakub@redhat.com>
753 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
754 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
757 2003-07-12 Ulrich Drepper <drepper@redhat.com>
759 * time/sys/time.h: Namespace cleanup.
760 * sysdeps/unix/sysv/linux/kernel-features.h: Define
761 __ASSUME_UTIMES for the architectures which always had the syscall.
762 * sysdeps/unix/sysv/linux/futimes.c: New file.
764 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
766 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
767 register across CENABLE and CDISABLE.
769 2003-07-11 Jakub Jelinek <jakub@redhat.com>
771 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
772 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
773 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
774 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
775 int before assigning to max to avoid warnings.
777 2003-07-11 Jakub Jelinek <jakub@redhat.com>
779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
781 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
782 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
784 2003-07-10 Jakub Jelinek <jakub@redhat.com>
786 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
787 .data.rel.ro.local to "aw".
789 2003-07-10 Ulrich Drepper <drepper@redhat.com>
791 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
792 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
793 (PIC-ccflag): Define.
795 2003-07-04 Jakub Jelinek <jakub@redhat.com>
797 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
799 * sysdeps/s390/s390-64/elf/start.S: Likewise.
801 2003-07-07 Jakub Jelinek <jakub@redhat.com>
803 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
804 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
806 2003-07-07 Ulrich Drepper <drepper@redhat.com>
808 * sysdeps/unix/sysv/linux/kernel-features.h: Version
809 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
811 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
812 compilation with HAVE_AUX_SECURE defined.
814 2003-07-05 Richard Henderson <rth@redhat.com>
816 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
818 2003-07-03 Ulrich Drepper <drepper@redhat.com>
820 * configure.in: Also check for .cfi_rel_offset pseudo-op.
822 2003-07-03 Jakub Jelinek <jakub@redhat.com>
824 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
827 2003-07-03 Ulrich Drepper <drepper@redhat.com>
829 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
831 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
833 2003-07-02 Jakub Jelinek <jakub@redhat.com>
835 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
836 decl and use with #ifdef NEED_DL_SYSINFO.
838 2003-07-02 Ulrich Drepper <drepper@redhat.com>
840 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
841 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
842 * sysdeps/unix/sysv/linux/kernel-features.h: Define
843 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
844 vsyscall DSO was added.
846 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
847 depending on selected standard.
848 (NGROUPS_MAX): Define to 8 if not defined.
850 2003-07-02 Andreas Jaeger <aj@suse.de>
852 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
854 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
856 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
857 * malloc/thread-m.h: Include <atomic.h>.
858 (atomic_full_barrier): Provide default.
859 (atomic_read_barrier): Likewise.
860 (atomic_write_barrier): Likewise.
861 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
863 2003-06-30 Ulrich Drepper <drepper@redhat.com>
865 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
867 2003-06-30 Richard Henderson <rth@redhat.com>
869 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
870 Invert the sense of the return value.
871 (__arch_exchange_16_int): Fix paste-o.
872 (__arch_exchange_{32,64}_int): Fix think-o.
874 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
876 2003-06-30 Richard Henderson <rth@redhat.com>
878 * include/sys/resource.h (__getrusage): Mark hidden.
879 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
880 * include/sys/wait.h (__wait4): Likewise.
882 2003-06-17 Guido Guenther <agx@sigxcpu.org>
884 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
886 (xstat_conv): Rename to __xstat_conv and remove static inline.
887 (xstat64_conv): Likewise.
889 2003-06-29 Ulrich Drepper <drepper@redhat.com>
891 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
892 values which cannot be handled in one nanosleep call.
894 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
896 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
897 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
899 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
901 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
903 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
906 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
908 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
909 Conditionalize function definitions that use struct kernel_stat.
910 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
911 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
912 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
914 2003-06-28 Ulrich Drepper <drepper@redhat.com>
916 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
919 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
921 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
922 (getgrent_next_file): Don't store group name to early in blacklist.
924 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
925 and use memcpy instead of strcpy.
927 2003-06-28 Ulrich Drepper <drepper@redhat.com>
929 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
931 * nis/nss_compat/compat-initgroups.c: Likewise.
932 * nis/nss_compat/compat-pwd.c: Likewise.
933 * nis/nss_compat/compat-spwd.c: Likewise.
935 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
937 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
938 functions, dlopen corresponding NSS module instead.
940 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
942 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
943 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
944 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
945 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
947 2003-06-27 Ulrich Drepper <drepper@redhat.com>
949 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
951 2003-06-26 Roland McGrath <roland@frob.com>
953 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
954 * sysdeps/mach/configure: Regenerated.
955 * sysdeps/mach/hurd/times.c (times_init): Function removed.
956 (__times): Assume `creation_time' field is available.
957 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
958 Don't append set-init.
959 * sysdeps/mach/hurd/set-init.c: File removed.
961 2003-06-26 Roland McGrath <roland@redhat.com>
963 * elf/elf.h (AT_SECURE): New macro.
964 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
965 set __libc_enable_secure.
966 (_dl_show_auxv): Add AT_SECURE to name table.
967 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
968 __libc_enable_secure and __libc_enable_secure_decided.
969 * sysdeps/unix/sysv/linux/ldsodefs.h
970 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
971 * sysdeps/unix/sysv/linux/kernel-features.h
972 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
974 2003-06-26 Ulrich Drepper <drepper@redhat.com>
976 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
977 boundary test to take rounding of nanoseconds into account.
979 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
980 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
981 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
982 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
983 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
984 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
985 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
987 2003-06-26 Andreas Schwab <schwab@suse.de>
989 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
990 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
991 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
993 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
995 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
996 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
997 dlopen corresponding NSS module instead.
998 * nis/nss_compat/compat-pwd.c: Likewise.
999 * nis/nss_compat/compat-spwd.c: Likewise.
1000 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1001 * nss/Versions: Export __nss_lookup_function.
1003 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1005 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1006 for the SH architecture.
1008 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
1010 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1012 2003-06-25 Andreas Jaeger <aj@suse.de>
1014 * stdlib/tst-strtod.c (main): Declare constant long double as
1015 suggested by Jakub Jelinek and Andreas Schwab.
1017 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1020 * stdio-common/tst-fphex.c: Fix format string.
1022 * posix/transbug.c: Include <string.h> for memset and strlen
1025 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1027 * stdlib/tst-strtod.c (main): Pass long double value.
1029 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1031 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1033 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1036 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1038 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1039 * elf/dl-libc.c (struct dl_open_hook): New.
1040 (_dl_open_hook): New variable.
1041 (do_dlsym_private): New function.
1042 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1043 and initialize it if found.
1044 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1045 call dlopen_mode hook.
1046 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1048 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1051 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1053 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1054 result to long int so that extensions to long long int work.
1055 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1057 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1059 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1060 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1061 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1063 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1064 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1065 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1066 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1068 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1070 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1071 retry once after a second. If killed == 0, assume
1072 WTERMSIG (status) == SIGKILL.
1074 2003-06-18 Roland McGrath <roland@redhat.com>
1076 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1077 elements in the table instead of printing an empty name string.
1079 2003-06-05 Roland McGrath <roland@redhat.com>
1081 * elf/elf.h (PT_GNU_STACK): New macro.
1083 2003-06-24 Ulrich Drepper <drepper@redhat.com>
1085 * include/time.h: Define CLOCK_IDFIELD_SIZE.
1086 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1087 * sysdeps/unix/clock_gettime.c: Likewise.
1088 * sysdeps/unix/clock_settime.c: Likewise.
1089 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1090 clock id for thread CPU clocks.
1092 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1093 for the fstatfs64 syscall.
1094 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1095 the statfs64 syscall.
1097 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1098 __ASSUME_STATFS64 appropriately.
1100 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1101 from statfs structure if it has been filled in.
1103 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1105 (struct statfs64): Likewise.
1106 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1107 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1109 2003-06-24 Richard Henderson <rth@redhat.com>
1111 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1112 the 64-bit syscall name.
1114 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1116 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1117 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
1119 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1120 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1122 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1123 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1126 * sysdeps/alpha/bits/atomic.h: New file.
1128 2003-06-24 Andreas Schwab <schwab@suse.de>
1130 * sysdeps/m68k/fpu/libm-test-ulps: Update.
1132 2003-06-24 Andreas Jaeger <aj@suse.de>
1134 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1135 redeclaration with 32-bit code.
1137 2003-05-19 Ed Connell <ed.connell@sas.com>
1139 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1140 floating point mask.
1141 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1143 2003-06-23 Ulrich Drepper <drepper@redhat.com>
1145 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1146 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1147 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1149 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1150 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
1151 instead of __libc_cleanup_region_*.
1153 2003-06-20 Richard Henderson <rth@redhat.com>
1155 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1156 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1158 2003-06-20 Richard Henderson <rth@redhat.com>
1160 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1161 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1163 (__ASSUME_TIMEVAL64): Set for alpha.
1164 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1165 adjtimex, osf_sigprocmask, old_adjtimex.
1166 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1167 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
1168 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1169 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1170 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1171 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1172 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1173 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1174 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1175 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1176 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
1178 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1179 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
1180 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
1181 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
1182 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1183 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
1184 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
1185 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
1186 defer to __syscall_name; error for rt_sigaction.
1187 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
1189 2003-06-18 Ulrich Drepper <drepper@redhat.com>
1191 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
1192 hasn't happened yet.
1194 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1195 Fix completely broken implementation. The second parameter is of
1196 type struct ucontext*.
1198 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
1201 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
1202 * sysdeps/generic/dl-hash.h: Likewise.
1204 * sysdeps/generic/memcmp.c: Remove inline from
1205 memcmp_common_alignment and memcmp_not_common_alignment definition.
1207 * intl/localealias.c (read_alias_file): Determine whether line is
1208 read incompletely early, before we modify the line.
1210 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1212 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
1213 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
1215 2003-06-17 Paul Mackerras <paulus@samba.org>
1217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
1218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
1219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
1220 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
1221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
1222 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
1224 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1226 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
1228 2003-06-17 Ulrich Drepper <drepper@redhat.com>
1230 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
1231 takes care of enabling cancellation.
1233 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
1234 cancelable. It's not correct to disable cancellation. Instead of
1237 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
1238 and part of the incoming set, create a temporary set without this
1240 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1241 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1243 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
1244 returning because seconds==0. Add __builtin_expect.
1246 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1248 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
1250 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
1253 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
1255 * include/libc-symbols.h: Add static_link_warning macro.
1256 * grp/initgroups.c: Print linker warning if this function
1257 is called in a static linked binary.
1258 * nss/getXXbyYY.c: Likewise.
1259 * nss/getXXbyYY_r.c: Likewise.
1260 * nss/getXXent.c: Likewise.
1261 * nss/getXXent_r.c: Likewise.
1262 * sysdeps/posix/getaddrinfo.c: Likewise.
1264 2003-06-16 Bruno Haible <bruno@clisp.org>
1266 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
1268 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
1269 (IBM1047): Add alias IBM-1047.
1270 (GBK): Add aliases MS936, WINDOWS-936.
1272 2003-06-16 Jakub Jelinek <jakub@redhat.com>
1274 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
1275 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
1276 (__xstat64_conv): Change xstat_conv to __xstat_conv.
1278 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1280 * locale/iso-639.def: Update from current official ISO 639.
1282 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
1284 2003-06-15 Andreas Jaeger <aj@suse.de>
1286 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
1288 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1289 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
1290 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
1292 * math/tgmath.h (carg): Handle real arguments.
1298 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
1299 (tests): Add test-tgmath-ret.
1300 * math/test-tgmath-ret.c: New file.
1302 * math/tgmath.h (ilogb): Return always an int.
1304 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1306 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
1307 computation so that prelinking works.
1309 2003-06-15 Ulrich Drepper <drepper@redhat.com>
1311 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
1313 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
1314 dynamic linker's map.
1316 Fix cancellation point handling wrt exception based cleanup.
1317 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
1318 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
1320 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
1321 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
1322 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
1324 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
1325 sigwait.c, and sigwaitinfo.c with exceptions.
1326 * stdlib/Makefile: Compile system.c with exceptions.
1327 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
1328 * termios/Makefile: Compile tcdrain.c with exceptions.
1329 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
1331 * sysdeps/generic/pselect.c: Likewise.
1332 * sysdeps/posix/sigpause.c: Likewise.
1333 * sysdeps/posix/system.c: Likewise.
1334 * sysdeps/posix/waitid.c: Likewise.
1335 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1336 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1337 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
1338 INTERNAL_SYSCALL to not use push inside asm statement so that
1339 unwind info is correct around the syscall.
1340 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
1341 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1343 2003-06-15 Andreas Jaeger <aj@suse.de>
1345 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1348 2003-06-15 Guido Guenther <agx@sigxcpu.org>
1350 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
1353 2003-06-14 Ulrich Drepper <drepper@redhat.com>
1355 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
1358 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
1359 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
1362 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
1363 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
1364 * inet/Makefile (routines): Add inet6_option.
1365 * inet/inet6_option.c: New file.
1366 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
1367 inet6_option_init, inet6_option_append, inet6_option_alloc,
1368 inet6_option_next, and inet6_option_find.
1370 2003-06-13 Ulrich Drepper <drepper@redhat.com>
1372 * inet/netinet/ip6.h (struct ip6_ext): Define.
1374 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
1376 Fixing gcc 3.3 warnings, part II.
1377 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
1378 * elf/dl-load.c (cache_rpath): Don't inline.
1379 * iconvdata/cns11642l2.h: Always inline all functions.
1380 * iconvdata/iso-ir-165.h: Likewise.
1381 * locale/Makefile (aux): Add coll-lookup.
1382 * locale/coll-lookup.c: New file.
1383 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
1384 (collseq_table_lookup): Likewise.
1385 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
1386 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
1388 * posix/regcomp.c: Likewise.
1389 * posix/regexec.c: Likewise.
1390 * locale/programs/3level.h (*_get): Always inline.
1391 * locale/programs/locfile.h: Move definition of handle_copy to...
1392 * locale/programs/locfile.c: ...here.
1393 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
1394 (obstack_int32_grow_fast): Likewise.
1395 (utf8_encode): Likewise.
1396 (find_element): Avoid aliasing problems.
1397 (insert_value): Likewise.
1398 (collate_read): Likewise.
1399 * nss/getent.c (print_hosts): Don't inline
1400 (print_networks): Likewise.
1401 (print_shadow): Likewise.
1402 (build_doc): Likewise.
1403 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
1405 * posix/regcomp.c (re_set_fastmap): Always inline.
1406 (seek_collating_symbol_entry): Likewise.
1407 (lookup_collation_sequence_value): Likewise.
1408 (build_range_exp): Likewise.
1409 (build_collating_symbol): Likewise.
1410 * posix/regexec.c (acquire_init_state_context): Don't inline.
1411 (clean_state_log_if_need): Likewise.
1412 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
1414 (evConsTime): Likewise.
1415 (evAddTime): Likewise.
1416 (evSubTime): Likewise.
1417 (evNowTime): Likewise.
1418 (evTimeSpec): Removed.
1419 (__libc_res_nsend): Avoid aliasing problem.
1420 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
1421 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
1422 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
1424 (_dl_string_platform): Likewise.
1425 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
1426 (wcwidth_table_lookup): Likewise.
1427 (wctrans_table_lookup): Likewise.
1429 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
1431 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1433 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
1435 2003-05-29 Jim Meyering <jim@meyering.net>
1437 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
1438 && HAVE_STRFTIME]: Use underlying_strftime for %r.
1439 Suggested by Daniel Yacob <locales@geez.org>.
1441 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
1443 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
1444 @got notation with @toc.
1445 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
1446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
1448 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1450 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
1451 if only PF_INET address is needed.
1453 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
1456 * scripts/config.guess: Update from upstream version.
1457 * scripts/config.sub: Likewise.
1459 2003-06-12 Jakub Jelinek <jakub@redhat.com>
1461 * locale/programs/ld-time.c (time_output): Also copy the era format,
1464 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
1466 * posix/transbug.c (run_test): Return 1 for failure.
1467 (do_test): Compare only if run_test is successful.
1469 2003-06-12 Simon Josefsson <jas@extundo.com>
1471 * argp/argp.h [!__THROW]: Define if undefined.
1473 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1475 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
1476 more than four parameters.
1477 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1479 2003-06-12 Jakub Jelinek <jakub@redhat.com>
1481 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
1482 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
1483 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
1485 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
1487 2003-06-12 Roland McGrath <roland@redhat.com>
1489 * Makerules ($(objpfx)stubs): Rewrite sed magic.
1491 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
1493 * posix/regcomp.c (parse_expression): Deliver translation to
1494 build_word_op, and build_charclass.
1495 (build_charclass): Apply translation for character classes too.
1496 (build_word_op): Deliver translation to build_charclass.
1497 * posix/transbug.c: New file.
1498 * posix/Makefile (tests): Add transbug.
1500 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
1502 * posix/regexec.c (group_nodes_into_DFAstates): Check for
1503 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
1504 'continue' before the others.
1506 2003-06-11 Ulrich Drepper <drepper@redhat.com>
1508 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
1509 function [PR libc/5045].
1511 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
1514 * time/tzfile.c: Add a couple of __builtin_expect.
1516 Remove warnings gcc 3.3 shows.
1517 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
1518 * elf/dl-load.c (fillin_rpath): Likewise.
1519 (add_path): Likewise.
1520 * elf/dl-version.c (find_needed): Always inline.
1521 * elf/do-lookup.c (FCT): Don't inline.
1522 * iconv/Makefile: Extend vpath to intl subdir.
1523 (iconvconfig-modules): Add hash-string.
1524 * iconv/gconv_charset.h (strip): Don't inline.
1525 (upstr): Always inline.
1526 Move __gconv_compare_alias prototype to...
1527 * iconv/gconv_int.h: ...here.
1528 * iconv/gconv_db.c: Don't include gconv_charset.h.
1529 * iconv/gconv_conf.c (add_alias): Don't inline.
1530 (insert_module): Likewise.
1531 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
1532 (internal_ucs4_loop_unaligned): Likewise.
1533 (internal_ucs4_loop_single): Likewise.
1534 (ucs4_internal_loop): Likewise.
1535 (ucs4_internal_loop_unaligned): Likewise.
1536 (ucs4_internal_loop_single): Likewise.
1537 (internal_ucs4le_loop): Always inline.
1538 (internal_ucs4le_loop_unaligned): Likewise.
1539 (internal_ucs4le_loop_single): Likewise.
1540 (ucs4le_internal_loop): Likewise.
1541 (ucs4le_internal_loop_unaligned): Likewise.
1542 (ucs4le_internal_loop_single): Likewise.
1543 * iconv/loop.c: Always inline the defined functions.
1544 * iconvdata/cns11642.h: Likewise.
1545 * iconvdata/cns11642l1.h: Likewise.
1546 * iconvdata/euc-kr.c: Likewise.
1547 * iconvdata/gb2312.h: Likewise.
1548 * iconvdata/jis0201.h: Likewise.
1549 * iconvdata/jis0208.h: Likewise.
1550 * iconvdata/jis0212.h: Likewise.
1551 * iconvdata/jisx0213.h: Likewise.
1552 * iconvdata/ksc5601.h: Likewise.
1553 * iconvdata/utf-7.c (base64): Don't inline.
1554 * include/libc-symbols.h (symbol_set_first_element): Add cast
1555 (symbol_set_end_p): Likewise.
1556 * include/set-hooks (RUN_HOOK): Likewise.
1557 * inet/Makefile (aux): Add ifreq.
1558 * intl/Makefile (aux): Add some entries from routines. Add
1560 * intl/hash-string.c: New file.
1561 * intl/hash-string.h: Remove hash_string definition. Declare
1563 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
1564 * iconv/iconvconfig.c (new_name): Likewise.
1565 * intl/dcigettext.c (_nl_find_msg): Likewise.
1566 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
1567 * io/ftw.c (open_dir_stream): Always inline.
1568 (process_entry): Don't inline.
1569 * locale/findlocale.c: Include gconv_int.h.
1570 * locale/setlocale.c (new_composite_name): Don't inline.
1571 * locale/weight.h (findidx): Always inline.
1572 * locale/weightwc.h (findidx): Likewise.
1573 * locale/programs/linereader.c (lr_ignore_rest): Define here.
1574 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
1576 (lr_getc): Always inline.
1577 (lr_ungetc): Likewise.
1578 * nss/nss_files/files-parse.c (parse_list): Likewise.
1579 * stdio-common/Makefile (aux): Add printf-parsemb and
1581 * stdio-common/_itoa.h (_itoa_word): Always inline.
1582 (_fitoa_word, _fitoa): Don't define here, only declare.
1583 * stdio-common/_itoa.c (_iftoa_word): Add here.
1585 * stdio-common/_itowa.h (_itowa_word): Always inline.
1586 * stdio-common/printf-parse.h (read_int): Don't inline.
1587 (find_spec): Don't define.
1588 Declare __find_specmb and __find_specwc.
1589 (parse_one_spec): Don't define.
1590 Declare __parse_one_specmb and __parse_one_specwc.
1591 * stdio-common/printf-parsemb.c: New file.
1592 * stdio-common/printf-parsewc.c: New file.
1593 * stdio-common/vfprintf.c: Update calls to find_spec and
1594 parse_one_spec for new names.
1595 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
1596 * stdlib/Makefile (aux): Add grouping and groupingwc.
1597 * stdlib/grouping.c: New file.
1598 * stdlib/groupingwc.c: New file.
1599 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
1601 * stdlib/rpmatch.c (try): Don't inline.
1602 * stdlib/strtod.c (round_and_return): Don't line.
1603 (str_to_mpn): Likewise.
1604 (__mpn_lshift_1): Always inline. Optimize only for constant count.
1605 Adjust for name change of correctly_grouped_prefix.
1606 * sysdeps/generic/strtol.c: Adjust for name change of
1607 correctly_grouped_prefix.
1608 * string/strxfrm.c (utf8_encode): Don't inline.
1609 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
1610 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
1611 * sysdeps/generic/ifreq.c: New file.
1612 * sysdeps/unix/sysv/linux/ifreq.c: New file.
1613 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
1614 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
1615 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
1616 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
1617 (fde_split): Likewise.
1618 (fde_merge): Likewise.
1619 (end_fde_sort): Likewise.
1620 (init_object): Likewise.
1621 (binary_search_unencoded_fdes): Likewise.
1622 (binary_search_single_encoding_fdes): Likewise.
1623 (binary_search_mixed_encoding_fdes): Likewise.
1624 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
1625 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
1626 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
1627 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1629 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
1630 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
1631 Export them. Prepend __ to name.
1632 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
1633 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
1634 conversion functions.
1635 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1636 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1637 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1638 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1639 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1640 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1641 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1642 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1643 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
1644 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
1645 to name. Change callers.
1646 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
1647 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
1649 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
1650 * time/tzfile.c (decode): Always inline.
1651 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
1652 Remove cast in tomb function call.
1653 * wcsmbs/wcsrtombs.c Likewise.
1654 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
1657 2003-06-10 Ulrich Drepper <drepper@redhat.com>
1659 * po/zh_CN.po: Update from translation team.
1661 2003-06-10 Jakub Jelinek <jakub@redhat.com>
1663 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
1664 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
1666 2003-06-10 Ulrich Drepper <drepper@redhat.com>
1668 * inet/Makefile (aux): Add check_pf.
1669 * include/ifaddrs.h: Add prototype for __check_pf.
1670 * sysdeps/generic/check_pf.c: New file.
1671 * sysdeps/unix/sysv/linux/check_pf.c: New file.
1672 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
1673 from no_netlink_support. Export.
1674 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
1677 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
1679 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
1680 from getifaddr calls.
1682 2003-06-09 Jakub Jelinek <jakub@redhat.com>
1684 * sysdeps/unix/sysv/linux/kernel-features.h
1685 (__ASSUME_SETRESGID_SYSCALL): Define.
1686 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
1687 instead of __ASSUME_SETRESUID_SYSCALL.
1688 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
1690 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
1691 inline syscall if __NR_setresuid32 is defined.
1692 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1693 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
1694 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
1695 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1696 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
1697 code handling non-existant setresgid32 syscall with
1698 #if __ASSUME_SETRESGID_SYSCALL == 0.
1700 2003-06-09 Andreas Schwab <schwab@suse.de>
1702 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
1703 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
1704 $(objpfx)rpc-proto.d.
1705 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
1706 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
1707 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
1709 2003-06-08 Ulrich Drepper <drepper@redhat.com>
1711 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
1712 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1713 defined drop compatibility code.
1714 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
1715 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1716 defined drop compatibility code.
1717 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
1718 setresuid32 syscall directly if possible.
1719 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1720 setresgid32 syscall directly if possible.
1721 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
1722 compliant. Don't change sgid.
1723 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
1724 compliant. Don't change suid.
1726 * config.h.in: Add have-forced-unwind.
1727 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
1729 2003-06-07 Ulrich Drepper <drepper@redhat.com>
1731 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
1732 returned status from child matches.
1734 * Makeconfig (gnulib): Add -lgcc_eh once again.
1736 2003-06-06 Ulrich Drepper <drepper@redhat.com>
1738 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
1740 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
1741 %edx for first parameter. This means no pushl and therefore the
1742 unwind info isn't screwed up.
1744 2003-06-04 Richard Henderson <rth@redhat.com>
1746 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
1747 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1748 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
1749 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
1750 entry sequence and explicit relocs. Add unwind info for sigreturn
1752 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
1754 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
1755 Annotate some parameters.
1756 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
1758 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
1760 * include/libc-symbols.h (symbol_set_declare): Use arrays
1761 of unspecified size.
1763 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1765 * config.make.in (ASFLAGS-config): New.
1766 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
1767 * configure.in (libc_cv_as_noexecstack): New check.
1768 (ASFLAGS_config): Substitute.
1770 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1772 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
1773 hypot, logb): Protect with #ifdef __FAST_MATH__.
1775 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1777 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
1778 #ifdef __FAST_MATH__.
1780 2003-06-03 Ulrich Drepper <drepper@redhat.com>
1782 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
1783 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
1784 * posix/globtest.sh: Adjust for this change.
1786 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
1787 to get the actual PID value used in the records passed up.
1788 (getifaddrs): Don't initialize nh.pid here.
1790 2003-06-02 Ulrich Drepper <drepper@redhat.com>
1792 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
1795 * po/zh_CN.po: Update from translation team.
1797 * posix/getconf.c (main): Also recognize names without the
1800 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
1802 2003-06-02 Bernd Schmidt <bernds@redhat.com>
1804 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
1805 ldexpf, ldexpl): Only define if __FAST_MATH__.
1807 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
1809 Replace hard-coded offsets into struct sigcontext with generated file.
1810 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
1811 * sysdeps/unix/sysv/linux/ia64/Makefile
1812 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
1813 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
1814 defining SC_* macros here.
1816 2003-06-02 Jakub Jelinek <jakub@redhat.com>
1818 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
1820 2003-06-01 Jakub Jelinek <jakub@redhat.com>
1822 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
1824 2003-06-01 Ulrich Drepper <drepper@redhat.com>
1826 * test-skeleton.c (main): Request getopt to not reorder the
1829 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
1831 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
1834 2003-05-31 Ulrich Drepper <drepper@redhat.com>
1836 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
1838 2003-05-31 Jakub Jelinek <jakub@redhat.com>
1840 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
1842 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
1843 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
1844 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
1846 2003-05-31 Ulrich Drepper <drepper@redhat.com>
1848 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
1851 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
1853 * libio/fileops.c (_IO_file_open): Don't mark as inline.
1855 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
1858 2003-05-30 Ulrich Drepper <drepper@redhat.com>
1860 * scripts/config.guess: Update from master copy.
1861 * scripts/config.sub: Likewise.
1863 2003-05-30 Guido Guenther <agx@sigxcpu.org>
1865 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
1866 SETUP_GP64 and friends.
1867 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
1868 names in internal_syscall{6,7}.
1869 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1870 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
1871 number of syscall arguments.
1872 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1873 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1874 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1876 2003-05-30 Andreas Jaeger <aj@suse.de>
1878 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1881 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
1884 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
1886 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1889 2003-05-30 Jakub Jelinek <jakub@redhat.com>
1891 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
1894 2003-05-11 Andreas Schwab <schwab@suse.de>
1896 * Makerules: Always use -MP together with -MD.
1897 (sed-remove-dotot): Substitute $(..) also at start of line.
1898 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
1899 Generated defines with a single compiler call.
1900 Use $(sed-remove-dotdot).
1901 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
1902 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
1903 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1904 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
1905 * sysdeps/unix/sysv/linux/mips/Makefile
1906 ($(objpfx)syscall-%.h): Likewise.
1908 2003-05-28 Roland McGrath <roland@redhat.com>
1910 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
1912 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
1914 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
1916 2003-05-28 Roland McGrath <roland@redhat.com>
1918 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
1919 rt_sigprocmask system call.
1920 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
1921 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
1923 2003-05-28 Ulrich Drepper <drepper@redhat.com>
1925 * include/libc-symbols.h: Define hidden attribute for real also if
1926 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
1928 * csu/Makefile: Add rules to build Scrt1.o.
1929 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
1930 * sysdeps/x86_64/elf/start.S: Likewise.
1932 2003-05-27 Jakub Jelinek <jakub@redhat.com>
1934 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
1935 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
1936 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
1937 pa_short_int, pa_u_short_int and pa_float.
1939 2003-05-26 Jakub Jelinek <jakub@redhat.com>
1941 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
1942 _IO_str_init_static_internal.
1943 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
1944 change size argument to _IO_size_t, don't limit sprintf to 64M.
1945 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
1946 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
1947 _IO_size_t, don't limit swprintf to 256M.
1948 (_IO_wstr_init_readonly): Remove.
1949 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
1951 (_IO_wstr_init_readonly): Remove prototype.
1952 * libio/iovsprintf.c (_IO_vsprintf): Use
1953 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
1954 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1955 * libio/memstream.c (open_memstream): Likewise.
1956 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
1957 * libio/vasprintf.c (_IO_vasprintf): Likewise.
1958 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1959 * stdio-common/tst-sprintf.c (main): Add new test.
1961 2003-05-26 Ulrich Drepper <drepper@redhat.com>
1963 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
1964 other implementation in respect of multiple uses of parameter with
1967 2003-05-25 Ulrich Drepper <drepper@redhat.com>
1969 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1970 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
1972 2003-05-22 Andreas Jaeger <aj@suse.de>
1974 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
1976 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1977 * sysdeps/x86_64/strtok.S: Likewise.
1979 2003-05-20 Guido Guenther <agx@sigxcpu.org>
1981 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
1982 to -60 and define SI_TKILL.
1984 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
1986 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
1987 (feexcp_mask_test): Likewise.
1989 2003-05-21 Ulrich Drepper <drepper@redhat.com>
1991 * locale/programs/locale.c (main): Fix typo in last patch.
1993 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
1994 __init_array_start, __init_array_end, __fini_array_start, and
1995 __fini_array_end as hidden.
1997 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
1999 * locale/programs/locale.c (main): Report an error if setlocale()
2000 fails [PR libc/2254].
2002 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2004 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2006 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2009 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2010 LOADARGS_6): Don't error if syscall argument is a string literal.
2011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2012 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2013 LOADARGS_6): Likewise.
2015 2003-05-21 Andreas Jaeger <aj@suse.de>
2017 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2018 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2019 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2021 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2025 * configure.in: Test for asm cfi directives.
2027 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2029 2003-05-17 Andreas Jaeger <aj@suse.de>
2031 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2033 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2035 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2037 * rt/Makefile (tests): Add tst-clock_nanosleep.
2038 * rt/tst-clock_nanosleep.c: New file.
2039 * posix/Makefile (tests): Add tst-nanosleep.
2040 * posix/tst-nanosleep.c: New file.
2042 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2044 * include/features.h (__USE_XOPEN2K): Define also for
2045 _POSIX_C_SOURCE>=200112L.
2047 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2048 SI_TKILL code into SI_USER.
2049 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2051 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2053 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2055 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2056 Remove sym argument, always use refsym.
2057 (__process_machine_rela): Adjust callers.
2058 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2060 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2062 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2064 2003-05-15 Ulrich Drepper <drepper@redhat.com>
2066 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2067 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2068 print numeric values.
2070 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
2072 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2074 2003-05-14 Andreas Schwab <schwab@suse.de>
2076 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2078 2003-05-14 Jakub Jelinek <jakub@redhat.com>
2080 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2081 even if no DT_NEEDED is present.
2083 2003-05-13 David Mosberger <davidm@hpl.hp.com>
2085 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2086 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2087 __sigjmp_save) so we can't keep the saved unat value in a scratch
2088 register (r16). Use loc2 instead.
2090 2003-05-13 Ulrich Drepper <drepper@redhat.com>
2092 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2093 binaries it has to be relocatable.
2095 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2097 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
2099 * sysdeps/powerpc/bits/atomic.h
2100 (__arch_compare_and_exchange_bool_8_rel): Define.
2101 (__arch_compare_and_exchange_bool_16_rel): Define.
2102 (__ARCH_REL_INSTR): Define if not already defined.
2103 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2104 (__arch_atomic_decrement_if_positive_32):
2105 Add "memory" to clobber list.
2106 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2107 (__arch_compare_and_exchange_val_32_rel): Define.
2108 (__arch_atomic_exchange_32): Remove.
2109 (__arch_atomic_exchange_32_acq): Define.
2110 (__arch_atomic_exchange_32_rel): Define.
2111 (atomic_compare_and_exchange_val_rel): Define.
2112 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2113 (atomic_exchange_rel): Define.
2114 * sysdeps/powerpc/powerpc32/bits/atomic.h
2115 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2116 (__arch_compare_and_exchange_bool_32_rel): Define.
2117 (__arch_compare_and_exchange_bool_64_rel): Define.
2118 (__arch_compare_and_exchange_val_64_rel): Define.
2119 (__arch_atomic_exchange_64): Remove.
2120 (__arch_atomic_exchange_64_acq): Define.
2121 (__arch_atomic_exchange_64_rel): Define.
2122 * sysdeps/powerpc/powerpc64/bits/atomic.h
2123 (__arch_compare_and_exchange_bool_32_rel): Define.
2124 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2125 (__arch_compare_and_exchange_bool_64_rel): Define.
2126 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2127 (__arch_compare_and_exchange_val_64_rel): Define.
2128 (__arch_atomic_exchange_64): Remove.
2129 (__arch_atomic_exchange_64_acq): Define.
2130 (__arch_atomic_exchange_64_rel): Define.
2131 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2132 (__arch_atomic_decrement_if_positive_64):
2133 Add "memory" to clobber list.
2134 [!UP](__ARCH_REL_INSTR): Define as lwsync.
2136 2003-05-11 Andreas Schwab <schwab@suse.de>
2138 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2140 2003-05-11 Ulrich Drepper <drepper@redhat.com>
2142 * time/tst-strftime.c (do_test): Add tests for - flag.
2144 2003-05-11 Jim Meyering <jim@meyering.net>
2146 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2147 the space-padded-by-default conversion specifiers, %e, %k, %l.
2149 2003-05-11 Andreas Schwab <schwab@suse.de>
2151 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2153 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2155 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2156 already defined and when really needed.
2157 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2159 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2161 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2162 headers, add defines from kernel header, move it from here...
2163 * inet/netinet/igmp.h: ... to here.
2164 * inet/Makefile (headers): Add netinet/igmp.h.
2165 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2166 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2168 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2170 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2171 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2173 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2175 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
2176 (remove __THROW from possible cancellation points).
2178 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2180 * posix/sched.h (CPU_SETSIZE): Define.
2182 2003-05-09 Ulrich Drepper <drepper@redhat.com>
2184 * Makeconfig (gnulib): Remove -lgcc_eh again.
2186 * posix/sched.h: Change prototypes of sched_getaffinity and
2187 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
2188 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
2189 * sysdeps/generic/sched_setaffinity.c: Likewise.
2190 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
2191 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
2192 __CPU_CLR, and __CPU_ISSET.
2193 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2194 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
2195 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
2197 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
2198 (atomic_exchange_rel): New #define.
2199 * sysdeps/ia64/bits/atomic.h: Likewise.
2200 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
2202 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
2203 * sysdeps/powerpc/bits/atomic.h: Likewise.
2204 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
2205 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
2206 * sysdeps/x86_64/bits/atomic.h: Likewise.
2207 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
2209 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
2211 2003-05-08 Ulrich Drepper <drepper@redhat.com>
2213 * malloc/thread-m.h: Remove special handling of thread_atfork if
2214 HAVE_register_atfork_malloc is defined.
2216 2003-05-07 Andreas Jaeger <aj@suse.de>
2218 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
2221 2003-05-06 Ulrich Drepper <drepper@redhat.com>
2223 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
2224 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2225 * libio/libioP.h: Declare _IO_old_init.
2226 * libio/genops.c (_IO_no_init): Split in two. New function
2229 2003-05-05 Ulrich Drepper <drepper@redhat.com>
2231 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
2233 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
2235 * include/unistd.h: Declare __libc_enable_secure_decided.
2236 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
2237 and AT_EGID. If all found, set __libc_enable_secure and
2238 __libc_enable_secure_decided.
2240 * sysdeps/generic/libc-start.c [!SHARED]: Call
2241 __libc_check_standard_fds after __libc_init_first.
2243 2003-05-05 Roland McGrath <roland@redhat.com>
2245 * Makerules (common-before-compile): New variable.
2246 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
2247 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
2248 to after all setting of before-compile.
2250 2003-05-05 Jakub Jelinek <jakub@redhat.com>
2252 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2253 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
2254 * sysdeps/powerpc/powerpc32/bits/atomic.h
2255 (__arch_compare_and_exchange_val_64_acq): Likewise.
2256 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2257 (__arch_compare_and_exchange_val_8_acq,
2258 __arch_compare_and_exchange_val_16_acq,
2259 __arch_compare_and_exchange_val_64_acq): Likewise.
2260 * sysdeps/sparc/sparc64/bits/atomic.h
2261 (__arch_compare_and_exchange_val_8_acq,
2262 __arch_compare_and_exchange_val_16_acq): Likewise.
2263 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2264 __arch_compare_and_exchange_val_16_acq,
2265 __arch_compare_and_exchange_val_64_acq): Likewise.
2266 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2267 (__arch_compare_and_exchange_val_64_acq): Likewise.
2268 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
2270 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
2272 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2273 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
2274 Return long instead of int.
2275 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
2276 0xfffff001u with -4095UL.
2278 2003-05-05 Andreas Jaeger <aj@suse.de>
2280 * sysdeps/x86_64/fpu_control.h: New from i386.
2282 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
2283 Define if not defined.
2285 * sunrpc/Makefile (generated-dirs): New variable.
2286 * resolv/Makefile (generated): New variable.
2288 2003-05-04 Roland McGrath <roland@redhat.com>
2290 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
2291 Depend on $(before-compile).
2293 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
2294 pattern rule. The implicit rule could be ruled out when $(objpfx)
2295 didn't exist at the time of its consideration (ugh!).
2297 * Makerules (+make-deps): Fix target matching.
2298 Use $(sed-remove-dotdot).
2300 2003-05-03 Ulrich Drepper <drepper@redhat.com>
2302 * nscd/nscd.c (main): Parse config file right after parsing
2303 parameters. Then, if get_stats is true, call receive_print_stats.
2304 Drop parameter from nscd_init call.
2305 (get_stats): New variable.
2306 (parse_opt): Set get_stats, don't call receive_print_stats here.
2307 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
2309 * nscd/connections.c (stat_user, stat_uid): New variables.
2311 (nscd_init): Don't read configuration file here. Drop parameter.
2312 (handle_request): Cleanup handling of non-database lookup requests.
2313 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
2314 Get UID of the specified user. Use xstrdup instead of strdup.
2315 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
2317 * nscd/Makefile (nscd-modules): Add xstrdup.
2318 * nscd/nscd.conf: Document stat-user entry.
2320 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
2322 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
2325 2003-04-22 Roland McGrath <roland@redhat.com>
2327 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
2328 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2329 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
2330 * elf/dl-support.c: Update defn.
2331 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
2332 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2333 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
2334 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
2335 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
2336 set, set up a link_map for the preloaded, prelinked object.
2338 2003-05-03 Roland McGrath <roland@redhat.com>
2340 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
2341 * stdio-common/Makefile: ... not here.
2343 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
2344 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
2346 2003-05-02 Ulrich Drepper <drepper@redhat.com>
2348 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
2350 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
2352 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
2353 comparing ftab elements.
2354 (_dl_unmap): Fix typo in test.
2355 (_dl_make_fptr): Fix typos introduced in last change.
2357 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
2358 original patch. Use non-exported symbols. Mark translatable
2359 strings. Pretty printing.
2361 2003-05-02 Roland McGrath <roland@redhat.com>
2363 * Makerules (do-stamp): Do $(make-target-directory).
2365 2003-04-07 H.J. Lu <hjl@gnu.org>
2367 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
2369 2003-04-03 H.J. Lu <hjl@gnu.org>
2371 * sysdeps/ia64/dl-fptr.c: Moved to ...
2372 * sysdeps/generic/dl-fptr.c: Here.
2374 * sysdeps/generic/dl-fptr.h: New.
2375 * sysdeps/ia64/dl-fptr.h: New.
2377 * sysdeps/ia64/dl-symaddr.c: Moved to ...
2378 * sysdeps/generic/dl-symaddr.c: here.
2380 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
2381 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
2382 (ia64_fdesc): Likewise.
2383 (ia64_fdesc_table): Likewise.
2384 (__ia64_make_fptr): Likewise.
2385 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
2386 with _dl_boot_fptr_table.
2387 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
2389 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
2391 2003-05-01 Roland McGrath <roland@redhat.com>
2393 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
2394 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2396 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2397 Use $(make-target-directory).
2398 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2400 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
2401 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
2402 (compile-command.s, compile-command.c): Likewise.
2403 ($(objpfx)%.d): All such pattern rules removed.
2404 ($(+sysdir_pfx)sysd-rules): Don't generate them.
2405 ($(common-objpfx)dummy.d): Target removed.
2406 (make-dummy-dep): Variable removed.
2407 (generate-md5): Likewise.
2408 (%.d: %.dt): New pattern rule.
2409 (+depfiles): Use $(wildcard) function to get just existing *.d files
2410 and .d files for existing *.dt files.
2411 (common-clean): Remove all *.d and *.dt files.
2412 (before-compile): Add $(objpfx). when it doesn't exist,
2413 regardless of $(no_deps).
2414 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
2415 (rtld-depfiles): Use .os.d instead of .d names.
2416 Include existing *.d files and .d files for existing *.dt files.
2418 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
2419 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
2421 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
2422 Do s-*.d includes only if we have some syscall routines in this subdir.
2424 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
2425 @nobits. The former is accepted by gas on any ELF platform.
2427 2003-05-01 Ulrich Drepper <drepper@redhat.com>
2429 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
2431 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
2433 2003-04-29 Andreas Schwab <schwab@suse.de>
2435 * string/test-strcat.c (do_one_test): Fix attribute name.
2437 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
2439 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
2440 uc_flags long for all ABIs.
2442 2003-04-30 Andreas Jaeger <aj@suse.de>
2444 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
2445 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
2446 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
2447 Add bi-arch support.
2449 2003-04-30 Ulrich Drepper <drepper@redhat.com>
2451 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
2452 (__posix_memalign): Use __memalign_internal instead of memalign.
2454 2003-04-29 Roland McGrath <roland@redhat.com>
2456 * configure.in: Search for AUTOCONF unconditionally.
2457 Just don't complain about missing it under --without-cvs.
2459 * include/libc-symbols.h (__symbol_set_attribute): New macro,
2460 give hidden for [SHARED] and weak for [! SHARED].
2461 (symbol_set_declare): Use that. Never need weak_extern these days.
2462 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
2463 Depend on $(..)Makerules.
2465 2003-04-29 Ulrich Drepper <drepper@redhat.com>
2467 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
2468 variants of socket, bind, recvmsg, and sendto.
2470 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
2472 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
2473 * signal/sigaddset.c: Add libc_hidden_def.
2474 * signal/sigdelset.c: Likewise.
2476 2003-04-29 Jakub Jelinek <jakub@redhat.com>
2478 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
2479 to the end of the file.
2481 * configure.in: Change __oline__ to $LINENO.
2482 (HAVE_BUILTIN_REDIRECTION): New check.
2483 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
2484 * include/libc-symbols.h (libc_hidden_builtin_proto,
2485 libc_hidden_builtin_def, libc_hidden_builtin_weak,
2486 libc_hidden_builtin_ver): Define.
2487 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
2488 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
2489 strspn, strstr): Add libc_hidden_builtin_proto.
2490 * intl/plural.y: Include string.h.
2491 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
2492 libc_hidden_builtin_def.
2493 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
2494 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
2495 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
2496 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
2497 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
2498 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
2499 * sysdeps/alpha/memchr.S (memchr): Likewise.
2500 * sysdeps/alpha/memset.S (memset): Likewise.
2501 * sysdeps/alpha/strcat.S (strcat): Likewise.
2502 * sysdeps/alpha/strchr.S (strchr): Likewise.
2503 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
2504 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
2505 * sysdeps/alpha/strlen.S (strlen): Likewise.
2506 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
2507 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
2508 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
2509 * sysdeps/arm/memset.S (memset): Likewise.
2510 * sysdeps/arm/strlen.S (strlen): Likewise.
2511 * sysdeps/generic/memchr.c (memchr): Likewise.
2512 * sysdeps/generic/memcpy.c (memcpy): Likewise.
2513 * sysdeps/generic/memmove.c (memmove): Likewise.
2514 * sysdeps/generic/memset.c (memset): Likewise.
2515 * sysdeps/generic/strcat.c (strcat): Likewise.
2516 * sysdeps/generic/strchr.c (strchr): Likewise.
2517 * sysdeps/generic/strcmp.c (strcmp): Likewise.
2518 * sysdeps/generic/strcpy.c (strcpy): Likewise.
2519 * sysdeps/generic/strcspn.c (strcspn): Likewise.
2520 * sysdeps/generic/strlen.c (strlen): Likewise.
2521 * sysdeps/generic/strncmp.c (strncmp): Likewise.
2522 * sysdeps/generic/strncpy.c (strncpy): Likewise.
2523 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
2524 * sysdeps/generic/strrchr.c (strrchr): Likewise.
2525 * sysdeps/generic/strspn.c (strspn): Likewise.
2526 * sysdeps/generic/strstr.c (strstr): Likewise.
2527 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2528 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2529 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
2530 * sysdeps/i386/i586/memset.S (memset): Likewise.
2531 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
2532 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
2533 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2534 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
2535 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2536 * sysdeps/i386/i686/memset.S (memset): Likewise.
2537 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2538 * sysdeps/i386/memchr.S (memchr): Likewise.
2539 * sysdeps/i386/memset.c (memset): Likewise.
2540 * sysdeps/i386/strchr.S (strchr): Likewise.
2541 * sysdeps/i386/strcspn.S (strcspn): Likewise.
2542 * sysdeps/i386/strlen.c (strlen): Likewise.
2543 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2544 * sysdeps/i386/strrchr.S (strrchr): Likewise.
2545 * sysdeps/i386/strspn.S (strspn): Likewise.
2546 * sysdeps/ia64/memchr.S (memchr): Likewise.
2547 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
2548 * sysdeps/ia64/memmove.S (memmove): Likewise.
2549 * sysdeps/ia64/memset.S (memset): Likewise.
2550 * sysdeps/ia64/strcat.S (strcat): Likewise.
2551 * sysdeps/ia64/strchr.S (strchr): Likewise.
2552 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
2553 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
2554 * sysdeps/ia64/strlen.S (strlen): Likewise.
2555 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
2556 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
2557 * sysdeps/m68k/memchr.S (memchr): Likewise.
2558 * sysdeps/m68k/strchr.S (strchr): Likewise.
2559 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
2560 * sysdeps/mips/mips64/memset.S (memset): Likewise.
2561 * sysdeps/mips/memcpy.S (memcpy): Likewise.
2562 * sysdeps/mips/memset.S (memset): Likewise.
2563 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2564 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
2565 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
2566 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
2567 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
2568 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2569 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2570 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
2571 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
2572 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
2573 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
2574 * sysdeps/powerpc/strcat.c (strcat): Likewise.
2575 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
2576 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
2577 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
2578 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
2579 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
2580 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
2581 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
2582 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
2583 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
2584 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
2585 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
2586 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
2587 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
2588 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
2589 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
2590 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
2591 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
2592 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
2593 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
2594 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
2595 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
2596 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
2597 * sysdeps/sh/memcpy.S (memcpy): Likewise.
2598 * sysdeps/sh/memset.S (memset): Likewise.
2599 * sysdeps/sh/strlen.S (strlen): Likewise.
2600 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
2601 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
2602 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
2603 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
2604 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
2605 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
2606 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
2607 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
2608 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
2609 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
2610 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
2611 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
2612 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2613 * sysdeps/x86_64/memset.S (memset): Likewise.
2614 * sysdeps/x86_64/strcat.S (strcat): Likewise.
2615 * sysdeps/x86_64/strchr.S (strchr): Likewise.
2616 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
2617 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
2618 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
2619 * sysdeps/x86_64/strlen.S (strlen): Likewise.
2620 * sysdeps/x86_64/strspn.S (strspn): Likewise.
2621 * string/string-inlines.c: Move...
2622 * sysdeps/generic/string-inlines.c: ...here.
2623 (__memcpy_g, __strchr_g): Remove.
2624 (__NO_INLINE__): Define before including <string.h>,
2625 undefine after. Include bits/string.h and bits/string2.h.
2626 * sysdeps/i386/i486/string-inlines.c: New file.
2627 * sysdeps/i386/string-inlines.c: New file.
2628 * sysdeps/i386/i486/Versions: Remove.
2629 All GLIBC_2.1.1 symbols moved...
2630 * sysdeps/i386/Versions (libc): ...here.
2632 2003-04-29 Ulrich Drepper <drepper@redhat.com>
2634 * sysdeps/i386/fpu/Makefile: New file.
2635 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
2636 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
2637 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2638 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
2641 2003-04-28 Ulrich Drepper <drepper@redhat.com>
2643 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
2644 * nscd/nscd_getpw_r.c: Likewise.
2645 * nscd/nscd_gethst_r.c: Likewise.
2647 2003-04-27 Ulrich Drepper <drepper@redhat.com>
2649 * nscd/pwdcache.c: Initialize .version element in result.
2650 * nscd/grpcache.c: Likewise.
2651 * nscd/pwdcache.c: Likewise.
2653 2003-04-27 Andreas Schwab <schwab@suse.de>
2655 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
2658 2003-04-27 Andreas Schwab <schwab@suse.de>
2660 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
2662 2003-04-27 Ulrich Drepper <drepper@redhat.com>
2664 * nscd/connections.c (client_queued): New variable.
2665 (nscd_run): Revamp the loop. Don't call poll except for cleanup
2666 threads. Keep track of the number of delays caused because of busy
2668 * nscd/nscd.h: Declare client_queued.
2669 * nscd/nscd_stat.c: Transmit and print client_queued information.
2671 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
2673 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
2674 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
2676 2003-04-26 Ulrich Drepper <drepper@redhat.com>
2678 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
2679 tracking of freed memory in static TLS block.
2680 * elf/Makefile: Add rules to build and run tst-tls13.
2681 * elf/tst-tls13.c: New file.
2682 * elf/tst-tlsmod13.c: New file.
2683 * elf/tst-tlsmod13a.c: New file.
2685 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
2687 * elf/dl-reloc.c: Pretty printing.
2689 2003-04-26 Roland McGrath <roland@redhat.com>
2691 * Makerules ($(common-objpfx)shlib.lds): New target.
2692 (common-generated): Add it.
2693 (build-shlib, build-module): Use that instead of generating every time.
2694 ($(common-objpfx)libc.so): Depend on it.
2695 (lib%.so rule): Likewise.
2696 (build-module-helper-objlist): Remove %.lds.
2697 (LDSEDCMD-c.so): Variable removed.
2698 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
2699 Depend on $(common-objpfx)shlib.lds.
2700 * dlfcn/Makefile ($(test-modules)): Likewise.
2702 2003-04-26 Roland McGrath <roland@frob.com>
2704 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
2706 2003-04-26 Andreas Schwab <schwab@suse.de>
2708 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
2710 2003-04-25 Ulrich Drepper <drepper@redhat.com>
2712 * nscd/cache.c (cache_search): Keep track of how many chain links
2713 we searched and update table statistics.
2714 (cache_add): Keep track of how many values are in the table.
2715 (prune_cache): Likewise. Keep track of locking success.
2716 Print messages about removed entries in separate pass.
2717 * nscd/connections.c (handle_request): Don't print debug message here.
2718 The caller will do it. Keep track of locking success.
2719 (nscd_run): Print debug message. Also print PID of the client process.
2720 * nscd/nscd.c (start_time): New variable.
2721 (main): Remember start time.
2722 * nscd/nscd.h: Declare start_time.
2723 (struct database): Add more members for new statistics.
2724 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
2727 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
2729 2003-04-22 Jakub Jelinek <jakub@redhat.com>
2731 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
2732 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
2733 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
2735 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
2736 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
2737 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
2738 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
2741 2003-04-24 Ulrich Drepper <drepper@redhat.com>
2743 * nss/getent.c: Implement alternative host database lookup via
2746 * include/ifaddrs.h: New file.
2747 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
2749 * resolv/netdb.h: ...here.
2750 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
2751 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2752 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
2755 2003-04-24 Roland McGrath <roland@redhat.com>
2757 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
2759 2003-04-24 Jakub Jelinek <jakub@redhat.com>
2761 * elf/dl-reloc.c (allocate_static_tls): Rename to...
2762 (_dl_allocate_static_tls): ... this function. No longer static.
2763 (CHECK_STATIC_TLS): Adjust.
2764 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
2765 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
2766 Add SYM_MAP argument.
2767 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
2768 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
2769 TLS relocs here. #ifdef out relocs which never appear in
2770 .gnu.conflict section from dl-conflict.c processing.
2771 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2772 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
2774 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
2775 out relocs which never appear in .gnu.conflict section from
2776 dl-conflict.c processing.
2777 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2778 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2779 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2780 Use r_type in RESOLVE macro.
2782 2003-04-23 Ulrich Drepper <drepper@redhat.com>
2784 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
2785 NULL. Remove code made redundant by this assumption.
2786 (__yp_unbind): Add call to free. Adjust all callers.
2788 * nis/ypclnt.c (yp_all): Free the dom_binding object after
2791 * grp/initgroups.c (getgrouplist): Don't copy too much into the
2792 user buffer if more groups are found than fit into it.
2794 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
2797 2003-04-23 Jakub Jelinek <jakub@redhat.com>
2799 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
2800 not rc == errno. Use extend_alloca.
2802 * elf/tst-tls12.c (main): Fix declaration.
2803 * elf/tst-tls10.c (dummy): Make hidden instead of static.
2804 * elf/tst-tlsmod7.c (dummy): Likewise.
2805 * elf/tst-tlsmod8.c (dummy): Likewise.
2806 * elf/tst-tlsmod9.c (dummy): Likewise.
2808 2003-04-22 Roland McGrath <roland@redhat.com>
2810 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
2811 (open_not_cancel): Make last argument non-optional.
2812 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
2813 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2814 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2816 * include/tls.h: Protect against multiple inclusion.
2818 2003-04-22 Ulrich Drepper <drepper@redhat.com>
2820 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
2821 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
2822 open_socket. Not static anymore.
2823 (nscd_gethst_r): Use __nscd_open_socket.
2824 * nscd/nscd_getgr_r.c (open_socket): Removed.
2825 (nscd_getgr_r): Use __nscd_open_socket.
2826 * nscd/nscd_getpw_r.c (open_socket): Removed.
2827 (nscd_getpw_r): Use __nscd_open_socket.
2829 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
2830 * nscd/connections.c (handle_request): Add cast to avoid warning.
2832 2003-04-21 Ulrich Drepper <drepper@redhat.com>
2834 * signal/sigfillset.c: Moved to...
2835 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
2836 do not set the corresponding bit.
2838 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
2840 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
2841 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
2842 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
2843 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
2844 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
2846 2003-04-20 Ulrich Drepper <drepper@redhat.com>
2848 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
2849 first syscall parameter to const char*.
2851 2003-04-19 Ulrich Drepper <drepper@redhat.com>
2853 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
2855 * configure.in: Add AC_PROG_CXX.
2856 * config.make.in (CXX): Define.
2858 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
2859 __len to size_t to avoid warnings.
2861 2003-04-18 Jes Sorensen <jes@wildopensource.com>
2863 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
2865 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2867 2003-04-19 Ulrich Drepper <drepper@redhat.com>
2869 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
2870 UNREGISTER_ATFORK if d == NULL.
2872 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
2873 * dirent/dirent.h: Likewise.
2874 * dlfcn/dlfcn.h: Likewise.
2875 * grp/grp.h: Likewise.
2876 * iconv/iconv.h: Likewise.
2877 * io/fcntl.h: Likewise.
2878 * io/ftw.h: Likewise.
2879 * libio/stdio.h: Likewise.
2880 * misc/sys/mman.h: Likewise.
2881 * misc/sys/select.h: Likewise.
2882 * misc/sys/syslog.h: Likewise.
2883 * misc/sys/uio.h: Likewise.
2884 * posix/spawn.h: Likewise.
2885 * posix/unistd.h: Likewise.
2886 * posix/sys/wait.h: Likewise.
2887 * pwd/pwd.h: Likewise.
2888 * resolv/netdb.h: Likewise.
2889 * rt/aio.h: Likewise.
2890 * shadow/shadow.h: Likewise.
2891 * signal/signal.h: Likewise.
2892 * socket/sys/socket.h: Likewise.
2893 * stdlib/stdlib.h: Likewise.
2894 * streams/stropts.h: Likewise.
2895 * string/string.h: Likewise.
2896 * sysdeps/gnu/utmpx.h: Likewise.
2897 * sysvipc/sys/msg.h: Likewise.
2898 * termios/termios.h: Likewise.
2899 * time/time.h: Likewise.
2900 * wcsmbs/wchar.h: Likewise.
2901 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
2903 * misc/daemon.c: Likewise.
2904 * sysdeps/generic/backtracesymsfd.c: Likewise.
2905 * sysdeps/generic/check_fds.c: Likewise.
2906 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2907 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
2908 * sysdeps/generic/not-cancel.h: New file.
2909 * csu/Makefile (distribute): Add not-cancel.h.
2910 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
2911 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
2912 for assert.c and assert-perr.c to include <fatal-prepare.h>.
2913 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
2915 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
2916 errno and unlink first.
2918 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
2920 2003-04-18 Ulrich Drepper <drepper@redhat.com>
2922 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
2923 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
2925 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2927 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
2929 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
2930 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
2933 * signal/Makefile (tests): Add tst-sigsimple.
2934 * signal/tst-sigsimple.c: New file.
2936 2003-04-16 Jakub Jelinek <jakub@redhat.com>
2938 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
2940 (tests): Add tst-tls1[0-2].
2941 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
2942 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
2943 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
2944 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
2945 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
2946 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
2947 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
2948 * elf/tst-tls10.c: New test.
2949 * elf/tst-tls11.c: New test.
2950 * elf/tst-tls12.c: New test.
2951 * elf/tst-tls10.h: New file.
2952 * elf/tst-tlsmod7.c: New file.
2953 * elf/tst-tlsmod8.c: New file.
2954 * elf/tst-tlsmod9.c: New file.
2955 * elf/tst-tlsmod10.c: New file.
2956 * elf/tst-tlsmod11.c: New file.
2957 * elf/tst-tlsmod12.c: New file.
2959 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2961 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
2962 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
2963 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
2965 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2967 * posix/regex.h: Include <sys/types.h>.
2969 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
2970 The signal number must be checked.
2971 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
2972 The signal number must be checked [PR libc/5004].
2974 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
2975 don't do anything fancy.
2977 * sysdeps/generic/bits/libc-lock.h: Define
2978 __rtld_lock_define_initialized_recursive.
2980 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
2981 contacting nscd if NOT_USENSCD_NAME > 0.
2982 * nss/nsswitch.c (__nss_disable_nscd): New function.
2983 * nss/nsswitch.h: Declare it.
2984 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
2985 * nscd/nscd.c (main): Call __nss_disable_nscd.
2987 2003-04-16 Ulrich Drepper <drepper@redhat.com>
2989 * stdio-common/perror.c (perror): We don't need to set the offset
2990 to _IO_pos_bad, this is how streams are initialized.
2992 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
2993 (time_output): If necessary, allocate new buffer for .name string if
2994 padding is required.
2996 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
2997 before copying. This might leave holes in the list. Adjust
2998 pointers if necessary.
2999 (netlink_receive): Allocate only one block.
3000 (free_netlink_handle): Adjust appropriately.
3001 (getifaddrs): Lots of cleanups.
3003 * string/test-strncpy.c (do_one_test): Mark start and stop as
3005 * string/test-memchr.c: Likewise.
3006 * string/test-memcmp.c: Likewise.
3007 * string/test-memcpy.c: Likewise.
3008 * string/test-memmove.c: Likewise.
3009 * string/test-memset.c: Likewise.
3010 * string/test-strcat.c: Likewise.
3011 * string/test-strchr.c: Likewise.
3012 * string/test-strcmp.c: Likewise.
3013 * string/test-strcpy.c: Likewise.
3014 * string/test-strlen.c: Likewise.
3015 * string/test-strncmp.c: Likewise.
3016 * string/test-strpbrk.c: Likewise.
3017 * string/test-strrchr.c: Likewise.
3018 * string/test-strspn.c: Likewise.
3020 2003-04-15 Roland McGrath <roland@redhat.com>
3022 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3024 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3025 INTUSE(__register_frame_info_bases).
3027 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3029 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3030 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3031 AT_SYSINFO_EH_FRAME. Adjust string width.
3032 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3033 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3034 Add _dl_sysinfo_eh_frame field.
3035 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3036 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3038 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3039 if _dl_sysinfo_eh_frame is non-NULL.
3041 * Makeconfig (gnulib): Add -lgcc_eh.
3043 * config.h.in: Define HAVE_FORCED_UNWIND.
3045 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3047 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3048 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3050 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3052 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3053 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3054 against local symbol in conflict processing.
3056 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3058 * sysdeps/powerpc/bits/atomic.h
3059 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3060 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3062 (__arch_compare_and_exchange_val_32_acq): Define.
3063 (atomic_compare_and_exchange_val_acq): Define.
3065 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3067 * include/atomic.h: Pretty printing.
3069 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3071 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3073 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3075 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3076 * sysdeps/x86_64/bits/atomic.h: Likewise.
3078 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3080 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3081 POPARGS_1 to emit labels for the mov instructions.
3083 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3085 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3087 2003-04-14 Roland McGrath <roland@redhat.com>
3089 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3092 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3094 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3096 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3097 position. Reported by jreiser@BitWagon.com.
3099 2003-04-13 Ulrich Drepper <drepper@redhat.com>
3101 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3102 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3103 * sysdeps/generic/unwind-dw2.c: Likewise.
3104 * sysdeps/generic/unwind-pe.h: Likewise.
3106 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
3108 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3109 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3110 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3111 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3112 (mcontext_t): Make it match the 32-bit mips kernel in o32.
3113 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3114 the mips and mips64 headers.
3115 (struct user): Port to n32/n64.
3117 2003-04-12 Ulrich Drepper <drepper@redhat.com>
3119 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3122 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3123 __ASSUME_VSYSCALL is defined don't add restorer.
3124 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3125 __ASSUME_VSYSCALL for 2.5.53.
3127 2003-04-11 Ulrich Drepper <drepper@redhat.com>
3129 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3130 Remove HAVE_CANCELBUF code. Replace with code using the new
3131 initializers for unwind-based cleanup handling.
3132 * sysdeps/generic/unwind.h: Update from latest gcc version.
3133 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3134 places to allow unwind data generation.
3135 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3136 * sysdeps/x86_64/bits/setjmp.h: Likewise.
3137 * sysdeps/sh/bits/setjmp.h: Likewise.
3138 * sysdeps/powerpc/bits/setjmp.h: Likewise.
3139 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3140 * sysdeps/alpha/bits/setjmp.h: Likewise.
3142 2003-04-11 Roland McGrath <roland@redhat.com>
3144 * csu/tst-empty.c: New file.
3145 * csu/Makefile (tests, tests-static): Add it.
3147 2003-04-11 Jakub Jelinek <jakub@redhat.com>
3149 * string/test-strcmp.c (do_random_tests): Test whether return value
3150 has been promoted to wordsize if the ABI requires caller to do so.
3151 * string/test-strncmp.c (do_random_tests): Likewise.
3152 * string/test-memcmp.c (do_random_tests): Likewise.
3154 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3158 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3159 is not defined, but the prctl constants are.
3161 * string/tester.c (test_strcmp): Fix a typo.
3163 2003-04-09 Ulrich Drepper <drepper@redhat.com>
3165 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3166 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3168 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3170 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3172 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3174 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
3176 * sysdeps/mips/mips64/memset.S: Likewise.
3177 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
3178 Use t0 instead of t4 as temporary.
3180 2003-04-07 Ulrich Drepper <drepper@redhat.com>
3182 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
3183 feof_unlocked instead of feof.
3184 (add_dir): Ignore trailing whitespace.
3186 2003-04-07 Jakub Jelinek <jakub@redhat.com>
3188 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
3189 sum of SIZE1 and SIZE2 arguments.
3191 2003-04-06 Ulrich Drepper <drepper@redhat.com>
3193 * iconv/iconv_prog.c (process_block): Don't print message about
3194 invalid input if the -c option is used.
3195 (main): Correctly append IGNORE string for -c option.
3197 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3199 * sysdeps/sh/bits/atomic.h: Moved to ...
3200 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
3201 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
3203 (atomic_bit_set, atomic_bit_test_set): Likewise.
3204 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
3206 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3208 2003-04-06 Roland McGrath <roland@redhat.com>
3210 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
3211 restoration as done for setcontext yesterday.
3213 2003-04-06 Jakub Jelinek <jakub@redhat.com>
3215 * elf/rtld.c: Revert 2003-03-14 change.
3216 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
3217 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
3219 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3221 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
3223 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3224 Always initialize *signgamp before returning an error.
3226 2003-04-05 Roland McGrath <roland@redhat.com>
3228 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
3229 below the stack pointer even if switching to the same context we are
3232 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3234 * catgets/gencat.c (read_input_file): Make sure that \n is not
3235 alone on the line before testing for continuation.
3237 * math/test-tgmath.c (compile_test): Initialize c.
3239 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
3241 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
3242 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
3243 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
3245 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
3246 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
3247 structure on n32 as well.
3248 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
3249 data types on n32 and n64.
3251 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3253 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
3256 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
3257 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
3258 instead of __register_atfork.
3260 2003-04-05 Jakub Jelinek <jakub@redhat.com>
3262 * stdio-common/reg-printf.c (__register_printf_function): Calloc
3263 instead of malloc __printf_arginfo_table and __printf_function_table.
3264 Reported by John Reiser <jreiser@BitWagon.com>.
3266 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
3268 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
3269 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
3271 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
3274 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
3276 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
3279 2003-04-03 Roland McGrath <roland@redhat.com>
3281 * configure.in: Fix up use of compilation flags to match the build:
3282 For .s files, $ASFLAGS;
3283 For .S files, $CPPFLAGS $ASFLAGS;
3284 For .c files, $CFLAGS $CPPFLAGS;
3285 when linking, add $LDFLAGS.
3286 * configure: Regenerated.
3288 2003-04-03 Jakub Jelinek <jakub@redhat.com>
3290 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
3291 for atomic_compare_and_exchange_bool_acq failure.
3293 2003-04-03 Ulrich Drepper <drepper@redhat.com>
3295 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
3296 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
3297 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
3298 Remove declaration of pthread_atfork.
3300 2003-04-02 Ulrich Drepper <drepper@redhat.com>
3302 * locale/iso-639.def: Add many more languages from the current ISO 639.
3304 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
3305 * sysdeps/generic/semtimedop.c: New file.
3306 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
3307 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
3308 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3309 * sysvipc/Makefile (routines): Add semtimedop.
3310 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
3311 * sysvipc/sys/sem.h: Declare semtimedop.
3313 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
3315 * configure.in: Check for __register_frame_info in both
3317 * configure: Regenerated.
3319 2003-04-01 Roland McGrath <roland@redhat.com>
3321 * scripts/abilist.awk: Allow dots in soname suffix.
3323 * scripts/abilist.awk (emit): Fix bailout condition.
3325 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3327 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
3330 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
3331 register as input to asm.
3333 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3335 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
3337 2003-04-01 Andreas Jaeger <aj@suse.de>
3339 * configure.in: Output as/ld as name if version is too old.
3341 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
3343 * configure.in: Don't require an installed C library in the test
3344 for ".set" assembler support.
3346 2003-03-31 Roland McGrath <roland@redhat.com>
3348 * signal/tst-sigset.c: New file.
3349 * signal/Makefile (tests): Add it.
3351 2003-03-31 Ulrich Drepper <drepper@redhat.com>
3353 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
3354 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
3355 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
3356 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
3357 (__SIGRTMAX): Adjust accordingly.
3358 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
3359 second compatibility symbol set.
3360 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
3362 2003-03-31 Andreas Schwab <schwab@suse.de>
3364 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
3366 (atomic_decrement_and_test): Fix test.
3368 2003-03-31 Jakub Jelinek <jakub@redhat.com>
3370 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
3371 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
3372 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
3373 * sysdeps/sparc/sparc32/atomicity.h: Removed.
3374 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
3375 * sysdeps/sparc/sparc64/atomicity.h: Removed.
3377 2003-03-30 Roland McGrath <roland@redhat.com>
3379 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
3381 * intl/po2test.sed: Anchor substitution regexps to fix last change.
3383 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
3385 * intl/po2test.sed: Unify the transformations for msgid and msgstr
3386 and remove a useless s/// command.
3388 2003-03-27 David Mosberger <davidm@hpl.hp.com>
3390 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
3391 directive into empty .prologue region to ensure that call-chain
3392 is terminated even for the first instruction.
3394 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
3395 to terminate call-chain right from the get-go.
3397 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
3398 stop bit between compare & branch.
3400 2003-03-29 Ulrich Drepper <drepper@redhat.com>
3402 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
3403 point correctly [PR libc/4993].
3405 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
3406 netlink_open calls if netlink is known to not be available.
3408 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
3410 * configure.in: Add mips64* support.
3411 * sysdeps/mips/bits/endian.h: Make it bi-endian.
3412 * sysdeps/mips/mipsel/bits/endian.h: Removed.
3413 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
3414 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
3415 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
3416 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
3417 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
3418 * sysdeps/mips/Implies: Moved wordsize-32 to...
3419 * sysdeps/mips/mips32/Implies: New file.
3420 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
3422 (ret, PSEUDO_END): Moved past END.
3423 (PSEUDO): Moved to...
3424 * sysdeps/unix/mips/mips32/sysdep.h: New file.
3425 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
3426 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
3427 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
3428 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
3429 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
3431 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
3434 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
3436 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
3437 * inet/test-ifaddrs.c: Allow AF_PACKET.
3438 * sysdeps/unix/sysv/linux/kernel-features.h: Add
3439 __ASSUME_NETLINK_SUPPORT.
3441 2003-03-28 Ulrich Drepper <drepper@redhat.com>
3443 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
3445 2003-03-26 H.J. Lu <hjl@gnu.org>
3447 * elf/vismod.h (getvarlocal1): Return const char **.
3448 (getvarinmod1): Likewise.
3449 (getvaritcpt1): Likewise.
3450 (getvarlocal2): Likewise.
3451 (getvarinmod2): Likewise.
3452 (getvaritcpt2): Likewise.
3453 (getvaritcpt3): Likewise.
3454 * elf/vismain.c (do_test): Adjusted.
3455 * elf/vismod1.c (getvarlocal1): Return address.
3456 (getvarinmod1): Likewise.
3457 (getvaritcpt1): Likewise.
3458 * elf/vismod2.c (getvarlocal2): Likewise.
3459 (getvarinmod2): Likewise.
3460 (getvaritcpt2): Likewise.
3461 * elf/vismod3.c (getvaritcpt3): Likewise.
3463 2003-03-28 Roland McGrath <roland@redhat.com>
3465 * elf/vismain.c (do_test): Print both addresses when they don't match.
3467 * scripts/abilist.awk: If given -v filename_regexp and/or -v
3468 libname_regexp when parsing names, then produce output only
3469 for those matching the given regexps. In combine mode, save all
3470 stanzas for a final sorting by stanza header at the end.
3471 Emit a blank line between stanzas.
3473 * scripts/abilist.awk: When given -v combine=1, do parse_names and
3474 emit a single output stream with lib name in stanza header lines.
3476 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
3478 2003-03-27 Roland McGrath <roland@redhat.com>
3480 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
3481 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
3483 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3485 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3486 Return old value. Make asm output reg constraint earlyclobber.
3488 (__arch_compare_and_exchange_8_acq): ... this.
3489 (__arch_compare_and_exchange_val_16_acq):
3490 Return old value. Make asm output reg constraint earlyclobber.
3492 (__arch_compare_and_exchange_16_acq): ... this.
3493 (__arch_compare_and_exchange_val_32_acq):
3494 Return old value. Make asm output reg constraint earlyclobber.
3496 (__arch_compare_and_exchange_32_acq): ... this.
3497 (__arch_compare_and_exchange_val_64_acq):
3499 (__arch_compare_and_exchange_64_acq): ... this.
3500 (atomic_exchange_and_add): Use local variables and
3501 __arch_compare_and_exchange_val_64_acq.
3502 (atomic_add): Likewise.
3503 (atomic_add_negative, atomic_add_zero): Use local variables.
3505 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
3507 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
3509 2003-03-27 Ulrich Drepper <drepper@redhat.com>
3511 * Makefile: Remove libmd5crypt goal.
3513 2003-03-25 Jakub Jelinek <jakub@redhat.com>
3515 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
3516 special handling of relocations against local symbols.
3518 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
3520 * sysdeps/powerpc/bits/atomic.h
3521 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
3522 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
3523 Define PPC64 specific version.
3524 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
3525 Change (mem) constraint to "b".
3526 [__powerpc64__] (__arch_atomic_exchange_and add_64):
3527 Replace addi with add. Change (value) contraint to "r".
3528 Change (mem) constraint to "b".
3529 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
3530 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
3531 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
3532 (__arch_atomic_decrement_if_positive_32): New macro.
3533 (atomic_decrement_if_positive): Use __arch* macros.
3535 2003-03-27 Jakub Jelinek <jakub@redhat.com>
3537 * sysdeps/ia64/fpu/libm-test-ulps: Update.
3539 2003-03-27 Roland McGrath <roland@redhat.com>
3541 * scripts/rpm2dynsym.sh: New file.
3542 * Makefile (distribute): Add it.
3544 2003-03-27 David Mosberger <davidm@hpl.hp.com>
3546 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
3547 ar.unat before returning. Add missing .mem.offset directives
3548 to ensure file gets assembled without warnings.
3549 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3551 2003-03-27 Jakub Jelinek <jakub@redhat.com>
3553 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
3554 Return -1 instead of 0 if clock_getres failed.
3556 2003-03-27 Roland McGrath <roland@redhat.com>
3558 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
3559 header lines and write out foo.symlist files for each foo.so.NN listed.
3561 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
3562 This symbol is exported, and we don't want to hide it.
3563 Add libc_hidden_proto instead.
3564 (_IO_file_jumps): Add libc_hidden_proto.
3565 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
3567 * libio/fileops.c (_IO_file_jumps): Likewise.
3568 * libio/stdfiles.c: Don't use INTUSE on them.
3569 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
3570 * libio/iofopen.c (__fopen_internal): Likewise.
3571 * libio/freopen.c (freopen): Likewise.
3572 * libio/freopen64.c (freopen64): Likewise.
3573 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3575 * Makerules (check-abi) [$(enable-check-abi) = warn]:
3576 Ignore exit status from diff.
3577 * configure.in (enable_check_abi): Document possible value "warn".
3578 Change default to no for now.
3579 * configure: Regenerated.
3581 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
3582 macro calls and a #include <stub-tag.h> at the end.
3583 * Makerules ($(objpfx)stubs): Tweak sed commands.
3585 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
3586 caller column for *xattr syscalls, since they are in sysdeps/generic.
3588 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
3589 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
3591 2003-03-26 Roland McGrath <roland@redhat.com>
3593 * Makerules (check-abi-config): Use /thread instead of /tls when
3594 use-thread and not just use-tls is set.
3596 * Makerules (update-abi): Put quotes around $(update-abi-config).
3598 * elf/Makefile (check-abi): Depend on check-abi-ld.
3599 (update-abi): Depend on update-abi-ld.
3601 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
3603 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
3604 do not check for errors (unless testing for 32bit variant).
3605 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3607 2003-03-27 Philip Blundell <philb@gnu.org>
3609 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
3610 unconditional mov. Remove nop.
3612 * sysdeps/unix/sysv/linux/kernel-features.h
3613 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
3614 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
3615 when __ASSUME_VFORK_SYSCALL is defined.
3616 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
3617 __ASSUME_MMAP2_SYSCALL.
3618 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
3619 __ASSUME_REALTIME_SIGNALS.
3621 2003-03-26 Ulrich Drepper <drepper@redhat.com>
3623 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
3624 only if DL_NO_COPY_RELOCS is not defined.
3625 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
3627 2003-03-26 Roland McGrath <roland@redhat.com>
3629 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
3630 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
3631 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
3632 (sysdep_routines): Add stub-syscalls.
3633 ($(objpfx)stub-syscalls.c): New target.
3634 (generated): Add stub-syscalls.c.
3636 * tls.make.c: Also define use-tls according to USE_TLS macro.
3638 2003-03-26 Ulrich Drepper <drepper@redhat.com>
3640 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
3641 no-op padding element.
3642 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
3643 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3644 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3645 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3647 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
3649 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
3650 condition check for the return value of getgroups32.
3652 2003-03-26 Jakub Jelinek <jakub@redhat.com>
3654 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
3656 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
3657 PSEUDO_END_NOERRNO): Define.
3658 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
3659 Define to PSEUDO_END.
3661 2003-03-26 Ulrich Drepper <drepper@redhat.com>
3663 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
3665 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
3667 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
3668 * iconvdata/bug-iconv4.c: New file.
3669 * iconvdata/Makefile (tests): Add bug-iconv4.
3671 2003-03-25 H.J. Lu <hjl@gnu.org>
3673 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
3675 (_dl_lookup_versioned_symbol): Likewise.
3677 2003-03-26 Jakub Jelinek <jakub@redhat.com>
3679 * csu/tst-atomic.c (do_test): Add some new
3680 atomic_compare_and_exchange_val_acq, atomic_add_zero,
3681 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
3682 * include/atomic.h (atomic_add_negative, atomic_add_zero):
3683 Prefix local variable so that it doesn't clash with the one
3684 in atomic_exchange_and_add.
3685 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
3687 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
3688 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
3689 value into register.
3690 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
3691 Cast newval to long.
3692 * sysdeps/x86_64/bits/atomic.h
3693 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
3695 (atomic_exchange): Cast newvalue to long if sizeof == 8.
3696 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
3697 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3698 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
3700 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
3702 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
3703 bit from backtrace addresses.
3705 2003-03-21 Andreas Schwab <schwab@suse.de>
3707 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
3710 2003-03-25 Roland McGrath <roland@redhat.com>
3712 * config.make.in (enable-check-abi): New variable from configure.
3713 * configure.in (enable_check_abi): New substituted variable,
3714 controlled by --{enable,disable}-check-abi (default yes).
3715 * configure: Regenerated.
3716 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
3717 on check-abi dependency.
3719 2003-03-26 Andreas Schwab <schwab@suse.de>
3721 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
3722 * include/atomic.h: Likewise.
3724 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
3726 2003-03-25 Roland McGrath <roland@redhat.com>
3728 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
3729 (__arch_atomic_exchange_64): New macro.
3730 (atomic_exchange): Use them.
3731 (__arch_atomic_exchange_and_add_32): New macro.
3732 (__arch_atomic_exchange_and_add_64): New macro.
3733 (atomic_exchange_and_add): Use them.
3734 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
3736 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
3738 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
3740 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
3742 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
3743 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
3744 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3745 to decide whether to add padding.
3746 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3747 to decide whether to add padding.
3748 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
3749 old_kernel_sigaction): Likewise.
3751 2003-03-25 Ulrich Drepper <drepper@redhat.com>
3753 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
3754 atomic_add_zero were supposed to do.
3755 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
3758 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
3759 This matches the new timer implementation.
3760 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
3762 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
3764 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
3765 timer info for what the kernel provides these days.
3766 (struct sigevent): Add _tid field.
3767 Define SIGEV_THREAD_ID.
3768 Remove struct __pthread_attr_s forward declaration.
3769 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
3770 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3771 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3772 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3774 * Versions.def (librt): Add GLIBC_2.3.3.
3776 * abilist/libpthread.abilist: Update for nptl.
3778 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
3780 * inet/netinet/in.h: Add IPPROTO_SCTP.
3782 2003-03-24 Ulrich Drepper <drepper@redhat.com>
3784 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
3786 2003-03-24 Philip Blundell <philb@gnu.org>
3788 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
3789 Remove a1 from clobber list.
3791 2003-03-24 Ulrich Drepper <drepper@redhat.com>
3793 * timezone/antarctica: Update from tzdata2003a.
3794 * timezone/asia: Likewise.
3795 * timezone/australasia: Likewise.
3796 * timezone/europe: Likewise.
3797 * timezone/iso3166.tab: Likewise.
3798 * timezone/northamerica: Likewise.
3799 * timezone/southamerica: Likewise.
3800 * timezone/zone.tab: Likewise.
3802 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
3804 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
3806 2003-03-23 Ulrich Drepper <drepper@redhat.com>
3808 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
3809 unwanted expansion by definining to ret. Patch by Ian Wienand.
3811 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
3812 the parameter description to denote no error checking. Generate
3813 appropriate pseudo asm code.
3814 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
3815 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
3816 getpgrp, and getppid with 'E'.
3817 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
3818 PSEUDO_END_NOERRNO, and ret_NOERRNO.
3819 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3820 * sysdeps/unix/sysdep.h: Likewise.
3821 * sysdeps/unix/alpha/sysdep.h: Likewise.
3822 * sysdeps/unix/sparc/sysdep.h: Likewise.
3823 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
3824 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
3825 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
3826 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3827 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3828 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3829 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3830 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3831 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
3832 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3833 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3835 2003-03-23 Roland McGrath <roland@redhat.com>
3837 * Makeconfig (+includes): Don't use $(last-includes).
3839 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
3841 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
3842 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3844 2003-03-23 Jakub Jelinek <jakub@redhat.com>
3846 * sysdeps/alpha/fpu/libm-test-ulps: Update.
3847 * sysdeps/arm/libm-test-ulps: Update.
3848 * sysdeps/hppa/fpu/libm-test-ulps: Update.
3849 * sysdeps/ia64/fpu/libm-test-ulps: Update.
3850 * sysdeps/mips/fpu/libm-test-ulps: Update.
3851 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3852 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3853 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
3854 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
3855 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
3856 * sysdeps/s390/fpu/libm-test-ulps: Update.
3857 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3859 2003-03-22 Roland McGrath <roland@redhat.com>
3861 * include/atomic.h: Put parens around all macro arguments.
3862 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
3863 (atomic_compare_and_exchange_val_acq): Use it.
3864 (atomic_compare_and_exchange_bool_acq): Likewise.
3865 (atomic_increment_and_test): Invert sense of test.
3866 (atomic_decrement_and_test): Likewise.
3867 * csu/tst-atomic.c: Update those tests to match.
3869 2003-03-22 Jakub Jelinek <jakub@redhat.com>
3871 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
3872 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
3873 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
3874 __oldval variable in the macro, since it might be macro argument.
3875 (atomic_decrement_if_positive): Initialize __memp, remove setting
3876 of non-existent variable.
3877 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
3878 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
3879 using atomic_compare_and_exchange_val_acq.
3880 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
3881 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3883 (__arch_compare_and_exchange_bool_8_acq): ... this.
3884 (__arch_compare_and_exchange_val_16_acq): Renamed from...
3885 (__arch_compare_and_exchange_bool_16_acq): ... this.
3886 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
3888 (__arch_compare_and_exchange_bool_32_acq): ... this.
3889 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
3891 (__arch_compare_and_exchange_bool_64_acq): ... this.
3892 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
3893 variables types instead of assuming int.
3894 Change prefix of local variables to __arch.
3895 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
3897 (atomic_compare_and_exchange_val_acq,
3898 atomic_compare_and_exchange_bool_acq): Define.
3900 * csu/tst-atomic.c: New test.
3901 * csu/tst-atomic-long.c: New test.
3902 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
3904 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
3906 * sysdeps/s390/Versions: Add trailing newline.
3908 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
3909 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
3911 2003-03-22 Andreas Schwab <schwab@suse.de>
3913 * sysdeps/m68k/fpu/libm-test-ulps: Update.
3915 * sysdeps/m68k/m68020/bits/atomic.h: New file.
3916 * sysdeps/m68k/m68020/atomicity.h: Removed.
3918 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
3920 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
3921 data structures and macros. Protect from multiple inclusion.
3923 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
3926 2003-03-21 Andreas Jaeger <aj@suse.de>
3928 * sysdeps/i386/fpu/libm-test-ulps: Update.
3930 * math/libm-test.inc (tgamma_test): Recompute some constants with
3931 36 digits precision.
3932 (lgamma_test): Likewise.
3933 (ccos_test): Likewise.
3934 (ccosh_test): Likewise.
3935 (clog10_test): Likewise.
3936 (csin_test): Likewise.
3937 (csinh_test): Likewise.
3938 (ctan_test): Likewise.
3939 (ctanh_test): Likewise.
3941 2003-03-19 Jakub Jelinek <jakub@redhat.com>
3943 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
3945 2003-03-21 Roland McGrath <roland@redhat.com>
3947 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
3948 constraint to permit non-constant BIT argument.
3949 (atomic_bit_test_set): Likewise.
3950 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
3951 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
3952 For quadword case, use "i" constraint if __builtin_constant_p and < 32
3953 or "r" constraint otherwise.
3955 * configure.in: Move AC_PROG_CC and other program-finding before all
3957 * configure: Regenerated.
3959 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3961 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
3962 unaligned copying of 8-15 bytes. From Chris Demetriou
3963 <cgd@broadcom.com>. Fix label names.
3964 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
3965 change as to memcpy.S.
3966 * sysdeps/mips/memcpy.S: Formatting changes.
3967 * sysdeps/mips/memset.S: Likewise.
3969 2003-03-21 Roland McGrath <roland@redhat.com>
3971 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
3973 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3975 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
3976 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
3978 2003-03-21 Roland McGrath <roland@redhat.com>
3980 * sysdeps/i386/i486/bits/atomic.h
3981 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
3982 version of the macro to avoid compile-time warnings.
3983 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
3984 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
3985 (atomic_increment, atomic_decrement): Likewise.
3987 2003-03-21 Ulrich Drepper <drepper@redhat.com>
3989 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
3990 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3992 2003-03-21 Roland McGrath <roland@redhat.com>
3994 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
3996 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3998 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
3999 atomic_compare_and_exchange_val_rel,
4000 atomic_compare_and_exchange_bool_acq, and
4001 atomic_compare_and_exchange_bool_rel instead of
4002 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4003 * sysdeps/i386/i486/bits/atomic.h: Define
4004 __arch_compare_and_exchange_val_*_acq instead of
4005 __arch_compare_and_exchange_*_acq.
4006 * sysdeps/x86_64/bits/atomic.h: Likewise.
4007 * sysdeps/ia64/bits/atomic.h: Define
4008 __arch_compare_and_exchange_bool_*_acq instead of
4009 __arch_compare_and_exchange_*_acq.
4010 * sysdeps/powerpc/bits/atomic.h: Likewise.
4011 * sysdeps/s390/bits/atomic.h: Likewise.
4012 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4013 * malloc/set-freeres.c: Likewise.
4014 * nscd/cache.c: Likewise.
4015 * stdlib/cxa_finalize.c: Likewise.
4016 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4018 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4020 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4021 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4022 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4024 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4025 into high and low halves on n64.
4026 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4027 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4028 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4030 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4032 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4033 correct atomic_compare_and_exchange_acq semantics.
4035 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4037 * sysdeps/mips/ieee754.h: Remove excess #endif.
4039 2003-03-20 Roland McGrath <roland@redhat.com>
4041 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4042 variable. Remove superfluous memory clobber.
4044 * include/atomic.h: Syntax braino fix.
4046 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4047 in decimal. Don't bail if niced at start. Just check that nice call
4048 bumps the total at all.
4050 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4052 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4053 including pc, gp, sp and fp, as long long.
4054 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4055 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4056 Add gp argument, and set gp in the jmpbuf to it.
4057 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4059 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4061 * include/atomic.h: Define atomic_exchange and
4062 atomic_decrement_if_positive if not already defined. Add some
4064 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4065 * sysdeps/x86_64/bits/atomic.h: Likewise.
4066 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4067 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4068 atomic_exchange, atomic_exchange_and_add, and
4069 atomic_decrement_if_positive
4071 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4073 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4074 with a single instruction.
4076 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4078 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4080 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4081 Word before comparing with gotsym. Take reloc_addr argument as
4082 void*. Remove the code added for the compiler to drop any
4083 alignment assumptions.
4085 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4087 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4088 * include/atomic.h: New file.
4089 * sysdeps/i386/i486/bits/atomic.h: New file.
4090 * sysdeps/x86_64/bits/atomic.h: New file.
4091 * sysdeps/s390/bits/atomic.h: New file.
4092 * sysdeps/sh/bits/atomic.h: New file.
4093 * sysdeps/ia64/bits/atomic.h: New file.
4094 * sysdeps/powerpc/bits/atomic.h: New file.
4095 * sysdeps/generic/bits/atomic.h: New file.
4096 * sysdeps/i386/i486/atomicity.h: Removed.
4097 * sysdeps/x86_64/atomicity.h: Removed.
4098 * sysdeps/s390/s390-32/atomicity.h: Removed.
4099 * sysdeps/s390/s390-64/atomicity.h: Removed.
4100 * sysdeps/ia64/atomicity.h: Removed.
4101 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4102 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4103 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
4104 use of macros from atomicity.h to new names and semantics.
4105 * gmon_mcount.c: Likewise.
4106 * malloc/set-freeres.c: Likewise.
4107 * nscd/cache.c: Likewise.
4108 * stdlib/cxa_finalize.c: Likewise.
4109 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4111 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4113 * sysdeps/mips/ieee754.h: New file, suitable to replace both
4114 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4115 mips-specific for now.
4117 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4119 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
4120 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
4121 * stdlib/tst-strtod.c: Add test for the bug.
4123 * posix/tst-nice.c (do_test): Remove invalid of return value.
4124 Don't run test if initial level != 0.
4126 2003-03-19 Amos Waterland <apw@us.ibm.com>
4128 * posix/tst-nice.c: New file.
4129 * posix/Makefile (tests): Add tst-nice.
4131 2003-03-18 Roland McGrath <roland@redhat.com>
4133 * abilist: New directory of libfoo.abilist files maintained using
4134 scripts/merge-abilist.awk and "make update-abi" rules.
4135 * Makefile (distribute): Add abilist/*.abilist.
4136 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4137 Depend on check-abi.
4139 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4140 * configure: Regenerated.
4142 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4144 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4146 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4149 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
4151 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4153 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4155 * Versions.def: Add GLIBC_2.3.3 for libpthread.
4157 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4159 * sysdeps/generic/libc-start.c [!SHARED &&
4160 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4162 2003-03-17 Roland McGrath <roland@redhat.com>
4164 * include/ctype.h: Revert last change.
4166 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4168 * argp/tst-argp1.c: Use test-skeleton.c.
4169 * locale/tst-C-locale.c: Likewise.
4171 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
4173 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
4174 * sysdeps/mips/mips64/n64/Implies: New file.
4175 * sysdeps/mips/mips64/n64/Makefile: New file.
4176 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
4177 * sysdeps/mips/mips64/n32/Implies: New file.
4178 * sysdeps/mips/mips64/n32/Makefile: New file.
4179 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
4180 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
4181 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
4182 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
4183 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
4184 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
4185 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
4186 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
4187 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
4188 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
4189 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
4190 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
4191 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
4192 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
4194 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
4195 lib64 for mips64/n64 and lib32 for mips64/n32.
4196 (ldd_rewrite_script): Needed for all mips64 configurations.
4197 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4198 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
4199 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
4201 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
4204 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
4205 asm/unistd.h into asm-unistd.h.
4206 * sysdeps/unix/sysv/linux/mips/configure: Generated.
4207 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
4209 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
4210 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
4213 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
4214 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
4215 long type for registers on n32.
4217 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
4219 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
4220 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
4221 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
4222 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
4223 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
4224 * sysdeps/unix/mips/brk.S: Likewise.
4225 * sysdeps/unix/mips/sysdep.S: Likewise.
4226 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4227 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
4228 * sysdeps/mips/sys/ucontext.h: Likewise.
4229 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
4230 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4231 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4232 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4233 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
4234 * sysdeps/mips/mips64/setjmp.S: Likewise.
4235 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
4236 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
4239 2003-03-16 Ulrich Drepper <drepper@redhat.com>
4241 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
4242 not at function level.
4243 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
4245 2003-03-15 Roland McGrath <roland@redhat.com>
4247 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
4248 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4249 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
4250 * nis/nis_table.c (__create_ib_request): Likewise.
4252 * posix/fnmatch_loop.c: Add casts for signedness.
4253 * nss/nss_files/files-hosts.c: Likewise.
4254 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4255 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
4256 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
4258 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
4259 get errors into the log file.
4260 (libc_cv_broken_visibility_attribute): Likewise.
4261 (libc_cv_broken_alias_attribute): Likewise.
4262 (libc_cv_asm_weak_directive): Likewise.
4263 (libc_cv_need_minus_P): Likewise.
4264 (libc_cv_dot_text): Likewise.
4265 (libc_cv_asm_global_directive): Likewise.
4266 (libc_cv_asm_type_prefix): Likewise.
4267 * configure: Regenerated.
4269 * nscd/cache.c (cache_search): Give first arg type `request_type'.
4270 * nscd/nscd.h: Update decl.
4272 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
4273 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4274 * elf/dl-close.c (_dl_close): Likewise.
4275 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
4276 * io/fts.c (fts_build): Likewise.
4277 * elf/cache.c (add_to_cache): Likewise.
4278 * locale/programs/locarchive.c (show_archive_content): Likewise.
4280 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
4282 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
4284 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
4286 2003-03-15 Ulrich Drepper <drepper@redhat.com>
4288 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
4289 code for most parts.
4291 2003-03-15 Roland McGrath <roland@redhat.com>
4293 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
4294 * sysdeps/unix/sysv/linux/system.c: ... here.
4295 (FORK): Don't #define if already #define'd.
4296 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
4297 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
4298 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
4300 * dlfcn/tst-dlinfo.c: New file.
4301 * dlfcn/Makefile (tests): Add tst-dlinfo.
4302 ($(objpfx)tst-dlinfo): New target.
4304 * dlfcn/dlinfo.c: New file.
4305 * dlfcn/Makefile (libdl-routines): Add it.
4306 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
4307 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
4308 [__USE_GNU] (RTLD_DI_*): New enum constants.
4309 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
4310 * elf/dl-load.c (cache_rpath): New inline function.
4311 (_dl_map_object): Use it.
4312 (_dl_rtld_di_serinfo): New function.
4313 * sysdeps/generic/ldsodefs.h: Declare it.
4314 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4316 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
4317 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
4318 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
4319 (__libc_start_main): Just call the generic one for most of the work.
4321 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
4322 static function by that name instead of BP_SYM (__libc_start_main).
4323 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
4324 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
4325 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
4327 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
4328 Use this macro for extra AT_* cases.
4329 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
4330 New macro, guts from ...
4331 (__aux_init_cache): ... here, function removed.
4332 (DL_PLATFORM_INIT): Don't define this.
4334 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
4335 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
4337 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
4339 2003-03-14 Roland McGrath <roland@redhat.com>
4341 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
4343 2003-03-14 Jakub Jelinek <jakub@redhat.com>
4345 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
4347 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4348 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
4350 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
4352 * sysdeps/mips/fpu/bits/mathdef.h: New.
4353 (__NO_LONG_DOUBLE_MATH): Define for o32.
4355 * sysdeps/mips/sys/asm.h: Formatting changes.
4356 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
4357 (CPADD): Define for all of them.
4358 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
4359 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
4360 NARGSAVE): Define per ABI spec.
4361 (END): Don't redefine.
4362 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
4363 LONG_SRAV): Remove duplicate definitions.
4364 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
4365 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
4366 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
4367 (PTR_LA): Define for all 3 ABIs.
4369 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
4370 (elf_machine_matches_host): Prevent linking of o32 and n32
4372 (elf_machine_dynamic): Document assumption on $gp.
4373 (STRINGXP, STRINGXV, STRINGV_): New macros.
4374 (elf_machine_load_address): Use them to stringize PTR_LA and
4376 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
4377 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
4378 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
4379 (__dl_runtime_resolve): Cast the symtab initializer to the
4381 (RTLD_START): Use it. Adjust it for all 3 ABIs.
4382 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
4383 Handle 64-bit R_MIPS_REL composite relocation and accept
4384 R_MIPS_64 relocations to shift addend size to 64 bits.
4385 Document assumption regarding local GOT entries. Document
4386 backward-compatibility departing from the ABI behavior in
4387 applying relocations that reference section symbols, no longer
4388 used. Support relocations to mis-aligned offsets.
4389 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
4391 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
4393 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
4394 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
4395 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
4396 restore_rt functions. Use them.
4398 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4399 .set mips2 on new abis.
4401 2003-03-13 Ulrich Drepper <drepper@redhat.com>
4403 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
4404 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
4405 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
4406 * sysdeps/posix/pathconf.c: Likewise.
4407 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
4408 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4409 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
4411 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
4414 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
4416 * include/gmp.h: Include/gmp-mparam.h.
4417 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
4420 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
4421 ELF_MACHINE_NO_RELA is set.
4422 * elf/rtld.c (dl_main): No prelink support for REL-only.
4424 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
4425 FLAG_MIPS64_LIBN64): Define.
4426 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
4428 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
4429 * sysdeps/mips/memset.S: Likewise.
4430 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
4431 depending on the ABI.
4433 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
4434 Don't .set mips2 on new abi.
4435 (compare_and_swap): Likewise. Support 64-bit longs on n64.
4437 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
4439 2003-03-13 Roland McGrath <roland@redhat.com>
4441 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
4442 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
4444 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
4446 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
4448 * stdlib/fpioconst.c: Likewise.
4449 * stdlib/strtod.c: Likewise.
4451 * sysdeps/mips/add_n.S: Use L macro for local labels.
4452 * sysdeps/mips/addmul_1.S: Likewise.
4453 * sysdeps/mips/lshift.S: Likewise.
4454 * sysdeps/mips/memcpy.S: Likewise.
4455 * sysdeps/mips/memset.S: Likewise.
4456 * sysdeps/mips/mul_1.S: Likewise.
4457 * sysdeps/mips/rshift.S: Likewise.
4458 * sysdeps/mips/sub_n.S: Likewise.
4459 * sysdeps/mips/submul_1.S: Likewise.
4460 * sysdeps/mips/mips64/add_n.S: Likewise.
4461 * sysdeps/mips/mips64/addmul_1.S: Likewise.
4462 * sysdeps/mips/mips64/lshift.S: Likewise.
4463 * sysdeps/mips/mips64/mul_1.S: Likewise.
4464 * sysdeps/mips/mips64/rshift.S: Likewise.
4465 * sysdeps/mips/mips64/sub_n.S: Likewise.
4466 * sysdeps/mips/mips64/submul_1.S: Likewise.
4467 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
4468 conventions. Define END as in sys/asm.h.
4469 * sysdeps/unix/mips/sysdep.S: Likewise.
4470 * sysdeps/unix/mips/wait.S: Likewise.
4471 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4473 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
4474 Cast shifted values that may be too narrow to mp_limb_t.
4475 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
4477 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
4479 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
4480 (__mpn_extract_long_double): Likewise.
4481 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
4482 (__mpn_construct_long_double): Likewise.
4483 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
4484 (__mpn_extract_long_double): Likewise.
4485 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
4486 (__mpn_construct_long_double): Likewise.
4488 2003-03-13 Roland McGrath <roland@redhat.com>
4490 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
4491 entries in the map file match too.
4493 2003-03-13 Guido Guenther <agx@sigxcpu.org>
4495 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
4496 label .Lthread_start since current binutils don't allow branches
4497 to globally visible symbols.
4499 2003-03-13 Jakub Jelinek <jakub@redhat.com>
4501 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
4502 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
4503 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
4504 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
4505 clobbered by the syscall.
4506 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
4507 ASM_ARGS_6): Change constraints from r to index of corresponding
4509 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
4510 ptid and ctid to match kernel.
4511 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
4513 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
4515 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
4516 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
4517 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
4519 2003-03-11 Roland McGrath <roland@redhat.com>
4521 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4522 Check SYM_MAP rather than SYM as definedness check.
4523 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
4524 Don't handle R_PPC64_REL24 reloc.
4525 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4527 * sysdeps/powerpc/powerpc64/dl-machine.h
4528 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
4529 block, so we cover all the TPREL16* flavors without 6 ||s.
4530 [USE_TLS] (elf_machine_tprel): New function.
4531 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
4532 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
4533 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4535 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
4537 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
4538 instead of jalr to invoke subroutine so restoring the $gp register
4541 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
4543 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
4544 to __NR_pread if not defined.
4545 (__NR_pwrite64): Define to __NR_pwrite if not defined.
4547 2003-03-11 Jakub Jelinek <jakub@redhat.com>
4549 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
4550 * sysdeps/unix/sysv/linux/kernel-features.h
4551 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
4554 2003-03-11 Jakub Jelinek <jakub@redhat.com>
4556 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
4557 allocate space even for the trailing '/'.
4558 Reported by John Reiser <jreiser@BitWagon.com>.
4560 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
4561 ASM_CLOBBERS_6): Define.
4562 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
4563 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
4564 to match IA-32 order.
4565 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
4567 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
4569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
4570 Copy extra params for NPTL to registers used in clone syscall.
4572 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4574 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
4575 call names for pread and pwrite.
4577 2003-03-10 Roland McGrath <roland@redhat.com>
4579 * dlfcn/Makefile (libdl-routines): Add dladdr1.
4580 * dlfcn/dladdr1.c: New file.
4581 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
4582 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
4583 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
4584 a const ElfNN_Sym ** to fill in.
4585 * include/dlfcn.h: Update decl. Include <link.h>.
4586 * dlfcn/dladdr.c (dladdr): Update caller.
4587 * malloc/mtrace.c (tr_where): Likewise.
4588 * sysdeps/generic/elf/backtracesyms.c: Likewise.
4589 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4590 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
4591 * Versions.def (libdl): Define GLIBC_2.3.3 set.
4593 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
4595 * sysdeps/unix/Makefile (compile-syscall): New variable.
4596 Pass -g0 to compiler for assembling syscall stubs from stdin.
4598 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
4599 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
4600 Define these to do nothing.
4602 * configure.in: New check for -g on .S files.
4603 * configure: Regenerated.
4604 * config.make.in (have-cpp-asm-debuginfo): New variable.
4605 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
4606 * Makeconfig (ASFLAGS): New variable, if undefined and
4607 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
4608 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
4610 2003-03-09 Roland McGrath <roland@redhat.com>
4612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
4613 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
4615 2003-03-09 Ulrich Drepper <drepper@redhat.com>
4617 * po/fi.po: Update from translation team.
4618 * po/ca.po: Likewise.
4619 * po/da.po: Likewise.
4621 2003-03-08 Ulrich Drepper <drepper@redhat.com>
4623 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
4625 2003-03-07 Ulrich Drepper <drepper@redhat.com>
4627 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
4629 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
4631 2003-03-07 Roland McGrath <roland@redhat.com>
4633 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
4634 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
4636 2003-03-04 Guido Guenther <agx@sigxcpu.org>
4638 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
4639 stubs, we have INLINE_SYSCALL.
4640 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
4643 2003-03-06 Roland McGrath <roland@redhat.com>
4645 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
4646 permanent extent and add a comment about testing its implicit teardown.
4648 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4650 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
4652 2003-03-05 Ulrich Drepper <drepper@redhat.com>
4654 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
4655 reversed __builtin_expect expectation.
4657 2003-03-05 Roland McGrath <roland@redhat.com>
4659 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
4660 * libio/swscanf.c: Likewise.
4661 * libio/swprintf.c: Likewise.
4663 2003-03-04 Roland McGrath <roland@redhat.com>
4665 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
4666 (elf_machine_rela): Always use RESOLVE_MAP, needed for
4667 R_PPC64_JMP_SLOT as well as TLS cases.
4668 (BIT_INSERT): Move parenthesis where it ought to have been.
4669 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
4671 * posix/confstr.c (confstr): Correct STRING_LEN values for
4672 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
4673 break. Reported by Alexandre Julliard <julliard@winehq.com>.
4675 2003-03-04 Jakub Jelinek <jakub@redhat.com>
4677 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4679 2003-03-04 Ulrich Drepper <drepper@redhat.com>
4681 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
4684 * po/sv.po: Update from translation team.
4686 2003-03-04 Andreas Jaeger <aj@suse.de>
4687 Ulrich Drepper <drepper@redhat.com>
4689 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
4691 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4693 * sysdeps/generic/dl-sysdep.h: Add double include protection.
4695 * po/tr.po: Update from translation team.
4697 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
4698 are holes between the segments. Only call mprotect to set
4699 proection to PROT_NONE if there are some.
4701 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
4704 * include/sched.h (__clone2): Use ... instead of adding all the
4707 2003-03-03 Roland McGrath <roland@redhat.com>
4709 * elf/dl-load.c (struct filebuf): Fix typo in last change.
4711 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
4712 PI_STATIC_AND_HIDDEN.
4714 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
4716 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
4718 * include/sched.h: Update clone2 prototype.
4720 2003-03-03 Andreas Jaeger <aj@suse.de>
4722 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
4723 (llrint): Use it to correct return type.
4726 (llround): Likewise.
4728 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4730 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
4733 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
4734 if ccs parameter isn't valid. Reported by Andreas Schwab.
4736 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4738 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
4739 for system call numbers > 255.
4740 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
4741 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4742 INTERNAL_SYSCALL): Likewise.
4743 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
4744 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
4745 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4746 INTERNAL_SYSCALL): Likewise.
4748 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4750 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
4751 array if it is the initial dtv.
4753 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4755 * po/es.po: Update from translation team.
4756 * po/fr.po: Likewise.
4757 * po/gl.po: Likewise.
4758 * po/sk.po: Likewise.
4759 * po/sv.po: Likewise.
4761 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
4762 * misc/sys/mman.h: Add prototype for remap_file_pages.
4763 * sysdeps/generic/remap_file_pages.c: New file.
4764 * misc/Makefile (routines): Add remap_file_pages.
4765 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
4767 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
4769 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4770 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
4771 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
4772 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
4773 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4774 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
4775 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
4776 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4778 2003-03-03 Roland McGrath <roland@redhat.com>
4780 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
4781 * sysdeps/ia64/dl-machine.h: Likewise.
4782 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
4784 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
4786 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
4787 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
4788 * locale/Versions (libc: GLIBC_2.3): Move those to ...
4789 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
4790 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
4791 * Versions.def (libc): Add GLIBC_2.3.3 set.
4793 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
4794 * sysdeps/ia64/dl-machine.h: Update decl.
4796 2003-03-03 Andreas Jaeger <aj@suse.de>
4798 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
4800 2003-03-02 Roland McGrath <roland@redhat.com>
4802 * scripts/abilist.awk: Reject data items with apparent 0 size.
4804 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
4805 after foo.* as if it were a duplicate.
4807 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
4809 2003-03-02 Ulrich Drepper <drepper@redhat.com>
4811 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
4813 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
4814 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
4815 if not already defined. Use SYSDEP_GETRES to allow other files to
4816 provide alternative implementations.
4817 * sysdeps/unix/sysv/linux/clock_getres.c: New file
4818 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
4819 if not already defined. Use SYSDEP_GETTIME to allow other files to
4820 provide alternative implementations.
4821 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
4822 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
4823 if not already defined. Use SYSDEP_GETTIME to allow other files to
4824 provide alternative implementations.
4825 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
4826 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
4827 other files to provide alternative implementations. Rearrange
4828 tests for invalid parameters.
4829 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
4830 * sysdeps/unix/sysv/linux/sysconf.c: New file.
4831 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4832 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
4833 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4834 _POSIX_MONOTONIC_CLOCK.
4836 2003-03-02 Roland McGrath <roland@redhat.com>
4838 * scripts/merge-abilist.awk: More checks for bogus input.
4839 Uniquify duplicate config names.
4841 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
4843 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
4844 from dl_reloc_overflow, make global.
4845 (__process_machine_rela): Update callers.
4846 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
4847 Add attribute_hidden to __process_machine_rela decl.
4848 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
4850 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
4853 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
4854 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
4855 (elf_machine_rela): Clean up.
4857 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
4859 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
4860 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
4861 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
4862 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
4863 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
4864 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
4867 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
4868 macros out of [SHARED].
4869 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
4871 * elf/elf.h: Define R_PPC_* relocs for TLS support.
4872 Clean up R_PPC64_* macro definition comments.
4874 * configure.in: In "running configure fragment for" message,
4875 omit $srcdir from the name if we prepended it.
4876 * configure: Regenerated.
4878 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
4879 From Jakub Jelinek <jakub@redhat.com>.
4881 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
4882 which duplicated the O_DIRECT defn.
4884 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4886 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
4889 2003-03-01 Andreas Schwab <schwab@suse.de>
4891 * resolv/Makefile (tests): Don't depend on
4892 $(objpfx)mtrace-tst-leaks when cross compiling.
4894 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
4895 __libc_stack_end through GOT since it is a global symbol.
4897 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4899 * argp/argp.h: Fix a typo.
4900 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
4902 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
4904 2003-02-27 Pat Rankin <rankin@pactechdata.com>
4906 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
4908 (get_subexp): Likewise.
4910 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4912 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
4914 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4916 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
4918 2003-02-27 Roland McGrath <roland@redhat.com>
4920 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
4921 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
4922 repeat it and avoids the test for the common case.
4923 Clean up and fix calculations for TLS relocs.
4925 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
4926 * sysdeps/powerpc/dl-tls.h: ... here.
4927 (TLS_TP_OFFSET): New macro.
4929 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
4931 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4933 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
4934 code generation changes in recent gcc.
4936 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4938 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
4939 Rename argument to avoid symbol conflict.
4941 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
4942 [__USE_GNU] (O_DIRECT): New macro.
4944 2003-02-24 David Mosberger <davidm@hpl.hp.com>
4946 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
4949 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4951 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
4952 initializer anymore now that res_thread_freeres is more careful.
4954 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
4955 except the PKTINFO. Reset interface in PKTINFO.
4956 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
4958 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
4960 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
4961 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
4963 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
4964 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
4965 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
4966 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
4968 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4969 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
4971 2003-02-25 Andreas Jaeger <aj@suse.de>
4973 * manual/memory.texi (Malloc Tunable Parameters): Clarify
4974 behaviour of M_MMAP_THRESHOLD.
4976 2003-02-25 Roland McGrath <roland@redhat.com>
4978 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
4979 zero, inidicating _res was not initialized yet.
4981 2003-02-24 Ulrich Drepper <drepper@redhat.com>
4983 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
4986 2003-02-24 Roland McGrath <roland@redhat.com>
4988 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
4990 2003-02-23 Roland McGrath <roland@redhat.com>
4992 * sysdeps/posix/pause.c: New file.
4993 * sysdeps/unix/common/pause.c: File removed.
4995 2003-02-23 Ulrich Drepper <drepper@redhat.com>
4997 * sysdeps/generic/bits/confname.h: Remove #ifs.
4999 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5000 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5002 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5005 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5007 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5009 2003-02-22 Roland McGrath <roland@redhat.com>
5011 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5012 * resolv/Makefile (tests): Add tst-leaks.
5013 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5014 (tst-leaks-ENV): New variable.
5015 ($(objpfx)mtrace-tst-leaks): New target.
5016 (tests): Depend on it.
5018 * include/libc-internal.h: Declare __libc_thread_freeres.
5020 * Makerules: Fix last change to use $($(subdir)-version) when set.
5022 * Makerules (install-lib-nosubdir): Depend on installed
5023 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5024 regardless of the libfoo.so target's dependencies.
5026 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5027 Use that in $(MAKE) calls.
5029 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5031 * catgets/gencat.c (read_input_file): Collision between
5032 auto-assigned numbers and user-defined nubmers is not fatal.
5034 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5035 * catgets/Makefile: Add rules to run test2.msg test.
5036 * catgets/test2.msg: New file.
5038 * catgets/gencat.c (main): Return 1 if messages have been printed.
5040 * iconv/iconv_prog.c (main): Unify messages.
5042 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5043 when shifting retval.
5044 * stdlib/tst-strtod.c (main): Add strtold test case.
5045 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5047 2003-02-21 Roland McGrath <roland@redhat.com>
5049 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5050 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5051 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5053 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5054 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5055 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5058 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5059 * malloc/thread-freeres.c: New file.
5060 * malloc/Makefile (aux): Add it.
5061 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5062 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5063 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5065 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5066 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5068 2003-02-21 Roland McGrath <roland@frob.com>
5070 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5072 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5073 [$(have-thread-library) = yes].
5075 2003-02-21 Ulrich Drepper <drepper@redhat.com>
5077 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5079 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5080 not chechk for errors (unless testing for 32bit variant).
5081 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5082 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5083 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5085 2003-02-21 Jakub Jelinek <jakub@redhat.com>
5087 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5088 Check for signed overflow, not unsigned.
5090 * sysdeps/sparc/sparc64/elf/configure.in: New file.
5091 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5092 Use -fcall-used-g6, not -fcall-used-g7.
5094 2003-02-21 Andreas Jaeger <aj@suse.de>
5096 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5099 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5100 clear whole mxcsr but only exceptions.
5102 2003-02-21 Roland McGrath <roland@redhat.com>
5104 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5105 for libfoo.so that need $(make-link) rules.
5107 2003-02-21 Roland McGrath <roland@frob.com>
5109 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5110 to match existing struct stat layout in mig protocols.
5112 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5114 * version.h (VERSION): Bump to 2.3.2.
5116 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5117 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5119 * sysdeps/generic/Dist: Add sysdep-cancel.h.
5120 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5121 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5122 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5123 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5126 * Makefile (distribute): Add include/stubs-prologue.h,
5127 include/gnu/stubs.h, scripts/merge-abilist.awk, and
5128 scripts/extract-abilist.awk.
5130 2003-02-20 Roland McGrath <roland@redhat.com>
5132 * math/Makefile (distribute): Don't add generated files.
5134 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5136 * math/Makefile: Rearrange variable definitions slightly to get
5137 definition in the right order.
5139 2003-02-20 Roland McGrath <roland@redhat.com>
5141 * Makerules: Clean up conditional around include of tls.make.
5142 * Make-dist: Export generating=t to prevent using that.
5143 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5145 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5147 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
5148 around in search if port IPPORT_RESERVED/2 has been test.
5150 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
5152 * posix/regcomp.c: Remove inclusions.
5153 * posix/regexec.c: Likewise.
5154 * posix/regex_internal.c: Likewise.
5155 * posix/regex_internal.h: Add inclusions here.
5156 * posix/regex.c: Only include sys/types.h before regex.h. Include
5157 regex_internal.h here. Include regex_internal.c before regcomp.c
5158 and regexec.c (might expose more opportunities to the C compiler).
5160 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5162 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5163 [!_LIBC] (__wcrtomb): New definition.
5164 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5165 HAVE_LOCALE_H as well.
5167 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5169 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5170 patch to check for system call errors.
5172 2002-07-24 Philip Blundell <philb@gnu.org>
5174 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
5177 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5179 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
5180 * sysdeps/unix/sysv/linux/kernel-features.h
5181 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
5182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
5184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
5185 interprocedure branches.
5186 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
5187 * sysdeps/powerpc/nofpu/Dist: ...here.
5188 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
5189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
5190 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
5191 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
5192 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
5194 2003-02-18 Alan Modra <amodra@bigpond.net.au>
5196 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
5198 2003-02-20 Philip Blundell <philb@gnu.org>
5200 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
5201 missing arguments to INTERNAL_SYSCALL_ERROR_P and
5202 INTERNAL_SYSCALL_ERRNO.
5204 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5206 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
5207 for __ASSUME_32BITUIDS.
5209 2003-02-20 Andreas Schwab <schwab@suse.de>
5211 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
5212 POSIX_MADV_* constants.
5214 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5216 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
5217 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
5218 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
5219 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
5221 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
5223 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
5225 2003-02-16 Roland McGrath <roland@redhat.com>
5227 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
5229 2003-02-19 Ulrich Drepper <drepper@redhat.com>
5231 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
5232 decimal input digits.
5233 * stdlib/tst-strtod.c (main): Add test for strtof bug.
5235 2003-02-18 Ulrich Drepper <drepper@redhat.com>
5237 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
5238 invalid file descriptors and missing access permissions.
5240 2003-02-17 Ulrich Drepper <drepper@redhat.com>
5242 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
5245 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
5246 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
5247 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
5250 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5251 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5253 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
5254 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
5255 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5256 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5257 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5259 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5261 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
5262 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
5263 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
5264 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
5265 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
5266 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
5268 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
5269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
5270 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
5271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
5273 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
5274 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
5275 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
5276 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
5278 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
5280 * nss/getent.c (print_hosts): Print all IP addresses of one host.
5282 2003-02-15 Roland McGrath <roland@frob.com>
5284 * sysdeps/mach/hurd/tls.h: New file.
5285 * sysdeps/mach/hurd/i386/tls.h: New file.
5287 * mach/errsystems.awk: Include <errno.h> in generated output.
5289 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
5290 use target mach-before-compile instead of generated.
5291 (mach-before-compile): New target.
5292 * Makerules: Disable use of tls.make if $(generating) is set.
5293 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
5294 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
5295 mach-shortcuts.h so mach/ generation happens before hurd/.
5297 2003-02-14 Ulrich Drepper <drepper@redhat.com>
5299 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
5300 of demorm correctly if low word is zero.
5301 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5302 * math/libm-test.inc (nextafter_test): New test, but disabled due
5305 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
5306 counter and only call __exit_thread if this is not the last thread.
5308 2003-02-13 Jakub Jelinek <jakub@redhat.com>
5310 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
5311 subtracting map->l_tls_offset.
5313 2003-02-12 Ulrich Drepper <drepper@redhat.com>
5315 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
5316 _CS_GNU_LIBPTHREAD_VERSION.
5317 * posix/conststr.c: Handle these new values.
5318 * posix/getconf.c: Likewise.
5320 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
5321 masking of version index.
5322 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5324 2003-02-11 Ulrich Drepper <drepper@redhat.com>
5326 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
5327 correctly. Reported by Thorsten Kukuk.
5329 2003-02-10 Ulrich Drepper <drepper@redhat.com>
5331 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
5332 _BSD_SOURCE to compiler.
5333 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
5334 Patches by Alan Modra.
5336 2003-02-08 Ulrich Drepper <drepper@redhat.com>
5338 * io/ftwtest.c: Get current working directory before and after the
5339 nftw call and make sure they match.
5341 2003-02-08 Jim Meyering <jim@meyering.net>
5343 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
5344 the current directory, not just when DIR contains a slash.
5345 Reported by Manoj Srivastava.
5347 2003-02-07 Jim Meyering <jim@meyering.net>
5349 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
5350 Include autoconf-recommended block of dirent/NAMELEN-related
5351 definitions and includes. Use NAMELEN throughout, rather than
5353 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
5354 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
5355 (stpcpy): Declare, if necessary.
5356 (mempcpy): Define, if necessary.
5357 [!_LIBC] (__stpcpy, __mempcpy): Define.
5358 [!_LIBC] (LXSTAT, XSTAT): Define.
5359 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
5360 (find_object): Don't use c99-style struct initializer.
5361 Tweak wording in a couple comments.
5363 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5365 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
5367 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
5368 after the trapa instruction.
5369 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
5371 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
5372 (NEED_SYSCALL_INST_PAD): Define.
5373 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
5374 avoid to use definition for the kernel.
5375 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5376 Save and restore the frame pointer.
5377 (SYSCALL_INST_PAD): Define.
5378 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5379 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
5380 after trapa instruction.
5381 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5382 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5384 2003-02-07 Jakub Jelinek <jakub@redhat.com>
5386 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
5387 so that it can have aliases.
5388 * inet/herrno.c (h_errno): Put it into .bss not .data section.
5390 2003-02-07 Ulrich Drepper <drepper@redhat.com>
5392 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
5393 (profile_fixup): Likewise.
5394 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5396 2002-11-24 Robert Love <rml@tech9.net>
5398 * posix/sched.h: Second parameter of sched_setaffinity and
5399 sched_getaffinity is `unsigned int', not `unsigned long'.
5400 * sysdeps/generic/sched_setaffinity.c: Likewise.
5401 * sysdeps/generic/sched_getaffinity.c: Likewise.
5403 2003-02-05 Ulrich Drepper <drepper@redhat.com>
5405 * debug/catchsegv.sh: Fix typo in error messsage.
5406 Reported by John Levon <levon@movementarian.org>.
5408 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
5409 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
5410 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
5411 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5413 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5414 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5416 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
5417 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
5419 2003-02-05 Jim Meyering <jim@meyering.net>
5421 Fix a heap-corrupting bug.
5422 * io/ftw.c: Include <limits.h>.
5423 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
5424 (process_entry): Allocate enough space to hold the resulting
5425 file name. Don't presume that 2*dirbufsize is enough.
5426 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
5427 it is guaranteed to be defined.
5429 2003-02-04 Ulrich Drepper <drepper@redhat.com>
5431 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
5432 * iconvdata/bug-iconv3.c: New file.
5434 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
5436 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5438 2003-02-03 Jakub Jelinek <jakub@redhat.com>
5440 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
5442 * config.h.in (BROKEN_SPARC_WDISP22): Add.
5444 2003-02-03 Ulrich Drepper <drepper@redhat.com>
5446 * sysdeps/i386/i686/memmove.S: New file.
5448 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
5451 Include kernel-features.h
5452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
5453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
5455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5457 2003-02-02 Jakub Jelinek <jakub@redhat.com>
5459 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
5461 2003-01-25 Jim Meyering <jim@meyering.net>
5463 * io/ftw.c (object_compare): Compare inode numbers before device
5464 numbers, since the former are much more likely to differ.
5466 2003-02-01 Ulrich Drepper <drepper@redhat.com>
5468 * time/tzfile.c (__tzfile_compute): Change return value type to
5469 void. Adjust return statements.
5470 * include/time.h (__tzfile_compute): Adjust prototype.
5472 2003-02-01 Jim Meyering <jim@meyering.net>
5474 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
5477 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5480 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
5482 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5485 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
5486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5487 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5489 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5491 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5493 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5495 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
5496 back to 2.4.19 for powerpc64.
5497 * sysdeps/unix/sysv/linux/kernel-features.h
5498 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
5499 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
5501 2003-02-01 Ulrich Drepper <drepper@redhat.com>
5503 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
5504 platforms with strange alignment requirements on wchar_t.
5506 2003-01-31 Andreas Schwab <schwab@suse.de>
5508 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
5509 aliases, already added by make-syscalls.sh.
5510 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5511 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5512 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5513 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5514 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5515 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5516 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5517 * sysdeps/unix/inet/syscalls.list: Likewise.
5518 * sysdeps/unix/syscalls.list: Likewise.
5520 2003-01-31 Andreas Schwab <schwab@suse.de>
5522 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
5525 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5527 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
5528 not l to load tls from stack.
5530 2003-01-30 Roland McGrath <roland@redhat.com>
5532 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
5533 null argument before all else.
5534 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5536 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5538 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
5539 Move to RESOLVE protected part of the header.
5540 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
5543 2003-01-30 Ulrich Drepper <drepper@redhat.com>
5545 * stdio-common/Makefile (tests): Add bug15.
5546 (bug15-ENV): Define.
5547 * stdio-common/bug15.c: New file.
5549 2002-10-07 Wolfram Gloger <wg@malloc.de>
5551 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
5552 to foreign sbrk()'s if arena is contiguous. Bug report from
5553 Bruno Haible <bruno@clisp.org>.
5555 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5557 * sysdeps/s390/libc-tls.c: Include stdlib.h.
5559 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5561 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
5564 2003-01-30 Ulrich Drepper <drepper@redhat.com>
5566 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
5568 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
5570 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5572 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5574 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
5575 (allocate_static_tls): ...here. Add __attribute_noinline__.
5576 Don't return on failure.
5577 (_dl_reloc_bad_type): Add __attribute_noinline__.
5578 * elf/do-rel.h (elf_dynamic_do_rel): Add
5579 __attribute__((always_inline)).
5580 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
5581 elf_machine_rel_relative, elf_machine_rela_relative,
5582 elf_machine_lazy_rel): Add prototypes with
5583 __attribute__((always_inline)).
5585 2003-01-29 David Mosberger <davidm@hpl.hp.com>
5587 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
5589 2003-01-29 Roland McGrath <roland@redhat.com>
5591 * configure.in: Barf if configured in $srcdir.
5593 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
5595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5596 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
5598 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
5600 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
5601 clone parameters to match the order used on ia32.
5602 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5604 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
5606 * elf/elf.h: Add new s390 relocs.
5607 * elf/tls-macros.h: Add s390 versions.
5608 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
5609 * sysdeps/s390/dl-tls.h: New file.
5610 * sysdeps/s390/libc-tls.c: New file.
5611 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
5612 relocs for class PLT.
5613 (elf_machine_rela): Handle TLS relocs.
5614 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5615 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
5616 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
5617 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
5618 CLONE_CHILD_*TID flags.
5619 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5620 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
5622 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5623 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
5624 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
5625 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
5626 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
5628 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
5629 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
5630 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5632 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
5633 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
5634 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
5635 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5638 2003-01-28 Ulrich Drepper <drepper@redhat.com>
5640 * sysdeps/unix/common/pause.c (do_pause): New function. Split
5641 from __libc_pause. Implement using sigsuspend.
5642 (__libc_pause): Call do_pause to do the real work.
5644 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
5645 sig_or_mask parameter is is_sig != 0.
5647 2003-01-21 Philip Blundell <philb@gnu.org>
5649 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
5651 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
5653 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
5655 2003-01-27 Ulrich Drepper <drepper@redhat.com>
5657 * stdio-common/bug14.c: Use official name for the locale.
5659 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
5660 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
5661 instead of __libc_cleanup_region_end.
5663 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
5664 as first parameter to __libc_cleanup_region_start.
5666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5667 (__fe_nomask_env): Use __prctl not prctl.
5668 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
5671 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
5673 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
5675 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
5676 wrap-around in test.
5678 2003-01-26 Andreas Schwab <schwab@suse.de>
5680 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
5681 compatibility symbols. Remove INTDEF for __divdi3.
5682 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
5683 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
5684 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
5686 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
5688 2003-01-24 Jakub Jelinek <jakub@redhat.com>
5690 * elf/tls-macros.h: Add SPARC 32-bit definitions.
5691 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
5692 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
5693 for the first half of the header. Include tls.h.
5694 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
5696 (elf_machine_rela): Handle TLS relocs.
5697 * sysdeps/sparc/dl-tls.h: New file.
5699 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
5702 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
5703 * sysdeps/sparc/sparc32/memchr.S: Likewise.
5704 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
5705 * sysdeps/sparc/sparc32/strcat.S: Likewise.
5706 * sysdeps/sparc/sparc32/strchr.S: Likewise.
5707 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
5708 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
5709 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5710 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5711 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5712 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
5713 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
5714 * sysdeps/sparc/sparc64/strcat.S: Likewise.
5715 * sysdeps/sparc/sparc64/strchr.S: Likewise.
5716 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
5717 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
5718 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
5719 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
5720 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5721 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5723 2003-01-24 Andreas Schwab <schwab@suse.de>
5725 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
5726 elements, and process them backwards.
5727 * elf/Makefile ($(objpfx)tst-array4): New target.
5728 ($(objpfx)tst-array4.out): Likewise.
5729 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
5730 * elf/tst-array4.c: New file.
5731 * elf/tst-array4.exp: Likewise.
5733 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
5737 2003-01-27 Guido Guenther <agx@sigxcpu.org>
5739 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
5740 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
5741 cancellation handling and handle both __NR_pread64 and __NR_pread.
5742 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5743 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
5744 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
5745 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5746 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
5747 case, use register names consistently.
5749 2003-01-27 Wolfram Gloger <wg@malloc.de>
5751 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
5752 pointer, not of the computed chunk. Bug report from Carlos
5753 O'Donell <carlos@baldric.uwo.ca>.
5755 2003-01-25 Andreas Schwab <schwab@suse.de>
5757 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
5758 addressing to save GOT entries.
5760 2003-01-21 Jakub Jelinek <jakub@redhat.com>
5762 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
5763 inline_syscall1, inline_syscall2, inline_syscall3,
5764 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
5765 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
5766 __attribute__((unused)) to ChEcK.
5768 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5770 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
5771 Fix inline assembler constraints.
5772 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
5775 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
5778 2003-01-20 Segher Boessenkool <segher@koffie.nl>
5780 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
5781 compute the cosine, not the sine, even if x > 0.8.
5783 2003-01-19 Ulrich Drepper <drepper@redhat.com>
5785 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
5786 _nss_nis_setspent. Work around the different prototypes.
5787 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
5788 internal_nis_endrpcent.
5789 (internal_nis_endrpcent): Change return type to void. Change callers.
5790 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
5791 _nss_nis_setpwent. Work around the different prototypes.
5792 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
5793 of the function to...
5794 (internal_nis_endprotoent): ... here. New function.
5795 (internal_nis_setprotoent): Use internal_nis_endprotoent.
5796 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
5797 _nss_nis_setnetent. Work around the different prototypes.
5798 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
5799 of the function to...
5800 (internal_nis_endnetgrent): ... here. New function.
5801 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
5803 2003-01-19 Jim Meyering <jim@meyering.net>
5805 * time/strftime.c: (widen): Merge nearly-identical definitions.
5806 (nl_get_alt_digit) [! defined my_strftime]: Define.
5807 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
5808 _nl_get_alt_digit and _nl_get_walt_digit.
5810 2003-01-19 Ulrich Drepper <drepper@redhat.com>
5812 * time/strftime.c (my_strftime): Handle very large width
5813 specifications for numeric values correctly. Improve checks for
5815 * time/Makefile (tests): Add tst-strftime.
5816 * time/tst-strftime.c: New file.
5818 2003-01-18 Ulrich Drepper <drepper@redhat.com>
5820 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
5821 _nss_nis_sethostent. Work around the different prototypes.
5822 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
5823 _nss_nis_setgrent. Work around the different prototypes.
5824 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
5825 function. Split out from _nss_nis_endetherent.
5826 (internal_nis_setetherent): Use internal_nis_endetherent instead of
5827 duplicating the code.
5828 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
5829 of _nss_nis_setaliasent.
5830 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
5831 internal_nis_endservent code, don't duplicate it.
5833 * inet/rexec.c (rexec_af): Protect socket operations with
5834 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
5835 * inet/rcmd.c (rcmd_af): Likewise.
5837 2003-01-17 Roland McGrath <roland@redhat.com>
5839 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
5840 Add test of value 0.80190127184058835.
5842 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
5844 2003-01-17 Richard Henderson <rth@redhat.com>
5846 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
5847 relocs for class PLT.
5848 * sysdeps/alpha/libc-tls.c: New file.
5849 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
5850 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
5852 2003-01-17 Jakub Jelinek <jakub@redhat.com>
5854 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
5855 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
5858 2003-01-17 Andreas Jaeger <aj@suse.de>
5860 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
5862 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
5864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
5865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
5866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
5867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
5868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
5869 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
5870 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
5873 2003-01-16 Ulrich Drepper <drepper@redhat.com>
5875 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
5876 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
5879 * sysdeps/generic/sysconf.c: Unconditionally implement
5880 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
5881 * sysdeps/posix/sysconf.c: Likewise.
5883 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5885 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
5886 set *err to the returned error, not to REG_ESPACE unconditionally.
5887 (build_word_op): Likewise.
5888 * posix/Makefile (tests): Add bug-regex16.
5889 * posix/bug-regex16.c: New test.
5891 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5893 * elf/dl-load.c (_dl_map_object_from_fd): Use
5894 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
5895 been already initialized.
5897 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
5899 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
5901 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5903 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
5904 allocated too. Reported by Al Viro <aviro@redhat.com>.
5906 2003-01-16 Roland McGrath <roland@redhat.com>
5908 Tweak merged .abilist file format to merge duplicate symbols in
5909 different sets into multi-version stanzas with new "| SET regexp..."
5910 header continuation lines.
5911 * scripts/merge-abilist.awk: Rewritten for new format.
5912 * scripts/extract-abilist.awk: Likewise.
5914 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5916 * nscd/connections.c (nscd_run): Remove bogus return which isn't
5917 necessary with gcc 3.2+.
5918 (nscd_init): Don't use error() to print message, use dbg_log.
5920 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
5921 expected size into state.
5922 (UNPACK_BYTES): Do the reverse.
5923 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
5924 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
5925 Reported by Al Viro <aviro@redhat.com>.
5927 * stdio-common/Makefile (tests): Add bug14.
5928 * stdio-common/bug14.c: New file.
5930 * stdio-common/vfscanf.c: When recognizing multibyte characters in
5931 string reset the byte counter after mbrtowc reported it is not a
5932 partial character. Reported by Al Viro <aviro@redhat.com>.
5934 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
5936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
5937 sysdep-cancel.h, not sysdep.h.
5939 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5941 * nscd/connections.c (nscd_run): Protect accept call with
5944 2003-01-15 Andreas Schwab <schwab@suse.de>
5946 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
5947 (common-generated): Add s-proto-bp.d.
5948 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
5950 * sysdeps/unix/s-proto-bp.S: New file.
5951 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
5952 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
5953 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
5955 2003-01-15 Roland McGrath <roland@redhat.com>
5957 * Makerules: Use -include for tls.make, suppresses warning.
5958 Move gen-as-const-headers rules up so before-compile is set in time.
5959 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
5961 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5963 * nscd/nscd.c (main): Make code to close all file descriptors
5964 faster and more robust.
5966 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
5967 request with one writev call. Protect all read calls with
5969 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5970 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5972 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
5973 Protect writev calls with TEMP_FAILURE_RETRY.
5974 * nscd/grpcache.c: Likewise.
5975 * nscd/pwdcache.c: Likewise.
5977 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
5978 IPv6 address in debug output.
5980 2003-01-14 Roland McGrath <roland@redhat.com>
5982 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
5983 $(objpfx) directories, and get rid of vpath directives. The previous
5984 arrangement resulted in files being written to the source directories
5985 when run in a clean build. Find all .abilist files in $(..)abilist/.
5986 (update-abi-%): Likewise.
5987 (generated): Don't add .symlist files, they'll be intermediates.
5989 * sysdeps/generic/init-first.c: Add a comment.
5991 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
5993 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
5994 #includes and expressions.
5996 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
5997 config list when it already contains cpu-.*-os.* without / part.
5999 * Makerules (sed-remove-dotdot): New variable.
6000 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6001 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6002 (check-abi-config): New variable, append /tls or /notls to the tuple.
6003 (check-abi-%): Use that for -v config value.
6004 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6005 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6007 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6009 * manual/install.texi: Correct description of header preparation for
6010 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6012 2003-01-14 Guido Guenther <agx@sigxcpu.org>
6014 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6015 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6016 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6018 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6021 (INTERNAL_SYSCALL): Make use of ERR parameter.
6022 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6023 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6024 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6027 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6029 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6031 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6033 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6034 Fix entry for bit 31.
6036 * iconvdata/Makefile: Add rules to build IBM866NAV.
6037 * iconvdata/ibm866nav.c: New file.
6038 * iconvdata/tst-tables.sh: Add IBM866NAV.
6039 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6041 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6043 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6044 to test void* parameters.
6046 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6047 source pointer before dereferencing.
6048 (__STRING_SMALLL_GET32): Likewise.
6049 (__memset_gc): Add missing parenthesis around macro arguments.
6050 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6052 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6053 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6055 2003-01-14 Jakub Jelinek <jakub@redhat.com>
6057 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6060 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6062 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6063 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6065 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6067 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6069 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6071 (PSEUDO): ... to here.
6072 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6074 (PSEUDO): ... to here.
6076 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6078 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6079 dirent64 instead of struct dirent for dirent. Call readdir64
6082 * locale/programs/locfile.c (siblings_uncached): Use struct
6083 dirent64 instead of struct dirent for other_dentry. Call
6084 readdir64 instead of readdir.
6086 * elf/ldconfig.c (direntry): Change type to struct dirent64.
6087 (search_dir): Use readdir64 instead of readdir.
6088 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6090 2003-01-12 Roland McGrath <roland@redhat.com>
6092 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6093 not strtol. The former is usable in ld.so, the latter not.
6095 * include/fcntl.h: Declare __libc_creat.
6097 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6098 libhurduser-link.so-no-z-defs): New variables.
6100 * malloc/malloc.c: Revert last change.
6101 * malloc/malloc.h (_int_*): Move these decls to ...
6102 * include/malloc.h: ... here. Add attribute_hidden.
6103 (_int_valloc): Declare it too.
6105 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6107 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
6108 search for removed searchlist. Reported by Roland McGrath.
6110 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6111 given as start file.
6113 * io/ftw.c (ftw_startup): Use correct name in check for symlink
6114 without existing target. Patch by Jim Meyering.
6116 * Makerules (build-shlib-helper): Don't use -z defs linker option
6117 if no-z-defs is defined either.
6119 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6121 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6124 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6126 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6127 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6129 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6131 * io/ftwtest-sh: Add test case for relative path with /. at the end.
6133 2003-01-12 Jim Meyering <jim@meyering.net>
6135 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6136 use the basename if we've already chdir'd into its parent directory.
6138 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6140 * io/ftw.c (process_entry): Use relative path when using chdir()
6141 to change directory after call to ftw_dir.
6142 * io/ftwtest-sh: Add test for relative path argument to nftw()
6143 with FTW_CHDIR option.
6145 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6147 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6149 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6151 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6152 (INTERNAL_SYSCALL): Make use of ERR parameter.
6153 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6154 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6155 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6156 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6158 2002-01-09 Richard Henderson <rth@redhat.com>
6160 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6161 DTPREL64 and TPREL64 without loadbase applied.
6163 2002-01-09 Richard Henderson <rth@redhat.com>
6165 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6168 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6169 * sysdeps/unix/alpha/sysdep.h: ... here.
6170 (PSEUDO_LOADGP): Remove.
6171 (PSEUDO_PROLOGUE): Load GP in non-pic case.
6172 (SYSCALL_ERROR_LABEL): New.
6173 (PSEUDO): Use it in error branch.
6174 (PSEUDO_END): Add $syscall_error label.
6176 2003-01-12 Andreas Jaeger <aj@suse.de>
6178 * math/bits/mathcalls.h: Round is a const function.
6180 2003-01-11 Jim Meyering <jim@meyering.net>
6182 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
6183 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
6184 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
6185 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
6186 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
6187 [!_LIBC] (internal_function, dirent64, MAX): Define.
6188 (__set_errno): Define if not already defined.
6189 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
6190 the basename, not the entire file name.
6191 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
6192 the basename, not the entire file name.
6194 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6196 * string/tester.c (test_strcpy): Disable last added strcpy until
6199 2003-01-11 Philip Blundell <philb@gnu.org>
6201 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
6203 2003-01-11 Andreas Schwab <schwab@suse.de>
6205 * Makerules: Add vpath for %.dynsym and %.so so that the
6206 implicit rule chaining for check-abi works.
6208 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6210 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6213 2003-01-11 Jakub Jelinek <jakub@redhat.com>
6215 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
6216 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
6218 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
6219 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
6220 Ensure libc.so in DT_NEEDED.
6221 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
6222 CHECK_STATIC_TLS before l_tls_offset use.
6223 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6225 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6226 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
6227 Allocate TLS_PRE_TCB_SIZE bytes below result.
6228 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
6229 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
6230 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
6231 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
6232 bytes below result and add tcb_offset to memsz.
6233 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
6234 * sysdeps/ia64/dl-machine.h: Include tls.h.
6235 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
6237 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
6238 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
6239 * sysdeps/ia64/libc-tls.c: New file.
6241 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
6243 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
6244 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
6245 Fix type. Move definition out of #if.
6246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
6247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
6248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
6249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
6250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
6251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
6253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
6254 ftruncate64, pread64, pwrite64, truncate64 entries.
6255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6256 (INLINE_SYSCALL): New version that supports function call like
6257 syscalls. Add __builtin_expect.
6258 (LOADARGS_n): Add argument size safety checks.
6259 (INTERNAL_SYSCALL): New Macro.
6260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
6261 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
6262 redefinition of elf_fpreg_t and elf_fpregset_t.
6264 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6266 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
6267 simplify test for unloading. If loader of a DSO is unloaded do not
6268 use its scope anymore. Fall back to own scope and adjust opencounts.
6269 Fix several comments.
6270 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
6271 the l_searchlist, not only for l_initfini.
6273 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
6274 dependencies if objects cannot be removed. Remove object with the
6275 definition as not unloadable if necessary.
6277 * elf/reldep6.c: Create relocation dependency before closing the first
6280 2003-01-10 Guido Günther <agx@sigxcpu.org>
6282 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
6283 * sysdeps/unix/mips/brk.S: Likewise.
6284 * sysdeps/unix/mips/pipe.S: Likewise.
6286 2003-01-10 Andreas Schwab <schwab@suse.de>
6288 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
6290 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
6291 are known to have the vfork syscall.
6293 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
6295 * sysdeps/unix/sysv/linux/kernel-features.h
6296 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
6297 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
6298 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
6300 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6302 * elf/Makefile: Add rules to build and run reldep9 test.
6303 * elf/reldep9.c: New file.
6304 * elf/reldep9mod1.c: New file.
6305 * elf/reldep9mod2.c: New file.
6306 * elf/reldep9mod3.c: New file.
6308 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6310 * elf/Makefile: Add rules to build and run nodelete2 test.
6311 * elf/nodelete2.c: New file.
6312 * elf/nodel2mod1.c: New file.
6313 * elf/nodel2mod2.c: New file.
6314 * elf/nodel2mod3.c: New file.
6316 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6318 * posix/test-vfork.c (noop): Add __attribute_noinline__.
6319 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
6320 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
6322 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
6323 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
6324 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
6325 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
6326 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
6328 2003-01-09 Andreas Schwab <schwab@suse.de>
6330 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
6332 2003-01-08 Ulrich Drepper <drepper@redhat.com>
6334 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
6335 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6337 (INTERNAL_SYSCALL_DECL): Define.
6339 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6341 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
6342 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6344 (INTERNAL_SYSCALL_DECL): Define.
6345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6346 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
6347 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6348 (INLINE_SYSCALL): Adjust.
6349 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6350 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6351 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6352 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6353 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
6354 add err argument to INTERNAL_SYSCALL* macros.
6355 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
6356 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
6357 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
6358 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
6360 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
6361 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
6362 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
6364 2003-01-07 Ulrich Drepper <drepper@redhat.com>
6366 Unify symbols in user namespace exported by libc.so and libc.a.
6367 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
6368 argp_fmtstream_free, and argp_fmtstream_printf.
6369 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
6370 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
6371 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
6372 argp_fmtstream_point.
6373 * gmon/gmon.c: Don't define write_profiling.
6374 * libio/genops.c: Don't define _cleanup.
6376 * intl/explodename.c (_nl_find_language.c): Mark as static.
6377 * intl/loadinfo.h: Remove _nl_find_language prototype.
6379 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
6380 * libio/libioP.h: Remove declaration.
6382 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
6383 * libio/libioP.h: Remove declaration.
6385 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
6386 * sysdeps/generic/framestate.c: Define STATIC before including
6389 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
6391 2003-01-06 Philip Blundell <philb@gnu.org>
6393 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
6394 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
6396 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
6398 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
6399 (SYSCALL_ERROR): New.
6400 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
6402 (INTERNAL_SYSCALL): Define.
6403 (INLINE_SYSCALL): Use it.
6404 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
6405 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
6406 SYSCALL_ERROR in place of __syscall_error.
6408 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6410 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6411 __bswap_32, __bswap_64): Put x into temporary variable
6413 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6415 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6416 __bswap_32, __bswap_64): Put x into temporary variable
6418 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6420 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
6423 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6425 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
6428 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6430 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
6431 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
6433 2003-01-07 Ulrich Drepper <drepper@redhat.com>
6435 * math/libm-test.inc (significand_test): New function.
6438 2003-01-06 Roland McGrath <roland@redhat.com>
6440 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
6442 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
6443 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
6444 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
6446 * string/tester.c (test_strcpy): Add test with `void *' arguments.
6448 2003-01-06 Ulrich Drepper <drepper@redhat.com>
6450 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
6451 return significand and not the exponent.
6452 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6454 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
6455 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
6457 * malloc/malloc.c: Mark all _int_* functions as static.
6459 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6461 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
6462 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
6464 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
6466 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6468 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
6469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
6471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
6472 ftruncate64, truncate64, pread64 and pwrite64 entries.
6473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6474 (INLINE_SYSCALL): Add __builtin_expect.
6475 (LOADARGS_n): Add argument size safety checks.
6476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
6477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
6478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
6479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
6480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
6481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
6483 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6485 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
6486 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
6487 (LIBC_CANCEL_HANDLED): Add.
6489 * sysdeps/unix/sysv/linux/alpha/sysdep.h
6490 (inline_syscall_r0_constraint): Rename to...
6491 (inline_syscall_r0_out_constraint): ... this. Add =.
6492 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
6494 2003-01-06 Andreas Schwab <schwab@suse.de>
6496 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
6497 sure this is always inlined.
6498 (elf_machine_rela): Likewise.
6500 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
6502 2003-01-04 Roland McGrath <roland@redhat.com>
6504 * Makeconfig (+mkdep): Add -MP flag.
6505 Suggested by Art Haas <ahaas@airmail.net>.
6507 2003-01-05 Andreas Schwab <schwab@suse.de>
6509 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
6511 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6513 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
6514 SYSCALL_ERROR_HANDLER.
6515 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
6516 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
6517 Add support for cancellation handling.
6518 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
6519 SYSCALL_ERROR_HANDLER.
6520 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
6521 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
6522 Add support for cancellation handling.
6523 (SYSCALL_ERROR_HANDLER): Define PIC variants.
6525 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
6528 __syscall_pread64 and __syscall_pwrite64 cancelable.
6529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6530 (INTERNAL_SYSCALL): New macro.
6531 (LOADARGS_0, LOADARGS_1): Fix.
6533 2003-01-05 Ulrich Drepper <drepper@redhat.com>
6535 * Makerules (build-shlip-helper): Unless told otherwise, add
6536 -Wl,-z,defs to linker command line.
6537 * rt/Makefile (librt.so): Link with ld.so.
6538 * dlfcn/Makefile (libdl.so): Likewise.
6540 2003-01-05 Jakub Jelinek <jakub@redhat.com>
6542 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
6543 cancellation handling.
6544 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6545 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
6547 2003-01-04 Ulrich Drepper <drepper@redhat.com>
6549 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
6550 order of parameters passed to kill.
6552 2003-01-04 Andreas Schwab <schwab@suse.de>
6554 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
6556 2002-01-03 Paul Eggert <eggert@twinsun.com>
6558 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
6559 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
6560 when compiling Bison 1.875's `bitset bset = obstack_alloc
6561 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
6563 2003-01-04 Ulrich Drepper <drepper@redhat.com>
6565 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
6567 Correct reference counter in case SIGQUIT handler installation failed.
6569 2003-01-03 Ulrich Drepper <drepper@redhat.com>
6571 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
6572 Define using _Pragma(weak ...).
6574 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
6576 * resolv/res_libc.c: Provide declaration for __res_init_weak and
6577 reorder declarations.
6579 2003-01-03 Art Haas <ahaas@airmail.net>
6581 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
6582 initializer syntax to C99.
6583 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
6584 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
6585 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
6586 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
6587 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
6588 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
6589 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
6590 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
6591 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
6592 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
6593 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
6594 * localedata/tests-mbwc/dat_mblen.c: Likewise.
6595 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
6596 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
6597 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
6598 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
6599 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
6600 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
6601 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
6602 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
6603 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
6604 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
6605 * localedata/tests-mbwc/dat_towlower.c: Likewise.
6606 * localedata/tests-mbwc/dat_towupper.c: Likewise.
6607 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
6608 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
6609 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
6610 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
6611 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
6612 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
6613 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
6614 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
6615 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
6616 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
6617 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
6618 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
6619 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
6620 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
6621 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
6622 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
6623 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
6624 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
6625 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
6626 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
6627 * localedata/tests-mbwc/dat_wctob.c: Likewise.
6628 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
6629 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
6630 * localedata/tests-mbwc/dat_wctype.c: Likewise.
6631 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
6633 2003-01-03 Richard Henderson <rth@redhat.com>
6635 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
6636 (inline_syscall_r0_constraint): New.
6637 (inline_syscall[0-6]): Use them.
6639 2003-01-03 Jakub Jelinek <jakub@redhat.com>
6641 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
6642 Add rtld_hidden_proto.
6643 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
6644 (_dl_allocate_tls): Likewise. Remove INTDEF.
6646 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6648 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
6649 Morita <toshiyasu.morita@hsa.hitachi.com>.
6650 * sysdeps/sh/memcpy.S: Likewise.
6652 2003-01-02 Ulrich Drepper <drepper@redhat.com>
6654 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
6655 any, but unify the test.
6657 2003-01-02 Jakub Jelinek <jakub@redhat.com>
6659 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
6660 sigaction): Protect weak_alias and libc_hidden_weak with
6661 #ifndef LIBC_SIGACTION.
6662 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
6663 sigaction): Likewise.
6664 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
6665 sigaction): Likewise.
6666 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
6667 sigaction): Likewise.
6668 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
6669 sigaction): Likewise.
6670 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
6671 sigaction): Likewise.
6672 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
6673 sigaction): Likewise.
6674 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
6675 sigaction): Likewise. Remove SIGCANCEL handling here.
6676 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
6679 2003-01-02 Art Haas <ahaas@airmail.net>
6681 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
6683 2003-01-02 Ulrich Drepper <drepper@redhat.com>
6685 * posix/getconf.c: Update copyright year.
6686 * nss/getent.c: Likewise.
6687 * nscd/nscd_nischeck.c: Likewise.
6688 * iconv/iconvconfig.c: Likewise.
6689 * iconv/iconv_prog.c: Likewise.
6690 * elf/ldconfig.c: Likewise.
6691 * catgets/gencat.c: Likewise.
6692 * csu/version.c: Likewise.
6693 * elf/ldd.bash.in: Likewise.
6694 * elf/sprof.c (print_version): Likewise.
6695 * locale/programs/locale.c: Likewise.
6696 * locale/programs/localedef.c: Likewise.
6697 * nscd/nscd.c (print_version): Likewise.
6698 * debug/xtrace.sh: Likewise.
6699 * malloc/memusage.sh: Likewise.
6700 * malloc/mtrace.pl: Likewise.
6702 2003-01-01 Jakub Jelinek <jakub@redhat.com>
6704 * io/sys/stat.h: Include time.h with __need_timespec even if
6705 __USE_MISC is defined but __USE_XOPEN is not.
6707 2003-01-01 Andreas Jaeger <aj@suse.de>
6709 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
6710 type to avoid strict aliasing problem.
6711 (_nss_dns_gethostbyname2_r): Likewise.
6712 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6713 (_nss_dns_getnetbyname_r): Likewise.
6714 * resolv/gethnamaddr.c (_gethtent): Likewise.
6715 (gethostbyname2): Likewise.
6717 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6719 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
6720 to avoid using the exported symbols. Define aliases with the
6721 original names separately.
6723 * include/time.h: Add libc_hidden_proto for __strftime_l.
6724 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
6725 * time/strftime.c: Always use libc_hidden_def if _LIBC.
6727 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
6728 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
6730 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
6733 * csu/Makefile (routines): Add dso_handle.
6734 * csu/dso_handle.c: New file.
6736 2002-12-31 Roland McGrath <roland@redhat.com>
6738 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
6739 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
6740 (S-CPPFLAGS): Add -DASSEMBLER here instead.
6741 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
6743 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6745 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
6748 2002-12-31 Andreas Jaeger <aj@suse.de>
6750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
6752 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
6753 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
6754 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
6756 * sysdeps/unix/sysv/linux/kernel_stat.h
6757 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
6759 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
6760 __unused[1-3] since they're needed by some platforms. Handle
6761 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
6763 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
6764 for structs stat and stat64.
6765 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6766 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
6767 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6768 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6770 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
6772 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
6773 nsec resolution changes.
6774 (xstat64_conv): Likewise.
6775 (xstat32_conv): Likewise.
6777 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
6780 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
6781 structs stat and stat64.
6783 * time/time.h (__timespec_defined): Define for __USE_MISC.
6785 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6787 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
6788 and __libc_current_sigrtmax.
6790 2002-12-31 Jakub Jelinek <jakub@redhat.com>
6792 * include/errno.h (__errno_location): Add prototype.
6793 Use libc_hidden_proto unconditionally.
6794 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
6796 * include/resolv.h (__res_state): Likewise.
6798 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
6799 * include/sys/socket.h (accept): Add libc_hidden_proto.
6800 * include/errno.h (__errno_location): Likewise.
6801 * include/netdb.h (__h_errno_location): Likewise.
6802 * include/resolv.h (__res_state): Likewise.
6803 * include/unistd.h (__lseek): Likewise.
6804 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
6805 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
6806 * sysdeps/generic/res-state.c (__res_state): Likewise.
6807 * sysdeps/generic/accept.c (accept): Likewise.
6808 * sysdeps/generic/lseek.c (__lseek): Likewise.
6809 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
6810 __libc_current_sigrtmax): Likewise.
6811 * sysdeps/mach/hurd/accept.c (accept): Likewise.
6812 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
6813 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
6814 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
6815 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
6816 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
6817 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
6818 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
6819 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
6821 (__GI_accept): New alias to accept.
6822 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
6823 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
6824 New alias to llseek.
6825 (__GI_accept): New alias to accept.
6826 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
6828 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
6830 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
6832 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
6833 strong_alias (name, __GI_name).
6834 * sysdeps/arm/bsd-_setjmp.S : Likewise.
6835 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
6836 * sysdeps/i386/bsd-_setjmp.S : Likewise.
6837 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
6838 * sysdeps/mips/bsd-_setjmp.S : Likewise.
6839 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
6840 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
6841 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
6842 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
6843 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
6844 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
6845 * sysdeps/sh/bsd-_setjmp.S : Likewise.
6846 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
6847 * sysdeps/unix/arm/fork.S : Likewise.
6848 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
6849 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
6850 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
6851 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
6852 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
6853 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
6854 * sysdeps/unix/i386/fork.S : Likewise.
6855 * sysdeps/unix/mips/fork.S : Likewise.
6856 * sysdeps/unix/sparc/fork.S : Likewise.
6857 * sysdeps/unix/sparc/vfork.S : Likewise.
6858 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
6859 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
6860 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
6861 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
6862 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
6863 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
6864 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
6865 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
6866 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
6867 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
6868 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
6869 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
6870 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
6871 * sysdeps/unix/fork.S : Likewise.
6872 * sysdeps/vax/bsd-_setjmp.S : Likewise.
6873 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
6875 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
6878 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6880 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
6881 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
6882 * sysdeps/mach/hurd/fork.c: Likewise.
6883 * sysdeps/unix/sysv/aix/fork.c: Likewise.
6884 * sysdeps/unix/fork.S: Add __GI___fork alias.
6885 * sysdeps/unix/arm/fork.S: Likewise.
6886 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
6887 * sysdeps/unix/i386/fork.S: Likewise.
6888 * sysdeps/unix/mips/fork.S: Likewise.
6889 * sysdeps/unix/sparc/fork.S: Likewise.
6890 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6891 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
6892 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6893 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
6894 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
6895 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
6896 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
6897 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
6898 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
6899 * sysdeps/unix/sparc/vfork.S: Likewise.
6900 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
6901 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
6902 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
6903 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
6904 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
6905 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
6906 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
6907 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
6909 * include/time.h: Add libc_hidden_proto for __nanosleep.
6910 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
6911 * sysdeps/mach/nanosleep.c: Likewise.
6912 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
6913 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
6915 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
6916 _IO_list_unlock, and _IO_list_resetlock.
6917 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
6918 _IO_list_unlock, and _IO_list_resetlock.
6920 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
6921 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6922 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
6923 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6925 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
6926 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
6927 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
6928 __GI___longjmp alias.
6930 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
6931 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
6932 * sysdeps/arm/bsd-_setjmp.S: Likewise.
6933 * sysdeps/generic/bsd-_setjmp.c: Likewise.
6934 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
6935 * sysdeps/i386/bsd-_setjmp.S: Likewise.
6936 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6937 * sysdeps/mips/bsd-_setjmp.S: Likewise.
6938 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
6939 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
6940 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
6941 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
6942 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
6943 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
6944 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
6945 * sysdeps/sh/bsd-_setjmp.S: Likewise.
6946 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
6947 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
6948 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
6949 * sysdeps/vax/bsd-_setjmp.S: Likewise.
6950 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
6952 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6954 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
6956 2002-12-30 Roland McGrath <roland@redhat.com>
6958 * Rules (generated): Target removed.
6959 * mach/Makefile (generated): Define it here instead.
6961 * math/Makefile (generated): Add m_*l and m_*f variants too.
6963 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6965 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
6966 the to-be-deleted objects right away instead of later separately.
6967 The latter fails because the scope data structures of the DSO
6968 might already be gone.
6970 * elf/Makefile: Add rules to build and run reldep8 test.
6971 * elf/reldep8.c: New file.
6972 * elf/reldep8mod1.c: New file.
6973 * elf/reldep8mod2.c: New file.
6974 * elf/reldep8mod3.c: New file.
6975 Contributed by Jakub Jelinek.
6977 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
6979 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6980 checking of return value ENOSYS from getdents64.
6982 2002-12-28 Andreas Schwab <schwab@suse.de>
6984 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
6985 ($(common-objpfx)s-%.d): Generalized from
6986 $(common-objpfx)s-proto.d rule.
6987 (common-generated): Add s-proto-cancel.d.
6988 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
6989 cancellable syscalls.
6990 * sysdeps/unix/s-proto-cancel.S: New file.
6992 2002-12-29 Roland McGrath <roland@redhat.com>
6994 * resolv/res_libc.c: Move _res defn magic after res_init defn
6995 so _res macro is in effect for that code.
6997 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
6998 pattern for prepending $(..) so it doesn't affect $(foo).
7000 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7002 2002-12-29 Jakub Jelinek <jakub@redhat.com>
7004 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7007 2002-12-28 Ulrich Drepper <drepper@redhat.com>
7009 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7011 2002-12-28 Andreas Jaeger <aj@suse.de>
7013 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7015 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7017 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7019 * inet/herrno.c (__h_errno_location): Remove.
7020 * inet/Makefile (routines): Add herrno-loc.
7021 * resolv/res_libc.c (__res_state): Remove.
7022 * resolv/Makefile (routines): Add res-state.
7023 * sysdeps/generic/herrno-loc.c: New file.
7024 * sysdeps/generic/res-state.c: New file.
7026 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7028 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7029 Only define if USE_DL_SYSINFO is defined.
7031 2002-12-22 Jakub Jelinek <jakub@redhat.com>
7033 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7034 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7035 Define. Patch by Richard Henderson and Jes Sorensen.
7036 (PSEUDO): Remove unnecessary ;;.
7037 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7038 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7039 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7040 if not initializing thread pointer.
7041 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7042 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7043 make it weak also if NONTLS_INIT_TP.
7044 * sysdeps/unix/common/pause.c: Handle cancellation.
7045 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7046 (LOADSYSCALL): Remove.
7047 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7048 (SYSCALL_ERROR_HANDLER): Use it.
7049 (PSEUDO): Don't jump around error handler.
7050 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7051 jump around error handler.
7052 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7053 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7054 to __syscall_error_handler on failure.
7055 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7056 (LOADSYSCALL): Remove.
7057 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7058 (SYSCALL_ERROR_HANDLER): Use it.
7059 (PSEUDO): Don't jump around error handler.
7060 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7061 jump around error handler.
7062 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7063 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7064 to __syscall_error_handler on failure.
7066 2002-12-27 Roland McGrath <roland@redhat.com>
7068 * scripts/gen-as-const.awk: New file.
7069 * Makefile (distribute): Add it.
7070 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7071 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7073 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7075 2002-12-27 Andreas Schwab <schwab@suse.de>
7077 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
7079 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7081 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
7084 2002-12-27 Andreas Schwab <schwab@suse.de>
7086 * Makerules ($(common-objpfx)%.make): Filter through
7087 $(sed-remove-objpfx).
7089 2002-12-23 Roland McGrath <roland@redhat.com>
7091 * scripts/abilist.awk: Produce a more compact format, divided into
7092 stanzas for each version set, the set name listed only once.
7093 * scripts/extract-abilist.awk: New file.
7094 * scripts/merge-abilist.awk: New file.
7095 * Makerules (check-abi-%, update-abi-%): New pattern rules.
7096 (update-abi, check-abi): New targets.
7097 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
7099 2002-12-19 Roland McGrath <roland@redhat.com>
7101 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
7103 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
7106 2002-12-21 Andreas Schwab <schwab@suse.de>
7108 * elf/check-textrel.c (handle_file): Swap p_type.
7110 2002-12-21 Andreas Schwab <schwab@suse.de>
7112 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
7113 (INLINE_SYSCALL): Use it.
7114 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7115 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7117 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
7118 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
7120 2002-12-20 Art Haas <ahaas@airmail.net>
7122 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
7125 2002-12-21 Philip Blundell <philb@gnu.org>
7127 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
7128 top as seventh arg to __libc_start_main.
7129 Reported by paulnash@wildseed.com.
7131 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
7133 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
7134 compatibility cruft when new enough kernel is assumed.
7136 2002-12-20 Jakub Jelinek <jakub@redhat.com>
7138 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
7139 instead of INLINE_SYSCALL.
7141 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7143 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
7146 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
7147 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7148 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
7149 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7150 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7151 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7152 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7153 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7154 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7155 Patch by William Lee Irwin <wli@holomorphy.com>.
7157 2002-12-20 Andreas Schwab <schwab@suse.de>
7159 * locale/programs/ld-measurement.c (measurement_output): Fix
7162 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7164 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
7165 Redefine _IO_flockifle and _IO_funlockfile as inlines.
7167 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
7168 builds add "tls" in the search path.
7169 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
7170 (path_hwcap): Recognize "tls".
7172 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7174 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
7175 __waitpid instead of waitpid.
7177 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
7179 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
7180 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
7181 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
7183 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
7184 information for system calls.
7186 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
7189 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
7191 2002-12-19 Roland McGrath <roland@redhat.com>
7193 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
7194 * iconvdata/ibm922.h: Likewise.
7195 * iconvdata/ibm930.h: Likewise.
7196 * iconvdata/ibm932.h: Likewise.
7197 * iconvdata/ibm933.h: Likewise.
7198 * iconvdata/ibm935.h: Likewise.
7199 * iconvdata/ibm937.h: Likewise.
7200 * iconvdata/ibm939.h: Likewise.
7201 * iconvdata/ibm943.h: Likewise.
7202 * iconvdata/isiri-3342.h: Likewise.
7204 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7206 * test-skeleton.c (main): Make sure correct value is seen as
7207 argv[0] after adjustment of argv, and argc.
7209 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
7210 RTLD_CORRECT_DYNAMIC_WEAK is defined.
7212 2002-12-19 Jakub Jelinek <jakub@redhat.com>
7214 * nscd/connections.c (nscd_run): Shut up warning.
7215 * tst-ungetc.c (assert): Undefined before redefining.
7217 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7219 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
7222 2002-12-17 Art Haas <ahaas@airmail.net>
7224 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
7225 * iconvdata/cp775.h: Likewise.
7226 * iconvdata/ibm1046.h: Likewise.
7227 * iconvdata/ibm1124.h: Likewise.
7228 * iconvdata/ibm1129.h: Likewise.
7229 * iconvdata/ibm1132.h: Likewise.
7230 * iconvdata/ibm1133.h: Likewise.
7231 * iconvdata/ibm1160.h: Likewise.
7232 * iconvdata/ibm1161.h: Likewise.
7233 * iconvdata/ibm1162.h: Likewise.
7234 * iconvdata/ibm1163.h: Likewise.
7235 * iconvdata/ibm1164.h: Likewise.
7237 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7239 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
7240 __ASSUME_CLONE_THREAD_FLAGS is defined.
7241 * sysdeps/unix/sysv/linux/kernel-features.h
7242 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
7244 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7246 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
7248 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7250 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
7252 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7254 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
7256 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7258 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7259 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
7260 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
7263 2002-12-18 Jakub Jelinek <jakub@redhat.com>
7265 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
7267 [libc: GLIBC_PRIVATE]: ...here.
7268 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
7270 [libc: GLIBC_PRIVATE]: ...here.
7272 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7274 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
7275 Use it instead of directly int $0x80.
7276 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
7277 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
7278 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7279 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7280 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7281 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7283 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7285 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
7287 * elf/elf.h (AT_SYSINFO): New define.
7288 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
7291 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7293 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
7295 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
7297 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
7299 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
7301 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
7303 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
7305 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
7306 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
7307 available, otherwise __libc_maybe_call.
7308 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
7309 cancellation handling.
7310 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
7312 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
7314 * posix/regcomp.c (free_workarea_compile): Free the new member
7316 (analyze): Initialize ORG_INDICES.
7317 (duplicate_node_closure): Search for a existing node, which is
7318 duplicated from the node ORG_DEST and satisfies the constraint
7319 CONSTRAINT. And use it to avoid inifimite loop.
7320 (search_duplicated_node): New function.
7321 (duplicate_node): Store the index of the original node.
7322 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
7324 * posix/regex_internal.h (re_dfa_t): Add new members.
7326 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7328 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
7330 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7332 * sysdeps/posix/system.c (do_system): Add support for installation
7333 of cancellation handlers.
7334 * sysdeps/unix/sysv/linux/i386/system.c: New file.
7336 * stdlib/Makefile (tests): Add tst-system.
7337 * stdlib/tst-system.c: New file.
7339 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
7340 CENABLE]: Don't lose content of %ebx.
7342 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7344 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
7345 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
7347 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7349 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
7350 fails to return a function pointer don't use it.
7352 2002-12-16 Art Haas <ahaas@airmail.net>
7354 * io/ftw.c: Convert GCC extension initializer syntax to C99.
7355 * iconvdata/iso-ir-165.c: Likewise.
7356 * iconvdata/jis0208.c: Likewise.
7357 * iconvdata/jis0212.c: Likewise.
7359 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7361 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
7362 epoll_ctl, and epoll_wait.
7363 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
7364 epoll_create, epoll_ctl, and epoll_wait.
7365 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
7366 Davide Libenzi <davidel@xmailserver.org>.
7367 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
7368 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7371 2002-12-16 Art Haas <ahaas@airmail.net>
7373 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
7375 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
7376 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
7377 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
7379 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7381 * stdio-common/Makefile (routines): Remove lockfile. Add
7382 flockfile, ftrylockfile, and funlockfile.
7383 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
7384 * sysdeps/generic/flockfile.c: New file.
7385 * sysdeps/generic/ftrylockfile.c: New file.
7386 * sysdeps/generic/funlockfile.c: New file.
7388 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7390 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
7391 macros instead of doing the calls directly.
7392 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
7393 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
7396 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7398 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
7399 * sysdeps/ieee754/bits/nan.h: Likewise.
7401 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
7402 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
7404 2002-12-16 Roland McGrath <roland@redhat.com>
7406 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
7407 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
7408 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
7410 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
7411 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
7413 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
7414 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
7415 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
7416 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
7417 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
7418 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
7419 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
7420 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
7422 2002-12-13 Paul Eggert <eggert@twinsun.com>
7424 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
7425 is now u_int, not int.
7426 (struct XDR.x_handy): Now u_int, not int.
7427 * sunrpc/xdr_mem.c: Include <limits.h>.
7428 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
7429 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
7430 x_handy is now unsigned, not signed.
7431 Do not decrement x_handy if no change is made.
7432 (xdrmem_setpos): Check for int overflow.
7433 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
7434 (xdr_sizeof): Remove cast that is now unnecessary, now that
7435 x_handy is unsigned.
7437 2002-12-15 Art Haas <ahaas@airmail.net>
7439 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
7440 * iconvdata/gap.awk: Likewise.
7441 * iconvdata/gen-8bit-gap-1.sh: Likewise.
7442 * iconvdata/gen-8bit-gap.sh: Likewise.
7443 * locale/C-address.c: Likewise.
7444 * locale/C-collate.c: Likewise.
7445 * locale/C-ctype.c: Likewise.
7446 * locale/C-identification.c: Likewise.
7447 * locale/C-measurement.c: Likewise.
7448 * locale/C-messages.c: Likewise.
7449 * locale/C-monetary.c: Likewise.
7450 * locale/C-name.c: Likewise.
7451 * locale/C-numeric.c: Likewise.
7452 * locale/C-paper.c: Likewise.
7453 * locale/C-telephone.c: Likewise.
7454 * locale/C-time.c: Likewise.
7455 * nscd/connections.c: Likewise.
7456 * nscd/grpcache.c: Likewise.
7457 * nscd/hstcache.c: Likewise.
7458 * nscd/pwdcache.c: Likewise.
7459 * stdio-common/vfprintf.c: Likewise.
7460 * stdlib/random.c: Likewise.
7461 * sysdeps/generic/siglist.c: Likewise.
7462 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7463 * sysdeps/ieee754/bits/nan.h: Likewise.
7464 * sysdeps/posix/sprofil.c: Likewise.
7465 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
7466 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
7467 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
7469 2002-12-15 Roland McGrath <roland@redhat.com>
7471 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
7473 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
7474 <tls.h> here, no need for it.
7475 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
7477 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
7478 parameter, not varargs parameter.
7480 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
7481 argument so it's not an unused variable.
7483 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
7484 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
7487 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
7489 2002-12-15 Ulrich Drepper <drepper@redhat.com>
7491 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
7492 original __libc_fcntl code. Just renamed.
7494 2002-12-15 Andreas Schwab <schwab@suse.de>
7496 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
7498 2002-12-14 Olaf Hering <olh@suse.de>
7500 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
7501 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
7503 2002-12-15 Ulrich Drepper <drepper@redhat.com>
7505 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
7507 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
7508 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
7510 * sysdeps/unix/sysv/linux/open64.c: New file.
7512 * sysdeps/generic/pselect.c: Add support for cancellation handling.
7513 * sysdeps/posix/open64.c: Likewise.
7514 * sysdeps/posix/sigpause.c: Likewise.
7515 * sysdeps/posix/sigwait.c: Likewise.
7516 * sysdeps/posix/system.c: Likewise.
7517 * sysdeps/posix/waitid.c: Likewise.
7518 * sysdeps/unix/sysv/linux/accept.S: Likewise.
7519 * sysdeps/unix/sysv/linux/connect.S: Likewise.
7520 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
7521 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
7522 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
7523 * sysdeps/unix/sysv/linux/poll.c: Likewise.
7524 * sysdeps/unix/sysv/linux/pread.c: Likewise.
7525 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7526 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
7527 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7528 * sysdeps/unix/sysv/linux/readv.c: Likewise.
7529 * sysdeps/unix/sysv/linux/recv.S: Likewise.
7530 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
7531 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
7532 * sysdeps/unix/sysv/linux/send.S: Likewise.
7533 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
7534 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
7535 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
7536 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
7537 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
7538 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
7539 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
7540 * sysdeps/unix/sysv/linux/wait.c: Likewise.
7541 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
7542 * sysdeps/unix/sysv/linux/writev.c: Likewise.
7543 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7544 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7546 2002-12-14 Jakub Jelinek <jakub@redhat.com>
7548 * sysdeps/generic/sysdep-cancel.h: New file.
7549 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
7551 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
7552 recvmsg, send, sendmsg, sendto): Make cancelable.
7553 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
7554 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
7555 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7556 sendto, osf_select): Likewise.
7557 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
7558 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
7559 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
7560 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7562 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
7563 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
7564 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
7565 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7567 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
7568 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7569 sendto, select): Likewise.
7570 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
7571 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
7573 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
7574 select, fcntl): Likewise.
7575 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
7576 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
7577 read, readv, select, sigsuspend, write, writev): Likewise.
7579 2002-12-14 Jakub Jelinek <jakub@redhat.com>
7581 * dirent/bug-readdir1.c: Include unistd.h.
7583 2002-12-13 Jakub Jelinek <jakub@redhat.com>
7585 * locale/programs/locale.c: Include locarchive.h.
7586 (ARCHIVE_NAME): Define.
7587 (write_archive_locales): New function.
7588 (write_locales): Use it. Ensure the same locale is not printed
7589 multiple times in verbose mode.
7590 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
7591 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
7593 (struct nameent): New type.
7594 (nameentcmp): New function.
7596 2002-12-14 Jakub Jelinek <jakub@redhat.com>
7598 * posix/regex_internal.c (re_string_context_at): Guard wide char
7599 code with #ifdef RE_ENABLE_I18N.
7601 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
7603 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
7605 2002-12-13 Roland McGrath <roland@redhat.com>
7607 * posix/bug-regex15.c: New file.
7608 * posix/Makefile (tests): Add it.
7610 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
7611 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
7613 2002-12-13 Ulrich Drepper <drepper@redhat.com>
7615 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
7617 * misc/syslog.c (log_cleanup): Don't use parameter in
7618 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
7619 pass NULL instead of a pointer to syslog_lock.
7621 2002-12-12 Ulrich Drepper <drepper@redhat.com>
7623 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
7624 linker map for all iconv modules.
7625 (distribute): Add gconv.map.
7626 * iconvdata/gconv.map: New file.
7628 * elf/Makefile: Also check all iconv modules for text relocations.
7630 * stdlib/Makefile: Remove code to automatically import GMP.
7632 * elf/Makefile (tests): Add rules to build and run check-textrel.
7633 * elf/check-textrel.c: New file.
7635 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
7638 2002-12-11 Jakub Jelinek <jakub@redhat.com>
7640 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
7643 2002-04-30 Bruno Haible <bruno@clisp.org>
7645 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
7646 the encoding if it already has slashes.
7647 Reported by Perry Rapp <prapp@erols.com>.
7649 2002-12-11 Roland McGrath <roland@redhat.com>
7651 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
7652 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
7653 Turn off PIC for compiling this file.
7655 2002-12-11 Ulrich Drepper <drepper@redhat.com>
7657 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
7658 definitions. Not needed.
7659 [_LIBC]: Use definitions from libc-lock.h instead of referencing
7660 pthread routines directly.
7661 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
7663 (arena_get2): Don't look at return value of mutex_lock.
7665 2002-12-11 Roland McGrath <roland@redhat.com>
7667 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
7668 elf-init.o instead of compiling a PIC version.
7670 2002-12-11 Bruno Haible <bruno@clisp.org>
7672 * intl/gettext.h: Renamed to ...
7673 * intl/gmo.h: ... here.
7674 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
7675 * intl/gettextP.h: Update.
7676 * intl/loadmsgcat.c: Update.
7678 * intl/gettextP.h (PARAMS): Make more portable.
7679 (attribute_hidden): Define as empty macro if not already defined.
7680 * intl/hash-string.h (PARAMS): Make more portable.
7681 * intl/loadinfo.h (PARAMS): Likewise.
7682 * intl/plural-exp.h (PARAMS): Likewise.
7683 (attribute_hidden): Move definition near the definition of
7686 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
7687 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
7689 2002-07-13 Bruno Haible <bruno@clisp.org>
7691 * intl/dcigettext.c (freea): New macro.
7692 (FREE_BLOCKS): Free also the registered blocks.
7693 (DCIGETTEXT): Free the 'search' variable.
7694 Reported by Andreas Fischer <a.fischer@asentics.de>.
7696 2002-04-27 Bruno Haible <bruno@clisp.org>
7698 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
7699 * intl/dcigettext.c: Likewise.
7700 * intl/dcgettext.c: Likewise.
7701 * intl/dgettext.c: Likewise.
7702 * intl/gettext.c: Likewise.
7703 * intl/dcngettext.c: Likewise.
7704 * intl/dngettext.c: Likewise.
7705 * intl/ngettext.c: Likewise.
7706 * intl/textdomain.c: Likewise.
7707 * intl/bindtextdom.c: Likewise.
7708 * intl/plural-exp.h: Likewise.
7710 2002-01-02 Bruno Haible <bruno@clisp.org>
7712 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
7714 2001-04-30 Bruno Haible <bruno@clisp.org>
7716 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
7717 default macro definitions. Needed for mingw32.
7719 2002-12-10 Ulrich Drepper <drepper@redhat.com>
7721 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
7722 __builtin_constant_p to macro parameter.
7724 * sysdeps/generic/sigpause.c: Define all functions as weak.
7725 * sysdeps/posix/sigpause.c: Likewise.
7727 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
7730 2002-12-10 Jakub Jelinek <jakub@redhat.com>
7732 * elf/tst-array1.c (preinit_array, init_array, fini_array):
7733 Explicitly align the array to sizeof (void *).
7734 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
7736 * include/libc-symbols.h: Fix a comment typo.
7738 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
7739 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
7741 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
7743 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
7744 (__libc_sigsuspend): Likewise.
7745 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
7746 (__libc_sigsuspend): Likewise.
7747 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
7748 (creat): New weak alias.
7750 2002-12-10 Roland McGrath <roland@redhat.com>
7752 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
7753 contributes a manual chapter.
7754 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
7757 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
7758 and move contents to ...
7759 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
7760 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
7761 it instead of duplicating its contents.
7762 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
7764 2002-12-09 Jakub Jelinek <jakub@redhat.com>
7766 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
7768 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
7770 (EXTRA_LD_ENVVARS): Use it.
7771 (DL_OSVERSION_INIT): Define.
7772 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
7774 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
7776 2002-12-10 Ulrich Drepper <drepper@redhat.com>
7778 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
7780 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
7781 call. It is not allowed to destroy pthread mutexes which are
7782 still in use even though it is safe for our implementations. If
7783 somebody still uses the descriptor it is a bug.
7785 2002-12-09 Richard Henderson <rth@redhat.com>
7787 * csu/abi-note.S: Use .p2align, not .align.
7789 2002-12-09 Ulrich Drepper <drepper@redhat.com>
7791 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
7792 __libc_select aliases.
7794 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
7797 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
7799 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
7801 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
7803 * sysdeps/unix/syscalls.list: Define __libc_select alias.
7805 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
7807 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
7808 __libc___xpg_sigpause aliases.
7810 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
7812 * misc/error.c: Remove use of USE_IN_LIBIO.
7814 2002-12-08 Roland McGrath <roland@redhat.com>
7816 * elf/Makefile (tests): Uncomment tst-array[123].
7817 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
7818 * csu/elf-init.c: New file.
7819 * csu/Makefile (routines, static-only-routines): Add elf-init.
7820 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
7821 and __libc_csu_fini in place of _fini.
7822 * sysdeps/arm/elf/start.S: Likewise.
7823 * sysdeps/cris/elf/start.S: Likewise.
7824 * sysdeps/hppa/elf/start.S: Likewise.
7825 * sysdeps/i386/elf/start.S: Likewise.
7826 * sysdeps/ia64/elf/start.S: Likewise.
7827 * sysdeps/m68k/elf/start.S: Likewise.
7828 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
7829 * sysdeps/mips/elf/start.S: Likewise.
7830 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
7831 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
7832 * sysdeps/s390/s390-32/elf/start.S: Likewise.
7833 * sysdeps/s390/s390-64/elf/start.S: Likewise.
7834 * sysdeps/sh/elf/start.S: Likewise.
7835 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7836 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7837 * sysdeps/x86_64/elf/start.S: Likewise.
7839 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
7840 struct containing function ptr and value, free it.
7841 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
7842 It's not safe to let the new thread use the SIGEV pointer.
7844 2001-10-20 Paul Eggert <eggert@twinsun.com>
7846 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
7847 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
7848 Use strerror_r that is only a macro, even if it is not a function.
7849 (strerror): Check for HAVE_DECL_STRERROR before declaring.
7850 (private_strerror): Use prototypes, not old-style function definition.
7851 (print_errno_message): New function.
7852 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
7854 (error_tail, error, error_at_line): Use it.
7856 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
7858 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
7860 2002-12-08 Ulrich Drepper <drepper@redhat.com>
7862 * scripts/output-format.sed: Fix bug in one of the s expressions
7863 which used / for one too many things.
7865 * include/unistd.h: Declare __libc_close.
7867 2002-12-07 Ulrich Drepper <drepper@redhat.com>
7869 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
7871 2002-12-07 Roland McGrath <roland@redhat.com>
7873 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
7874 from 2002-12-06, but remove unnecessary memset call without removing
7875 necessary copy of initialization image.
7877 * Makerules ($(common-objpfx)format.lds): New target.
7878 (common-generated): Add it.
7879 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
7880 * scripts/output-format.sed: New file.
7881 * Makefile (distribute): Add it.
7883 2002-12-07 Ulrich Drepper <drepper@redhat.com>
7885 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
7886 Reported by Art Haas <ahaas@airmail.net>.
7888 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
7890 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
7892 2002-12-07 Jakub Jelinek <jakub@redhat.com>
7894 * string/test-strncpy.c (do_random_tests): Improve test coverage.
7896 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7898 * test-skeleton.c (timeout_handler): Allow expected signal to be
7901 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
7903 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
7905 2002-12-07 Jakub Jelinek <jakub@redhat.com>
7907 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
7908 (SYSCALL_ERROR_HANDLER): Fix a pasto.
7909 Reported by Jeff Bailey <jbailey@nisa.net>.
7911 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7913 * sysdeps/generic/libc-tls.c: Undo last patch.
7915 * include/wctype.h: Define iswalnum with libc_hidden_proto.
7917 * include/signal.h: Define raise with libc_hidden_proto.
7919 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
7920 __execve instead of snprintf and execve.
7922 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
7925 2002-12-06 Jakub Jelinek <jakub@redhat.com>
7927 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
7928 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
7930 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7932 * misc/syslog.c (log_cleanup): New function.
7933 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
7934 (closelog): Likewise.
7936 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
7937 * elf/dl-iteratephdr.c: Likewise.
7938 * elf/dl-lookup.c: Likewise.
7939 * elf/dl-misc.c: Likewise.
7940 * elf/dl-open.c: Likewise.
7941 * elf/dl-support.c: Likewise.
7942 * elf/rtld.c: Likewise.
7943 * sysdeps/generic/ldsodefs.h: Likewise.
7944 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
7945 * sysdeps/mach/bits/libc-lock.h: Likewise.
7946 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7948 2002-12-06 Roland McGrath <roland@redhat.com>
7950 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
7952 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
7953 (malloc_starter, memalign_starter, free_starter): Don't define these.
7954 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
7955 Don't declare them either.
7956 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
7957 __pthread_initialize, so no need to set hooks to *_starter.
7958 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
7959 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
7960 (__libc_malloc_pthread_startup): New function.
7961 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
7963 * malloc/hooks.c (memalign_starter): New function.
7964 * malloc/malloc.c: Declare it.
7965 * malloc/arena.c (save_memalign_hook): New variable.
7966 (ptmalloc_init): Set __memalign_hook to memalign_starter.
7968 * elf/dl-minimal.c (free): Clear the memory.
7969 (calloc): Just call malloc, knowing all memory it returns is cleared.
7971 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
7972 malloc and memset; calloc can avoid the zeroing when redundant.
7973 (_dl_tls_setup): Likewise.
7974 * elf/dl-load.c (decompose_rpath): Likewise.
7975 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
7976 call, since memory from sbrk at startup is already zero.
7978 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
7979 error string for failure, null for success. Update callers.
7980 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
7981 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
7983 2002-12-05 Jakub Jelinek <jakub@redhat.com>
7985 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
7987 (readahead): Change args to i:iii.
7988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
7989 Change args to i:iii.
7990 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
7993 2002-12-05 Roland McGrath <roland@redhat.com>
7995 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
7996 call all functions rather than none.
7997 Reported by Mark P. Mitchell <mark@codesourcery.com>.
7999 2002-12-04 Roland McGrath <roland@redhat.com>
8001 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8002 on _nl_current_LC_* variables.
8004 2002-12-05 Ulrich Drepper <drepper@redhat.com>
8006 * dirent/bug-readdir1.c (main): Don't call closedir, just close
8007 the file descriptor. This is testing what the bug report was about.
8009 2002-12-04 Ulrich Drepper <drepper@redhat.com>
8011 * po/be.po: New file.
8013 * argp/Makefile (tests): Add tst-argp1.
8015 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8016 Change type of _attribute to void*.
8017 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8018 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8019 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8020 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8021 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8023 2002-12-04 Roland McGrath <roland@redhat.com>
8025 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8026 members to the end, so a libpthread compiled with !USE_TLS will still
8027 find other members properly.
8029 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8030 operand for DEST memory. Fix dummy input operand to use SRC.
8031 Reported by Davin McCall <davmac@ozonline.com.au>.
8033 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8034 alignment when initializing the DTV entry.
8036 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8037 when TLS has not been set up, try to set it up if we can.
8038 * elf/tst-tls4.c: Revert last change.
8039 * elf/tst-tls5.c: Likewise.
8040 * elf/tst-tls6.c: Likewise.
8041 * elf/tst-tls7.c: Likewise.
8042 * elf/tst-tls8.c: Likewise.
8043 * elf/tst-tls9.c: Likewise.
8045 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8046 * sysdeps/generic/ldsodefs.h: Declare it.
8047 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8048 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8049 function, broken out of __libc_setup_tls.
8050 (init_static_tls): Likewise.
8051 (__libc_setup_tls): Call them.
8052 (_dl_tls_setup): New function, uses new subroutines.
8054 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8055 Clear the pointer when returning true.
8056 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8057 first element of the slotinfo list too.
8059 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8062 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8063 (_dl_determine_tlsoffset): Likewise.
8065 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8066 startup_error_tsd, made global.
8067 (dl_main): Update initialization.
8068 * elf/dl-tsd.c: Likewise.
8069 * sysdeps/generic/ldsodefs.h: Declare it.
8071 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8073 * manual/texinfo.tex: Update from latest upstream version.
8075 2002-12-03 Roland McGrath <roland@redhat.com>
8077 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
8078 area surplus in calculation for sbrk call.
8080 * iconvdata/cp1125.c: New file.
8081 * iconvdata/Makefile (distribute): Add it.
8082 (modules): Add CP1125.
8083 (gen-8bit-gap-modules): Add cp1125.
8084 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
8085 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
8087 2002-12-03 Andreas Jaeger <aj@suse.de>
8089 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8091 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8093 * sysdeps/posix/system.c (do_system): Make signal handler
8094 installation thread safe.
8096 2002-12-02 Roland McGrath <roland@redhat.com>
8098 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
8099 caller from EXTRA to -.
8100 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8101 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8102 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8104 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
8106 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
8107 bits of RM are cleared.
8109 2002-12-02 Roland McGrath <roland@redhat.com>
8111 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
8112 TLS setup is required.
8113 * elf/tst-tls5.c: Likewise.
8114 * elf/tst-tls6.c: Likewise.
8115 * elf/tst-tls7.c: Likewise.
8116 * elf/tst-tls8.c: Likewise.
8117 * elf/tst-tls9.c: Likewise.
8119 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
8120 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
8121 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
8122 for being null before calling free_slotinfo.
8123 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
8124 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
8126 2002-11-30 Bruno Haible <bruno@clisp.org>
8128 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
8129 (struct __gconv_step): New field __btowc_fct.
8130 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
8131 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
8133 (__gconv_btwoc_ascii): New declaration.
8134 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8135 (__gconv_btwoc_ascii): New function.
8136 * iconv/gconv_builtin.h: Add BtowcFct argument to all
8137 BUILTIN_TRANSFORMATION invocations.
8138 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8139 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
8140 * iconv/gconv_builtin.c (map): New field btowc_fct.
8141 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
8143 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
8144 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
8145 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
8146 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
8147 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
8148 (gconv_init): Initialize __btowc_fct field.
8149 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
8150 * iconv/loop.c: Document ONEBYTE_BODY.
8151 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
8152 Undefine ONEBYTE_BODY at the end.
8153 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
8154 * iconvdata/8bit-gap.c (NONNUL): New macro.
8155 (BODY for FROM_LOOP): Use it.
8156 (ONEBYTE_BODY): New macro.
8157 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
8158 (NONNUL): New macro.
8159 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
8160 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
8161 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
8162 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
8163 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
8164 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
8165 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
8166 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
8167 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
8168 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
8169 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
8170 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
8171 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
8172 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
8173 * iconvdata/ibm932.c: Include <stdbool.h>.
8174 (TRUE, FALSE): Remove macros.
8175 (BODY for FROM_LOOP): Remove unused variable rp1.
8176 (ONEBYTE_BODY): New macro.
8177 (BODY for TO_LOOP): Use bool.
8178 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
8179 * iconvdata/ibm943.c: Include <stdbool.h>.
8180 (TRUE, FALSE): Remove macros.
8181 (BODY for FROM_LOOP): Remove unused variable rp1.
8182 (ONEBYTE_BODY): New macro.
8183 (BODY for TO_LOOP): Use bool.
8184 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
8185 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
8186 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
8187 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
8188 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
8189 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
8190 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
8191 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
8192 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
8193 * iconvdata/gbbig5.c: Tweak comment.
8195 2002-12-02 Ulrich Drepper <drepper@redhat.com>
8197 * po/fi.po: Update from translation team.
8199 2002-12-01 Roland McGrath <roland@redhat.com>
8201 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8202 testing getdents64 return value.
8204 * scripts/versions.awk: Don't pass -n flag to sort command.
8206 * posix/bug-regex13.c: Include <string.h>.
8208 * sysdeps/generic/libc-start.c (__libc_start_main): Do
8209 DL_SYSDEP_OSCHECK here.
8210 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
8211 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
8213 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
8214 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
8216 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
8217 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
8219 * include/link.h: Comment typo fix.
8221 2002-12-01 Roland McGrath <roland@frob.com>
8223 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
8224 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
8225 _POSIX_MEMORY_PROTECTION): Likewise.
8226 (_POSIX_POLL, _POSIX_SELECT): Removed.
8228 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8230 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
8231 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
8233 2002-11-28 Jakub Jelinek <jakub@redhat.com>
8235 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
8237 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
8240 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8242 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
8243 branch prediction buffers by using unpaired call/ret.
8245 2002-11-27 Ulrich Drepper <drepper@redhat.com>
8247 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
8248 first parameters constraint string.
8249 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
8251 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
8253 * posix/regcomp.c (parse_expression): Set the bit since the back
8254 reference is used in the regular expression.
8255 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
8257 (re_node_set_init_copy): Likewise.
8258 * posix/regex_internal.h (state_array_t): New structure.
8259 (re_sub_match_last_t): Likewise.
8260 (re_sub_match_top_t): Likewise.
8261 (re_match_context_t): Add new members.
8262 (re_dfa_t): Likewise.
8263 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
8264 to check the matching is really correct, and retry if failed.
8265 Move the routin pruning the impossible nodes from here, ...
8266 (prune_impossible_nodes): To this function.
8267 (check_matching): Invoke check_subexp_matching_top, and replace
8268 redundant checking with transit_state_bkref invocation.
8269 (proceed_next_node): Replace strncmp with memcmp. Reported by
8270 Paolo Bonzini <bonzini@gnu.org>.
8271 (update_cur_sifted_state): Remove search_subexp invocation.
8272 (search_subexp): Remove this function.
8273 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
8275 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
8276 Remove unused invocation of match_ctx_add_entry.
8277 (transit_state): Invoke check_subexp_matching_top.
8278 (check_subexp_matching_top): New function.
8279 (transit_state_bkref): Remove unused array.
8280 Merge transit_state_bkref_loop.
8281 (transit_state_bkref_loop): Use get_subexp instead of
8282 sift_states_backward. Use search_cur_bkref_entry for optimization.
8283 Merge this function to transit_state_bkref.
8284 (get_subexp): New function.
8285 (get_subexp_sub): Likewise.
8286 (find_subexp_node): Likewise.
8287 (check_arrival): Likewise.
8288 (check_arrival_expand_ecl): Likewise.
8289 (check_arrival_expand_ecl_sub): Likewise.
8290 (expand_bkref_cache): Likewise.
8291 (match_ctx_init): Initialize new members.
8292 (match_ctx_clean): New function.
8293 (match_ctx_free): Release new members.
8294 (match_ctx_free_subtops): New function.
8295 (match_ctx_add_entry): Fix indent.
8296 (search_cur_bkref_entry): New function.
8297 (match_ctx_add_subtop): Likewise.
8298 (match_ctx_add_sublast): Likewise.
8300 2002-11-25 Ulrich Drepper <drepper@redhat.com>
8302 * iconv/Makefile (tests): Remove tst-iconv4.c
8303 * iconv/tst-iconv4.c: Moved to...
8304 * iconvdata/tst-iconv4.c: ...here. New file.
8305 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
8307 2002-11-25 Roland McGrath <roland@redhat.com>
8309 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
8310 Grok AF_LINK if defined.
8311 From Momchil Velikov <velco@fadata.bg>.
8313 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
8314 brdaddr, or dstaddr, just set those pointers to null and don't fail.
8315 Reported by Momchil Velikov <velco@fadata.bg>.
8317 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
8318 is > sizeof IFR->ifa_addr, advance past the whole longer length.
8319 (__ifreq): Count up NIFS that way too.
8320 Reported by Momchil Velikov <velco@fadata.bg>.
8322 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
8324 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
8325 and <fpu_control.h>.
8327 2002-11-24 Ulrich Drepper <drepper@redhat.com>
8329 * elf/elf.h (EM_ST19): Fix typo.
8331 2002-11-25 Jakub Jelinek <jakub@redhat.com>
8333 * include/errno.h (__set_errno): Define as errno = val
8336 2002-11-24 Roland McGrath <roland@redhat.com>
8338 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
8339 * sysdeps/posix/writev.c: Likewise.
8340 From Momchil Velikov <velco@fadata.bg>.
8342 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
8343 calling *GL(dl_error_catch_tsd) for a thread-local location.
8344 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
8345 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
8346 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
8348 * libio/iofflush.c: Add libc_hidden_def.
8349 * libio/iofwrite.c: Likewise.
8350 * sysdeps/generic/sigtimedwait.c: Likewise.
8351 * sysdeps/generic/sigwaitinfo.c: Likewise.
8352 * sysdeps/posix/sigwait.c: Likewise.
8353 Reported by Momchil Velikov <velco@fadata.bg>.
8355 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
8356 to match <arpa/inet.h> declaration.
8357 * inet/inet_netof.c (inet_netof): Likewise.
8358 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
8359 Reported by Momchil Velikov <velco@fadata.bg>.
8361 * configure.in: Skip AUTOCONF check under --without-cvs.
8362 * configure: Regenerated.
8364 * posix/Makefile (headers): Add bits/pthreadtypes.h.
8365 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
8366 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
8368 2002-11-24 Andreas Schwab <schwab@suse.de>
8370 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
8373 2002-11-19 Jim Meyering <jim@meyering.net>
8375 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
8377 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
8379 2002-11-23 Roland McGrath <roland@redhat.com>
8381 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
8382 Just produce hex output for datum sizes.
8384 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
8385 Reported by Luca Barbieri <ldb@ldb.ods.org>.
8387 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
8389 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
8390 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8391 and __unused3 fields.
8392 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
8393 [__WORDSIZE == 32]: Only PPC32 requires __unused1
8394 and __unused2 fields.
8395 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
8396 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8397 __unused3, and __unused4 fields.
8399 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
8400 obtain lowest address for profiling in __monstartup call.
8402 2002-11-21 Roland McGrath <roland@redhat.com>
8404 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
8405 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
8407 * locale/localeinfo.h (struct locale_data): Revert last change.
8409 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
8410 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8412 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
8413 __NR_pread64 if not defined.
8414 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
8415 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8417 2002-11-21 Roland McGrath <roland@frob.com>
8419 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
8420 __libc_multiple_libcs here. Call __setfpucw.
8422 2002-11-21 Ulrich Drepper <drepper@redhat.com>
8424 * elf/Makefile (tests): Don't run test-arrayX tests for now.
8426 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
8427 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
8428 CLONE_CHILD_*TID flags.
8430 2002-11-20 Andreas Jaeger <aj@suse.de>
8432 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
8433 We pass struct ucontext on x86-64.
8435 (GET_FRAME): Adjust.
8436 (GET_STACK): Adjust.
8438 2002-11-20 Roland McGrath <roland@redhat.com>
8440 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
8441 conditionalize [! DO_VERSIONING] #error.
8443 * scripts/abilist.awk: Grok function descriptor symbols.
8445 * intl/tst-gettext.c (main): Check return values from setlocale.
8446 Add necessary unsetenv's to make LANG=existing-locale check work.
8448 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
8449 so aborted prior runs don't confuse things.
8451 * locale/localeinfo.h (struct locale_data: union locale_data_value):
8452 Use uintptr_t instead of unsigned int for `word' member.
8453 (_NL_CURRENT_WORD): Cast to uint32_t.
8455 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
8458 2002-11-20 Ulrich Drepper <drepper@redhat.com>
8460 * elf/tls-macros.h: Add IA-64 definitions.
8461 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
8463 * iconv/Makefile (tests): Add tst-iconv4.
8464 * iconv/tst-iconv4.c: New file.
8466 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
8467 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
8468 __GCONV_INCOMPLETE_INPUT.
8469 (ucs4le_internal_loop): Likewise.
8470 (ucs4le_internal_loop_unaligned): Likewise.
8471 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
8472 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
8473 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
8475 * iconv/loop.c (LOOPFCT): First test for empty input then for full
8478 * inet/getnameinfo.c: Use extend_alloca where appropriate.
8479 * sysdeps/posix/getaddrinfo.c: Likewise.
8481 * include/alloca.h (extend_alloca): New define. Based on stack
8482 direction it'll try to append to the previouls allocated buffer.
8484 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
8486 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
8487 use the same service for AF_INET and AF_INET6.
8489 2002-11-19 Ulrich Drepper <drepper@redhat.com>
8491 * intl/localealias.c (read_alias_file): Use only about 400 bytes
8492 of stack space instead of 16k.
8494 2002-11-18 Wolfram Gloger <wg@malloc.de>
8497 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
8498 nothing if not initialized. Bug report from Marcus Brinkmann
8499 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8501 2002-11-19 Roland McGrath <roland@redhat.com>
8503 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
8506 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
8507 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
8508 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
8509 * configure: Regenerated.
8511 2002-11-19 Ulrich Drepper <drepper@redhat.com>
8513 * include/dlfcn.h: __libc_dlopen is now a macro calling
8514 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
8515 (__libc_dlopen_mode): New prototype.
8516 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
8517 new parameter. Store new parameter in mode field of structure passed
8519 (struct do_dlopen_args): Add new field mode.
8520 (do_dlopen): Pass mode from parameter structure to _dl_open.
8522 2002-11-11 Randolf Chung <tausq@debian.org>
8524 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
8525 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
8526 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
8528 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
8530 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
8531 Set -mdisable-fpregs for this file.
8533 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
8535 * sysdeps/unix/sysv/linux/configure.in:
8536 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
8537 from gcc-3.0 era for backwards compatibility.
8538 * sysdeps/unix/sysv/linux/configure: Regenerate.
8540 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
8541 Define mcontext_t as a sigcontext.
8543 2002-11-18 Roland McGrath <roland@redhat.com>
8545 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
8546 Free memory in `last_result' if it was used.
8548 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
8549 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
8550 Do the parsing inline instead of copying strings and calling
8551 inet_network, and properly skip all alias names not matching the form.
8553 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
8555 2002-11-17 Ulrich Drepper <drepper@redhat.com>
8557 * manual/pattern.texi (Wordexp Example): Fix sample code.
8559 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
8560 childs stack which will be loaded into the %esi register.
8562 2002-11-14 Paul Eggert <eggert@twinsun.com>
8564 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
8565 overflow when skipping the question part and when unpacking aliases.
8567 2002-11-15 Roland McGrath <roland@redhat.com>
8569 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
8570 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
8571 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
8573 2002-11-15 Jakub Jelinek <jakub@redhat.com>
8575 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
8576 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
8578 2002-11-15 Roland McGrath <roland@redhat.com>
8580 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
8581 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
8582 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
8583 (+make-include-of-dep): New canned sequence.
8585 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
8586 From Dmitry V. Levin <ldv@altlinux.org>.
8588 2002-11-14 Roland McGrath <roland@redhat.com>
8590 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
8591 * inet/herrno.c (__libc_h_errno): Likewise.
8592 * resolv/res_libc.c (__libc_res): Likewise.
8593 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
8594 (__res_state) [! USE___THREAD]: Don't define as weak.
8595 * csu/Versions: Revert last change.
8596 * resolv/Versions: Revert last change.
8598 * Makerules ($(common-objpfx)%.make): New pattern rule.
8599 * tls.make.c: New file.
8600 * Makefile (distribute): Add it.
8602 * sysdeps/generic/errno.c [! USE___THREAD]
8603 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
8604 with compat_symbol so they are not link-time visible.
8605 [! USE___THREAD] (__libc_errno): New alias for errno.
8606 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
8607 Add __libc_errno here.
8608 * inet/herrno.c [USE___THREAD]: Use this conditional
8609 in place of [USE_TLS && HAVE___THREAD].
8610 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
8611 (h_errno, _h_errno): Declare these with compat_symbol so they are not
8613 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
8614 * resolv/res_libc.c [! USE___THREAD]
8615 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
8616 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
8617 (__libc_res): Define as alias for _res.
8618 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
8619 Add __libc_h_errno and __libc_res here.
8621 2002-11-14 Jakub Jelinek <jakub@redhat.com>
8623 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
8624 * resolv/Versions (h_errno, _res): Likewise.
8626 2002-11-14 Roland McGrath <roland@redhat.com>
8628 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
8629 (%.symlist): Likewise.
8631 2002-11-13 Roland McGrath <roland@redhat.com>
8633 * scripts/abilist.awk: New file.
8634 * Makefile (distribute): Add it.
8635 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
8636 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
8637 [$(subdir) = elf] (tests): Depend on libc.symlist.
8638 (generated, common-generated): Add those files.
8640 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
8641 * configure: Regenerated.
8642 * config.make.in (OBJDUMP): New variable, substituted by configure.
8644 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
8645 (mallochook, reallochook): Set them up.
8646 (checkhdr): Check HDR->magic2 value.
8647 (freehook): Reset HDR->magic2.
8648 (memalignhook): New static function.
8649 (old_memalign_hook): New static variable.
8650 (mcheck, reallochook): Set __memalign_hook to memalignhook.
8652 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
8655 2002-11-13 Andreas Jaeger <aj@suse.de>
8657 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
8659 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8661 2002-11-11 Paul Eggert <eggert@twinsun.com>
8663 * manual/crypt.texi (Cryptographic Functions): Mention that
8664 the MD5 one-way algorithm is compatible with BSD's.
8666 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
8668 * posix/regex_internal.c (re_string_skip_chars): Also return the last
8670 (re_string_reconstruct): Calculate the context by itself when the
8671 offset points out of the valid range.
8672 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
8673 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
8674 (IS_WIDE_WORD_CHAR): New macro.
8675 (IS_WIDE_NEWLINE): New macro.
8677 2002-11-12 Andreas Jaeger <aj@suse.de>
8679 * sysdeps/x86_64/strchr.S: Don't use one register for two
8680 purposes, this fixes a bug noticed by test-strchr.c.
8682 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
8685 2002-11-12 Roland McGrath <roland@redhat.com>
8687 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
8688 (_G_IO_NO_BACKWARD_COMPAT): Define it.
8690 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
8691 instead of <pt-machine.h>.
8692 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
8694 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8696 2002-11-10 Roland McGrath <roland@redhat.com>
8698 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
8699 Call fputs instead of fwprintf (simpler to follow in debugger).
8701 * crypt/md5-crypt.c: Doc fix.
8703 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
8704 the beginning of generated target commands.
8706 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
8707 dependencies for these in case implicit rule search skipped the
8708 nonexistent source directory.
8709 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
8710 files with $(object-suffixes) as targets too.
8711 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
8712 and a target for it using $(make-target-directory).
8714 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
8716 2002-11-10 Roland McGrath <roland@frob.com>
8718 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
8719 * sysdeps/generic/bits/pthreadtypes.h: ... here.
8721 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
8722 l_start == 0 and l_len == 1 as we do l_len == 0.
8724 2002-11-10 Ulrich Drepper <drepper@redhat.com>
8726 * po/da.po: Update from translation team.
8728 2002-11-10 Roland McGrath <roland@redhat.com>
8730 * config.make.in (includedir): New variable, substituted by configure.
8731 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
8732 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
8734 2002-11-10 Andreas Jaeger <aj@suse.de>
8736 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
8737 REG_OLDMASK and REG_CR2 to synch with kernel header.
8740 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
8742 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
8743 * nss/getnssent_r.c (__nss_getent_r): Likewise.
8744 (__nss_setent): Likewise.
8745 (__nss_getent_r): Likewise.
8746 * inet/getnetgrent_r.c (innetgr): Likewise.
8747 (__internal_setnetgrent_reuse): Likewise.
8748 (internal_getnetgrent_r): Likewise.
8749 * inet/ether_hton.c (ether_hostton): Likewise.
8750 * inet/ether_ntoh.c (ether_ntohost): Likewise.
8751 * sunrpc/netname.c (netname2user): Likewise.
8752 * sunrpc/publickey.c (getpublickey): Likewise.
8753 (getsecretkey): Likewise.
8755 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
8757 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
8758 error in range calculation.
8760 2002-10-09 Jakub Jelinek <jakub@redhat.com>
8762 * string/test-strspn.c (do_test): Ensure zero termination.
8763 * string/test-strpbrk.c (do_test): Likewise.
8764 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
8765 * string/test-strncpy.c (stupid_strncpy): Likewise.
8766 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
8768 2002-10-08 Roland McGrath <roland@redhat.com>
8770 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
8773 2002-09-22 H.J. Lu <hjl@gnu.org>
8775 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
8776 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
8777 only if __NR_mmap2 is defined.
8779 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
8780 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
8781 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
8782 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
8784 2002-11-08 Jakub Jelinek <jakub@redhat.com>
8786 * posix/bug-regex13.c (tests): Add new test.
8788 * string/test-strchr.c (stupid_strchr): New function.
8789 (do_random_tests): Make sure the string is zero terminated.
8790 * string/test-strpbrk.c (stupid_strpbrk): New function.
8791 (do_random_tests): Make sure the string is zero terminated.
8792 * string/test-strcmp.c (stupid_strcmp): New function.
8793 (do_random_tests): Make sure the strings are zero terminated.
8794 * string/test-strspn.c (stupid_strspn): New function.
8795 (simple_strspn): Rename rej argument to acc.
8796 (do_random_tests): Make sure the string is zero terminated.
8797 * string/test-strcspn.c (stupid_strcspn): New function.
8798 * string/test-strncpy.c (stupid_strncpy): New function.
8799 * string/test-stpncpy.c (stupid_stpncpy): New function.
8800 * string/test-strncmp.c (stupid_strncmp): New function.
8801 (do_random_tests): Make sure the strings are zero terminated.
8802 * string/test-string.h (impl_t): Change test into long.
8803 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
8805 2002-11-08 Roland McGrath <roland@redhat.com>
8807 * sysdeps/ia64/elf/configure.in: Add TLS check.
8808 From Ian Wienand <ianw@cse.unsw.edu.au>.
8809 * sysdeps/ia64/elf/configure: Regenerated.
8811 2002-11-07 Roland McGrath <roland@redhat.com>
8813 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
8814 place of _IO_new_do_write.
8815 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
8816 #undef before versioned_symbol use.
8818 2002-11-07 Richard Henderson <rth@redhat.com>
8820 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
8821 * configure: Regenerated.
8822 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
8823 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
8824 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
8825 _dl_fini via gp-relative relocations.
8826 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
8828 * elf/tls-macros.h: Add alpha versions.
8829 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
8830 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
8831 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
8832 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
8833 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8834 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
8835 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
8836 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
8837 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
8838 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
8839 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
8840 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
8841 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
8842 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
8843 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
8844 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
8845 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
8846 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
8848 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
8849 Kill argument registers across the inline syscall.
8851 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
8853 * linuxthreads/sysdeps/alpha/tls.h: New file.
8854 * sysdeps/alpha/dl-tls.h: New file.
8856 2002-10-29 David Mosberger <davidm@hpl.hp.com>
8858 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
8859 (gmon_initializer): New function.
8860 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
8861 __gmon_start__ here. Call it from gmon_initializer() instead.
8863 2002-03-12 H.J. Lu <hjl@gnu.org>
8865 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
8866 tst-array2, and tst-array3.
8867 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
8868 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
8869 ($(objpfx)tst-array1.out): New target.
8870 ($(objpfx)tst-array2): Likewise.
8871 ($(objpfx)tst-array2.out): Likewise.
8872 ($(objpfx)tst-array3.out): Likewise.
8873 * elf/tst-array1.c: New file.
8874 * elf/tst-array1.exp: Likewise.
8875 * elf/tst-array2.c: Likewise.
8876 * elf/tst-array2dep.c: Likewise.
8877 * elf/tst-array2.exp: Likewise.
8878 * elf/tst-array3.c: Likewise.
8880 2002-10-28 David Mosberger <davidm@hpl.hp.com>
8882 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
8883 Don't add L->l_addr to array entry values.
8885 2002-11-07 Jakub Jelinek <jakub@redhat.com>
8887 * string/test-string.h: New file.
8888 * string/test-strlen.c: New file.
8889 * string/test-string.h: New file.
8890 * string/test-strcmp.c: New file.
8891 * string/test-strchr.c: New file.
8892 * string/test-strrchr.c: New file.
8893 * string/test-strcpy.c: New file.
8894 * string/test-stpcpy.c: New file.
8895 * string/test-strncpy.c: New file.
8896 * string/test-stpncpy.c: New file.
8897 * string/test-strpbrk.c: New file.
8898 * string/test-strcspn.c: New file.
8899 * string/test-strspn.c: New file.
8900 * string/test-strcat.c: New file.
8901 * string/test-strncmp.c: New file.
8902 * string/test-memchr.c: New file.
8903 * string/test-memcmp.c: New file.
8904 * string/test-memset.c: New file.
8905 * string/test-memcpy.c: New file.
8906 * string/test-mempcpy.c: New file.
8907 * string/test-memmove.c: New file.
8908 * string/Makefile (strop-tests): New variable.
8909 (tests): Add strop-tests.
8910 (distribute): Add test-string.h.
8912 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8914 * posix/regcomp.c: Use tabs instead of spaces.
8915 * posix/regexec.c: Likewise.
8916 * posix/regex_internal.h: Likewise.
8918 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
8920 2002-11-06 Jakub Jelinek <jakub@redhat.com>
8922 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
8924 (regcomp): Don't set can_be_null here.
8925 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
8926 (re_compile_internal): Clear can_be_null, set regs_allocated.
8928 * posix/regcomp.c (re_set_fastmap): New function.
8929 (re_compile_fastmap_iter): Use it. Remove redundant type ==
8930 COMPLEX_BRACKET check.
8931 * posix/regexec.c (re_search_internal): Optimize searching with
8932 fastmap. Call re_string_reconstruct even if match_first is
8933 smaller than raw_mbs_idx.
8935 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8937 * posix/regcomp (free_dfa_content): Use free_state.
8938 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
8939 pointers in case that realloc failed.
8940 (re_node_set_merge): Likewise.
8941 (register_state): Likewise.
8942 (create_newstate_common): Invoke memory release functions in case of
8944 (create_ci_newstate): Likewise.
8945 (create_cd_newstate): Likewise.
8946 (free_state): New function.
8947 * posix/regexec.c (re_search_internal): Invoke memory release
8948 functions in case of error conditions.
8949 (sift_states_backward): Likewise.
8950 (merge_state_array): Likewise.
8951 (add_epsilon_src_nodes): Likewise.
8952 (sub_epsilon_src_nodes): Likewise.
8953 (search_subexp): Likewise.
8954 (sift_states_bkref): Likewise.
8955 (transit_state_sb): Likewise.
8956 (transit_state_mb): Likewise.
8957 (transit_state_bkref_loop): Likewise.
8958 (group_nodes_into_DFAstates): Likewise.
8959 (push_fail_stack): Don't edit pointers in case that realloc failed.
8960 (extend_buffers): Likewise.
8961 (match_ctx_add_entry): Likewise.
8963 2002-11-06 Roland McGrath <roland@redhat.com>
8965 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
8966 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8968 * configure.in: Add checks on as and ld for binutils 2.13 or later.
8969 * configure: Regenerated.
8971 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8973 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
8974 If re_compile_internal failed free fastmap buffer.
8975 (free_dfa_content): Broken out of regfree function. Frees all dfa
8977 (regfree): Add free_dfa_content.
8978 (re_compile_internal): If any of the called functions fails free
8979 all dfa related memory.
8981 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8983 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
8984 warnings from the kernel headers.
8986 2002-11-05 Roland McGrath <roland@redhat.com>
8988 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
8989 From Johannes Stezenbach <js@convergence.de>.
8991 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
8992 #errlist-compat magic comment to give 123 as size.
8993 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
8994 (libc: GLIBC_2.2): ... here.
8995 (libc: GLIBC_2.3): Likewise.
8997 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8999 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9000 which happens at the beginning so that we can unload modules in
9003 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9005 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9006 under [__USE_MISC || _ASM].
9008 * elf/elf.h: Remove the obsolete SH TLS relocations.
9010 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9012 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9014 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9017 __NR_pread64 and __NR_pwrite64.
9018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9019 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9021 Revert change to use INLINE_SYSCALL.
9022 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9023 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9024 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9025 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9027 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9030 Update clobber list and add a comment about the syscall ABI.
9032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9033 s_pwrite64, s_ftruncate, s_truncate): Re-add.
9035 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9037 * iconv/gconv_dl.c (free_mem): Clear loaded.
9038 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9041 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9043 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9045 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9046 as old code without locking. _IO_seekoff calls this function after
9048 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9049 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9050 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9052 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9053 of _IO_seekoff_internal.
9054 (_IO_rewind): Likewise.
9055 * libio/ioftell.c: Likewise.
9056 * libio/ftello.c: Likewise.
9057 * libio/ftello64.c: Likewise.
9058 * libio/iofgetpos.c: Likewise.
9059 * libio/iofgetpos64.c: Likewise.
9060 * libio/oldiofgetpos.c: Likewise.
9061 * libio/oldiofgetpos64.c: Likewise.
9062 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9063 _IO_seekpos_internal.
9064 * libio/iofsetpos64.c: Likewise.
9065 * libio/oldiofsetpos.c: Likewise.
9066 * libio/oldiofsetpos64.c: Likewise.
9068 2002-11-04 Roland McGrath <roland@redhat.com>
9070 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9071 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9072 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9073 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9074 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9075 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9076 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9077 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
9078 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
9079 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
9081 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
9082 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
9083 Remove these, no longer used.
9085 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
9088 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
9089 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
9090 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
9091 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
9092 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
9095 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
9096 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9097 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
9099 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9100 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
9102 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9104 2002-11-03 Roland McGrath <roland@redhat.com>
9106 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
9107 `_dl_tls_static_used'.
9108 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
9109 (__libc_setup_tls): Initialize it. Let the initial value of
9110 _dl_tls_static_size indicate some surplus space in the computed value.
9111 * elf/dl-open.c (_dl_tls_static_size): New variable.
9112 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
9113 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
9114 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
9115 (CHECK_STATIC_TLS): Use it.
9116 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
9117 closed objects occupied a trailing contiguous chunk of static TLS area.
9119 2002-10-18 Bruno Haible <bruno@clisp.org>
9121 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
9123 2002-11-04 Ulrich Drepper <drepper@redhat.com>
9125 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
9126 _wide_data->_IO_read_end if adjustment can be made in the current
9129 * sysdeps/unix/sysv/linux/fexecve.c: New file.
9131 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
9132 wide oriented streams are used.
9134 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
9135 service hasn't been used [PR libc/4744].
9137 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
9138 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
9140 * manual/examples/dir.c: Don't include <stddef.h>.
9141 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
9142 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
9144 2002-11-02 H.J. Lu <hjl@gnu.org>
9146 * stdio-common/reg-printf.c: Include <stddef.h>.
9148 2002-11-03 Ulrich Drepper <drepper@redhat.com>
9150 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
9152 * po/ca.po: Update from translation team.
9153 * po/es.po: Likewise.
9155 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
9156 is defined write out memory map.
9157 * sysdeps/unix/sysv/linux/segfault.c: New file.
9159 2002-11-02 Roland McGrath <roland@redhat.com>
9161 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
9162 pointers that can alias.
9163 Reported by Daniel Jacobowitz <drow@mvista.com>.
9165 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
9167 2002-11-02 Roland McGrath <roland@redhat.com>
9169 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
9170 description to be clearer and to say that *RESULT is set to ENTRY.
9172 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9174 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
9175 dests_ch arrays together. Alloca or malloc dest_states,
9176 dest_states_word and dest_states_nl arrays together. Free memory on
9179 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
9181 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
9182 and current_saltbits.
9184 2002-11-02 Roland McGrath <roland@redhat.com>
9186 * stdio-common/reg-printf.c: Include <stdlib.h>.
9188 2002-11-02 H.J. Lu <hjl@gnu.org>
9190 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
9191 caller to EXTRA instead of execve.
9193 2002-11-01 Roland McGrath <roland@redhat.com>
9195 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
9196 in place of [!(USE_TLS && HAVE___THREAD)].
9197 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
9199 2002-10-31 Roger Sayle <roger@eyesopen.com>
9201 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
9203 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9205 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
9206 without defining FP_ROUNDMODE.
9208 2002-10-29 Jakub Jelinek <jakub@redhat.com>
9210 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
9211 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
9213 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9214 (OLD_SIGLIST_SIZE): Define.
9215 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9216 (OLD_SIGLIST_SIZE): Define.
9217 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
9219 2002-11-01 Jakub Jelinek <jakub@redhat.com>
9221 * sysdeps/ia64/strncpy.S: Fix recovery code.
9223 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9225 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
9227 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
9229 * elf/dl-libc.c (free_mem): Likewise.
9230 * iconv/gconv_conf.c (free_mem): Likewise.
9231 * iconv/gconv_db.c (free_mem): Likewise.
9232 * iconv/gconv_dl.c (free_mem): Likewise.
9233 * iconv/gconv_cache.c (free_mem): Likewise.
9234 * intl/finddomain.c (free_mem): Likewise.
9235 * intl/dcigettext.c (free_mem): Likewise.
9236 * locale/setlocale.c (free_mem): Likewise.
9237 * misc/fstab.c (fstab_free): Likewise.
9238 * nss/nsswitch.c (free_mem): Likewise.
9239 * posix/regcomp.c (free_mem): Likewise.
9240 * resolv/gai_misc.c (free_res): Likewise.
9241 * stdlib/fmtmsg.c (free_mem): Likewise.
9242 * sunrpc/clnt_perr.c (free_mem): Likewise.
9243 * sysdeps/generic/setenv.c (free_mem): Likewise.
9244 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
9245 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
9246 * time/tzset.c (free_mem): Likewise.
9247 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
9248 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
9249 * malloc/set-freeres.c (__libc_freeres): Likewise.
9251 * login/getutent.c: Include stdlib.h instead of stddef.h.
9252 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9253 (__getutent): Allocate buffer the first time it is run.
9254 * login/getutid.c: Include stdlib.h instead of stddef.h.
9255 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9256 (__getutid): Allocate buffer the first time it is run.
9257 * login/getutline.c: Include stdlib.h instead of stddef.h.
9258 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9259 (__getutline): Allocate buffer the first time it is run.
9260 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
9261 (mtrace): Allocate malloc_trace_buffer.
9262 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
9263 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
9264 * string/strerror.c: Include libintl.h and errno.h.
9265 (buf): New variable.
9266 (strerror): Only allocate buffer if actually needed (unknown error).
9267 * time/tzfile.c (transitions): Add libc_freeres_ptr.
9270 2002-10-25 Jakub Jelinek <jakub@redhat.com>
9272 * include/libc-symbols.h (libc_freeres_ptr): New macro.
9273 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
9275 (__libc_freeres): Free all pointers in that section.
9276 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
9277 commands when creating .lds script.
9278 (LDSEDCMD-c.so): New variable.
9279 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9280 (rcmd_af): Use strdup to allocate ahostbuf.
9281 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9282 (rexec_af): Use strdup to allocate ahostbuf.
9283 * stdio-common/reg-printf.c (printf_funcs): Remove.
9284 (__printf_arginfo_table): Change into printf_arginfo_function **.
9285 Add libc_freeres_ptr.
9286 (__register_printf_function): Allocate __printf_arginfo_table
9287 and __printf_function_table the first time it is called.
9288 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
9289 printf_arginfo_function **.
9290 (parse_one_spec): Add __builtin_expect.
9291 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
9293 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
9295 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
9296 (string_space, map): Add libc_freeres_ptr.
9298 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
9300 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
9302 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
9303 (buffer): Add libc_freeres_ptr.
9304 (free_mem): Remove for _LIBC.
9305 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
9307 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
9309 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
9311 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
9313 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
9315 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
9317 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
9320 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
9324 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9326 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
9327 instead of duplicating the whole function in libc.
9329 2002-10-31 Roland McGrath <roland@redhat.com>
9331 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
9332 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
9334 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9336 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
9337 32bit-predefine when creating .new32 list and -U for each
9338 32bit-predefine when creating .new64 list.
9339 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
9341 2002-10-29 Andreas Schwab <schwab@suse.de>
9343 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
9344 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
9346 2002-10-25 Roland McGrath <roland@redhat.com>
9348 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
9349 * sysdeps/unix/sysv/linux/configure: Regenerated.
9351 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
9352 _dl_starting_up decl.
9354 2002-10-20 H.J. Lu <hjl@gnu.org>
9356 * sysdeps/unix/sysv/linux/configure.in: Don't check
9357 /lib/modules/`uname -r`/build/include for kernel headers if
9359 * sysdeps/unix/sysv/linux/configure: Regenerated.
9361 2002-10-25 Roland McGrath <roland@redhat.com>
9363 * math/math.h (M_LOG2El): Correct the value.
9364 From Stephen L Moshier <steve@moshier.net>.
9366 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
9367 conditional from __libc_multiple_libcs access. Remove kludge for weak
9368 symbol access with old compilers we no longer support.
9369 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9370 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
9372 2002-10-25 Roland McGrath <roland@redhat.com>
9374 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
9375 implement SV_RESETHAND by translating it to SA_RESETHAND.
9377 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
9379 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
9380 type on ELF64 platforms.
9382 2002-10-24 Ulrich Drepper <drepper@redhat.com>
9384 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
9386 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
9388 2002-10-24 Jakub Jelinek <jakub@redhat.com>
9390 * elf/dl-misc.c: Include <sysdep.h>.
9391 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
9393 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
9394 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9395 (INLINE_SYSCALL): Use that.
9396 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
9397 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9398 (INLINE_SYSCALL): Use that.
9399 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
9400 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9401 (INLINE_SYSCALL): Use that.
9402 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
9404 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9405 (__INTERNAL_SYSCALL_STRING): Define.
9406 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9408 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9409 (__INTERNAL_SYSCALL_STRING): Define.
9410 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
9411 __SYSCALL_STRING to inline_syscall*.
9412 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
9414 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
9415 inline_syscall4, inline_syscall5, inline_syscall6): Add string
9418 2002-10-24 Roland McGrath <roland@redhat.com>
9420 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
9421 * sysdeps/unix/sysv/linux/init-first.c: Not here.
9422 * sysdeps/powerpc/elf/libc-start.c: Or here.
9423 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
9424 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
9425 * sysdeps/unix/sysv/aix/init-first.c: Or here.
9426 * sysdeps/generic/libc-start.c: Or here.
9427 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
9428 access with [! SHARED].
9429 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9431 * libio/bug-wfflush.c: New file.
9432 * libio/Makefile (tests): Add bug-wfflush.
9434 2002-10-23 Roland McGrath <roland@redhat.com>
9436 * stdio-common/tst-fphex.c: New file.
9437 * stdio-common/Makefile (tests): Add tst-fphex.
9438 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
9439 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
9440 chars always before the value digits.
9441 Reported by James Antill <james.antill@redhat.com>.
9443 2002-10-24 Jakub Jelinek <jakub@redhat.com>
9445 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
9446 (free_mem): New function.
9447 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
9448 if not cross compiling.
9449 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
9450 (bug-regex14-ENV): Set.
9451 (bug-regex14-mem): New target.
9452 * posix/bug-regex14.c: New file.
9454 2002-10-23 Roland McGrath <roland@redhat.com>
9456 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
9457 target, so we don't touch it when the link fails.
9459 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
9460 Check for the result overflowing off_t and fail with EOVERFLOW.
9461 * libio/ioftell.c (_IO_ftell): Likewise.
9462 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9464 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
9465 use a temporary timeval on the stack for gettimeofday and copy it.
9466 * login/logout.c (logout): Likewise.
9467 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
9469 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
9470 Use __SWORD_TYPE instead of int for member types.
9471 (struct statfs64): Likewise.
9472 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
9473 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
9474 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
9475 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
9476 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
9478 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
9479 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
9480 (ST_NODIRATIME): Restore fixed value of 2048.
9481 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
9482 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
9484 Rearranged <bits/types.h> definitions to reduce duplication.
9485 * sysdeps/generic/bits/types.h: Rewritten, using macros from
9486 <bits/wordsize.h> and new header <bits/typesizes.h>.
9487 * posix/Makefile (headers): Add bits/typesizes.h here.
9488 * sysdeps/generic/bits/typesizes.h: New file.
9489 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
9490 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
9491 * sysdeps/mach/hurd/bits/typesizes.h: New file.
9492 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
9493 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
9494 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
9495 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
9496 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
9497 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
9498 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
9499 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
9500 <bits/pthreadtypes.h> here, not in <bits/types.h>.
9501 * signal/signal.h: Likewise.
9503 * streams/stropts.h: Include <bits/xtitypes.h>.
9504 * streams/Makefile (headers): Add bits/xtitypes.h here.
9505 * sysdeps/generic/bits/xtitypes.h: New file.
9506 * sysdeps/s390/bits/xtitypes.h: New file.
9507 * sysdeps/ia64/bits/xtitypes.h: New file.
9508 * sysdeps/x86_64/bits/xtitypes.h: New file.
9510 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
9511 * sysdeps/generic/bits/ipctypes.h: New file.
9512 * sysdeps/mips/bits/ipctypes.h: New file.
9513 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
9514 * sysdeps/gnu/bits/msq.h: Likewise.
9515 * sysvipc/sys/ipc.h: Likewise.
9517 2002-10-22 Ulrich Drepper <drepper@redhat.com>
9519 * elf/dl-load.c (struct filebuf): For buf element to have the
9520 alignment of ElfXX_Ehdr since this is what will be stored in it.
9522 2002-10-22 Jakub Jelinek <jakub@redhat.com>
9524 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
9525 into pointer to locrec_offset.
9526 (add_locale_to_archive): Adjust callers. Free normalized_name right
9527 before returning, not immediately after add_locale, pass it to
9528 add_alias if not NULL instead of name. Rename second normalized_name
9529 occurence to nnormalized_codeset_name.
9531 * locale/programs/locarchive.c (enlarge_archive): Make sure
9532 string_size is always a multiple of 4.
9533 Reported by Andreas Schwab <schwab@suse.de>.
9535 2002-10-21 Andreas Schwab <schwab@suse.de>
9537 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
9538 caller to EXTRA instead of execve, since the latter has a
9539 higher-priority implementation in linuxthreads.
9541 2002-10-21 Roland McGrath <roland@redhat.com>
9543 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
9544 slotinfo list's len member to the proper size, not just 1.
9545 Initialize static_map.l_tls_initimage.
9547 * elf/dl-open.c (dl_open_worker): Fix loop searching for
9548 dtv_slotinfo_list element containing new modules' l_tls_modid.
9550 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
9551 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
9552 * elf/Makefile (tests): Add tst-tls9.
9553 (tests-static): Add tst-tls9-static.
9554 (tst-tls9-static-ENV): New variable.
9555 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
9557 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
9558 modids used by partially loaded modules being closed can't be known.
9560 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
9562 * posix/Makefile: Add a test case for the bug reported by Aharon
9563 Robbins <arnold@skeeve.com>.
9564 * posix/bug-regex13.c: New file.
9565 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
9567 2002-10-21 Ulrich Drepper <drepper@redhat.com>
9569 * csu/gmon-start.c: Pretty printing.
9571 2002-10-19 Art Haas <ahaas@neosoft.com>
9573 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
9574 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
9575 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
9576 * configure: Regenerated.
9578 2002-10-19 Roland McGrath <roland@redhat.com>
9580 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
9581 and then set $subdirs directly, because the new Autoconf breaks
9582 compatibility in every way imaginable and insists on whining
9583 about usage that worked since the dawn of time.
9584 * configure: Regenerated.
9586 * configure: Regenerated (using Autoconf 2.54).
9587 * sysdeps/alpha/elf/configure: Likewise.
9588 * sysdeps/generic/configure: Likewise.
9589 * sysdeps/i386/elf/configure: Likewise.
9590 * sysdeps/ia64/elf/configure: Likewise.
9591 * sysdeps/mach/hurd/configure: Likewise.
9592 * sysdeps/mach/configure: Likewise.
9593 * sysdeps/unix/configure: Likewise.
9594 * sysdeps/unix/common/configure: Likewise.
9595 * sysdeps/unix/sysv/aix/configure: Likewise.
9596 * sysdeps/unix/sysv/linux/configure: Likewise.
9597 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9598 * sysdeps/x86_64/elf/configure: Likewise.
9600 * config.make.in: Nix completely-soft nonsense.
9601 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
9602 of machine directories instead of fpu subdirectory.
9603 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
9604 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
9605 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
9606 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
9607 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
9608 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
9609 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
9610 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
9611 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
9612 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
9613 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
9614 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
9615 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
9616 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
9617 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
9618 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
9619 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
9620 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
9621 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
9622 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
9623 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
9624 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
9625 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
9626 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
9627 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
9628 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
9629 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
9630 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
9631 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
9632 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
9633 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
9634 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
9635 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
9636 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
9637 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
9638 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
9639 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
9640 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
9641 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
9642 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
9644 2002-10-19 Bruno Haible <bruno@clisp.org>
9646 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
9648 2002-10-18 Roland McGrath <roland@redhat.com>
9650 * io/Makefile (routines): Add lchmod.
9651 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
9652 * sysdeps/generic/lchmod.c: New file.
9653 * sysdeps/mach/hurd/lchmod.c: New file.
9654 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
9656 2002-10-18 Art Haas <ahaas@neosoft.com>
9658 * configure.in: Remove remaining AC_FD_CC macros, and replace
9659 AC_FD_MSG with AS_MESSAGE_FD.
9661 2002-10-18 Roland McGrath <roland@redhat.com>
9663 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
9664 typos: VALUE -> FINALADDR.
9666 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
9667 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
9668 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
9669 (inline_syscall6): Move these macros ...
9670 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
9672 * configure.in (libc_link_dests, libc_link_sources): Remove these
9673 variables and the AC_LINK_FILES call.
9675 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
9676 change to put new symbols here instead of in GLIBC_2.2.
9677 * sysdeps/powerpc/Subdirs: Move this file ...
9678 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
9680 2002-10-07 Roland McGrath <roland@redhat.com>
9682 * sysdeps/generic/bits/time.h: Replaced with contents of the
9683 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
9684 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
9685 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
9686 macros is ok even for architectures that don't now implement them.
9687 * sysdeps/mach/hurd/bits/time.h: File removed.
9688 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
9689 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
9690 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
9691 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
9692 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
9694 2002-10-18 Jeff Bailey <jbailey@gnu.org>
9696 * configure.in: Replace obsolete AC_OUTPUT syntax with
9697 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
9699 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
9700 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
9702 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
9703 * sysdeps/alpha/elf/configure.in: Likewise.
9704 * sysdeps/i386/elf/configure.in: Likewise.
9705 * sysdeps/mach/hurd/configure.in: Likewise.
9706 * sysdeps/x86_64/elf/configure.in: Likewise.
9708 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
9710 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
9711 * sysdeps/generic/configure.in: Likewise.
9712 * sysdeps/i386/elf/configure.in: Likewise.
9713 * sysdeps/ia64/elf/configure.in: Likewise.
9714 * sysdeps/mach/configure.in: Likewise.
9715 * sysdeps/mach/hurd/configure.in: Likewise.
9716 * sysdeps/unix/configure.in: Likewise.
9717 * sysdeps/unix/common/configure.in: Likewise.
9718 * sysdeps/unix/sysv/aix/configure.in: Likewise.
9719 * sysdeps/unix/sysv/linux/configure.in: Likewise.
9720 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
9721 * sysdeps/x86_64/elf/configure.in: Likewise.
9723 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
9724 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
9725 that it's obvious when extra autoconf machinery is being dragged in.
9727 2002-10-18 Roland McGrath <roland@redhat.com>
9729 * configure.in: Remove bogus echo included in
9730 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
9731 * configure: Regenerated.
9733 2002-10-18 Jakub Jelinek <jakub@redhat.com>
9735 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
9736 (statfs_filesize_max): New function.
9737 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
9738 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
9739 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
9740 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
9741 statfs_filesize_max.
9742 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9743 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
9744 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
9746 2002-10-17 Roland McGrath <roland@redhat.com>
9748 * configure.in (MIG): Just AC_SUBST it here.
9749 * configure: Regenerated.
9750 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
9751 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
9752 * sysdeps/mach/configure: Regenerated.
9754 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
9755 and AC_PROVIDE([_AS_CR_PREPARE]).
9757 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
9758 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
9760 * elf/dl-support.c: Move _dl_tls_* variables to ...
9761 * sysdeps/generic/libc-tls.c: ... here.
9763 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
9764 allow IDX to be one past the current last slotinfo entry.
9765 (_dl_close): Pass IMAP->l_init_called for that parameter.
9767 2002-10-07 Andreas Schwab <schwab@suse.de>
9769 * aclocal.m4: Fix for autoconf 2.53.
9770 * configure.in: Likewise. Require autoconf 2.53.
9772 2002-10-08 Richard Henderson <rth@redhat.com>
9774 * soft-fp/op-4.h: Handle carry correctly in
9775 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
9776 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
9777 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
9779 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
9781 * configure.in: Compute completely-soft.
9782 * config.make.in: Make completely-soft available to sub-makes.
9783 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
9784 gcc-double-routines. Add sim-full.c. Add fenv_const and
9785 fe_nomask to libm-support.
9786 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
9787 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
9788 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
9789 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
9790 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
9791 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
9792 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
9793 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
9794 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
9795 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
9796 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
9797 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
9798 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
9799 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
9800 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
9801 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
9802 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
9803 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
9804 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
9805 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
9807 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
9808 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
9809 FP_HANDLE_EXCEPTIONS.
9810 Define FP_ROUNDMODE.
9811 Redefine FP_* macros to correspond to the FE_* bit positions.
9812 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
9813 Define externs for __sim_exceptions, __sim_disabled_exceptions,
9814 __sim_round_mode, __simulate_exceptions.
9815 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
9816 * sysdeps/powerpc/bits/fenv.h: ...to here.
9818 2002-10-06 Jakub Jelinek <jakub@redhat.com>
9820 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
9821 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
9822 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
9823 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
9826 2002-10-15 Jakub Jelinek <jakub@redhat.com>
9828 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
9829 __libc_res_nsend): New prototypes.
9830 * resolv/res_query.c (QUERYSIZE): Define.
9831 (__libc_res_nquery): Renamed from res_nquery. Added answerp
9832 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
9833 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
9834 res_nsend, pass answerp.
9835 (res_nquery): Changed into wrapper around __libc_res_nquery.
9836 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
9837 argument. Call __libc_res_nquerydomain and __libc_res_nquery
9838 instead of the non-__libc_ variants, pass them answerp.
9839 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
9840 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
9841 Added answerp argument. Call __libc_res_nquery instead of
9842 res_nquery, pass answerp.
9843 (res_nquerydomain): Changed into wrapper around
9844 __libc_res_nquerydomain.
9845 * resolv/res_send.c: Include sys/ioctl.h.
9846 (MAXPACKET): Define.
9847 (send_vc): Change arguments. Reallocate answer buffer if it is
9849 (send_dg): Likewise.
9850 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
9851 Reallocate answer buffer if it is too small and hooks are in use.
9852 Adjust calls to send_vc and send_dg.
9853 (res_nsend): Changed into wrapper around __libc_res_nsend.
9854 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
9855 just 1K answer buffer on the stack, use __libc_res_nsearch instead
9857 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
9858 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
9859 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
9860 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
9861 (gethostbyaddr): Similarly with __libc_res_nquery.
9862 * resolv/Versions (libresolv): Export __libc_res_nquery and
9863 __libc_res_nsearch at GLIBC_PRIVATE.
9865 2002-10-17 Roland McGrath <roland@redhat.com>
9867 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
9868 * configure: Regenerated.
9870 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
9871 before performing the reloc, not after.
9872 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9874 2002-10-17 Ulrich Drepper <drepper@redhat.com>
9876 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
9877 * locale/programs/linereader.c (lr_open): Likewise.
9878 * locale/programs/charmap-dir.c (charmap_open): Likewise.
9879 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9881 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
9883 * posix/bug-regex11.c: Add a test case for the bug reported by
9884 Paolo Bonzini <bonzini@gnu.org>.
9885 * posix/regexec.c (sift_states_bkref): Use correct destination of
9888 2002-10-17 Roland McGrath <roland@redhat.com>
9890 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
9891 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
9892 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
9893 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9894 Call it after performing TPOFF relocs.
9895 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9896 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9897 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
9899 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
9900 when closing a partially-initialized object.
9902 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
9903 instead of _dl_fatal_printf when we see PT_TLS.
9905 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
9906 instead of $(libof-$<).
9908 2002-10-16 Roland McGrath <roland@redhat.com>
9910 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
9911 instead of += to append, to be sure $(lib) gets expanded at defn time.
9912 (libof-$(cpp-src)): New variable, define this instead.
9913 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
9914 (lib): Don't use override.
9915 (CPPFLAGS-$(lib)): New variable, put -D's here.
9916 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
9917 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
9918 LIB found by $(libof-*) for basename, target, or source.
9919 * Makerules (CPPFLAGS-nonlib): New variable.
9920 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
9921 * locale/Makefile (lib): Likewise.
9922 * sunrpc/Makefile (lib): Likewise.
9924 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
9925 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
9926 * sysdeps/unix/sysv/linux/pathconf.h: New file.
9927 (statfs_link_max): New function, guts from fpathconf.c.
9928 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
9929 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9930 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
9931 to use the linux/pathconf.c code by #include rather than duplication.
9932 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
9934 2002-10-16 Jakub Jelinek <jakub@redhat.com>
9936 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9937 Use __libc_errno only for libc itself.
9939 2002-10-16 Andreas Jaeger <aj@suse.de>
9941 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
9943 2002-10-16 Ulrich Drepper <drepper@redhat.com>
9945 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9946 Use __libc_errno only for libc itself.
9948 2002-10-15 Roland McGrath <roland@redhat.com>
9949 Jakub Jelinek <jakub@redhat.com>
9951 * sysdeps/unix/sysv/linux/Makefile
9952 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
9953 sparc/Makefile to produce a bi-arch file as needed.
9954 That's now parameterized by the variable $(64bit-predefine).
9955 Use LC_ALL=C for `comm' commands in that rule.
9956 No longer conditional on [$(no_syscall_list_h)].
9957 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
9958 (64bit-predefine): New variable.
9959 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
9960 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
9961 * sysdeps/unix/sysv/linux/powerpc/Makefile
9962 (64bit-predefine): New variable.
9964 2002-10-15 Roland McGrath <roland@redhat.com>
9966 * sysdeps/unix/sysv/linux/Makefile
9967 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
9969 * login/utmp-private.h: Declare __libc_utmp_lock.
9970 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
9971 and call __libc_utmp_jump_table functions directly, instead of using
9974 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
9975 * sysdeps/unix/sysv/linux/configure: Regenerated.
9977 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
9978 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9979 Use int32_t for ll_time.
9980 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9981 Use int32_t instead of long int for ut_session.
9982 Use an anonymous struct with 32-bit fields for ut_tv.
9983 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
9984 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
9985 here as in utmp.h for `struct utmp'.
9986 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
9987 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
9988 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
9989 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
9990 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
9991 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
9993 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
9994 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
9995 All the following files were identical or equivalent to it.
9996 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
9997 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
9998 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
9999 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10000 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10001 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10002 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10003 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10004 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10005 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10007 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10008 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10009 Other than the previously incorrect sign of msg_iovlen, this is a
10010 no-op on 32-bit platforms. On 64-bit platforms it makes this header
10011 match their layouts as well, so the following are now identical to it.
10012 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10013 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10014 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10015 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10016 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10018 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10020 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10021 Define for 2.4+ kernels.
10023 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10024 are known to have the vfork syscall. Don't confuse the CPUs
10025 branch prediction unit by jumping to the return address.
10027 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10028 support for reiserfs and xfs.
10030 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10032 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10034 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10036 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10038 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10039 * include/errno.h (errno): Define to __libc_errno in libc.so.
10040 Add attribute_tls_model_ie.
10041 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10042 Add attribute_tls_model_ie.
10043 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10044 attribute_tls_model_ie.
10045 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10047 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10049 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10050 attribute_tls_model_ie.
10051 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10053 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10054 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10055 __libc_errno in USE___THREAD case.
10056 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10058 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10059 __attribute__((tls_model (""))).
10060 * configure: Rebuilt.
10061 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10063 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10065 * timezone/asia: Update from tzdata2002d.
10066 * timezone/australasia: Likewise.
10067 * timezone/iso3166.tab: Likewise.
10068 * timezone/southamerica: Likewise.
10069 * timezone/zone-tab: Likewise.
10071 2002-10-15 Roland McGrath <roland@redhat.com>
10073 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10074 Adjust TCB pointer before calling free, so we get the whole block.
10076 2002-10-14 Roland McGrath <roland@redhat.com>
10078 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
10079 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
10080 extern using attribute_hidden instead of static, avoids warning.
10082 2002-10-09 Jakub Jelinek <jakub@redhat.com>
10084 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
10085 * sysdeps/unix/sysv/linux/configure: Rebuilt.
10087 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10089 * po/sv.po: Update from translation team.
10091 2002-10-12 H.J. Lu <hjl@gnu.org>
10093 * sunrpc/thrsvc.c (PROCQUIT): New.
10094 (struct rpc_arg): New.
10095 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
10096 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
10097 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
10098 (main): Modified for struct rpc_arg *.
10100 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10102 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
10104 2002-10-14 Jakub Jelinek <jakub@redhat.com>
10106 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
10107 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
10108 in ld.so even if __thread is supported.
10110 2002-10-13 Jakub Jelinek <jakub@redhat.com>
10112 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
10113 Add hack to prevent the compiler from clobbering the signal context.
10114 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
10116 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
10119 2002-10-14 Andreas Jaeger <aj@suse.de>
10121 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
10122 Guido Guenther <agx@sigxcpu.org>.
10124 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10126 * po/sk.po: Update from translation team.
10128 2002-09-26 Roland McGrath <roland@redhat.com>
10130 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
10131 dynamic string tag.
10132 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
10133 DL_DST_LIB based on $(slibdir).
10135 2002-10-13 Roland McGrath <roland@frob.com>
10137 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
10139 * sysdeps/mach/hurd/getresuid.c: New file.
10140 * sysdeps/mach/hurd/getresgid.c: New file.
10141 * sysdeps/mach/hurd/setresuid.c: New file.
10142 * sysdeps/mach/hurd/setresgid.c: New file.
10144 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
10145 setresgid): Declare them.
10146 * NEWS: Mention it.
10148 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
10149 add libc_hidden_proto.
10150 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
10151 getresuid, getresgid, setresuid, setresgid here.
10152 * Versions.def (libc): Define GLIBC_2.3.2 set.
10153 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
10154 Add libc_hidden_def.
10155 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
10156 * sysdeps/generic/setresgid.c: New file.
10157 * sysdeps/generic/setresuid.c: New file.
10158 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10159 (sysdep_routines): Don't add getresuid and getresgid here.
10160 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
10161 (sysdep_routines): Don't add setresuid and setresgid here.
10162 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10163 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10164 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10165 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10166 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10167 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10168 * posix/Makefile (routines): Add them all here instead.
10169 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
10170 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
10171 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
10172 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
10173 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
10174 [! __NR_setresuid]: Include generic file.
10175 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
10176 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
10177 [! __NR_setresuid]: Include generic file.
10178 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
10179 Caller is - now, not EXTRA.
10180 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
10181 (setresuid, setresgid, getresuid, getresgid): Likewise.
10182 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
10183 Add these calls here.
10184 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
10185 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
10186 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10187 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10188 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
10190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
10191 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
10192 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10194 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10195 (sysdep_routines): Add setfsuid and setfsgid here.
10196 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
10197 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
10198 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10199 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10200 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10201 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10202 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10203 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10205 * hurd/errno.c: Renamed to ...
10206 * hurd/errno-loc.c: ... this.
10207 * hurd/Makefile (routines): errno -> errno-loc
10209 2002-10-13 Ulrich Drepper <drepper@redhat.com>
10211 * po/de.po: Update from translation team.
10213 * MakeTAGS: Add -E flag to xgettext runs.
10215 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10217 * po/fr.po: Update from translation team.
10219 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
10220 Optimize a bit for use in glibc.
10222 2002-10-12 Roland McGrath <roland@redhat.com>
10224 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
10225 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
10227 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10229 * po/sv.po: Update from translation team.
10231 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
10233 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
10235 (regfree): Likewise.
10236 (create_initial_state): Likewise.
10237 (analyze): Remove the substitutions which became useless.
10238 (calc_first): Likewise.
10239 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
10240 epsilon destination.
10241 (duplicate_node_closure): New function.
10242 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
10243 (calc_inveclosure): Likewise.
10244 (calc_eclosure): Likewise.
10245 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
10246 direct invocation of duplicate_node.
10247 (parse): Don't use comma operator in the return to avoid compiler
10249 (parse_reg_exp): Likewise.
10250 (parse_branch): Likewise.
10251 (parse_expression): Likewise.
10252 (parse_sub_exp): Likewise.
10253 (parse_dup_op): Likewise.
10254 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
10255 which became useless.
10256 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
10257 (create_cd_newstate): Likewise.
10258 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
10259 (re_token_t): Likewise.
10260 (re_dfa_t): Likewise.
10261 (re_node_set_remove): New macro.
10262 * posix/regexec.c (check_matching): Remove the handling
10264 (check_halt_node_context): Likewise.
10265 (proceed_next_node): Likewise.
10266 (pop_fail_stack): Fix the memory leak.
10267 (set_regs): Likewise.
10268 (free_fail_stack_return): New function.
10269 (sift_states_backward): Fix the memory leak. Remove the handling
10271 (update_cur_sifted_state): Append some if clause to avoid redundant
10273 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
10275 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
10276 (check_subexp_limits): Likewise.
10277 (search_subexp): Likewise.
10278 (sift_states_bkref): Likewise.
10279 (transit_state_mb): Likewise.
10280 (transit_state_bkref_loop): Likewise.
10281 (transit_state_bkref_loop): Likewise.
10282 (group_nodes_into_DFAstates): Likewise.
10283 (check_node_accept): Likewise.
10284 (sift_ctx_init): Add initializing.
10286 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10288 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
10291 2002-10-11 Ulrich Drepper <drepper@redhat.com>
10293 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
10294 duplicated variable c.
10296 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
10299 * sysdeps/unix/sysv/linux/i386/sysdep.h
10300 (INTERNAL_SYSCALL_ERROR_P): New define.
10301 (INTERNAL_SYSCALL_ERRNO): Likewise.
10303 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
10304 Add hack to prevent the compiler from clobbering the signal context.
10306 2002-10-11 Roland McGrath <roland@redhat.com>
10308 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10311 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
10312 * sysdeps/sh/dl-lookupcfg.h: File removed.
10313 * sysdeps/i386/dl-lookupcfg.h: File removed.
10315 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
10316 missing labels and ; from last change.
10318 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
10319 number literals, so they are doubles instead of ints.
10321 2002-10-09 Roland McGrath <roland@redhat.com>
10323 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
10324 changed from [USE_TLS && HAVE___THREAD].
10326 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
10327 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
10328 * sysdeps/x86_64/dl-machine.h
10329 (elf_machine_type_class, elf_machine_rela): Likewise.
10330 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
10333 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
10334 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
10335 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
10337 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
10338 instead of ___tls_get_addr.
10339 (___tls_get_addr_internal): Add attribute_hidden to decl.
10341 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
10342 _dl_error_catch_tsd.
10343 * elf/rtld.c (startup_error_tsd): New function.
10344 (dl_main): Point _dl_error_catch_tsd at that.
10345 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
10346 use new function pointer instead.
10347 * elf/dl-tsd.c: New file.
10348 * elf/Makefile (routines): Add it.
10350 2002-10-07 Roland McGrath <roland@redhat.com>
10352 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
10353 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
10354 take _dl_load_lock around calling __writev.
10356 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
10357 (INLINE_SYSCALL): Use that.
10359 * sysdeps/generic/dl-sysdep.h: New file.
10360 * sysdeps/mach/hurd/dl-sysdep.h: New file.
10361 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
10362 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
10363 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
10364 access it directly.
10365 * elf/dl-minimal.c (__errno_location): Removed.
10366 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10367 Use GOTOFF access for errno.
10368 * sysdeps/unix/sysv/linux/i386/sysdep.h
10369 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10371 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10372 Use PC-relative access for errno.
10373 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10374 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10376 * include/tls.h: New file.
10377 (USE___THREAD): New macro.
10378 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
10379 libc or libpthread.
10380 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
10381 changed from [USE_TLS && HAVE___THREAD].
10382 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10383 * sysdeps/unix/i386/sysdep.S: Likewise.
10384 * sysdeps/unix/x86_64/sysdep.S: Likewise.
10385 * include/errno.h: Likewise.
10386 * include/netdb.h: Likewise.
10387 * include/resolv.h: Likewise.
10389 * sysdeps/generic/errno.c: New file.
10390 * csu/Makefile (aux): New variable, list errno.
10391 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
10392 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
10393 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
10394 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10395 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10396 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
10397 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
10398 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
10399 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10400 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
10401 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
10402 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
10403 * sysdeps/unix/alpha/sysdep.S: Likewise.
10404 * sysdeps/generic/start.c: Likewise.
10405 * sysdeps/unix/start.c: Likewise.
10406 * sysdeps/unix/arm/start.c: Likewise.
10407 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
10408 * sysdeps/unix/sparc/start.c: Likewise.
10409 * sysdeps/unix/sysv/irix4/start.c: Likewise.
10410 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
10412 * manual/search.texi (Tree Search Function, Hash Search Function):
10413 Mention search.h clearly.
10415 2002-10-05 Roland McGrath <roland@redhat.com>
10417 * elf/dl-fxstat64.c: File removed.
10418 * elf/dl-xstat64.c: File removed.
10419 * elf/Makefile (rtld-routines): Remove them.
10420 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
10421 Instead, use strong_alias instead of versioned_symbol in the
10422 !SHLIB_COMPAT case.
10423 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
10424 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
10426 * include/shlib-compat.h
10427 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
10428 [! NOT_IN_libc] (IS_IN_libc): Define it.
10429 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
10430 * elf/Makefile (CPPFLAGS-.os): Likewise.
10432 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
10433 Return the status instead of calling exit.
10435 * Makeconfig (CFLAGS): Prepend -std=gnu99.
10436 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
10437 Remove superfluous rm command, whose @ plus make bugs hid
10438 all these commands from the make output.
10440 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
10441 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
10442 Use that file's contents instead of literal echo's for the prologue.
10443 * include/features.h: Include <gnu/stubs.h> unconditionally.
10444 * include/gnu/stubs.h: New file.
10446 2002-09-30 Roland McGrath <roland@redhat.com>
10448 * elf/rtld-Rules: New file.
10449 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
10450 $(objpfx)rtld-libc.a): New targets.
10451 (generated): Add them.
10452 (reloc-link): Remove -o $@ from the variable.
10453 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
10454 (distribute): Add rtld-Rules.
10455 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
10456 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
10457 (common-mostlyclean, common-clean): Clean up rtld-* files.
10458 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
10460 2003-05-20 Jakub Jelinek <jakub@redhat.com>
10462 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
10463 If temp != NULL, copy dynamic entries which need relocation to temp
10464 array before relocating.
10465 (DL_RO_DYN_TEMP_CNT): Define.
10466 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
10467 * elf/rtld.c (_dl_start): Likewise.
10468 (dl_main): Likewise. Add dyn_temp static variable.
10470 2002-10-11 Roland McGrath <roland@redhat.com>
10472 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
10473 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
10475 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
10476 proper set of no-op insn prefixes.
10478 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
10480 2002-10-11 Ulrich Drepper <drepper@redhat.com>
10482 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
10483 __pthread_kill_other_threads_np.
10485 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
10487 2002-10-08 Roland McGrath <roland@redhat.com>
10489 * locale/newlocale.c (__newlocale): If setting all categories to "C",
10490 just return &_nl_C_locobj instead of copying it.
10491 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
10492 * locale/duplocale.c (__duplocale): Likewise.
10494 2002-10-07 Roland McGrath <roland@frob.com>
10496 * config.h.in (HAVE_I386_SET_GDT): New #undef.
10497 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
10498 * sysdeps/mach/configure: Regenerated.
10500 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
10503 Add all necessary register outputs for syscall-clobbered registers.
10505 2002-10-02 David Mosberger <davidm@hpl.hp.com>
10507 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
10508 Itanium 2 (and Itanium).
10509 Fix unwind directives and make it fit in 80 columns.
10510 * sysdeps/ia64/memset.S: Likewise.
10511 * sysdeps/ia64/memcpy.S: Likewise.
10512 Move jump table to .rodata section.
10514 2002-10-03 Roland McGrath <roland@frob.com>
10516 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
10519 2002-10-10 Andreas Jaeger <aj@suse.de>
10521 * sysdeps/x86_64/_mcount.S: Restore correct registers.
10523 2002-10-10 Ulrich Drepper <drepper@redhat.com>
10525 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
10527 2002-10-09 Ulrich Drepper <drepper@redhat.com>
10529 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
10530 _dl_allocate_tls_init. Add rtld_hidden_proto.
10531 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
10533 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
10535 * version.h (VERSION): Bump to 2.3.1.
10537 * Make-dist: Add back one of the tar invocations removed before.
10539 * stdlib/Makefile (distribute): Add allocalim.h.
10541 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
10542 (__libc_tsd_address): Use correct variable name.
10543 Patch by Stefan Jones <stefan.jones@multigig.com>.
10545 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
10546 Reported by edwardsg@sgi.com [PR libc/4678].
10548 * Versions.def (libc): Add GLIBC_2.3.1.
10549 (libpthread): Add GLIBC_2.3.1.
10551 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
10552 and __sigtimedwait.
10553 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
10554 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
10556 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
10557 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
10559 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
10560 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
10561 and make old name an alias.
10562 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
10563 and make old name an alias.
10564 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
10567 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
10568 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
10570 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
10572 * sysdeps/posix/readv.c: Likewise
10573 * sysdeps/unix/sysv/aix/readv.c: Likewise.
10574 * sysdeps/unix/sysv/linux/readv.c: Likewise.
10575 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
10577 * sysdeps/posix/writev.c: Likewise
10578 * sysdeps/unix/sysv/aix/writev.c: Likewise.
10579 * sysdeps/unix/sysv/linux/writev.c: Likewise.
10581 * include/sys/wait.h: Declare __waitid.
10582 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
10583 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
10585 * sysdeps/posix/waitid.c: Likewise.
10586 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
10588 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
10590 2002-10-07 Jakub Jelinek <jakub@redhat.com>
10592 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
10594 (__MAX_ALLOCA_CUTOFF): Define.
10595 Include allocalim.h.
10596 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
10597 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
10598 host_buffer depending on __libc_use_alloca.
10599 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
10600 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
10601 net_buffer depending on __libc_use_alloca.
10602 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
10603 buf depending on __libc_use_alloca.
10604 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
10605 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
10606 instead of hardcoded constants.
10607 Pass proper size argument to alloca and compute end for wide char
10609 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
10610 instead of hardcoded constants.
10611 * string/strcoll.c (strcoll): Likewise.
10612 * string/strxfrm.c (strxfrm): Likewise.
10613 * sysdeps/posix/readv.c (__readv): Likewise.
10614 * sysdeps/posix/writev.c (__writev): Likewise.
10615 * sysdeps/generic/allocalim.h: New file.
10617 2002-10-08 Roland McGrath <roland@redhat.com>
10619 * configure.in (aux_missing warning): Change "too old" to
10620 "incompatible versions", since for autoconf it's "too new" right now.
10621 * configure: Regenerated.
10623 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
10624 one found doesn't work on our configure.in.
10625 * configure: Regenerated.
10626 * config.make.in (AUTOCONF): New substituted variable.
10627 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
10628 (autoconf-it): ... here, use that instead of defining conditionally.
10629 Use $(AUTOCONF) instead of literal autoconf.
10630 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
10631 with this condition.
10632 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
10634 2002-10-08 Ulrich Drepper <drepper@redhat.com>
10636 * Make-dist (dist): Cleanup a bit. We are not interested in the
10637 14 char filename limit anymore. Remove intermediate files and
10640 2002-10-05 Ulrich Drepper <drepper@redhat.com>
10642 * po/sk.po: Update from translation team.
10643 * po/tr.po: Likewise.
10644 * po/gl.po: Likewise.
10646 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10648 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
10650 2002-10-03 Ulrich Drepper <drepper@redhat.com>
10652 * version.h (RELEASE): Change to stable.
10654 2002-10-03 Jakub Jelinek <jakub@redhat.com>
10656 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
10657 __syscall_exit_group): New prototypes.
10659 2002-10-03 Ulrich Drepper <drepper@redhat.com>
10661 * glibc 2.3 released.
10664 See ChangeLog.13 for earlier changes.