1 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3 * io/fcntl.h (posix_fallocate): Change type of third parameter to
5 (posix_fallocate64): Change type of third parameter to off64_t.
6 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
7 * sysdeps/posix/posix_fallocate.c: Likewise.
8 * sysdeps/generic/posix_fallocate64.c: Likewise.
9 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
10 code for 32-bit platforms.
11 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
13 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
14 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
15 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
17 2003-08-19 Ulrich Drepper <drepper@redhat.com>
19 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
20 the type, not to name.
22 * stdio-common/test-vfprintf.c (main): Don't write temporary file
23 into source directory.
25 * malloc/malloc.c (_int_free): Add cheap test for some invalid
28 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
31 2003-08-18 Ulrich Drepper <drepper@redhat.com>
33 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
36 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
38 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
39 (elf_machine_lazy_rel): Likewise.
41 2003-08-18 Art Haas <ahaas@airmail.net>
43 * malloc/malloc.h: Remove unneeded ';' where closing the C++
46 2003-08-18 Ulrich Drepper <drepper@redhat.com>
48 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
49 loading big binaries where @gprel(sym) cannot be handled in 'add'
50 but instead has to be used with 'movl'.
52 2003-08-17 Juergen Kreileder <jk@blackdown.de>
53 Andreas Jaeger <aj@suse.de>
55 * sysdeps/x86_64/bits/byteswap.h: New file.
57 2003-08-17 Andreas Jaeger <aj@suse.de>
59 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
61 2003-08-16 Jakub Jelinek <jakub@redhat.com>
63 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
64 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
65 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
66 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
67 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
68 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
69 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
70 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
71 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
73 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
74 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
75 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
76 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
77 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
79 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
80 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
81 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
83 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
84 posix_fadvise64_64): Remove.
85 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
87 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
89 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
90 (posix_fadvise64): Likewise.
91 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
92 (posix_fadvise64): Likewise.
93 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
94 (posix_fadvise64): Likewise.
95 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
97 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
98 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
99 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
100 (__posix_fadvise64_l32): New function.
101 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
103 posix_fadvise64@@GLIBC_2.3.3.
104 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
105 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
106 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
108 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
110 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
111 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
113 2003-08-15 Jakub Jelinek <jakub@redhat.com>
115 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
116 (elf_machine_matches_host): Remove weak extern stuff.
117 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
118 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
119 stuff. Use GL(dl_hwcap) unconditionally.
121 2003-08-16 Alan Modra <amodra@bigpond.net.au>
123 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
124 __libc_start_main branch.
126 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
127 Andreas Jaeger <aj@suse.de>
129 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
130 instead of setting errno.
131 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
133 2003-08-16 Andreas Jaeger <aj@suse.de>
135 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
136 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
138 2003-08-15 Ulrich Drepper <drepper@redhat.com>
140 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
142 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
143 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
144 description indicating the error value is returned, not -1.
145 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
146 __ASSUME_FADVISE64_64_SYSCALL.
147 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
148 posix_madvise in one file. Have posix_madvise defined with error
150 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
152 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
153 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
154 PSEUDO_END_ERRVAL, and ret_ERRVAL.
155 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
156 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
157 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
160 * posix/Makefile (routines): Add posix_madvise.
161 * sysdeps/generic/madvise.c: Don't define posix_madvise.
162 * sysdeps/generic/posix_madvise.c: New file.
163 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
164 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
165 Add posix_fadvise64_64.
167 2003-08-15 Jakub Jelinek <jakub@redhat.com>
169 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
170 3.0, not for !gcc or gcc < 3.0.
172 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
174 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
175 Address passed to test_in_mod1 and test_in_mod2 without casting.
176 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
177 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
178 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
179 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
181 2003-08-15 Jakub Jelinek <jakub@redhat.com>
183 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
184 Change quotes before using [].
186 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
188 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
190 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
191 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
192 argument. Select one of 64 locks from address bits.
193 (atomic_compare_and_exchange_val_acq,
194 atomic_compare_and_exchange_bool_acq): Pass memory address to
195 __sparc32_atomic_do_{,un}lock.
197 2003-08-14 Ulrich Drepper <drepper@redhat.com>
199 * assert/assert.h (assert): Use !! in front of expression to allow
202 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
203 Changed conversion of JIS X 0201 from using a table to calculating.
204 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
205 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
207 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
208 * iconvdata/CP932.irreversible: New file.
209 * iconvdata/EUC-JP-MS.irreversible: New file.
210 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
212 2003-08-13 Ulrich Drepper <drepper@redhat.com>
214 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
216 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
217 text processing tools.
219 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
220 element unless BROKEN_THREAD_SIGNALS is defined.
221 (struct requestlist): Likewise.
222 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
223 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
224 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
225 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
226 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
227 Pass current PID to __aio_sigqueue.
228 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
229 call. Don't initialize caller_pid field of waitlist element.
231 2003-08-12 Jakub Jelinek <jakub@redhat.com>
233 * libio/libioP.h (_IO_vtable_offset): Define.
234 * libio/freopen.c (freopen): Use it.
235 * libio/ioputs.c (_IO_puts): Likewise.
236 * libio/freopen64.c (freopen64): Likewise.
237 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
239 * libio/iofclose.c (_IO_new_fclose): Likewise.
240 * libio/iofputs.c (_IO_fputs): Likewise.
241 * libio/ioftell.c (_IO_ftell): Likewise.
242 * libio/iofwrite.c (_IO_fwrite): Likewise.
243 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
244 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
245 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
246 * stdio-common/vfscanf.c (ORIENT): Likewise.
248 2003-08-11 Ulrich Drepper <drepper@redhat.com>
250 * assert/assert.h: Use __builtin_expect in assert and
251 assert_perror definitions if possible.
253 2003-08-07 Jakub Jelinek <jakub@redhat.com>
255 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
256 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
257 * elf/rtld.c (rtld_lock_default_lock_recursive,
258 rtld_lock_default_unlock_recursive): New functions.
259 (dl_main): Initialize _dl_rtld_lock_recursive and
260 _dl_rtld_unlock_recursive.
262 2003-08-05 Jakub Jelinek <jakub@redhat.com>
264 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
265 config_file directories instead of prepending.
267 2003-08-02 Ulrich Drepper <drepper@redhat.com>
269 * sysdeps/unix/sysv/linux/kernel-features.h: Define
270 __ASSUME_CLONE_STOPPED.
272 2003-08-01 Ulrich Drepper <drepper@redhat.com>
274 * sysdeps/generic/bits/libc-lock.h
275 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
277 2003-08-01 Roland McGrath <roland@frob.com>
279 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
281 2003-07-31 Jakub Jelinek <jakub@redhat.com>
283 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
284 instead of __SWORD_TYPE.
285 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
286 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
287 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
289 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
291 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
293 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
295 * dlfcn/dlerror.c (once): New.
296 (dlerror): Call __libc_once.
297 (_dlerror_run): Remove once.
299 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
300 Sync with 2.5.7 and 2.5.73 kernel changes.
302 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
303 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
305 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
306 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
307 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
308 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
309 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
311 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
313 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
314 %d format and cast expected value to int.
315 * sysdeps/generic/libc-start.c (STATIC): Add
316 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
317 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
318 to ieee_float_shape_type.
319 (__sqrt): Avoid type punning.
320 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
321 to ieee_float_shape_type.
322 (__sqrtf): Avoid type punning.
323 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
324 refsym if in dl-conflict.c.
325 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
326 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
327 (__new_semctl): Shut up warning.
328 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
329 (__new_semctl): Shut up warning.
330 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
331 Change old into union of __old_shmid_ds and __old_shminfo structs.
333 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
335 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
337 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
338 * sysdeps/posix/utimes.c (__utimes): Likewise.
340 2003-07-30 Jakub Jelinek <jakub@redhat.com>
342 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
343 call dl_signal_error directly. If already relocated, call
344 GL(dl_init_static_tls) directly, otherwise queue it for later.
345 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
346 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
347 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
348 for all static TLS initializations delayed in _dl_allocate_static_tls.
349 * elf/dl-support.c (_dl_init_static_tls): New variable.
350 * include/link.h (struct link_map): Add l_need_tls_init.
351 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
352 (_dl_nothread_init_static_tls): New prototype.
353 (_dl_allocate_static_tls): Adjust prototype.
355 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
357 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
359 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
360 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
361 reloc_addr is aligned.
362 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
363 elf_machine_rela_relative): Adjust.
364 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
365 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
366 * sysdeps/cris/dl-machine.h (elf_machine_rela,
367 elf_machine_rela_relative): Adjust.
368 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
369 elf_machine_rela_relative): Adjust.
370 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
371 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
372 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
373 elf_machine_rela_relative): Adjust.
374 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
375 elf_machine_rela_relative): Adjust.
376 * sysdeps/mips/dl-machine.h (elf_machine_rela,
377 elf_machine_rela_relative): Adjust.
378 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
379 elf_machine_rela_relative): Adjust.
380 * sysdeps/powerpc/powerpc64/dl-machine.h
381 (elf_machine_rela_relative, elf_machine_rela): Adjust.
382 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
383 elf_machine_rela_relative): Adjust.
384 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
385 elf_machine_rela_relative): Adjust.
386 * sysdeps/sh/dl-machine.h (elf_machine_rela,
387 elf_machine_rela_relative): Adjust.
388 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
389 elf_machine_rela_relative): Adjust.
390 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
391 elf_machine_rela_relative): Adjust.
392 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
393 elf_machine_rela_relative): Adjust.
395 2003-07-29 Ulrich Drepper <drepper@redhat.com>
397 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
398 alignment of TCB used before the last change so that it matches
399 ld's output for IE code.
401 2003-07-29 Jakub Jelinek <jakub@redhat.com>
403 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
404 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
405 break strict-aliasing rules" warnings.
407 2003-07-29 Roland McGrath <roland@redhat.com>
409 * elf/Makefile: Revert accidental changes in last commit.
410 * elf/dl-support.c: Likewise.
412 * rt/tst-timer2.c: New file.
413 * rt/Makefile (tests): Add it.
415 2003-07-25 Jakub Jelinek <jakub@redhat.com>
417 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
419 2003-07-29 Roland McGrath <roland@redhat.com>
421 * elf/Makefile (tests) [$(build-shared) = yes]:
422 Depend on $(test-modules).
423 * dlfcn/Makefile: Likewise.
425 2003-07-28 Roland McGrath <roland@redhat.com>
427 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
428 Use that instead of `typedef' when using __*_TYPE macros in rhs.
430 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
431 * elf/tst-tlsmod14a.c: Likewise.
433 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
434 before <linux/sysctl.h>.
436 2003-07-27 Ulrich Drepper <drepper@redhat.com>
438 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
439 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
440 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
441 * sysdeps/unix/syscalls.list: umask syscall never fails.
443 2003-07-27 Andreas Jaeger <aj@suse.de>
445 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
447 2003-07-25 Jakub Jelinek <jakub@redhat.com>
449 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
450 Include bits/a.out.h.
451 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
453 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
454 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
455 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
456 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
457 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
458 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
459 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
460 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
462 2003-07-24 Jakub Jelinek <jakub@redhat.com>
464 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
465 if aiocbp != NULL and has already completed. Return -1/EINVAL if
466 aiocbp->aio_fildes does not match fildes.
468 2003-07-24 Ulrich Drepper <drepper@redhat.com>
470 * timezone/zic.c (rpytime): Replace cheap overflow check with a
473 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
474 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
475 Fix calculation of offsets to take misalignment of first byte in
477 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
478 l_tls_firstbyte_offset field.
479 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
480 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
481 Take l_tls_firstbyte_offset information into account.
482 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
483 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
484 * elf/Makefile: Add rules to build and run tst-tls14.
485 * elf/tst-tls14.c: New file.
486 * elf/tst-tlsmod14a.c: New file.
487 * elf/tst-tlsmod14b.c: New file.
489 2003-07-23 Jakub Jelinek <jakub@redhat.com>
491 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
492 (lio_listio): Use it.
493 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
494 after few defines to avoid duplication.
496 2003-07-22 Jakub Jelinek <jakub@redhat.com>
498 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
499 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
501 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
503 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
504 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
505 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
506 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
507 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
508 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
509 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
511 * sysdeps/generic/unwind.inc: Removed.
513 * include/resolv.h (__resp): Declare. Define to __libc_resp
515 (_res): If USE___THREAD, define to (*__resp).
516 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
517 even if USE___THREAD.
518 (__resp): New __thread variable.
519 (__libc_resp): New alias.
520 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
521 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
522 * sysdeps/generic/res-state.c (__res_state): Return __resp
525 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
527 * elf/dl-support.c (_dl_hwcap): New variable.
528 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
530 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
532 (__feclearexcept): Clear MXCSR if needed.
533 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
535 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
536 that newer hardware needs more than these macros.
538 * sysdeps/i386/setfpucw.c: New file.
540 2003-07-22 Jakub Jelinek <jakub@redhat.com>
542 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
543 * elf/ldconfig.c: Include dl-procinfo.c.
544 (PROCINFO_CLASS): Define.
545 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
546 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
547 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
548 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
549 Define if not yet defined. Use it instead of EXTERN. Undefine
550 at the end of the file.
551 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
553 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
554 (PROCINFO_CLASS): Likewise.
555 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
556 (PROCINFO_CLASS): Likewise.
558 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
560 * elf/ldconfig.c (main): Issue a fatal error if relative path
561 is used to build cache.
563 2003-07-22 Ulrich Drepper <drepper@redhat.com>
565 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
567 2003-07-21 Art Haas <ahaas@airmail.net>
569 * manual/charset.texi (Converting a Character): Fix example code so a
570 valid pointer is returned.
572 2003-07-22 Andreas Jaeger <aj@suse.de>
574 * elf/readlib.c (process_file): Check that file is a shared
577 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
578 will not optimize it away.
579 (__DTOR_END__): Likewise.
580 (__CTOR_END__): Likewise.
582 * include/libc-symbols.h (_elf_set_element): Use attribute used so
583 that gcc will not optimize it away.
584 (link_warning): Likewise.
586 2003-07-22 Ulrich Drepper <drepper@redhat.com>
588 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
589 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
590 * wcsmbs/tst-wcpncpy.c: New file.
592 2003-07-21 Ulrich Drepper <drepper@redhat.com>
594 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
596 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
599 * Makerules (build-module-helper): Add -z defs unless explicitly said
601 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
602 which has undefined symbols.
603 * elf/Makefile: Likewise.
605 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
606 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
607 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
608 * sysdeps/i386/fpu/fesetround.c: Likewise.
609 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
611 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
613 * elf/ldconfig.c (search_dir): Treat symlink as regular file
614 if it won't point to itself.
616 2003-07-20 Ulrich Drepper <drepper@redhat.com>
618 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
620 2003-07-20 Andreas Jaeger <aj@suse.de>
622 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
623 STANDARD_TO_LOOP_ERR_HANDLER.
624 * iconvdata/euc-jp-ms.c (BODY): Likewise.
626 2003-07-19 Ulrich Drepper <drepper@redhat.com>
628 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
630 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
632 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
633 Andreas Jaeger <aj@suse.de>
635 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
636 256K, remove unneeded declaration of __getpagesize.
638 2003-07-16 Andreas Schwab <schwab@suse.de>
640 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
642 2003-07-15 Ulrich Drepper <drepper@redhat.com>
644 * io/test-utime.c (main): Make test yet more robust.
646 2003-07-14 Ulrich Drepper <drepper@redhat.com>
648 More cancellation handling fixups.
649 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
650 * sysdeps/generic/not-cancel.h: Likewise.
651 * catgets/open_catalog.c: Use not-cancelable syscalls.
652 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
653 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
654 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
655 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
656 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
657 * libio/fileops.c: Use not-cancelable syscalls for fclose.
658 * libio/iopopen.c: Use no-cancelable syscalls.
659 * libio/stdio.h: Mark popen and pclose with __THROW again.
660 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
661 * misc/syslog.c: Fix locking and cancellation cleanup handling.
662 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
663 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
664 CFLAGS-tempname.c): Add -fexceptions.
665 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
666 * string/string.h: Mark strerror and strerror_r with _THROW again.
667 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
668 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
669 #ifs since we now need all the code compiled.
670 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
671 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
672 * sysdeps/unix/opendir.c: Likewise.
674 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
675 Add rule for EUC-JP-MS dependency.
676 * iconvdata/cp932.c: New file.
677 * iconvdata/eucjp-ms.c: New file.
678 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
679 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
681 2003-07-15 Jakub Jelinek <jakub@redhat.com>
683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
686 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
688 * sysdeps/unix/sysv/linux/kernel-features.h
689 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
692 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
694 2003-07-14 Ulrich Drepper <drepper@redhat.com>
696 * sysdeps/unix/sysv/linux/kernel-features.h: Define
697 __ASSUME_TGKILL for Alpha appropriately.
699 2003-07-12 Ulrich Drepper <drepper@redhat.com>
701 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
702 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
704 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
707 * sysdeps/unix/sysv/linux/kernel-features.h: Define
708 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
710 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
711 second parameter == NULL.
712 * sysdeps/unix/sysv/linux/utimes.c: New file.
714 2003-07-12 Jakub Jelinek <jakub@redhat.com>
716 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
717 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
720 2003-07-12 Ulrich Drepper <drepper@redhat.com>
722 * time/sys/time.h: Namespace cleanup.
723 * sysdeps/unix/sysv/linux/kernel-features.h: Define
724 __ASSUME_UTIMES for the architectures which always had the syscall.
725 * sysdeps/unix/sysv/linux/futimes.c: New file.
727 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
729 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
730 register across CENABLE and CDISABLE.
732 2003-07-11 Jakub Jelinek <jakub@redhat.com>
734 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
735 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
736 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
737 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
738 int before assigning to max to avoid warnings.
740 2003-07-11 Jakub Jelinek <jakub@redhat.com>
742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
744 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
745 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
747 2003-07-10 Jakub Jelinek <jakub@redhat.com>
749 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
750 .data.rel.ro.local to "aw".
752 2003-07-10 Ulrich Drepper <drepper@redhat.com>
754 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
755 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
756 (PIC-ccflag): Define.
758 2003-07-04 Jakub Jelinek <jakub@redhat.com>
760 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
762 * sysdeps/s390/s390-64/elf/start.S: Likewise.
764 2003-07-07 Jakub Jelinek <jakub@redhat.com>
766 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
767 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
769 2003-07-07 Ulrich Drepper <drepper@redhat.com>
771 * sysdeps/unix/sysv/linux/kernel-features.h: Version
772 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
774 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
775 compilation with HAVE_AUX_SECURE defined.
777 2003-07-05 Richard Henderson <rth@redhat.com>
779 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
781 2003-07-03 Ulrich Drepper <drepper@redhat.com>
783 * configure.in: Also check for .cfi_rel_offset pseudo-op.
785 2003-07-03 Jakub Jelinek <jakub@redhat.com>
787 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
790 2003-07-03 Ulrich Drepper <drepper@redhat.com>
792 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
794 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
796 2003-07-02 Jakub Jelinek <jakub@redhat.com>
798 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
799 decl and use with #ifdef NEED_DL_SYSINFO.
801 2003-07-02 Ulrich Drepper <drepper@redhat.com>
803 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
804 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
805 * sysdeps/unix/sysv/linux/kernel-features.h: Define
806 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
807 vsyscall DSO was added.
809 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
810 depending on selected standard.
811 (NGROUPS_MAX): Define to 8 if not defined.
813 2003-07-02 Andreas Jaeger <aj@suse.de>
815 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
817 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
819 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
820 * malloc/thread-m.h: Include <atomic.h>.
821 (atomic_full_barrier): Provide default.
822 (atomic_read_barrier): Likewise.
823 (atomic_write_barrier): Likewise.
824 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
826 2003-06-30 Ulrich Drepper <drepper@redhat.com>
828 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
830 2003-06-30 Richard Henderson <rth@redhat.com>
832 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
833 Invert the sense of the return value.
834 (__arch_exchange_16_int): Fix paste-o.
835 (__arch_exchange_{32,64}_int): Fix think-o.
837 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
839 2003-06-30 Richard Henderson <rth@redhat.com>
841 * include/sys/resource.h (__getrusage): Mark hidden.
842 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
843 * include/sys/wait.h (__wait4): Likewise.
845 2003-06-17 Guido Guenther <agx@sigxcpu.org>
847 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
849 (xstat_conv): Rename to __xstat_conv and remove static inline.
850 (xstat64_conv): Likewise.
852 2003-06-29 Ulrich Drepper <drepper@redhat.com>
854 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
855 values which cannot be handled in one nanosleep call.
857 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
859 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
860 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
862 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
864 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
866 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
869 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
871 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
872 Conditionalize function definitions that use struct kernel_stat.
873 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
874 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
875 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
877 2003-06-28 Ulrich Drepper <drepper@redhat.com>
879 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
882 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
884 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
885 (getgrent_next_file): Don't store group name to early in blacklist.
887 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
888 and use memcpy instead of strcpy.
890 2003-06-28 Ulrich Drepper <drepper@redhat.com>
892 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
894 * nis/nss_compat/compat-initgroups.c: Likewise.
895 * nis/nss_compat/compat-pwd.c: Likewise.
896 * nis/nss_compat/compat-spwd.c: Likewise.
898 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
900 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
901 functions, dlopen corresponding NSS module instead.
903 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
905 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
906 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
907 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
908 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
910 2003-06-27 Ulrich Drepper <drepper@redhat.com>
912 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
914 2003-06-26 Roland McGrath <roland@frob.com>
916 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
917 * sysdeps/mach/configure: Regenerated.
918 * sysdeps/mach/hurd/times.c (times_init): Function removed.
919 (__times): Assume `creation_time' field is available.
920 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
921 Don't append set-init.
922 * sysdeps/mach/hurd/set-init.c: File removed.
924 2003-06-26 Roland McGrath <roland@redhat.com>
926 * elf/elf.h (AT_SECURE): New macro.
927 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
928 set __libc_enable_secure.
929 (_dl_show_auxv): Add AT_SECURE to name table.
930 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
931 __libc_enable_secure and __libc_enable_secure_decided.
932 * sysdeps/unix/sysv/linux/ldsodefs.h
933 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
934 * sysdeps/unix/sysv/linux/kernel-features.h
935 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
937 2003-06-26 Ulrich Drepper <drepper@redhat.com>
939 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
940 boundary test to take rounding of nanoseconds into account.
942 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
943 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
944 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
945 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
946 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
947 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
948 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
950 2003-06-26 Andreas Schwab <schwab@suse.de>
952 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
953 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
954 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
956 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
958 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
959 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
960 dlopen corresponding NSS module instead.
961 * nis/nss_compat/compat-pwd.c: Likewise.
962 * nis/nss_compat/compat-spwd.c: Likewise.
963 * nis/nss_compat/compat-initgroups.c: Disabled for now.
964 * nss/Versions: Export __nss_lookup_function.
966 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
968 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
969 for the SH architecture.
971 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
973 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
975 2003-06-25 Andreas Jaeger <aj@suse.de>
977 * stdlib/tst-strtod.c (main): Declare constant long double as
978 suggested by Jakub Jelinek and Andreas Schwab.
980 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
983 * stdio-common/tst-fphex.c: Fix format string.
985 * posix/transbug.c: Include <string.h> for memset and strlen
988 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
990 * stdlib/tst-strtod.c (main): Pass long double value.
992 * test-skeleton.c: Include <time.h> for nanosleep declaration.
994 2003-06-25 Ulrich Drepper <drepper@redhat.com>
996 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
999 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1001 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1002 * elf/dl-libc.c (struct dl_open_hook): New.
1003 (_dl_open_hook): New variable.
1004 (do_dlsym_private): New function.
1005 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1006 and initialize it if found.
1007 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1008 call dlopen_mode hook.
1009 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1011 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1014 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1016 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1017 result to long int so that extensions to long long int work.
1018 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1020 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1022 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1023 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1024 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1026 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1027 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1028 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1029 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1031 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1033 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1034 retry once after a second. If killed == 0, assume
1035 WTERMSIG (status) == SIGKILL.
1037 2003-06-18 Roland McGrath <roland@redhat.com>
1039 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1040 elements in the table instead of printing an empty name string.
1042 2003-06-05 Roland McGrath <roland@redhat.com>
1044 * elf/elf.h (PT_GNU_STACK): New macro.
1046 2003-06-24 Ulrich Drepper <drepper@redhat.com>
1048 * include/time.h: Define CLOCK_IDFIELD_SIZE.
1049 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1050 * sysdeps/unix/clock_gettime.c: Likewise.
1051 * sysdeps/unix/clock_settime.c: Likewise.
1052 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1053 clock id for thread CPU clocks.
1055 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1056 for the fstatfs64 syscall.
1057 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1058 the statfs64 syscall.
1060 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1061 __ASSUME_STATFS64 appropriately.
1063 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1064 from statfs structure if it has been filled in.
1066 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1068 (struct statfs64): Likewise.
1069 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1070 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1072 2003-06-24 Richard Henderson <rth@redhat.com>
1074 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1075 the 64-bit syscall name.
1077 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1079 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1080 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
1082 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1083 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1085 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1086 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1089 * sysdeps/alpha/bits/atomic.h: New file.
1091 2003-06-24 Andreas Schwab <schwab@suse.de>
1093 * sysdeps/m68k/fpu/libm-test-ulps: Update.
1095 2003-06-24 Andreas Jaeger <aj@suse.de>
1097 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1098 redeclaration with 32-bit code.
1100 2003-05-19 Ed Connell <ed.connell@sas.com>
1102 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1103 floating point mask.
1104 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1106 2003-06-23 Ulrich Drepper <drepper@redhat.com>
1108 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1109 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1110 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1112 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1113 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
1114 instead of __libc_cleanup_region_*.
1116 2003-06-20 Richard Henderson <rth@redhat.com>
1118 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1119 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1121 2003-06-20 Richard Henderson <rth@redhat.com>
1123 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1124 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1126 (__ASSUME_TIMEVAL64): Set for alpha.
1127 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1128 adjtimex, osf_sigprocmask, old_adjtimex.
1129 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1130 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
1131 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1132 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1133 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1134 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1135 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1136 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1137 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1138 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1139 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
1141 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1142 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
1143 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
1144 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
1145 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1146 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
1147 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
1148 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
1149 defer to __syscall_name; error for rt_sigaction.
1150 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
1152 2003-06-18 Ulrich Drepper <drepper@redhat.com>
1154 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
1155 hasn't happened yet.
1157 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1158 Fix completely broken implementation. The second parameter is of
1159 type struct ucontext*.
1161 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
1164 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
1165 * sysdeps/generic/dl-hash.h: Likewise.
1167 * sysdeps/generic/memcmp.c: Remove inline from
1168 memcmp_common_alignment and memcmp_not_common_alignment definition.
1170 * intl/localealias.c (read_alias_file): Determine whether line is
1171 read incompletely early, before we modify the line.
1173 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1175 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
1176 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
1178 2003-06-17 Paul Mackerras <paulus@samba.org>
1180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
1181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
1182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
1183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
1184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
1185 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
1187 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1189 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
1191 2003-06-17 Ulrich Drepper <drepper@redhat.com>
1193 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
1194 takes care of enabling cancellation.
1196 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
1197 cancelable. It's not correct to disable cancellation. Instead of
1200 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
1201 and part of the incoming set, create a temporary set without this
1203 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1204 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1206 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
1207 returning because seconds==0. Add __builtin_expect.
1209 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1211 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
1213 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
1216 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
1218 * include/libc-symbols.h: Add static_link_warning macro.
1219 * grp/initgroups.c: Print linker warning if this function
1220 is called in a static linked binary.
1221 * nss/getXXbyYY.c: Likewise.
1222 * nss/getXXbyYY_r.c: Likewise.
1223 * nss/getXXent.c: Likewise.
1224 * nss/getXXent_r.c: Likewise.
1225 * sysdeps/posix/getaddrinfo.c: Likewise.
1227 2003-06-16 Bruno Haible <bruno@clisp.org>
1229 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
1231 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
1232 (IBM1047): Add alias IBM-1047.
1233 (GBK): Add aliases MS936, WINDOWS-936.
1235 2003-06-16 Jakub Jelinek <jakub@redhat.com>
1237 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
1238 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
1239 (__xstat64_conv): Change xstat_conv to __xstat_conv.
1241 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1243 * locale/iso-639.def: Update from current official ISO 639.
1245 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
1247 2003-06-15 Andreas Jaeger <aj@suse.de>
1249 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
1251 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1252 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
1253 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
1255 * math/tgmath.h (carg): Handle real arguments.
1261 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
1262 (tests): Add test-tgmath-ret.
1263 * math/test-tgmath-ret.c: New file.
1265 * math/tgmath.h (ilogb): Return always an int.
1267 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1269 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
1270 computation so that prelinking works.
1272 2003-06-15 Ulrich Drepper <drepper@redhat.com>
1274 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
1276 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
1277 dynamic linker's map.
1279 Fix cancellation point handling wrt exception based cleanup.
1280 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
1281 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
1283 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
1284 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
1285 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
1287 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
1288 sigwait.c, and sigwaitinfo.c with exceptions.
1289 * stdlib/Makefile: Compile system.c with exceptions.
1290 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
1291 * termios/Makefile: Compile tcdrain.c with exceptions.
1292 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
1294 * sysdeps/generic/pselect.c: Likewise.
1295 * sysdeps/posix/sigpause.c: Likewise.
1296 * sysdeps/posix/system.c: Likewise.
1297 * sysdeps/posix/waitid.c: Likewise.
1298 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1299 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1300 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
1301 INTERNAL_SYSCALL to not use push inside asm statement so that
1302 unwind info is correct around the syscall.
1303 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
1304 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1306 2003-06-15 Andreas Jaeger <aj@suse.de>
1308 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1311 2003-06-15 Guido Guenther <agx@sigxcpu.org>
1313 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
1316 2003-06-14 Ulrich Drepper <drepper@redhat.com>
1318 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
1321 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
1322 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
1325 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
1326 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
1327 * inet/Makefile (routines): Add inet6_option.
1328 * inet/inet6_option.c: New file.
1329 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
1330 inet6_option_init, inet6_option_append, inet6_option_alloc,
1331 inet6_option_next, and inet6_option_find.
1333 2003-06-13 Ulrich Drepper <drepper@redhat.com>
1335 * inet/netinet/ip6.h (struct ip6_ext): Define.
1337 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
1339 Fixing gcc 3.3 warnings, part II.
1340 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
1341 * elf/dl-load.c (cache_rpath): Don't inline.
1342 * iconvdata/cns11642l2.h: Always inline all functions.
1343 * iconvdata/iso-ir-165.h: Likewise.
1344 * locale/Makefile (aux): Add coll-lookup.
1345 * locale/coll-lookup.c: New file.
1346 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
1347 (collseq_table_lookup): Likewise.
1348 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
1349 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
1351 * posix/regcomp.c: Likewise.
1352 * posix/regexec.c: Likewise.
1353 * locale/programs/3level.h (*_get): Always inline.
1354 * locale/programs/locfile.h: Move definition of handle_copy to...
1355 * locale/programs/locfile.c: ...here.
1356 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
1357 (obstack_int32_grow_fast): Likewise.
1358 (utf8_encode): Likewise.
1359 (find_element): Avoid aliasing problems.
1360 (insert_value): Likewise.
1361 (collate_read): Likewise.
1362 * nss/getent.c (print_hosts): Don't inline
1363 (print_networks): Likewise.
1364 (print_shadow): Likewise.
1365 (build_doc): Likewise.
1366 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
1368 * posix/regcomp.c (re_set_fastmap): Always inline.
1369 (seek_collating_symbol_entry): Likewise.
1370 (lookup_collation_sequence_value): Likewise.
1371 (build_range_exp): Likewise.
1372 (build_collating_symbol): Likewise.
1373 * posix/regexec.c (acquire_init_state_context): Don't inline.
1374 (clean_state_log_if_need): Likewise.
1375 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
1377 (evConsTime): Likewise.
1378 (evAddTime): Likewise.
1379 (evSubTime): Likewise.
1380 (evNowTime): Likewise.
1381 (evTimeSpec): Removed.
1382 (__libc_res_nsend): Avoid aliasing problem.
1383 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
1384 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
1385 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
1387 (_dl_string_platform): Likewise.
1388 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
1389 (wcwidth_table_lookup): Likewise.
1390 (wctrans_table_lookup): Likewise.
1392 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
1394 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1396 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
1398 2003-05-29 Jim Meyering <jim@meyering.net>
1400 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
1401 && HAVE_STRFTIME]: Use underlying_strftime for %r.
1402 Suggested by Daniel Yacob <locales@geez.org>.
1404 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
1406 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
1407 @got notation with @toc.
1408 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
1409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
1411 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1413 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
1414 if only PF_INET address is needed.
1416 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
1419 * scripts/config.guess: Update from upstream version.
1420 * scripts/config.sub: Likewise.
1422 2003-06-12 Jakub Jelinek <jakub@redhat.com>
1424 * locale/programs/ld-time.c (time_output): Also copy the era format,
1427 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
1429 * posix/transbug.c (run_test): Return 1 for failure.
1430 (do_test): Compare only if run_test is successful.
1432 2003-06-12 Simon Josefsson <jas@extundo.com>
1434 * argp/argp.h [!__THROW]: Define if undefined.
1436 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1438 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
1439 more than four parameters.
1440 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1442 2003-06-12 Jakub Jelinek <jakub@redhat.com>
1444 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
1445 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
1446 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
1448 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
1450 2003-06-12 Roland McGrath <roland@redhat.com>
1452 * Makerules ($(objpfx)stubs): Rewrite sed magic.
1454 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
1456 * posix/regcomp.c (parse_expression): Deliver translation to
1457 build_word_op, and build_charclass.
1458 (build_charclass): Apply translation for character classes too.
1459 (build_word_op): Deliver translation to build_charclass.
1460 * posix/transbug.c: New file.
1461 * posix/Makefile (tests): Add transbug.
1463 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
1465 * posix/regexec.c (group_nodes_into_DFAstates): Check for
1466 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
1467 'continue' before the others.
1469 2003-06-11 Ulrich Drepper <drepper@redhat.com>
1471 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
1472 function [PR libc/5045].
1474 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
1477 * time/tzfile.c: Add a couple of __builtin_expect.
1479 Remove warnings gcc 3.3 shows.
1480 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
1481 * elf/dl-load.c (fillin_rpath): Likewise.
1482 (add_path): Likewise.
1483 * elf/dl-version.c (find_needed): Always inline.
1484 * elf/do-lookup.c (FCT): Don't inline.
1485 * iconv/Makefile: Extend vpath to intl subdir.
1486 (iconvconfig-modules): Add hash-string.
1487 * iconv/gconv_charset.h (strip): Don't inline.
1488 (upstr): Always inline.
1489 Move __gconv_compare_alias prototype to...
1490 * iconv/gconv_int.h: ...here.
1491 * iconv/gconv_db.c: Don't include gconv_charset.h.
1492 * iconv/gconv_conf.c (add_alias): Don't inline.
1493 (insert_module): Likewise.
1494 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
1495 (internal_ucs4_loop_unaligned): Likewise.
1496 (internal_ucs4_loop_single): Likewise.
1497 (ucs4_internal_loop): Likewise.
1498 (ucs4_internal_loop_unaligned): Likewise.
1499 (ucs4_internal_loop_single): Likewise.
1500 (internal_ucs4le_loop): Always inline.
1501 (internal_ucs4le_loop_unaligned): Likewise.
1502 (internal_ucs4le_loop_single): Likewise.
1503 (ucs4le_internal_loop): Likewise.
1504 (ucs4le_internal_loop_unaligned): Likewise.
1505 (ucs4le_internal_loop_single): Likewise.
1506 * iconv/loop.c: Always inline the defined functions.
1507 * iconvdata/cns11642.h: Likewise.
1508 * iconvdata/cns11642l1.h: Likewise.
1509 * iconvdata/euc-kr.c: Likewise.
1510 * iconvdata/gb2312.h: Likewise.
1511 * iconvdata/jis0201.h: Likewise.
1512 * iconvdata/jis0208.h: Likewise.
1513 * iconvdata/jis0212.h: Likewise.
1514 * iconvdata/jisx0213.h: Likewise.
1515 * iconvdata/ksc5601.h: Likewise.
1516 * iconvdata/utf-7.c (base64): Don't inline.
1517 * include/libc-symbols.h (symbol_set_first_element): Add cast
1518 (symbol_set_end_p): Likewise.
1519 * include/set-hooks (RUN_HOOK): Likewise.
1520 * inet/Makefile (aux): Add ifreq.
1521 * intl/Makefile (aux): Add some entries from routines. Add
1523 * intl/hash-string.c: New file.
1524 * intl/hash-string.h: Remove hash_string definition. Declare
1526 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
1527 * iconv/iconvconfig.c (new_name): Likewise.
1528 * intl/dcigettext.c (_nl_find_msg): Likewise.
1529 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
1530 * io/ftw.c (open_dir_stream): Always inline.
1531 (process_entry): Don't inline.
1532 * locale/findlocale.c: Include gconv_int.h.
1533 * locale/setlocale.c (new_composite_name): Don't inline.
1534 * locale/weight.h (findidx): Always inline.
1535 * locale/weightwc.h (findidx): Likewise.
1536 * locale/programs/linereader.c (lr_ignore_rest): Define here.
1537 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
1539 (lr_getc): Always inline.
1540 (lr_ungetc): Likewise.
1541 * nss/nss_files/files-parse.c (parse_list): Likewise.
1542 * stdio-common/Makefile (aux): Add printf-parsemb and
1544 * stdio-common/_itoa.h (_itoa_word): Always inline.
1545 (_fitoa_word, _fitoa): Don't define here, only declare.
1546 * stdio-common/_itoa.c (_iftoa_word): Add here.
1548 * stdio-common/_itowa.h (_itowa_word): Always inline.
1549 * stdio-common/printf-parse.h (read_int): Don't inline.
1550 (find_spec): Don't define.
1551 Declare __find_specmb and __find_specwc.
1552 (parse_one_spec): Don't define.
1553 Declare __parse_one_specmb and __parse_one_specwc.
1554 * stdio-common/printf-parsemb.c: New file.
1555 * stdio-common/printf-parsewc.c: New file.
1556 * stdio-common/vfprintf.c: Update calls to find_spec and
1557 parse_one_spec for new names.
1558 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
1559 * stdlib/Makefile (aux): Add grouping and groupingwc.
1560 * stdlib/grouping.c: New file.
1561 * stdlib/groupingwc.c: New file.
1562 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
1564 * stdlib/rpmatch.c (try): Don't inline.
1565 * stdlib/strtod.c (round_and_return): Don't line.
1566 (str_to_mpn): Likewise.
1567 (__mpn_lshift_1): Always inline. Optimize only for constant count.
1568 Adjust for name change of correctly_grouped_prefix.
1569 * sysdeps/generic/strtol.c: Adjust for name change of
1570 correctly_grouped_prefix.
1571 * string/strxfrm.c (utf8_encode): Don't inline.
1572 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
1573 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
1574 * sysdeps/generic/ifreq.c: New file.
1575 * sysdeps/unix/sysv/linux/ifreq.c: New file.
1576 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
1577 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
1578 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
1579 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
1580 (fde_split): Likewise.
1581 (fde_merge): Likewise.
1582 (end_fde_sort): Likewise.
1583 (init_object): Likewise.
1584 (binary_search_unencoded_fdes): Likewise.
1585 (binary_search_single_encoding_fdes): Likewise.
1586 (binary_search_mixed_encoding_fdes): Likewise.
1587 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
1588 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
1589 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
1590 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1592 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
1593 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
1594 Export them. Prepend __ to name.
1595 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
1596 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
1597 conversion functions.
1598 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1599 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1600 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1601 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1602 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1603 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1604 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1605 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1606 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
1607 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
1608 to name. Change callers.
1609 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
1610 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
1612 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
1613 * time/tzfile.c (decode): Always inline.
1614 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
1615 Remove cast in tomb function call.
1616 * wcsmbs/wcsrtombs.c Likewise.
1617 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
1620 2003-06-10 Ulrich Drepper <drepper@redhat.com>
1622 * po/zh_CN.po: Update from translation team.
1624 2003-06-10 Jakub Jelinek <jakub@redhat.com>
1626 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
1627 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
1629 2003-06-10 Ulrich Drepper <drepper@redhat.com>
1631 * inet/Makefile (aux): Add check_pf.
1632 * include/ifaddrs.h: Add prototype for __check_pf.
1633 * sysdeps/generic/check_pf.c: New file.
1634 * sysdeps/unix/sysv/linux/check_pf.c: New file.
1635 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
1636 from no_netlink_support. Export.
1637 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
1640 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
1642 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
1643 from getifaddr calls.
1645 2003-06-09 Jakub Jelinek <jakub@redhat.com>
1647 * sysdeps/unix/sysv/linux/kernel-features.h
1648 (__ASSUME_SETRESGID_SYSCALL): Define.
1649 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
1650 instead of __ASSUME_SETRESUID_SYSCALL.
1651 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
1653 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
1654 inline syscall if __NR_setresuid32 is defined.
1655 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1656 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
1657 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
1658 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1659 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
1660 code handling non-existant setresgid32 syscall with
1661 #if __ASSUME_SETRESGID_SYSCALL == 0.
1663 2003-06-09 Andreas Schwab <schwab@suse.de>
1665 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
1666 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
1667 $(objpfx)rpc-proto.d.
1668 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
1669 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
1670 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
1672 2003-06-08 Ulrich Drepper <drepper@redhat.com>
1674 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
1675 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1676 defined drop compatibility code.
1677 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
1678 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
1679 defined drop compatibility code.
1680 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
1681 setresuid32 syscall directly if possible.
1682 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1683 setresgid32 syscall directly if possible.
1684 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
1685 compliant. Don't change sgid.
1686 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
1687 compliant. Don't change suid.
1689 * config.h.in: Add have-forced-unwind.
1690 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
1692 2003-06-07 Ulrich Drepper <drepper@redhat.com>
1694 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
1695 returned status from child matches.
1697 * Makeconfig (gnulib): Add -lgcc_eh once again.
1699 2003-06-06 Ulrich Drepper <drepper@redhat.com>
1701 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
1703 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
1704 %edx for first parameter. This means no pushl and therefore the
1705 unwind info isn't screwed up.
1707 2003-06-04 Richard Henderson <rth@redhat.com>
1709 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
1710 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1711 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
1712 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
1713 entry sequence and explicit relocs. Add unwind info for sigreturn
1715 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
1717 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
1718 Annotate some parameters.
1719 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
1721 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
1723 * include/libc-symbols.h (symbol_set_declare): Use arrays
1724 of unspecified size.
1726 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1728 * config.make.in (ASFLAGS-config): New.
1729 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
1730 * configure.in (libc_cv_as_noexecstack): New check.
1731 (ASFLAGS_config): Substitute.
1733 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1735 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
1736 hypot, logb): Protect with #ifdef __FAST_MATH__.
1738 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1740 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
1741 #ifdef __FAST_MATH__.
1743 2003-06-03 Ulrich Drepper <drepper@redhat.com>
1745 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
1746 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
1747 * posix/globtest.sh: Adjust for this change.
1749 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
1750 to get the actual PID value used in the records passed up.
1751 (getifaddrs): Don't initialize nh.pid here.
1753 2003-06-02 Ulrich Drepper <drepper@redhat.com>
1755 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
1758 * po/zh_CN.po: Update from translation team.
1760 * posix/getconf.c (main): Also recognize names without the
1763 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
1765 2003-06-02 Bernd Schmidt <bernds@redhat.com>
1767 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
1768 ldexpf, ldexpl): Only define if __FAST_MATH__.
1770 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
1772 Replace hard-coded offsets into struct sigcontext with generated file.
1773 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
1774 * sysdeps/unix/sysv/linux/ia64/Makefile
1775 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
1776 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
1777 defining SC_* macros here.
1779 2003-06-02 Jakub Jelinek <jakub@redhat.com>
1781 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
1783 2003-06-01 Jakub Jelinek <jakub@redhat.com>
1785 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
1787 2003-06-01 Ulrich Drepper <drepper@redhat.com>
1789 * test-skeleton.c (main): Request getopt to not reorder the
1792 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
1794 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
1797 2003-05-31 Ulrich Drepper <drepper@redhat.com>
1799 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
1801 2003-05-31 Jakub Jelinek <jakub@redhat.com>
1803 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
1805 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
1806 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
1807 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
1809 2003-05-31 Ulrich Drepper <drepper@redhat.com>
1811 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
1814 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
1816 * libio/fileops.c (_IO_file_open): Don't mark as inline.
1818 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
1821 2003-05-30 Ulrich Drepper <drepper@redhat.com>
1823 * scripts/config.guess: Update from master copy.
1824 * scripts/config.sub: Likewise.
1826 2003-05-30 Guido Guenther <agx@sigxcpu.org>
1828 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
1829 SETUP_GP64 and friends.
1830 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
1831 names in internal_syscall{6,7}.
1832 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
1833 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
1834 number of syscall arguments.
1835 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1836 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1837 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1839 2003-05-30 Andreas Jaeger <aj@suse.de>
1841 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1844 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
1847 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
1849 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1852 2003-05-30 Jakub Jelinek <jakub@redhat.com>
1854 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
1857 2003-05-11 Andreas Schwab <schwab@suse.de>
1859 * Makerules: Always use -MP together with -MD.
1860 (sed-remove-dotot): Substitute $(..) also at start of line.
1861 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
1862 Generated defines with a single compiler call.
1863 Use $(sed-remove-dotdot).
1864 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
1865 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
1866 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1867 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
1868 * sysdeps/unix/sysv/linux/mips/Makefile
1869 ($(objpfx)syscall-%.h): Likewise.
1871 2003-05-28 Roland McGrath <roland@redhat.com>
1873 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
1875 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
1877 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
1879 2003-05-28 Roland McGrath <roland@redhat.com>
1881 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
1882 rt_sigprocmask system call.
1883 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
1884 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
1886 2003-05-28 Ulrich Drepper <drepper@redhat.com>
1888 * include/libc-symbols.h: Define hidden attribute for real also if
1889 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
1891 * csu/Makefile: Add rules to build Scrt1.o.
1892 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
1893 * sysdeps/x86_64/elf/start.S: Likewise.
1895 2003-05-27 Jakub Jelinek <jakub@redhat.com>
1897 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
1898 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
1899 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
1900 pa_short_int, pa_u_short_int and pa_float.
1902 2003-05-26 Jakub Jelinek <jakub@redhat.com>
1904 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
1905 _IO_str_init_static_internal.
1906 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
1907 change size argument to _IO_size_t, don't limit sprintf to 64M.
1908 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
1909 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
1910 _IO_size_t, don't limit swprintf to 256M.
1911 (_IO_wstr_init_readonly): Remove.
1912 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
1914 (_IO_wstr_init_readonly): Remove prototype.
1915 * libio/iovsprintf.c (_IO_vsprintf): Use
1916 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
1917 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1918 * libio/memstream.c (open_memstream): Likewise.
1919 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
1920 * libio/vasprintf.c (_IO_vasprintf): Likewise.
1921 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1922 * stdio-common/tst-sprintf.c (main): Add new test.
1924 2003-05-26 Ulrich Drepper <drepper@redhat.com>
1926 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
1927 other implementation in respect of multiple uses of parameter with
1930 2003-05-25 Ulrich Drepper <drepper@redhat.com>
1932 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1933 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
1935 2003-05-22 Andreas Jaeger <aj@suse.de>
1937 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
1939 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1940 * sysdeps/x86_64/strtok.S: Likewise.
1942 2003-05-20 Guido Guenther <agx@sigxcpu.org>
1944 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
1945 to -60 and define SI_TKILL.
1947 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
1949 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
1950 (feexcp_mask_test): Likewise.
1952 2003-05-21 Ulrich Drepper <drepper@redhat.com>
1954 * locale/programs/locale.c (main): Fix typo in last patch.
1956 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
1957 __init_array_start, __init_array_end, __fini_array_start, and
1958 __fini_array_end as hidden.
1960 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
1962 * locale/programs/locale.c (main): Report an error if setlocale()
1963 fails [PR libc/2254].
1965 2003-05-21 Jakub Jelinek <jakub@redhat.com>
1967 * sysdeps/unix/sysv/linux/s390/system.c: New file.
1969 2003-05-21 Jakub Jelinek <jakub@redhat.com>
1971 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
1972 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1973 LOADARGS_6): Don't error if syscall argument is a string literal.
1974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
1975 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1976 LOADARGS_6): Likewise.
1978 2003-05-21 Andreas Jaeger <aj@suse.de>
1980 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
1981 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
1982 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
1984 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
1988 * configure.in: Test for asm cfi directives.
1990 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
1992 2003-05-17 Andreas Jaeger <aj@suse.de>
1994 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
1996 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
1998 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2000 * rt/Makefile (tests): Add tst-clock_nanosleep.
2001 * rt/tst-clock_nanosleep.c: New file.
2002 * posix/Makefile (tests): Add tst-nanosleep.
2003 * posix/tst-nanosleep.c: New file.
2005 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2007 * include/features.h (__USE_XOPEN2K): Define also for
2008 _POSIX_C_SOURCE>=200112L.
2010 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2011 SI_TKILL code into SI_USER.
2012 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2014 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2016 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2018 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2019 Remove sym argument, always use refsym.
2020 (__process_machine_rela): Adjust callers.
2021 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2023 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2025 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2027 2003-05-15 Ulrich Drepper <drepper@redhat.com>
2029 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2030 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2031 print numeric values.
2033 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
2035 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2037 2003-05-14 Andreas Schwab <schwab@suse.de>
2039 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2041 2003-05-14 Jakub Jelinek <jakub@redhat.com>
2043 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2044 even if no DT_NEEDED is present.
2046 2003-05-13 David Mosberger <davidm@hpl.hp.com>
2048 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2049 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2050 __sigjmp_save) so we can't keep the saved unat value in a scratch
2051 register (r16). Use loc2 instead.
2053 2003-05-13 Ulrich Drepper <drepper@redhat.com>
2055 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2056 binaries it has to be relocatable.
2058 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2060 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
2062 * sysdeps/powerpc/bits/atomic.h
2063 (__arch_compare_and_exchange_bool_8_rel): Define.
2064 (__arch_compare_and_exchange_bool_16_rel): Define.
2065 (__ARCH_REL_INSTR): Define if not already defined.
2066 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2067 (__arch_atomic_decrement_if_positive_32):
2068 Add "memory" to clobber list.
2069 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2070 (__arch_compare_and_exchange_val_32_rel): Define.
2071 (__arch_atomic_exchange_32): Remove.
2072 (__arch_atomic_exchange_32_acq): Define.
2073 (__arch_atomic_exchange_32_rel): Define.
2074 (atomic_compare_and_exchange_val_rel): Define.
2075 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2076 (atomic_exchange_rel): Define.
2077 * sysdeps/powerpc/powerpc32/bits/atomic.h
2078 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2079 (__arch_compare_and_exchange_bool_32_rel): Define.
2080 (__arch_compare_and_exchange_bool_64_rel): Define.
2081 (__arch_compare_and_exchange_val_64_rel): Define.
2082 (__arch_atomic_exchange_64): Remove.
2083 (__arch_atomic_exchange_64_acq): Define.
2084 (__arch_atomic_exchange_64_rel): Define.
2085 * sysdeps/powerpc/powerpc64/bits/atomic.h
2086 (__arch_compare_and_exchange_bool_32_rel): Define.
2087 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2088 (__arch_compare_and_exchange_bool_64_rel): Define.
2089 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2090 (__arch_compare_and_exchange_val_64_rel): Define.
2091 (__arch_atomic_exchange_64): Remove.
2092 (__arch_atomic_exchange_64_acq): Define.
2093 (__arch_atomic_exchange_64_rel): Define.
2094 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2095 (__arch_atomic_decrement_if_positive_64):
2096 Add "memory" to clobber list.
2097 [!UP](__ARCH_REL_INSTR): Define as lwsync.
2099 2003-05-11 Andreas Schwab <schwab@suse.de>
2101 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2103 2003-05-11 Ulrich Drepper <drepper@redhat.com>
2105 * time/tst-strftime.c (do_test): Add tests for - flag.
2107 2003-05-11 Jim Meyering <jim@meyering.net>
2109 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2110 the space-padded-by-default conversion specifiers, %e, %k, %l.
2112 2003-05-11 Andreas Schwab <schwab@suse.de>
2114 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2116 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2118 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2119 already defined and when really needed.
2120 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2122 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2124 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2125 headers, add defines from kernel header, move it from here...
2126 * inet/netinet/igmp.h: ... to here.
2127 * inet/Makefile (headers): Add netinet/igmp.h.
2128 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2129 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2131 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2133 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2134 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2136 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2138 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
2139 (remove __THROW from possible cancellation points).
2141 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2143 * posix/sched.h (CPU_SETSIZE): Define.
2145 2003-05-09 Ulrich Drepper <drepper@redhat.com>
2147 * Makeconfig (gnulib): Remove -lgcc_eh again.
2149 * posix/sched.h: Change prototypes of sched_getaffinity and
2150 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
2151 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
2152 * sysdeps/generic/sched_setaffinity.c: Likewise.
2153 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
2154 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
2155 __CPU_CLR, and __CPU_ISSET.
2156 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2157 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
2158 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
2160 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
2161 (atomic_exchange_rel): New #define.
2162 * sysdeps/ia64/bits/atomic.h: Likewise.
2163 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
2165 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
2166 * sysdeps/powerpc/bits/atomic.h: Likewise.
2167 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
2168 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
2169 * sysdeps/x86_64/bits/atomic.h: Likewise.
2170 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
2172 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
2174 2003-05-08 Ulrich Drepper <drepper@redhat.com>
2176 * malloc/thread-m.h: Remove special handling of thread_atfork if
2177 HAVE_register_atfork_malloc is defined.
2179 2003-05-07 Andreas Jaeger <aj@suse.de>
2181 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
2184 2003-05-06 Ulrich Drepper <drepper@redhat.com>
2186 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
2187 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2188 * libio/libioP.h: Declare _IO_old_init.
2189 * libio/genops.c (_IO_no_init): Split in two. New function
2192 2003-05-05 Ulrich Drepper <drepper@redhat.com>
2194 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
2196 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
2198 * include/unistd.h: Declare __libc_enable_secure_decided.
2199 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
2200 and AT_EGID. If all found, set __libc_enable_secure and
2201 __libc_enable_secure_decided.
2203 * sysdeps/generic/libc-start.c [!SHARED]: Call
2204 __libc_check_standard_fds after __libc_init_first.
2206 2003-05-05 Roland McGrath <roland@redhat.com>
2208 * Makerules (common-before-compile): New variable.
2209 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
2210 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
2211 to after all setting of before-compile.
2213 2003-05-05 Jakub Jelinek <jakub@redhat.com>
2215 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2216 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
2217 * sysdeps/powerpc/powerpc32/bits/atomic.h
2218 (__arch_compare_and_exchange_val_64_acq): Likewise.
2219 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2220 (__arch_compare_and_exchange_val_8_acq,
2221 __arch_compare_and_exchange_val_16_acq,
2222 __arch_compare_and_exchange_val_64_acq): Likewise.
2223 * sysdeps/sparc/sparc64/bits/atomic.h
2224 (__arch_compare_and_exchange_val_8_acq,
2225 __arch_compare_and_exchange_val_16_acq): Likewise.
2226 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2227 __arch_compare_and_exchange_val_16_acq,
2228 __arch_compare_and_exchange_val_64_acq): Likewise.
2229 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2230 (__arch_compare_and_exchange_val_64_acq): Likewise.
2231 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
2233 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
2235 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2236 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
2237 Return long instead of int.
2238 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
2239 0xfffff001u with -4095UL.
2241 2003-05-05 Andreas Jaeger <aj@suse.de>
2243 * sysdeps/x86_64/fpu_control.h: New from i386.
2245 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
2246 Define if not defined.
2248 * sunrpc/Makefile (generated-dirs): New variable.
2249 * resolv/Makefile (generated): New variable.
2251 2003-05-04 Roland McGrath <roland@redhat.com>
2253 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
2254 Depend on $(before-compile).
2256 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
2257 pattern rule. The implicit rule could be ruled out when $(objpfx)
2258 didn't exist at the time of its consideration (ugh!).
2260 * Makerules (+make-deps): Fix target matching.
2261 Use $(sed-remove-dotdot).
2263 2003-05-03 Ulrich Drepper <drepper@redhat.com>
2265 * nscd/nscd.c (main): Parse config file right after parsing
2266 parameters. Then, if get_stats is true, call receive_print_stats.
2267 Drop parameter from nscd_init call.
2268 (get_stats): New variable.
2269 (parse_opt): Set get_stats, don't call receive_print_stats here.
2270 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
2272 * nscd/connections.c (stat_user, stat_uid): New variables.
2274 (nscd_init): Don't read configuration file here. Drop parameter.
2275 (handle_request): Cleanup handling of non-database lookup requests.
2276 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
2277 Get UID of the specified user. Use xstrdup instead of strdup.
2278 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
2280 * nscd/Makefile (nscd-modules): Add xstrdup.
2281 * nscd/nscd.conf: Document stat-user entry.
2283 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
2285 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
2288 2003-04-22 Roland McGrath <roland@redhat.com>
2290 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
2291 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2292 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
2293 * elf/dl-support.c: Update defn.
2294 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
2295 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2296 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
2297 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
2298 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
2299 set, set up a link_map for the preloaded, prelinked object.
2301 2003-05-03 Roland McGrath <roland@redhat.com>
2303 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
2304 * stdio-common/Makefile: ... not here.
2306 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
2307 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
2309 2003-05-02 Ulrich Drepper <drepper@redhat.com>
2311 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
2313 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
2315 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
2316 comparing ftab elements.
2317 (_dl_unmap): Fix typo in test.
2318 (_dl_make_fptr): Fix typos introduced in last change.
2320 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
2321 original patch. Use non-exported symbols. Mark translatable
2322 strings. Pretty printing.
2324 2003-05-02 Roland McGrath <roland@redhat.com>
2326 * Makerules (do-stamp): Do $(make-target-directory).
2328 2003-04-07 H.J. Lu <hjl@gnu.org>
2330 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
2332 2003-04-03 H.J. Lu <hjl@gnu.org>
2334 * sysdeps/ia64/dl-fptr.c: Moved to ...
2335 * sysdeps/generic/dl-fptr.c: Here.
2337 * sysdeps/generic/dl-fptr.h: New.
2338 * sysdeps/ia64/dl-fptr.h: New.
2340 * sysdeps/ia64/dl-symaddr.c: Moved to ...
2341 * sysdeps/generic/dl-symaddr.c: here.
2343 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
2344 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
2345 (ia64_fdesc): Likewise.
2346 (ia64_fdesc_table): Likewise.
2347 (__ia64_make_fptr): Likewise.
2348 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
2349 with _dl_boot_fptr_table.
2350 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
2352 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
2354 2003-05-01 Roland McGrath <roland@redhat.com>
2356 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
2357 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2359 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2360 Use $(make-target-directory).
2361 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2363 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
2364 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
2365 (compile-command.s, compile-command.c): Likewise.
2366 ($(objpfx)%.d): All such pattern rules removed.
2367 ($(+sysdir_pfx)sysd-rules): Don't generate them.
2368 ($(common-objpfx)dummy.d): Target removed.
2369 (make-dummy-dep): Variable removed.
2370 (generate-md5): Likewise.
2371 (%.d: %.dt): New pattern rule.
2372 (+depfiles): Use $(wildcard) function to get just existing *.d files
2373 and .d files for existing *.dt files.
2374 (common-clean): Remove all *.d and *.dt files.
2375 (before-compile): Add $(objpfx). when it doesn't exist,
2376 regardless of $(no_deps).
2377 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
2378 (rtld-depfiles): Use .os.d instead of .d names.
2379 Include existing *.d files and .d files for existing *.dt files.
2381 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
2382 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
2384 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
2385 Do s-*.d includes only if we have some syscall routines in this subdir.
2387 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
2388 @nobits. The former is accepted by gas on any ELF platform.
2390 2003-05-01 Ulrich Drepper <drepper@redhat.com>
2392 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
2394 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
2396 2003-04-29 Andreas Schwab <schwab@suse.de>
2398 * string/test-strcat.c (do_one_test): Fix attribute name.
2400 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
2402 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
2403 uc_flags long for all ABIs.
2405 2003-04-30 Andreas Jaeger <aj@suse.de>
2407 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
2408 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
2409 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
2410 Add bi-arch support.
2412 2003-04-30 Ulrich Drepper <drepper@redhat.com>
2414 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
2415 (__posix_memalign): Use __memalign_internal instead of memalign.
2417 2003-04-29 Roland McGrath <roland@redhat.com>
2419 * configure.in: Search for AUTOCONF unconditionally.
2420 Just don't complain about missing it under --without-cvs.
2422 * include/libc-symbols.h (__symbol_set_attribute): New macro,
2423 give hidden for [SHARED] and weak for [! SHARED].
2424 (symbol_set_declare): Use that. Never need weak_extern these days.
2425 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
2426 Depend on $(..)Makerules.
2428 2003-04-29 Ulrich Drepper <drepper@redhat.com>
2430 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
2431 variants of socket, bind, recvmsg, and sendto.
2433 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
2435 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
2436 * signal/sigaddset.c: Add libc_hidden_def.
2437 * signal/sigdelset.c: Likewise.
2439 2003-04-29 Jakub Jelinek <jakub@redhat.com>
2441 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
2442 to the end of the file.
2444 * configure.in: Change __oline__ to $LINENO.
2445 (HAVE_BUILTIN_REDIRECTION): New check.
2446 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
2447 * include/libc-symbols.h (libc_hidden_builtin_proto,
2448 libc_hidden_builtin_def, libc_hidden_builtin_weak,
2449 libc_hidden_builtin_ver): Define.
2450 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
2451 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
2452 strspn, strstr): Add libc_hidden_builtin_proto.
2453 * intl/plural.y: Include string.h.
2454 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
2455 libc_hidden_builtin_def.
2456 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
2457 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
2458 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
2459 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
2460 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
2461 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
2462 * sysdeps/alpha/memchr.S (memchr): Likewise.
2463 * sysdeps/alpha/memset.S (memset): Likewise.
2464 * sysdeps/alpha/strcat.S (strcat): Likewise.
2465 * sysdeps/alpha/strchr.S (strchr): Likewise.
2466 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
2467 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
2468 * sysdeps/alpha/strlen.S (strlen): Likewise.
2469 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
2470 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
2471 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
2472 * sysdeps/arm/memset.S (memset): Likewise.
2473 * sysdeps/arm/strlen.S (strlen): Likewise.
2474 * sysdeps/generic/memchr.c (memchr): Likewise.
2475 * sysdeps/generic/memcpy.c (memcpy): Likewise.
2476 * sysdeps/generic/memmove.c (memmove): Likewise.
2477 * sysdeps/generic/memset.c (memset): Likewise.
2478 * sysdeps/generic/strcat.c (strcat): Likewise.
2479 * sysdeps/generic/strchr.c (strchr): Likewise.
2480 * sysdeps/generic/strcmp.c (strcmp): Likewise.
2481 * sysdeps/generic/strcpy.c (strcpy): Likewise.
2482 * sysdeps/generic/strcspn.c (strcspn): Likewise.
2483 * sysdeps/generic/strlen.c (strlen): Likewise.
2484 * sysdeps/generic/strncmp.c (strncmp): Likewise.
2485 * sysdeps/generic/strncpy.c (strncpy): Likewise.
2486 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
2487 * sysdeps/generic/strrchr.c (strrchr): Likewise.
2488 * sysdeps/generic/strspn.c (strspn): Likewise.
2489 * sysdeps/generic/strstr.c (strstr): Likewise.
2490 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2491 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2492 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
2493 * sysdeps/i386/i586/memset.S (memset): Likewise.
2494 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
2495 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
2496 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2497 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
2498 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2499 * sysdeps/i386/i686/memset.S (memset): Likewise.
2500 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2501 * sysdeps/i386/memchr.S (memchr): Likewise.
2502 * sysdeps/i386/memset.c (memset): Likewise.
2503 * sysdeps/i386/strchr.S (strchr): Likewise.
2504 * sysdeps/i386/strcspn.S (strcspn): Likewise.
2505 * sysdeps/i386/strlen.c (strlen): Likewise.
2506 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2507 * sysdeps/i386/strrchr.S (strrchr): Likewise.
2508 * sysdeps/i386/strspn.S (strspn): Likewise.
2509 * sysdeps/ia64/memchr.S (memchr): Likewise.
2510 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
2511 * sysdeps/ia64/memmove.S (memmove): Likewise.
2512 * sysdeps/ia64/memset.S (memset): Likewise.
2513 * sysdeps/ia64/strcat.S (strcat): Likewise.
2514 * sysdeps/ia64/strchr.S (strchr): Likewise.
2515 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
2516 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
2517 * sysdeps/ia64/strlen.S (strlen): Likewise.
2518 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
2519 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
2520 * sysdeps/m68k/memchr.S (memchr): Likewise.
2521 * sysdeps/m68k/strchr.S (strchr): Likewise.
2522 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
2523 * sysdeps/mips/mips64/memset.S (memset): Likewise.
2524 * sysdeps/mips/memcpy.S (memcpy): Likewise.
2525 * sysdeps/mips/memset.S (memset): Likewise.
2526 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2527 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
2528 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
2529 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
2530 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
2531 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2532 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2533 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
2534 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
2535 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
2536 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
2537 * sysdeps/powerpc/strcat.c (strcat): Likewise.
2538 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
2539 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
2540 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
2541 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
2542 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
2543 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
2544 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
2545 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
2546 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
2547 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
2548 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
2549 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
2550 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
2551 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
2552 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
2553 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
2554 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
2555 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
2556 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
2557 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
2558 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
2559 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
2560 * sysdeps/sh/memcpy.S (memcpy): Likewise.
2561 * sysdeps/sh/memset.S (memset): Likewise.
2562 * sysdeps/sh/strlen.S (strlen): Likewise.
2563 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
2564 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
2565 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
2566 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
2567 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
2568 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
2569 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
2570 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
2571 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
2572 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
2573 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
2574 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
2575 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2576 * sysdeps/x86_64/memset.S (memset): Likewise.
2577 * sysdeps/x86_64/strcat.S (strcat): Likewise.
2578 * sysdeps/x86_64/strchr.S (strchr): Likewise.
2579 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
2580 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
2581 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
2582 * sysdeps/x86_64/strlen.S (strlen): Likewise.
2583 * sysdeps/x86_64/strspn.S (strspn): Likewise.
2584 * string/string-inlines.c: Move...
2585 * sysdeps/generic/string-inlines.c: ...here.
2586 (__memcpy_g, __strchr_g): Remove.
2587 (__NO_INLINE__): Define before including <string.h>,
2588 undefine after. Include bits/string.h and bits/string2.h.
2589 * sysdeps/i386/i486/string-inlines.c: New file.
2590 * sysdeps/i386/string-inlines.c: New file.
2591 * sysdeps/i386/i486/Versions: Remove.
2592 All GLIBC_2.1.1 symbols moved...
2593 * sysdeps/i386/Versions (libc): ...here.
2595 2003-04-29 Ulrich Drepper <drepper@redhat.com>
2597 * sysdeps/i386/fpu/Makefile: New file.
2598 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
2599 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
2600 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2601 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
2604 2003-04-28 Ulrich Drepper <drepper@redhat.com>
2606 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
2607 * nscd/nscd_getpw_r.c: Likewise.
2608 * nscd/nscd_gethst_r.c: Likewise.
2610 2003-04-27 Ulrich Drepper <drepper@redhat.com>
2612 * nscd/pwdcache.c: Initialize .version element in result.
2613 * nscd/grpcache.c: Likewise.
2614 * nscd/pwdcache.c: Likewise.
2616 2003-04-27 Andreas Schwab <schwab@suse.de>
2618 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
2621 2003-04-27 Andreas Schwab <schwab@suse.de>
2623 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
2625 2003-04-27 Ulrich Drepper <drepper@redhat.com>
2627 * nscd/connections.c (client_queued): New variable.
2628 (nscd_run): Revamp the loop. Don't call poll except for cleanup
2629 threads. Keep track of the number of delays caused because of busy
2631 * nscd/nscd.h: Declare client_queued.
2632 * nscd/nscd_stat.c: Transmit and print client_queued information.
2634 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
2636 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
2637 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
2639 2003-04-26 Ulrich Drepper <drepper@redhat.com>
2641 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
2642 tracking of freed memory in static TLS block.
2643 * elf/Makefile: Add rules to build and run tst-tls13.
2644 * elf/tst-tls13.c: New file.
2645 * elf/tst-tlsmod13.c: New file.
2646 * elf/tst-tlsmod13a.c: New file.
2648 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
2650 * elf/dl-reloc.c: Pretty printing.
2652 2003-04-26 Roland McGrath <roland@redhat.com>
2654 * Makerules ($(common-objpfx)shlib.lds): New target.
2655 (common-generated): Add it.
2656 (build-shlib, build-module): Use that instead of generating every time.
2657 ($(common-objpfx)libc.so): Depend on it.
2658 (lib%.so rule): Likewise.
2659 (build-module-helper-objlist): Remove %.lds.
2660 (LDSEDCMD-c.so): Variable removed.
2661 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
2662 Depend on $(common-objpfx)shlib.lds.
2663 * dlfcn/Makefile ($(test-modules)): Likewise.
2665 2003-04-26 Roland McGrath <roland@frob.com>
2667 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
2669 2003-04-26 Andreas Schwab <schwab@suse.de>
2671 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
2673 2003-04-25 Ulrich Drepper <drepper@redhat.com>
2675 * nscd/cache.c (cache_search): Keep track of how many chain links
2676 we searched and update table statistics.
2677 (cache_add): Keep track of how many values are in the table.
2678 (prune_cache): Likewise. Keep track of locking success.
2679 Print messages about removed entries in separate pass.
2680 * nscd/connections.c (handle_request): Don't print debug message here.
2681 The caller will do it. Keep track of locking success.
2682 (nscd_run): Print debug message. Also print PID of the client process.
2683 * nscd/nscd.c (start_time): New variable.
2684 (main): Remember start time.
2685 * nscd/nscd.h: Declare start_time.
2686 (struct database): Add more members for new statistics.
2687 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
2690 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
2692 2003-04-22 Jakub Jelinek <jakub@redhat.com>
2694 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
2695 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
2696 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
2698 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
2699 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
2700 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
2701 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
2704 2003-04-24 Ulrich Drepper <drepper@redhat.com>
2706 * nss/getent.c: Implement alternative host database lookup via
2709 * include/ifaddrs.h: New file.
2710 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
2712 * resolv/netdb.h: ...here.
2713 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
2714 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2715 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
2718 2003-04-24 Roland McGrath <roland@redhat.com>
2720 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
2722 2003-04-24 Jakub Jelinek <jakub@redhat.com>
2724 * elf/dl-reloc.c (allocate_static_tls): Rename to...
2725 (_dl_allocate_static_tls): ... this function. No longer static.
2726 (CHECK_STATIC_TLS): Adjust.
2727 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
2728 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
2729 Add SYM_MAP argument.
2730 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
2731 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
2732 TLS relocs here. #ifdef out relocs which never appear in
2733 .gnu.conflict section from dl-conflict.c processing.
2734 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2735 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
2737 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
2738 out relocs which never appear in .gnu.conflict section from
2739 dl-conflict.c processing.
2740 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2741 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2742 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2743 Use r_type in RESOLVE macro.
2745 2003-04-23 Ulrich Drepper <drepper@redhat.com>
2747 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
2748 NULL. Remove code made redundant by this assumption.
2749 (__yp_unbind): Add call to free. Adjust all callers.
2751 * nis/ypclnt.c (yp_all): Free the dom_binding object after
2754 * grp/initgroups.c (getgrouplist): Don't copy too much into the
2755 user buffer if more groups are found than fit into it.
2757 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
2760 2003-04-23 Jakub Jelinek <jakub@redhat.com>
2762 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
2763 not rc == errno. Use extend_alloca.
2765 * elf/tst-tls12.c (main): Fix declaration.
2766 * elf/tst-tls10.c (dummy): Make hidden instead of static.
2767 * elf/tst-tlsmod7.c (dummy): Likewise.
2768 * elf/tst-tlsmod8.c (dummy): Likewise.
2769 * elf/tst-tlsmod9.c (dummy): Likewise.
2771 2003-04-22 Roland McGrath <roland@redhat.com>
2773 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
2774 (open_not_cancel): Make last argument non-optional.
2775 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
2776 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2777 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2779 * include/tls.h: Protect against multiple inclusion.
2781 2003-04-22 Ulrich Drepper <drepper@redhat.com>
2783 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
2784 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
2785 open_socket. Not static anymore.
2786 (nscd_gethst_r): Use __nscd_open_socket.
2787 * nscd/nscd_getgr_r.c (open_socket): Removed.
2788 (nscd_getgr_r): Use __nscd_open_socket.
2789 * nscd/nscd_getpw_r.c (open_socket): Removed.
2790 (nscd_getpw_r): Use __nscd_open_socket.
2792 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
2793 * nscd/connections.c (handle_request): Add cast to avoid warning.
2795 2003-04-21 Ulrich Drepper <drepper@redhat.com>
2797 * signal/sigfillset.c: Moved to...
2798 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
2799 do not set the corresponding bit.
2801 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
2803 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
2804 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
2805 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
2806 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
2807 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
2809 2003-04-20 Ulrich Drepper <drepper@redhat.com>
2811 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
2812 first syscall parameter to const char*.
2814 2003-04-19 Ulrich Drepper <drepper@redhat.com>
2816 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
2818 * configure.in: Add AC_PROG_CXX.
2819 * config.make.in (CXX): Define.
2821 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
2822 __len to size_t to avoid warnings.
2824 2003-04-18 Jes Sorensen <jes@wildopensource.com>
2826 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
2828 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2830 2003-04-19 Ulrich Drepper <drepper@redhat.com>
2832 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
2833 UNREGISTER_ATFORK if d == NULL.
2835 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
2836 * dirent/dirent.h: Likewise.
2837 * dlfcn/dlfcn.h: Likewise.
2838 * grp/grp.h: Likewise.
2839 * iconv/iconv.h: Likewise.
2840 * io/fcntl.h: Likewise.
2841 * io/ftw.h: Likewise.
2842 * libio/stdio.h: Likewise.
2843 * misc/sys/mman.h: Likewise.
2844 * misc/sys/select.h: Likewise.
2845 * misc/sys/syslog.h: Likewise.
2846 * misc/sys/uio.h: Likewise.
2847 * posix/spawn.h: Likewise.
2848 * posix/unistd.h: Likewise.
2849 * posix/sys/wait.h: Likewise.
2850 * pwd/pwd.h: Likewise.
2851 * resolv/netdb.h: Likewise.
2852 * rt/aio.h: Likewise.
2853 * shadow/shadow.h: Likewise.
2854 * signal/signal.h: Likewise.
2855 * socket/sys/socket.h: Likewise.
2856 * stdlib/stdlib.h: Likewise.
2857 * streams/stropts.h: Likewise.
2858 * string/string.h: Likewise.
2859 * sysdeps/gnu/utmpx.h: Likewise.
2860 * sysvipc/sys/msg.h: Likewise.
2861 * termios/termios.h: Likewise.
2862 * time/time.h: Likewise.
2863 * wcsmbs/wchar.h: Likewise.
2864 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
2866 * misc/daemon.c: Likewise.
2867 * sysdeps/generic/backtracesymsfd.c: Likewise.
2868 * sysdeps/generic/check_fds.c: Likewise.
2869 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2870 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
2871 * sysdeps/generic/not-cancel.h: New file.
2872 * csu/Makefile (distribute): Add not-cancel.h.
2873 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
2874 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
2875 for assert.c and assert-perr.c to include <fatal-prepare.h>.
2876 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
2878 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
2879 errno and unlink first.
2881 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
2883 2003-04-18 Ulrich Drepper <drepper@redhat.com>
2885 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
2886 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
2888 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2890 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
2892 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
2893 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
2896 * signal/Makefile (tests): Add tst-sigsimple.
2897 * signal/tst-sigsimple.c: New file.
2899 2003-04-16 Jakub Jelinek <jakub@redhat.com>
2901 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
2903 (tests): Add tst-tls1[0-2].
2904 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
2905 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
2906 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
2907 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
2908 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
2909 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
2910 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
2911 * elf/tst-tls10.c: New test.
2912 * elf/tst-tls11.c: New test.
2913 * elf/tst-tls12.c: New test.
2914 * elf/tst-tls10.h: New file.
2915 * elf/tst-tlsmod7.c: New file.
2916 * elf/tst-tlsmod8.c: New file.
2917 * elf/tst-tlsmod9.c: New file.
2918 * elf/tst-tlsmod10.c: New file.
2919 * elf/tst-tlsmod11.c: New file.
2920 * elf/tst-tlsmod12.c: New file.
2922 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2924 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
2925 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
2926 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
2928 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2930 * posix/regex.h: Include <sys/types.h>.
2932 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
2933 The signal number must be checked.
2934 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
2935 The signal number must be checked [PR libc/5004].
2937 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
2938 don't do anything fancy.
2940 * sysdeps/generic/bits/libc-lock.h: Define
2941 __rtld_lock_define_initialized_recursive.
2943 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
2944 contacting nscd if NOT_USENSCD_NAME > 0.
2945 * nss/nsswitch.c (__nss_disable_nscd): New function.
2946 * nss/nsswitch.h: Declare it.
2947 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
2948 * nscd/nscd.c (main): Call __nss_disable_nscd.
2950 2003-04-16 Ulrich Drepper <drepper@redhat.com>
2952 * stdio-common/perror.c (perror): We don't need to set the offset
2953 to _IO_pos_bad, this is how streams are initialized.
2955 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
2956 (time_output): If necessary, allocate new buffer for .name string if
2957 padding is required.
2959 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
2960 before copying. This might leave holes in the list. Adjust
2961 pointers if necessary.
2962 (netlink_receive): Allocate only one block.
2963 (free_netlink_handle): Adjust appropriately.
2964 (getifaddrs): Lots of cleanups.
2966 * string/test-strncpy.c (do_one_test): Mark start and stop as
2968 * string/test-memchr.c: Likewise.
2969 * string/test-memcmp.c: Likewise.
2970 * string/test-memcpy.c: Likewise.
2971 * string/test-memmove.c: Likewise.
2972 * string/test-memset.c: Likewise.
2973 * string/test-strcat.c: Likewise.
2974 * string/test-strchr.c: Likewise.
2975 * string/test-strcmp.c: Likewise.
2976 * string/test-strcpy.c: Likewise.
2977 * string/test-strlen.c: Likewise.
2978 * string/test-strncmp.c: Likewise.
2979 * string/test-strpbrk.c: Likewise.
2980 * string/test-strrchr.c: Likewise.
2981 * string/test-strspn.c: Likewise.
2983 2003-04-15 Roland McGrath <roland@redhat.com>
2985 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
2987 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
2988 INTUSE(__register_frame_info_bases).
2990 2003-04-15 Ulrich Drepper <drepper@redhat.com>
2992 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
2993 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
2994 AT_SYSINFO_EH_FRAME. Adjust string width.
2995 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
2996 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
2997 Add _dl_sysinfo_eh_frame field.
2998 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
2999 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3001 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3002 if _dl_sysinfo_eh_frame is non-NULL.
3004 * Makeconfig (gnulib): Add -lgcc_eh.
3006 * config.h.in: Define HAVE_FORCED_UNWIND.
3008 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3010 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3011 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3013 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3015 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3016 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3017 against local symbol in conflict processing.
3019 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3021 * sysdeps/powerpc/bits/atomic.h
3022 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3023 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3025 (__arch_compare_and_exchange_val_32_acq): Define.
3026 (atomic_compare_and_exchange_val_acq): Define.
3028 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3030 * include/atomic.h: Pretty printing.
3032 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3034 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3036 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3038 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3039 * sysdeps/x86_64/bits/atomic.h: Likewise.
3041 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3043 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3044 POPARGS_1 to emit labels for the mov instructions.
3046 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3048 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3050 2003-04-14 Roland McGrath <roland@redhat.com>
3052 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3055 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3057 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3059 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3060 position. Reported by jreiser@BitWagon.com.
3062 2003-04-13 Ulrich Drepper <drepper@redhat.com>
3064 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3065 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3066 * sysdeps/generic/unwind-dw2.c: Likewise.
3067 * sysdeps/generic/unwind-pe.h: Likewise.
3069 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
3071 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3072 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3073 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3074 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3075 (mcontext_t): Make it match the 32-bit mips kernel in o32.
3076 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3077 the mips and mips64 headers.
3078 (struct user): Port to n32/n64.
3080 2003-04-12 Ulrich Drepper <drepper@redhat.com>
3082 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3085 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3086 __ASSUME_VSYSCALL is defined don't add restorer.
3087 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3088 __ASSUME_VSYSCALL for 2.5.53.
3090 2003-04-11 Ulrich Drepper <drepper@redhat.com>
3092 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3093 Remove HAVE_CANCELBUF code. Replace with code using the new
3094 initializers for unwind-based cleanup handling.
3095 * sysdeps/generic/unwind.h: Update from latest gcc version.
3096 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3097 places to allow unwind data generation.
3098 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3099 * sysdeps/x86_64/bits/setjmp.h: Likewise.
3100 * sysdeps/sh/bits/setjmp.h: Likewise.
3101 * sysdeps/powerpc/bits/setjmp.h: Likewise.
3102 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3103 * sysdeps/alpha/bits/setjmp.h: Likewise.
3105 2003-04-11 Roland McGrath <roland@redhat.com>
3107 * csu/tst-empty.c: New file.
3108 * csu/Makefile (tests, tests-static): Add it.
3110 2003-04-11 Jakub Jelinek <jakub@redhat.com>
3112 * string/test-strcmp.c (do_random_tests): Test whether return value
3113 has been promoted to wordsize if the ABI requires caller to do so.
3114 * string/test-strncmp.c (do_random_tests): Likewise.
3115 * string/test-memcmp.c (do_random_tests): Likewise.
3117 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3121 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3122 is not defined, but the prctl constants are.
3124 * string/tester.c (test_strcmp): Fix a typo.
3126 2003-04-09 Ulrich Drepper <drepper@redhat.com>
3128 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3129 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3131 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3133 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3135 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3137 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
3139 * sysdeps/mips/mips64/memset.S: Likewise.
3140 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
3141 Use t0 instead of t4 as temporary.
3143 2003-04-07 Ulrich Drepper <drepper@redhat.com>
3145 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
3146 feof_unlocked instead of feof.
3147 (add_dir): Ignore trailing whitespace.
3149 2003-04-07 Jakub Jelinek <jakub@redhat.com>
3151 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
3152 sum of SIZE1 and SIZE2 arguments.
3154 2003-04-06 Ulrich Drepper <drepper@redhat.com>
3156 * iconv/iconv_prog.c (process_block): Don't print message about
3157 invalid input if the -c option is used.
3158 (main): Correctly append IGNORE string for -c option.
3160 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3162 * sysdeps/sh/bits/atomic.h: Moved to ...
3163 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
3164 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
3166 (atomic_bit_set, atomic_bit_test_set): Likewise.
3167 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
3169 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3171 2003-04-06 Roland McGrath <roland@redhat.com>
3173 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
3174 restoration as done for setcontext yesterday.
3176 2003-04-06 Jakub Jelinek <jakub@redhat.com>
3178 * elf/rtld.c: Revert 2003-03-14 change.
3179 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
3180 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
3182 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3184 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
3186 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3187 Always initialize *signgamp before returning an error.
3189 2003-04-05 Roland McGrath <roland@redhat.com>
3191 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
3192 below the stack pointer even if switching to the same context we are
3195 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3197 * catgets/gencat.c (read_input_file): Make sure that \n is not
3198 alone on the line before testing for continuation.
3200 * math/test-tgmath.c (compile_test): Initialize c.
3202 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
3204 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
3205 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
3206 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
3208 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
3209 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
3210 structure on n32 as well.
3211 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
3212 data types on n32 and n64.
3214 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3216 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
3219 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
3220 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
3221 instead of __register_atfork.
3223 2003-04-05 Jakub Jelinek <jakub@redhat.com>
3225 * stdio-common/reg-printf.c (__register_printf_function): Calloc
3226 instead of malloc __printf_arginfo_table and __printf_function_table.
3227 Reported by John Reiser <jreiser@BitWagon.com>.
3229 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
3231 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
3232 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
3234 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
3237 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
3239 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
3242 2003-04-03 Roland McGrath <roland@redhat.com>
3244 * configure.in: Fix up use of compilation flags to match the build:
3245 For .s files, $ASFLAGS;
3246 For .S files, $CPPFLAGS $ASFLAGS;
3247 For .c files, $CFLAGS $CPPFLAGS;
3248 when linking, add $LDFLAGS.
3249 * configure: Regenerated.
3251 2003-04-03 Jakub Jelinek <jakub@redhat.com>
3253 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
3254 for atomic_compare_and_exchange_bool_acq failure.
3256 2003-04-03 Ulrich Drepper <drepper@redhat.com>
3258 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
3259 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
3260 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
3261 Remove declaration of pthread_atfork.
3263 2003-04-02 Ulrich Drepper <drepper@redhat.com>
3265 * locale/iso-639.def: Add many more languages from the current ISO 639.
3267 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
3268 * sysdeps/generic/semtimedop.c: New file.
3269 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
3270 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
3271 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3272 * sysvipc/Makefile (routines): Add semtimedop.
3273 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
3274 * sysvipc/sys/sem.h: Declare semtimedop.
3276 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
3278 * configure.in: Check for __register_frame_info in both
3280 * configure: Regenerated.
3282 2003-04-01 Roland McGrath <roland@redhat.com>
3284 * scripts/abilist.awk: Allow dots in soname suffix.
3286 * scripts/abilist.awk (emit): Fix bailout condition.
3288 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3290 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
3293 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
3294 register as input to asm.
3296 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3298 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
3300 2003-04-01 Andreas Jaeger <aj@suse.de>
3302 * configure.in: Output as/ld as name if version is too old.
3304 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
3306 * configure.in: Don't require an installed C library in the test
3307 for ".set" assembler support.
3309 2003-03-31 Roland McGrath <roland@redhat.com>
3311 * signal/tst-sigset.c: New file.
3312 * signal/Makefile (tests): Add it.
3314 2003-03-31 Ulrich Drepper <drepper@redhat.com>
3316 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
3317 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
3318 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
3319 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
3320 (__SIGRTMAX): Adjust accordingly.
3321 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
3322 second compatibility symbol set.
3323 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
3325 2003-03-31 Andreas Schwab <schwab@suse.de>
3327 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
3329 (atomic_decrement_and_test): Fix test.
3331 2003-03-31 Jakub Jelinek <jakub@redhat.com>
3333 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
3334 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
3335 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
3336 * sysdeps/sparc/sparc32/atomicity.h: Removed.
3337 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
3338 * sysdeps/sparc/sparc64/atomicity.h: Removed.
3340 2003-03-30 Roland McGrath <roland@redhat.com>
3342 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
3344 * intl/po2test.sed: Anchor substitution regexps to fix last change.
3346 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
3348 * intl/po2test.sed: Unify the transformations for msgid and msgstr
3349 and remove a useless s/// command.
3351 2003-03-27 David Mosberger <davidm@hpl.hp.com>
3353 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
3354 directive into empty .prologue region to ensure that call-chain
3355 is terminated even for the first instruction.
3357 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
3358 to terminate call-chain right from the get-go.
3360 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
3361 stop bit between compare & branch.
3363 2003-03-29 Ulrich Drepper <drepper@redhat.com>
3365 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
3366 point correctly [PR libc/4993].
3368 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
3369 netlink_open calls if netlink is known to not be available.
3371 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
3373 * configure.in: Add mips64* support.
3374 * sysdeps/mips/bits/endian.h: Make it bi-endian.
3375 * sysdeps/mips/mipsel/bits/endian.h: Removed.
3376 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
3377 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
3378 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
3379 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
3380 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
3381 * sysdeps/mips/Implies: Moved wordsize-32 to...
3382 * sysdeps/mips/mips32/Implies: New file.
3383 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
3385 (ret, PSEUDO_END): Moved past END.
3386 (PSEUDO): Moved to...
3387 * sysdeps/unix/mips/mips32/sysdep.h: New file.
3388 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
3389 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
3390 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
3391 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
3392 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
3394 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
3397 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
3399 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
3400 * inet/test-ifaddrs.c: Allow AF_PACKET.
3401 * sysdeps/unix/sysv/linux/kernel-features.h: Add
3402 __ASSUME_NETLINK_SUPPORT.
3404 2003-03-28 Ulrich Drepper <drepper@redhat.com>
3406 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
3408 2003-03-26 H.J. Lu <hjl@gnu.org>
3410 * elf/vismod.h (getvarlocal1): Return const char **.
3411 (getvarinmod1): Likewise.
3412 (getvaritcpt1): Likewise.
3413 (getvarlocal2): Likewise.
3414 (getvarinmod2): Likewise.
3415 (getvaritcpt2): Likewise.
3416 (getvaritcpt3): Likewise.
3417 * elf/vismain.c (do_test): Adjusted.
3418 * elf/vismod1.c (getvarlocal1): Return address.
3419 (getvarinmod1): Likewise.
3420 (getvaritcpt1): Likewise.
3421 * elf/vismod2.c (getvarlocal2): Likewise.
3422 (getvarinmod2): Likewise.
3423 (getvaritcpt2): Likewise.
3424 * elf/vismod3.c (getvaritcpt3): Likewise.
3426 2003-03-28 Roland McGrath <roland@redhat.com>
3428 * elf/vismain.c (do_test): Print both addresses when they don't match.
3430 * scripts/abilist.awk: If given -v filename_regexp and/or -v
3431 libname_regexp when parsing names, then produce output only
3432 for those matching the given regexps. In combine mode, save all
3433 stanzas for a final sorting by stanza header at the end.
3434 Emit a blank line between stanzas.
3436 * scripts/abilist.awk: When given -v combine=1, do parse_names and
3437 emit a single output stream with lib name in stanza header lines.
3439 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
3441 2003-03-27 Roland McGrath <roland@redhat.com>
3443 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
3444 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
3446 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3448 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3449 Return old value. Make asm output reg constraint earlyclobber.
3451 (__arch_compare_and_exchange_8_acq): ... this.
3452 (__arch_compare_and_exchange_val_16_acq):
3453 Return old value. Make asm output reg constraint earlyclobber.
3455 (__arch_compare_and_exchange_16_acq): ... this.
3456 (__arch_compare_and_exchange_val_32_acq):
3457 Return old value. Make asm output reg constraint earlyclobber.
3459 (__arch_compare_and_exchange_32_acq): ... this.
3460 (__arch_compare_and_exchange_val_64_acq):
3462 (__arch_compare_and_exchange_64_acq): ... this.
3463 (atomic_exchange_and_add): Use local variables and
3464 __arch_compare_and_exchange_val_64_acq.
3465 (atomic_add): Likewise.
3466 (atomic_add_negative, atomic_add_zero): Use local variables.
3468 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
3470 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
3472 2003-03-27 Ulrich Drepper <drepper@redhat.com>
3474 * Makefile: Remove libmd5crypt goal.
3476 2003-03-25 Jakub Jelinek <jakub@redhat.com>
3478 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
3479 special handling of relocations against local symbols.
3481 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
3483 * sysdeps/powerpc/bits/atomic.h
3484 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
3485 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
3486 Define PPC64 specific version.
3487 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
3488 Change (mem) constraint to "b".
3489 [__powerpc64__] (__arch_atomic_exchange_and add_64):
3490 Replace addi with add. Change (value) contraint to "r".
3491 Change (mem) constraint to "b".
3492 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
3493 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
3494 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
3495 (__arch_atomic_decrement_if_positive_32): New macro.
3496 (atomic_decrement_if_positive): Use __arch* macros.
3498 2003-03-27 Jakub Jelinek <jakub@redhat.com>
3500 * sysdeps/ia64/fpu/libm-test-ulps: Update.
3502 2003-03-27 Roland McGrath <roland@redhat.com>
3504 * scripts/rpm2dynsym.sh: New file.
3505 * Makefile (distribute): Add it.
3507 2003-03-27 David Mosberger <davidm@hpl.hp.com>
3509 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
3510 ar.unat before returning. Add missing .mem.offset directives
3511 to ensure file gets assembled without warnings.
3512 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3514 2003-03-27 Jakub Jelinek <jakub@redhat.com>
3516 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
3517 Return -1 instead of 0 if clock_getres failed.
3519 2003-03-27 Roland McGrath <roland@redhat.com>
3521 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
3522 header lines and write out foo.symlist files for each foo.so.NN listed.
3524 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
3525 This symbol is exported, and we don't want to hide it.
3526 Add libc_hidden_proto instead.
3527 (_IO_file_jumps): Add libc_hidden_proto.
3528 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
3530 * libio/fileops.c (_IO_file_jumps): Likewise.
3531 * libio/stdfiles.c: Don't use INTUSE on them.
3532 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
3533 * libio/iofopen.c (__fopen_internal): Likewise.
3534 * libio/freopen.c (freopen): Likewise.
3535 * libio/freopen64.c (freopen64): Likewise.
3536 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3538 * Makerules (check-abi) [$(enable-check-abi) = warn]:
3539 Ignore exit status from diff.
3540 * configure.in (enable_check_abi): Document possible value "warn".
3541 Change default to no for now.
3542 * configure: Regenerated.
3544 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
3545 macro calls and a #include <stub-tag.h> at the end.
3546 * Makerules ($(objpfx)stubs): Tweak sed commands.
3548 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
3549 caller column for *xattr syscalls, since they are in sysdeps/generic.
3551 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
3552 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
3554 2003-03-26 Roland McGrath <roland@redhat.com>
3556 * Makerules (check-abi-config): Use /thread instead of /tls when
3557 use-thread and not just use-tls is set.
3559 * Makerules (update-abi): Put quotes around $(update-abi-config).
3561 * elf/Makefile (check-abi): Depend on check-abi-ld.
3562 (update-abi): Depend on update-abi-ld.
3564 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
3566 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
3567 do not check for errors (unless testing for 32bit variant).
3568 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3570 2003-03-27 Philip Blundell <philb@gnu.org>
3572 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
3573 unconditional mov. Remove nop.
3575 * sysdeps/unix/sysv/linux/kernel-features.h
3576 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
3577 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
3578 when __ASSUME_VFORK_SYSCALL is defined.
3579 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
3580 __ASSUME_MMAP2_SYSCALL.
3581 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
3582 __ASSUME_REALTIME_SIGNALS.
3584 2003-03-26 Ulrich Drepper <drepper@redhat.com>
3586 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
3587 only if DL_NO_COPY_RELOCS is not defined.
3588 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
3590 2003-03-26 Roland McGrath <roland@redhat.com>
3592 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
3593 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
3594 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
3595 (sysdep_routines): Add stub-syscalls.
3596 ($(objpfx)stub-syscalls.c): New target.
3597 (generated): Add stub-syscalls.c.
3599 * tls.make.c: Also define use-tls according to USE_TLS macro.
3601 2003-03-26 Ulrich Drepper <drepper@redhat.com>
3603 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
3604 no-op padding element.
3605 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
3606 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3607 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3608 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3610 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
3612 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
3613 condition check for the return value of getgroups32.
3615 2003-03-26 Jakub Jelinek <jakub@redhat.com>
3617 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
3619 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
3620 PSEUDO_END_NOERRNO): Define.
3621 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
3622 Define to PSEUDO_END.
3624 2003-03-26 Ulrich Drepper <drepper@redhat.com>
3626 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
3628 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
3630 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
3631 * iconvdata/bug-iconv4.c: New file.
3632 * iconvdata/Makefile (tests): Add bug-iconv4.
3634 2003-03-25 H.J. Lu <hjl@gnu.org>
3636 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
3638 (_dl_lookup_versioned_symbol): Likewise.
3640 2003-03-26 Jakub Jelinek <jakub@redhat.com>
3642 * csu/tst-atomic.c (do_test): Add some new
3643 atomic_compare_and_exchange_val_acq, atomic_add_zero,
3644 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
3645 * include/atomic.h (atomic_add_negative, atomic_add_zero):
3646 Prefix local variable so that it doesn't clash with the one
3647 in atomic_exchange_and_add.
3648 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
3650 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
3651 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
3652 value into register.
3653 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
3654 Cast newval to long.
3655 * sysdeps/x86_64/bits/atomic.h
3656 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
3658 (atomic_exchange): Cast newvalue to long if sizeof == 8.
3659 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
3660 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3661 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
3663 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
3665 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
3666 bit from backtrace addresses.
3668 2003-03-21 Andreas Schwab <schwab@suse.de>
3670 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
3673 2003-03-25 Roland McGrath <roland@redhat.com>
3675 * config.make.in (enable-check-abi): New variable from configure.
3676 * configure.in (enable_check_abi): New substituted variable,
3677 controlled by --{enable,disable}-check-abi (default yes).
3678 * configure: Regenerated.
3679 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
3680 on check-abi dependency.
3682 2003-03-26 Andreas Schwab <schwab@suse.de>
3684 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
3685 * include/atomic.h: Likewise.
3687 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
3689 2003-03-25 Roland McGrath <roland@redhat.com>
3691 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
3692 (__arch_atomic_exchange_64): New macro.
3693 (atomic_exchange): Use them.
3694 (__arch_atomic_exchange_and_add_32): New macro.
3695 (__arch_atomic_exchange_and_add_64): New macro.
3696 (atomic_exchange_and_add): Use them.
3697 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
3699 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
3701 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
3703 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
3705 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
3706 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
3707 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3708 to decide whether to add padding.
3709 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3710 to decide whether to add padding.
3711 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
3712 old_kernel_sigaction): Likewise.
3714 2003-03-25 Ulrich Drepper <drepper@redhat.com>
3716 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
3717 atomic_add_zero were supposed to do.
3718 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
3721 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
3722 This matches the new timer implementation.
3723 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
3725 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
3727 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
3728 timer info for what the kernel provides these days.
3729 (struct sigevent): Add _tid field.
3730 Define SIGEV_THREAD_ID.
3731 Remove struct __pthread_attr_s forward declaration.
3732 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
3733 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3734 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3735 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3737 * Versions.def (librt): Add GLIBC_2.3.3.
3739 * abilist/libpthread.abilist: Update for nptl.
3741 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
3743 * inet/netinet/in.h: Add IPPROTO_SCTP.
3745 2003-03-24 Ulrich Drepper <drepper@redhat.com>
3747 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
3749 2003-03-24 Philip Blundell <philb@gnu.org>
3751 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
3752 Remove a1 from clobber list.
3754 2003-03-24 Ulrich Drepper <drepper@redhat.com>
3756 * timezone/antarctica: Update from tzdata2003a.
3757 * timezone/asia: Likewise.
3758 * timezone/australasia: Likewise.
3759 * timezone/europe: Likewise.
3760 * timezone/iso3166.tab: Likewise.
3761 * timezone/northamerica: Likewise.
3762 * timezone/southamerica: Likewise.
3763 * timezone/zone.tab: Likewise.
3765 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
3767 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
3769 2003-03-23 Ulrich Drepper <drepper@redhat.com>
3771 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
3772 unwanted expansion by definining to ret. Patch by Ian Wienand.
3774 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
3775 the parameter description to denote no error checking. Generate
3776 appropriate pseudo asm code.
3777 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
3778 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
3779 getpgrp, and getppid with 'E'.
3780 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
3781 PSEUDO_END_NOERRNO, and ret_NOERRNO.
3782 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3783 * sysdeps/unix/sysdep.h: Likewise.
3784 * sysdeps/unix/alpha/sysdep.h: Likewise.
3785 * sysdeps/unix/sparc/sysdep.h: Likewise.
3786 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
3787 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
3788 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
3789 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3790 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3791 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3792 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3793 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3794 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
3795 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3796 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3798 2003-03-23 Roland McGrath <roland@redhat.com>
3800 * Makeconfig (+includes): Don't use $(last-includes).
3802 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
3804 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
3805 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3807 2003-03-23 Jakub Jelinek <jakub@redhat.com>
3809 * sysdeps/alpha/fpu/libm-test-ulps: Update.
3810 * sysdeps/arm/libm-test-ulps: Update.
3811 * sysdeps/hppa/fpu/libm-test-ulps: Update.
3812 * sysdeps/ia64/fpu/libm-test-ulps: Update.
3813 * sysdeps/mips/fpu/libm-test-ulps: Update.
3814 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3815 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3816 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
3817 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
3818 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
3819 * sysdeps/s390/fpu/libm-test-ulps: Update.
3820 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3822 2003-03-22 Roland McGrath <roland@redhat.com>
3824 * include/atomic.h: Put parens around all macro arguments.
3825 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
3826 (atomic_compare_and_exchange_val_acq): Use it.
3827 (atomic_compare_and_exchange_bool_acq): Likewise.
3828 (atomic_increment_and_test): Invert sense of test.
3829 (atomic_decrement_and_test): Likewise.
3830 * csu/tst-atomic.c: Update those tests to match.
3832 2003-03-22 Jakub Jelinek <jakub@redhat.com>
3834 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
3835 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
3836 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
3837 __oldval variable in the macro, since it might be macro argument.
3838 (atomic_decrement_if_positive): Initialize __memp, remove setting
3839 of non-existent variable.
3840 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
3841 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
3842 using atomic_compare_and_exchange_val_acq.
3843 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
3844 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3846 (__arch_compare_and_exchange_bool_8_acq): ... this.
3847 (__arch_compare_and_exchange_val_16_acq): Renamed from...
3848 (__arch_compare_and_exchange_bool_16_acq): ... this.
3849 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
3851 (__arch_compare_and_exchange_bool_32_acq): ... this.
3852 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
3854 (__arch_compare_and_exchange_bool_64_acq): ... this.
3855 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
3856 variables types instead of assuming int.
3857 Change prefix of local variables to __arch.
3858 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
3860 (atomic_compare_and_exchange_val_acq,
3861 atomic_compare_and_exchange_bool_acq): Define.
3863 * csu/tst-atomic.c: New test.
3864 * csu/tst-atomic-long.c: New test.
3865 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
3867 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
3869 * sysdeps/s390/Versions: Add trailing newline.
3871 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
3872 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
3874 2003-03-22 Andreas Schwab <schwab@suse.de>
3876 * sysdeps/m68k/fpu/libm-test-ulps: Update.
3878 * sysdeps/m68k/m68020/bits/atomic.h: New file.
3879 * sysdeps/m68k/m68020/atomicity.h: Removed.
3881 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
3883 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
3884 data structures and macros. Protect from multiple inclusion.
3886 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
3889 2003-03-21 Andreas Jaeger <aj@suse.de>
3891 * sysdeps/i386/fpu/libm-test-ulps: Update.
3893 * math/libm-test.inc (tgamma_test): Recompute some constants with
3894 36 digits precision.
3895 (lgamma_test): Likewise.
3896 (ccos_test): Likewise.
3897 (ccosh_test): Likewise.
3898 (clog10_test): Likewise.
3899 (csin_test): Likewise.
3900 (csinh_test): Likewise.
3901 (ctan_test): Likewise.
3902 (ctanh_test): Likewise.
3904 2003-03-19 Jakub Jelinek <jakub@redhat.com>
3906 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
3908 2003-03-21 Roland McGrath <roland@redhat.com>
3910 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
3911 constraint to permit non-constant BIT argument.
3912 (atomic_bit_test_set): Likewise.
3913 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
3914 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
3915 For quadword case, use "i" constraint if __builtin_constant_p and < 32
3916 or "r" constraint otherwise.
3918 * configure.in: Move AC_PROG_CC and other program-finding before all
3920 * configure: Regenerated.
3922 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3924 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
3925 unaligned copying of 8-15 bytes. From Chris Demetriou
3926 <cgd@broadcom.com>. Fix label names.
3927 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
3928 change as to memcpy.S.
3929 * sysdeps/mips/memcpy.S: Formatting changes.
3930 * sysdeps/mips/memset.S: Likewise.
3932 2003-03-21 Roland McGrath <roland@redhat.com>
3934 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
3936 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3938 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
3939 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
3941 2003-03-21 Roland McGrath <roland@redhat.com>
3943 * sysdeps/i386/i486/bits/atomic.h
3944 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
3945 version of the macro to avoid compile-time warnings.
3946 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
3947 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
3948 (atomic_increment, atomic_decrement): Likewise.
3950 2003-03-21 Ulrich Drepper <drepper@redhat.com>
3952 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
3953 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3955 2003-03-21 Roland McGrath <roland@redhat.com>
3957 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
3959 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3961 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
3962 atomic_compare_and_exchange_val_rel,
3963 atomic_compare_and_exchange_bool_acq, and
3964 atomic_compare_and_exchange_bool_rel instead of
3965 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
3966 * sysdeps/i386/i486/bits/atomic.h: Define
3967 __arch_compare_and_exchange_val_*_acq instead of
3968 __arch_compare_and_exchange_*_acq.
3969 * sysdeps/x86_64/bits/atomic.h: Likewise.
3970 * sysdeps/ia64/bits/atomic.h: Define
3971 __arch_compare_and_exchange_bool_*_acq instead of
3972 __arch_compare_and_exchange_*_acq.
3973 * sysdeps/powerpc/bits/atomic.h: Likewise.
3974 * sysdeps/s390/bits/atomic.h: Likewise.
3975 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
3976 * malloc/set-freeres.c: Likewise.
3977 * nscd/cache.c: Likewise.
3978 * stdlib/cxa_finalize.c: Likewise.
3979 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3981 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3983 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
3984 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
3985 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
3987 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
3988 into high and low halves on n64.
3989 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3990 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3991 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3993 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3995 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
3996 correct atomic_compare_and_exchange_acq semantics.
3998 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4000 * sysdeps/mips/ieee754.h: Remove excess #endif.
4002 2003-03-20 Roland McGrath <roland@redhat.com>
4004 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4005 variable. Remove superfluous memory clobber.
4007 * include/atomic.h: Syntax braino fix.
4009 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4010 in decimal. Don't bail if niced at start. Just check that nice call
4011 bumps the total at all.
4013 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4015 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4016 including pc, gp, sp and fp, as long long.
4017 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4018 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4019 Add gp argument, and set gp in the jmpbuf to it.
4020 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4022 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4024 * include/atomic.h: Define atomic_exchange and
4025 atomic_decrement_if_positive if not already defined. Add some
4027 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4028 * sysdeps/x86_64/bits/atomic.h: Likewise.
4029 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4030 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4031 atomic_exchange, atomic_exchange_and_add, and
4032 atomic_decrement_if_positive
4034 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4036 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4037 with a single instruction.
4039 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4041 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4043 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4044 Word before comparing with gotsym. Take reloc_addr argument as
4045 void*. Remove the code added for the compiler to drop any
4046 alignment assumptions.
4048 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4050 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4051 * include/atomic.h: New file.
4052 * sysdeps/i386/i486/bits/atomic.h: New file.
4053 * sysdeps/x86_64/bits/atomic.h: New file.
4054 * sysdeps/s390/bits/atomic.h: New file.
4055 * sysdeps/sh/bits/atomic.h: New file.
4056 * sysdeps/ia64/bits/atomic.h: New file.
4057 * sysdeps/powerpc/bits/atomic.h: New file.
4058 * sysdeps/generic/bits/atomic.h: New file.
4059 * sysdeps/i386/i486/atomicity.h: Removed.
4060 * sysdeps/x86_64/atomicity.h: Removed.
4061 * sysdeps/s390/s390-32/atomicity.h: Removed.
4062 * sysdeps/s390/s390-64/atomicity.h: Removed.
4063 * sysdeps/ia64/atomicity.h: Removed.
4064 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4065 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4066 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
4067 use of macros from atomicity.h to new names and semantics.
4068 * gmon_mcount.c: Likewise.
4069 * malloc/set-freeres.c: Likewise.
4070 * nscd/cache.c: Likewise.
4071 * stdlib/cxa_finalize.c: Likewise.
4072 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4074 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4076 * sysdeps/mips/ieee754.h: New file, suitable to replace both
4077 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4078 mips-specific for now.
4080 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4082 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
4083 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
4084 * stdlib/tst-strtod.c: Add test for the bug.
4086 * posix/tst-nice.c (do_test): Remove invalid of return value.
4087 Don't run test if initial level != 0.
4089 2003-03-19 Amos Waterland <apw@us.ibm.com>
4091 * posix/tst-nice.c: New file.
4092 * posix/Makefile (tests): Add tst-nice.
4094 2003-03-18 Roland McGrath <roland@redhat.com>
4096 * abilist: New directory of libfoo.abilist files maintained using
4097 scripts/merge-abilist.awk and "make update-abi" rules.
4098 * Makefile (distribute): Add abilist/*.abilist.
4099 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4100 Depend on check-abi.
4102 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4103 * configure: Regenerated.
4105 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4107 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4109 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4112 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
4114 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4116 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4118 * Versions.def: Add GLIBC_2.3.3 for libpthread.
4120 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4122 * sysdeps/generic/libc-start.c [!SHARED &&
4123 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4125 2003-03-17 Roland McGrath <roland@redhat.com>
4127 * include/ctype.h: Revert last change.
4129 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4131 * argp/tst-argp1.c: Use test-skeleton.c.
4132 * locale/tst-C-locale.c: Likewise.
4134 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
4136 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
4137 * sysdeps/mips/mips64/n64/Implies: New file.
4138 * sysdeps/mips/mips64/n64/Makefile: New file.
4139 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
4140 * sysdeps/mips/mips64/n32/Implies: New file.
4141 * sysdeps/mips/mips64/n32/Makefile: New file.
4142 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
4143 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
4144 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
4145 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
4146 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
4147 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
4148 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
4149 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
4150 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
4151 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
4152 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
4153 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
4154 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
4155 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
4157 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
4158 lib64 for mips64/n64 and lib32 for mips64/n32.
4159 (ldd_rewrite_script): Needed for all mips64 configurations.
4160 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4161 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
4162 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
4164 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
4167 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
4168 asm/unistd.h into asm-unistd.h.
4169 * sysdeps/unix/sysv/linux/mips/configure: Generated.
4170 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
4172 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
4173 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
4176 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
4177 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
4178 long type for registers on n32.
4180 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
4182 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
4183 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
4184 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
4185 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
4186 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
4187 * sysdeps/unix/mips/brk.S: Likewise.
4188 * sysdeps/unix/mips/sysdep.S: Likewise.
4189 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4190 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
4191 * sysdeps/mips/sys/ucontext.h: Likewise.
4192 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
4193 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4194 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4195 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4196 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
4197 * sysdeps/mips/mips64/setjmp.S: Likewise.
4198 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
4199 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
4202 2003-03-16 Ulrich Drepper <drepper@redhat.com>
4204 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
4205 not at function level.
4206 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
4208 2003-03-15 Roland McGrath <roland@redhat.com>
4210 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
4211 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4212 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
4213 * nis/nis_table.c (__create_ib_request): Likewise.
4215 * posix/fnmatch_loop.c: Add casts for signedness.
4216 * nss/nss_files/files-hosts.c: Likewise.
4217 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4218 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
4219 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
4221 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
4222 get errors into the log file.
4223 (libc_cv_broken_visibility_attribute): Likewise.
4224 (libc_cv_broken_alias_attribute): Likewise.
4225 (libc_cv_asm_weak_directive): Likewise.
4226 (libc_cv_need_minus_P): Likewise.
4227 (libc_cv_dot_text): Likewise.
4228 (libc_cv_asm_global_directive): Likewise.
4229 (libc_cv_asm_type_prefix): Likewise.
4230 * configure: Regenerated.
4232 * nscd/cache.c (cache_search): Give first arg type `request_type'.
4233 * nscd/nscd.h: Update decl.
4235 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
4236 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4237 * elf/dl-close.c (_dl_close): Likewise.
4238 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
4239 * io/fts.c (fts_build): Likewise.
4240 * elf/cache.c (add_to_cache): Likewise.
4241 * locale/programs/locarchive.c (show_archive_content): Likewise.
4243 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
4245 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
4247 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
4249 2003-03-15 Ulrich Drepper <drepper@redhat.com>
4251 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
4252 code for most parts.
4254 2003-03-15 Roland McGrath <roland@redhat.com>
4256 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
4257 * sysdeps/unix/sysv/linux/system.c: ... here.
4258 (FORK): Don't #define if already #define'd.
4259 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
4260 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
4261 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
4263 * dlfcn/tst-dlinfo.c: New file.
4264 * dlfcn/Makefile (tests): Add tst-dlinfo.
4265 ($(objpfx)tst-dlinfo): New target.
4267 * dlfcn/dlinfo.c: New file.
4268 * dlfcn/Makefile (libdl-routines): Add it.
4269 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
4270 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
4271 [__USE_GNU] (RTLD_DI_*): New enum constants.
4272 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
4273 * elf/dl-load.c (cache_rpath): New inline function.
4274 (_dl_map_object): Use it.
4275 (_dl_rtld_di_serinfo): New function.
4276 * sysdeps/generic/ldsodefs.h: Declare it.
4277 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4279 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
4280 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
4281 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
4282 (__libc_start_main): Just call the generic one for most of the work.
4284 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
4285 static function by that name instead of BP_SYM (__libc_start_main).
4286 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
4287 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
4288 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
4290 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
4291 Use this macro for extra AT_* cases.
4292 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
4293 New macro, guts from ...
4294 (__aux_init_cache): ... here, function removed.
4295 (DL_PLATFORM_INIT): Don't define this.
4297 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
4298 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
4300 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
4302 2003-03-14 Roland McGrath <roland@redhat.com>
4304 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
4306 2003-03-14 Jakub Jelinek <jakub@redhat.com>
4308 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
4310 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4311 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
4313 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
4315 * sysdeps/mips/fpu/bits/mathdef.h: New.
4316 (__NO_LONG_DOUBLE_MATH): Define for o32.
4318 * sysdeps/mips/sys/asm.h: Formatting changes.
4319 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
4320 (CPADD): Define for all of them.
4321 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
4322 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
4323 NARGSAVE): Define per ABI spec.
4324 (END): Don't redefine.
4325 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
4326 LONG_SRAV): Remove duplicate definitions.
4327 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
4328 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
4329 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
4330 (PTR_LA): Define for all 3 ABIs.
4332 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
4333 (elf_machine_matches_host): Prevent linking of o32 and n32
4335 (elf_machine_dynamic): Document assumption on $gp.
4336 (STRINGXP, STRINGXV, STRINGV_): New macros.
4337 (elf_machine_load_address): Use them to stringize PTR_LA and
4339 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
4340 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
4341 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
4342 (__dl_runtime_resolve): Cast the symtab initializer to the
4344 (RTLD_START): Use it. Adjust it for all 3 ABIs.
4345 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
4346 Handle 64-bit R_MIPS_REL composite relocation and accept
4347 R_MIPS_64 relocations to shift addend size to 64 bits.
4348 Document assumption regarding local GOT entries. Document
4349 backward-compatibility departing from the ABI behavior in
4350 applying relocations that reference section symbols, no longer
4351 used. Support relocations to mis-aligned offsets.
4352 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
4354 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
4356 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
4357 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
4358 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
4359 restore_rt functions. Use them.
4361 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4362 .set mips2 on new abis.
4364 2003-03-13 Ulrich Drepper <drepper@redhat.com>
4366 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
4367 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
4368 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
4369 * sysdeps/posix/pathconf.c: Likewise.
4370 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
4371 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4372 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
4374 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
4377 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
4379 * include/gmp.h: Include/gmp-mparam.h.
4380 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
4383 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
4384 ELF_MACHINE_NO_RELA is set.
4385 * elf/rtld.c (dl_main): No prelink support for REL-only.
4387 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
4388 FLAG_MIPS64_LIBN64): Define.
4389 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
4391 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
4392 * sysdeps/mips/memset.S: Likewise.
4393 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
4394 depending on the ABI.
4396 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
4397 Don't .set mips2 on new abi.
4398 (compare_and_swap): Likewise. Support 64-bit longs on n64.
4400 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
4402 2003-03-13 Roland McGrath <roland@redhat.com>
4404 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
4405 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
4407 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
4409 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
4411 * stdlib/fpioconst.c: Likewise.
4412 * stdlib/strtod.c: Likewise.
4414 * sysdeps/mips/add_n.S: Use L macro for local labels.
4415 * sysdeps/mips/addmul_1.S: Likewise.
4416 * sysdeps/mips/lshift.S: Likewise.
4417 * sysdeps/mips/memcpy.S: Likewise.
4418 * sysdeps/mips/memset.S: Likewise.
4419 * sysdeps/mips/mul_1.S: Likewise.
4420 * sysdeps/mips/rshift.S: Likewise.
4421 * sysdeps/mips/sub_n.S: Likewise.
4422 * sysdeps/mips/submul_1.S: Likewise.
4423 * sysdeps/mips/mips64/add_n.S: Likewise.
4424 * sysdeps/mips/mips64/addmul_1.S: Likewise.
4425 * sysdeps/mips/mips64/lshift.S: Likewise.
4426 * sysdeps/mips/mips64/mul_1.S: Likewise.
4427 * sysdeps/mips/mips64/rshift.S: Likewise.
4428 * sysdeps/mips/mips64/sub_n.S: Likewise.
4429 * sysdeps/mips/mips64/submul_1.S: Likewise.
4430 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
4431 conventions. Define END as in sys/asm.h.
4432 * sysdeps/unix/mips/sysdep.S: Likewise.
4433 * sysdeps/unix/mips/wait.S: Likewise.
4434 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4436 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
4437 Cast shifted values that may be too narrow to mp_limb_t.
4438 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
4440 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
4442 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
4443 (__mpn_extract_long_double): Likewise.
4444 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
4445 (__mpn_construct_long_double): Likewise.
4446 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
4447 (__mpn_extract_long_double): Likewise.
4448 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
4449 (__mpn_construct_long_double): Likewise.
4451 2003-03-13 Roland McGrath <roland@redhat.com>
4453 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
4454 entries in the map file match too.
4456 2003-03-13 Guido Guenther <agx@sigxcpu.org>
4458 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
4459 label .Lthread_start since current binutils don't allow branches
4460 to globally visible symbols.
4462 2003-03-13 Jakub Jelinek <jakub@redhat.com>
4464 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
4465 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
4466 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
4467 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
4468 clobbered by the syscall.
4469 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
4470 ASM_ARGS_6): Change constraints from r to index of corresponding
4472 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
4473 ptid and ctid to match kernel.
4474 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
4476 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
4478 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
4479 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
4480 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
4482 2003-03-11 Roland McGrath <roland@redhat.com>
4484 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4485 Check SYM_MAP rather than SYM as definedness check.
4486 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
4487 Don't handle R_PPC64_REL24 reloc.
4488 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4490 * sysdeps/powerpc/powerpc64/dl-machine.h
4491 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
4492 block, so we cover all the TPREL16* flavors without 6 ||s.
4493 [USE_TLS] (elf_machine_tprel): New function.
4494 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
4495 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
4496 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4498 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
4500 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
4501 instead of jalr to invoke subroutine so restoring the $gp register
4504 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
4506 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
4507 to __NR_pread if not defined.
4508 (__NR_pwrite64): Define to __NR_pwrite if not defined.
4510 2003-03-11 Jakub Jelinek <jakub@redhat.com>
4512 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
4513 * sysdeps/unix/sysv/linux/kernel-features.h
4514 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
4517 2003-03-11 Jakub Jelinek <jakub@redhat.com>
4519 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
4520 allocate space even for the trailing '/'.
4521 Reported by John Reiser <jreiser@BitWagon.com>.
4523 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
4524 ASM_CLOBBERS_6): Define.
4525 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
4526 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
4527 to match IA-32 order.
4528 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
4530 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
4532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
4533 Copy extra params for NPTL to registers used in clone syscall.
4535 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4537 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
4538 call names for pread and pwrite.
4540 2003-03-10 Roland McGrath <roland@redhat.com>
4542 * dlfcn/Makefile (libdl-routines): Add dladdr1.
4543 * dlfcn/dladdr1.c: New file.
4544 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
4545 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
4546 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
4547 a const ElfNN_Sym ** to fill in.
4548 * include/dlfcn.h: Update decl. Include <link.h>.
4549 * dlfcn/dladdr.c (dladdr): Update caller.
4550 * malloc/mtrace.c (tr_where): Likewise.
4551 * sysdeps/generic/elf/backtracesyms.c: Likewise.
4552 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4553 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
4554 * Versions.def (libdl): Define GLIBC_2.3.3 set.
4556 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
4558 * sysdeps/unix/Makefile (compile-syscall): New variable.
4559 Pass -g0 to compiler for assembling syscall stubs from stdin.
4561 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
4562 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
4563 Define these to do nothing.
4565 * configure.in: New check for -g on .S files.
4566 * configure: Regenerated.
4567 * config.make.in (have-cpp-asm-debuginfo): New variable.
4568 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
4569 * Makeconfig (ASFLAGS): New variable, if undefined and
4570 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
4571 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
4573 2003-03-09 Roland McGrath <roland@redhat.com>
4575 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
4576 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
4578 2003-03-09 Ulrich Drepper <drepper@redhat.com>
4580 * po/fi.po: Update from translation team.
4581 * po/ca.po: Likewise.
4582 * po/da.po: Likewise.
4584 2003-03-08 Ulrich Drepper <drepper@redhat.com>
4586 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
4588 2003-03-07 Ulrich Drepper <drepper@redhat.com>
4590 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
4592 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
4594 2003-03-07 Roland McGrath <roland@redhat.com>
4596 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
4597 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
4599 2003-03-04 Guido Guenther <agx@sigxcpu.org>
4601 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
4602 stubs, we have INLINE_SYSCALL.
4603 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
4606 2003-03-06 Roland McGrath <roland@redhat.com>
4608 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
4609 permanent extent and add a comment about testing its implicit teardown.
4611 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4613 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
4615 2003-03-05 Ulrich Drepper <drepper@redhat.com>
4617 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
4618 reversed __builtin_expect expectation.
4620 2003-03-05 Roland McGrath <roland@redhat.com>
4622 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
4623 * libio/swscanf.c: Likewise.
4624 * libio/swprintf.c: Likewise.
4626 2003-03-04 Roland McGrath <roland@redhat.com>
4628 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
4629 (elf_machine_rela): Always use RESOLVE_MAP, needed for
4630 R_PPC64_JMP_SLOT as well as TLS cases.
4631 (BIT_INSERT): Move parenthesis where it ought to have been.
4632 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
4634 * posix/confstr.c (confstr): Correct STRING_LEN values for
4635 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
4636 break. Reported by Alexandre Julliard <julliard@winehq.com>.
4638 2003-03-04 Jakub Jelinek <jakub@redhat.com>
4640 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4642 2003-03-04 Ulrich Drepper <drepper@redhat.com>
4644 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
4647 * po/sv.po: Update from translation team.
4649 2003-03-04 Andreas Jaeger <aj@suse.de>
4650 Ulrich Drepper <drepper@redhat.com>
4652 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
4654 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4656 * sysdeps/generic/dl-sysdep.h: Add double include protection.
4658 * po/tr.po: Update from translation team.
4660 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
4661 are holes between the segments. Only call mprotect to set
4662 proection to PROT_NONE if there are some.
4664 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
4667 * include/sched.h (__clone2): Use ... instead of adding all the
4670 2003-03-03 Roland McGrath <roland@redhat.com>
4672 * elf/dl-load.c (struct filebuf): Fix typo in last change.
4674 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
4675 PI_STATIC_AND_HIDDEN.
4677 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
4679 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
4681 * include/sched.h: Update clone2 prototype.
4683 2003-03-03 Andreas Jaeger <aj@suse.de>
4685 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
4686 (llrint): Use it to correct return type.
4689 (llround): Likewise.
4691 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4693 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
4696 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
4697 if ccs parameter isn't valid. Reported by Andreas Schwab.
4699 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4701 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
4702 for system call numbers > 255.
4703 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
4704 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4705 INTERNAL_SYSCALL): Likewise.
4706 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
4707 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
4708 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4709 INTERNAL_SYSCALL): Likewise.
4711 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4713 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
4714 array if it is the initial dtv.
4716 2003-03-03 Ulrich Drepper <drepper@redhat.com>
4718 * po/es.po: Update from translation team.
4719 * po/fr.po: Likewise.
4720 * po/gl.po: Likewise.
4721 * po/sk.po: Likewise.
4722 * po/sv.po: Likewise.
4724 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
4725 * misc/sys/mman.h: Add prototype for remap_file_pages.
4726 * sysdeps/generic/remap_file_pages.c: New file.
4727 * misc/Makefile (routines): Add remap_file_pages.
4728 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
4730 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
4732 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4733 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
4734 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
4735 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
4736 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4737 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
4738 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
4739 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4741 2003-03-03 Roland McGrath <roland@redhat.com>
4743 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
4744 * sysdeps/ia64/dl-machine.h: Likewise.
4745 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
4747 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
4749 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
4750 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
4751 * locale/Versions (libc: GLIBC_2.3): Move those to ...
4752 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
4753 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
4754 * Versions.def (libc): Add GLIBC_2.3.3 set.
4756 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
4757 * sysdeps/ia64/dl-machine.h: Update decl.
4759 2003-03-03 Andreas Jaeger <aj@suse.de>
4761 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
4763 2003-03-02 Roland McGrath <roland@redhat.com>
4765 * scripts/abilist.awk: Reject data items with apparent 0 size.
4767 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
4768 after foo.* as if it were a duplicate.
4770 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
4772 2003-03-02 Ulrich Drepper <drepper@redhat.com>
4774 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
4776 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
4777 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
4778 if not already defined. Use SYSDEP_GETRES to allow other files to
4779 provide alternative implementations.
4780 * sysdeps/unix/sysv/linux/clock_getres.c: New file
4781 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
4782 if not already defined. Use SYSDEP_GETTIME to allow other files to
4783 provide alternative implementations.
4784 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
4785 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
4786 if not already defined. Use SYSDEP_GETTIME to allow other files to
4787 provide alternative implementations.
4788 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
4789 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
4790 other files to provide alternative implementations. Rearrange
4791 tests for invalid parameters.
4792 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
4793 * sysdeps/unix/sysv/linux/sysconf.c: New file.
4794 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4795 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
4796 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
4797 _POSIX_MONOTONIC_CLOCK.
4799 2003-03-02 Roland McGrath <roland@redhat.com>
4801 * scripts/merge-abilist.awk: More checks for bogus input.
4802 Uniquify duplicate config names.
4804 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
4806 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
4807 from dl_reloc_overflow, make global.
4808 (__process_machine_rela): Update callers.
4809 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
4810 Add attribute_hidden to __process_machine_rela decl.
4811 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
4813 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
4816 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
4817 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
4818 (elf_machine_rela): Clean up.
4820 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
4822 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
4823 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
4824 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
4825 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
4826 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
4827 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
4830 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
4831 macros out of [SHARED].
4832 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
4834 * elf/elf.h: Define R_PPC_* relocs for TLS support.
4835 Clean up R_PPC64_* macro definition comments.
4837 * configure.in: In "running configure fragment for" message,
4838 omit $srcdir from the name if we prepended it.
4839 * configure: Regenerated.
4841 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
4842 From Jakub Jelinek <jakub@redhat.com>.
4844 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
4845 which duplicated the O_DIRECT defn.
4847 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4849 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
4852 2003-03-01 Andreas Schwab <schwab@suse.de>
4854 * resolv/Makefile (tests): Don't depend on
4855 $(objpfx)mtrace-tst-leaks when cross compiling.
4857 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
4858 __libc_stack_end through GOT since it is a global symbol.
4860 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4862 * argp/argp.h: Fix a typo.
4863 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
4865 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
4867 2003-02-27 Pat Rankin <rankin@pactechdata.com>
4869 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
4871 (get_subexp): Likewise.
4873 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
4875 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
4877 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4879 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
4881 2003-02-27 Roland McGrath <roland@redhat.com>
4883 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
4884 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
4885 repeat it and avoids the test for the common case.
4886 Clean up and fix calculations for TLS relocs.
4888 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
4889 * sysdeps/powerpc/dl-tls.h: ... here.
4890 (TLS_TP_OFFSET): New macro.
4892 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
4894 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4896 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
4897 code generation changes in recent gcc.
4899 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4901 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
4902 Rename argument to avoid symbol conflict.
4904 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
4905 [__USE_GNU] (O_DIRECT): New macro.
4907 2003-02-24 David Mosberger <davidm@hpl.hp.com>
4909 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
4912 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4914 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
4915 initializer anymore now that res_thread_freeres is more careful.
4917 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
4918 except the PKTINFO. Reset interface in PKTINFO.
4919 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
4921 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
4923 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
4924 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
4926 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
4927 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
4928 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
4929 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
4931 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4932 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
4934 2003-02-25 Andreas Jaeger <aj@suse.de>
4936 * manual/memory.texi (Malloc Tunable Parameters): Clarify
4937 behaviour of M_MMAP_THRESHOLD.
4939 2003-02-25 Roland McGrath <roland@redhat.com>
4941 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
4942 zero, inidicating _res was not initialized yet.
4944 2003-02-24 Ulrich Drepper <drepper@redhat.com>
4946 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
4949 2003-02-24 Roland McGrath <roland@redhat.com>
4951 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
4953 2003-02-23 Roland McGrath <roland@redhat.com>
4955 * sysdeps/posix/pause.c: New file.
4956 * sysdeps/unix/common/pause.c: File removed.
4958 2003-02-23 Ulrich Drepper <drepper@redhat.com>
4960 * sysdeps/generic/bits/confname.h: Remove #ifs.
4962 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
4963 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
4965 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
4968 2003-02-22 Ulrich Drepper <drepper@redhat.com>
4970 * sysdeps/generic/dl-sysdep.c: Avoid warning.
4972 2003-02-22 Roland McGrath <roland@redhat.com>
4974 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
4975 * resolv/Makefile (tests): Add tst-leaks.
4976 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
4977 (tst-leaks-ENV): New variable.
4978 ($(objpfx)mtrace-tst-leaks): New target.
4979 (tests): Depend on it.
4981 * include/libc-internal.h: Declare __libc_thread_freeres.
4983 * Makerules: Fix last change to use $($(subdir)-version) when set.
4985 * Makerules (install-lib-nosubdir): Depend on installed
4986 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
4987 regardless of the libfoo.so target's dependencies.
4989 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
4990 Use that in $(MAKE) calls.
4992 2003-02-22 Ulrich Drepper <drepper@redhat.com>
4994 * catgets/gencat.c (read_input_file): Collision between
4995 auto-assigned numbers and user-defined nubmers is not fatal.
4997 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
4998 * catgets/Makefile: Add rules to run test2.msg test.
4999 * catgets/test2.msg: New file.
5001 * catgets/gencat.c (main): Return 1 if messages have been printed.
5003 * iconv/iconv_prog.c (main): Unify messages.
5005 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5006 when shifting retval.
5007 * stdlib/tst-strtod.c (main): Add strtold test case.
5008 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5010 2003-02-21 Roland McGrath <roland@redhat.com>
5012 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5013 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5014 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5016 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5017 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5018 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5021 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5022 * malloc/thread-freeres.c: New file.
5023 * malloc/Makefile (aux): Add it.
5024 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5025 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5026 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5028 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5029 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5031 2003-02-21 Roland McGrath <roland@frob.com>
5033 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5035 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5036 [$(have-thread-library) = yes].
5038 2003-02-21 Ulrich Drepper <drepper@redhat.com>
5040 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5042 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5043 not chechk for errors (unless testing for 32bit variant).
5044 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5045 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5046 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5048 2003-02-21 Jakub Jelinek <jakub@redhat.com>
5050 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5051 Check for signed overflow, not unsigned.
5053 * sysdeps/sparc/sparc64/elf/configure.in: New file.
5054 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5055 Use -fcall-used-g6, not -fcall-used-g7.
5057 2003-02-21 Andreas Jaeger <aj@suse.de>
5059 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5062 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5063 clear whole mxcsr but only exceptions.
5065 2003-02-21 Roland McGrath <roland@redhat.com>
5067 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5068 for libfoo.so that need $(make-link) rules.
5070 2003-02-21 Roland McGrath <roland@frob.com>
5072 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5073 to match existing struct stat layout in mig protocols.
5075 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5077 * version.h (VERSION): Bump to 2.3.2.
5079 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5080 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5082 * sysdeps/generic/Dist: Add sysdep-cancel.h.
5083 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5084 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5085 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5086 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5089 * Makefile (distribute): Add include/stubs-prologue.h,
5090 include/gnu/stubs.h, scripts/merge-abilist.awk, and
5091 scripts/extract-abilist.awk.
5093 2003-02-20 Roland McGrath <roland@redhat.com>
5095 * math/Makefile (distribute): Don't add generated files.
5097 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5099 * math/Makefile: Rearrange variable definitions slightly to get
5100 definition in the right order.
5102 2003-02-20 Roland McGrath <roland@redhat.com>
5104 * Makerules: Clean up conditional around include of tls.make.
5105 * Make-dist: Export generating=t to prevent using that.
5106 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5108 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5110 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
5111 around in search if port IPPORT_RESERVED/2 has been test.
5113 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
5115 * posix/regcomp.c: Remove inclusions.
5116 * posix/regexec.c: Likewise.
5117 * posix/regex_internal.c: Likewise.
5118 * posix/regex_internal.h: Add inclusions here.
5119 * posix/regex.c: Only include sys/types.h before regex.h. Include
5120 regex_internal.h here. Include regex_internal.c before regcomp.c
5121 and regexec.c (might expose more opportunities to the C compiler).
5123 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5125 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5126 [!_LIBC] (__wcrtomb): New definition.
5127 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5128 HAVE_LOCALE_H as well.
5130 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5132 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5133 patch to check for system call errors.
5135 2002-07-24 Philip Blundell <philb@gnu.org>
5137 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
5140 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5142 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
5143 * sysdeps/unix/sysv/linux/kernel-features.h
5144 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
5145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
5147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
5148 interprocedure branches.
5149 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
5150 * sysdeps/powerpc/nofpu/Dist: ...here.
5151 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
5152 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
5153 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
5154 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
5155 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
5157 2003-02-18 Alan Modra <amodra@bigpond.net.au>
5159 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
5161 2003-02-20 Philip Blundell <philb@gnu.org>
5163 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
5164 missing arguments to INTERNAL_SYSCALL_ERROR_P and
5165 INTERNAL_SYSCALL_ERRNO.
5167 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5169 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
5170 for __ASSUME_32BITUIDS.
5172 2003-02-20 Andreas Schwab <schwab@suse.de>
5174 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
5175 POSIX_MADV_* constants.
5177 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5179 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
5180 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
5181 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
5182 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
5184 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
5186 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
5188 2003-02-16 Roland McGrath <roland@redhat.com>
5190 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
5192 2003-02-19 Ulrich Drepper <drepper@redhat.com>
5194 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
5195 decimal input digits.
5196 * stdlib/tst-strtod.c (main): Add test for strtof bug.
5198 2003-02-18 Ulrich Drepper <drepper@redhat.com>
5200 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
5201 invalid file descriptors and missing access permissions.
5203 2003-02-17 Ulrich Drepper <drepper@redhat.com>
5205 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
5208 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
5209 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
5210 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
5213 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5214 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5216 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
5217 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
5218 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5219 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5220 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5222 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5224 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
5225 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
5226 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
5227 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
5228 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
5229 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
5231 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
5232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
5233 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
5234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
5236 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
5237 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
5238 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
5239 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
5241 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
5243 * nss/getent.c (print_hosts): Print all IP addresses of one host.
5245 2003-02-15 Roland McGrath <roland@frob.com>
5247 * sysdeps/mach/hurd/tls.h: New file.
5248 * sysdeps/mach/hurd/i386/tls.h: New file.
5250 * mach/errsystems.awk: Include <errno.h> in generated output.
5252 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
5253 use target mach-before-compile instead of generated.
5254 (mach-before-compile): New target.
5255 * Makerules: Disable use of tls.make if $(generating) is set.
5256 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
5257 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
5258 mach-shortcuts.h so mach/ generation happens before hurd/.
5260 2003-02-14 Ulrich Drepper <drepper@redhat.com>
5262 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
5263 of demorm correctly if low word is zero.
5264 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5265 * math/libm-test.inc (nextafter_test): New test, but disabled due
5268 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
5269 counter and only call __exit_thread if this is not the last thread.
5271 2003-02-13 Jakub Jelinek <jakub@redhat.com>
5273 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
5274 subtracting map->l_tls_offset.
5276 2003-02-12 Ulrich Drepper <drepper@redhat.com>
5278 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
5279 _CS_GNU_LIBPTHREAD_VERSION.
5280 * posix/conststr.c: Handle these new values.
5281 * posix/getconf.c: Likewise.
5283 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
5284 masking of version index.
5285 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5287 2003-02-11 Ulrich Drepper <drepper@redhat.com>
5289 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
5290 correctly. Reported by Thorsten Kukuk.
5292 2003-02-10 Ulrich Drepper <drepper@redhat.com>
5294 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
5295 _BSD_SOURCE to compiler.
5296 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
5297 Patches by Alan Modra.
5299 2003-02-08 Ulrich Drepper <drepper@redhat.com>
5301 * io/ftwtest.c: Get current working directory before and after the
5302 nftw call and make sure they match.
5304 2003-02-08 Jim Meyering <jim@meyering.net>
5306 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
5307 the current directory, not just when DIR contains a slash.
5308 Reported by Manoj Srivastava.
5310 2003-02-07 Jim Meyering <jim@meyering.net>
5312 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
5313 Include autoconf-recommended block of dirent/NAMELEN-related
5314 definitions and includes. Use NAMELEN throughout, rather than
5316 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
5317 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
5318 (stpcpy): Declare, if necessary.
5319 (mempcpy): Define, if necessary.
5320 [!_LIBC] (__stpcpy, __mempcpy): Define.
5321 [!_LIBC] (LXSTAT, XSTAT): Define.
5322 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
5323 (find_object): Don't use c99-style struct initializer.
5324 Tweak wording in a couple comments.
5326 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5328 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
5330 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
5331 after the trapa instruction.
5332 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
5334 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
5335 (NEED_SYSCALL_INST_PAD): Define.
5336 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
5337 avoid to use definition for the kernel.
5338 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5339 Save and restore the frame pointer.
5340 (SYSCALL_INST_PAD): Define.
5341 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5342 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
5343 after trapa instruction.
5344 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5345 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5347 2003-02-07 Jakub Jelinek <jakub@redhat.com>
5349 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
5350 so that it can have aliases.
5351 * inet/herrno.c (h_errno): Put it into .bss not .data section.
5353 2003-02-07 Ulrich Drepper <drepper@redhat.com>
5355 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
5356 (profile_fixup): Likewise.
5357 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5359 2002-11-24 Robert Love <rml@tech9.net>
5361 * posix/sched.h: Second parameter of sched_setaffinity and
5362 sched_getaffinity is `unsigned int', not `unsigned long'.
5363 * sysdeps/generic/sched_setaffinity.c: Likewise.
5364 * sysdeps/generic/sched_getaffinity.c: Likewise.
5366 2003-02-05 Ulrich Drepper <drepper@redhat.com>
5368 * debug/catchsegv.sh: Fix typo in error messsage.
5369 Reported by John Levon <levon@movementarian.org>.
5371 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
5372 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
5373 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
5374 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5376 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5377 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5379 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
5380 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
5382 2003-02-05 Jim Meyering <jim@meyering.net>
5384 Fix a heap-corrupting bug.
5385 * io/ftw.c: Include <limits.h>.
5386 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
5387 (process_entry): Allocate enough space to hold the resulting
5388 file name. Don't presume that 2*dirbufsize is enough.
5389 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
5390 it is guaranteed to be defined.
5392 2003-02-04 Ulrich Drepper <drepper@redhat.com>
5394 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
5395 * iconvdata/bug-iconv3.c: New file.
5397 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
5399 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5401 2003-02-03 Jakub Jelinek <jakub@redhat.com>
5403 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
5405 * config.h.in (BROKEN_SPARC_WDISP22): Add.
5407 2003-02-03 Ulrich Drepper <drepper@redhat.com>
5409 * sysdeps/i386/i686/memmove.S: New file.
5411 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
5414 Include kernel-features.h
5415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
5416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
5418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5420 2003-02-02 Jakub Jelinek <jakub@redhat.com>
5422 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
5424 2003-01-25 Jim Meyering <jim@meyering.net>
5426 * io/ftw.c (object_compare): Compare inode numbers before device
5427 numbers, since the former are much more likely to differ.
5429 2003-02-01 Ulrich Drepper <drepper@redhat.com>
5431 * time/tzfile.c (__tzfile_compute): Change return value type to
5432 void. Adjust return statements.
5433 * include/time.h (__tzfile_compute): Adjust prototype.
5435 2003-02-01 Jim Meyering <jim@meyering.net>
5437 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
5440 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5443 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
5445 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5448 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
5449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5450 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5452 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5454 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5456 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5458 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
5459 back to 2.4.19 for powerpc64.
5460 * sysdeps/unix/sysv/linux/kernel-features.h
5461 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
5462 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
5464 2003-02-01 Ulrich Drepper <drepper@redhat.com>
5466 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
5467 platforms with strange alignment requirements on wchar_t.
5469 2003-01-31 Andreas Schwab <schwab@suse.de>
5471 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
5472 aliases, already added by make-syscalls.sh.
5473 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5474 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5475 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5476 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5477 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5478 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5479 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5480 * sysdeps/unix/inet/syscalls.list: Likewise.
5481 * sysdeps/unix/syscalls.list: Likewise.
5483 2003-01-31 Andreas Schwab <schwab@suse.de>
5485 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
5488 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5490 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
5491 not l to load tls from stack.
5493 2003-01-30 Roland McGrath <roland@redhat.com>
5495 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
5496 null argument before all else.
5497 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5499 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5501 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
5502 Move to RESOLVE protected part of the header.
5503 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
5506 2003-01-30 Ulrich Drepper <drepper@redhat.com>
5508 * stdio-common/Makefile (tests): Add bug15.
5509 (bug15-ENV): Define.
5510 * stdio-common/bug15.c: New file.
5512 2002-10-07 Wolfram Gloger <wg@malloc.de>
5514 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
5515 to foreign sbrk()'s if arena is contiguous. Bug report from
5516 Bruno Haible <bruno@clisp.org>.
5518 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5520 * sysdeps/s390/libc-tls.c: Include stdlib.h.
5522 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5524 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
5527 2003-01-30 Ulrich Drepper <drepper@redhat.com>
5529 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
5531 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
5533 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5535 2003-01-30 Jakub Jelinek <jakub@redhat.com>
5537 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
5538 (allocate_static_tls): ...here. Add __attribute_noinline__.
5539 Don't return on failure.
5540 (_dl_reloc_bad_type): Add __attribute_noinline__.
5541 * elf/do-rel.h (elf_dynamic_do_rel): Add
5542 __attribute__((always_inline)).
5543 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
5544 elf_machine_rel_relative, elf_machine_rela_relative,
5545 elf_machine_lazy_rel): Add prototypes with
5546 __attribute__((always_inline)).
5548 2003-01-29 David Mosberger <davidm@hpl.hp.com>
5550 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
5552 2003-01-29 Roland McGrath <roland@redhat.com>
5554 * configure.in: Barf if configured in $srcdir.
5556 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
5558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5559 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
5561 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
5563 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
5564 clone parameters to match the order used on ia32.
5565 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5567 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
5569 * elf/elf.h: Add new s390 relocs.
5570 * elf/tls-macros.h: Add s390 versions.
5571 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
5572 * sysdeps/s390/dl-tls.h: New file.
5573 * sysdeps/s390/libc-tls.c: New file.
5574 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
5575 relocs for class PLT.
5576 (elf_machine_rela): Handle TLS relocs.
5577 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5578 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
5579 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
5580 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
5581 CLONE_CHILD_*TID flags.
5582 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5583 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
5585 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5586 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
5587 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
5588 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
5589 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
5591 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
5592 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
5593 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5595 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
5596 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
5597 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
5598 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5601 2003-01-28 Ulrich Drepper <drepper@redhat.com>
5603 * sysdeps/unix/common/pause.c (do_pause): New function. Split
5604 from __libc_pause. Implement using sigsuspend.
5605 (__libc_pause): Call do_pause to do the real work.
5607 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
5608 sig_or_mask parameter is is_sig != 0.
5610 2003-01-21 Philip Blundell <philb@gnu.org>
5612 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
5614 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
5616 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
5618 2003-01-27 Ulrich Drepper <drepper@redhat.com>
5620 * stdio-common/bug14.c: Use official name for the locale.
5622 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
5623 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
5624 instead of __libc_cleanup_region_end.
5626 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
5627 as first parameter to __libc_cleanup_region_start.
5629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5630 (__fe_nomask_env): Use __prctl not prctl.
5631 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
5634 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
5636 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
5638 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
5639 wrap-around in test.
5641 2003-01-26 Andreas Schwab <schwab@suse.de>
5643 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
5644 compatibility symbols. Remove INTDEF for __divdi3.
5645 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
5646 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
5647 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
5649 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
5651 2003-01-24 Jakub Jelinek <jakub@redhat.com>
5653 * elf/tls-macros.h: Add SPARC 32-bit definitions.
5654 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
5655 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
5656 for the first half of the header. Include tls.h.
5657 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
5659 (elf_machine_rela): Handle TLS relocs.
5660 * sysdeps/sparc/dl-tls.h: New file.
5662 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
5665 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
5666 * sysdeps/sparc/sparc32/memchr.S: Likewise.
5667 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
5668 * sysdeps/sparc/sparc32/strcat.S: Likewise.
5669 * sysdeps/sparc/sparc32/strchr.S: Likewise.
5670 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
5671 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
5672 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5673 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5674 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5675 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
5676 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
5677 * sysdeps/sparc/sparc64/strcat.S: Likewise.
5678 * sysdeps/sparc/sparc64/strchr.S: Likewise.
5679 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
5680 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
5681 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
5682 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
5683 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5684 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5686 2003-01-24 Andreas Schwab <schwab@suse.de>
5688 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
5689 elements, and process them backwards.
5690 * elf/Makefile ($(objpfx)tst-array4): New target.
5691 ($(objpfx)tst-array4.out): Likewise.
5692 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
5693 * elf/tst-array4.c: New file.
5694 * elf/tst-array4.exp: Likewise.
5696 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
5700 2003-01-27 Guido Guenther <agx@sigxcpu.org>
5702 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
5703 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
5704 cancellation handling and handle both __NR_pread64 and __NR_pread.
5705 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5706 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
5707 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
5708 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5709 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
5710 case, use register names consistently.
5712 2003-01-27 Wolfram Gloger <wg@malloc.de>
5714 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
5715 pointer, not of the computed chunk. Bug report from Carlos
5716 O'Donell <carlos@baldric.uwo.ca>.
5718 2003-01-25 Andreas Schwab <schwab@suse.de>
5720 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
5721 addressing to save GOT entries.
5723 2003-01-21 Jakub Jelinek <jakub@redhat.com>
5725 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
5726 inline_syscall1, inline_syscall2, inline_syscall3,
5727 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
5728 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
5729 __attribute__((unused)) to ChEcK.
5731 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5733 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
5734 Fix inline assembler constraints.
5735 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
5738 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
5741 2003-01-20 Segher Boessenkool <segher@koffie.nl>
5743 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
5744 compute the cosine, not the sine, even if x > 0.8.
5746 2003-01-19 Ulrich Drepper <drepper@redhat.com>
5748 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
5749 _nss_nis_setspent. Work around the different prototypes.
5750 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
5751 internal_nis_endrpcent.
5752 (internal_nis_endrpcent): Change return type to void. Change callers.
5753 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
5754 _nss_nis_setpwent. Work around the different prototypes.
5755 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
5756 of the function to...
5757 (internal_nis_endprotoent): ... here. New function.
5758 (internal_nis_setprotoent): Use internal_nis_endprotoent.
5759 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
5760 _nss_nis_setnetent. Work around the different prototypes.
5761 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
5762 of the function to...
5763 (internal_nis_endnetgrent): ... here. New function.
5764 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
5766 2003-01-19 Jim Meyering <jim@meyering.net>
5768 * time/strftime.c: (widen): Merge nearly-identical definitions.
5769 (nl_get_alt_digit) [! defined my_strftime]: Define.
5770 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
5771 _nl_get_alt_digit and _nl_get_walt_digit.
5773 2003-01-19 Ulrich Drepper <drepper@redhat.com>
5775 * time/strftime.c (my_strftime): Handle very large width
5776 specifications for numeric values correctly. Improve checks for
5778 * time/Makefile (tests): Add tst-strftime.
5779 * time/tst-strftime.c: New file.
5781 2003-01-18 Ulrich Drepper <drepper@redhat.com>
5783 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
5784 _nss_nis_sethostent. Work around the different prototypes.
5785 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
5786 _nss_nis_setgrent. Work around the different prototypes.
5787 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
5788 function. Split out from _nss_nis_endetherent.
5789 (internal_nis_setetherent): Use internal_nis_endetherent instead of
5790 duplicating the code.
5791 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
5792 of _nss_nis_setaliasent.
5793 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
5794 internal_nis_endservent code, don't duplicate it.
5796 * inet/rexec.c (rexec_af): Protect socket operations with
5797 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
5798 * inet/rcmd.c (rcmd_af): Likewise.
5800 2003-01-17 Roland McGrath <roland@redhat.com>
5802 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
5803 Add test of value 0.80190127184058835.
5805 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
5807 2003-01-17 Richard Henderson <rth@redhat.com>
5809 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
5810 relocs for class PLT.
5811 * sysdeps/alpha/libc-tls.c: New file.
5812 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
5813 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
5815 2003-01-17 Jakub Jelinek <jakub@redhat.com>
5817 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
5818 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
5821 2003-01-17 Andreas Jaeger <aj@suse.de>
5823 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
5825 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
5827 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
5828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
5829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
5830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
5831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
5832 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
5833 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
5836 2003-01-16 Ulrich Drepper <drepper@redhat.com>
5838 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
5839 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
5842 * sysdeps/generic/sysconf.c: Unconditionally implement
5843 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
5844 * sysdeps/posix/sysconf.c: Likewise.
5846 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5848 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
5849 set *err to the returned error, not to REG_ESPACE unconditionally.
5850 (build_word_op): Likewise.
5851 * posix/Makefile (tests): Add bug-regex16.
5852 * posix/bug-regex16.c: New test.
5854 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5856 * elf/dl-load.c (_dl_map_object_from_fd): Use
5857 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
5858 been already initialized.
5860 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
5862 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
5864 2003-01-16 Jakub Jelinek <jakub@redhat.com>
5866 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
5867 allocated too. Reported by Al Viro <aviro@redhat.com>.
5869 2003-01-16 Roland McGrath <roland@redhat.com>
5871 Tweak merged .abilist file format to merge duplicate symbols in
5872 different sets into multi-version stanzas with new "| SET regexp..."
5873 header continuation lines.
5874 * scripts/merge-abilist.awk: Rewritten for new format.
5875 * scripts/extract-abilist.awk: Likewise.
5877 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5879 * nscd/connections.c (nscd_run): Remove bogus return which isn't
5880 necessary with gcc 3.2+.
5881 (nscd_init): Don't use error() to print message, use dbg_log.
5883 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
5884 expected size into state.
5885 (UNPACK_BYTES): Do the reverse.
5886 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
5887 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
5888 Reported by Al Viro <aviro@redhat.com>.
5890 * stdio-common/Makefile (tests): Add bug14.
5891 * stdio-common/bug14.c: New file.
5893 * stdio-common/vfscanf.c: When recognizing multibyte characters in
5894 string reset the byte counter after mbrtowc reported it is not a
5895 partial character. Reported by Al Viro <aviro@redhat.com>.
5897 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
5899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
5900 sysdep-cancel.h, not sysdep.h.
5902 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5904 * nscd/connections.c (nscd_run): Protect accept call with
5907 2003-01-15 Andreas Schwab <schwab@suse.de>
5909 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
5910 (common-generated): Add s-proto-bp.d.
5911 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
5913 * sysdeps/unix/s-proto-bp.S: New file.
5914 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
5915 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
5916 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
5918 2003-01-15 Roland McGrath <roland@redhat.com>
5920 * Makerules: Use -include for tls.make, suppresses warning.
5921 Move gen-as-const-headers rules up so before-compile is set in time.
5922 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
5924 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5926 * nscd/nscd.c (main): Make code to close all file descriptors
5927 faster and more robust.
5929 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
5930 request with one writev call. Protect all read calls with
5932 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5933 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5935 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
5936 Protect writev calls with TEMP_FAILURE_RETRY.
5937 * nscd/grpcache.c: Likewise.
5938 * nscd/pwdcache.c: Likewise.
5940 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
5941 IPv6 address in debug output.
5943 2003-01-14 Roland McGrath <roland@redhat.com>
5945 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
5946 $(objpfx) directories, and get rid of vpath directives. The previous
5947 arrangement resulted in files being written to the source directories
5948 when run in a clean build. Find all .abilist files in $(..)abilist/.
5949 (update-abi-%): Likewise.
5950 (generated): Don't add .symlist files, they'll be intermediates.
5952 * sysdeps/generic/init-first.c: Add a comment.
5954 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
5956 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
5957 #includes and expressions.
5959 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
5960 config list when it already contains cpu-.*-os.* without / part.
5962 * Makerules (sed-remove-dotdot): New variable.
5963 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
5964 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
5965 (check-abi-config): New variable, append /tls or /notls to the tuple.
5966 (check-abi-%): Use that for -v config value.
5967 Find .abilist files in abilist/libfoo.abilist, not in subdir.
5968 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
5970 2003-01-14 Ulrich Drepper <drepper@redhat.com>
5972 * manual/install.texi: Correct description of header preparation for
5973 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
5975 2003-01-14 Guido Guenther <agx@sigxcpu.org>
5977 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
5978 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5979 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
5981 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
5983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5984 (INTERNAL_SYSCALL): Make use of ERR parameter.
5985 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5986 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5987 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
5990 2003-01-14 Ulrich Drepper <drepper@redhat.com>
5992 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
5994 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
5996 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
5997 Fix entry for bit 31.
5999 * iconvdata/Makefile: Add rules to build IBM866NAV.
6000 * iconvdata/ibm866nav.c: New file.
6001 * iconvdata/tst-tables.sh: Add IBM866NAV.
6002 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6004 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6006 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6007 to test void* parameters.
6009 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6010 source pointer before dereferencing.
6011 (__STRING_SMALLL_GET32): Likewise.
6012 (__memset_gc): Add missing parenthesis around macro arguments.
6013 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6015 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6016 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6018 2003-01-14 Jakub Jelinek <jakub@redhat.com>
6020 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6023 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6025 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6026 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6028 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6030 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6032 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6034 (PSEUDO): ... to here.
6035 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6037 (PSEUDO): ... to here.
6039 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6041 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6042 dirent64 instead of struct dirent for dirent. Call readdir64
6045 * locale/programs/locfile.c (siblings_uncached): Use struct
6046 dirent64 instead of struct dirent for other_dentry. Call
6047 readdir64 instead of readdir.
6049 * elf/ldconfig.c (direntry): Change type to struct dirent64.
6050 (search_dir): Use readdir64 instead of readdir.
6051 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6053 2003-01-12 Roland McGrath <roland@redhat.com>
6055 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6056 not strtol. The former is usable in ld.so, the latter not.
6058 * include/fcntl.h: Declare __libc_creat.
6060 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6061 libhurduser-link.so-no-z-defs): New variables.
6063 * malloc/malloc.c: Revert last change.
6064 * malloc/malloc.h (_int_*): Move these decls to ...
6065 * include/malloc.h: ... here. Add attribute_hidden.
6066 (_int_valloc): Declare it too.
6068 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6070 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
6071 search for removed searchlist. Reported by Roland McGrath.
6073 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6074 given as start file.
6076 * io/ftw.c (ftw_startup): Use correct name in check for symlink
6077 without existing target. Patch by Jim Meyering.
6079 * Makerules (build-shlib-helper): Don't use -z defs linker option
6080 if no-z-defs is defined either.
6082 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6084 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6087 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6089 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6090 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6092 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6094 * io/ftwtest-sh: Add test case for relative path with /. at the end.
6096 2003-01-12 Jim Meyering <jim@meyering.net>
6098 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6099 use the basename if we've already chdir'd into its parent directory.
6101 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6103 * io/ftw.c (process_entry): Use relative path when using chdir()
6104 to change directory after call to ftw_dir.
6105 * io/ftwtest-sh: Add test for relative path argument to nftw()
6106 with FTW_CHDIR option.
6108 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6110 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6112 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6115 (INTERNAL_SYSCALL): Make use of ERR parameter.
6116 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6117 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6118 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6121 2002-01-09 Richard Henderson <rth@redhat.com>
6123 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6124 DTPREL64 and TPREL64 without loadbase applied.
6126 2002-01-09 Richard Henderson <rth@redhat.com>
6128 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6131 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6132 * sysdeps/unix/alpha/sysdep.h: ... here.
6133 (PSEUDO_LOADGP): Remove.
6134 (PSEUDO_PROLOGUE): Load GP in non-pic case.
6135 (SYSCALL_ERROR_LABEL): New.
6136 (PSEUDO): Use it in error branch.
6137 (PSEUDO_END): Add $syscall_error label.
6139 2003-01-12 Andreas Jaeger <aj@suse.de>
6141 * math/bits/mathcalls.h: Round is a const function.
6143 2003-01-11 Jim Meyering <jim@meyering.net>
6145 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
6146 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
6147 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
6148 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
6149 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
6150 [!_LIBC] (internal_function, dirent64, MAX): Define.
6151 (__set_errno): Define if not already defined.
6152 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
6153 the basename, not the entire file name.
6154 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
6155 the basename, not the entire file name.
6157 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6159 * string/tester.c (test_strcpy): Disable last added strcpy until
6162 2003-01-11 Philip Blundell <philb@gnu.org>
6164 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
6166 2003-01-11 Andreas Schwab <schwab@suse.de>
6168 * Makerules: Add vpath for %.dynsym and %.so so that the
6169 implicit rule chaining for check-abi works.
6171 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6173 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6176 2003-01-11 Jakub Jelinek <jakub@redhat.com>
6178 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
6179 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
6181 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
6182 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
6183 Ensure libc.so in DT_NEEDED.
6184 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
6185 CHECK_STATIC_TLS before l_tls_offset use.
6186 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6188 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6189 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
6190 Allocate TLS_PRE_TCB_SIZE bytes below result.
6191 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
6192 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
6193 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
6194 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
6195 bytes below result and add tcb_offset to memsz.
6196 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
6197 * sysdeps/ia64/dl-machine.h: Include tls.h.
6198 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
6200 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
6201 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
6202 * sysdeps/ia64/libc-tls.c: New file.
6204 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
6206 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
6207 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
6208 Fix type. Move definition out of #if.
6209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
6210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
6211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
6212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
6213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
6214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
6216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
6217 ftruncate64, pread64, pwrite64, truncate64 entries.
6218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6219 (INLINE_SYSCALL): New version that supports function call like
6220 syscalls. Add __builtin_expect.
6221 (LOADARGS_n): Add argument size safety checks.
6222 (INTERNAL_SYSCALL): New Macro.
6223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
6224 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
6225 redefinition of elf_fpreg_t and elf_fpregset_t.
6227 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6229 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
6230 simplify test for unloading. If loader of a DSO is unloaded do not
6231 use its scope anymore. Fall back to own scope and adjust opencounts.
6232 Fix several comments.
6233 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
6234 the l_searchlist, not only for l_initfini.
6236 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
6237 dependencies if objects cannot be removed. Remove object with the
6238 definition as not unloadable if necessary.
6240 * elf/reldep6.c: Create relocation dependency before closing the first
6243 2003-01-10 Guido Günther <agx@sigxcpu.org>
6245 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
6246 * sysdeps/unix/mips/brk.S: Likewise.
6247 * sysdeps/unix/mips/pipe.S: Likewise.
6249 2003-01-10 Andreas Schwab <schwab@suse.de>
6251 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
6253 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
6254 are known to have the vfork syscall.
6256 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
6258 * sysdeps/unix/sysv/linux/kernel-features.h
6259 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
6260 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
6261 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
6263 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6265 * elf/Makefile: Add rules to build and run reldep9 test.
6266 * elf/reldep9.c: New file.
6267 * elf/reldep9mod1.c: New file.
6268 * elf/reldep9mod2.c: New file.
6269 * elf/reldep9mod3.c: New file.
6271 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6273 * elf/Makefile: Add rules to build and run nodelete2 test.
6274 * elf/nodelete2.c: New file.
6275 * elf/nodel2mod1.c: New file.
6276 * elf/nodel2mod2.c: New file.
6277 * elf/nodel2mod3.c: New file.
6279 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6281 * posix/test-vfork.c (noop): Add __attribute_noinline__.
6282 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
6283 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
6285 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
6286 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
6287 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
6288 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
6289 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
6291 2003-01-09 Andreas Schwab <schwab@suse.de>
6293 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
6295 2003-01-08 Ulrich Drepper <drepper@redhat.com>
6297 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
6298 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6300 (INTERNAL_SYSCALL_DECL): Define.
6302 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6304 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
6305 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6307 (INTERNAL_SYSCALL_DECL): Define.
6308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6309 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
6310 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6311 (INLINE_SYSCALL): Adjust.
6312 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6313 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6314 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6315 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6316 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
6317 add err argument to INTERNAL_SYSCALL* macros.
6318 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
6319 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
6320 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
6321 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
6323 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
6324 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
6325 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
6327 2003-01-07 Ulrich Drepper <drepper@redhat.com>
6329 Unify symbols in user namespace exported by libc.so and libc.a.
6330 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
6331 argp_fmtstream_free, and argp_fmtstream_printf.
6332 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
6333 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
6334 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
6335 argp_fmtstream_point.
6336 * gmon/gmon.c: Don't define write_profiling.
6337 * libio/genops.c: Don't define _cleanup.
6339 * intl/explodename.c (_nl_find_language.c): Mark as static.
6340 * intl/loadinfo.h: Remove _nl_find_language prototype.
6342 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
6343 * libio/libioP.h: Remove declaration.
6345 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
6346 * libio/libioP.h: Remove declaration.
6348 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
6349 * sysdeps/generic/framestate.c: Define STATIC before including
6352 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
6354 2003-01-06 Philip Blundell <philb@gnu.org>
6356 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
6357 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
6359 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
6361 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
6362 (SYSCALL_ERROR): New.
6363 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
6365 (INTERNAL_SYSCALL): Define.
6366 (INLINE_SYSCALL): Use it.
6367 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
6368 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
6369 SYSCALL_ERROR in place of __syscall_error.
6371 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6373 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6374 __bswap_32, __bswap_64): Put x into temporary variable
6376 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6378 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6379 __bswap_32, __bswap_64): Put x into temporary variable
6381 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6383 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
6386 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6388 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
6391 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6393 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
6394 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
6396 2003-01-07 Ulrich Drepper <drepper@redhat.com>
6398 * math/libm-test.inc (significand_test): New function.
6401 2003-01-06 Roland McGrath <roland@redhat.com>
6403 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
6405 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
6406 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
6407 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
6409 * string/tester.c (test_strcpy): Add test with `void *' arguments.
6411 2003-01-06 Ulrich Drepper <drepper@redhat.com>
6413 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
6414 return significand and not the exponent.
6415 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6417 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
6418 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
6420 * malloc/malloc.c: Mark all _int_* functions as static.
6422 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6424 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
6425 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
6427 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
6429 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6431 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
6432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
6434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
6435 ftruncate64, truncate64, pread64 and pwrite64 entries.
6436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6437 (INLINE_SYSCALL): Add __builtin_expect.
6438 (LOADARGS_n): Add argument size safety checks.
6439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
6440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
6441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
6442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
6443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
6444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
6446 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6448 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
6449 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
6450 (LIBC_CANCEL_HANDLED): Add.
6452 * sysdeps/unix/sysv/linux/alpha/sysdep.h
6453 (inline_syscall_r0_constraint): Rename to...
6454 (inline_syscall_r0_out_constraint): ... this. Add =.
6455 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
6457 2003-01-06 Andreas Schwab <schwab@suse.de>
6459 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
6460 sure this is always inlined.
6461 (elf_machine_rela): Likewise.
6463 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
6465 2003-01-04 Roland McGrath <roland@redhat.com>
6467 * Makeconfig (+mkdep): Add -MP flag.
6468 Suggested by Art Haas <ahaas@airmail.net>.
6470 2003-01-05 Andreas Schwab <schwab@suse.de>
6472 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
6474 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6476 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
6477 SYSCALL_ERROR_HANDLER.
6478 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
6479 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
6480 Add support for cancellation handling.
6481 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
6482 SYSCALL_ERROR_HANDLER.
6483 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
6484 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
6485 Add support for cancellation handling.
6486 (SYSCALL_ERROR_HANDLER): Define PIC variants.
6488 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
6491 __syscall_pread64 and __syscall_pwrite64 cancelable.
6492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6493 (INTERNAL_SYSCALL): New macro.
6494 (LOADARGS_0, LOADARGS_1): Fix.
6496 2003-01-05 Ulrich Drepper <drepper@redhat.com>
6498 * Makerules (build-shlip-helper): Unless told otherwise, add
6499 -Wl,-z,defs to linker command line.
6500 * rt/Makefile (librt.so): Link with ld.so.
6501 * dlfcn/Makefile (libdl.so): Likewise.
6503 2003-01-05 Jakub Jelinek <jakub@redhat.com>
6505 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
6506 cancellation handling.
6507 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6508 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
6510 2003-01-04 Ulrich Drepper <drepper@redhat.com>
6512 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
6513 order of parameters passed to kill.
6515 2003-01-04 Andreas Schwab <schwab@suse.de>
6517 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
6519 2002-01-03 Paul Eggert <eggert@twinsun.com>
6521 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
6522 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
6523 when compiling Bison 1.875's `bitset bset = obstack_alloc
6524 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
6526 2003-01-04 Ulrich Drepper <drepper@redhat.com>
6528 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
6530 Correct reference counter in case SIGQUIT handler installation failed.
6532 2003-01-03 Ulrich Drepper <drepper@redhat.com>
6534 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
6535 Define using _Pragma(weak ...).
6537 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
6539 * resolv/res_libc.c: Provide declaration for __res_init_weak and
6540 reorder declarations.
6542 2003-01-03 Art Haas <ahaas@airmail.net>
6544 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
6545 initializer syntax to C99.
6546 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
6547 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
6548 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
6549 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
6550 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
6551 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
6552 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
6553 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
6554 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
6555 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
6556 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
6557 * localedata/tests-mbwc/dat_mblen.c: Likewise.
6558 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
6559 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
6560 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
6561 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
6562 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
6563 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
6564 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
6565 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
6566 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
6567 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
6568 * localedata/tests-mbwc/dat_towlower.c: Likewise.
6569 * localedata/tests-mbwc/dat_towupper.c: Likewise.
6570 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
6571 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
6572 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
6573 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
6574 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
6575 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
6576 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
6577 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
6578 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
6579 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
6580 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
6581 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
6582 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
6583 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
6584 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
6585 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
6586 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
6587 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
6588 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
6589 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
6590 * localedata/tests-mbwc/dat_wctob.c: Likewise.
6591 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
6592 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
6593 * localedata/tests-mbwc/dat_wctype.c: Likewise.
6594 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
6596 2003-01-03 Richard Henderson <rth@redhat.com>
6598 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
6599 (inline_syscall_r0_constraint): New.
6600 (inline_syscall[0-6]): Use them.
6602 2003-01-03 Jakub Jelinek <jakub@redhat.com>
6604 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
6605 Add rtld_hidden_proto.
6606 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
6607 (_dl_allocate_tls): Likewise. Remove INTDEF.
6609 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6611 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
6612 Morita <toshiyasu.morita@hsa.hitachi.com>.
6613 * sysdeps/sh/memcpy.S: Likewise.
6615 2003-01-02 Ulrich Drepper <drepper@redhat.com>
6617 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
6618 any, but unify the test.
6620 2003-01-02 Jakub Jelinek <jakub@redhat.com>
6622 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
6623 sigaction): Protect weak_alias and libc_hidden_weak with
6624 #ifndef LIBC_SIGACTION.
6625 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
6626 sigaction): Likewise.
6627 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
6628 sigaction): Likewise.
6629 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
6630 sigaction): Likewise.
6631 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
6632 sigaction): Likewise.
6633 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
6634 sigaction): Likewise.
6635 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
6636 sigaction): Likewise.
6637 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
6638 sigaction): Likewise. Remove SIGCANCEL handling here.
6639 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
6642 2003-01-02 Art Haas <ahaas@airmail.net>
6644 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
6646 2003-01-02 Ulrich Drepper <drepper@redhat.com>
6648 * posix/getconf.c: Update copyright year.
6649 * nss/getent.c: Likewise.
6650 * nscd/nscd_nischeck.c: Likewise.
6651 * iconv/iconvconfig.c: Likewise.
6652 * iconv/iconv_prog.c: Likewise.
6653 * elf/ldconfig.c: Likewise.
6654 * catgets/gencat.c: Likewise.
6655 * csu/version.c: Likewise.
6656 * elf/ldd.bash.in: Likewise.
6657 * elf/sprof.c (print_version): Likewise.
6658 * locale/programs/locale.c: Likewise.
6659 * locale/programs/localedef.c: Likewise.
6660 * nscd/nscd.c (print_version): Likewise.
6661 * debug/xtrace.sh: Likewise.
6662 * malloc/memusage.sh: Likewise.
6663 * malloc/mtrace.pl: Likewise.
6665 2003-01-01 Jakub Jelinek <jakub@redhat.com>
6667 * io/sys/stat.h: Include time.h with __need_timespec even if
6668 __USE_MISC is defined but __USE_XOPEN is not.
6670 2003-01-01 Andreas Jaeger <aj@suse.de>
6672 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
6673 type to avoid strict aliasing problem.
6674 (_nss_dns_gethostbyname2_r): Likewise.
6675 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6676 (_nss_dns_getnetbyname_r): Likewise.
6677 * resolv/gethnamaddr.c (_gethtent): Likewise.
6678 (gethostbyname2): Likewise.
6680 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6682 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
6683 to avoid using the exported symbols. Define aliases with the
6684 original names separately.
6686 * include/time.h: Add libc_hidden_proto for __strftime_l.
6687 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
6688 * time/strftime.c: Always use libc_hidden_def if _LIBC.
6690 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
6691 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
6693 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
6696 * csu/Makefile (routines): Add dso_handle.
6697 * csu/dso_handle.c: New file.
6699 2002-12-31 Roland McGrath <roland@redhat.com>
6701 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
6702 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
6703 (S-CPPFLAGS): Add -DASSEMBLER here instead.
6704 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
6706 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6708 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
6711 2002-12-31 Andreas Jaeger <aj@suse.de>
6713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
6715 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
6716 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
6717 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
6719 * sysdeps/unix/sysv/linux/kernel_stat.h
6720 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
6722 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
6723 __unused[1-3] since they're needed by some platforms. Handle
6724 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
6726 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
6727 for structs stat and stat64.
6728 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6729 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
6730 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6731 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6733 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
6735 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
6736 nsec resolution changes.
6737 (xstat64_conv): Likewise.
6738 (xstat32_conv): Likewise.
6740 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
6743 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
6744 structs stat and stat64.
6746 * time/time.h (__timespec_defined): Define for __USE_MISC.
6748 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6750 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
6751 and __libc_current_sigrtmax.
6753 2002-12-31 Jakub Jelinek <jakub@redhat.com>
6755 * include/errno.h (__errno_location): Add prototype.
6756 Use libc_hidden_proto unconditionally.
6757 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
6759 * include/resolv.h (__res_state): Likewise.
6761 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
6762 * include/sys/socket.h (accept): Add libc_hidden_proto.
6763 * include/errno.h (__errno_location): Likewise.
6764 * include/netdb.h (__h_errno_location): Likewise.
6765 * include/resolv.h (__res_state): Likewise.
6766 * include/unistd.h (__lseek): Likewise.
6767 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
6768 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
6769 * sysdeps/generic/res-state.c (__res_state): Likewise.
6770 * sysdeps/generic/accept.c (accept): Likewise.
6771 * sysdeps/generic/lseek.c (__lseek): Likewise.
6772 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
6773 __libc_current_sigrtmax): Likewise.
6774 * sysdeps/mach/hurd/accept.c (accept): Likewise.
6775 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
6776 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
6777 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
6778 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
6779 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
6780 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
6781 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
6782 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
6784 (__GI_accept): New alias to accept.
6785 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
6786 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
6787 New alias to llseek.
6788 (__GI_accept): New alias to accept.
6789 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
6791 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
6793 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
6795 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
6796 strong_alias (name, __GI_name).
6797 * sysdeps/arm/bsd-_setjmp.S : Likewise.
6798 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
6799 * sysdeps/i386/bsd-_setjmp.S : Likewise.
6800 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
6801 * sysdeps/mips/bsd-_setjmp.S : Likewise.
6802 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
6803 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
6804 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
6805 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
6806 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
6807 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
6808 * sysdeps/sh/bsd-_setjmp.S : Likewise.
6809 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
6810 * sysdeps/unix/arm/fork.S : Likewise.
6811 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
6812 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
6813 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
6814 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
6815 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
6816 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
6817 * sysdeps/unix/i386/fork.S : Likewise.
6818 * sysdeps/unix/mips/fork.S : Likewise.
6819 * sysdeps/unix/sparc/fork.S : Likewise.
6820 * sysdeps/unix/sparc/vfork.S : Likewise.
6821 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
6822 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
6823 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
6824 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
6825 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
6826 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
6827 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
6828 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
6829 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
6830 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
6831 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
6832 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
6833 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
6834 * sysdeps/unix/fork.S : Likewise.
6835 * sysdeps/vax/bsd-_setjmp.S : Likewise.
6836 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
6838 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
6841 2002-12-31 Ulrich Drepper <drepper@redhat.com>
6843 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
6844 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
6845 * sysdeps/mach/hurd/fork.c: Likewise.
6846 * sysdeps/unix/sysv/aix/fork.c: Likewise.
6847 * sysdeps/unix/fork.S: Add __GI___fork alias.
6848 * sysdeps/unix/arm/fork.S: Likewise.
6849 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
6850 * sysdeps/unix/i386/fork.S: Likewise.
6851 * sysdeps/unix/mips/fork.S: Likewise.
6852 * sysdeps/unix/sparc/fork.S: Likewise.
6853 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6854 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
6855 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6856 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
6857 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
6858 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
6859 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
6860 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
6861 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
6862 * sysdeps/unix/sparc/vfork.S: Likewise.
6863 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
6864 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
6865 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
6866 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
6867 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
6868 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
6869 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
6870 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
6872 * include/time.h: Add libc_hidden_proto for __nanosleep.
6873 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
6874 * sysdeps/mach/nanosleep.c: Likewise.
6875 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
6876 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
6878 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
6879 _IO_list_unlock, and _IO_list_resetlock.
6880 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
6881 _IO_list_unlock, and _IO_list_resetlock.
6883 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
6884 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6885 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
6886 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6888 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
6889 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
6890 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
6891 __GI___longjmp alias.
6893 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
6894 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
6895 * sysdeps/arm/bsd-_setjmp.S: Likewise.
6896 * sysdeps/generic/bsd-_setjmp.c: Likewise.
6897 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
6898 * sysdeps/i386/bsd-_setjmp.S: Likewise.
6899 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6900 * sysdeps/mips/bsd-_setjmp.S: Likewise.
6901 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
6902 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
6903 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
6904 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
6905 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
6906 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
6907 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
6908 * sysdeps/sh/bsd-_setjmp.S: Likewise.
6909 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
6910 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
6911 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
6912 * sysdeps/vax/bsd-_setjmp.S: Likewise.
6913 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
6915 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6917 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
6919 2002-12-30 Roland McGrath <roland@redhat.com>
6921 * Rules (generated): Target removed.
6922 * mach/Makefile (generated): Define it here instead.
6924 * math/Makefile (generated): Add m_*l and m_*f variants too.
6926 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6928 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
6929 the to-be-deleted objects right away instead of later separately.
6930 The latter fails because the scope data structures of the DSO
6931 might already be gone.
6933 * elf/Makefile: Add rules to build and run reldep8 test.
6934 * elf/reldep8.c: New file.
6935 * elf/reldep8mod1.c: New file.
6936 * elf/reldep8mod2.c: New file.
6937 * elf/reldep8mod3.c: New file.
6938 Contributed by Jakub Jelinek.
6940 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
6942 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6943 checking of return value ENOSYS from getdents64.
6945 2002-12-28 Andreas Schwab <schwab@suse.de>
6947 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
6948 ($(common-objpfx)s-%.d): Generalized from
6949 $(common-objpfx)s-proto.d rule.
6950 (common-generated): Add s-proto-cancel.d.
6951 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
6952 cancellable syscalls.
6953 * sysdeps/unix/s-proto-cancel.S: New file.
6955 2002-12-29 Roland McGrath <roland@redhat.com>
6957 * resolv/res_libc.c: Move _res defn magic after res_init defn
6958 so _res macro is in effect for that code.
6960 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
6961 pattern for prepending $(..) so it doesn't affect $(foo).
6963 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
6965 2002-12-29 Jakub Jelinek <jakub@redhat.com>
6967 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
6970 2002-12-28 Ulrich Drepper <drepper@redhat.com>
6972 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
6974 2002-12-28 Andreas Jaeger <aj@suse.de>
6976 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
6978 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
6980 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6982 * inet/herrno.c (__h_errno_location): Remove.
6983 * inet/Makefile (routines): Add herrno-loc.
6984 * resolv/res_libc.c (__res_state): Remove.
6985 * resolv/Makefile (routines): Add res-state.
6986 * sysdeps/generic/herrno-loc.c: New file.
6987 * sysdeps/generic/res-state.c: New file.
6989 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6991 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
6992 Only define if USE_DL_SYSINFO is defined.
6994 2002-12-22 Jakub Jelinek <jakub@redhat.com>
6996 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
6997 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
6998 Define. Patch by Richard Henderson and Jes Sorensen.
6999 (PSEUDO): Remove unnecessary ;;.
7000 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7001 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7002 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7003 if not initializing thread pointer.
7004 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7005 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7006 make it weak also if NONTLS_INIT_TP.
7007 * sysdeps/unix/common/pause.c: Handle cancellation.
7008 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7009 (LOADSYSCALL): Remove.
7010 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7011 (SYSCALL_ERROR_HANDLER): Use it.
7012 (PSEUDO): Don't jump around error handler.
7013 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7014 jump around error handler.
7015 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7016 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7017 to __syscall_error_handler on failure.
7018 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7019 (LOADSYSCALL): Remove.
7020 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7021 (SYSCALL_ERROR_HANDLER): Use it.
7022 (PSEUDO): Don't jump around error handler.
7023 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7024 jump around error handler.
7025 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7026 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7027 to __syscall_error_handler on failure.
7029 2002-12-27 Roland McGrath <roland@redhat.com>
7031 * scripts/gen-as-const.awk: New file.
7032 * Makefile (distribute): Add it.
7033 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7034 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7036 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7038 2002-12-27 Andreas Schwab <schwab@suse.de>
7040 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
7042 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7044 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
7047 2002-12-27 Andreas Schwab <schwab@suse.de>
7049 * Makerules ($(common-objpfx)%.make): Filter through
7050 $(sed-remove-objpfx).
7052 2002-12-23 Roland McGrath <roland@redhat.com>
7054 * scripts/abilist.awk: Produce a more compact format, divided into
7055 stanzas for each version set, the set name listed only once.
7056 * scripts/extract-abilist.awk: New file.
7057 * scripts/merge-abilist.awk: New file.
7058 * Makerules (check-abi-%, update-abi-%): New pattern rules.
7059 (update-abi, check-abi): New targets.
7060 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
7062 2002-12-19 Roland McGrath <roland@redhat.com>
7064 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
7066 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
7069 2002-12-21 Andreas Schwab <schwab@suse.de>
7071 * elf/check-textrel.c (handle_file): Swap p_type.
7073 2002-12-21 Andreas Schwab <schwab@suse.de>
7075 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
7076 (INLINE_SYSCALL): Use it.
7077 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7078 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7080 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
7081 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
7083 2002-12-20 Art Haas <ahaas@airmail.net>
7085 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
7088 2002-12-21 Philip Blundell <philb@gnu.org>
7090 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
7091 top as seventh arg to __libc_start_main.
7092 Reported by paulnash@wildseed.com.
7094 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
7096 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
7097 compatibility cruft when new enough kernel is assumed.
7099 2002-12-20 Jakub Jelinek <jakub@redhat.com>
7101 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
7102 instead of INLINE_SYSCALL.
7104 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7106 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
7109 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
7110 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7111 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
7112 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7113 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7114 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7115 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7116 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7117 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7118 Patch by William Lee Irwin <wli@holomorphy.com>.
7120 2002-12-20 Andreas Schwab <schwab@suse.de>
7122 * locale/programs/ld-measurement.c (measurement_output): Fix
7125 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7127 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
7128 Redefine _IO_flockifle and _IO_funlockfile as inlines.
7130 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
7131 builds add "tls" in the search path.
7132 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
7133 (path_hwcap): Recognize "tls".
7135 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7137 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
7138 __waitpid instead of waitpid.
7140 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
7142 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
7143 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
7144 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
7146 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
7147 information for system calls.
7149 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
7152 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
7154 2002-12-19 Roland McGrath <roland@redhat.com>
7156 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
7157 * iconvdata/ibm922.h: Likewise.
7158 * iconvdata/ibm930.h: Likewise.
7159 * iconvdata/ibm932.h: Likewise.
7160 * iconvdata/ibm933.h: Likewise.
7161 * iconvdata/ibm935.h: Likewise.
7162 * iconvdata/ibm937.h: Likewise.
7163 * iconvdata/ibm939.h: Likewise.
7164 * iconvdata/ibm943.h: Likewise.
7165 * iconvdata/isiri-3342.h: Likewise.
7167 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7169 * test-skeleton.c (main): Make sure correct value is seen as
7170 argv[0] after adjustment of argv, and argc.
7172 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
7173 RTLD_CORRECT_DYNAMIC_WEAK is defined.
7175 2002-12-19 Jakub Jelinek <jakub@redhat.com>
7177 * nscd/connections.c (nscd_run): Shut up warning.
7178 * tst-ungetc.c (assert): Undefined before redefining.
7180 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7182 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
7185 2002-12-17 Art Haas <ahaas@airmail.net>
7187 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
7188 * iconvdata/cp775.h: Likewise.
7189 * iconvdata/ibm1046.h: Likewise.
7190 * iconvdata/ibm1124.h: Likewise.
7191 * iconvdata/ibm1129.h: Likewise.
7192 * iconvdata/ibm1132.h: Likewise.
7193 * iconvdata/ibm1133.h: Likewise.
7194 * iconvdata/ibm1160.h: Likewise.
7195 * iconvdata/ibm1161.h: Likewise.
7196 * iconvdata/ibm1162.h: Likewise.
7197 * iconvdata/ibm1163.h: Likewise.
7198 * iconvdata/ibm1164.h: Likewise.
7200 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7202 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
7203 __ASSUME_CLONE_THREAD_FLAGS is defined.
7204 * sysdeps/unix/sysv/linux/kernel-features.h
7205 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
7207 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7209 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
7211 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7213 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
7215 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7217 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
7219 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7221 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7222 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
7223 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
7226 2002-12-18 Jakub Jelinek <jakub@redhat.com>
7228 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
7230 [libc: GLIBC_PRIVATE]: ...here.
7231 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
7233 [libc: GLIBC_PRIVATE]: ...here.
7235 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7237 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
7238 Use it instead of directly int $0x80.
7239 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
7240 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
7241 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7242 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7243 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7244 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7246 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7248 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
7250 * elf/elf.h (AT_SYSINFO): New define.
7251 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
7254 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7256 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
7258 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
7260 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
7262 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
7264 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
7266 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
7268 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
7269 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
7270 available, otherwise __libc_maybe_call.
7271 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
7272 cancellation handling.
7273 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
7275 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
7277 * posix/regcomp.c (free_workarea_compile): Free the new member
7279 (analyze): Initialize ORG_INDICES.
7280 (duplicate_node_closure): Search for a existing node, which is
7281 duplicated from the node ORG_DEST and satisfies the constraint
7282 CONSTRAINT. And use it to avoid inifimite loop.
7283 (search_duplicated_node): New function.
7284 (duplicate_node): Store the index of the original node.
7285 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
7287 * posix/regex_internal.h (re_dfa_t): Add new members.
7289 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7291 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
7293 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7295 * sysdeps/posix/system.c (do_system): Add support for installation
7296 of cancellation handlers.
7297 * sysdeps/unix/sysv/linux/i386/system.c: New file.
7299 * stdlib/Makefile (tests): Add tst-system.
7300 * stdlib/tst-system.c: New file.
7302 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
7303 CENABLE]: Don't lose content of %ebx.
7305 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7307 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
7308 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
7310 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7312 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
7313 fails to return a function pointer don't use it.
7315 2002-12-16 Art Haas <ahaas@airmail.net>
7317 * io/ftw.c: Convert GCC extension initializer syntax to C99.
7318 * iconvdata/iso-ir-165.c: Likewise.
7319 * iconvdata/jis0208.c: Likewise.
7320 * iconvdata/jis0212.c: Likewise.
7322 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7324 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
7325 epoll_ctl, and epoll_wait.
7326 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
7327 epoll_create, epoll_ctl, and epoll_wait.
7328 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
7329 Davide Libenzi <davidel@xmailserver.org>.
7330 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
7331 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7334 2002-12-16 Art Haas <ahaas@airmail.net>
7336 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
7338 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
7339 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
7340 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
7342 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7344 * stdio-common/Makefile (routines): Remove lockfile. Add
7345 flockfile, ftrylockfile, and funlockfile.
7346 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
7347 * sysdeps/generic/flockfile.c: New file.
7348 * sysdeps/generic/ftrylockfile.c: New file.
7349 * sysdeps/generic/funlockfile.c: New file.
7351 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7353 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
7354 macros instead of doing the calls directly.
7355 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
7356 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
7359 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7361 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
7362 * sysdeps/ieee754/bits/nan.h: Likewise.
7364 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
7365 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
7367 2002-12-16 Roland McGrath <roland@redhat.com>
7369 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
7370 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
7371 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
7373 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
7374 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
7376 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
7377 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
7378 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
7379 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
7380 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
7381 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
7382 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
7383 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
7385 2002-12-13 Paul Eggert <eggert@twinsun.com>
7387 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
7388 is now u_int, not int.
7389 (struct XDR.x_handy): Now u_int, not int.
7390 * sunrpc/xdr_mem.c: Include <limits.h>.
7391 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
7392 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
7393 x_handy is now unsigned, not signed.
7394 Do not decrement x_handy if no change is made.
7395 (xdrmem_setpos): Check for int overflow.
7396 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
7397 (xdr_sizeof): Remove cast that is now unnecessary, now that
7398 x_handy is unsigned.
7400 2002-12-15 Art Haas <ahaas@airmail.net>
7402 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
7403 * iconvdata/gap.awk: Likewise.
7404 * iconvdata/gen-8bit-gap-1.sh: Likewise.
7405 * iconvdata/gen-8bit-gap.sh: Likewise.
7406 * locale/C-address.c: Likewise.
7407 * locale/C-collate.c: Likewise.
7408 * locale/C-ctype.c: Likewise.
7409 * locale/C-identification.c: Likewise.
7410 * locale/C-measurement.c: Likewise.
7411 * locale/C-messages.c: Likewise.
7412 * locale/C-monetary.c: Likewise.
7413 * locale/C-name.c: Likewise.
7414 * locale/C-numeric.c: Likewise.
7415 * locale/C-paper.c: Likewise.
7416 * locale/C-telephone.c: Likewise.
7417 * locale/C-time.c: Likewise.
7418 * nscd/connections.c: Likewise.
7419 * nscd/grpcache.c: Likewise.
7420 * nscd/hstcache.c: Likewise.
7421 * nscd/pwdcache.c: Likewise.
7422 * stdio-common/vfprintf.c: Likewise.
7423 * stdlib/random.c: Likewise.
7424 * sysdeps/generic/siglist.c: Likewise.
7425 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7426 * sysdeps/ieee754/bits/nan.h: Likewise.
7427 * sysdeps/posix/sprofil.c: Likewise.
7428 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
7429 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
7430 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
7432 2002-12-15 Roland McGrath <roland@redhat.com>
7434 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
7436 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
7437 <tls.h> here, no need for it.
7438 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
7440 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
7441 parameter, not varargs parameter.
7443 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
7444 argument so it's not an unused variable.
7446 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
7447 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
7450 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
7452 2002-12-15 Ulrich Drepper <drepper@redhat.com>
7454 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
7455 original __libc_fcntl code. Just renamed.
7457 2002-12-15 Andreas Schwab <schwab@suse.de>
7459 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
7461 2002-12-14 Olaf Hering <olh@suse.de>
7463 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
7464 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
7466 2002-12-15 Ulrich Drepper <drepper@redhat.com>
7468 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
7470 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
7471 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
7473 * sysdeps/unix/sysv/linux/open64.c: New file.
7475 * sysdeps/generic/pselect.c: Add support for cancellation handling.
7476 * sysdeps/posix/open64.c: Likewise.
7477 * sysdeps/posix/sigpause.c: Likewise.
7478 * sysdeps/posix/sigwait.c: Likewise.
7479 * sysdeps/posix/system.c: Likewise.
7480 * sysdeps/posix/waitid.c: Likewise.
7481 * sysdeps/unix/sysv/linux/accept.S: Likewise.
7482 * sysdeps/unix/sysv/linux/connect.S: Likewise.
7483 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
7484 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
7485 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
7486 * sysdeps/unix/sysv/linux/poll.c: Likewise.
7487 * sysdeps/unix/sysv/linux/pread.c: Likewise.
7488 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7489 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
7490 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7491 * sysdeps/unix/sysv/linux/readv.c: Likewise.
7492 * sysdeps/unix/sysv/linux/recv.S: Likewise.
7493 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
7494 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
7495 * sysdeps/unix/sysv/linux/send.S: Likewise.
7496 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
7497 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
7498 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
7499 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
7500 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
7501 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
7502 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
7503 * sysdeps/unix/sysv/linux/wait.c: Likewise.
7504 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
7505 * sysdeps/unix/sysv/linux/writev.c: Likewise.
7506 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7507 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7509 2002-12-14 Jakub Jelinek <jakub@redhat.com>
7511 * sysdeps/generic/sysdep-cancel.h: New file.
7512 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
7514 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
7515 recvmsg, send, sendmsg, sendto): Make cancelable.
7516 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
7517 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
7518 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7519 sendto, osf_select): Likewise.
7520 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
7521 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
7522 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
7523 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7525 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
7526 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
7527 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
7528 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7530 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
7531 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7532 sendto, select): Likewise.
7533 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
7534 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
7536 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
7537 select, fcntl): Likewise.
7538 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
7539 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
7540 read, readv, select, sigsuspend, write, writev): Likewise.
7542 2002-12-14 Jakub Jelinek <jakub@redhat.com>
7544 * dirent/bug-readdir1.c: Include unistd.h.
7546 2002-12-13 Jakub Jelinek <jakub@redhat.com>
7548 * locale/programs/locale.c: Include locarchive.h.
7549 (ARCHIVE_NAME): Define.
7550 (write_archive_locales): New function.
7551 (write_locales): Use it. Ensure the same locale is not printed
7552 multiple times in verbose mode.
7553 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
7554 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
7556 (struct nameent): New type.
7557 (nameentcmp): New function.
7559 2002-12-14 Jakub Jelinek <jakub@redhat.com>
7561 * posix/regex_internal.c (re_string_context_at): Guard wide char
7562 code with #ifdef RE_ENABLE_I18N.
7564 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
7566 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
7568 2002-12-13 Roland McGrath <roland@redhat.com>
7570 * posix/bug-regex15.c: New file.
7571 * posix/Makefile (tests): Add it.
7573 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
7574 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
7576 2002-12-13 Ulrich Drepper <drepper@redhat.com>
7578 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
7580 * misc/syslog.c (log_cleanup): Don't use parameter in
7581 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
7582 pass NULL instead of a pointer to syslog_lock.
7584 2002-12-12 Ulrich Drepper <drepper@redhat.com>
7586 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
7587 linker map for all iconv modules.
7588 (distribute): Add gconv.map.
7589 * iconvdata/gconv.map: New file.
7591 * elf/Makefile: Also check all iconv modules for text relocations.
7593 * stdlib/Makefile: Remove code to automatically import GMP.
7595 * elf/Makefile (tests): Add rules to build and run check-textrel.
7596 * elf/check-textrel.c: New file.
7598 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
7601 2002-12-11 Jakub Jelinek <jakub@redhat.com>
7603 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
7606 2002-04-30 Bruno Haible <bruno@clisp.org>
7608 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
7609 the encoding if it already has slashes.
7610 Reported by Perry Rapp <prapp@erols.com>.
7612 2002-12-11 Roland McGrath <roland@redhat.com>
7614 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
7615 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
7616 Turn off PIC for compiling this file.
7618 2002-12-11 Ulrich Drepper <drepper@redhat.com>
7620 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
7621 definitions. Not needed.
7622 [_LIBC]: Use definitions from libc-lock.h instead of referencing
7623 pthread routines directly.
7624 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
7626 (arena_get2): Don't look at return value of mutex_lock.
7628 2002-12-11 Roland McGrath <roland@redhat.com>
7630 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
7631 elf-init.o instead of compiling a PIC version.
7633 2002-12-11 Bruno Haible <bruno@clisp.org>
7635 * intl/gettext.h: Renamed to ...
7636 * intl/gmo.h: ... here.
7637 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
7638 * intl/gettextP.h: Update.
7639 * intl/loadmsgcat.c: Update.
7641 * intl/gettextP.h (PARAMS): Make more portable.
7642 (attribute_hidden): Define as empty macro if not already defined.
7643 * intl/hash-string.h (PARAMS): Make more portable.
7644 * intl/loadinfo.h (PARAMS): Likewise.
7645 * intl/plural-exp.h (PARAMS): Likewise.
7646 (attribute_hidden): Move definition near the definition of
7649 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
7650 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
7652 2002-07-13 Bruno Haible <bruno@clisp.org>
7654 * intl/dcigettext.c (freea): New macro.
7655 (FREE_BLOCKS): Free also the registered blocks.
7656 (DCIGETTEXT): Free the 'search' variable.
7657 Reported by Andreas Fischer <a.fischer@asentics.de>.
7659 2002-04-27 Bruno Haible <bruno@clisp.org>
7661 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
7662 * intl/dcigettext.c: Likewise.
7663 * intl/dcgettext.c: Likewise.
7664 * intl/dgettext.c: Likewise.
7665 * intl/gettext.c: Likewise.
7666 * intl/dcngettext.c: Likewise.
7667 * intl/dngettext.c: Likewise.
7668 * intl/ngettext.c: Likewise.
7669 * intl/textdomain.c: Likewise.
7670 * intl/bindtextdom.c: Likewise.
7671 * intl/plural-exp.h: Likewise.
7673 2002-01-02 Bruno Haible <bruno@clisp.org>
7675 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
7677 2001-04-30 Bruno Haible <bruno@clisp.org>
7679 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
7680 default macro definitions. Needed for mingw32.
7682 2002-12-10 Ulrich Drepper <drepper@redhat.com>
7684 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
7685 __builtin_constant_p to macro parameter.
7687 * sysdeps/generic/sigpause.c: Define all functions as weak.
7688 * sysdeps/posix/sigpause.c: Likewise.
7690 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
7693 2002-12-10 Jakub Jelinek <jakub@redhat.com>
7695 * elf/tst-array1.c (preinit_array, init_array, fini_array):
7696 Explicitly align the array to sizeof (void *).
7697 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
7699 * include/libc-symbols.h: Fix a comment typo.
7701 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
7702 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
7704 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
7706 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
7707 (__libc_sigsuspend): Likewise.
7708 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
7709 (__libc_sigsuspend): Likewise.
7710 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
7711 (creat): New weak alias.
7713 2002-12-10 Roland McGrath <roland@redhat.com>
7715 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
7716 contributes a manual chapter.
7717 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
7720 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
7721 and move contents to ...
7722 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
7723 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
7724 it instead of duplicating its contents.
7725 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
7727 2002-12-09 Jakub Jelinek <jakub@redhat.com>
7729 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
7731 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
7733 (EXTRA_LD_ENVVARS): Use it.
7734 (DL_OSVERSION_INIT): Define.
7735 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
7737 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
7739 2002-12-10 Ulrich Drepper <drepper@redhat.com>
7741 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
7743 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
7744 call. It is not allowed to destroy pthread mutexes which are
7745 still in use even though it is safe for our implementations. If
7746 somebody still uses the descriptor it is a bug.
7748 2002-12-09 Richard Henderson <rth@redhat.com>
7750 * csu/abi-note.S: Use .p2align, not .align.
7752 2002-12-09 Ulrich Drepper <drepper@redhat.com>
7754 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
7755 __libc_select aliases.
7757 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
7760 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
7762 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
7764 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
7766 * sysdeps/unix/syscalls.list: Define __libc_select alias.
7768 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
7770 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
7771 __libc___xpg_sigpause aliases.
7773 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
7775 * misc/error.c: Remove use of USE_IN_LIBIO.
7777 2002-12-08 Roland McGrath <roland@redhat.com>
7779 * elf/Makefile (tests): Uncomment tst-array[123].
7780 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
7781 * csu/elf-init.c: New file.
7782 * csu/Makefile (routines, static-only-routines): Add elf-init.
7783 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
7784 and __libc_csu_fini in place of _fini.
7785 * sysdeps/arm/elf/start.S: Likewise.
7786 * sysdeps/cris/elf/start.S: Likewise.
7787 * sysdeps/hppa/elf/start.S: Likewise.
7788 * sysdeps/i386/elf/start.S: Likewise.
7789 * sysdeps/ia64/elf/start.S: Likewise.
7790 * sysdeps/m68k/elf/start.S: Likewise.
7791 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
7792 * sysdeps/mips/elf/start.S: Likewise.
7793 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
7794 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
7795 * sysdeps/s390/s390-32/elf/start.S: Likewise.
7796 * sysdeps/s390/s390-64/elf/start.S: Likewise.
7797 * sysdeps/sh/elf/start.S: Likewise.
7798 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7799 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7800 * sysdeps/x86_64/elf/start.S: Likewise.
7802 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
7803 struct containing function ptr and value, free it.
7804 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
7805 It's not safe to let the new thread use the SIGEV pointer.
7807 2001-10-20 Paul Eggert <eggert@twinsun.com>
7809 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
7810 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
7811 Use strerror_r that is only a macro, even if it is not a function.
7812 (strerror): Check for HAVE_DECL_STRERROR before declaring.
7813 (private_strerror): Use prototypes, not old-style function definition.
7814 (print_errno_message): New function.
7815 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
7817 (error_tail, error, error_at_line): Use it.
7819 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
7821 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
7823 2002-12-08 Ulrich Drepper <drepper@redhat.com>
7825 * scripts/output-format.sed: Fix bug in one of the s expressions
7826 which used / for one too many things.
7828 * include/unistd.h: Declare __libc_close.
7830 2002-12-07 Ulrich Drepper <drepper@redhat.com>
7832 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
7834 2002-12-07 Roland McGrath <roland@redhat.com>
7836 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
7837 from 2002-12-06, but remove unnecessary memset call without removing
7838 necessary copy of initialization image.
7840 * Makerules ($(common-objpfx)format.lds): New target.
7841 (common-generated): Add it.
7842 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
7843 * scripts/output-format.sed: New file.
7844 * Makefile (distribute): Add it.
7846 2002-12-07 Ulrich Drepper <drepper@redhat.com>
7848 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
7849 Reported by Art Haas <ahaas@airmail.net>.
7851 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
7853 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
7855 2002-12-07 Jakub Jelinek <jakub@redhat.com>
7857 * string/test-strncpy.c (do_random_tests): Improve test coverage.
7859 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7861 * test-skeleton.c (timeout_handler): Allow expected signal to be
7864 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
7866 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
7868 2002-12-07 Jakub Jelinek <jakub@redhat.com>
7870 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
7871 (SYSCALL_ERROR_HANDLER): Fix a pasto.
7872 Reported by Jeff Bailey <jbailey@nisa.net>.
7874 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7876 * sysdeps/generic/libc-tls.c: Undo last patch.
7878 * include/wctype.h: Define iswalnum with libc_hidden_proto.
7880 * include/signal.h: Define raise with libc_hidden_proto.
7882 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
7883 __execve instead of snprintf and execve.
7885 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
7888 2002-12-06 Jakub Jelinek <jakub@redhat.com>
7890 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
7891 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
7893 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7895 * misc/syslog.c (log_cleanup): New function.
7896 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
7897 (closelog): Likewise.
7899 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
7900 * elf/dl-iteratephdr.c: Likewise.
7901 * elf/dl-lookup.c: Likewise.
7902 * elf/dl-misc.c: Likewise.
7903 * elf/dl-open.c: Likewise.
7904 * elf/dl-support.c: Likewise.
7905 * elf/rtld.c: Likewise.
7906 * sysdeps/generic/ldsodefs.h: Likewise.
7907 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
7908 * sysdeps/mach/bits/libc-lock.h: Likewise.
7909 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7911 2002-12-06 Roland McGrath <roland@redhat.com>
7913 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
7915 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
7916 (malloc_starter, memalign_starter, free_starter): Don't define these.
7917 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
7918 Don't declare them either.
7919 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
7920 __pthread_initialize, so no need to set hooks to *_starter.
7921 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
7922 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
7923 (__libc_malloc_pthread_startup): New function.
7924 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
7926 * malloc/hooks.c (memalign_starter): New function.
7927 * malloc/malloc.c: Declare it.
7928 * malloc/arena.c (save_memalign_hook): New variable.
7929 (ptmalloc_init): Set __memalign_hook to memalign_starter.
7931 * elf/dl-minimal.c (free): Clear the memory.
7932 (calloc): Just call malloc, knowing all memory it returns is cleared.
7934 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
7935 malloc and memset; calloc can avoid the zeroing when redundant.
7936 (_dl_tls_setup): Likewise.
7937 * elf/dl-load.c (decompose_rpath): Likewise.
7938 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
7939 call, since memory from sbrk at startup is already zero.
7941 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
7942 error string for failure, null for success. Update callers.
7943 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
7944 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
7946 2002-12-05 Jakub Jelinek <jakub@redhat.com>
7948 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
7950 (readahead): Change args to i:iii.
7951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
7952 Change args to i:iii.
7953 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
7956 2002-12-05 Roland McGrath <roland@redhat.com>
7958 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
7959 call all functions rather than none.
7960 Reported by Mark P. Mitchell <mark@codesourcery.com>.
7962 2002-12-04 Roland McGrath <roland@redhat.com>
7964 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
7965 on _nl_current_LC_* variables.
7967 2002-12-05 Ulrich Drepper <drepper@redhat.com>
7969 * dirent/bug-readdir1.c (main): Don't call closedir, just close
7970 the file descriptor. This is testing what the bug report was about.
7972 2002-12-04 Ulrich Drepper <drepper@redhat.com>
7974 * po/be.po: New file.
7976 * argp/Makefile (tests): Add tst-argp1.
7978 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
7979 Change type of _attribute to void*.
7980 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7981 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7982 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
7983 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7984 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7986 2002-12-04 Roland McGrath <roland@redhat.com>
7988 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
7989 members to the end, so a libpthread compiled with !USE_TLS will still
7990 find other members properly.
7992 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
7993 operand for DEST memory. Fix dummy input operand to use SRC.
7994 Reported by Davin McCall <davmac@ozonline.com.au>.
7996 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
7997 alignment when initializing the DTV entry.
7999 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8000 when TLS has not been set up, try to set it up if we can.
8001 * elf/tst-tls4.c: Revert last change.
8002 * elf/tst-tls5.c: Likewise.
8003 * elf/tst-tls6.c: Likewise.
8004 * elf/tst-tls7.c: Likewise.
8005 * elf/tst-tls8.c: Likewise.
8006 * elf/tst-tls9.c: Likewise.
8008 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8009 * sysdeps/generic/ldsodefs.h: Declare it.
8010 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8011 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8012 function, broken out of __libc_setup_tls.
8013 (init_static_tls): Likewise.
8014 (__libc_setup_tls): Call them.
8015 (_dl_tls_setup): New function, uses new subroutines.
8017 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8018 Clear the pointer when returning true.
8019 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8020 first element of the slotinfo list too.
8022 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8025 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8026 (_dl_determine_tlsoffset): Likewise.
8028 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8029 startup_error_tsd, made global.
8030 (dl_main): Update initialization.
8031 * elf/dl-tsd.c: Likewise.
8032 * sysdeps/generic/ldsodefs.h: Declare it.
8034 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8036 * manual/texinfo.tex: Update from latest upstream version.
8038 2002-12-03 Roland McGrath <roland@redhat.com>
8040 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
8041 area surplus in calculation for sbrk call.
8043 * iconvdata/cp1125.c: New file.
8044 * iconvdata/Makefile (distribute): Add it.
8045 (modules): Add CP1125.
8046 (gen-8bit-gap-modules): Add cp1125.
8047 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
8048 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
8050 2002-12-03 Andreas Jaeger <aj@suse.de>
8052 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8054 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8056 * sysdeps/posix/system.c (do_system): Make signal handler
8057 installation thread safe.
8059 2002-12-02 Roland McGrath <roland@redhat.com>
8061 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
8062 caller from EXTRA to -.
8063 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8064 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8065 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8067 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
8069 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
8070 bits of RM are cleared.
8072 2002-12-02 Roland McGrath <roland@redhat.com>
8074 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
8075 TLS setup is required.
8076 * elf/tst-tls5.c: Likewise.
8077 * elf/tst-tls6.c: Likewise.
8078 * elf/tst-tls7.c: Likewise.
8079 * elf/tst-tls8.c: Likewise.
8080 * elf/tst-tls9.c: Likewise.
8082 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
8083 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
8084 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
8085 for being null before calling free_slotinfo.
8086 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
8087 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
8089 2002-11-30 Bruno Haible <bruno@clisp.org>
8091 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
8092 (struct __gconv_step): New field __btowc_fct.
8093 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
8094 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
8096 (__gconv_btwoc_ascii): New declaration.
8097 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8098 (__gconv_btwoc_ascii): New function.
8099 * iconv/gconv_builtin.h: Add BtowcFct argument to all
8100 BUILTIN_TRANSFORMATION invocations.
8101 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8102 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
8103 * iconv/gconv_builtin.c (map): New field btowc_fct.
8104 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
8106 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
8107 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
8108 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
8109 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
8110 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
8111 (gconv_init): Initialize __btowc_fct field.
8112 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
8113 * iconv/loop.c: Document ONEBYTE_BODY.
8114 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
8115 Undefine ONEBYTE_BODY at the end.
8116 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
8117 * iconvdata/8bit-gap.c (NONNUL): New macro.
8118 (BODY for FROM_LOOP): Use it.
8119 (ONEBYTE_BODY): New macro.
8120 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
8121 (NONNUL): New macro.
8122 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
8123 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
8124 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
8125 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
8126 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
8127 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
8128 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
8129 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
8130 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
8131 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
8132 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
8133 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
8134 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
8135 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
8136 * iconvdata/ibm932.c: Include <stdbool.h>.
8137 (TRUE, FALSE): Remove macros.
8138 (BODY for FROM_LOOP): Remove unused variable rp1.
8139 (ONEBYTE_BODY): New macro.
8140 (BODY for TO_LOOP): Use bool.
8141 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
8142 * iconvdata/ibm943.c: Include <stdbool.h>.
8143 (TRUE, FALSE): Remove macros.
8144 (BODY for FROM_LOOP): Remove unused variable rp1.
8145 (ONEBYTE_BODY): New macro.
8146 (BODY for TO_LOOP): Use bool.
8147 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
8148 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
8149 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
8150 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
8151 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
8152 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
8153 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
8154 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
8155 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
8156 * iconvdata/gbbig5.c: Tweak comment.
8158 2002-12-02 Ulrich Drepper <drepper@redhat.com>
8160 * po/fi.po: Update from translation team.
8162 2002-12-01 Roland McGrath <roland@redhat.com>
8164 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8165 testing getdents64 return value.
8167 * scripts/versions.awk: Don't pass -n flag to sort command.
8169 * posix/bug-regex13.c: Include <string.h>.
8171 * sysdeps/generic/libc-start.c (__libc_start_main): Do
8172 DL_SYSDEP_OSCHECK here.
8173 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
8174 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
8176 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
8177 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
8179 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
8180 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
8182 * include/link.h: Comment typo fix.
8184 2002-12-01 Roland McGrath <roland@frob.com>
8186 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
8187 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
8188 _POSIX_MEMORY_PROTECTION): Likewise.
8189 (_POSIX_POLL, _POSIX_SELECT): Removed.
8191 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8193 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
8194 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
8196 2002-11-28 Jakub Jelinek <jakub@redhat.com>
8198 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
8200 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
8203 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8205 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
8206 branch prediction buffers by using unpaired call/ret.
8208 2002-11-27 Ulrich Drepper <drepper@redhat.com>
8210 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
8211 first parameters constraint string.
8212 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
8214 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
8216 * posix/regcomp.c (parse_expression): Set the bit since the back
8217 reference is used in the regular expression.
8218 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
8220 (re_node_set_init_copy): Likewise.
8221 * posix/regex_internal.h (state_array_t): New structure.
8222 (re_sub_match_last_t): Likewise.
8223 (re_sub_match_top_t): Likewise.
8224 (re_match_context_t): Add new members.
8225 (re_dfa_t): Likewise.
8226 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
8227 to check the matching is really correct, and retry if failed.
8228 Move the routin pruning the impossible nodes from here, ...
8229 (prune_impossible_nodes): To this function.
8230 (check_matching): Invoke check_subexp_matching_top, and replace
8231 redundant checking with transit_state_bkref invocation.
8232 (proceed_next_node): Replace strncmp with memcmp. Reported by
8233 Paolo Bonzini <bonzini@gnu.org>.
8234 (update_cur_sifted_state): Remove search_subexp invocation.
8235 (search_subexp): Remove this function.
8236 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
8238 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
8239 Remove unused invocation of match_ctx_add_entry.
8240 (transit_state): Invoke check_subexp_matching_top.
8241 (check_subexp_matching_top): New function.
8242 (transit_state_bkref): Remove unused array.
8243 Merge transit_state_bkref_loop.
8244 (transit_state_bkref_loop): Use get_subexp instead of
8245 sift_states_backward. Use search_cur_bkref_entry for optimization.
8246 Merge this function to transit_state_bkref.
8247 (get_subexp): New function.
8248 (get_subexp_sub): Likewise.
8249 (find_subexp_node): Likewise.
8250 (check_arrival): Likewise.
8251 (check_arrival_expand_ecl): Likewise.
8252 (check_arrival_expand_ecl_sub): Likewise.
8253 (expand_bkref_cache): Likewise.
8254 (match_ctx_init): Initialize new members.
8255 (match_ctx_clean): New function.
8256 (match_ctx_free): Release new members.
8257 (match_ctx_free_subtops): New function.
8258 (match_ctx_add_entry): Fix indent.
8259 (search_cur_bkref_entry): New function.
8260 (match_ctx_add_subtop): Likewise.
8261 (match_ctx_add_sublast): Likewise.
8263 2002-11-25 Ulrich Drepper <drepper@redhat.com>
8265 * iconv/Makefile (tests): Remove tst-iconv4.c
8266 * iconv/tst-iconv4.c: Moved to...
8267 * iconvdata/tst-iconv4.c: ...here. New file.
8268 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
8270 2002-11-25 Roland McGrath <roland@redhat.com>
8272 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
8273 Grok AF_LINK if defined.
8274 From Momchil Velikov <velco@fadata.bg>.
8276 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
8277 brdaddr, or dstaddr, just set those pointers to null and don't fail.
8278 Reported by Momchil Velikov <velco@fadata.bg>.
8280 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
8281 is > sizeof IFR->ifa_addr, advance past the whole longer length.
8282 (__ifreq): Count up NIFS that way too.
8283 Reported by Momchil Velikov <velco@fadata.bg>.
8285 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
8287 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
8288 and <fpu_control.h>.
8290 2002-11-24 Ulrich Drepper <drepper@redhat.com>
8292 * elf/elf.h (EM_ST19): Fix typo.
8294 2002-11-25 Jakub Jelinek <jakub@redhat.com>
8296 * include/errno.h (__set_errno): Define as errno = val
8299 2002-11-24 Roland McGrath <roland@redhat.com>
8301 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
8302 * sysdeps/posix/writev.c: Likewise.
8303 From Momchil Velikov <velco@fadata.bg>.
8305 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
8306 calling *GL(dl_error_catch_tsd) for a thread-local location.
8307 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
8308 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
8309 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
8311 * libio/iofflush.c: Add libc_hidden_def.
8312 * libio/iofwrite.c: Likewise.
8313 * sysdeps/generic/sigtimedwait.c: Likewise.
8314 * sysdeps/generic/sigwaitinfo.c: Likewise.
8315 * sysdeps/posix/sigwait.c: Likewise.
8316 Reported by Momchil Velikov <velco@fadata.bg>.
8318 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
8319 to match <arpa/inet.h> declaration.
8320 * inet/inet_netof.c (inet_netof): Likewise.
8321 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
8322 Reported by Momchil Velikov <velco@fadata.bg>.
8324 * configure.in: Skip AUTOCONF check under --without-cvs.
8325 * configure: Regenerated.
8327 * posix/Makefile (headers): Add bits/pthreadtypes.h.
8328 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
8329 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
8331 2002-11-24 Andreas Schwab <schwab@suse.de>
8333 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
8336 2002-11-19 Jim Meyering <jim@meyering.net>
8338 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
8340 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
8342 2002-11-23 Roland McGrath <roland@redhat.com>
8344 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
8345 Just produce hex output for datum sizes.
8347 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
8348 Reported by Luca Barbieri <ldb@ldb.ods.org>.
8350 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
8352 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
8353 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8354 and __unused3 fields.
8355 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
8356 [__WORDSIZE == 32]: Only PPC32 requires __unused1
8357 and __unused2 fields.
8358 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
8359 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8360 __unused3, and __unused4 fields.
8362 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
8363 obtain lowest address for profiling in __monstartup call.
8365 2002-11-21 Roland McGrath <roland@redhat.com>
8367 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
8368 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
8370 * locale/localeinfo.h (struct locale_data): Revert last change.
8372 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
8373 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8375 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
8376 __NR_pread64 if not defined.
8377 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
8378 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8380 2002-11-21 Roland McGrath <roland@frob.com>
8382 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
8383 __libc_multiple_libcs here. Call __setfpucw.
8385 2002-11-21 Ulrich Drepper <drepper@redhat.com>
8387 * elf/Makefile (tests): Don't run test-arrayX tests for now.
8389 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
8390 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
8391 CLONE_CHILD_*TID flags.
8393 2002-11-20 Andreas Jaeger <aj@suse.de>
8395 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
8396 We pass struct ucontext on x86-64.
8398 (GET_FRAME): Adjust.
8399 (GET_STACK): Adjust.
8401 2002-11-20 Roland McGrath <roland@redhat.com>
8403 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
8404 conditionalize [! DO_VERSIONING] #error.
8406 * scripts/abilist.awk: Grok function descriptor symbols.
8408 * intl/tst-gettext.c (main): Check return values from setlocale.
8409 Add necessary unsetenv's to make LANG=existing-locale check work.
8411 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
8412 so aborted prior runs don't confuse things.
8414 * locale/localeinfo.h (struct locale_data: union locale_data_value):
8415 Use uintptr_t instead of unsigned int for `word' member.
8416 (_NL_CURRENT_WORD): Cast to uint32_t.
8418 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
8421 2002-11-20 Ulrich Drepper <drepper@redhat.com>
8423 * elf/tls-macros.h: Add IA-64 definitions.
8424 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
8426 * iconv/Makefile (tests): Add tst-iconv4.
8427 * iconv/tst-iconv4.c: New file.
8429 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
8430 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
8431 __GCONV_INCOMPLETE_INPUT.
8432 (ucs4le_internal_loop): Likewise.
8433 (ucs4le_internal_loop_unaligned): Likewise.
8434 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
8435 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
8436 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
8438 * iconv/loop.c (LOOPFCT): First test for empty input then for full
8441 * inet/getnameinfo.c: Use extend_alloca where appropriate.
8442 * sysdeps/posix/getaddrinfo.c: Likewise.
8444 * include/alloca.h (extend_alloca): New define. Based on stack
8445 direction it'll try to append to the previouls allocated buffer.
8447 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
8449 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
8450 use the same service for AF_INET and AF_INET6.
8452 2002-11-19 Ulrich Drepper <drepper@redhat.com>
8454 * intl/localealias.c (read_alias_file): Use only about 400 bytes
8455 of stack space instead of 16k.
8457 2002-11-18 Wolfram Gloger <wg@malloc.de>
8460 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
8461 nothing if not initialized. Bug report from Marcus Brinkmann
8462 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8464 2002-11-19 Roland McGrath <roland@redhat.com>
8466 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
8469 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
8470 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
8471 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
8472 * configure: Regenerated.
8474 2002-11-19 Ulrich Drepper <drepper@redhat.com>
8476 * include/dlfcn.h: __libc_dlopen is now a macro calling
8477 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
8478 (__libc_dlopen_mode): New prototype.
8479 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
8480 new parameter. Store new parameter in mode field of structure passed
8482 (struct do_dlopen_args): Add new field mode.
8483 (do_dlopen): Pass mode from parameter structure to _dl_open.
8485 2002-11-11 Randolf Chung <tausq@debian.org>
8487 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
8488 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
8489 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
8491 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
8493 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
8494 Set -mdisable-fpregs for this file.
8496 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
8498 * sysdeps/unix/sysv/linux/configure.in:
8499 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
8500 from gcc-3.0 era for backwards compatibility.
8501 * sysdeps/unix/sysv/linux/configure: Regenerate.
8503 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
8504 Define mcontext_t as a sigcontext.
8506 2002-11-18 Roland McGrath <roland@redhat.com>
8508 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
8509 Free memory in `last_result' if it was used.
8511 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
8512 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
8513 Do the parsing inline instead of copying strings and calling
8514 inet_network, and properly skip all alias names not matching the form.
8516 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
8518 2002-11-17 Ulrich Drepper <drepper@redhat.com>
8520 * manual/pattern.texi (Wordexp Example): Fix sample code.
8522 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
8523 childs stack which will be loaded into the %esi register.
8525 2002-11-14 Paul Eggert <eggert@twinsun.com>
8527 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
8528 overflow when skipping the question part and when unpacking aliases.
8530 2002-11-15 Roland McGrath <roland@redhat.com>
8532 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
8533 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
8534 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
8536 2002-11-15 Jakub Jelinek <jakub@redhat.com>
8538 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
8539 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
8541 2002-11-15 Roland McGrath <roland@redhat.com>
8543 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
8544 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
8545 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
8546 (+make-include-of-dep): New canned sequence.
8548 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
8549 From Dmitry V. Levin <ldv@altlinux.org>.
8551 2002-11-14 Roland McGrath <roland@redhat.com>
8553 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
8554 * inet/herrno.c (__libc_h_errno): Likewise.
8555 * resolv/res_libc.c (__libc_res): Likewise.
8556 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
8557 (__res_state) [! USE___THREAD]: Don't define as weak.
8558 * csu/Versions: Revert last change.
8559 * resolv/Versions: Revert last change.
8561 * Makerules ($(common-objpfx)%.make): New pattern rule.
8562 * tls.make.c: New file.
8563 * Makefile (distribute): Add it.
8565 * sysdeps/generic/errno.c [! USE___THREAD]
8566 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
8567 with compat_symbol so they are not link-time visible.
8568 [! USE___THREAD] (__libc_errno): New alias for errno.
8569 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
8570 Add __libc_errno here.
8571 * inet/herrno.c [USE___THREAD]: Use this conditional
8572 in place of [USE_TLS && HAVE___THREAD].
8573 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
8574 (h_errno, _h_errno): Declare these with compat_symbol so they are not
8576 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
8577 * resolv/res_libc.c [! USE___THREAD]
8578 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
8579 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
8580 (__libc_res): Define as alias for _res.
8581 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
8582 Add __libc_h_errno and __libc_res here.
8584 2002-11-14 Jakub Jelinek <jakub@redhat.com>
8586 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
8587 * resolv/Versions (h_errno, _res): Likewise.
8589 2002-11-14 Roland McGrath <roland@redhat.com>
8591 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
8592 (%.symlist): Likewise.
8594 2002-11-13 Roland McGrath <roland@redhat.com>
8596 * scripts/abilist.awk: New file.
8597 * Makefile (distribute): Add it.
8598 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
8599 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
8600 [$(subdir) = elf] (tests): Depend on libc.symlist.
8601 (generated, common-generated): Add those files.
8603 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
8604 * configure: Regenerated.
8605 * config.make.in (OBJDUMP): New variable, substituted by configure.
8607 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
8608 (mallochook, reallochook): Set them up.
8609 (checkhdr): Check HDR->magic2 value.
8610 (freehook): Reset HDR->magic2.
8611 (memalignhook): New static function.
8612 (old_memalign_hook): New static variable.
8613 (mcheck, reallochook): Set __memalign_hook to memalignhook.
8615 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
8618 2002-11-13 Andreas Jaeger <aj@suse.de>
8620 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
8622 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8624 2002-11-11 Paul Eggert <eggert@twinsun.com>
8626 * manual/crypt.texi (Cryptographic Functions): Mention that
8627 the MD5 one-way algorithm is compatible with BSD's.
8629 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
8631 * posix/regex_internal.c (re_string_skip_chars): Also return the last
8633 (re_string_reconstruct): Calculate the context by itself when the
8634 offset points out of the valid range.
8635 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
8636 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
8637 (IS_WIDE_WORD_CHAR): New macro.
8638 (IS_WIDE_NEWLINE): New macro.
8640 2002-11-12 Andreas Jaeger <aj@suse.de>
8642 * sysdeps/x86_64/strchr.S: Don't use one register for two
8643 purposes, this fixes a bug noticed by test-strchr.c.
8645 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
8648 2002-11-12 Roland McGrath <roland@redhat.com>
8650 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
8651 (_G_IO_NO_BACKWARD_COMPAT): Define it.
8653 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
8654 instead of <pt-machine.h>.
8655 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
8657 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8659 2002-11-10 Roland McGrath <roland@redhat.com>
8661 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
8662 Call fputs instead of fwprintf (simpler to follow in debugger).
8664 * crypt/md5-crypt.c: Doc fix.
8666 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
8667 the beginning of generated target commands.
8669 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
8670 dependencies for these in case implicit rule search skipped the
8671 nonexistent source directory.
8672 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
8673 files with $(object-suffixes) as targets too.
8674 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
8675 and a target for it using $(make-target-directory).
8677 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
8679 2002-11-10 Roland McGrath <roland@frob.com>
8681 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
8682 * sysdeps/generic/bits/pthreadtypes.h: ... here.
8684 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
8685 l_start == 0 and l_len == 1 as we do l_len == 0.
8687 2002-11-10 Ulrich Drepper <drepper@redhat.com>
8689 * po/da.po: Update from translation team.
8691 2002-11-10 Roland McGrath <roland@redhat.com>
8693 * config.make.in (includedir): New variable, substituted by configure.
8694 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
8695 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
8697 2002-11-10 Andreas Jaeger <aj@suse.de>
8699 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
8700 REG_OLDMASK and REG_CR2 to synch with kernel header.
8703 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
8705 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
8706 * nss/getnssent_r.c (__nss_getent_r): Likewise.
8707 (__nss_setent): Likewise.
8708 (__nss_getent_r): Likewise.
8709 * inet/getnetgrent_r.c (innetgr): Likewise.
8710 (__internal_setnetgrent_reuse): Likewise.
8711 (internal_getnetgrent_r): Likewise.
8712 * inet/ether_hton.c (ether_hostton): Likewise.
8713 * inet/ether_ntoh.c (ether_ntohost): Likewise.
8714 * sunrpc/netname.c (netname2user): Likewise.
8715 * sunrpc/publickey.c (getpublickey): Likewise.
8716 (getsecretkey): Likewise.
8718 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
8720 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
8721 error in range calculation.
8723 2002-10-09 Jakub Jelinek <jakub@redhat.com>
8725 * string/test-strspn.c (do_test): Ensure zero termination.
8726 * string/test-strpbrk.c (do_test): Likewise.
8727 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
8728 * string/test-strncpy.c (stupid_strncpy): Likewise.
8729 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
8731 2002-10-08 Roland McGrath <roland@redhat.com>
8733 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
8736 2002-09-22 H.J. Lu <hjl@gnu.org>
8738 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
8739 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
8740 only if __NR_mmap2 is defined.
8742 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
8743 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
8744 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
8745 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
8747 2002-11-08 Jakub Jelinek <jakub@redhat.com>
8749 * posix/bug-regex13.c (tests): Add new test.
8751 * string/test-strchr.c (stupid_strchr): New function.
8752 (do_random_tests): Make sure the string is zero terminated.
8753 * string/test-strpbrk.c (stupid_strpbrk): New function.
8754 (do_random_tests): Make sure the string is zero terminated.
8755 * string/test-strcmp.c (stupid_strcmp): New function.
8756 (do_random_tests): Make sure the strings are zero terminated.
8757 * string/test-strspn.c (stupid_strspn): New function.
8758 (simple_strspn): Rename rej argument to acc.
8759 (do_random_tests): Make sure the string is zero terminated.
8760 * string/test-strcspn.c (stupid_strcspn): New function.
8761 * string/test-strncpy.c (stupid_strncpy): New function.
8762 * string/test-stpncpy.c (stupid_stpncpy): New function.
8763 * string/test-strncmp.c (stupid_strncmp): New function.
8764 (do_random_tests): Make sure the strings are zero terminated.
8765 * string/test-string.h (impl_t): Change test into long.
8766 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
8768 2002-11-08 Roland McGrath <roland@redhat.com>
8770 * sysdeps/ia64/elf/configure.in: Add TLS check.
8771 From Ian Wienand <ianw@cse.unsw.edu.au>.
8772 * sysdeps/ia64/elf/configure: Regenerated.
8774 2002-11-07 Roland McGrath <roland@redhat.com>
8776 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
8777 place of _IO_new_do_write.
8778 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
8779 #undef before versioned_symbol use.
8781 2002-11-07 Richard Henderson <rth@redhat.com>
8783 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
8784 * configure: Regenerated.
8785 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
8786 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
8787 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
8788 _dl_fini via gp-relative relocations.
8789 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
8791 * elf/tls-macros.h: Add alpha versions.
8792 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
8793 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
8794 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
8795 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
8796 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8797 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
8798 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
8799 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
8800 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
8801 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
8802 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
8803 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
8804 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
8805 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
8806 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
8807 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
8808 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
8809 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
8811 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
8812 Kill argument registers across the inline syscall.
8814 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
8816 * linuxthreads/sysdeps/alpha/tls.h: New file.
8817 * sysdeps/alpha/dl-tls.h: New file.
8819 2002-10-29 David Mosberger <davidm@hpl.hp.com>
8821 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
8822 (gmon_initializer): New function.
8823 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
8824 __gmon_start__ here. Call it from gmon_initializer() instead.
8826 2002-03-12 H.J. Lu <hjl@gnu.org>
8828 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
8829 tst-array2, and tst-array3.
8830 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
8831 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
8832 ($(objpfx)tst-array1.out): New target.
8833 ($(objpfx)tst-array2): Likewise.
8834 ($(objpfx)tst-array2.out): Likewise.
8835 ($(objpfx)tst-array3.out): Likewise.
8836 * elf/tst-array1.c: New file.
8837 * elf/tst-array1.exp: Likewise.
8838 * elf/tst-array2.c: Likewise.
8839 * elf/tst-array2dep.c: Likewise.
8840 * elf/tst-array2.exp: Likewise.
8841 * elf/tst-array3.c: Likewise.
8843 2002-10-28 David Mosberger <davidm@hpl.hp.com>
8845 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
8846 Don't add L->l_addr to array entry values.
8848 2002-11-07 Jakub Jelinek <jakub@redhat.com>
8850 * string/test-string.h: New file.
8851 * string/test-strlen.c: New file.
8852 * string/test-string.h: New file.
8853 * string/test-strcmp.c: New file.
8854 * string/test-strchr.c: New file.
8855 * string/test-strrchr.c: New file.
8856 * string/test-strcpy.c: New file.
8857 * string/test-stpcpy.c: New file.
8858 * string/test-strncpy.c: New file.
8859 * string/test-stpncpy.c: New file.
8860 * string/test-strpbrk.c: New file.
8861 * string/test-strcspn.c: New file.
8862 * string/test-strspn.c: New file.
8863 * string/test-strcat.c: New file.
8864 * string/test-strncmp.c: New file.
8865 * string/test-memchr.c: New file.
8866 * string/test-memcmp.c: New file.
8867 * string/test-memset.c: New file.
8868 * string/test-memcpy.c: New file.
8869 * string/test-mempcpy.c: New file.
8870 * string/test-memmove.c: New file.
8871 * string/Makefile (strop-tests): New variable.
8872 (tests): Add strop-tests.
8873 (distribute): Add test-string.h.
8875 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8877 * posix/regcomp.c: Use tabs instead of spaces.
8878 * posix/regexec.c: Likewise.
8879 * posix/regex_internal.h: Likewise.
8881 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
8883 2002-11-06 Jakub Jelinek <jakub@redhat.com>
8885 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
8887 (regcomp): Don't set can_be_null here.
8888 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
8889 (re_compile_internal): Clear can_be_null, set regs_allocated.
8891 * posix/regcomp.c (re_set_fastmap): New function.
8892 (re_compile_fastmap_iter): Use it. Remove redundant type ==
8893 COMPLEX_BRACKET check.
8894 * posix/regexec.c (re_search_internal): Optimize searching with
8895 fastmap. Call re_string_reconstruct even if match_first is
8896 smaller than raw_mbs_idx.
8898 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8900 * posix/regcomp (free_dfa_content): Use free_state.
8901 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
8902 pointers in case that realloc failed.
8903 (re_node_set_merge): Likewise.
8904 (register_state): Likewise.
8905 (create_newstate_common): Invoke memory release functions in case of
8907 (create_ci_newstate): Likewise.
8908 (create_cd_newstate): Likewise.
8909 (free_state): New function.
8910 * posix/regexec.c (re_search_internal): Invoke memory release
8911 functions in case of error conditions.
8912 (sift_states_backward): Likewise.
8913 (merge_state_array): Likewise.
8914 (add_epsilon_src_nodes): Likewise.
8915 (sub_epsilon_src_nodes): Likewise.
8916 (search_subexp): Likewise.
8917 (sift_states_bkref): Likewise.
8918 (transit_state_sb): Likewise.
8919 (transit_state_mb): Likewise.
8920 (transit_state_bkref_loop): Likewise.
8921 (group_nodes_into_DFAstates): Likewise.
8922 (push_fail_stack): Don't edit pointers in case that realloc failed.
8923 (extend_buffers): Likewise.
8924 (match_ctx_add_entry): Likewise.
8926 2002-11-06 Roland McGrath <roland@redhat.com>
8928 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
8929 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8931 * configure.in: Add checks on as and ld for binutils 2.13 or later.
8932 * configure: Regenerated.
8934 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8936 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
8937 If re_compile_internal failed free fastmap buffer.
8938 (free_dfa_content): Broken out of regfree function. Frees all dfa
8940 (regfree): Add free_dfa_content.
8941 (re_compile_internal): If any of the called functions fails free
8942 all dfa related memory.
8944 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8946 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
8947 warnings from the kernel headers.
8949 2002-11-05 Roland McGrath <roland@redhat.com>
8951 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
8952 From Johannes Stezenbach <js@convergence.de>.
8954 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
8955 #errlist-compat magic comment to give 123 as size.
8956 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
8957 (libc: GLIBC_2.2): ... here.
8958 (libc: GLIBC_2.3): Likewise.
8960 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8962 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
8963 which happens at the beginning so that we can unload modules in
8966 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8968 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
8969 under [__USE_MISC || _ASM].
8971 * elf/elf.h: Remove the obsolete SH TLS relocations.
8973 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8975 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
8977 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
8980 __NR_pread64 and __NR_pwrite64.
8981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8982 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
8984 Revert change to use INLINE_SYSCALL.
8985 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8986 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
8987 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8988 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
8990 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
8992 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
8993 Update clobber list and add a comment about the syscall ABI.
8995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
8996 s_pwrite64, s_ftruncate, s_truncate): Re-add.
8998 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9000 * iconv/gconv_dl.c (free_mem): Clear loaded.
9001 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9004 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9006 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9008 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9009 as old code without locking. _IO_seekoff calls this function after
9011 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9012 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9013 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9015 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9016 of _IO_seekoff_internal.
9017 (_IO_rewind): Likewise.
9018 * libio/ioftell.c: Likewise.
9019 * libio/ftello.c: Likewise.
9020 * libio/ftello64.c: Likewise.
9021 * libio/iofgetpos.c: Likewise.
9022 * libio/iofgetpos64.c: Likewise.
9023 * libio/oldiofgetpos.c: Likewise.
9024 * libio/oldiofgetpos64.c: Likewise.
9025 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9026 _IO_seekpos_internal.
9027 * libio/iofsetpos64.c: Likewise.
9028 * libio/oldiofsetpos.c: Likewise.
9029 * libio/oldiofsetpos64.c: Likewise.
9031 2002-11-04 Roland McGrath <roland@redhat.com>
9033 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9034 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9035 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9036 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9037 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9038 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9039 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9040 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
9041 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
9042 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
9044 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
9045 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
9046 Remove these, no longer used.
9048 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
9051 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
9052 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
9053 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
9054 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
9055 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
9058 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
9059 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9060 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
9062 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9063 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
9065 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9067 2002-11-03 Roland McGrath <roland@redhat.com>
9069 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
9070 `_dl_tls_static_used'.
9071 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
9072 (__libc_setup_tls): Initialize it. Let the initial value of
9073 _dl_tls_static_size indicate some surplus space in the computed value.
9074 * elf/dl-open.c (_dl_tls_static_size): New variable.
9075 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
9076 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
9077 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
9078 (CHECK_STATIC_TLS): Use it.
9079 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
9080 closed objects occupied a trailing contiguous chunk of static TLS area.
9082 2002-10-18 Bruno Haible <bruno@clisp.org>
9084 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
9086 2002-11-04 Ulrich Drepper <drepper@redhat.com>
9088 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
9089 _wide_data->_IO_read_end if adjustment can be made in the current
9092 * sysdeps/unix/sysv/linux/fexecve.c: New file.
9094 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
9095 wide oriented streams are used.
9097 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
9098 service hasn't been used [PR libc/4744].
9100 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
9101 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
9103 * manual/examples/dir.c: Don't include <stddef.h>.
9104 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
9105 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
9107 2002-11-02 H.J. Lu <hjl@gnu.org>
9109 * stdio-common/reg-printf.c: Include <stddef.h>.
9111 2002-11-03 Ulrich Drepper <drepper@redhat.com>
9113 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
9115 * po/ca.po: Update from translation team.
9116 * po/es.po: Likewise.
9118 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
9119 is defined write out memory map.
9120 * sysdeps/unix/sysv/linux/segfault.c: New file.
9122 2002-11-02 Roland McGrath <roland@redhat.com>
9124 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
9125 pointers that can alias.
9126 Reported by Daniel Jacobowitz <drow@mvista.com>.
9128 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
9130 2002-11-02 Roland McGrath <roland@redhat.com>
9132 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
9133 description to be clearer and to say that *RESULT is set to ENTRY.
9135 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9137 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
9138 dests_ch arrays together. Alloca or malloc dest_states,
9139 dest_states_word and dest_states_nl arrays together. Free memory on
9142 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
9144 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
9145 and current_saltbits.
9147 2002-11-02 Roland McGrath <roland@redhat.com>
9149 * stdio-common/reg-printf.c: Include <stdlib.h>.
9151 2002-11-02 H.J. Lu <hjl@gnu.org>
9153 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
9154 caller to EXTRA instead of execve.
9156 2002-11-01 Roland McGrath <roland@redhat.com>
9158 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
9159 in place of [!(USE_TLS && HAVE___THREAD)].
9160 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
9162 2002-10-31 Roger Sayle <roger@eyesopen.com>
9164 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
9166 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9168 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
9169 without defining FP_ROUNDMODE.
9171 2002-10-29 Jakub Jelinek <jakub@redhat.com>
9173 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
9174 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
9176 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9177 (OLD_SIGLIST_SIZE): Define.
9178 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9179 (OLD_SIGLIST_SIZE): Define.
9180 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
9182 2002-11-01 Jakub Jelinek <jakub@redhat.com>
9184 * sysdeps/ia64/strncpy.S: Fix recovery code.
9186 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9188 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
9190 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
9192 * elf/dl-libc.c (free_mem): Likewise.
9193 * iconv/gconv_conf.c (free_mem): Likewise.
9194 * iconv/gconv_db.c (free_mem): Likewise.
9195 * iconv/gconv_dl.c (free_mem): Likewise.
9196 * iconv/gconv_cache.c (free_mem): Likewise.
9197 * intl/finddomain.c (free_mem): Likewise.
9198 * intl/dcigettext.c (free_mem): Likewise.
9199 * locale/setlocale.c (free_mem): Likewise.
9200 * misc/fstab.c (fstab_free): Likewise.
9201 * nss/nsswitch.c (free_mem): Likewise.
9202 * posix/regcomp.c (free_mem): Likewise.
9203 * resolv/gai_misc.c (free_res): Likewise.
9204 * stdlib/fmtmsg.c (free_mem): Likewise.
9205 * sunrpc/clnt_perr.c (free_mem): Likewise.
9206 * sysdeps/generic/setenv.c (free_mem): Likewise.
9207 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
9208 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
9209 * time/tzset.c (free_mem): Likewise.
9210 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
9211 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
9212 * malloc/set-freeres.c (__libc_freeres): Likewise.
9214 * login/getutent.c: Include stdlib.h instead of stddef.h.
9215 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9216 (__getutent): Allocate buffer the first time it is run.
9217 * login/getutid.c: Include stdlib.h instead of stddef.h.
9218 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9219 (__getutid): Allocate buffer the first time it is run.
9220 * login/getutline.c: Include stdlib.h instead of stddef.h.
9221 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9222 (__getutline): Allocate buffer the first time it is run.
9223 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
9224 (mtrace): Allocate malloc_trace_buffer.
9225 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
9226 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
9227 * string/strerror.c: Include libintl.h and errno.h.
9228 (buf): New variable.
9229 (strerror): Only allocate buffer if actually needed (unknown error).
9230 * time/tzfile.c (transitions): Add libc_freeres_ptr.
9233 2002-10-25 Jakub Jelinek <jakub@redhat.com>
9235 * include/libc-symbols.h (libc_freeres_ptr): New macro.
9236 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
9238 (__libc_freeres): Free all pointers in that section.
9239 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
9240 commands when creating .lds script.
9241 (LDSEDCMD-c.so): New variable.
9242 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9243 (rcmd_af): Use strdup to allocate ahostbuf.
9244 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9245 (rexec_af): Use strdup to allocate ahostbuf.
9246 * stdio-common/reg-printf.c (printf_funcs): Remove.
9247 (__printf_arginfo_table): Change into printf_arginfo_function **.
9248 Add libc_freeres_ptr.
9249 (__register_printf_function): Allocate __printf_arginfo_table
9250 and __printf_function_table the first time it is called.
9251 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
9252 printf_arginfo_function **.
9253 (parse_one_spec): Add __builtin_expect.
9254 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
9256 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
9258 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
9259 (string_space, map): Add libc_freeres_ptr.
9261 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
9263 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
9265 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
9266 (buffer): Add libc_freeres_ptr.
9267 (free_mem): Remove for _LIBC.
9268 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
9270 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
9272 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
9274 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
9276 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
9278 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
9280 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
9283 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
9287 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9289 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
9290 instead of duplicating the whole function in libc.
9292 2002-10-31 Roland McGrath <roland@redhat.com>
9294 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
9295 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
9297 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9299 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
9300 32bit-predefine when creating .new32 list and -U for each
9301 32bit-predefine when creating .new64 list.
9302 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
9304 2002-10-29 Andreas Schwab <schwab@suse.de>
9306 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
9307 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
9309 2002-10-25 Roland McGrath <roland@redhat.com>
9311 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
9312 * sysdeps/unix/sysv/linux/configure: Regenerated.
9314 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
9315 _dl_starting_up decl.
9317 2002-10-20 H.J. Lu <hjl@gnu.org>
9319 * sysdeps/unix/sysv/linux/configure.in: Don't check
9320 /lib/modules/`uname -r`/build/include for kernel headers if
9322 * sysdeps/unix/sysv/linux/configure: Regenerated.
9324 2002-10-25 Roland McGrath <roland@redhat.com>
9326 * math/math.h (M_LOG2El): Correct the value.
9327 From Stephen L Moshier <steve@moshier.net>.
9329 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
9330 conditional from __libc_multiple_libcs access. Remove kludge for weak
9331 symbol access with old compilers we no longer support.
9332 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9333 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
9335 2002-10-25 Roland McGrath <roland@redhat.com>
9337 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
9338 implement SV_RESETHAND by translating it to SA_RESETHAND.
9340 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
9342 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
9343 type on ELF64 platforms.
9345 2002-10-24 Ulrich Drepper <drepper@redhat.com>
9347 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
9349 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
9351 2002-10-24 Jakub Jelinek <jakub@redhat.com>
9353 * elf/dl-misc.c: Include <sysdep.h>.
9354 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
9356 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
9357 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9358 (INLINE_SYSCALL): Use that.
9359 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
9360 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9361 (INLINE_SYSCALL): Use that.
9362 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
9363 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9364 (INLINE_SYSCALL): Use that.
9365 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
9367 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9368 (__INTERNAL_SYSCALL_STRING): Define.
9369 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9371 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9372 (__INTERNAL_SYSCALL_STRING): Define.
9373 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
9374 __SYSCALL_STRING to inline_syscall*.
9375 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
9377 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
9378 inline_syscall4, inline_syscall5, inline_syscall6): Add string
9381 2002-10-24 Roland McGrath <roland@redhat.com>
9383 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
9384 * sysdeps/unix/sysv/linux/init-first.c: Not here.
9385 * sysdeps/powerpc/elf/libc-start.c: Or here.
9386 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
9387 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
9388 * sysdeps/unix/sysv/aix/init-first.c: Or here.
9389 * sysdeps/generic/libc-start.c: Or here.
9390 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
9391 access with [! SHARED].
9392 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9394 * libio/bug-wfflush.c: New file.
9395 * libio/Makefile (tests): Add bug-wfflush.
9397 2002-10-23 Roland McGrath <roland@redhat.com>
9399 * stdio-common/tst-fphex.c: New file.
9400 * stdio-common/Makefile (tests): Add tst-fphex.
9401 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
9402 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
9403 chars always before the value digits.
9404 Reported by James Antill <james.antill@redhat.com>.
9406 2002-10-24 Jakub Jelinek <jakub@redhat.com>
9408 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
9409 (free_mem): New function.
9410 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
9411 if not cross compiling.
9412 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
9413 (bug-regex14-ENV): Set.
9414 (bug-regex14-mem): New target.
9415 * posix/bug-regex14.c: New file.
9417 2002-10-23 Roland McGrath <roland@redhat.com>
9419 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
9420 target, so we don't touch it when the link fails.
9422 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
9423 Check for the result overflowing off_t and fail with EOVERFLOW.
9424 * libio/ioftell.c (_IO_ftell): Likewise.
9425 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9427 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
9428 use a temporary timeval on the stack for gettimeofday and copy it.
9429 * login/logout.c (logout): Likewise.
9430 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
9432 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
9433 Use __SWORD_TYPE instead of int for member types.
9434 (struct statfs64): Likewise.
9435 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
9436 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
9437 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
9438 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
9439 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
9441 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
9442 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
9443 (ST_NODIRATIME): Restore fixed value of 2048.
9444 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
9445 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
9447 Rearranged <bits/types.h> definitions to reduce duplication.
9448 * sysdeps/generic/bits/types.h: Rewritten, using macros from
9449 <bits/wordsize.h> and new header <bits/typesizes.h>.
9450 * posix/Makefile (headers): Add bits/typesizes.h here.
9451 * sysdeps/generic/bits/typesizes.h: New file.
9452 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
9453 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
9454 * sysdeps/mach/hurd/bits/typesizes.h: New file.
9455 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
9456 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
9457 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
9458 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
9459 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
9460 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
9461 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
9462 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
9463 <bits/pthreadtypes.h> here, not in <bits/types.h>.
9464 * signal/signal.h: Likewise.
9466 * streams/stropts.h: Include <bits/xtitypes.h>.
9467 * streams/Makefile (headers): Add bits/xtitypes.h here.
9468 * sysdeps/generic/bits/xtitypes.h: New file.
9469 * sysdeps/s390/bits/xtitypes.h: New file.
9470 * sysdeps/ia64/bits/xtitypes.h: New file.
9471 * sysdeps/x86_64/bits/xtitypes.h: New file.
9473 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
9474 * sysdeps/generic/bits/ipctypes.h: New file.
9475 * sysdeps/mips/bits/ipctypes.h: New file.
9476 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
9477 * sysdeps/gnu/bits/msq.h: Likewise.
9478 * sysvipc/sys/ipc.h: Likewise.
9480 2002-10-22 Ulrich Drepper <drepper@redhat.com>
9482 * elf/dl-load.c (struct filebuf): For buf element to have the
9483 alignment of ElfXX_Ehdr since this is what will be stored in it.
9485 2002-10-22 Jakub Jelinek <jakub@redhat.com>
9487 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
9488 into pointer to locrec_offset.
9489 (add_locale_to_archive): Adjust callers. Free normalized_name right
9490 before returning, not immediately after add_locale, pass it to
9491 add_alias if not NULL instead of name. Rename second normalized_name
9492 occurence to nnormalized_codeset_name.
9494 * locale/programs/locarchive.c (enlarge_archive): Make sure
9495 string_size is always a multiple of 4.
9496 Reported by Andreas Schwab <schwab@suse.de>.
9498 2002-10-21 Andreas Schwab <schwab@suse.de>
9500 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
9501 caller to EXTRA instead of execve, since the latter has a
9502 higher-priority implementation in linuxthreads.
9504 2002-10-21 Roland McGrath <roland@redhat.com>
9506 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
9507 slotinfo list's len member to the proper size, not just 1.
9508 Initialize static_map.l_tls_initimage.
9510 * elf/dl-open.c (dl_open_worker): Fix loop searching for
9511 dtv_slotinfo_list element containing new modules' l_tls_modid.
9513 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
9514 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
9515 * elf/Makefile (tests): Add tst-tls9.
9516 (tests-static): Add tst-tls9-static.
9517 (tst-tls9-static-ENV): New variable.
9518 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
9520 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
9521 modids used by partially loaded modules being closed can't be known.
9523 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
9525 * posix/Makefile: Add a test case for the bug reported by Aharon
9526 Robbins <arnold@skeeve.com>.
9527 * posix/bug-regex13.c: New file.
9528 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
9530 2002-10-21 Ulrich Drepper <drepper@redhat.com>
9532 * csu/gmon-start.c: Pretty printing.
9534 2002-10-19 Art Haas <ahaas@neosoft.com>
9536 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
9537 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
9538 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
9539 * configure: Regenerated.
9541 2002-10-19 Roland McGrath <roland@redhat.com>
9543 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
9544 and then set $subdirs directly, because the new Autoconf breaks
9545 compatibility in every way imaginable and insists on whining
9546 about usage that worked since the dawn of time.
9547 * configure: Regenerated.
9549 * configure: Regenerated (using Autoconf 2.54).
9550 * sysdeps/alpha/elf/configure: Likewise.
9551 * sysdeps/generic/configure: Likewise.
9552 * sysdeps/i386/elf/configure: Likewise.
9553 * sysdeps/ia64/elf/configure: Likewise.
9554 * sysdeps/mach/hurd/configure: Likewise.
9555 * sysdeps/mach/configure: Likewise.
9556 * sysdeps/unix/configure: Likewise.
9557 * sysdeps/unix/common/configure: Likewise.
9558 * sysdeps/unix/sysv/aix/configure: Likewise.
9559 * sysdeps/unix/sysv/linux/configure: Likewise.
9560 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9561 * sysdeps/x86_64/elf/configure: Likewise.
9563 * config.make.in: Nix completely-soft nonsense.
9564 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
9565 of machine directories instead of fpu subdirectory.
9566 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
9567 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
9568 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
9569 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
9570 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
9571 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
9572 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
9573 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
9574 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
9575 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
9576 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
9577 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
9578 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
9579 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
9580 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
9581 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
9582 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
9583 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
9584 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
9585 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
9586 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
9587 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
9588 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
9589 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
9590 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
9591 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
9592 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
9593 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
9594 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
9595 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
9596 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
9597 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
9598 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
9599 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
9600 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
9601 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
9602 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
9603 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
9604 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
9605 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
9607 2002-10-19 Bruno Haible <bruno@clisp.org>
9609 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
9611 2002-10-18 Roland McGrath <roland@redhat.com>
9613 * io/Makefile (routines): Add lchmod.
9614 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
9615 * sysdeps/generic/lchmod.c: New file.
9616 * sysdeps/mach/hurd/lchmod.c: New file.
9617 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
9619 2002-10-18 Art Haas <ahaas@neosoft.com>
9621 * configure.in: Remove remaining AC_FD_CC macros, and replace
9622 AC_FD_MSG with AS_MESSAGE_FD.
9624 2002-10-18 Roland McGrath <roland@redhat.com>
9626 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
9627 typos: VALUE -> FINALADDR.
9629 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
9630 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
9631 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
9632 (inline_syscall6): Move these macros ...
9633 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
9635 * configure.in (libc_link_dests, libc_link_sources): Remove these
9636 variables and the AC_LINK_FILES call.
9638 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
9639 change to put new symbols here instead of in GLIBC_2.2.
9640 * sysdeps/powerpc/Subdirs: Move this file ...
9641 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
9643 2002-10-07 Roland McGrath <roland@redhat.com>
9645 * sysdeps/generic/bits/time.h: Replaced with contents of the
9646 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
9647 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
9648 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
9649 macros is ok even for architectures that don't now implement them.
9650 * sysdeps/mach/hurd/bits/time.h: File removed.
9651 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
9652 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
9653 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
9654 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
9655 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
9657 2002-10-18 Jeff Bailey <jbailey@gnu.org>
9659 * configure.in: Replace obsolete AC_OUTPUT syntax with
9660 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
9662 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
9663 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
9665 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
9666 * sysdeps/alpha/elf/configure.in: Likewise.
9667 * sysdeps/i386/elf/configure.in: Likewise.
9668 * sysdeps/mach/hurd/configure.in: Likewise.
9669 * sysdeps/x86_64/elf/configure.in: Likewise.
9671 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
9673 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
9674 * sysdeps/generic/configure.in: Likewise.
9675 * sysdeps/i386/elf/configure.in: Likewise.
9676 * sysdeps/ia64/elf/configure.in: Likewise.
9677 * sysdeps/mach/configure.in: Likewise.
9678 * sysdeps/mach/hurd/configure.in: Likewise.
9679 * sysdeps/unix/configure.in: Likewise.
9680 * sysdeps/unix/common/configure.in: Likewise.
9681 * sysdeps/unix/sysv/aix/configure.in: Likewise.
9682 * sysdeps/unix/sysv/linux/configure.in: Likewise.
9683 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
9684 * sysdeps/x86_64/elf/configure.in: Likewise.
9686 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
9687 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
9688 that it's obvious when extra autoconf machinery is being dragged in.
9690 2002-10-18 Roland McGrath <roland@redhat.com>
9692 * configure.in: Remove bogus echo included in
9693 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
9694 * configure: Regenerated.
9696 2002-10-18 Jakub Jelinek <jakub@redhat.com>
9698 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
9699 (statfs_filesize_max): New function.
9700 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
9701 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
9702 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
9703 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
9704 statfs_filesize_max.
9705 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9706 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
9707 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
9709 2002-10-17 Roland McGrath <roland@redhat.com>
9711 * configure.in (MIG): Just AC_SUBST it here.
9712 * configure: Regenerated.
9713 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
9714 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
9715 * sysdeps/mach/configure: Regenerated.
9717 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
9718 and AC_PROVIDE([_AS_CR_PREPARE]).
9720 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
9721 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
9723 * elf/dl-support.c: Move _dl_tls_* variables to ...
9724 * sysdeps/generic/libc-tls.c: ... here.
9726 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
9727 allow IDX to be one past the current last slotinfo entry.
9728 (_dl_close): Pass IMAP->l_init_called for that parameter.
9730 2002-10-07 Andreas Schwab <schwab@suse.de>
9732 * aclocal.m4: Fix for autoconf 2.53.
9733 * configure.in: Likewise. Require autoconf 2.53.
9735 2002-10-08 Richard Henderson <rth@redhat.com>
9737 * soft-fp/op-4.h: Handle carry correctly in
9738 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
9739 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
9740 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
9742 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
9744 * configure.in: Compute completely-soft.
9745 * config.make.in: Make completely-soft available to sub-makes.
9746 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
9747 gcc-double-routines. Add sim-full.c. Add fenv_const and
9748 fe_nomask to libm-support.
9749 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
9750 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
9751 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
9752 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
9753 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
9754 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
9755 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
9756 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
9757 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
9758 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
9759 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
9760 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
9761 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
9762 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
9763 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
9764 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
9765 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
9766 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
9767 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
9768 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
9770 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
9771 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
9772 FP_HANDLE_EXCEPTIONS.
9773 Define FP_ROUNDMODE.
9774 Redefine FP_* macros to correspond to the FE_* bit positions.
9775 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
9776 Define externs for __sim_exceptions, __sim_disabled_exceptions,
9777 __sim_round_mode, __simulate_exceptions.
9778 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
9779 * sysdeps/powerpc/bits/fenv.h: ...to here.
9781 2002-10-06 Jakub Jelinek <jakub@redhat.com>
9783 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
9784 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
9785 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
9786 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
9789 2002-10-15 Jakub Jelinek <jakub@redhat.com>
9791 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
9792 __libc_res_nsend): New prototypes.
9793 * resolv/res_query.c (QUERYSIZE): Define.
9794 (__libc_res_nquery): Renamed from res_nquery. Added answerp
9795 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
9796 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
9797 res_nsend, pass answerp.
9798 (res_nquery): Changed into wrapper around __libc_res_nquery.
9799 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
9800 argument. Call __libc_res_nquerydomain and __libc_res_nquery
9801 instead of the non-__libc_ variants, pass them answerp.
9802 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
9803 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
9804 Added answerp argument. Call __libc_res_nquery instead of
9805 res_nquery, pass answerp.
9806 (res_nquerydomain): Changed into wrapper around
9807 __libc_res_nquerydomain.
9808 * resolv/res_send.c: Include sys/ioctl.h.
9809 (MAXPACKET): Define.
9810 (send_vc): Change arguments. Reallocate answer buffer if it is
9812 (send_dg): Likewise.
9813 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
9814 Reallocate answer buffer if it is too small and hooks are in use.
9815 Adjust calls to send_vc and send_dg.
9816 (res_nsend): Changed into wrapper around __libc_res_nsend.
9817 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
9818 just 1K answer buffer on the stack, use __libc_res_nsearch instead
9820 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
9821 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
9822 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
9823 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
9824 (gethostbyaddr): Similarly with __libc_res_nquery.
9825 * resolv/Versions (libresolv): Export __libc_res_nquery and
9826 __libc_res_nsearch at GLIBC_PRIVATE.
9828 2002-10-17 Roland McGrath <roland@redhat.com>
9830 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
9831 * configure: Regenerated.
9833 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
9834 before performing the reloc, not after.
9835 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9837 2002-10-17 Ulrich Drepper <drepper@redhat.com>
9839 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
9840 * locale/programs/linereader.c (lr_open): Likewise.
9841 * locale/programs/charmap-dir.c (charmap_open): Likewise.
9842 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9844 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
9846 * posix/bug-regex11.c: Add a test case for the bug reported by
9847 Paolo Bonzini <bonzini@gnu.org>.
9848 * posix/regexec.c (sift_states_bkref): Use correct destination of
9851 2002-10-17 Roland McGrath <roland@redhat.com>
9853 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
9854 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
9855 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
9856 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9857 Call it after performing TPOFF relocs.
9858 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9859 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9860 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
9862 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
9863 when closing a partially-initialized object.
9865 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
9866 instead of _dl_fatal_printf when we see PT_TLS.
9868 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
9869 instead of $(libof-$<).
9871 2002-10-16 Roland McGrath <roland@redhat.com>
9873 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
9874 instead of += to append, to be sure $(lib) gets expanded at defn time.
9875 (libof-$(cpp-src)): New variable, define this instead.
9876 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
9877 (lib): Don't use override.
9878 (CPPFLAGS-$(lib)): New variable, put -D's here.
9879 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
9880 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
9881 LIB found by $(libof-*) for basename, target, or source.
9882 * Makerules (CPPFLAGS-nonlib): New variable.
9883 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
9884 * locale/Makefile (lib): Likewise.
9885 * sunrpc/Makefile (lib): Likewise.
9887 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
9888 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
9889 * sysdeps/unix/sysv/linux/pathconf.h: New file.
9890 (statfs_link_max): New function, guts from fpathconf.c.
9891 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
9892 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9893 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
9894 to use the linux/pathconf.c code by #include rather than duplication.
9895 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
9897 2002-10-16 Jakub Jelinek <jakub@redhat.com>
9899 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9900 Use __libc_errno only for libc itself.
9902 2002-10-16 Andreas Jaeger <aj@suse.de>
9904 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
9906 2002-10-16 Ulrich Drepper <drepper@redhat.com>
9908 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9909 Use __libc_errno only for libc itself.
9911 2002-10-15 Roland McGrath <roland@redhat.com>
9912 Jakub Jelinek <jakub@redhat.com>
9914 * sysdeps/unix/sysv/linux/Makefile
9915 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
9916 sparc/Makefile to produce a bi-arch file as needed.
9917 That's now parameterized by the variable $(64bit-predefine).
9918 Use LC_ALL=C for `comm' commands in that rule.
9919 No longer conditional on [$(no_syscall_list_h)].
9920 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
9921 (64bit-predefine): New variable.
9922 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
9923 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
9924 * sysdeps/unix/sysv/linux/powerpc/Makefile
9925 (64bit-predefine): New variable.
9927 2002-10-15 Roland McGrath <roland@redhat.com>
9929 * sysdeps/unix/sysv/linux/Makefile
9930 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
9932 * login/utmp-private.h: Declare __libc_utmp_lock.
9933 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
9934 and call __libc_utmp_jump_table functions directly, instead of using
9937 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
9938 * sysdeps/unix/sysv/linux/configure: Regenerated.
9940 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
9941 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9942 Use int32_t for ll_time.
9943 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9944 Use int32_t instead of long int for ut_session.
9945 Use an anonymous struct with 32-bit fields for ut_tv.
9946 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
9947 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
9948 here as in utmp.h for `struct utmp'.
9949 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
9950 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
9951 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
9952 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
9953 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
9954 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
9956 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
9957 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
9958 All the following files were identical or equivalent to it.
9959 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
9960 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
9961 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
9962 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
9963 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
9964 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
9965 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
9966 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
9967 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
9968 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
9970 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
9971 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
9972 Other than the previously incorrect sign of msg_iovlen, this is a
9973 no-op on 32-bit platforms. On 64-bit platforms it makes this header
9974 match their layouts as well, so the following are now identical to it.
9975 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
9976 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
9977 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
9978 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
9979 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
9981 2002-10-15 Ulrich Drepper <drepper@redhat.com>
9983 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9984 Define for 2.4+ kernels.
9986 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
9987 are known to have the vfork syscall. Don't confuse the CPUs
9988 branch prediction unit by jumping to the return address.
9990 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
9991 support for reiserfs and xfs.
9993 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
9995 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
9997 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
9999 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10001 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10002 * include/errno.h (errno): Define to __libc_errno in libc.so.
10003 Add attribute_tls_model_ie.
10004 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10005 Add attribute_tls_model_ie.
10006 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10007 attribute_tls_model_ie.
10008 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10010 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10012 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10013 attribute_tls_model_ie.
10014 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10016 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10017 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10018 __libc_errno in USE___THREAD case.
10019 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10021 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10022 __attribute__((tls_model (""))).
10023 * configure: Rebuilt.
10024 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10026 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10028 * timezone/asia: Update from tzdata2002d.
10029 * timezone/australasia: Likewise.
10030 * timezone/iso3166.tab: Likewise.
10031 * timezone/southamerica: Likewise.
10032 * timezone/zone-tab: Likewise.
10034 2002-10-15 Roland McGrath <roland@redhat.com>
10036 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10037 Adjust TCB pointer before calling free, so we get the whole block.
10039 2002-10-14 Roland McGrath <roland@redhat.com>
10041 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
10042 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
10043 extern using attribute_hidden instead of static, avoids warning.
10045 2002-10-09 Jakub Jelinek <jakub@redhat.com>
10047 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
10048 * sysdeps/unix/sysv/linux/configure: Rebuilt.
10050 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10052 * po/sv.po: Update from translation team.
10054 2002-10-12 H.J. Lu <hjl@gnu.org>
10056 * sunrpc/thrsvc.c (PROCQUIT): New.
10057 (struct rpc_arg): New.
10058 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
10059 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
10060 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
10061 (main): Modified for struct rpc_arg *.
10063 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10065 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
10067 2002-10-14 Jakub Jelinek <jakub@redhat.com>
10069 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
10070 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
10071 in ld.so even if __thread is supported.
10073 2002-10-13 Jakub Jelinek <jakub@redhat.com>
10075 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
10076 Add hack to prevent the compiler from clobbering the signal context.
10077 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
10079 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
10082 2002-10-14 Andreas Jaeger <aj@suse.de>
10084 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
10085 Guido Guenther <agx@sigxcpu.org>.
10087 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10089 * po/sk.po: Update from translation team.
10091 2002-09-26 Roland McGrath <roland@redhat.com>
10093 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
10094 dynamic string tag.
10095 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
10096 DL_DST_LIB based on $(slibdir).
10098 2002-10-13 Roland McGrath <roland@frob.com>
10100 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
10102 * sysdeps/mach/hurd/getresuid.c: New file.
10103 * sysdeps/mach/hurd/getresgid.c: New file.
10104 * sysdeps/mach/hurd/setresuid.c: New file.
10105 * sysdeps/mach/hurd/setresgid.c: New file.
10107 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
10108 setresgid): Declare them.
10109 * NEWS: Mention it.
10111 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
10112 add libc_hidden_proto.
10113 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
10114 getresuid, getresgid, setresuid, setresgid here.
10115 * Versions.def (libc): Define GLIBC_2.3.2 set.
10116 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
10117 Add libc_hidden_def.
10118 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
10119 * sysdeps/generic/setresgid.c: New file.
10120 * sysdeps/generic/setresuid.c: New file.
10121 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10122 (sysdep_routines): Don't add getresuid and getresgid here.
10123 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
10124 (sysdep_routines): Don't add setresuid and setresgid here.
10125 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10126 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10127 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10128 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10129 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10130 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10131 * posix/Makefile (routines): Add them all here instead.
10132 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
10133 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
10134 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
10135 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
10136 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
10137 [! __NR_setresuid]: Include generic file.
10138 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
10139 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
10140 [! __NR_setresuid]: Include generic file.
10141 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
10142 Caller is - now, not EXTRA.
10143 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
10144 (setresuid, setresgid, getresuid, getresgid): Likewise.
10145 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
10146 Add these calls here.
10147 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
10148 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
10149 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10150 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10151 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10152 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
10153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
10154 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
10155 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10157 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10158 (sysdep_routines): Add setfsuid and setfsgid here.
10159 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
10160 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
10161 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10162 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10163 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10164 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10165 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10166 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10168 * hurd/errno.c: Renamed to ...
10169 * hurd/errno-loc.c: ... this.
10170 * hurd/Makefile (routines): errno -> errno-loc
10172 2002-10-13 Ulrich Drepper <drepper@redhat.com>
10174 * po/de.po: Update from translation team.
10176 * MakeTAGS: Add -E flag to xgettext runs.
10178 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10180 * po/fr.po: Update from translation team.
10182 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
10183 Optimize a bit for use in glibc.
10185 2002-10-12 Roland McGrath <roland@redhat.com>
10187 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
10188 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
10190 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10192 * po/sv.po: Update from translation team.
10194 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
10196 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
10198 (regfree): Likewise.
10199 (create_initial_state): Likewise.
10200 (analyze): Remove the substitutions which became useless.
10201 (calc_first): Likewise.
10202 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
10203 epsilon destination.
10204 (duplicate_node_closure): New function.
10205 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
10206 (calc_inveclosure): Likewise.
10207 (calc_eclosure): Likewise.
10208 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
10209 direct invocation of duplicate_node.
10210 (parse): Don't use comma operator in the return to avoid compiler
10212 (parse_reg_exp): Likewise.
10213 (parse_branch): Likewise.
10214 (parse_expression): Likewise.
10215 (parse_sub_exp): Likewise.
10216 (parse_dup_op): Likewise.
10217 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
10218 which became useless.
10219 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
10220 (create_cd_newstate): Likewise.
10221 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
10222 (re_token_t): Likewise.
10223 (re_dfa_t): Likewise.
10224 (re_node_set_remove): New macro.
10225 * posix/regexec.c (check_matching): Remove the handling
10227 (check_halt_node_context): Likewise.
10228 (proceed_next_node): Likewise.
10229 (pop_fail_stack): Fix the memory leak.
10230 (set_regs): Likewise.
10231 (free_fail_stack_return): New function.
10232 (sift_states_backward): Fix the memory leak. Remove the handling
10234 (update_cur_sifted_state): Append some if clause to avoid redundant
10236 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
10238 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
10239 (check_subexp_limits): Likewise.
10240 (search_subexp): Likewise.
10241 (sift_states_bkref): Likewise.
10242 (transit_state_mb): Likewise.
10243 (transit_state_bkref_loop): Likewise.
10244 (transit_state_bkref_loop): Likewise.
10245 (group_nodes_into_DFAstates): Likewise.
10246 (check_node_accept): Likewise.
10247 (sift_ctx_init): Add initializing.
10249 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10251 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
10254 2002-10-11 Ulrich Drepper <drepper@redhat.com>
10256 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
10257 duplicated variable c.
10259 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
10262 * sysdeps/unix/sysv/linux/i386/sysdep.h
10263 (INTERNAL_SYSCALL_ERROR_P): New define.
10264 (INTERNAL_SYSCALL_ERRNO): Likewise.
10266 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
10267 Add hack to prevent the compiler from clobbering the signal context.
10269 2002-10-11 Roland McGrath <roland@redhat.com>
10271 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10274 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
10275 * sysdeps/sh/dl-lookupcfg.h: File removed.
10276 * sysdeps/i386/dl-lookupcfg.h: File removed.
10278 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
10279 missing labels and ; from last change.
10281 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
10282 number literals, so they are doubles instead of ints.
10284 2002-10-09 Roland McGrath <roland@redhat.com>
10286 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
10287 changed from [USE_TLS && HAVE___THREAD].
10289 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
10290 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
10291 * sysdeps/x86_64/dl-machine.h
10292 (elf_machine_type_class, elf_machine_rela): Likewise.
10293 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
10296 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
10297 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
10298 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
10300 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
10301 instead of ___tls_get_addr.
10302 (___tls_get_addr_internal): Add attribute_hidden to decl.
10304 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
10305 _dl_error_catch_tsd.
10306 * elf/rtld.c (startup_error_tsd): New function.
10307 (dl_main): Point _dl_error_catch_tsd at that.
10308 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
10309 use new function pointer instead.
10310 * elf/dl-tsd.c: New file.
10311 * elf/Makefile (routines): Add it.
10313 2002-10-07 Roland McGrath <roland@redhat.com>
10315 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
10316 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
10317 take _dl_load_lock around calling __writev.
10319 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
10320 (INLINE_SYSCALL): Use that.
10322 * sysdeps/generic/dl-sysdep.h: New file.
10323 * sysdeps/mach/hurd/dl-sysdep.h: New file.
10324 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
10325 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
10326 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
10327 access it directly.
10328 * elf/dl-minimal.c (__errno_location): Removed.
10329 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10330 Use GOTOFF access for errno.
10331 * sysdeps/unix/sysv/linux/i386/sysdep.h
10332 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10334 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10335 Use PC-relative access for errno.
10336 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10337 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10339 * include/tls.h: New file.
10340 (USE___THREAD): New macro.
10341 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
10342 libc or libpthread.
10343 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
10344 changed from [USE_TLS && HAVE___THREAD].
10345 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10346 * sysdeps/unix/i386/sysdep.S: Likewise.
10347 * sysdeps/unix/x86_64/sysdep.S: Likewise.
10348 * include/errno.h: Likewise.
10349 * include/netdb.h: Likewise.
10350 * include/resolv.h: Likewise.
10352 * sysdeps/generic/errno.c: New file.
10353 * csu/Makefile (aux): New variable, list errno.
10354 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
10355 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
10356 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
10357 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10358 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10359 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
10360 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
10361 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
10362 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10363 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
10364 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
10365 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
10366 * sysdeps/unix/alpha/sysdep.S: Likewise.
10367 * sysdeps/generic/start.c: Likewise.
10368 * sysdeps/unix/start.c: Likewise.
10369 * sysdeps/unix/arm/start.c: Likewise.
10370 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
10371 * sysdeps/unix/sparc/start.c: Likewise.
10372 * sysdeps/unix/sysv/irix4/start.c: Likewise.
10373 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
10375 * manual/search.texi (Tree Search Function, Hash Search Function):
10376 Mention search.h clearly.
10378 2002-10-05 Roland McGrath <roland@redhat.com>
10380 * elf/dl-fxstat64.c: File removed.
10381 * elf/dl-xstat64.c: File removed.
10382 * elf/Makefile (rtld-routines): Remove them.
10383 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
10384 Instead, use strong_alias instead of versioned_symbol in the
10385 !SHLIB_COMPAT case.
10386 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
10387 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
10389 * include/shlib-compat.h
10390 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
10391 [! NOT_IN_libc] (IS_IN_libc): Define it.
10392 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
10393 * elf/Makefile (CPPFLAGS-.os): Likewise.
10395 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
10396 Return the status instead of calling exit.
10398 * Makeconfig (CFLAGS): Prepend -std=gnu99.
10399 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
10400 Remove superfluous rm command, whose @ plus make bugs hid
10401 all these commands from the make output.
10403 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
10404 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
10405 Use that file's contents instead of literal echo's for the prologue.
10406 * include/features.h: Include <gnu/stubs.h> unconditionally.
10407 * include/gnu/stubs.h: New file.
10409 2002-09-30 Roland McGrath <roland@redhat.com>
10411 * elf/rtld-Rules: New file.
10412 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
10413 $(objpfx)rtld-libc.a): New targets.
10414 (generated): Add them.
10415 (reloc-link): Remove -o $@ from the variable.
10416 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
10417 (distribute): Add rtld-Rules.
10418 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
10419 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
10420 (common-mostlyclean, common-clean): Clean up rtld-* files.
10421 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
10423 2003-05-20 Jakub Jelinek <jakub@redhat.com>
10425 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
10426 If temp != NULL, copy dynamic entries which need relocation to temp
10427 array before relocating.
10428 (DL_RO_DYN_TEMP_CNT): Define.
10429 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
10430 * elf/rtld.c (_dl_start): Likewise.
10431 (dl_main): Likewise. Add dyn_temp static variable.
10433 2002-10-11 Roland McGrath <roland@redhat.com>
10435 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
10436 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
10438 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
10439 proper set of no-op insn prefixes.
10441 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
10443 2002-10-11 Ulrich Drepper <drepper@redhat.com>
10445 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
10446 __pthread_kill_other_threads_np.
10448 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
10450 2002-10-08 Roland McGrath <roland@redhat.com>
10452 * locale/newlocale.c (__newlocale): If setting all categories to "C",
10453 just return &_nl_C_locobj instead of copying it.
10454 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
10455 * locale/duplocale.c (__duplocale): Likewise.
10457 2002-10-07 Roland McGrath <roland@frob.com>
10459 * config.h.in (HAVE_I386_SET_GDT): New #undef.
10460 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
10461 * sysdeps/mach/configure: Regenerated.
10463 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10465 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
10466 Add all necessary register outputs for syscall-clobbered registers.
10468 2002-10-02 David Mosberger <davidm@hpl.hp.com>
10470 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
10471 Itanium 2 (and Itanium).
10472 Fix unwind directives and make it fit in 80 columns.
10473 * sysdeps/ia64/memset.S: Likewise.
10474 * sysdeps/ia64/memcpy.S: Likewise.
10475 Move jump table to .rodata section.
10477 2002-10-03 Roland McGrath <roland@frob.com>
10479 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
10482 2002-10-10 Andreas Jaeger <aj@suse.de>
10484 * sysdeps/x86_64/_mcount.S: Restore correct registers.
10486 2002-10-10 Ulrich Drepper <drepper@redhat.com>
10488 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
10490 2002-10-09 Ulrich Drepper <drepper@redhat.com>
10492 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
10493 _dl_allocate_tls_init. Add rtld_hidden_proto.
10494 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
10496 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
10498 * version.h (VERSION): Bump to 2.3.1.
10500 * Make-dist: Add back one of the tar invocations removed before.
10502 * stdlib/Makefile (distribute): Add allocalim.h.
10504 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
10505 (__libc_tsd_address): Use correct variable name.
10506 Patch by Stefan Jones <stefan.jones@multigig.com>.
10508 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
10509 Reported by edwardsg@sgi.com [PR libc/4678].
10511 * Versions.def (libc): Add GLIBC_2.3.1.
10512 (libpthread): Add GLIBC_2.3.1.
10514 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
10515 and __sigtimedwait.
10516 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
10517 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
10519 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
10520 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
10522 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
10523 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
10524 and make old name an alias.
10525 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
10526 and make old name an alias.
10527 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
10530 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
10531 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
10533 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
10535 * sysdeps/posix/readv.c: Likewise
10536 * sysdeps/unix/sysv/aix/readv.c: Likewise.
10537 * sysdeps/unix/sysv/linux/readv.c: Likewise.
10538 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
10540 * sysdeps/posix/writev.c: Likewise
10541 * sysdeps/unix/sysv/aix/writev.c: Likewise.
10542 * sysdeps/unix/sysv/linux/writev.c: Likewise.
10544 * include/sys/wait.h: Declare __waitid.
10545 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
10546 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
10548 * sysdeps/posix/waitid.c: Likewise.
10549 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
10551 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
10553 2002-10-07 Jakub Jelinek <jakub@redhat.com>
10555 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
10557 (__MAX_ALLOCA_CUTOFF): Define.
10558 Include allocalim.h.
10559 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
10560 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
10561 host_buffer depending on __libc_use_alloca.
10562 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
10563 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
10564 net_buffer depending on __libc_use_alloca.
10565 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
10566 buf depending on __libc_use_alloca.
10567 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
10568 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
10569 instead of hardcoded constants.
10570 Pass proper size argument to alloca and compute end for wide char
10572 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
10573 instead of hardcoded constants.
10574 * string/strcoll.c (strcoll): Likewise.
10575 * string/strxfrm.c (strxfrm): Likewise.
10576 * sysdeps/posix/readv.c (__readv): Likewise.
10577 * sysdeps/posix/writev.c (__writev): Likewise.
10578 * sysdeps/generic/allocalim.h: New file.
10580 2002-10-08 Roland McGrath <roland@redhat.com>
10582 * configure.in (aux_missing warning): Change "too old" to
10583 "incompatible versions", since for autoconf it's "too new" right now.
10584 * configure: Regenerated.
10586 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
10587 one found doesn't work on our configure.in.
10588 * configure: Regenerated.
10589 * config.make.in (AUTOCONF): New substituted variable.
10590 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
10591 (autoconf-it): ... here, use that instead of defining conditionally.
10592 Use $(AUTOCONF) instead of literal autoconf.
10593 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
10594 with this condition.
10595 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
10597 2002-10-08 Ulrich Drepper <drepper@redhat.com>
10599 * Make-dist (dist): Cleanup a bit. We are not interested in the
10600 14 char filename limit anymore. Remove intermediate files and
10603 2002-10-05 Ulrich Drepper <drepper@redhat.com>
10605 * po/sk.po: Update from translation team.
10606 * po/tr.po: Likewise.
10607 * po/gl.po: Likewise.
10609 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10611 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
10613 2002-10-03 Ulrich Drepper <drepper@redhat.com>
10615 * version.h (RELEASE): Change to stable.
10617 2002-10-03 Jakub Jelinek <jakub@redhat.com>
10619 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
10620 __syscall_exit_group): New prototypes.
10622 2002-10-03 Ulrich Drepper <drepper@redhat.com>
10624 * glibc 2.3 released.
10627 See ChangeLog.13 for earlier changes.