1 2003-06-28 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
6 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
8 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable
9 (getgrent_next_file) Don't store group name to early in blacklist.
11 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
12 and use memcpy instead of strcpy.
14 2003-06-28 Ulrich Drepper <drepper@redhat.com>
16 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
18 * nis/nss_compat/compat-initgroups.c: Likewise.
19 * nis/nss_compat/compat-pwd.c: Likewise.
20 * nis/nss_compat/compat-spwd.c: Likewise.
22 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
24 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
25 functions, dlopen corresponding NSS module instead.
27 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
29 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
30 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
31 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
32 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
34 2003-06-27 Ulrich Drepper <drepper@redhat.com>
36 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
38 2003-06-26 Roland McGrath <roland@frob.com>
40 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
41 * sysdeps/mach/configure: Regenerated.
42 * sysdeps/mach/hurd/times.c (times_init): Function removed.
43 (__times): Assume `creation_time' field is available.
44 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
45 Don't append set-init.
46 * sysdeps/mach/hurd/set-init.c: File removed.
48 2003-06-26 Roland McGrath <roland@redhat.com>
50 * elf/elf.h (AT_SECURE): New macro.
51 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
52 set __libc_enable_secure.
53 (_dl_show_auxv): Add AT_SECURE to name table.
54 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
55 __libc_enable_secure and __libc_enable_secure_decided.
56 * sysdeps/unix/sysv/linux/ldsodefs.h
57 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
58 * sysdeps/unix/sysv/linux/kernel-features.h
59 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
61 2003-06-26 Ulrich Drepper <drepper@redhat.com>
63 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
64 boundary test to take rounding of nanoseconds into account.
66 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
67 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
68 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
69 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
70 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
71 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
72 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
74 2003-06-26 Andreas Schwab <schwab@suse.de>
76 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
77 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
78 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
80 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
82 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
83 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
84 dlopen corresponding NSS module instead.
85 * nis/nss_compat/compat-pwd.c: Likewise.
86 * nis/nss_compat/compat-spwd.c: Likewise.
87 * nis/nss_compat/compat-initgroups.c: Disabled for now.
88 * nss/Versions: Export __nss_lookup_function.
90 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
92 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
93 for the SH architecture.
95 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
97 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
99 2003-06-25 Andreas Jaeger <aj@suse.de>
101 * stdlib/tst-strtod.c (main): Declare constant long double as
102 suggested by Jakub Jelinek and Andreas Schwab.
104 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
107 * stdio-common/tst-fphex.c: Fix format string.
109 * posix/transbug.c: Include <string.h> for memset and strlen
112 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
114 * stdlib/tst-strtod.c (main): Pass long double value.
116 * test-skeleton.c: Include <time.h> for nanosleep declaration.
118 2003-06-25 Ulrich Drepper <drepper@redhat.com>
120 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
123 2003-06-11 Jakub Jelinek <jakub@redhat.com>
125 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
126 * elf/dl-libc.c (struct dl_open_hook): New.
127 (_dl_open_hook): New variable.
128 (do_dlsym_private): New function.
129 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
130 and initialize it if found.
131 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
132 call dlopen_mode hook.
133 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
135 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
138 2003-06-25 Ulrich Drepper <drepper@redhat.com>
140 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
141 result to long int so that extensions to long long int work.
142 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
144 2003-06-19 Jakub Jelinek <jakub@redhat.com>
146 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
147 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
148 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
150 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
151 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
152 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
153 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
155 2003-06-19 Jakub Jelinek <jakub@redhat.com>
157 * test-skeleton.c (timeout_handler): If waitpid returned 0,
158 retry once after a second. If killed == 0, assume
159 WTERMSIG (status) == SIGKILL.
161 2003-06-18 Roland McGrath <roland@redhat.com>
163 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
164 elements in the table instead of printing an empty name string.
166 2003-06-05 Roland McGrath <roland@redhat.com>
168 * elf/elf.h (PT_GNU_STACK): New macro.
170 2003-06-24 Ulrich Drepper <drepper@redhat.com>
172 * include/time.h: Define CLOCK_IDFIELD_SIZE.
173 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
174 * sysdeps/unix/clock_gettime.c: Likewise.
175 * sysdeps/unix/clock_settime.c: Likewise.
176 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
177 clock id for thread CPU clocks.
179 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
180 for the fstatfs64 syscall.
181 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
182 the statfs64 syscall.
184 * sysdeps/unix/sysv/linux/kernel-features.h: Define
185 __ASSUME_STATFS64 appropriately.
187 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
188 from statfs structure if it has been filled in.
190 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
192 (struct statfs64): Likewise.
193 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
194 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
196 2003-06-24 Richard Henderson <rth@redhat.com>
198 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
199 the 64-bit syscall name.
201 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
203 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
204 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
206 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
207 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
209 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
210 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
213 * sysdeps/alpha/bits/atomic.h: New file.
215 2003-06-24 Andreas Schwab <schwab@suse.de>
217 * sysdeps/m68k/fpu/libm-test-ulps: Update.
219 2003-06-24 Andreas Jaeger <aj@suse.de>
221 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
222 redeclaration with 32-bit code.
224 2003-05-19 Ed Connell <ed.connell@sas.com>
226 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
228 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
230 2003-06-23 Ulrich Drepper <drepper@redhat.com>
232 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
233 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
234 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
236 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
237 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
238 instead of __libc_cleanup_region_*.
240 2003-06-20 Richard Henderson <rth@redhat.com>
242 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
243 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
245 2003-06-20 Richard Henderson <rth@redhat.com>
247 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
248 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
250 (__ASSUME_TIMEVAL64): Set for alpha.
251 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
252 adjtimex, osf_sigprocmask, old_adjtimex.
253 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
254 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
255 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
256 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
257 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
258 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
259 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
260 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
261 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
262 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
263 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
265 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
266 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
267 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
268 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
269 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
270 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
271 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
272 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
273 defer to __syscall_name; error for rt_sigaction.
274 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
276 2003-06-18 Ulrich Drepper <drepper@redhat.com>
278 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
281 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
282 Fix completely broken implementation. The second parameter is of
283 type struct ucontext*.
285 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
288 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
289 * sysdeps/generic/dl-hash.h: Likewise.
291 * sysdeps/generic/memcmp.c: Remove inline from
292 memcmp_common_alignment and memcmp_not_common_alignment definition.
294 * intl/localealias.c (read_alias_file): Determine whether line is
295 read incompletely early, before we modify the line.
297 2003-06-17 Jakub Jelinek <jakub@redhat.com>
299 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
300 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
302 2003-06-17 Paul Mackerras <paulus@samba.org>
304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
309 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
311 2003-06-17 Jakub Jelinek <jakub@redhat.com>
313 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
315 2003-06-17 Ulrich Drepper <drepper@redhat.com>
317 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
318 takes care of enabling cancellation.
320 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
321 cancelable. It's not correct to disable cancellation. Instead of
324 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
325 and part of the incoming set, create a temporary set without this
327 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
328 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
330 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
331 returning because seconds==0. Add __builtin_expect.
333 2003-06-16 Ulrich Drepper <drepper@redhat.com>
335 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
337 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
340 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
342 * include/libc-symbols.h: Add static_link_warning macro.
343 * grp/initgroups.c: Print linker warning if this function
344 is called in a static linked binary.
345 * nss/getXXbyYY.c: Likewise.
346 * nss/getXXbyYY_r.c: Likewise.
347 * nss/getXXent.c: Likewise.
348 * nss/getXXent_r.c: Likewise.
349 * sysdeps/posix/getaddrinfo.c: Likewise.
351 2003-06-16 Bruno Haible <bruno@clisp.org>
353 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
355 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
356 (IBM1047): Add alias IBM-1047.
357 (GBK): Add aliases MS936, WINDOWS-936.
359 2003-06-16 Jakub Jelinek <jakub@redhat.com>
361 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
362 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
363 (__xstat64_conv): Change xstat_conv to __xstat_conv.
365 2003-06-16 Ulrich Drepper <drepper@redhat.com>
367 * locale/iso-639.def: Update from current official ISO 639.
369 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
371 2003-06-15 Andreas Jaeger <aj@suse.de>
373 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
375 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
376 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
377 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
379 * math/tgmath.h (carg): Handle real arguments.
385 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
386 (tests): Add test-tgmath-ret.
387 * math/test-tgmath-ret.c: New file.
389 * math/tgmath.h (ilogb): Return always an int.
391 2003-06-16 Ulrich Drepper <drepper@redhat.com>
393 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
394 computation so that prelinking works.
396 2003-06-15 Ulrich Drepper <drepper@redhat.com>
398 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
400 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
401 dynamic linker's map.
403 Fix cancellation point handling wrt exception based cleanup.
404 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
405 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
407 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
408 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
409 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
411 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
412 sigwait.c, and sigwaitinfo.c with exceptions.
413 * stdlib/Makefile: Compile system.c with exceptions.
414 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
415 * termios/Makefile: Compile tcdrain.c with exceptions.
416 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
418 * sysdeps/generic/pselect.c: Likewise.
419 * sysdeps/posix/sigpause.c: Likewise.
420 * sysdeps/posix/system.c: Likewise.
421 * sysdeps/posix/waitid.c: Likewise.
422 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
423 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
424 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
425 INTERNAL_SYSCALL to not use push inside asm statement so that
426 unwind info is correct around the syscall.
427 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
428 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
430 2003-06-15 Andreas Jaeger <aj@suse.de>
432 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
435 2003-06-15 Guido Guenther <agx@sigxcpu.org>
437 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
440 2003-06-14 Ulrich Drepper <drepper@redhat.com>
442 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
445 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
446 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
449 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
450 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
451 * inet/Makefile (routines): Add inet6_option.
452 * inet/inet6_option.c: New file.
453 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
454 inet6_option_init, inet6_option_append, inet6_option_alloc,
455 inet6_option_next, and inet6_option_find.
457 2003-06-13 Ulrich Drepper <drepper@redhat.com>
459 * inet/netinet/ip6.h (struct ip6_ext): Define.
461 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
463 Fixing gcc 3.3 warnings, part II.
464 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
465 * elf/dl-load.c (cache_rpath): Don't inline.
466 * iconvdata/cns11642l2.h: Always inline all functions.
467 * iconvdata/iso-ir-165.h: Likewise.
468 * locale/Makefile (aux): Add coll-lookup.
469 * locale/coll-lookup.c: New file.
470 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
471 (collseq_table_lookup): Likewise.
472 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
473 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
475 * posix/regcomp.c: Likewise.
476 * posix/regexec.c: Likewise.
477 * locale/programs/3level.h (*_get): Always inline.
478 * locale/programs/locfile.h: Move definition of handle_copy to...
479 * locale/programs/locfile.c: ...here.
480 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
481 (obstack_int32_grow_fast): Likewise.
482 (utf8_encode): Likewise.
483 (find_element): Avoid aliasing problems.
484 (insert_value): Likewise.
485 (collate_read): Likewise.
486 * nss/getent.c (print_hosts): Don't inline
487 (print_networks): Likewise.
488 (print_shadow): Likewise.
489 (build_doc): Likewise.
490 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
492 * posix/regcomp.c (re_set_fastmap): Always inline.
493 (seek_collating_symbol_entry): Likewise.
494 (lookup_collation_sequence_value): Likewise.
495 (build_range_exp): Likewise.
496 (build_collating_symbol): Likewise.
497 * posix/regexec.c (acquire_init_state_context): Don't inline.
498 (clean_state_log_if_need): Likewise.
499 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
501 (evConsTime): Likewise.
502 (evAddTime): Likewise.
503 (evSubTime): Likewise.
504 (evNowTime): Likewise.
505 (evTimeSpec): Removed.
506 (__libc_res_nsend): Avoid aliasing problem.
507 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
508 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
509 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
511 (_dl_string_platform): Likewise.
512 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
513 (wcwidth_table_lookup): Likewise.
514 (wctrans_table_lookup): Likewise.
516 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
518 2003-06-12 Ulrich Drepper <drepper@redhat.com>
520 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
522 2003-05-29 Jim Meyering <jim@meyering.net>
524 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
525 && HAVE_STRFTIME]: Use underlying_strftime for %r.
526 Suggested by Daniel Yacob <locales@geez.org>.
528 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
530 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
531 @got notation with @toc.
532 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
535 2003-06-12 Ulrich Drepper <drepper@redhat.com>
537 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
538 if only PF_INET address is needed.
540 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
543 * scripts/config.guess: Update from upstream version.
544 * scripts/config.sub: Likewise.
546 2003-06-12 Jakub Jelinek <jakub@redhat.com>
548 * locale/programs/ld-time.c (time_output): Also copy the era format,
551 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
553 * posix/transbug.c (run_test): Return 1 for failure.
554 (do_test): Compare only if run_test is successful.
556 2003-06-12 Simon Josefsson <jas@extundo.com>
558 * argp/argp.h [!__THROW]: Define if undefined.
560 2003-06-12 Ulrich Drepper <drepper@redhat.com>
562 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
563 more than four parameters.
564 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
566 2003-06-12 Jakub Jelinek <jakub@redhat.com>
568 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
569 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
570 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
572 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
574 2003-06-12 Roland McGrath <roland@redhat.com>
576 * Makerules ($(objpfx)stubs): Rewrite sed magic.
578 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
580 * posix/regcomp.c (parse_expression): Deliver translation to
581 build_word_op, and build_charclass.
582 (build_charclass): Apply translation for character classes too.
583 (build_word_op): Deliver translation to build_charclass.
584 * posix/transbug.c: New file.
585 * posix/Makefile (tests): Add transbug.
587 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
589 * posix/regexec.c (group_nodes_into_DFAstates): Check for
590 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
591 'continue' before the others.
593 2003-06-11 Ulrich Drepper <drepper@redhat.com>
595 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
596 function [PR libc/5045].
598 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
601 * time/tzfile.c: Add a couple of __builtin_expect.
603 Remove warnings gcc 3.3 shows.
604 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
605 * elf/dl-load.c (fillin_rpath): Likewise.
606 (add_path): Likewise.
607 * elf/dl-version.c (find_needed): Always inline.
608 * elf/do-lookup.c (FCT): Don't inline.
609 * iconv/Makefile: Extend vpath to intl subdir.
610 (iconvconfig-modules): Add hash-string.
611 * iconv/gconv_charset.h (strip): Don't inline.
612 (upstr): Always inline.
613 Move __gconv_compare_alias prototype to...
614 * iconv/gconv_int.h: ...here.
615 * iconv/gconv_db.c: Don't include gconv_charset.h.
616 * iconv/gconv_conf.c (add_alias): Don't inline.
617 (insert_module): Likewise.
618 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
619 (internal_ucs4_loop_unaligned): Likewise.
620 (internal_ucs4_loop_single): Likewise.
621 (ucs4_internal_loop): Likewise.
622 (ucs4_internal_loop_unaligned): Likewise.
623 (ucs4_internal_loop_single): Likewise.
624 (internal_ucs4le_loop): Always inline.
625 (internal_ucs4le_loop_unaligned): Likewise.
626 (internal_ucs4le_loop_single): Likewise.
627 (ucs4le_internal_loop): Likewise.
628 (ucs4le_internal_loop_unaligned): Likewise.
629 (ucs4le_internal_loop_single): Likewise.
630 * iconv/loop.c: Always inline the defined functions.
631 * iconvdata/cns11642.h: Likewise.
632 * iconvdata/cns11642l1.h: Likewise.
633 * iconvdata/euc-kr.c: Likewise.
634 * iconvdata/gb2312.h: Likewise.
635 * iconvdata/jis0201.h: Likewise.
636 * iconvdata/jis0208.h: Likewise.
637 * iconvdata/jis0212.h: Likewise.
638 * iconvdata/jisx0213.h: Likewise.
639 * iconvdata/ksc5601.h: Likewise.
640 * iconvdata/utf-7.c (base64): Don't inline.
641 * include/libc-symbols.h (symbol_set_first_element): Add cast
642 (symbol_set_end_p): Likewise.
643 * include/set-hooks (RUN_HOOK): Likewise.
644 * inet/Makefile (aux): Add ifreq.
645 * intl/Makefile (aux): Add some entries from routines. Add
647 * intl/hash-string.c: New file.
648 * intl/hash-string.h: Remove hash_string definition. Declare
650 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
651 * iconv/iconvconfig.c (new_name): Likewise.
652 * intl/dcigettext.c (_nl_find_msg): Likewise.
653 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
654 * io/ftw.c (open_dir_stream): Always inline.
655 (process_entry): Don't inline.
656 * locale/findlocale.c: Include gconv_int.h.
657 * locale/setlocale.c (new_composite_name): Don't inline.
658 * locale/weight.h (findidx): Always inline.
659 * locale/weightwc.h (findidx): Likewise.
660 * locale/programs/linereader.c (lr_ignore_rest): Define here.
661 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
663 (lr_getc): Always inline.
664 (lr_ungetc): Likewise.
665 * nss/nss_files/files-parse.c (parse_list): Likewise.
666 * stdio-common/Makefile (aux): Add printf-parsemb and
668 * stdio-common/_itoa.h (_itoa_word): Always inline.
669 (_fitoa_word, _fitoa): Don't define here, only declare.
670 * stdio-common/_itoa.c (_iftoa_word): Add here.
672 * stdio-common/_itowa.h (_itowa_word): Always inline.
673 * stdio-common/printf-parse.h (read_int): Don't inline.
674 (find_spec): Don't define.
675 Declare __find_specmb and __find_specwc.
676 (parse_one_spec): Don't define.
677 Declare __parse_one_specmb and __parse_one_specwc.
678 * stdio-common/printf-parsemb.c: New file.
679 * stdio-common/printf-parsewc.c: New file.
680 * stdio-common/vfprintf.c: Update calls to find_spec and
681 parse_one_spec for new names.
682 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
683 * stdlib/Makefile (aux): Add grouping and groupingwc.
684 * stdlib/grouping.c: New file.
685 * stdlib/groupingwc.c: New file.
686 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
688 * stdlib/rpmatch.c (try): Don't inline.
689 * stdlib/strtod.c (round_and_return): Don't line.
690 (str_to_mpn): Likewise.
691 (__mpn_lshift_1): Always inline. Optimize only for constant count.
692 Adjust for name change of correctly_grouped_prefix.
693 * sysdeps/generic/strtol.c: Adjust for name change of
694 correctly_grouped_prefix.
695 * string/strxfrm.c (utf8_encode): Don't inline.
696 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
697 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
698 * sysdeps/generic/ifreq.c: New file.
699 * sysdeps/unix/sysv/linux/ifreq.c: New file.
700 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
701 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
702 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
703 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
704 (fde_split): Likewise.
705 (fde_merge): Likewise.
706 (end_fde_sort): Likewise.
707 (init_object): Likewise.
708 (binary_search_unencoded_fdes): Likewise.
709 (binary_search_single_encoding_fdes): Likewise.
710 (binary_search_mixed_encoding_fdes): Likewise.
711 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
712 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
713 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
714 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
716 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
717 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
718 Export them. Prepend __ to name.
719 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
720 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
721 conversion functions.
722 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
723 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
724 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
725 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
726 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
727 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
728 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
729 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
730 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
731 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
732 to name. Change callers.
733 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
734 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
736 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
737 * time/tzfile.c (decode): Always inline.
738 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
739 Remove cast in tomb function call.
740 * wcsmbs/wcsrtombs.c Likewise.
741 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
744 2003-06-10 Ulrich Drepper <drepper@redhat.com>
746 * po/zh_CN.po: Update from translation team.
748 2003-06-10 Jakub Jelinek <jakub@redhat.com>
750 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
751 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
753 2003-06-10 Ulrich Drepper <drepper@redhat.com>
755 * inet/Makefile (aux): Add check_pf.
756 * include/ifaddrs.h: Add prototype for __check_pf.
757 * sysdeps/generic/check_pf.c: New file.
758 * sysdeps/unix/sysv/linux/check_pf.c: New file.
759 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
760 from no_netlink_support. Export.
761 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
764 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
766 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
767 from getifaddr calls.
769 2003-06-09 Jakub Jelinek <jakub@redhat.com>
771 * sysdeps/unix/sysv/linux/kernel-features.h
772 (__ASSUME_SETRESGID_SYSCALL): Define.
773 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
774 instead of __ASSUME_SETRESUID_SYSCALL.
775 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
777 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
778 inline syscall if __NR_setresuid32 is defined.
779 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
780 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
781 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
782 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
783 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
784 code handling non-existant setresgid32 syscall with
785 #if __ASSUME_SETRESGID_SYSCALL == 0.
787 2003-06-09 Andreas Schwab <schwab@suse.de>
789 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
790 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
791 $(objpfx)rpc-proto.d.
792 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
793 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
794 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
796 2003-06-08 Ulrich Drepper <drepper@redhat.com>
798 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
799 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
800 defined drop compatibility code.
801 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
802 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
803 defined drop compatibility code.
804 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
805 setresuid32 syscall directly if possible.
806 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
807 setresgid32 syscall directly if possible.
808 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
809 compliant. Don't change sgid.
810 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
811 compliant. Don't change suid.
813 * config.h.in: Add have-forced-unwind.
814 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
816 2003-06-07 Ulrich Drepper <drepper@redhat.com>
818 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
819 returned status from child matches.
821 * Makeconfig (gnulib): Add -lgcc_eh once again.
823 2003-06-06 Ulrich Drepper <drepper@redhat.com>
825 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
827 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
828 %edx for first parameter. This means no pushl and therefore the
829 unwind info isn't screwed up.
831 2003-06-04 Richard Henderson <rth@redhat.com>
833 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
834 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
835 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
836 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
837 entry sequence and explicit relocs. Add unwind info for sigreturn
839 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
841 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
842 Annotate some parameters.
843 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
845 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
847 * include/libc-symbols.h (symbol_set_declare): Use arrays
850 2003-06-04 Jakub Jelinek <jakub@redhat.com>
852 * config.make.in (ASFLAGS-config): New.
853 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
854 * configure.in (libc_cv_as_noexecstack): New check.
855 (ASFLAGS_config): Substitute.
857 2003-06-04 Jakub Jelinek <jakub@redhat.com>
859 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
860 hypot, logb): Protect with #ifdef __FAST_MATH__.
862 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
864 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
865 #ifdef __FAST_MATH__.
867 2003-06-03 Ulrich Drepper <drepper@redhat.com>
869 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
870 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
871 * posix/globtest.sh: Adjust for this change.
873 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
874 to get the actual PID value used in the records passed up.
875 (getifaddrs): Don't initialize nh.pid here.
877 2003-06-02 Ulrich Drepper <drepper@redhat.com>
879 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
882 * po/zh_CN.po: Update from translation team.
884 * posix/getconf.c (main): Also recognize names without the
887 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
889 2003-06-02 Bernd Schmidt <bernds@redhat.com>
891 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
892 ldexpf, ldexpl): Only define if __FAST_MATH__.
894 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
896 Replace hard-coded offsets into struct sigcontext with generated file.
897 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
898 * sysdeps/unix/sysv/linux/ia64/Makefile
899 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
900 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
901 defining SC_* macros here.
903 2003-06-02 Jakub Jelinek <jakub@redhat.com>
905 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
907 2003-06-01 Jakub Jelinek <jakub@redhat.com>
909 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
911 2003-06-01 Ulrich Drepper <drepper@redhat.com>
913 * test-skeleton.c (main): Request getopt to not reorder the
916 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
918 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
921 2003-05-31 Ulrich Drepper <drepper@redhat.com>
923 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
925 2003-05-31 Jakub Jelinek <jakub@redhat.com>
927 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
929 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
930 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
931 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
933 2003-05-31 Ulrich Drepper <drepper@redhat.com>
935 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
938 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
940 * libio/fileops.c (_IO_file_open): Don't mark as inline.
942 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
945 2003-05-30 Ulrich Drepper <drepper@redhat.com>
947 * scripts/config.guess: Update from master copy.
948 * scripts/config.sub: Likewise.
950 2003-05-30 Guido Guenther <agx@sigxcpu.org>
952 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
953 SETUP_GP64 and friends.
954 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
955 names in internal_syscall{6,7}.
956 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
957 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
958 number of syscall arguments.
959 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
960 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
961 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
963 2003-05-30 Andreas Jaeger <aj@suse.de>
965 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
968 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
971 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
973 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
976 2003-05-30 Jakub Jelinek <jakub@redhat.com>
978 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
981 2003-05-11 Andreas Schwab <schwab@suse.de>
983 * Makerules: Always use -MP together with -MD.
984 (sed-remove-dotot): Substitute $(..) also at start of line.
985 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
986 Generated defines with a single compiler call.
987 Use $(sed-remove-dotdot).
988 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
989 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
990 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
991 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
992 * sysdeps/unix/sysv/linux/mips/Makefile
993 ($(objpfx)syscall-%.h): Likewise.
995 2003-05-28 Roland McGrath <roland@redhat.com>
997 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
999 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
1001 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
1003 2003-05-28 Roland McGrath <roland@redhat.com>
1005 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
1006 rt_sigprocmask system call.
1007 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
1008 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
1010 2003-05-28 Ulrich Drepper <drepper@redhat.com>
1012 * include/libc-symbols.h: Define hidden attribute for real also if
1013 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
1015 * csu/Makefile: Add rules to build Scrt1.o.
1016 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
1017 * sysdeps/x86_64/elf/start.S: Likewise.
1019 2003-05-27 Jakub Jelinek <jakub@redhat.com>
1021 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
1022 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
1023 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
1024 pa_short_int, pa_u_short_int and pa_float.
1026 2003-05-26 Jakub Jelinek <jakub@redhat.com>
1028 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
1029 _IO_str_init_static_internal.
1030 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
1031 change size argument to _IO_size_t, don't limit sprintf to 64M.
1032 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
1033 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
1034 _IO_size_t, don't limit swprintf to 256M.
1035 (_IO_wstr_init_readonly): Remove.
1036 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
1038 (_IO_wstr_init_readonly): Remove prototype.
1039 * libio/iovsprintf.c (_IO_vsprintf): Use
1040 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
1041 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1042 * libio/memstream.c (open_memstream): Likewise.
1043 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
1044 * libio/vasprintf.c (_IO_vasprintf): Likewise.
1045 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1046 * stdio-common/tst-sprintf.c (main): Add new test.
1048 2003-05-26 Ulrich Drepper <drepper@redhat.com>
1050 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
1051 other implementation in respect of multiple uses of parameter with
1054 2003-05-25 Ulrich Drepper <drepper@redhat.com>
1056 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1057 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
1059 2003-05-22 Andreas Jaeger <aj@suse.de>
1061 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
1063 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1064 * sysdeps/x86_64/strtok.S: Likewise.
1066 2003-05-20 Guido Guenther <agx@sigxcpu.org>
1068 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
1069 to -60 and define SI_TKILL.
1071 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
1073 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
1074 (feexcp_mask_test): Likewise.
1076 2003-05-21 Ulrich Drepper <drepper@redhat.com>
1078 * locale/programs/locale.c (main): Fix typo in last patch.
1080 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
1081 __init_array_start, __init_array_end, __fini_array_start, and
1082 __fini_array_end as hidden.
1084 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
1086 * locale/programs/locale.c (main): Report an error if setlocale()
1087 fails [PR libc/2254].
1089 2003-05-21 Jakub Jelinek <jakub@redhat.com>
1091 * sysdeps/unix/sysv/linux/s390/system.c: New file.
1093 2003-05-21 Jakub Jelinek <jakub@redhat.com>
1095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
1096 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1097 LOADARGS_6): Don't error if syscall argument is a string literal.
1098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
1099 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
1100 LOADARGS_6): Likewise.
1102 2003-05-21 Andreas Jaeger <aj@suse.de>
1104 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
1105 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
1106 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
1108 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
1112 * configure.in: Test for asm cfi directives.
1114 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
1116 2003-05-17 Andreas Jaeger <aj@suse.de>
1118 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
1120 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
1122 2003-05-16 Ulrich Drepper <drepper@redhat.com>
1124 * rt/Makefile (tests): Add tst-clock_nanosleep.
1125 * rt/tst-clock_nanosleep.c: New file.
1126 * posix/Makefile (tests): Add tst-nanosleep.
1127 * posix/tst-nanosleep.c: New file.
1129 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
1131 * include/features.h (__USE_XOPEN2K): Define also for
1132 _POSIX_C_SOURCE>=200112L.
1134 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
1135 SI_TKILL code into SI_USER.
1136 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
1138 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
1140 2003-05-15 Jakub Jelinek <jakub@redhat.com>
1142 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
1143 Remove sym argument, always use refsym.
1144 (__process_machine_rela): Adjust callers.
1145 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
1147 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
1149 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1151 2003-05-15 Ulrich Drepper <drepper@redhat.com>
1153 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
1154 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
1155 print numeric values.
1157 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
1159 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
1161 2003-05-14 Andreas Schwab <schwab@suse.de>
1163 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
1165 2003-05-14 Jakub Jelinek <jakub@redhat.com>
1167 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
1168 even if no DT_NEEDED is present.
1170 2003-05-13 David Mosberger <davidm@hpl.hp.com>
1172 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
1173 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
1174 __sigjmp_save) so we can't keep the saved unat value in a scratch
1175 register (r16). Use loc2 instead.
1177 2003-05-13 Ulrich Drepper <drepper@redhat.com>
1179 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
1180 binaries it has to be relocatable.
1182 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
1184 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
1186 * sysdeps/powerpc/bits/atomic.h
1187 (__arch_compare_and_exchange_bool_8_rel): Define.
1188 (__arch_compare_and_exchange_bool_16_rel): Define.
1189 (__ARCH_REL_INSTR): Define if not already defined.
1190 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
1191 (__arch_atomic_decrement_if_positive_32):
1192 Add "memory" to clobber list.
1193 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
1194 (__arch_compare_and_exchange_val_32_rel): Define.
1195 (__arch_atomic_exchange_32): Remove.
1196 (__arch_atomic_exchange_32_acq): Define.
1197 (__arch_atomic_exchange_32_rel): Define.
1198 (atomic_compare_and_exchange_val_rel): Define.
1199 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
1200 (atomic_exchange_rel): Define.
1201 * sysdeps/powerpc/powerpc32/bits/atomic.h
1202 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
1203 (__arch_compare_and_exchange_bool_32_rel): Define.
1204 (__arch_compare_and_exchange_bool_64_rel): Define.
1205 (__arch_compare_and_exchange_val_64_rel): Define.
1206 (__arch_atomic_exchange_64): Remove.
1207 (__arch_atomic_exchange_64_acq): Define.
1208 (__arch_atomic_exchange_64_rel): Define.
1209 * sysdeps/powerpc/powerpc64/bits/atomic.h
1210 (__arch_compare_and_exchange_bool_32_rel): Define.
1211 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
1212 (__arch_compare_and_exchange_bool_64_rel): Define.
1213 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
1214 (__arch_compare_and_exchange_val_64_rel): Define.
1215 (__arch_atomic_exchange_64): Remove.
1216 (__arch_atomic_exchange_64_acq): Define.
1217 (__arch_atomic_exchange_64_rel): Define.
1218 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
1219 (__arch_atomic_decrement_if_positive_64):
1220 Add "memory" to clobber list.
1221 [!UP](__ARCH_REL_INSTR): Define as lwsync.
1223 2003-05-11 Andreas Schwab <schwab@suse.de>
1225 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
1227 2003-05-11 Ulrich Drepper <drepper@redhat.com>
1229 * time/tst-strftime.c (do_test): Add tests for - flag.
1231 2003-05-11 Jim Meyering <jim@meyering.net>
1233 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
1234 the space-padded-by-default conversion specifiers, %e, %k, %l.
1236 2003-05-11 Andreas Schwab <schwab@suse.de>
1238 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
1240 2003-05-10 Ulrich Drepper <drepper@redhat.com>
1242 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
1243 already defined and when really needed.
1244 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1246 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
1248 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
1249 headers, add defines from kernel header, move it from here...
1250 * inet/netinet/igmp.h: ... to here.
1251 * inet/Makefile (headers): Add netinet/igmp.h.
1252 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
1253 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
1255 2003-05-10 Ulrich Drepper <drepper@redhat.com>
1257 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
1258 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
1260 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
1262 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
1263 (remove __THROW from possible cancellation points).
1265 2003-05-10 Ulrich Drepper <drepper@redhat.com>
1267 * posix/sched.h (CPU_SETSIZE): Define.
1269 2003-05-09 Ulrich Drepper <drepper@redhat.com>
1271 * Makeconfig (gnulib): Remove -lgcc_eh again.
1273 * posix/sched.h: Change prototypes of sched_getaffinity and
1274 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
1275 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
1276 * sysdeps/generic/sched_setaffinity.c: Likewise.
1277 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
1278 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
1279 __CPU_CLR, and __CPU_ISSET.
1280 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1281 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
1282 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
1284 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
1285 (atomic_exchange_rel): New #define.
1286 * sysdeps/ia64/bits/atomic.h: Likewise.
1287 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
1289 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
1290 * sysdeps/powerpc/bits/atomic.h: Likewise.
1291 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
1292 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
1293 * sysdeps/x86_64/bits/atomic.h: Likewise.
1294 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
1296 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
1298 2003-05-08 Ulrich Drepper <drepper@redhat.com>
1300 * malloc/thread-m.h: Remove special handling of thread_atfork if
1301 HAVE_register_atfork_malloc is defined.
1303 2003-05-07 Andreas Jaeger <aj@suse.de>
1305 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
1308 2003-05-06 Ulrich Drepper <drepper@redhat.com>
1310 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
1311 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
1312 * libio/libioP.h: Declare _IO_old_init.
1313 * libio/genops.c (_IO_no_init): Split in two. New function
1316 2003-05-05 Ulrich Drepper <drepper@redhat.com>
1318 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
1320 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
1322 * include/unistd.h: Declare __libc_enable_secure_decided.
1323 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
1324 and AT_EGID. If all found, set __libc_enable_secure and
1325 __libc_enable_secure_decided.
1327 * sysdeps/generic/libc-start.c [!SHARED]: Call
1328 __libc_check_standard_fds after __libc_init_first.
1330 2003-05-05 Roland McGrath <roland@redhat.com>
1332 * Makerules (common-before-compile): New variable.
1333 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
1334 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
1335 to after all setting of before-compile.
1337 2003-05-05 Jakub Jelinek <jakub@redhat.com>
1339 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1340 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
1341 * sysdeps/powerpc/powerpc32/bits/atomic.h
1342 (__arch_compare_and_exchange_val_64_acq): Likewise.
1343 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1344 (__arch_compare_and_exchange_val_8_acq,
1345 __arch_compare_and_exchange_val_16_acq,
1346 __arch_compare_and_exchange_val_64_acq): Likewise.
1347 * sysdeps/sparc/sparc64/bits/atomic.h
1348 (__arch_compare_and_exchange_val_8_acq,
1349 __arch_compare_and_exchange_val_16_acq): Likewise.
1350 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1351 __arch_compare_and_exchange_val_16_acq,
1352 __arch_compare_and_exchange_val_64_acq): Likewise.
1353 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1354 (__arch_compare_and_exchange_val_64_acq): Likewise.
1355 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
1357 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
1359 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1360 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
1361 Return long instead of int.
1362 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
1363 0xfffff001u with -4095UL.
1365 2003-05-05 Andreas Jaeger <aj@suse.de>
1367 * sysdeps/x86_64/fpu_control.h: New from i386.
1369 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
1370 Define if not defined.
1372 * sunrpc/Makefile (generated-dirs): New variable.
1373 * resolv/Makefile (generated): New variable.
1375 2003-05-04 Roland McGrath <roland@redhat.com>
1377 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
1378 Depend on $(before-compile).
1380 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
1381 pattern rule. The implicit rule could be ruled out when $(objpfx)
1382 didn't exist at the time of its consideration (ugh!).
1384 * Makerules (+make-deps): Fix target matching.
1385 Use $(sed-remove-dotdot).
1387 2003-05-03 Ulrich Drepper <drepper@redhat.com>
1389 * nscd/nscd.c (main): Parse config file right after parsing
1390 parameters. Then, if get_stats is true, call receive_print_stats.
1391 Drop parameter from nscd_init call.
1392 (get_stats): New variable.
1393 (parse_opt): Set get_stats, don't call receive_print_stats here.
1394 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
1396 * nscd/connections.c (stat_user, stat_uid): New variables.
1398 (nscd_init): Don't read configuration file here. Drop parameter.
1399 (handle_request): Cleanup handling of non-database lookup requests.
1400 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
1401 Get UID of the specified user. Use xstrdup instead of strdup.
1402 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
1404 * nscd/Makefile (nscd-modules): Add xstrdup.
1405 * nscd/nscd.conf: Document stat-user entry.
1407 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
1409 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
1412 2003-04-22 Roland McGrath <roland@redhat.com>
1414 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
1415 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1416 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
1417 * elf/dl-support.c: Update defn.
1418 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
1419 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1420 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
1421 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
1422 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
1423 set, set up a link_map for the preloaded, prelinked object.
1425 2003-05-03 Roland McGrath <roland@redhat.com>
1427 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
1428 * stdio-common/Makefile: ... not here.
1430 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
1431 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
1433 2003-05-02 Ulrich Drepper <drepper@redhat.com>
1435 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
1437 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
1439 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
1440 comparing ftab elements.
1441 (_dl_unmap): Fix typo in test.
1442 (_dl_make_fptr): Fix typos introduced in last change.
1444 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
1445 original patch. Use non-exported symbols. Mark translatable
1446 strings. Pretty printing.
1448 2003-05-02 Roland McGrath <roland@redhat.com>
1450 * Makerules (do-stamp): Do $(make-target-directory).
1452 2003-04-07 H.J. Lu <hjl@gnu.org>
1454 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
1456 2003-04-03 H.J. Lu <hjl@gnu.org>
1458 * sysdeps/ia64/dl-fptr.c: Moved to ...
1459 * sysdeps/generic/dl-fptr.c: Here.
1461 * sysdeps/generic/dl-fptr.h: New.
1462 * sysdeps/ia64/dl-fptr.h: New.
1464 * sysdeps/ia64/dl-symaddr.c: Moved to ...
1465 * sysdeps/generic/dl-symaddr.c: here.
1467 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
1468 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
1469 (ia64_fdesc): Likewise.
1470 (ia64_fdesc_table): Likewise.
1471 (__ia64_make_fptr): Likewise.
1472 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
1473 with _dl_boot_fptr_table.
1474 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
1476 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
1478 2003-05-01 Roland McGrath <roland@redhat.com>
1480 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
1481 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1483 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1484 Use $(make-target-directory).
1485 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1487 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
1488 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
1489 (compile-command.s, compile-command.c): Likewise.
1490 ($(objpfx)%.d): All such pattern rules removed.
1491 ($(+sysdir_pfx)sysd-rules): Don't generate them.
1492 ($(common-objpfx)dummy.d): Target removed.
1493 (make-dummy-dep): Variable removed.
1494 (generate-md5): Likewise.
1495 (%.d: %.dt): New pattern rule.
1496 (+depfiles): Use $(wildcard) function to get just existing *.d files
1497 and .d files for existing *.dt files.
1498 (common-clean): Remove all *.d and *.dt files.
1499 (before-compile): Add $(objpfx). when it doesn't exist,
1500 regardless of $(no_deps).
1501 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
1502 (rtld-depfiles): Use .os.d instead of .d names.
1503 Include existing *.d files and .d files for existing *.dt files.
1505 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
1506 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
1508 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
1509 Do s-*.d includes only if we have some syscall routines in this subdir.
1511 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
1512 @nobits. The former is accepted by gas on any ELF platform.
1514 2003-05-01 Ulrich Drepper <drepper@redhat.com>
1516 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
1518 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
1520 2003-04-29 Andreas Schwab <schwab@suse.de>
1522 * string/test-strcat.c (do_one_test): Fix attribute name.
1524 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
1526 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
1527 uc_flags long for all ABIs.
1529 2003-04-30 Andreas Jaeger <aj@suse.de>
1531 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
1532 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
1533 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
1534 Add bi-arch support.
1536 2003-04-30 Ulrich Drepper <drepper@redhat.com>
1538 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
1539 (__posix_memalign): Use __memalign_internal instead of memalign.
1541 2003-04-29 Roland McGrath <roland@redhat.com>
1543 * configure.in: Search for AUTOCONF unconditionally.
1544 Just don't complain about missing it under --without-cvs.
1546 * include/libc-symbols.h (__symbol_set_attribute): New macro,
1547 give hidden for [SHARED] and weak for [! SHARED].
1548 (symbol_set_declare): Use that. Never need weak_extern these days.
1549 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
1550 Depend on $(..)Makerules.
1552 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1554 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
1555 variants of socket, bind, recvmsg, and sendto.
1557 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
1559 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
1560 * signal/sigaddset.c: Add libc_hidden_def.
1561 * signal/sigdelset.c: Likewise.
1563 2003-04-29 Jakub Jelinek <jakub@redhat.com>
1565 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
1566 to the end of the file.
1568 * configure.in: Change __oline__ to $LINENO.
1569 (HAVE_BUILTIN_REDIRECTION): New check.
1570 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
1571 * include/libc-symbols.h (libc_hidden_builtin_proto,
1572 libc_hidden_builtin_def, libc_hidden_builtin_weak,
1573 libc_hidden_builtin_ver): Define.
1574 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
1575 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
1576 strspn, strstr): Add libc_hidden_builtin_proto.
1577 * intl/plural.y: Include string.h.
1578 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
1579 libc_hidden_builtin_def.
1580 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
1581 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
1582 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
1583 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
1584 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
1585 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
1586 * sysdeps/alpha/memchr.S (memchr): Likewise.
1587 * sysdeps/alpha/memset.S (memset): Likewise.
1588 * sysdeps/alpha/strcat.S (strcat): Likewise.
1589 * sysdeps/alpha/strchr.S (strchr): Likewise.
1590 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
1591 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
1592 * sysdeps/alpha/strlen.S (strlen): Likewise.
1593 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
1594 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
1595 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
1596 * sysdeps/arm/memset.S (memset): Likewise.
1597 * sysdeps/arm/strlen.S (strlen): Likewise.
1598 * sysdeps/generic/memchr.c (memchr): Likewise.
1599 * sysdeps/generic/memcpy.c (memcpy): Likewise.
1600 * sysdeps/generic/memmove.c (memmove): Likewise.
1601 * sysdeps/generic/memset.c (memset): Likewise.
1602 * sysdeps/generic/strcat.c (strcat): Likewise.
1603 * sysdeps/generic/strchr.c (strchr): Likewise.
1604 * sysdeps/generic/strcmp.c (strcmp): Likewise.
1605 * sysdeps/generic/strcpy.c (strcpy): Likewise.
1606 * sysdeps/generic/strcspn.c (strcspn): Likewise.
1607 * sysdeps/generic/strlen.c (strlen): Likewise.
1608 * sysdeps/generic/strncmp.c (strncmp): Likewise.
1609 * sysdeps/generic/strncpy.c (strncpy): Likewise.
1610 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
1611 * sysdeps/generic/strrchr.c (strrchr): Likewise.
1612 * sysdeps/generic/strspn.c (strspn): Likewise.
1613 * sysdeps/generic/strstr.c (strstr): Likewise.
1614 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1615 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1616 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
1617 * sysdeps/i386/i586/memset.S (memset): Likewise.
1618 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
1619 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
1620 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1621 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
1622 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1623 * sysdeps/i386/i686/memset.S (memset): Likewise.
1624 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1625 * sysdeps/i386/memchr.S (memchr): Likewise.
1626 * sysdeps/i386/memset.c (memset): Likewise.
1627 * sysdeps/i386/strchr.S (strchr): Likewise.
1628 * sysdeps/i386/strcspn.S (strcspn): Likewise.
1629 * sysdeps/i386/strlen.c (strlen): Likewise.
1630 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1631 * sysdeps/i386/strrchr.S (strrchr): Likewise.
1632 * sysdeps/i386/strspn.S (strspn): Likewise.
1633 * sysdeps/ia64/memchr.S (memchr): Likewise.
1634 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
1635 * sysdeps/ia64/memmove.S (memmove): Likewise.
1636 * sysdeps/ia64/memset.S (memset): Likewise.
1637 * sysdeps/ia64/strcat.S (strcat): Likewise.
1638 * sysdeps/ia64/strchr.S (strchr): Likewise.
1639 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
1640 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
1641 * sysdeps/ia64/strlen.S (strlen): Likewise.
1642 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
1643 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
1644 * sysdeps/m68k/memchr.S (memchr): Likewise.
1645 * sysdeps/m68k/strchr.S (strchr): Likewise.
1646 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
1647 * sysdeps/mips/mips64/memset.S (memset): Likewise.
1648 * sysdeps/mips/memcpy.S (memcpy): Likewise.
1649 * sysdeps/mips/memset.S (memset): Likewise.
1650 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1651 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
1652 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
1653 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
1654 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
1655 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
1656 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
1657 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
1658 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
1659 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
1660 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
1661 * sysdeps/powerpc/strcat.c (strcat): Likewise.
1662 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
1663 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
1664 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
1665 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
1666 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
1667 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
1668 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
1669 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
1670 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
1671 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
1672 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
1673 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
1674 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
1675 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
1676 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
1677 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
1678 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
1679 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
1680 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
1681 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
1682 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
1683 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
1684 * sysdeps/sh/memcpy.S (memcpy): Likewise.
1685 * sysdeps/sh/memset.S (memset): Likewise.
1686 * sysdeps/sh/strlen.S (strlen): Likewise.
1687 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
1688 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
1689 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
1690 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
1691 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
1692 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
1693 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
1694 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
1695 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
1696 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
1697 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
1698 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
1699 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1700 * sysdeps/x86_64/memset.S (memset): Likewise.
1701 * sysdeps/x86_64/strcat.S (strcat): Likewise.
1702 * sysdeps/x86_64/strchr.S (strchr): Likewise.
1703 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
1704 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
1705 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
1706 * sysdeps/x86_64/strlen.S (strlen): Likewise.
1707 * sysdeps/x86_64/strspn.S (strspn): Likewise.
1708 * string/string-inlines.c: Move...
1709 * sysdeps/generic/string-inlines.c: ...here.
1710 (__memcpy_g, __strchr_g): Remove.
1711 (__NO_INLINE__): Define before including <string.h>,
1712 undefine after. Include bits/string.h and bits/string2.h.
1713 * sysdeps/i386/i486/string-inlines.c: New file.
1714 * sysdeps/i386/string-inlines.c: New file.
1715 * sysdeps/i386/i486/Versions: Remove.
1716 All GLIBC_2.1.1 symbols moved...
1717 * sysdeps/i386/Versions (libc): ...here.
1719 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1721 * sysdeps/i386/fpu/Makefile: New file.
1722 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
1723 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1724 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1725 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
1728 2003-04-28 Ulrich Drepper <drepper@redhat.com>
1730 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
1731 * nscd/nscd_getpw_r.c: Likewise.
1732 * nscd/nscd_gethst_r.c: Likewise.
1734 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1736 * nscd/pwdcache.c: Initialize .version element in result.
1737 * nscd/grpcache.c: Likewise.
1738 * nscd/pwdcache.c: Likewise.
1740 2003-04-27 Andreas Schwab <schwab@suse.de>
1742 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
1745 2003-04-27 Andreas Schwab <schwab@suse.de>
1747 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
1749 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1751 * nscd/connections.c (client_queued): New variable.
1752 (nscd_run): Revamp the loop. Don't call poll except for cleanup
1753 threads. Keep track of the number of delays caused because of busy
1755 * nscd/nscd.h: Declare client_queued.
1756 * nscd/nscd_stat.c: Transmit and print client_queued information.
1758 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
1760 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
1761 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
1763 2003-04-26 Ulrich Drepper <drepper@redhat.com>
1765 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
1766 tracking of freed memory in static TLS block.
1767 * elf/Makefile: Add rules to build and run tst-tls13.
1768 * elf/tst-tls13.c: New file.
1769 * elf/tst-tlsmod13.c: New file.
1770 * elf/tst-tlsmod13a.c: New file.
1772 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
1774 * elf/dl-reloc.c: Pretty printing.
1776 2003-04-26 Roland McGrath <roland@redhat.com>
1778 * Makerules ($(common-objpfx)shlib.lds): New target.
1779 (common-generated): Add it.
1780 (build-shlib, build-module): Use that instead of generating every time.
1781 ($(common-objpfx)libc.so): Depend on it.
1782 (lib%.so rule): Likewise.
1783 (build-module-helper-objlist): Remove %.lds.
1784 (LDSEDCMD-c.so): Variable removed.
1785 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
1786 Depend on $(common-objpfx)shlib.lds.
1787 * dlfcn/Makefile ($(test-modules)): Likewise.
1789 2003-04-26 Roland McGrath <roland@frob.com>
1791 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
1793 2003-04-26 Andreas Schwab <schwab@suse.de>
1795 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
1797 2003-04-25 Ulrich Drepper <drepper@redhat.com>
1799 * nscd/cache.c (cache_search): Keep track of how many chain links
1800 we searched and update table statistics.
1801 (cache_add): Keep track of how many values are in the table.
1802 (prune_cache): Likewise. Keep track of locking success.
1803 Print messages about removed entries in separate pass.
1804 * nscd/connections.c (handle_request): Don't print debug message here.
1805 The caller will do it. Keep track of locking success.
1806 (nscd_run): Print debug message. Also print PID of the client process.
1807 * nscd/nscd.c (start_time): New variable.
1808 (main): Remember start time.
1809 * nscd/nscd.h: Declare start_time.
1810 (struct database): Add more members for new statistics.
1811 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
1814 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
1816 2003-04-22 Jakub Jelinek <jakub@redhat.com>
1818 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
1819 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
1820 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
1822 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
1823 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
1824 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
1825 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
1828 2003-04-24 Ulrich Drepper <drepper@redhat.com>
1830 * nss/getent.c: Implement alternative host database lookup via
1833 * include/ifaddrs.h: New file.
1834 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
1836 * resolv/netdb.h: ...here.
1837 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
1838 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1839 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
1842 2003-04-24 Roland McGrath <roland@redhat.com>
1844 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
1846 2003-04-24 Jakub Jelinek <jakub@redhat.com>
1848 * elf/dl-reloc.c (allocate_static_tls): Rename to...
1849 (_dl_allocate_static_tls): ... this function. No longer static.
1850 (CHECK_STATIC_TLS): Adjust.
1851 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
1852 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
1853 Add SYM_MAP argument.
1854 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
1855 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
1856 TLS relocs here. #ifdef out relocs which never appear in
1857 .gnu.conflict section from dl-conflict.c processing.
1858 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1859 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
1861 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
1862 out relocs which never appear in .gnu.conflict section from
1863 dl-conflict.c processing.
1864 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1865 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1866 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1867 Use r_type in RESOLVE macro.
1869 2003-04-23 Ulrich Drepper <drepper@redhat.com>
1871 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
1872 NULL. Remove code made redundant by this assumption.
1873 (__yp_unbind): Add call to free. Adjust all callers.
1875 * nis/ypclnt.c (yp_all): Free the dom_binding object after
1878 * grp/initgroups.c (getgrouplist): Don't copy too much into the
1879 user buffer if more groups are found than fit into it.
1881 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
1884 2003-04-23 Jakub Jelinek <jakub@redhat.com>
1886 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
1887 not rc == errno. Use extend_alloca.
1889 * elf/tst-tls12.c (main): Fix declaration.
1890 * elf/tst-tls10.c (dummy): Make hidden instead of static.
1891 * elf/tst-tlsmod7.c (dummy): Likewise.
1892 * elf/tst-tlsmod8.c (dummy): Likewise.
1893 * elf/tst-tlsmod9.c (dummy): Likewise.
1895 2003-04-22 Roland McGrath <roland@redhat.com>
1897 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
1898 (open_not_cancel): Make last argument non-optional.
1899 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
1900 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1901 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1903 * include/tls.h: Protect against multiple inclusion.
1905 2003-04-22 Ulrich Drepper <drepper@redhat.com>
1907 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
1908 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
1909 open_socket. Not static anymore.
1910 (nscd_gethst_r): Use __nscd_open_socket.
1911 * nscd/nscd_getgr_r.c (open_socket): Removed.
1912 (nscd_getgr_r): Use __nscd_open_socket.
1913 * nscd/nscd_getpw_r.c (open_socket): Removed.
1914 (nscd_getpw_r): Use __nscd_open_socket.
1916 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
1917 * nscd/connections.c (handle_request): Add cast to avoid warning.
1919 2003-04-21 Ulrich Drepper <drepper@redhat.com>
1921 * signal/sigfillset.c: Moved to...
1922 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
1923 do not set the corresponding bit.
1925 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
1927 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
1928 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
1929 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
1930 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
1931 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
1933 2003-04-20 Ulrich Drepper <drepper@redhat.com>
1935 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
1936 first syscall parameter to const char*.
1938 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1940 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
1942 * configure.in: Add AC_PROG_CXX.
1943 * config.make.in (CXX): Define.
1945 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
1946 __len to size_t to avoid warnings.
1948 2003-04-18 Jes Sorensen <jes@wildopensource.com>
1950 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
1952 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1954 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1956 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
1957 UNREGISTER_ATFORK if d == NULL.
1959 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
1960 * dirent/dirent.h: Likewise.
1961 * dlfcn/dlfcn.h: Likewise.
1962 * grp/grp.h: Likewise.
1963 * iconv/iconv.h: Likewise.
1964 * io/fcntl.h: Likewise.
1965 * io/ftw.h: Likewise.
1966 * libio/stdio.h: Likewise.
1967 * misc/sys/mman.h: Likewise.
1968 * misc/sys/select.h: Likewise.
1969 * misc/sys/syslog.h: Likewise.
1970 * misc/sys/uio.h: Likewise.
1971 * posix/spawn.h: Likewise.
1972 * posix/unistd.h: Likewise.
1973 * posix/sys/wait.h: Likewise.
1974 * pwd/pwd.h: Likewise.
1975 * resolv/netdb.h: Likewise.
1976 * rt/aio.h: Likewise.
1977 * shadow/shadow.h: Likewise.
1978 * signal/signal.h: Likewise.
1979 * socket/sys/socket.h: Likewise.
1980 * stdlib/stdlib.h: Likewise.
1981 * streams/stropts.h: Likewise.
1982 * string/string.h: Likewise.
1983 * sysdeps/gnu/utmpx.h: Likewise.
1984 * sysvipc/sys/msg.h: Likewise.
1985 * termios/termios.h: Likewise.
1986 * time/time.h: Likewise.
1987 * wcsmbs/wchar.h: Likewise.
1988 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
1990 * misc/daemon.c: Likewise.
1991 * sysdeps/generic/backtracesymsfd.c: Likewise.
1992 * sysdeps/generic/check_fds.c: Likewise.
1993 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1994 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
1995 * sysdeps/generic/not-cancel.h: New file.
1996 * csu/Makefile (distribute): Add not-cancel.h.
1997 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
1998 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
1999 for assert.c and assert-perr.c to include <fatal-prepare.h>.
2000 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
2002 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
2003 errno and unlink first.
2005 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
2007 2003-04-18 Ulrich Drepper <drepper@redhat.com>
2009 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
2010 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
2012 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2014 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
2016 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
2017 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
2020 * signal/Makefile (tests): Add tst-sigsimple.
2021 * signal/tst-sigsimple.c: New file.
2023 2003-04-16 Jakub Jelinek <jakub@redhat.com>
2025 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
2027 (tests): Add tst-tls1[0-2].
2028 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
2029 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
2030 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
2031 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
2032 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
2033 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
2034 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
2035 * elf/tst-tls10.c: New test.
2036 * elf/tst-tls11.c: New test.
2037 * elf/tst-tls12.c: New test.
2038 * elf/tst-tls10.h: New file.
2039 * elf/tst-tlsmod7.c: New file.
2040 * elf/tst-tlsmod8.c: New file.
2041 * elf/tst-tlsmod9.c: New file.
2042 * elf/tst-tlsmod10.c: New file.
2043 * elf/tst-tlsmod11.c: New file.
2044 * elf/tst-tlsmod12.c: New file.
2046 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2048 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
2049 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
2050 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
2052 2003-04-17 Ulrich Drepper <drepper@redhat.com>
2054 * posix/regex.h: Include <sys/types.h>.
2056 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
2057 The signal number must be checked.
2058 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
2059 The signal number must be checked [PR libc/5004].
2061 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
2062 don't do anything fancy.
2064 * sysdeps/generic/bits/libc-lock.h: Define
2065 __rtld_lock_define_initialized_recursive.
2067 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
2068 contacting nscd if NOT_USENSCD_NAME > 0.
2069 * nss/nsswitch.c (__nss_disable_nscd): New function.
2070 * nss/nsswitch.h: Declare it.
2071 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
2072 * nscd/nscd.c (main): Call __nss_disable_nscd.
2074 2003-04-16 Ulrich Drepper <drepper@redhat.com>
2076 * stdio-common/perror.c (perror): We don't need to set the offset
2077 to _IO_pos_bad, this is how streams are initialized.
2079 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
2080 (time_output): If necessary, allocate new buffer for .name string if
2081 padding is required.
2083 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
2084 before copying. This might leave holes in the list. Adjust
2085 pointers if necessary.
2086 (netlink_receive): Allocate only one block.
2087 (free_netlink_handle): Adjust appropriately.
2088 (getifaddrs): Lots of cleanups.
2090 * string/test-strncpy.c (do_one_test): Mark start and stop as
2092 * string/test-memchr.c: Likewise.
2093 * string/test-memcmp.c: Likewise.
2094 * string/test-memcpy.c: Likewise.
2095 * string/test-memmove.c: Likewise.
2096 * string/test-memset.c: Likewise.
2097 * string/test-strcat.c: Likewise.
2098 * string/test-strchr.c: Likewise.
2099 * string/test-strcmp.c: Likewise.
2100 * string/test-strcpy.c: Likewise.
2101 * string/test-strlen.c: Likewise.
2102 * string/test-strncmp.c: Likewise.
2103 * string/test-strpbrk.c: Likewise.
2104 * string/test-strrchr.c: Likewise.
2105 * string/test-strspn.c: Likewise.
2107 2003-04-15 Roland McGrath <roland@redhat.com>
2109 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
2111 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
2112 INTUSE(__register_frame_info_bases).
2114 2003-04-15 Ulrich Drepper <drepper@redhat.com>
2116 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
2117 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
2118 AT_SYSINFO_EH_FRAME. Adjust string width.
2119 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
2120 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
2121 Add _dl_sysinfo_eh_frame field.
2122 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
2123 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
2125 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
2126 if _dl_sysinfo_eh_frame is non-NULL.
2128 * Makeconfig (gnulib): Add -lgcc_eh.
2130 * config.h.in: Define HAVE_FORCED_UNWIND.
2132 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2134 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
2135 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
2137 2003-04-15 Jakub Jelinek <jakub@redhat.com>
2139 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
2140 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
2141 against local symbol in conflict processing.
2143 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
2145 * sysdeps/powerpc/bits/atomic.h
2146 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
2147 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
2149 (__arch_compare_and_exchange_val_32_acq): Define.
2150 (atomic_compare_and_exchange_val_acq): Define.
2152 2003-04-15 Ulrich Drepper <drepper@redhat.com>
2154 * include/atomic.h: Pretty printing.
2156 2003-04-14 Ulrich Drepper <drepper@redhat.com>
2158 * stdio-common/vfscanf.c: Add casts to avoid warnings.
2160 2003-04-14 Jakub Jelinek <jakub@redhat.com>
2162 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
2163 * sysdeps/x86_64/bits/atomic.h: Likewise.
2165 2003-04-14 Ulrich Drepper <drepper@redhat.com>
2167 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
2168 POPARGS_1 to emit labels for the mov instructions.
2170 2003-04-14 Jakub Jelinek <jakub@redhat.com>
2172 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
2174 2003-04-14 Roland McGrath <roland@redhat.com>
2176 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
2179 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
2181 2003-04-14 Ulrich Drepper <drepper@redhat.com>
2183 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
2184 position. Reported by jreiser@BitWagon.com.
2186 2003-04-13 Ulrich Drepper <drepper@redhat.com>
2188 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
2189 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2190 * sysdeps/generic/unwind-dw2.c: Likewise.
2191 * sysdeps/generic/unwind-pe.h: Likewise.
2193 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
2195 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
2196 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
2197 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
2198 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
2199 (mcontext_t): Make it match the 32-bit mips kernel in o32.
2200 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
2201 the mips and mips64 headers.
2202 (struct user): Port to n32/n64.
2204 2003-04-12 Ulrich Drepper <drepper@redhat.com>
2206 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
2209 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
2210 __ASSUME_VSYSCALL is defined don't add restorer.
2211 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2212 __ASSUME_VSYSCALL for 2.5.53.
2214 2003-04-11 Ulrich Drepper <drepper@redhat.com>
2216 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
2217 Remove HAVE_CANCELBUF code. Replace with code using the new
2218 initializers for unwind-based cleanup handling.
2219 * sysdeps/generic/unwind.h: Update from latest gcc version.
2220 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
2221 places to allow unwind data generation.
2222 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
2223 * sysdeps/x86_64/bits/setjmp.h: Likewise.
2224 * sysdeps/sh/bits/setjmp.h: Likewise.
2225 * sysdeps/powerpc/bits/setjmp.h: Likewise.
2226 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
2227 * sysdeps/alpha/bits/setjmp.h: Likewise.
2229 2003-04-11 Roland McGrath <roland@redhat.com>
2231 * csu/tst-empty.c: New file.
2232 * csu/Makefile (tests, tests-static): Add it.
2234 2003-04-11 Jakub Jelinek <jakub@redhat.com>
2236 * string/test-strcmp.c (do_random_tests): Test whether return value
2237 has been promoted to wordsize if the ABI requires caller to do so.
2238 * string/test-strncmp.c (do_random_tests): Likewise.
2239 * string/test-memcmp.c (do_random_tests): Likewise.
2241 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
2244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
2245 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
2246 is not defined, but the prctl constants are.
2248 * string/tester.c (test_strcmp): Fix a typo.
2250 2003-04-09 Ulrich Drepper <drepper@redhat.com>
2252 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
2253 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2255 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
2257 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
2259 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
2261 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
2263 * sysdeps/mips/mips64/memset.S: Likewise.
2264 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
2265 Use t0 instead of t4 as temporary.
2267 2003-04-07 Ulrich Drepper <drepper@redhat.com>
2269 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
2270 feof_unlocked instead of feof.
2271 (add_dir): Ignore trailing whitespace.
2273 2003-04-07 Jakub Jelinek <jakub@redhat.com>
2275 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
2276 sum of SIZE1 and SIZE2 arguments.
2278 2003-04-06 Ulrich Drepper <drepper@redhat.com>
2280 * iconv/iconv_prog.c (process_block): Don't print message about
2281 invalid input if the -c option is used.
2282 (main): Correctly append IGNORE string for -c option.
2284 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2286 * sysdeps/sh/bits/atomic.h: Moved to ...
2287 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
2288 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
2290 (atomic_bit_set, atomic_bit_test_set): Likewise.
2291 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
2293 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2295 2003-04-06 Roland McGrath <roland@redhat.com>
2297 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
2298 restoration as done for setcontext yesterday.
2300 2003-04-06 Jakub Jelinek <jakub@redhat.com>
2302 * elf/rtld.c: Revert 2003-03-14 change.
2303 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
2304 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
2306 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2308 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
2310 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2311 Always initialize *signgamp before returning an error.
2313 2003-04-05 Roland McGrath <roland@redhat.com>
2315 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
2316 below the stack pointer even if switching to the same context we are
2319 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2321 * catgets/gencat.c (read_input_file): Make sure that \n is not
2322 alone on the line before testing for continuation.
2324 * math/test-tgmath.c (compile_test): Initialize c.
2326 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
2328 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
2329 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
2330 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
2332 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
2333 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
2334 structure on n32 as well.
2335 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
2336 data types on n32 and n64.
2338 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2340 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
2343 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
2344 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
2345 instead of __register_atfork.
2347 2003-04-05 Jakub Jelinek <jakub@redhat.com>
2349 * stdio-common/reg-printf.c (__register_printf_function): Calloc
2350 instead of malloc __printf_arginfo_table and __printf_function_table.
2351 Reported by John Reiser <jreiser@BitWagon.com>.
2353 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
2355 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
2356 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
2358 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
2361 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
2363 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
2366 2003-04-03 Roland McGrath <roland@redhat.com>
2368 * configure.in: Fix up use of compilation flags to match the build:
2369 For .s files, $ASFLAGS;
2370 For .S files, $CPPFLAGS $ASFLAGS;
2371 For .c files, $CFLAGS $CPPFLAGS;
2372 when linking, add $LDFLAGS.
2373 * configure: Regenerated.
2375 2003-04-03 Jakub Jelinek <jakub@redhat.com>
2377 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
2378 for atomic_compare_and_exchange_bool_acq failure.
2380 2003-04-03 Ulrich Drepper <drepper@redhat.com>
2382 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
2383 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
2384 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
2385 Remove declaration of pthread_atfork.
2387 2003-04-02 Ulrich Drepper <drepper@redhat.com>
2389 * locale/iso-639.def: Add many more languages from the current ISO 639.
2391 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
2392 * sysdeps/generic/semtimedop.c: New file.
2393 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
2394 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
2395 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2396 * sysvipc/Makefile (routines): Add semtimedop.
2397 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
2398 * sysvipc/sys/sem.h: Declare semtimedop.
2400 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
2402 * configure.in: Check for __register_frame_info in both
2404 * configure: Regenerated.
2406 2003-04-01 Roland McGrath <roland@redhat.com>
2408 * scripts/abilist.awk: Allow dots in soname suffix.
2410 * scripts/abilist.awk (emit): Fix bailout condition.
2412 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2414 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
2417 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
2418 register as input to asm.
2420 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2422 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
2424 2003-04-01 Andreas Jaeger <aj@suse.de>
2426 * configure.in: Output as/ld as name if version is too old.
2428 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
2430 * configure.in: Don't require an installed C library in the test
2431 for ".set" assembler support.
2433 2003-03-31 Roland McGrath <roland@redhat.com>
2435 * signal/tst-sigset.c: New file.
2436 * signal/Makefile (tests): Add it.
2438 2003-03-31 Ulrich Drepper <drepper@redhat.com>
2440 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
2441 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
2442 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
2443 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
2444 (__SIGRTMAX): Adjust accordingly.
2445 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
2446 second compatibility symbol set.
2447 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
2449 2003-03-31 Andreas Schwab <schwab@suse.de>
2451 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
2453 (atomic_decrement_and_test): Fix test.
2455 2003-03-31 Jakub Jelinek <jakub@redhat.com>
2457 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
2458 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
2459 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
2460 * sysdeps/sparc/sparc32/atomicity.h: Removed.
2461 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
2462 * sysdeps/sparc/sparc64/atomicity.h: Removed.
2464 2003-03-30 Roland McGrath <roland@redhat.com>
2466 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
2468 * intl/po2test.sed: Anchor substitution regexps to fix last change.
2470 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
2472 * intl/po2test.sed: Unify the transformations for msgid and msgstr
2473 and remove a useless s/// command.
2475 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2477 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
2478 directive into empty .prologue region to ensure that call-chain
2479 is terminated even for the first instruction.
2481 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
2482 to terminate call-chain right from the get-go.
2484 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
2485 stop bit between compare & branch.
2487 2003-03-29 Ulrich Drepper <drepper@redhat.com>
2489 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
2490 point correctly [PR libc/4993].
2492 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
2493 netlink_open calls if netlink is known to not be available.
2495 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
2497 * configure.in: Add mips64* support.
2498 * sysdeps/mips/bits/endian.h: Make it bi-endian.
2499 * sysdeps/mips/mipsel/bits/endian.h: Removed.
2500 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
2501 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
2502 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
2503 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
2504 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
2505 * sysdeps/mips/Implies: Moved wordsize-32 to...
2506 * sysdeps/mips/mips32/Implies: New file.
2507 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
2509 (ret, PSEUDO_END): Moved past END.
2510 (PSEUDO): Moved to...
2511 * sysdeps/unix/mips/mips32/sysdep.h: New file.
2512 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
2513 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
2514 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
2515 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
2516 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
2518 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
2521 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
2523 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
2524 * inet/test-ifaddrs.c: Allow AF_PACKET.
2525 * sysdeps/unix/sysv/linux/kernel-features.h: Add
2526 __ASSUME_NETLINK_SUPPORT.
2528 2003-03-28 Ulrich Drepper <drepper@redhat.com>
2530 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
2532 2003-03-26 H.J. Lu <hjl@gnu.org>
2534 * elf/vismod.h (getvarlocal1): Return const char **.
2535 (getvarinmod1): Likewise.
2536 (getvaritcpt1): Likewise.
2537 (getvarlocal2): Likewise.
2538 (getvarinmod2): Likewise.
2539 (getvaritcpt2): Likewise.
2540 (getvaritcpt3): Likewise.
2541 * elf/vismain.c (do_test): Adjusted.
2542 * elf/vismod1.c (getvarlocal1): Return address.
2543 (getvarinmod1): Likewise.
2544 (getvaritcpt1): Likewise.
2545 * elf/vismod2.c (getvarlocal2): Likewise.
2546 (getvarinmod2): Likewise.
2547 (getvaritcpt2): Likewise.
2548 * elf/vismod3.c (getvaritcpt3): Likewise.
2550 2003-03-28 Roland McGrath <roland@redhat.com>
2552 * elf/vismain.c (do_test): Print both addresses when they don't match.
2554 * scripts/abilist.awk: If given -v filename_regexp and/or -v
2555 libname_regexp when parsing names, then produce output only
2556 for those matching the given regexps. In combine mode, save all
2557 stanzas for a final sorting by stanza header at the end.
2558 Emit a blank line between stanzas.
2560 * scripts/abilist.awk: When given -v combine=1, do parse_names and
2561 emit a single output stream with lib name in stanza header lines.
2563 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
2565 2003-03-27 Roland McGrath <roland@redhat.com>
2567 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
2568 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
2570 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2572 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2573 Return old value. Make asm output reg constraint earlyclobber.
2575 (__arch_compare_and_exchange_8_acq): ... this.
2576 (__arch_compare_and_exchange_val_16_acq):
2577 Return old value. Make asm output reg constraint earlyclobber.
2579 (__arch_compare_and_exchange_16_acq): ... this.
2580 (__arch_compare_and_exchange_val_32_acq):
2581 Return old value. Make asm output reg constraint earlyclobber.
2583 (__arch_compare_and_exchange_32_acq): ... this.
2584 (__arch_compare_and_exchange_val_64_acq):
2586 (__arch_compare_and_exchange_64_acq): ... this.
2587 (atomic_exchange_and_add): Use local variables and
2588 __arch_compare_and_exchange_val_64_acq.
2589 (atomic_add): Likewise.
2590 (atomic_add_negative, atomic_add_zero): Use local variables.
2592 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
2594 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
2596 2003-03-27 Ulrich Drepper <drepper@redhat.com>
2598 * Makefile: Remove libmd5crypt goal.
2600 2003-03-25 Jakub Jelinek <jakub@redhat.com>
2602 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
2603 special handling of relocations against local symbols.
2605 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
2607 * sysdeps/powerpc/bits/atomic.h
2608 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
2609 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
2610 Define PPC64 specific version.
2611 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
2612 Change (mem) constraint to "b".
2613 [__powerpc64__] (__arch_atomic_exchange_and add_64):
2614 Replace addi with add. Change (value) contraint to "r".
2615 Change (mem) constraint to "b".
2616 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
2617 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
2618 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
2619 (__arch_atomic_decrement_if_positive_32): New macro.
2620 (atomic_decrement_if_positive): Use __arch* macros.
2622 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2624 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2626 2003-03-27 Roland McGrath <roland@redhat.com>
2628 * scripts/rpm2dynsym.sh: New file.
2629 * Makefile (distribute): Add it.
2631 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2633 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
2634 ar.unat before returning. Add missing .mem.offset directives
2635 to ensure file gets assembled without warnings.
2636 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2638 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2640 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
2641 Return -1 instead of 0 if clock_getres failed.
2643 2003-03-27 Roland McGrath <roland@redhat.com>
2645 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
2646 header lines and write out foo.symlist files for each foo.so.NN listed.
2648 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
2649 This symbol is exported, and we don't want to hide it.
2650 Add libc_hidden_proto instead.
2651 (_IO_file_jumps): Add libc_hidden_proto.
2652 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
2654 * libio/fileops.c (_IO_file_jumps): Likewise.
2655 * libio/stdfiles.c: Don't use INTUSE on them.
2656 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
2657 * libio/iofopen.c (__fopen_internal): Likewise.
2658 * libio/freopen.c (freopen): Likewise.
2659 * libio/freopen64.c (freopen64): Likewise.
2660 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2662 * Makerules (check-abi) [$(enable-check-abi) = warn]:
2663 Ignore exit status from diff.
2664 * configure.in (enable_check_abi): Document possible value "warn".
2665 Change default to no for now.
2666 * configure: Regenerated.
2668 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
2669 macro calls and a #include <stub-tag.h> at the end.
2670 * Makerules ($(objpfx)stubs): Tweak sed commands.
2672 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
2673 caller column for *xattr syscalls, since they are in sysdeps/generic.
2675 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
2676 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
2678 2003-03-26 Roland McGrath <roland@redhat.com>
2680 * Makerules (check-abi-config): Use /thread instead of /tls when
2681 use-thread and not just use-tls is set.
2683 * Makerules (update-abi): Put quotes around $(update-abi-config).
2685 * elf/Makefile (check-abi): Depend on check-abi-ld.
2686 (update-abi): Depend on update-abi-ld.
2688 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2690 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
2691 do not check for errors (unless testing for 32bit variant).
2692 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2694 2003-03-27 Philip Blundell <philb@gnu.org>
2696 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
2697 unconditional mov. Remove nop.
2699 * sysdeps/unix/sysv/linux/kernel-features.h
2700 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
2701 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
2702 when __ASSUME_VFORK_SYSCALL is defined.
2703 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
2704 __ASSUME_MMAP2_SYSCALL.
2705 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
2706 __ASSUME_REALTIME_SIGNALS.
2708 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2710 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
2711 only if DL_NO_COPY_RELOCS is not defined.
2712 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
2714 2003-03-26 Roland McGrath <roland@redhat.com>
2716 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
2717 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
2718 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
2719 (sysdep_routines): Add stub-syscalls.
2720 ($(objpfx)stub-syscalls.c): New target.
2721 (generated): Add stub-syscalls.c.
2723 * tls.make.c: Also define use-tls according to USE_TLS macro.
2725 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2727 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
2728 no-op padding element.
2729 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2730 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2731 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2732 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2734 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2736 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
2737 condition check for the return value of getgroups32.
2739 2003-03-26 Jakub Jelinek <jakub@redhat.com>
2741 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
2743 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
2744 PSEUDO_END_NOERRNO): Define.
2745 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
2746 Define to PSEUDO_END.
2748 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2750 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
2752 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
2754 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
2755 * iconvdata/bug-iconv4.c: New file.
2756 * iconvdata/Makefile (tests): Add bug-iconv4.
2758 2003-03-25 H.J. Lu <hjl@gnu.org>
2760 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
2762 (_dl_lookup_versioned_symbol): Likewise.
2764 2003-03-26 Jakub Jelinek <jakub@redhat.com>
2766 * csu/tst-atomic.c (do_test): Add some new
2767 atomic_compare_and_exchange_val_acq, atomic_add_zero,
2768 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
2769 * include/atomic.h (atomic_add_negative, atomic_add_zero):
2770 Prefix local variable so that it doesn't clash with the one
2771 in atomic_exchange_and_add.
2772 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
2774 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
2775 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
2776 value into register.
2777 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
2778 Cast newval to long.
2779 * sysdeps/x86_64/bits/atomic.h
2780 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
2782 (atomic_exchange): Cast newvalue to long if sizeof == 8.
2783 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
2784 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2785 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
2787 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
2789 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
2790 bit from backtrace addresses.
2792 2003-03-21 Andreas Schwab <schwab@suse.de>
2794 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
2797 2003-03-25 Roland McGrath <roland@redhat.com>
2799 * config.make.in (enable-check-abi): New variable from configure.
2800 * configure.in (enable_check_abi): New substituted variable,
2801 controlled by --{enable,disable}-check-abi (default yes).
2802 * configure: Regenerated.
2803 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
2804 on check-abi dependency.
2806 2003-03-26 Andreas Schwab <schwab@suse.de>
2808 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
2809 * include/atomic.h: Likewise.
2811 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
2813 2003-03-25 Roland McGrath <roland@redhat.com>
2815 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
2816 (__arch_atomic_exchange_64): New macro.
2817 (atomic_exchange): Use them.
2818 (__arch_atomic_exchange_and_add_32): New macro.
2819 (__arch_atomic_exchange_and_add_64): New macro.
2820 (atomic_exchange_and_add): Use them.
2821 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
2823 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
2825 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
2827 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
2829 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
2830 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
2831 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2832 to decide whether to add padding.
2833 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2834 to decide whether to add padding.
2835 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
2836 old_kernel_sigaction): Likewise.
2838 2003-03-25 Ulrich Drepper <drepper@redhat.com>
2840 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
2841 atomic_add_zero were supposed to do.
2842 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
2845 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
2846 This matches the new timer implementation.
2847 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
2849 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
2851 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
2852 timer info for what the kernel provides these days.
2853 (struct sigevent): Add _tid field.
2854 Define SIGEV_THREAD_ID.
2855 Remove struct __pthread_attr_s forward declaration.
2856 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
2857 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2858 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2859 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2861 * Versions.def (librt): Add GLIBC_2.3.3.
2863 * abilist/libpthread.abilist: Update for nptl.
2865 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
2867 * inet/netinet/in.h: Add IPPROTO_SCTP.
2869 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2871 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
2873 2003-03-24 Philip Blundell <philb@gnu.org>
2875 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
2876 Remove a1 from clobber list.
2878 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2880 * timezone/antarctica: Update from tzdata2003a.
2881 * timezone/asia: Likewise.
2882 * timezone/australasia: Likewise.
2883 * timezone/europe: Likewise.
2884 * timezone/iso3166.tab: Likewise.
2885 * timezone/northamerica: Likewise.
2886 * timezone/southamerica: Likewise.
2887 * timezone/zone.tab: Likewise.
2889 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
2891 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
2893 2003-03-23 Ulrich Drepper <drepper@redhat.com>
2895 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
2896 unwanted expansion by definining to ret. Patch by Ian Wienand.
2898 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
2899 the parameter description to denote no error checking. Generate
2900 appropriate pseudo asm code.
2901 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
2902 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
2903 getpgrp, and getppid with 'E'.
2904 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
2905 PSEUDO_END_NOERRNO, and ret_NOERRNO.
2906 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
2907 * sysdeps/unix/sysdep.h: Likewise.
2908 * sysdeps/unix/alpha/sysdep.h: Likewise.
2909 * sysdeps/unix/sparc/sysdep.h: Likewise.
2910 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
2911 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
2912 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
2913 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2914 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2915 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2916 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2917 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2918 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2919 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2920 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2922 2003-03-23 Roland McGrath <roland@redhat.com>
2924 * Makeconfig (+includes): Don't use $(last-includes).
2926 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
2928 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
2929 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2931 2003-03-23 Jakub Jelinek <jakub@redhat.com>
2933 * sysdeps/alpha/fpu/libm-test-ulps: Update.
2934 * sysdeps/arm/libm-test-ulps: Update.
2935 * sysdeps/hppa/fpu/libm-test-ulps: Update.
2936 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2937 * sysdeps/mips/fpu/libm-test-ulps: Update.
2938 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2939 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2940 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2941 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2942 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
2943 * sysdeps/s390/fpu/libm-test-ulps: Update.
2944 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2946 2003-03-22 Roland McGrath <roland@redhat.com>
2948 * include/atomic.h: Put parens around all macro arguments.
2949 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
2950 (atomic_compare_and_exchange_val_acq): Use it.
2951 (atomic_compare_and_exchange_bool_acq): Likewise.
2952 (atomic_increment_and_test): Invert sense of test.
2953 (atomic_decrement_and_test): Likewise.
2954 * csu/tst-atomic.c: Update those tests to match.
2956 2003-03-22 Jakub Jelinek <jakub@redhat.com>
2958 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
2959 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
2960 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
2961 __oldval variable in the macro, since it might be macro argument.
2962 (atomic_decrement_if_positive): Initialize __memp, remove setting
2963 of non-existent variable.
2964 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
2965 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
2966 using atomic_compare_and_exchange_val_acq.
2967 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
2968 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2970 (__arch_compare_and_exchange_bool_8_acq): ... this.
2971 (__arch_compare_and_exchange_val_16_acq): Renamed from...
2972 (__arch_compare_and_exchange_bool_16_acq): ... this.
2973 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
2975 (__arch_compare_and_exchange_bool_32_acq): ... this.
2976 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
2978 (__arch_compare_and_exchange_bool_64_acq): ... this.
2979 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
2980 variables types instead of assuming int.
2981 Change prefix of local variables to __arch.
2982 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
2984 (atomic_compare_and_exchange_val_acq,
2985 atomic_compare_and_exchange_bool_acq): Define.
2987 * csu/tst-atomic.c: New test.
2988 * csu/tst-atomic-long.c: New test.
2989 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
2991 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
2993 * sysdeps/s390/Versions: Add trailing newline.
2995 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
2996 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
2998 2003-03-22 Andreas Schwab <schwab@suse.de>
3000 * sysdeps/m68k/fpu/libm-test-ulps: Update.
3002 * sysdeps/m68k/m68020/bits/atomic.h: New file.
3003 * sysdeps/m68k/m68020/atomicity.h: Removed.
3005 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
3007 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
3008 data structures and macros. Protect from multiple inclusion.
3010 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
3013 2003-03-21 Andreas Jaeger <aj@suse.de>
3015 * sysdeps/i386/fpu/libm-test-ulps: Update.
3017 * math/libm-test.inc (tgamma_test): Recompute some constants with
3018 36 digits precision.
3019 (lgamma_test): Likewise.
3020 (ccos_test): Likewise.
3021 (ccosh_test): Likewise.
3022 (clog10_test): Likewise.
3023 (csin_test): Likewise.
3024 (csinh_test): Likewise.
3025 (ctan_test): Likewise.
3026 (ctanh_test): Likewise.
3028 2003-03-19 Jakub Jelinek <jakub@redhat.com>
3030 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
3032 2003-03-21 Roland McGrath <roland@redhat.com>
3034 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
3035 constraint to permit non-constant BIT argument.
3036 (atomic_bit_test_set): Likewise.
3037 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
3038 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
3039 For quadword case, use "i" constraint if __builtin_constant_p and < 32
3040 or "r" constraint otherwise.
3042 * configure.in: Move AC_PROG_CC and other program-finding before all
3044 * configure: Regenerated.
3046 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3048 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
3049 unaligned copying of 8-15 bytes. From Chris Demetriou
3050 <cgd@broadcom.com>. Fix label names.
3051 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
3052 change as to memcpy.S.
3053 * sysdeps/mips/memcpy.S: Formatting changes.
3054 * sysdeps/mips/memset.S: Likewise.
3056 2003-03-21 Roland McGrath <roland@redhat.com>
3058 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
3060 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
3062 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
3063 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
3065 2003-03-21 Roland McGrath <roland@redhat.com>
3067 * sysdeps/i386/i486/bits/atomic.h
3068 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
3069 version of the macro to avoid compile-time warnings.
3070 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
3071 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
3072 (atomic_increment, atomic_decrement): Likewise.
3074 2003-03-21 Ulrich Drepper <drepper@redhat.com>
3076 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
3077 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3079 2003-03-21 Roland McGrath <roland@redhat.com>
3081 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
3083 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3085 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
3086 atomic_compare_and_exchange_val_rel,
3087 atomic_compare_and_exchange_bool_acq, and
3088 atomic_compare_and_exchange_bool_rel instead of
3089 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
3090 * sysdeps/i386/i486/bits/atomic.h: Define
3091 __arch_compare_and_exchange_val_*_acq instead of
3092 __arch_compare_and_exchange_*_acq.
3093 * sysdeps/x86_64/bits/atomic.h: Likewise.
3094 * sysdeps/ia64/bits/atomic.h: Define
3095 __arch_compare_and_exchange_bool_*_acq instead of
3096 __arch_compare_and_exchange_*_acq.
3097 * sysdeps/powerpc/bits/atomic.h: Likewise.
3098 * sysdeps/s390/bits/atomic.h: Likewise.
3099 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
3100 * malloc/set-freeres.c: Likewise.
3101 * nscd/cache.c: Likewise.
3102 * stdlib/cxa_finalize.c: Likewise.
3103 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3105 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3107 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
3108 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
3109 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
3111 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
3112 into high and low halves on n64.
3113 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3114 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3115 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3117 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3119 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
3120 correct atomic_compare_and_exchange_acq semantics.
3122 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3124 * sysdeps/mips/ieee754.h: Remove excess #endif.
3126 2003-03-20 Roland McGrath <roland@redhat.com>
3128 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
3129 variable. Remove superfluous memory clobber.
3131 * include/atomic.h: Syntax braino fix.
3133 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
3134 in decimal. Don't bail if niced at start. Just check that nice call
3135 bumps the total at all.
3137 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3139 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
3140 including pc, gp, sp and fp, as long long.
3141 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
3142 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
3143 Add gp argument, and set gp in the jmpbuf to it.
3144 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
3146 2003-03-20 Ulrich Drepper <drepper@redhat.com>
3148 * include/atomic.h: Define atomic_exchange and
3149 atomic_decrement_if_positive if not already defined. Add some
3151 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
3152 * sysdeps/x86_64/bits/atomic.h: Likewise.
3153 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
3154 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
3155 atomic_exchange, atomic_exchange_and_add, and
3156 atomic_decrement_if_positive
3158 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
3160 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
3161 with a single instruction.
3163 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
3165 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
3167 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
3168 Word before comparing with gotsym. Take reloc_addr argument as
3169 void*. Remove the code added for the compiler to drop any
3170 alignment assumptions.
3172 2003-03-19 Ulrich Drepper <drepper@redhat.com>
3174 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
3175 * include/atomic.h: New file.
3176 * sysdeps/i386/i486/bits/atomic.h: New file.
3177 * sysdeps/x86_64/bits/atomic.h: New file.
3178 * sysdeps/s390/bits/atomic.h: New file.
3179 * sysdeps/sh/bits/atomic.h: New file.
3180 * sysdeps/ia64/bits/atomic.h: New file.
3181 * sysdeps/powerpc/bits/atomic.h: New file.
3182 * sysdeps/generic/bits/atomic.h: New file.
3183 * sysdeps/i386/i486/atomicity.h: Removed.
3184 * sysdeps/x86_64/atomicity.h: Removed.
3185 * sysdeps/s390/s390-32/atomicity.h: Removed.
3186 * sysdeps/s390/s390-64/atomicity.h: Removed.
3187 * sysdeps/ia64/atomicity.h: Removed.
3188 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
3189 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
3190 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
3191 use of macros from atomicity.h to new names and semantics.
3192 * gmon_mcount.c: Likewise.
3193 * malloc/set-freeres.c: Likewise.
3194 * nscd/cache.c: Likewise.
3195 * stdlib/cxa_finalize.c: Likewise.
3196 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3198 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
3200 * sysdeps/mips/ieee754.h: New file, suitable to replace both
3201 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
3202 mips-specific for now.
3204 2003-03-19 Ulrich Drepper <drepper@redhat.com>
3206 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
3207 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
3208 * stdlib/tst-strtod.c: Add test for the bug.
3210 * posix/tst-nice.c (do_test): Remove invalid of return value.
3211 Don't run test if initial level != 0.
3213 2003-03-19 Amos Waterland <apw@us.ibm.com>
3215 * posix/tst-nice.c: New file.
3216 * posix/Makefile (tests): Add tst-nice.
3218 2003-03-18 Roland McGrath <roland@redhat.com>
3220 * abilist: New directory of libfoo.abilist files maintained using
3221 scripts/merge-abilist.awk and "make update-abi" rules.
3222 * Makefile (distribute): Add abilist/*.abilist.
3223 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
3224 Depend on check-abi.
3226 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
3227 * configure: Regenerated.
3229 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
3231 2003-03-18 Ulrich Drepper <drepper@redhat.com>
3233 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
3236 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
3238 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
3240 2003-03-18 Ulrich Drepper <drepper@redhat.com>
3242 * Versions.def: Add GLIBC_2.3.3 for libpthread.
3244 2003-03-17 Ulrich Drepper <drepper@redhat.com>
3246 * sysdeps/generic/libc-start.c [!SHARED &&
3247 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
3249 2003-03-17 Roland McGrath <roland@redhat.com>
3251 * include/ctype.h: Revert last change.
3253 2003-03-17 Ulrich Drepper <drepper@redhat.com>
3255 * argp/tst-argp1.c: Use test-skeleton.c.
3256 * locale/tst-C-locale.c: Likewise.
3258 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
3260 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
3261 * sysdeps/mips/mips64/n64/Implies: New file.
3262 * sysdeps/mips/mips64/n64/Makefile: New file.
3263 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
3264 * sysdeps/mips/mips64/n32/Implies: New file.
3265 * sysdeps/mips/mips64/n32/Makefile: New file.
3266 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
3267 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
3268 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
3269 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
3270 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
3271 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
3272 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
3273 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
3274 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
3275 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
3276 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
3277 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
3278 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
3279 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
3281 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
3282 lib64 for mips64/n64 and lib32 for mips64/n32.
3283 (ldd_rewrite_script): Needed for all mips64 configurations.
3284 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3285 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
3286 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
3288 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
3291 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
3292 asm/unistd.h into asm-unistd.h.
3293 * sysdeps/unix/sysv/linux/mips/configure: Generated.
3294 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
3296 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
3297 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
3300 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
3301 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
3302 long type for registers on n32.
3304 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
3306 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
3307 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
3308 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
3309 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
3310 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
3311 * sysdeps/unix/mips/brk.S: Likewise.
3312 * sysdeps/unix/mips/sysdep.S: Likewise.
3313 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3314 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
3315 * sysdeps/mips/sys/ucontext.h: Likewise.
3316 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
3317 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
3318 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
3319 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3320 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
3321 * sysdeps/mips/mips64/setjmp.S: Likewise.
3322 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
3323 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
3326 2003-03-16 Ulrich Drepper <drepper@redhat.com>
3328 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
3329 not at function level.
3330 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
3332 2003-03-15 Roland McGrath <roland@redhat.com>
3334 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
3335 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3336 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
3337 * nis/nis_table.c (__create_ib_request): Likewise.
3339 * posix/fnmatch_loop.c: Add casts for signedness.
3340 * nss/nss_files/files-hosts.c: Likewise.
3341 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3342 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
3343 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
3345 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
3346 get errors into the log file.
3347 (libc_cv_broken_visibility_attribute): Likewise.
3348 (libc_cv_broken_alias_attribute): Likewise.
3349 (libc_cv_asm_weak_directive): Likewise.
3350 (libc_cv_need_minus_P): Likewise.
3351 (libc_cv_dot_text): Likewise.
3352 (libc_cv_asm_global_directive): Likewise.
3353 (libc_cv_asm_type_prefix): Likewise.
3354 * configure: Regenerated.
3356 * nscd/cache.c (cache_search): Give first arg type `request_type'.
3357 * nscd/nscd.h: Update decl.
3359 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
3360 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3361 * elf/dl-close.c (_dl_close): Likewise.
3362 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
3363 * io/fts.c (fts_build): Likewise.
3364 * elf/cache.c (add_to_cache): Likewise.
3365 * locale/programs/locarchive.c (show_archive_content): Likewise.
3367 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
3369 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
3371 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
3373 2003-03-15 Ulrich Drepper <drepper@redhat.com>
3375 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
3376 code for most parts.
3378 2003-03-15 Roland McGrath <roland@redhat.com>
3380 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
3381 * sysdeps/unix/sysv/linux/system.c: ... here.
3382 (FORK): Don't #define if already #define'd.
3383 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
3384 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
3385 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
3387 * dlfcn/tst-dlinfo.c: New file.
3388 * dlfcn/Makefile (tests): Add tst-dlinfo.
3389 ($(objpfx)tst-dlinfo): New target.
3391 * dlfcn/dlinfo.c: New file.
3392 * dlfcn/Makefile (libdl-routines): Add it.
3393 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
3394 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
3395 [__USE_GNU] (RTLD_DI_*): New enum constants.
3396 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
3397 * elf/dl-load.c (cache_rpath): New inline function.
3398 (_dl_map_object): Use it.
3399 (_dl_rtld_di_serinfo): New function.
3400 * sysdeps/generic/ldsodefs.h: Declare it.
3401 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
3403 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
3404 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
3405 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
3406 (__libc_start_main): Just call the generic one for most of the work.
3408 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
3409 static function by that name instead of BP_SYM (__libc_start_main).
3410 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
3411 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
3412 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
3414 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
3415 Use this macro for extra AT_* cases.
3416 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
3417 New macro, guts from ...
3418 (__aux_init_cache): ... here, function removed.
3419 (DL_PLATFORM_INIT): Don't define this.
3421 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
3422 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
3424 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
3426 2003-03-14 Roland McGrath <roland@redhat.com>
3428 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
3430 2003-03-14 Jakub Jelinek <jakub@redhat.com>
3432 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
3434 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3435 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
3437 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3439 * sysdeps/mips/fpu/bits/mathdef.h: New.
3440 (__NO_LONG_DOUBLE_MATH): Define for o32.
3442 * sysdeps/mips/sys/asm.h: Formatting changes.
3443 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
3444 (CPADD): Define for all of them.
3445 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
3446 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
3447 NARGSAVE): Define per ABI spec.
3448 (END): Don't redefine.
3449 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
3450 LONG_SRAV): Remove duplicate definitions.
3451 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
3452 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
3453 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
3454 (PTR_LA): Define for all 3 ABIs.
3456 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
3457 (elf_machine_matches_host): Prevent linking of o32 and n32
3459 (elf_machine_dynamic): Document assumption on $gp.
3460 (STRINGXP, STRINGXV, STRINGV_): New macros.
3461 (elf_machine_load_address): Use them to stringize PTR_LA and
3463 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
3464 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
3465 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
3466 (__dl_runtime_resolve): Cast the symtab initializer to the
3468 (RTLD_START): Use it. Adjust it for all 3 ABIs.
3469 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
3470 Handle 64-bit R_MIPS_REL composite relocation and accept
3471 R_MIPS_64 relocations to shift addend size to 64 bits.
3472 Document assumption regarding local GOT entries. Document
3473 backward-compatibility departing from the ABI behavior in
3474 applying relocations that reference section symbols, no longer
3475 used. Support relocations to mis-aligned offsets.
3476 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
3478 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
3480 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
3481 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
3482 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
3483 restore_rt functions. Use them.
3485 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
3486 .set mips2 on new abis.
3488 2003-03-13 Ulrich Drepper <drepper@redhat.com>
3490 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
3491 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
3492 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
3493 * sysdeps/posix/pathconf.c: Likewise.
3494 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3495 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3496 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
3498 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
3501 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3503 * include/gmp.h: Include/gmp-mparam.h.
3504 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
3507 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
3508 ELF_MACHINE_NO_RELA is set.
3509 * elf/rtld.c (dl_main): No prelink support for REL-only.
3511 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
3512 FLAG_MIPS64_LIBN64): Define.
3513 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
3515 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
3516 * sysdeps/mips/memset.S: Likewise.
3517 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
3518 depending on the ABI.
3520 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
3521 Don't .set mips2 on new abi.
3522 (compare_and_swap): Likewise. Support 64-bit longs on n64.
3524 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
3526 2003-03-13 Roland McGrath <roland@redhat.com>
3528 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
3529 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
3531 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
3533 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
3535 * stdlib/fpioconst.c: Likewise.
3536 * stdlib/strtod.c: Likewise.
3538 * sysdeps/mips/add_n.S: Use L macro for local labels.
3539 * sysdeps/mips/addmul_1.S: Likewise.
3540 * sysdeps/mips/lshift.S: Likewise.
3541 * sysdeps/mips/memcpy.S: Likewise.
3542 * sysdeps/mips/memset.S: Likewise.
3543 * sysdeps/mips/mul_1.S: Likewise.
3544 * sysdeps/mips/rshift.S: Likewise.
3545 * sysdeps/mips/sub_n.S: Likewise.
3546 * sysdeps/mips/submul_1.S: Likewise.
3547 * sysdeps/mips/mips64/add_n.S: Likewise.
3548 * sysdeps/mips/mips64/addmul_1.S: Likewise.
3549 * sysdeps/mips/mips64/lshift.S: Likewise.
3550 * sysdeps/mips/mips64/mul_1.S: Likewise.
3551 * sysdeps/mips/mips64/rshift.S: Likewise.
3552 * sysdeps/mips/mips64/sub_n.S: Likewise.
3553 * sysdeps/mips/mips64/submul_1.S: Likewise.
3554 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
3555 conventions. Define END as in sys/asm.h.
3556 * sysdeps/unix/mips/sysdep.S: Likewise.
3557 * sysdeps/unix/mips/wait.S: Likewise.
3558 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3560 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
3561 Cast shifted values that may be too narrow to mp_limb_t.
3562 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
3564 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
3566 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
3567 (__mpn_extract_long_double): Likewise.
3568 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
3569 (__mpn_construct_long_double): Likewise.
3570 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
3571 (__mpn_extract_long_double): Likewise.
3572 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
3573 (__mpn_construct_long_double): Likewise.
3575 2003-03-13 Roland McGrath <roland@redhat.com>
3577 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
3578 entries in the map file match too.
3580 2003-03-13 Guido Guenther <agx@sigxcpu.org>
3582 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
3583 label .Lthread_start since current binutils don't allow branches
3584 to globally visible symbols.
3586 2003-03-13 Jakub Jelinek <jakub@redhat.com>
3588 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
3589 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
3590 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
3591 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
3592 clobbered by the syscall.
3593 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
3594 ASM_ARGS_6): Change constraints from r to index of corresponding
3596 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
3597 ptid and ctid to match kernel.
3598 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
3600 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
3602 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3603 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
3604 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3606 2003-03-11 Roland McGrath <roland@redhat.com>
3608 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3609 Check SYM_MAP rather than SYM as definedness check.
3610 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
3611 Don't handle R_PPC64_REL24 reloc.
3612 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3614 * sysdeps/powerpc/powerpc64/dl-machine.h
3615 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
3616 block, so we cover all the TPREL16* flavors without 6 ||s.
3617 [USE_TLS] (elf_machine_tprel): New function.
3618 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
3619 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
3620 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3622 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
3624 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
3625 instead of jalr to invoke subroutine so restoring the $gp register
3628 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
3630 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
3631 to __NR_pread if not defined.
3632 (__NR_pwrite64): Define to __NR_pwrite if not defined.
3634 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3636 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
3637 * sysdeps/unix/sysv/linux/kernel-features.h
3638 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
3641 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3643 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
3644 allocate space even for the trailing '/'.
3645 Reported by John Reiser <jreiser@BitWagon.com>.
3647 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
3648 ASM_CLOBBERS_6): Define.
3649 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
3650 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
3651 to match IA-32 order.
3652 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
3654 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
3656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
3657 Copy extra params for NPTL to registers used in clone syscall.
3659 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3661 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
3662 call names for pread and pwrite.
3664 2003-03-10 Roland McGrath <roland@redhat.com>
3666 * dlfcn/Makefile (libdl-routines): Add dladdr1.
3667 * dlfcn/dladdr1.c: New file.
3668 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
3669 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
3670 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
3671 a const ElfNN_Sym ** to fill in.
3672 * include/dlfcn.h: Update decl. Include <link.h>.
3673 * dlfcn/dladdr.c (dladdr): Update caller.
3674 * malloc/mtrace.c (tr_where): Likewise.
3675 * sysdeps/generic/elf/backtracesyms.c: Likewise.
3676 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3677 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
3678 * Versions.def (libdl): Define GLIBC_2.3.3 set.
3680 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
3682 * sysdeps/unix/Makefile (compile-syscall): New variable.
3683 Pass -g0 to compiler for assembling syscall stubs from stdin.
3685 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
3686 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
3687 Define these to do nothing.
3689 * configure.in: New check for -g on .S files.
3690 * configure: Regenerated.
3691 * config.make.in (have-cpp-asm-debuginfo): New variable.
3692 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
3693 * Makeconfig (ASFLAGS): New variable, if undefined and
3694 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
3695 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
3697 2003-03-09 Roland McGrath <roland@redhat.com>
3699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
3700 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
3702 2003-03-09 Ulrich Drepper <drepper@redhat.com>
3704 * po/fi.po: Update from translation team.
3705 * po/ca.po: Likewise.
3706 * po/da.po: Likewise.
3708 2003-03-08 Ulrich Drepper <drepper@redhat.com>
3710 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
3712 2003-03-07 Ulrich Drepper <drepper@redhat.com>
3714 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
3716 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
3718 2003-03-07 Roland McGrath <roland@redhat.com>
3720 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
3721 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
3723 2003-03-04 Guido Guenther <agx@sigxcpu.org>
3725 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
3726 stubs, we have INLINE_SYSCALL.
3727 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
3730 2003-03-06 Roland McGrath <roland@redhat.com>
3732 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
3733 permanent extent and add a comment about testing its implicit teardown.
3735 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3737 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
3739 2003-03-05 Ulrich Drepper <drepper@redhat.com>
3741 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
3742 reversed __builtin_expect expectation.
3744 2003-03-05 Roland McGrath <roland@redhat.com>
3746 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
3747 * libio/swscanf.c: Likewise.
3748 * libio/swprintf.c: Likewise.
3750 2003-03-04 Roland McGrath <roland@redhat.com>
3752 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
3753 (elf_machine_rela): Always use RESOLVE_MAP, needed for
3754 R_PPC64_JMP_SLOT as well as TLS cases.
3755 (BIT_INSERT): Move parenthesis where it ought to have been.
3756 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3758 * posix/confstr.c (confstr): Correct STRING_LEN values for
3759 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
3760 break. Reported by Alexandre Julliard <julliard@winehq.com>.
3762 2003-03-04 Jakub Jelinek <jakub@redhat.com>
3764 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3766 2003-03-04 Ulrich Drepper <drepper@redhat.com>
3768 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
3771 * po/sv.po: Update from translation team.
3773 2003-03-04 Andreas Jaeger <aj@suse.de>
3774 Ulrich Drepper <drepper@redhat.com>
3776 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
3778 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3780 * sysdeps/generic/dl-sysdep.h: Add double include protection.
3782 * po/tr.po: Update from translation team.
3784 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
3785 are holes between the segments. Only call mprotect to set
3786 proection to PROT_NONE if there are some.
3788 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
3791 * include/sched.h (__clone2): Use ... instead of adding all the
3794 2003-03-03 Roland McGrath <roland@redhat.com>
3796 * elf/dl-load.c (struct filebuf): Fix typo in last change.
3798 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
3799 PI_STATIC_AND_HIDDEN.
3801 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
3803 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
3805 * include/sched.h: Update clone2 prototype.
3807 2003-03-03 Andreas Jaeger <aj@suse.de>
3809 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
3810 (llrint): Use it to correct return type.
3813 (llround): Likewise.
3815 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3817 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
3820 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
3821 if ccs parameter isn't valid. Reported by Andreas Schwab.
3823 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3825 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
3826 for system call numbers > 255.
3827 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
3828 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3829 INTERNAL_SYSCALL): Likewise.
3830 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
3831 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
3832 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3833 INTERNAL_SYSCALL): Likewise.
3835 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3837 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
3838 array if it is the initial dtv.
3840 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3842 * po/es.po: Update from translation team.
3843 * po/fr.po: Likewise.
3844 * po/gl.po: Likewise.
3845 * po/sk.po: Likewise.
3846 * po/sv.po: Likewise.
3848 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
3849 * misc/sys/mman.h: Add prototype for remap_file_pages.
3850 * sysdeps/generic/remap_file_pages.c: New file.
3851 * misc/Makefile (routines): Add remap_file_pages.
3852 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
3854 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
3856 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3857 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
3858 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3859 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3860 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3861 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
3862 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
3863 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3865 2003-03-03 Roland McGrath <roland@redhat.com>
3867 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
3868 * sysdeps/ia64/dl-machine.h: Likewise.
3869 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
3871 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
3873 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
3874 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
3875 * locale/Versions (libc: GLIBC_2.3): Move those to ...
3876 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
3877 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
3878 * Versions.def (libc): Add GLIBC_2.3.3 set.
3880 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
3881 * sysdeps/ia64/dl-machine.h: Update decl.
3883 2003-03-03 Andreas Jaeger <aj@suse.de>
3885 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
3887 2003-03-02 Roland McGrath <roland@redhat.com>
3889 * scripts/abilist.awk: Reject data items with apparent 0 size.
3891 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
3892 after foo.* as if it were a duplicate.
3894 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
3896 2003-03-02 Ulrich Drepper <drepper@redhat.com>
3898 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
3900 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
3901 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
3902 if not already defined. Use SYSDEP_GETRES to allow other files to
3903 provide alternative implementations.
3904 * sysdeps/unix/sysv/linux/clock_getres.c: New file
3905 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
3906 if not already defined. Use SYSDEP_GETTIME to allow other files to
3907 provide alternative implementations.
3908 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
3909 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
3910 if not already defined. Use SYSDEP_GETTIME to allow other files to
3911 provide alternative implementations.
3912 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
3913 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
3914 other files to provide alternative implementations. Rearrange
3915 tests for invalid parameters.
3916 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
3917 * sysdeps/unix/sysv/linux/sysconf.c: New file.
3918 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3919 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
3920 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3921 _POSIX_MONOTONIC_CLOCK.
3923 2003-03-02 Roland McGrath <roland@redhat.com>
3925 * scripts/merge-abilist.awk: More checks for bogus input.
3926 Uniquify duplicate config names.
3928 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
3930 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
3931 from dl_reloc_overflow, make global.
3932 (__process_machine_rela): Update callers.
3933 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
3934 Add attribute_hidden to __process_machine_rela decl.
3935 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
3937 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
3940 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
3941 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
3942 (elf_machine_rela): Clean up.
3944 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
3946 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
3947 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
3948 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
3949 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
3950 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
3951 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
3954 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
3955 macros out of [SHARED].
3956 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
3958 * elf/elf.h: Define R_PPC_* relocs for TLS support.
3959 Clean up R_PPC64_* macro definition comments.
3961 * configure.in: In "running configure fragment for" message,
3962 omit $srcdir from the name if we prepended it.
3963 * configure: Regenerated.
3965 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
3966 From Jakub Jelinek <jakub@redhat.com>.
3968 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
3969 which duplicated the O_DIRECT defn.
3971 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3973 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
3976 2003-03-01 Andreas Schwab <schwab@suse.de>
3978 * resolv/Makefile (tests): Don't depend on
3979 $(objpfx)mtrace-tst-leaks when cross compiling.
3981 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
3982 __libc_stack_end through GOT since it is a global symbol.
3984 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3986 * argp/argp.h: Fix a typo.
3987 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
3989 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
3991 2003-02-27 Pat Rankin <rankin@pactechdata.com>
3993 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
3995 (get_subexp): Likewise.
3997 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3999 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
4001 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4003 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
4005 2003-02-27 Roland McGrath <roland@redhat.com>
4007 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
4008 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
4009 repeat it and avoids the test for the common case.
4010 Clean up and fix calculations for TLS relocs.
4012 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
4013 * sysdeps/powerpc/dl-tls.h: ... here.
4014 (TLS_TP_OFFSET): New macro.
4016 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
4018 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4020 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
4021 code generation changes in recent gcc.
4023 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
4025 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
4026 Rename argument to avoid symbol conflict.
4028 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
4029 [__USE_GNU] (O_DIRECT): New macro.
4031 2003-02-24 David Mosberger <davidm@hpl.hp.com>
4033 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
4036 2003-02-27 Ulrich Drepper <drepper@redhat.com>
4038 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
4039 initializer anymore now that res_thread_freeres is more careful.
4041 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
4042 except the PKTINFO. Reset interface in PKTINFO.
4043 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
4045 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
4047 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
4048 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
4050 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
4051 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
4052 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
4053 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
4055 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4056 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
4058 2003-02-25 Andreas Jaeger <aj@suse.de>
4060 * manual/memory.texi (Malloc Tunable Parameters): Clarify
4061 behaviour of M_MMAP_THRESHOLD.
4063 2003-02-25 Roland McGrath <roland@redhat.com>
4065 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
4066 zero, inidicating _res was not initialized yet.
4068 2003-02-24 Ulrich Drepper <drepper@redhat.com>
4070 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
4073 2003-02-24 Roland McGrath <roland@redhat.com>
4075 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
4077 2003-02-23 Roland McGrath <roland@redhat.com>
4079 * sysdeps/posix/pause.c: New file.
4080 * sysdeps/unix/common/pause.c: File removed.
4082 2003-02-23 Ulrich Drepper <drepper@redhat.com>
4084 * sysdeps/generic/bits/confname.h: Remove #ifs.
4086 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
4087 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
4089 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
4092 2003-02-22 Ulrich Drepper <drepper@redhat.com>
4094 * sysdeps/generic/dl-sysdep.c: Avoid warning.
4096 2003-02-22 Roland McGrath <roland@redhat.com>
4098 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
4099 * resolv/Makefile (tests): Add tst-leaks.
4100 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
4101 (tst-leaks-ENV): New variable.
4102 ($(objpfx)mtrace-tst-leaks): New target.
4103 (tests): Depend on it.
4105 * include/libc-internal.h: Declare __libc_thread_freeres.
4107 * Makerules: Fix last change to use $($(subdir)-version) when set.
4109 * Makerules (install-lib-nosubdir): Depend on installed
4110 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
4111 regardless of the libfoo.so target's dependencies.
4113 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
4114 Use that in $(MAKE) calls.
4116 2003-02-22 Ulrich Drepper <drepper@redhat.com>
4118 * catgets/gencat.c (read_input_file): Collision between
4119 auto-assigned numbers and user-defined nubmers is not fatal.
4121 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
4122 * catgets/Makefile: Add rules to run test2.msg test.
4123 * catgets/test2.msg: New file.
4125 * catgets/gencat.c (main): Return 1 if messages have been printed.
4127 * iconv/iconv_prog.c (main): Unify messages.
4129 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
4130 when shifting retval.
4131 * stdlib/tst-strtod.c (main): Add strtold test case.
4132 Reported by Fred J. Tydeman <tydeman@tybor.com>.
4134 2003-02-21 Roland McGrath <roland@redhat.com>
4136 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
4137 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
4138 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
4140 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
4141 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
4142 (res_thread_freeres): New function, on __libc_thread_subfreeres and
4145 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
4146 * malloc/thread-freeres.c: New file.
4147 * malloc/Makefile (aux): Add it.
4148 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
4149 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
4150 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
4152 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
4153 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
4155 2003-02-21 Roland McGrath <roland@frob.com>
4157 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
4159 * iconvdata/Makefile (tests): Add bug-iconv3 only if
4160 [$(have-thread-library) = yes].
4162 2003-02-21 Ulrich Drepper <drepper@redhat.com>
4164 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
4166 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
4167 not chechk for errors (unless testing for 32bit variant).
4168 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
4169 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
4170 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
4172 2003-02-21 Jakub Jelinek <jakub@redhat.com>
4174 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
4175 Check for signed overflow, not unsigned.
4177 * sysdeps/sparc/sparc64/elf/configure.in: New file.
4178 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
4179 Use -fcall-used-g6, not -fcall-used-g7.
4181 2003-02-21 Andreas Jaeger <aj@suse.de>
4183 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
4186 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
4187 clear whole mxcsr but only exceptions.
4189 2003-02-21 Roland McGrath <roland@redhat.com>
4191 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
4192 for libfoo.so that need $(make-link) rules.
4194 2003-02-21 Roland McGrath <roland@frob.com>
4196 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
4197 to match existing struct stat layout in mig protocols.
4199 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4201 * version.h (VERSION): Bump to 2.3.2.
4203 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
4204 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
4206 * sysdeps/generic/Dist: Add sysdep-cancel.h.
4207 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
4208 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
4209 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
4210 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
4211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
4213 * Makefile (distribute): Add include/stubs-prologue.h,
4214 include/gnu/stubs.h, scripts/merge-abilist.awk, and
4215 scripts/extract-abilist.awk.
4217 2003-02-20 Roland McGrath <roland@redhat.com>
4219 * math/Makefile (distribute): Don't add generated files.
4221 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4223 * math/Makefile: Rearrange variable definitions slightly to get
4224 definition in the right order.
4226 2003-02-20 Roland McGrath <roland@redhat.com>
4228 * Makerules: Clean up conditional around include of tls.make.
4229 * Make-dist: Export generating=t to prevent using that.
4230 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
4232 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4234 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
4235 around in search if port IPPORT_RESERVED/2 has been test.
4237 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
4239 * posix/regcomp.c: Remove inclusions.
4240 * posix/regexec.c: Likewise.
4241 * posix/regex_internal.c: Likewise.
4242 * posix/regex_internal.h: Add inclusions here.
4243 * posix/regex.c: Only include sys/types.h before regex.h. Include
4244 regex_internal.h here. Include regex_internal.c before regcomp.c
4245 and regexec.c (might expose more opportunities to the C compiler).
4247 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
4249 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
4250 [!_LIBC] (__wcrtomb): New definition.
4251 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
4252 HAVE_LOCALE_H as well.
4254 2003-02-20 Ulrich Drepper <drepper@redhat.com>
4256 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
4257 patch to check for system call errors.
4259 2002-07-24 Philip Blundell <philb@gnu.org>
4261 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
4264 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4266 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
4267 * sysdeps/unix/sysv/linux/kernel-features.h
4268 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
4269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
4271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
4272 interprocedure branches.
4273 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
4274 * sysdeps/powerpc/nofpu/Dist: ...here.
4275 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
4276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
4277 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
4278 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
4279 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
4281 2003-02-18 Alan Modra <amodra@bigpond.net.au>
4283 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
4285 2003-02-20 Philip Blundell <philb@gnu.org>
4287 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
4288 missing arguments to INTERNAL_SYSCALL_ERROR_P and
4289 INTERNAL_SYSCALL_ERRNO.
4291 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4293 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
4294 for __ASSUME_32BITUIDS.
4296 2003-02-20 Andreas Schwab <schwab@suse.de>
4298 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
4299 POSIX_MADV_* constants.
4301 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4303 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
4304 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
4305 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
4306 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
4308 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
4310 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
4312 2003-02-16 Roland McGrath <roland@redhat.com>
4314 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
4316 2003-02-19 Ulrich Drepper <drepper@redhat.com>
4318 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
4319 decimal input digits.
4320 * stdlib/tst-strtod.c (main): Add test for strtof bug.
4322 2003-02-18 Ulrich Drepper <drepper@redhat.com>
4324 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
4325 invalid file descriptors and missing access permissions.
4327 2003-02-17 Ulrich Drepper <drepper@redhat.com>
4329 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
4332 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
4333 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
4334 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
4337 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
4338 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4340 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
4341 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
4342 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4343 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4344 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4346 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4348 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
4349 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
4350 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
4351 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
4352 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
4353 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
4355 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
4356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
4357 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
4358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
4360 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
4361 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
4362 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
4363 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
4365 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
4367 * nss/getent.c (print_hosts): Print all IP addresses of one host.
4369 2003-02-15 Roland McGrath <roland@frob.com>
4371 * sysdeps/mach/hurd/tls.h: New file.
4372 * sysdeps/mach/hurd/i386/tls.h: New file.
4374 * mach/errsystems.awk: Include <errno.h> in generated output.
4376 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
4377 use target mach-before-compile instead of generated.
4378 (mach-before-compile): New target.
4379 * Makerules: Disable use of tls.make if $(generating) is set.
4380 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
4381 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
4382 mach-shortcuts.h so mach/ generation happens before hurd/.
4384 2003-02-14 Ulrich Drepper <drepper@redhat.com>
4386 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
4387 of demorm correctly if low word is zero.
4388 Reported by Fred J. Tydeman <tydeman@tybor.com>.
4389 * math/libm-test.inc (nextafter_test): New test, but disabled due
4392 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
4393 counter and only call __exit_thread if this is not the last thread.
4395 2003-02-13 Jakub Jelinek <jakub@redhat.com>
4397 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
4398 subtracting map->l_tls_offset.
4400 2003-02-12 Ulrich Drepper <drepper@redhat.com>
4402 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
4403 _CS_GNU_LIBPTHREAD_VERSION.
4404 * posix/conststr.c: Handle these new values.
4405 * posix/getconf.c: Likewise.
4407 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
4408 masking of version index.
4409 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4411 2003-02-11 Ulrich Drepper <drepper@redhat.com>
4413 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
4414 correctly. Reported by Thorsten Kukuk.
4416 2003-02-10 Ulrich Drepper <drepper@redhat.com>
4418 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
4419 _BSD_SOURCE to compiler.
4420 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
4421 Patches by Alan Modra.
4423 2003-02-08 Ulrich Drepper <drepper@redhat.com>
4425 * io/ftwtest.c: Get current working directory before and after the
4426 nftw call and make sure they match.
4428 2003-02-08 Jim Meyering <jim@meyering.net>
4430 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
4431 the current directory, not just when DIR contains a slash.
4432 Reported by Manoj Srivastava.
4434 2003-02-07 Jim Meyering <jim@meyering.net>
4436 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
4437 Include autoconf-recommended block of dirent/NAMELEN-related
4438 definitions and includes. Use NAMELEN throughout, rather than
4440 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
4441 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
4442 (stpcpy): Declare, if necessary.
4443 (mempcpy): Define, if necessary.
4444 [!_LIBC] (__stpcpy, __mempcpy): Define.
4445 [!_LIBC] (LXSTAT, XSTAT): Define.
4446 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
4447 (find_object): Don't use c99-style struct initializer.
4448 Tweak wording in a couple comments.
4450 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4452 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
4454 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
4455 after the trapa instruction.
4456 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
4458 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
4459 (NEED_SYSCALL_INST_PAD): Define.
4460 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
4461 avoid to use definition for the kernel.
4462 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4463 Save and restore the frame pointer.
4464 (SYSCALL_INST_PAD): Define.
4465 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4466 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
4467 after trapa instruction.
4468 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4469 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4471 2003-02-07 Jakub Jelinek <jakub@redhat.com>
4473 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
4474 so that it can have aliases.
4475 * inet/herrno.c (h_errno): Put it into .bss not .data section.
4477 2003-02-07 Ulrich Drepper <drepper@redhat.com>
4479 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
4480 (profile_fixup): Likewise.
4481 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4483 2002-11-24 Robert Love <rml@tech9.net>
4485 * posix/sched.h: Second parameter of sched_setaffinity and
4486 sched_getaffinity is `unsigned int', not `unsigned long'.
4487 * sysdeps/generic/sched_setaffinity.c: Likewise.
4488 * sysdeps/generic/sched_getaffinity.c: Likewise.
4490 2003-02-05 Ulrich Drepper <drepper@redhat.com>
4492 * debug/catchsegv.sh: Fix typo in error messsage.
4493 Reported by John Levon <levon@movementarian.org>.
4495 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
4496 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
4497 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4498 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4500 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4501 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4503 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
4504 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
4506 2003-02-05 Jim Meyering <jim@meyering.net>
4508 Fix a heap-corrupting bug.
4509 * io/ftw.c: Include <limits.h>.
4510 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
4511 (process_entry): Allocate enough space to hold the resulting
4512 file name. Don't presume that 2*dirbufsize is enough.
4513 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
4514 it is guaranteed to be defined.
4516 2003-02-04 Ulrich Drepper <drepper@redhat.com>
4518 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
4519 * iconvdata/bug-iconv3.c: New file.
4521 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
4523 * sysdeps/unix/sysv/linux/s390/system.c: New file.
4525 2003-02-03 Jakub Jelinek <jakub@redhat.com>
4527 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
4529 * config.h.in (BROKEN_SPARC_WDISP22): Add.
4531 2003-02-03 Ulrich Drepper <drepper@redhat.com>
4533 * sysdeps/i386/i686/memmove.S: New file.
4535 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
4538 Include kernel-features.h
4539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
4540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
4542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4544 2003-02-02 Jakub Jelinek <jakub@redhat.com>
4546 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
4548 2003-01-25 Jim Meyering <jim@meyering.net>
4550 * io/ftw.c (object_compare): Compare inode numbers before device
4551 numbers, since the former are much more likely to differ.
4553 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4555 * time/tzfile.c (__tzfile_compute): Change return value type to
4556 void. Adjust return statements.
4557 * include/time.h (__tzfile_compute): Adjust prototype.
4559 2003-02-01 Jim Meyering <jim@meyering.net>
4561 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
4564 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4567 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
4569 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4572 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
4573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4574 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4576 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4578 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4580 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4582 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
4583 back to 2.4.19 for powerpc64.
4584 * sysdeps/unix/sysv/linux/kernel-features.h
4585 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
4586 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
4588 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4590 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
4591 platforms with strange alignment requirements on wchar_t.
4593 2003-01-31 Andreas Schwab <schwab@suse.de>
4595 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
4596 aliases, already added by make-syscalls.sh.
4597 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4598 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4599 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4600 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4601 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4602 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4603 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4604 * sysdeps/unix/inet/syscalls.list: Likewise.
4605 * sysdeps/unix/syscalls.list: Likewise.
4607 2003-01-31 Andreas Schwab <schwab@suse.de>
4609 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
4612 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4614 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
4615 not l to load tls from stack.
4617 2003-01-30 Roland McGrath <roland@redhat.com>
4619 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
4620 null argument before all else.
4621 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4623 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4625 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
4626 Move to RESOLVE protected part of the header.
4627 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
4630 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4632 * stdio-common/Makefile (tests): Add bug15.
4633 (bug15-ENV): Define.
4634 * stdio-common/bug15.c: New file.
4636 2002-10-07 Wolfram Gloger <wg@malloc.de>
4638 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
4639 to foreign sbrk()'s if arena is contiguous. Bug report from
4640 Bruno Haible <bruno@clisp.org>.
4642 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4644 * sysdeps/s390/libc-tls.c: Include stdlib.h.
4646 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4648 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
4651 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4653 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
4655 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
4657 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4659 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4661 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
4662 (allocate_static_tls): ...here. Add __attribute_noinline__.
4663 Don't return on failure.
4664 (_dl_reloc_bad_type): Add __attribute_noinline__.
4665 * elf/do-rel.h (elf_dynamic_do_rel): Add
4666 __attribute__((always_inline)).
4667 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4668 elf_machine_rel_relative, elf_machine_rela_relative,
4669 elf_machine_lazy_rel): Add prototypes with
4670 __attribute__((always_inline)).
4672 2003-01-29 David Mosberger <davidm@hpl.hp.com>
4674 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
4676 2003-01-29 Roland McGrath <roland@redhat.com>
4678 * configure.in: Barf if configured in $srcdir.
4680 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
4682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4683 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
4685 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
4687 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
4688 clone parameters to match the order used on ia32.
4689 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4691 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
4693 * elf/elf.h: Add new s390 relocs.
4694 * elf/tls-macros.h: Add s390 versions.
4695 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
4696 * sysdeps/s390/dl-tls.h: New file.
4697 * sysdeps/s390/libc-tls.c: New file.
4698 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
4699 relocs for class PLT.
4700 (elf_machine_rela): Handle TLS relocs.
4701 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4702 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
4703 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
4704 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
4705 CLONE_CHILD_*TID flags.
4706 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4707 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
4709 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4710 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4711 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
4712 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
4713 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
4715 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
4716 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
4717 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4719 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
4720 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
4721 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
4722 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4725 2003-01-28 Ulrich Drepper <drepper@redhat.com>
4727 * sysdeps/unix/common/pause.c (do_pause): New function. Split
4728 from __libc_pause. Implement using sigsuspend.
4729 (__libc_pause): Call do_pause to do the real work.
4731 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
4732 sig_or_mask parameter is is_sig != 0.
4734 2003-01-21 Philip Blundell <philb@gnu.org>
4736 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
4738 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
4740 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
4742 2003-01-27 Ulrich Drepper <drepper@redhat.com>
4744 * stdio-common/bug14.c: Use official name for the locale.
4746 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
4747 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
4748 instead of __libc_cleanup_region_end.
4750 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
4751 as first parameter to __libc_cleanup_region_start.
4753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4754 (__fe_nomask_env): Use __prctl not prctl.
4755 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
4758 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
4760 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
4762 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
4763 wrap-around in test.
4765 2003-01-26 Andreas Schwab <schwab@suse.de>
4767 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
4768 compatibility symbols. Remove INTDEF for __divdi3.
4769 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
4770 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
4771 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
4773 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
4775 2003-01-24 Jakub Jelinek <jakub@redhat.com>
4777 * elf/tls-macros.h: Add SPARC 32-bit definitions.
4778 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
4779 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
4780 for the first half of the header. Include tls.h.
4781 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
4783 (elf_machine_rela): Handle TLS relocs.
4784 * sysdeps/sparc/dl-tls.h: New file.
4786 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
4789 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
4790 * sysdeps/sparc/sparc32/memchr.S: Likewise.
4791 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4792 * sysdeps/sparc/sparc32/strcat.S: Likewise.
4793 * sysdeps/sparc/sparc32/strchr.S: Likewise.
4794 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
4795 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
4796 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
4797 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4798 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4799 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4800 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4801 * sysdeps/sparc/sparc64/strcat.S: Likewise.
4802 * sysdeps/sparc/sparc64/strchr.S: Likewise.
4803 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
4804 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
4805 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4806 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4807 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4808 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4810 2003-01-24 Andreas Schwab <schwab@suse.de>
4812 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
4813 elements, and process them backwards.
4814 * elf/Makefile ($(objpfx)tst-array4): New target.
4815 ($(objpfx)tst-array4.out): Likewise.
4816 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
4817 * elf/tst-array4.c: New file.
4818 * elf/tst-array4.exp: Likewise.
4820 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
4824 2003-01-27 Guido Guenther <agx@sigxcpu.org>
4826 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
4827 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
4828 cancellation handling and handle both __NR_pread64 and __NR_pread.
4829 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4830 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
4831 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
4832 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4833 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
4834 case, use register names consistently.
4836 2003-01-27 Wolfram Gloger <wg@malloc.de>
4838 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
4839 pointer, not of the computed chunk. Bug report from Carlos
4840 O'Donell <carlos@baldric.uwo.ca>.
4842 2003-01-25 Andreas Schwab <schwab@suse.de>
4844 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
4845 addressing to save GOT entries.
4847 2003-01-21 Jakub Jelinek <jakub@redhat.com>
4849 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
4850 inline_syscall1, inline_syscall2, inline_syscall3,
4851 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
4852 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
4853 __attribute__((unused)) to ChEcK.
4855 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4857 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
4858 Fix inline assembler constraints.
4859 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
4862 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
4865 2003-01-20 Segher Boessenkool <segher@koffie.nl>
4867 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
4868 compute the cosine, not the sine, even if x > 0.8.
4870 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4872 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
4873 _nss_nis_setspent. Work around the different prototypes.
4874 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
4875 internal_nis_endrpcent.
4876 (internal_nis_endrpcent): Change return type to void. Change callers.
4877 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
4878 _nss_nis_setpwent. Work around the different prototypes.
4879 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
4880 of the function to...
4881 (internal_nis_endprotoent): ... here. New function.
4882 (internal_nis_setprotoent): Use internal_nis_endprotoent.
4883 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
4884 _nss_nis_setnetent. Work around the different prototypes.
4885 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
4886 of the function to...
4887 (internal_nis_endnetgrent): ... here. New function.
4888 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
4890 2003-01-19 Jim Meyering <jim@meyering.net>
4892 * time/strftime.c: (widen): Merge nearly-identical definitions.
4893 (nl_get_alt_digit) [! defined my_strftime]: Define.
4894 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
4895 _nl_get_alt_digit and _nl_get_walt_digit.
4897 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4899 * time/strftime.c (my_strftime): Handle very large width
4900 specifications for numeric values correctly. Improve checks for
4902 * time/Makefile (tests): Add tst-strftime.
4903 * time/tst-strftime.c: New file.
4905 2003-01-18 Ulrich Drepper <drepper@redhat.com>
4907 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
4908 _nss_nis_sethostent. Work around the different prototypes.
4909 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
4910 _nss_nis_setgrent. Work around the different prototypes.
4911 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
4912 function. Split out from _nss_nis_endetherent.
4913 (internal_nis_setetherent): Use internal_nis_endetherent instead of
4914 duplicating the code.
4915 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
4916 of _nss_nis_setaliasent.
4917 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
4918 internal_nis_endservent code, don't duplicate it.
4920 * inet/rexec.c (rexec_af): Protect socket operations with
4921 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
4922 * inet/rcmd.c (rcmd_af): Likewise.
4924 2003-01-17 Roland McGrath <roland@redhat.com>
4926 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
4927 Add test of value 0.80190127184058835.
4929 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
4931 2003-01-17 Richard Henderson <rth@redhat.com>
4933 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
4934 relocs for class PLT.
4935 * sysdeps/alpha/libc-tls.c: New file.
4936 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
4937 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
4939 2003-01-17 Jakub Jelinek <jakub@redhat.com>
4941 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
4942 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
4945 2003-01-17 Andreas Jaeger <aj@suse.de>
4947 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
4949 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
4951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
4952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
4953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
4954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
4955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
4956 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
4957 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
4960 2003-01-16 Ulrich Drepper <drepper@redhat.com>
4962 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
4963 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
4966 * sysdeps/generic/sysconf.c: Unconditionally implement
4967 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
4968 * sysdeps/posix/sysconf.c: Likewise.
4970 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4972 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
4973 set *err to the returned error, not to REG_ESPACE unconditionally.
4974 (build_word_op): Likewise.
4975 * posix/Makefile (tests): Add bug-regex16.
4976 * posix/bug-regex16.c: New test.
4978 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4980 * elf/dl-load.c (_dl_map_object_from_fd): Use
4981 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
4982 been already initialized.
4984 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
4986 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
4988 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4990 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
4991 allocated too. Reported by Al Viro <aviro@redhat.com>.
4993 2003-01-16 Roland McGrath <roland@redhat.com>
4995 Tweak merged .abilist file format to merge duplicate symbols in
4996 different sets into multi-version stanzas with new "| SET regexp..."
4997 header continuation lines.
4998 * scripts/merge-abilist.awk: Rewritten for new format.
4999 * scripts/extract-abilist.awk: Likewise.
5001 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5003 * nscd/connections.c (nscd_run): Remove bogus return which isn't
5004 necessary with gcc 3.2+.
5005 (nscd_init): Don't use error() to print message, use dbg_log.
5007 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
5008 expected size into state.
5009 (UNPACK_BYTES): Do the reverse.
5010 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
5011 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
5012 Reported by Al Viro <aviro@redhat.com>.
5014 * stdio-common/Makefile (tests): Add bug14.
5015 * stdio-common/bug14.c: New file.
5017 * stdio-common/vfscanf.c: When recognizing multibyte characters in
5018 string reset the byte counter after mbrtowc reported it is not a
5019 partial character. Reported by Al Viro <aviro@redhat.com>.
5021 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
5023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
5024 sysdep-cancel.h, not sysdep.h.
5026 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5028 * nscd/connections.c (nscd_run): Protect accept call with
5031 2003-01-15 Andreas Schwab <schwab@suse.de>
5033 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
5034 (common-generated): Add s-proto-bp.d.
5035 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
5037 * sysdeps/unix/s-proto-bp.S: New file.
5038 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
5039 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
5040 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
5042 2003-01-15 Roland McGrath <roland@redhat.com>
5044 * Makerules: Use -include for tls.make, suppresses warning.
5045 Move gen-as-const-headers rules up so before-compile is set in time.
5046 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
5048 2003-01-15 Ulrich Drepper <drepper@redhat.com>
5050 * nscd/nscd.c (main): Make code to close all file descriptors
5051 faster and more robust.
5053 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
5054 request with one writev call. Protect all read calls with
5056 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5057 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5059 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
5060 Protect writev calls with TEMP_FAILURE_RETRY.
5061 * nscd/grpcache.c: Likewise.
5062 * nscd/pwdcache.c: Likewise.
5064 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
5065 IPv6 address in debug output.
5067 2003-01-14 Roland McGrath <roland@redhat.com>
5069 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
5070 $(objpfx) directories, and get rid of vpath directives. The previous
5071 arrangement resulted in files being written to the source directories
5072 when run in a clean build. Find all .abilist files in $(..)abilist/.
5073 (update-abi-%): Likewise.
5074 (generated): Don't add .symlist files, they'll be intermediates.
5076 * sysdeps/generic/init-first.c: Add a comment.
5078 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
5080 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
5081 #includes and expressions.
5083 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
5084 config list when it already contains cpu-.*-os.* without / part.
5086 * Makerules (sed-remove-dotdot): New variable.
5087 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
5088 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
5089 (check-abi-config): New variable, append /tls or /notls to the tuple.
5090 (check-abi-%): Use that for -v config value.
5091 Find .abilist files in abilist/libfoo.abilist, not in subdir.
5092 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
5094 2003-01-14 Ulrich Drepper <drepper@redhat.com>
5096 * manual/install.texi: Correct description of header preparation for
5097 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
5099 2003-01-14 Guido Guenther <agx@sigxcpu.org>
5101 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
5102 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5103 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
5105 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
5107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5108 (INTERNAL_SYSCALL): Make use of ERR parameter.
5109 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5110 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5111 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
5114 2003-01-14 Ulrich Drepper <drepper@redhat.com>
5116 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
5118 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
5120 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
5121 Fix entry for bit 31.
5123 * iconvdata/Makefile: Add rules to build IBM866NAV.
5124 * iconvdata/ibm866nav.c: New file.
5125 * iconvdata/tst-tables.sh: Add IBM866NAV.
5126 * iconvdata/gconv-modules: Add entries for IBM866NAV.
5128 2003-01-13 Ulrich Drepper <drepper@redhat.com>
5130 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
5131 to test void* parameters.
5133 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
5134 source pointer before dereferencing.
5135 (__STRING_SMALLL_GET32): Likewise.
5136 (__memset_gc): Add missing parenthesis around macro arguments.
5137 Patch by Denis Zaitsev <zzz@cd-club.ru>.
5139 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
5140 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5142 2003-01-14 Jakub Jelinek <jakub@redhat.com>
5144 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
5147 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
5149 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
5150 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
5152 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
5154 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
5156 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
5158 (PSEUDO): ... to here.
5159 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
5161 (PSEUDO): ... to here.
5163 2003-01-13 Ulrich Drepper <drepper@redhat.com>
5165 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
5166 dirent64 instead of struct dirent for dirent. Call readdir64
5169 * locale/programs/locfile.c (siblings_uncached): Use struct
5170 dirent64 instead of struct dirent for other_dentry. Call
5171 readdir64 instead of readdir.
5173 * elf/ldconfig.c (direntry): Change type to struct dirent64.
5174 (search_dir): Use readdir64 instead of readdir.
5175 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
5177 2003-01-12 Roland McGrath <roland@redhat.com>
5179 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
5180 not strtol. The former is usable in ld.so, the latter not.
5182 * include/fcntl.h: Declare __libc_creat.
5184 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
5185 libhurduser-link.so-no-z-defs): New variables.
5187 * malloc/malloc.c: Revert last change.
5188 * malloc/malloc.h (_int_*): Move these decls to ...
5189 * include/malloc.h: ... here. Add attribute_hidden.
5190 (_int_valloc): Declare it too.
5192 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5194 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
5195 search for removed searchlist. Reported by Roland McGrath.
5197 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
5198 given as start file.
5200 * io/ftw.c (ftw_startup): Use correct name in check for symlink
5201 without existing target. Patch by Jim Meyering.
5203 * Makerules (build-shlib-helper): Don't use -z defs linker option
5204 if no-z-defs is defined either.
5206 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5208 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
5211 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5213 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
5214 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5216 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5218 * io/ftwtest-sh: Add test case for relative path with /. at the end.
5220 2003-01-12 Jim Meyering <jim@meyering.net>
5222 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
5223 use the basename if we've already chdir'd into its parent directory.
5225 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5227 * io/ftw.c (process_entry): Use relative path when using chdir()
5228 to change directory after call to ftw_dir.
5229 * io/ftwtest-sh: Add test for relative path argument to nftw()
5230 with FTW_CHDIR option.
5232 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5234 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
5236 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
5238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5239 (INTERNAL_SYSCALL): Make use of ERR parameter.
5240 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5241 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5242 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
5245 2002-01-09 Richard Henderson <rth@redhat.com>
5247 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
5248 DTPREL64 and TPREL64 without loadbase applied.
5250 2002-01-09 Richard Henderson <rth@redhat.com>
5252 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
5255 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
5256 * sysdeps/unix/alpha/sysdep.h: ... here.
5257 (PSEUDO_LOADGP): Remove.
5258 (PSEUDO_PROLOGUE): Load GP in non-pic case.
5259 (SYSCALL_ERROR_LABEL): New.
5260 (PSEUDO): Use it in error branch.
5261 (PSEUDO_END): Add $syscall_error label.
5263 2003-01-12 Andreas Jaeger <aj@suse.de>
5265 * math/bits/mathcalls.h: Round is a const function.
5267 2003-01-11 Jim Meyering <jim@meyering.net>
5269 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
5270 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
5271 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
5272 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
5273 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
5274 [!_LIBC] (internal_function, dirent64, MAX): Define.
5275 (__set_errno): Define if not already defined.
5276 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
5277 the basename, not the entire file name.
5278 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
5279 the basename, not the entire file name.
5281 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5283 * string/tester.c (test_strcpy): Disable last added strcpy until
5286 2003-01-11 Philip Blundell <philb@gnu.org>
5288 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
5290 2003-01-11 Andreas Schwab <schwab@suse.de>
5292 * Makerules: Add vpath for %.dynsym and %.so so that the
5293 implicit rule chaining for check-abi works.
5295 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5297 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5300 2003-01-11 Jakub Jelinek <jakub@redhat.com>
5302 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
5303 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
5305 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
5306 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
5307 Ensure libc.so in DT_NEEDED.
5308 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
5309 CHECK_STATIC_TLS before l_tls_offset use.
5310 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
5312 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5313 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
5314 Allocate TLS_PRE_TCB_SIZE bytes below result.
5315 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
5316 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
5317 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
5318 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
5319 bytes below result and add tcb_offset to memsz.
5320 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
5321 * sysdeps/ia64/dl-machine.h: Include tls.h.
5322 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
5324 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
5325 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
5326 * sysdeps/ia64/libc-tls.c: New file.
5328 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
5330 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
5331 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
5332 Fix type. Move definition out of #if.
5333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
5334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
5335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
5336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
5337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
5338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
5340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
5341 ftruncate64, pread64, pwrite64, truncate64 entries.
5342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5343 (INLINE_SYSCALL): New version that supports function call like
5344 syscalls. Add __builtin_expect.
5345 (LOADARGS_n): Add argument size safety checks.
5346 (INTERNAL_SYSCALL): New Macro.
5347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
5348 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
5349 redefinition of elf_fpreg_t and elf_fpregset_t.
5351 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5353 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
5354 simplify test for unloading. If loader of a DSO is unloaded do not
5355 use its scope anymore. Fall back to own scope and adjust opencounts.
5356 Fix several comments.
5357 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
5358 the l_searchlist, not only for l_initfini.
5360 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
5361 dependencies if objects cannot be removed. Remove object with the
5362 definition as not unloadable if necessary.
5364 * elf/reldep6.c: Create relocation dependency before closing the first
5367 2003-01-10 Guido Günther <agx@sigxcpu.org>
5369 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
5370 * sysdeps/unix/mips/brk.S: Likewise.
5371 * sysdeps/unix/mips/pipe.S: Likewise.
5373 2003-01-10 Andreas Schwab <schwab@suse.de>
5375 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
5377 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
5378 are known to have the vfork syscall.
5380 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
5382 * sysdeps/unix/sysv/linux/kernel-features.h
5383 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
5384 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
5385 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
5387 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5389 * elf/Makefile: Add rules to build and run reldep9 test.
5390 * elf/reldep9.c: New file.
5391 * elf/reldep9mod1.c: New file.
5392 * elf/reldep9mod2.c: New file.
5393 * elf/reldep9mod3.c: New file.
5395 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5397 * elf/Makefile: Add rules to build and run nodelete2 test.
5398 * elf/nodelete2.c: New file.
5399 * elf/nodel2mod1.c: New file.
5400 * elf/nodel2mod2.c: New file.
5401 * elf/nodel2mod3.c: New file.
5403 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5405 * posix/test-vfork.c (noop): Add __attribute_noinline__.
5406 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
5407 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
5409 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
5410 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
5411 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
5412 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
5413 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
5415 2003-01-09 Andreas Schwab <schwab@suse.de>
5417 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
5419 2003-01-08 Ulrich Drepper <drepper@redhat.com>
5421 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
5422 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5424 (INTERNAL_SYSCALL_DECL): Define.
5426 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5428 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
5429 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5431 (INTERNAL_SYSCALL_DECL): Define.
5432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5433 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5434 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5435 (INLINE_SYSCALL): Adjust.
5436 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5437 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5438 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
5439 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5440 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
5441 add err argument to INTERNAL_SYSCALL* macros.
5442 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
5443 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
5444 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
5445 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
5447 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
5448 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
5449 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
5451 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5453 Unify symbols in user namespace exported by libc.so and libc.a.
5454 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
5455 argp_fmtstream_free, and argp_fmtstream_printf.
5456 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
5457 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
5458 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
5459 argp_fmtstream_point.
5460 * gmon/gmon.c: Don't define write_profiling.
5461 * libio/genops.c: Don't define _cleanup.
5463 * intl/explodename.c (_nl_find_language.c): Mark as static.
5464 * intl/loadinfo.h: Remove _nl_find_language prototype.
5466 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
5467 * libio/libioP.h: Remove declaration.
5469 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
5470 * libio/libioP.h: Remove declaration.
5472 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
5473 * sysdeps/generic/framestate.c: Define STATIC before including
5476 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
5478 2003-01-06 Philip Blundell <philb@gnu.org>
5480 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
5481 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
5483 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
5485 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
5486 (SYSCALL_ERROR): New.
5487 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
5489 (INTERNAL_SYSCALL): Define.
5490 (INLINE_SYSCALL): Use it.
5491 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5492 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
5493 SYSCALL_ERROR in place of __syscall_error.
5495 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5497 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5498 __bswap_32, __bswap_64): Put x into temporary variable
5500 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5502 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5503 __bswap_32, __bswap_64): Put x into temporary variable
5505 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5507 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
5510 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5512 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
5515 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5517 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
5518 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
5520 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5522 * math/libm-test.inc (significand_test): New function.
5525 2003-01-06 Roland McGrath <roland@redhat.com>
5527 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
5529 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
5530 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
5531 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
5533 * string/tester.c (test_strcpy): Add test with `void *' arguments.
5535 2003-01-06 Ulrich Drepper <drepper@redhat.com>
5537 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
5538 return significand and not the exponent.
5539 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5541 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
5542 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
5544 * malloc/malloc.c: Mark all _int_* functions as static.
5546 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5548 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
5549 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
5551 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5553 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5555 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
5556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
5558 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
5559 ftruncate64, truncate64, pread64 and pwrite64 entries.
5560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5561 (INLINE_SYSCALL): Add __builtin_expect.
5562 (LOADARGS_n): Add argument size safety checks.
5563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
5564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
5565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
5566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
5567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
5568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
5570 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5572 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
5573 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
5574 (LIBC_CANCEL_HANDLED): Add.
5576 * sysdeps/unix/sysv/linux/alpha/sysdep.h
5577 (inline_syscall_r0_constraint): Rename to...
5578 (inline_syscall_r0_out_constraint): ... this. Add =.
5579 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
5581 2003-01-06 Andreas Schwab <schwab@suse.de>
5583 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
5584 sure this is always inlined.
5585 (elf_machine_rela): Likewise.
5587 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
5589 2003-01-04 Roland McGrath <roland@redhat.com>
5591 * Makeconfig (+mkdep): Add -MP flag.
5592 Suggested by Art Haas <ahaas@airmail.net>.
5594 2003-01-05 Andreas Schwab <schwab@suse.de>
5596 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
5598 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5600 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
5601 SYSCALL_ERROR_HANDLER.
5602 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
5603 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
5604 Add support for cancellation handling.
5605 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
5606 SYSCALL_ERROR_HANDLER.
5607 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
5608 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
5609 Add support for cancellation handling.
5610 (SYSCALL_ERROR_HANDLER): Define PIC variants.
5612 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
5615 __syscall_pread64 and __syscall_pwrite64 cancelable.
5616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5617 (INTERNAL_SYSCALL): New macro.
5618 (LOADARGS_0, LOADARGS_1): Fix.
5620 2003-01-05 Ulrich Drepper <drepper@redhat.com>
5622 * Makerules (build-shlip-helper): Unless told otherwise, add
5623 -Wl,-z,defs to linker command line.
5624 * rt/Makefile (librt.so): Link with ld.so.
5625 * dlfcn/Makefile (libdl.so): Likewise.
5627 2003-01-05 Jakub Jelinek <jakub@redhat.com>
5629 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
5630 cancellation handling.
5631 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5632 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5634 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5636 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
5637 order of parameters passed to kill.
5639 2003-01-04 Andreas Schwab <schwab@suse.de>
5641 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
5643 2002-01-03 Paul Eggert <eggert@twinsun.com>
5645 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
5646 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
5647 when compiling Bison 1.875's `bitset bset = obstack_alloc
5648 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
5650 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5652 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
5654 Correct reference counter in case SIGQUIT handler installation failed.
5656 2003-01-03 Ulrich Drepper <drepper@redhat.com>
5658 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
5659 Define using _Pragma(weak ...).
5661 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
5663 * resolv/res_libc.c: Provide declaration for __res_init_weak and
5664 reorder declarations.
5666 2003-01-03 Art Haas <ahaas@airmail.net>
5668 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
5669 initializer syntax to C99.
5670 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
5671 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
5672 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
5673 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
5674 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
5675 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
5676 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
5677 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
5678 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
5679 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
5680 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
5681 * localedata/tests-mbwc/dat_mblen.c: Likewise.
5682 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
5683 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
5684 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
5685 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
5686 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
5687 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
5688 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
5689 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
5690 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
5691 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
5692 * localedata/tests-mbwc/dat_towlower.c: Likewise.
5693 * localedata/tests-mbwc/dat_towupper.c: Likewise.
5694 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
5695 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
5696 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
5697 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
5698 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
5699 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
5700 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
5701 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
5702 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
5703 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
5704 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
5705 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
5706 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
5707 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
5708 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
5709 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
5710 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
5711 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
5712 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
5713 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
5714 * localedata/tests-mbwc/dat_wctob.c: Likewise.
5715 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
5716 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
5717 * localedata/tests-mbwc/dat_wctype.c: Likewise.
5718 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
5720 2003-01-03 Richard Henderson <rth@redhat.com>
5722 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
5723 (inline_syscall_r0_constraint): New.
5724 (inline_syscall[0-6]): Use them.
5726 2003-01-03 Jakub Jelinek <jakub@redhat.com>
5728 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
5729 Add rtld_hidden_proto.
5730 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
5731 (_dl_allocate_tls): Likewise. Remove INTDEF.
5733 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5735 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
5736 Morita <toshiyasu.morita@hsa.hitachi.com>.
5737 * sysdeps/sh/memcpy.S: Likewise.
5739 2003-01-02 Ulrich Drepper <drepper@redhat.com>
5741 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
5742 any, but unify the test.
5744 2003-01-02 Jakub Jelinek <jakub@redhat.com>
5746 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
5747 sigaction): Protect weak_alias and libc_hidden_weak with
5748 #ifndef LIBC_SIGACTION.
5749 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
5750 sigaction): Likewise.
5751 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
5752 sigaction): Likewise.
5753 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
5754 sigaction): Likewise.
5755 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
5756 sigaction): Likewise.
5757 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
5758 sigaction): Likewise.
5759 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
5760 sigaction): Likewise.
5761 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
5762 sigaction): Likewise. Remove SIGCANCEL handling here.
5763 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
5766 2003-01-02 Art Haas <ahaas@airmail.net>
5768 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
5770 2003-01-02 Ulrich Drepper <drepper@redhat.com>
5772 * posix/getconf.c: Update copyright year.
5773 * nss/getent.c: Likewise.
5774 * nscd/nscd_nischeck.c: Likewise.
5775 * iconv/iconvconfig.c: Likewise.
5776 * iconv/iconv_prog.c: Likewise.
5777 * elf/ldconfig.c: Likewise.
5778 * catgets/gencat.c: Likewise.
5779 * csu/version.c: Likewise.
5780 * elf/ldd.bash.in: Likewise.
5781 * elf/sprof.c (print_version): Likewise.
5782 * locale/programs/locale.c: Likewise.
5783 * locale/programs/localedef.c: Likewise.
5784 * nscd/nscd.c (print_version): Likewise.
5785 * debug/xtrace.sh: Likewise.
5786 * malloc/memusage.sh: Likewise.
5787 * malloc/mtrace.pl: Likewise.
5789 2003-01-01 Jakub Jelinek <jakub@redhat.com>
5791 * io/sys/stat.h: Include time.h with __need_timespec even if
5792 __USE_MISC is defined but __USE_XOPEN is not.
5794 2003-01-01 Andreas Jaeger <aj@suse.de>
5796 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
5797 type to avoid strict aliasing problem.
5798 (_nss_dns_gethostbyname2_r): Likewise.
5799 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5800 (_nss_dns_getnetbyname_r): Likewise.
5801 * resolv/gethnamaddr.c (_gethtent): Likewise.
5802 (gethostbyname2): Likewise.
5804 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5806 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
5807 to avoid using the exported symbols. Define aliases with the
5808 original names separately.
5810 * include/time.h: Add libc_hidden_proto for __strftime_l.
5811 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
5812 * time/strftime.c: Always use libc_hidden_def if _LIBC.
5814 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
5815 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
5817 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
5820 * csu/Makefile (routines): Add dso_handle.
5821 * csu/dso_handle.c: New file.
5823 2002-12-31 Roland McGrath <roland@redhat.com>
5825 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
5826 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
5827 (S-CPPFLAGS): Add -DASSEMBLER here instead.
5828 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
5830 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5832 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
5835 2002-12-31 Andreas Jaeger <aj@suse.de>
5837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
5839 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
5840 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
5841 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
5843 * sysdeps/unix/sysv/linux/kernel_stat.h
5844 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
5846 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
5847 __unused[1-3] since they're needed by some platforms. Handle
5848 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
5850 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
5851 for structs stat and stat64.
5852 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5853 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
5854 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5855 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5857 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
5859 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
5860 nsec resolution changes.
5861 (xstat64_conv): Likewise.
5862 (xstat32_conv): Likewise.
5864 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
5867 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
5868 structs stat and stat64.
5870 * time/time.h (__timespec_defined): Define for __USE_MISC.
5872 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5874 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
5875 and __libc_current_sigrtmax.
5877 2002-12-31 Jakub Jelinek <jakub@redhat.com>
5879 * include/errno.h (__errno_location): Add prototype.
5880 Use libc_hidden_proto unconditionally.
5881 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
5883 * include/resolv.h (__res_state): Likewise.
5885 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
5886 * include/sys/socket.h (accept): Add libc_hidden_proto.
5887 * include/errno.h (__errno_location): Likewise.
5888 * include/netdb.h (__h_errno_location): Likewise.
5889 * include/resolv.h (__res_state): Likewise.
5890 * include/unistd.h (__lseek): Likewise.
5891 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
5892 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
5893 * sysdeps/generic/res-state.c (__res_state): Likewise.
5894 * sysdeps/generic/accept.c (accept): Likewise.
5895 * sysdeps/generic/lseek.c (__lseek): Likewise.
5896 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
5897 __libc_current_sigrtmax): Likewise.
5898 * sysdeps/mach/hurd/accept.c (accept): Likewise.
5899 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
5900 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
5901 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
5902 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
5903 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
5904 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
5905 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
5906 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
5908 (__GI_accept): New alias to accept.
5909 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
5910 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
5911 New alias to llseek.
5912 (__GI_accept): New alias to accept.
5913 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
5915 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
5917 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
5919 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
5920 strong_alias (name, __GI_name).
5921 * sysdeps/arm/bsd-_setjmp.S : Likewise.
5922 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
5923 * sysdeps/i386/bsd-_setjmp.S : Likewise.
5924 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
5925 * sysdeps/mips/bsd-_setjmp.S : Likewise.
5926 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
5927 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
5928 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
5929 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
5930 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
5931 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
5932 * sysdeps/sh/bsd-_setjmp.S : Likewise.
5933 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
5934 * sysdeps/unix/arm/fork.S : Likewise.
5935 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
5936 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
5937 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
5938 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
5939 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
5940 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
5941 * sysdeps/unix/i386/fork.S : Likewise.
5942 * sysdeps/unix/mips/fork.S : Likewise.
5943 * sysdeps/unix/sparc/fork.S : Likewise.
5944 * sysdeps/unix/sparc/vfork.S : Likewise.
5945 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
5946 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
5947 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
5948 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
5949 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
5950 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
5951 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
5952 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
5953 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
5954 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
5955 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
5956 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
5957 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
5958 * sysdeps/unix/fork.S : Likewise.
5959 * sysdeps/vax/bsd-_setjmp.S : Likewise.
5960 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
5962 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
5965 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5967 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
5968 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
5969 * sysdeps/mach/hurd/fork.c: Likewise.
5970 * sysdeps/unix/sysv/aix/fork.c: Likewise.
5971 * sysdeps/unix/fork.S: Add __GI___fork alias.
5972 * sysdeps/unix/arm/fork.S: Likewise.
5973 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
5974 * sysdeps/unix/i386/fork.S: Likewise.
5975 * sysdeps/unix/mips/fork.S: Likewise.
5976 * sysdeps/unix/sparc/fork.S: Likewise.
5977 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5978 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
5979 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5980 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
5981 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
5982 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
5983 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
5984 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5985 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
5986 * sysdeps/unix/sparc/vfork.S: Likewise.
5987 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
5988 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
5989 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5990 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
5991 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
5992 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
5993 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
5994 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5996 * include/time.h: Add libc_hidden_proto for __nanosleep.
5997 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
5998 * sysdeps/mach/nanosleep.c: Likewise.
5999 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
6000 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
6002 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
6003 _IO_list_unlock, and _IO_list_resetlock.
6004 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
6005 _IO_list_unlock, and _IO_list_resetlock.
6007 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
6008 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6009 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
6010 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
6012 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
6013 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
6014 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
6015 __GI___longjmp alias.
6017 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
6018 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
6019 * sysdeps/arm/bsd-_setjmp.S: Likewise.
6020 * sysdeps/generic/bsd-_setjmp.c: Likewise.
6021 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
6022 * sysdeps/i386/bsd-_setjmp.S: Likewise.
6023 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6024 * sysdeps/mips/bsd-_setjmp.S: Likewise.
6025 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
6026 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
6027 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
6028 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
6029 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
6030 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
6031 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
6032 * sysdeps/sh/bsd-_setjmp.S: Likewise.
6033 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
6034 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
6035 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
6036 * sysdeps/vax/bsd-_setjmp.S: Likewise.
6037 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
6039 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6041 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
6043 2002-12-30 Roland McGrath <roland@redhat.com>
6045 * Rules (generated): Target removed.
6046 * mach/Makefile (generated): Define it here instead.
6048 * math/Makefile (generated): Add m_*l and m_*f variants too.
6050 2002-12-30 Ulrich Drepper <drepper@redhat.com>
6052 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
6053 the to-be-deleted objects right away instead of later separately.
6054 The latter fails because the scope data structures of the DSO
6055 might already be gone.
6057 * elf/Makefile: Add rules to build and run reldep8 test.
6058 * elf/reldep8.c: New file.
6059 * elf/reldep8mod1.c: New file.
6060 * elf/reldep8mod2.c: New file.
6061 * elf/reldep8mod3.c: New file.
6062 Contributed by Jakub Jelinek.
6064 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
6066 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6067 checking of return value ENOSYS from getdents64.
6069 2002-12-28 Andreas Schwab <schwab@suse.de>
6071 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
6072 ($(common-objpfx)s-%.d): Generalized from
6073 $(common-objpfx)s-proto.d rule.
6074 (common-generated): Add s-proto-cancel.d.
6075 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
6076 cancellable syscalls.
6077 * sysdeps/unix/s-proto-cancel.S: New file.
6079 2002-12-29 Roland McGrath <roland@redhat.com>
6081 * resolv/res_libc.c: Move _res defn magic after res_init defn
6082 so _res macro is in effect for that code.
6084 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
6085 pattern for prepending $(..) so it doesn't affect $(foo).
6087 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
6089 2002-12-29 Jakub Jelinek <jakub@redhat.com>
6091 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
6094 2002-12-28 Ulrich Drepper <drepper@redhat.com>
6096 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
6098 2002-12-28 Andreas Jaeger <aj@suse.de>
6100 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
6102 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
6104 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6106 * inet/herrno.c (__h_errno_location): Remove.
6107 * inet/Makefile (routines): Add herrno-loc.
6108 * resolv/res_libc.c (__res_state): Remove.
6109 * resolv/Makefile (routines): Add res-state.
6110 * sysdeps/generic/herrno-loc.c: New file.
6111 * sysdeps/generic/res-state.c: New file.
6113 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6115 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
6116 Only define if USE_DL_SYSINFO is defined.
6118 2002-12-22 Jakub Jelinek <jakub@redhat.com>
6120 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
6121 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
6122 Define. Patch by Richard Henderson and Jes Sorensen.
6123 (PSEUDO): Remove unnecessary ;;.
6124 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
6125 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
6126 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
6127 if not initializing thread pointer.
6128 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
6129 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
6130 make it weak also if NONTLS_INIT_TP.
6131 * sysdeps/unix/common/pause.c: Handle cancellation.
6132 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
6133 (LOADSYSCALL): Remove.
6134 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
6135 (SYSCALL_ERROR_HANDLER): Use it.
6136 (PSEUDO): Don't jump around error handler.
6137 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
6138 jump around error handler.
6139 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
6140 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
6141 to __syscall_error_handler on failure.
6142 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
6143 (LOADSYSCALL): Remove.
6144 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
6145 (SYSCALL_ERROR_HANDLER): Use it.
6146 (PSEUDO): Don't jump around error handler.
6147 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
6148 jump around error handler.
6149 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
6150 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
6151 to __syscall_error_handler on failure.
6153 2002-12-27 Roland McGrath <roland@redhat.com>
6155 * scripts/gen-as-const.awk: New file.
6156 * Makefile (distribute): Add it.
6157 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
6158 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
6160 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
6162 2002-12-27 Andreas Schwab <schwab@suse.de>
6164 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
6166 2002-12-27 Jakub Jelinek <jakub@redhat.com>
6168 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
6171 2002-12-27 Andreas Schwab <schwab@suse.de>
6173 * Makerules ($(common-objpfx)%.make): Filter through
6174 $(sed-remove-objpfx).
6176 2002-12-23 Roland McGrath <roland@redhat.com>
6178 * scripts/abilist.awk: Produce a more compact format, divided into
6179 stanzas for each version set, the set name listed only once.
6180 * scripts/extract-abilist.awk: New file.
6181 * scripts/merge-abilist.awk: New file.
6182 * Makerules (check-abi-%, update-abi-%): New pattern rules.
6183 (update-abi, check-abi): New targets.
6184 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
6186 2002-12-19 Roland McGrath <roland@redhat.com>
6188 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
6190 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
6193 2002-12-21 Andreas Schwab <schwab@suse.de>
6195 * elf/check-textrel.c (handle_file): Swap p_type.
6197 2002-12-21 Andreas Schwab <schwab@suse.de>
6199 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
6200 (INLINE_SYSCALL): Use it.
6201 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
6202 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
6204 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
6205 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
6207 2002-12-20 Art Haas <ahaas@airmail.net>
6209 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
6212 2002-12-21 Philip Blundell <philb@gnu.org>
6214 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
6215 top as seventh arg to __libc_start_main.
6216 Reported by paulnash@wildseed.com.
6218 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
6220 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
6221 compatibility cruft when new enough kernel is assumed.
6223 2002-12-20 Jakub Jelinek <jakub@redhat.com>
6225 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
6226 instead of INLINE_SYSCALL.
6228 2002-12-20 Ulrich Drepper <drepper@redhat.com>
6230 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
6233 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
6234 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6235 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
6236 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6237 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6238 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6239 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6240 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6241 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6242 Patch by William Lee Irwin <wli@holomorphy.com>.
6244 2002-12-20 Andreas Schwab <schwab@suse.de>
6246 * locale/programs/ld-measurement.c (measurement_output): Fix
6249 2002-12-20 Ulrich Drepper <drepper@redhat.com>
6251 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
6252 Redefine _IO_flockifle and _IO_funlockfile as inlines.
6254 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
6255 builds add "tls" in the search path.
6256 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
6257 (path_hwcap): Recognize "tls".
6259 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6261 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
6262 __waitpid instead of waitpid.
6264 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
6266 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
6267 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
6268 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
6270 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
6271 information for system calls.
6273 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
6276 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
6278 2002-12-19 Roland McGrath <roland@redhat.com>
6280 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
6281 * iconvdata/ibm922.h: Likewise.
6282 * iconvdata/ibm930.h: Likewise.
6283 * iconvdata/ibm932.h: Likewise.
6284 * iconvdata/ibm933.h: Likewise.
6285 * iconvdata/ibm935.h: Likewise.
6286 * iconvdata/ibm937.h: Likewise.
6287 * iconvdata/ibm939.h: Likewise.
6288 * iconvdata/ibm943.h: Likewise.
6289 * iconvdata/isiri-3342.h: Likewise.
6291 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6293 * test-skeleton.c (main): Make sure correct value is seen as
6294 argv[0] after adjustment of argv, and argc.
6296 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
6297 RTLD_CORRECT_DYNAMIC_WEAK is defined.
6299 2002-12-19 Jakub Jelinek <jakub@redhat.com>
6301 * nscd/connections.c (nscd_run): Shut up warning.
6302 * tst-ungetc.c (assert): Undefined before redefining.
6304 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6306 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
6309 2002-12-17 Art Haas <ahaas@airmail.net>
6311 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
6312 * iconvdata/cp775.h: Likewise.
6313 * iconvdata/ibm1046.h: Likewise.
6314 * iconvdata/ibm1124.h: Likewise.
6315 * iconvdata/ibm1129.h: Likewise.
6316 * iconvdata/ibm1132.h: Likewise.
6317 * iconvdata/ibm1133.h: Likewise.
6318 * iconvdata/ibm1160.h: Likewise.
6319 * iconvdata/ibm1161.h: Likewise.
6320 * iconvdata/ibm1162.h: Likewise.
6321 * iconvdata/ibm1163.h: Likewise.
6322 * iconvdata/ibm1164.h: Likewise.
6324 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6326 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
6327 __ASSUME_CLONE_THREAD_FLAGS is defined.
6328 * sysdeps/unix/sysv/linux/kernel-features.h
6329 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
6331 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6333 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
6335 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6337 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
6339 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6341 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
6343 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6345 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6346 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
6347 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
6350 2002-12-18 Jakub Jelinek <jakub@redhat.com>
6352 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
6354 [libc: GLIBC_PRIVATE]: ...here.
6355 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
6357 [libc: GLIBC_PRIVATE]: ...here.
6359 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6361 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
6362 Use it instead of directly int $0x80.
6363 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
6364 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6365 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6366 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6367 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6368 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
6370 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6372 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
6374 * elf/elf.h (AT_SYSINFO): New define.
6375 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
6378 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6380 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
6382 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
6384 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
6386 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
6388 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
6390 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
6392 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
6393 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
6394 available, otherwise __libc_maybe_call.
6395 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
6396 cancellation handling.
6397 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
6399 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
6401 * posix/regcomp.c (free_workarea_compile): Free the new member
6403 (analyze): Initialize ORG_INDICES.
6404 (duplicate_node_closure): Search for a existing node, which is
6405 duplicated from the node ORG_DEST and satisfies the constraint
6406 CONSTRAINT. And use it to avoid inifimite loop.
6407 (search_duplicated_node): New function.
6408 (duplicate_node): Store the index of the original node.
6409 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
6411 * posix/regex_internal.h (re_dfa_t): Add new members.
6413 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6415 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
6417 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6419 * sysdeps/posix/system.c (do_system): Add support for installation
6420 of cancellation handlers.
6421 * sysdeps/unix/sysv/linux/i386/system.c: New file.
6423 * stdlib/Makefile (tests): Add tst-system.
6424 * stdlib/tst-system.c: New file.
6426 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
6427 CENABLE]: Don't lose content of %ebx.
6429 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6431 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
6432 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
6434 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6436 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
6437 fails to return a function pointer don't use it.
6439 2002-12-16 Art Haas <ahaas@airmail.net>
6441 * io/ftw.c: Convert GCC extension initializer syntax to C99.
6442 * iconvdata/iso-ir-165.c: Likewise.
6443 * iconvdata/jis0208.c: Likewise.
6444 * iconvdata/jis0212.c: Likewise.
6446 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6448 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
6449 epoll_ctl, and epoll_wait.
6450 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
6451 epoll_create, epoll_ctl, and epoll_wait.
6452 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
6453 Davide Libenzi <davidel@xmailserver.org>.
6454 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
6455 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6458 2002-12-16 Art Haas <ahaas@airmail.net>
6460 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
6462 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
6463 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
6464 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
6466 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6468 * stdio-common/Makefile (routines): Remove lockfile. Add
6469 flockfile, ftrylockfile, and funlockfile.
6470 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
6471 * sysdeps/generic/flockfile.c: New file.
6472 * sysdeps/generic/ftrylockfile.c: New file.
6473 * sysdeps/generic/funlockfile.c: New file.
6475 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6477 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
6478 macros instead of doing the calls directly.
6479 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
6480 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
6483 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6485 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
6486 * sysdeps/ieee754/bits/nan.h: Likewise.
6488 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
6489 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
6491 2002-12-16 Roland McGrath <roland@redhat.com>
6493 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
6494 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
6495 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
6497 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
6498 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
6500 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
6501 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
6502 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
6503 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
6504 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
6505 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
6506 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
6507 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
6509 2002-12-13 Paul Eggert <eggert@twinsun.com>
6511 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
6512 is now u_int, not int.
6513 (struct XDR.x_handy): Now u_int, not int.
6514 * sunrpc/xdr_mem.c: Include <limits.h>.
6515 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
6516 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
6517 x_handy is now unsigned, not signed.
6518 Do not decrement x_handy if no change is made.
6519 (xdrmem_setpos): Check for int overflow.
6520 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
6521 (xdr_sizeof): Remove cast that is now unnecessary, now that
6522 x_handy is unsigned.
6524 2002-12-15 Art Haas <ahaas@airmail.net>
6526 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
6527 * iconvdata/gap.awk: Likewise.
6528 * iconvdata/gen-8bit-gap-1.sh: Likewise.
6529 * iconvdata/gen-8bit-gap.sh: Likewise.
6530 * locale/C-address.c: Likewise.
6531 * locale/C-collate.c: Likewise.
6532 * locale/C-ctype.c: Likewise.
6533 * locale/C-identification.c: Likewise.
6534 * locale/C-measurement.c: Likewise.
6535 * locale/C-messages.c: Likewise.
6536 * locale/C-monetary.c: Likewise.
6537 * locale/C-name.c: Likewise.
6538 * locale/C-numeric.c: Likewise.
6539 * locale/C-paper.c: Likewise.
6540 * locale/C-telephone.c: Likewise.
6541 * locale/C-time.c: Likewise.
6542 * nscd/connections.c: Likewise.
6543 * nscd/grpcache.c: Likewise.
6544 * nscd/hstcache.c: Likewise.
6545 * nscd/pwdcache.c: Likewise.
6546 * stdio-common/vfprintf.c: Likewise.
6547 * stdlib/random.c: Likewise.
6548 * sysdeps/generic/siglist.c: Likewise.
6549 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6550 * sysdeps/ieee754/bits/nan.h: Likewise.
6551 * sysdeps/posix/sprofil.c: Likewise.
6552 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6553 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
6554 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6556 2002-12-15 Roland McGrath <roland@redhat.com>
6558 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
6560 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
6561 <tls.h> here, no need for it.
6562 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6564 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
6565 parameter, not varargs parameter.
6567 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
6568 argument so it's not an unused variable.
6570 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
6571 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
6574 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
6576 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6578 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
6579 original __libc_fcntl code. Just renamed.
6581 2002-12-15 Andreas Schwab <schwab@suse.de>
6583 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
6585 2002-12-14 Olaf Hering <olh@suse.de>
6587 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
6588 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
6590 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6592 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
6594 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
6595 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
6597 * sysdeps/unix/sysv/linux/open64.c: New file.
6599 * sysdeps/generic/pselect.c: Add support for cancellation handling.
6600 * sysdeps/posix/open64.c: Likewise.
6601 * sysdeps/posix/sigpause.c: Likewise.
6602 * sysdeps/posix/sigwait.c: Likewise.
6603 * sysdeps/posix/system.c: Likewise.
6604 * sysdeps/posix/waitid.c: Likewise.
6605 * sysdeps/unix/sysv/linux/accept.S: Likewise.
6606 * sysdeps/unix/sysv/linux/connect.S: Likewise.
6607 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
6608 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6609 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
6610 * sysdeps/unix/sysv/linux/poll.c: Likewise.
6611 * sysdeps/unix/sysv/linux/pread.c: Likewise.
6612 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6613 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6614 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6615 * sysdeps/unix/sysv/linux/readv.c: Likewise.
6616 * sysdeps/unix/sysv/linux/recv.S: Likewise.
6617 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
6618 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
6619 * sysdeps/unix/sysv/linux/send.S: Likewise.
6620 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
6621 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
6622 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6623 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6624 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6625 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6626 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
6627 * sysdeps/unix/sysv/linux/wait.c: Likewise.
6628 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6629 * sysdeps/unix/sysv/linux/writev.c: Likewise.
6630 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6631 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6633 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6635 * sysdeps/generic/sysdep-cancel.h: New file.
6636 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
6638 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
6639 recvmsg, send, sendmsg, sendto): Make cancelable.
6640 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
6641 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
6642 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6643 sendto, osf_select): Likewise.
6644 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
6645 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6646 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
6647 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6649 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
6650 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6651 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
6652 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6654 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
6655 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6656 sendto, select): Likewise.
6657 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
6658 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
6660 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
6661 select, fcntl): Likewise.
6662 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
6663 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
6664 read, readv, select, sigsuspend, write, writev): Likewise.
6666 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6668 * dirent/bug-readdir1.c: Include unistd.h.
6670 2002-12-13 Jakub Jelinek <jakub@redhat.com>
6672 * locale/programs/locale.c: Include locarchive.h.
6673 (ARCHIVE_NAME): Define.
6674 (write_archive_locales): New function.
6675 (write_locales): Use it. Ensure the same locale is not printed
6676 multiple times in verbose mode.
6677 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
6678 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
6680 (struct nameent): New type.
6681 (nameentcmp): New function.
6683 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6685 * posix/regex_internal.c (re_string_context_at): Guard wide char
6686 code with #ifdef RE_ENABLE_I18N.
6688 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
6690 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
6692 2002-12-13 Roland McGrath <roland@redhat.com>
6694 * posix/bug-regex15.c: New file.
6695 * posix/Makefile (tests): Add it.
6697 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
6698 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
6700 2002-12-13 Ulrich Drepper <drepper@redhat.com>
6702 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
6704 * misc/syslog.c (log_cleanup): Don't use parameter in
6705 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
6706 pass NULL instead of a pointer to syslog_lock.
6708 2002-12-12 Ulrich Drepper <drepper@redhat.com>
6710 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
6711 linker map for all iconv modules.
6712 (distribute): Add gconv.map.
6713 * iconvdata/gconv.map: New file.
6715 * elf/Makefile: Also check all iconv modules for text relocations.
6717 * stdlib/Makefile: Remove code to automatically import GMP.
6719 * elf/Makefile (tests): Add rules to build and run check-textrel.
6720 * elf/check-textrel.c: New file.
6722 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
6725 2002-12-11 Jakub Jelinek <jakub@redhat.com>
6727 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
6730 2002-04-30 Bruno Haible <bruno@clisp.org>
6732 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
6733 the encoding if it already has slashes.
6734 Reported by Perry Rapp <prapp@erols.com>.
6736 2002-12-11 Roland McGrath <roland@redhat.com>
6738 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
6739 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
6740 Turn off PIC for compiling this file.
6742 2002-12-11 Ulrich Drepper <drepper@redhat.com>
6744 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
6745 definitions. Not needed.
6746 [_LIBC]: Use definitions from libc-lock.h instead of referencing
6747 pthread routines directly.
6748 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
6750 (arena_get2): Don't look at return value of mutex_lock.
6752 2002-12-11 Roland McGrath <roland@redhat.com>
6754 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
6755 elf-init.o instead of compiling a PIC version.
6757 2002-12-11 Bruno Haible <bruno@clisp.org>
6759 * intl/gettext.h: Renamed to ...
6760 * intl/gmo.h: ... here.
6761 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
6762 * intl/gettextP.h: Update.
6763 * intl/loadmsgcat.c: Update.
6765 * intl/gettextP.h (PARAMS): Make more portable.
6766 (attribute_hidden): Define as empty macro if not already defined.
6767 * intl/hash-string.h (PARAMS): Make more portable.
6768 * intl/loadinfo.h (PARAMS): Likewise.
6769 * intl/plural-exp.h (PARAMS): Likewise.
6770 (attribute_hidden): Move definition near the definition of
6773 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
6774 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
6776 2002-07-13 Bruno Haible <bruno@clisp.org>
6778 * intl/dcigettext.c (freea): New macro.
6779 (FREE_BLOCKS): Free also the registered blocks.
6780 (DCIGETTEXT): Free the 'search' variable.
6781 Reported by Andreas Fischer <a.fischer@asentics.de>.
6783 2002-04-27 Bruno Haible <bruno@clisp.org>
6785 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
6786 * intl/dcigettext.c: Likewise.
6787 * intl/dcgettext.c: Likewise.
6788 * intl/dgettext.c: Likewise.
6789 * intl/gettext.c: Likewise.
6790 * intl/dcngettext.c: Likewise.
6791 * intl/dngettext.c: Likewise.
6792 * intl/ngettext.c: Likewise.
6793 * intl/textdomain.c: Likewise.
6794 * intl/bindtextdom.c: Likewise.
6795 * intl/plural-exp.h: Likewise.
6797 2002-01-02 Bruno Haible <bruno@clisp.org>
6799 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
6801 2001-04-30 Bruno Haible <bruno@clisp.org>
6803 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
6804 default macro definitions. Needed for mingw32.
6806 2002-12-10 Ulrich Drepper <drepper@redhat.com>
6808 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
6809 __builtin_constant_p to macro parameter.
6811 * sysdeps/generic/sigpause.c: Define all functions as weak.
6812 * sysdeps/posix/sigpause.c: Likewise.
6814 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
6817 2002-12-10 Jakub Jelinek <jakub@redhat.com>
6819 * elf/tst-array1.c (preinit_array, init_array, fini_array):
6820 Explicitly align the array to sizeof (void *).
6821 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
6823 * include/libc-symbols.h: Fix a comment typo.
6825 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
6826 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
6828 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
6830 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
6831 (__libc_sigsuspend): Likewise.
6832 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
6833 (__libc_sigsuspend): Likewise.
6834 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
6835 (creat): New weak alias.
6837 2002-12-10 Roland McGrath <roland@redhat.com>
6839 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
6840 contributes a manual chapter.
6841 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
6844 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
6845 and move contents to ...
6846 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
6847 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
6848 it instead of duplicating its contents.
6849 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
6851 2002-12-09 Jakub Jelinek <jakub@redhat.com>
6853 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
6855 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
6857 (EXTRA_LD_ENVVARS): Use it.
6858 (DL_OSVERSION_INIT): Define.
6859 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
6861 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
6863 2002-12-10 Ulrich Drepper <drepper@redhat.com>
6865 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
6867 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
6868 call. It is not allowed to destroy pthread mutexes which are
6869 still in use even though it is safe for our implementations. If
6870 somebody still uses the descriptor it is a bug.
6872 2002-12-09 Richard Henderson <rth@redhat.com>
6874 * csu/abi-note.S: Use .p2align, not .align.
6876 2002-12-09 Ulrich Drepper <drepper@redhat.com>
6878 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
6879 __libc_select aliases.
6881 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
6884 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
6886 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
6888 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
6890 * sysdeps/unix/syscalls.list: Define __libc_select alias.
6892 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
6894 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
6895 __libc___xpg_sigpause aliases.
6897 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
6899 * misc/error.c: Remove use of USE_IN_LIBIO.
6901 2002-12-08 Roland McGrath <roland@redhat.com>
6903 * elf/Makefile (tests): Uncomment tst-array[123].
6904 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
6905 * csu/elf-init.c: New file.
6906 * csu/Makefile (routines, static-only-routines): Add elf-init.
6907 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
6908 and __libc_csu_fini in place of _fini.
6909 * sysdeps/arm/elf/start.S: Likewise.
6910 * sysdeps/cris/elf/start.S: Likewise.
6911 * sysdeps/hppa/elf/start.S: Likewise.
6912 * sysdeps/i386/elf/start.S: Likewise.
6913 * sysdeps/ia64/elf/start.S: Likewise.
6914 * sysdeps/m68k/elf/start.S: Likewise.
6915 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
6916 * sysdeps/mips/elf/start.S: Likewise.
6917 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
6918 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
6919 * sysdeps/s390/s390-32/elf/start.S: Likewise.
6920 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6921 * sysdeps/sh/elf/start.S: Likewise.
6922 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6923 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6924 * sysdeps/x86_64/elf/start.S: Likewise.
6926 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
6927 struct containing function ptr and value, free it.
6928 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
6929 It's not safe to let the new thread use the SIGEV pointer.
6931 2001-10-20 Paul Eggert <eggert@twinsun.com>
6933 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
6934 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
6935 Use strerror_r that is only a macro, even if it is not a function.
6936 (strerror): Check for HAVE_DECL_STRERROR before declaring.
6937 (private_strerror): Use prototypes, not old-style function definition.
6938 (print_errno_message): New function.
6939 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
6941 (error_tail, error, error_at_line): Use it.
6943 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
6945 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
6947 2002-12-08 Ulrich Drepper <drepper@redhat.com>
6949 * scripts/output-format.sed: Fix bug in one of the s expressions
6950 which used / for one too many things.
6952 * include/unistd.h: Declare __libc_close.
6954 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6956 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
6958 2002-12-07 Roland McGrath <roland@redhat.com>
6960 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
6961 from 2002-12-06, but remove unnecessary memset call without removing
6962 necessary copy of initialization image.
6964 * Makerules ($(common-objpfx)format.lds): New target.
6965 (common-generated): Add it.
6966 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
6967 * scripts/output-format.sed: New file.
6968 * Makefile (distribute): Add it.
6970 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6972 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
6973 Reported by Art Haas <ahaas@airmail.net>.
6975 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
6977 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
6979 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6981 * string/test-strncpy.c (do_random_tests): Improve test coverage.
6983 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6985 * test-skeleton.c (timeout_handler): Allow expected signal to be
6988 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
6990 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
6992 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6994 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
6995 (SYSCALL_ERROR_HANDLER): Fix a pasto.
6996 Reported by Jeff Bailey <jbailey@nisa.net>.
6998 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7000 * sysdeps/generic/libc-tls.c: Undo last patch.
7002 * include/wctype.h: Define iswalnum with libc_hidden_proto.
7004 * include/signal.h: Define raise with libc_hidden_proto.
7006 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
7007 __execve instead of snprintf and execve.
7009 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
7012 2002-12-06 Jakub Jelinek <jakub@redhat.com>
7014 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
7015 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
7017 2002-12-06 Ulrich Drepper <drepper@redhat.com>
7019 * misc/syslog.c (log_cleanup): New function.
7020 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
7021 (closelog): Likewise.
7023 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
7024 * elf/dl-iteratephdr.c: Likewise.
7025 * elf/dl-lookup.c: Likewise.
7026 * elf/dl-misc.c: Likewise.
7027 * elf/dl-open.c: Likewise.
7028 * elf/dl-support.c: Likewise.
7029 * elf/rtld.c: Likewise.
7030 * sysdeps/generic/ldsodefs.h: Likewise.
7031 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
7032 * sysdeps/mach/bits/libc-lock.h: Likewise.
7033 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7035 2002-12-06 Roland McGrath <roland@redhat.com>
7037 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
7039 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
7040 (malloc_starter, memalign_starter, free_starter): Don't define these.
7041 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
7042 Don't declare them either.
7043 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
7044 __pthread_initialize, so no need to set hooks to *_starter.
7045 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
7046 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
7047 (__libc_malloc_pthread_startup): New function.
7048 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
7050 * malloc/hooks.c (memalign_starter): New function.
7051 * malloc/malloc.c: Declare it.
7052 * malloc/arena.c (save_memalign_hook): New variable.
7053 (ptmalloc_init): Set __memalign_hook to memalign_starter.
7055 * elf/dl-minimal.c (free): Clear the memory.
7056 (calloc): Just call malloc, knowing all memory it returns is cleared.
7058 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
7059 malloc and memset; calloc can avoid the zeroing when redundant.
7060 (_dl_tls_setup): Likewise.
7061 * elf/dl-load.c (decompose_rpath): Likewise.
7062 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
7063 call, since memory from sbrk at startup is already zero.
7065 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
7066 error string for failure, null for success. Update callers.
7067 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
7068 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
7070 2002-12-05 Jakub Jelinek <jakub@redhat.com>
7072 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
7074 (readahead): Change args to i:iii.
7075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
7076 Change args to i:iii.
7077 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
7080 2002-12-05 Roland McGrath <roland@redhat.com>
7082 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
7083 call all functions rather than none.
7084 Reported by Mark P. Mitchell <mark@codesourcery.com>.
7086 2002-12-04 Roland McGrath <roland@redhat.com>
7088 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
7089 on _nl_current_LC_* variables.
7091 2002-12-05 Ulrich Drepper <drepper@redhat.com>
7093 * dirent/bug-readdir1.c (main): Don't call closedir, just close
7094 the file descriptor. This is testing what the bug report was about.
7096 2002-12-04 Ulrich Drepper <drepper@redhat.com>
7098 * po/be.po: New file.
7100 * argp/Makefile (tests): Add tst-argp1.
7102 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
7103 Change type of _attribute to void*.
7104 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7105 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7106 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
7107 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7108 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7110 2002-12-04 Roland McGrath <roland@redhat.com>
7112 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
7113 members to the end, so a libpthread compiled with !USE_TLS will still
7114 find other members properly.
7116 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
7117 operand for DEST memory. Fix dummy input operand to use SRC.
7118 Reported by Davin McCall <davmac@ozonline.com.au>.
7120 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
7121 alignment when initializing the DTV entry.
7123 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
7124 when TLS has not been set up, try to set it up if we can.
7125 * elf/tst-tls4.c: Revert last change.
7126 * elf/tst-tls5.c: Likewise.
7127 * elf/tst-tls6.c: Likewise.
7128 * elf/tst-tls7.c: Likewise.
7129 * elf/tst-tls8.c: Likewise.
7130 * elf/tst-tls9.c: Likewise.
7132 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
7133 * sysdeps/generic/ldsodefs.h: Declare it.
7134 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
7135 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
7136 function, broken out of __libc_setup_tls.
7137 (init_static_tls): Likewise.
7138 (__libc_setup_tls): Call them.
7139 (_dl_tls_setup): New function, uses new subroutines.
7141 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
7142 Clear the pointer when returning true.
7143 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
7144 first element of the slotinfo list too.
7146 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
7149 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
7150 (_dl_determine_tlsoffset): Likewise.
7152 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
7153 startup_error_tsd, made global.
7154 (dl_main): Update initialization.
7155 * elf/dl-tsd.c: Likewise.
7156 * sysdeps/generic/ldsodefs.h: Declare it.
7158 2002-12-03 Ulrich Drepper <drepper@redhat.com>
7160 * manual/texinfo.tex: Update from latest upstream version.
7162 2002-12-03 Roland McGrath <roland@redhat.com>
7164 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
7165 area surplus in calculation for sbrk call.
7167 * iconvdata/cp1125.c: New file.
7168 * iconvdata/Makefile (distribute): Add it.
7169 (modules): Add CP1125.
7170 (gen-8bit-gap-modules): Add cp1125.
7171 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
7172 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
7174 2002-12-03 Andreas Jaeger <aj@suse.de>
7176 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7178 2002-12-03 Ulrich Drepper <drepper@redhat.com>
7180 * sysdeps/posix/system.c (do_system): Make signal handler
7181 installation thread safe.
7183 2002-12-02 Roland McGrath <roland@redhat.com>
7185 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
7186 caller from EXTRA to -.
7187 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7188 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7189 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7191 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
7193 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
7194 bits of RM are cleared.
7196 2002-12-02 Roland McGrath <roland@redhat.com>
7198 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
7199 TLS setup is required.
7200 * elf/tst-tls5.c: Likewise.
7201 * elf/tst-tls6.c: Likewise.
7202 * elf/tst-tls7.c: Likewise.
7203 * elf/tst-tls8.c: Likewise.
7204 * elf/tst-tls9.c: Likewise.
7206 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
7207 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
7208 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
7209 for being null before calling free_slotinfo.
7210 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
7211 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
7213 2002-11-30 Bruno Haible <bruno@clisp.org>
7215 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
7216 (struct __gconv_step): New field __btowc_fct.
7217 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
7218 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
7220 (__gconv_btwoc_ascii): New declaration.
7221 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
7222 (__gconv_btwoc_ascii): New function.
7223 * iconv/gconv_builtin.h: Add BtowcFct argument to all
7224 BUILTIN_TRANSFORMATION invocations.
7225 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
7226 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
7227 * iconv/gconv_builtin.c (map): New field btowc_fct.
7228 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
7230 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
7231 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
7232 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
7233 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
7234 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
7235 (gconv_init): Initialize __btowc_fct field.
7236 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
7237 * iconv/loop.c: Document ONEBYTE_BODY.
7238 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
7239 Undefine ONEBYTE_BODY at the end.
7240 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
7241 * iconvdata/8bit-gap.c (NONNUL): New macro.
7242 (BODY for FROM_LOOP): Use it.
7243 (ONEBYTE_BODY): New macro.
7244 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
7245 (NONNUL): New macro.
7246 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
7247 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
7248 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
7249 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
7250 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
7251 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
7252 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
7253 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
7254 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
7255 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
7256 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
7257 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
7258 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
7259 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
7260 * iconvdata/ibm932.c: Include <stdbool.h>.
7261 (TRUE, FALSE): Remove macros.
7262 (BODY for FROM_LOOP): Remove unused variable rp1.
7263 (ONEBYTE_BODY): New macro.
7264 (BODY for TO_LOOP): Use bool.
7265 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
7266 * iconvdata/ibm943.c: Include <stdbool.h>.
7267 (TRUE, FALSE): Remove macros.
7268 (BODY for FROM_LOOP): Remove unused variable rp1.
7269 (ONEBYTE_BODY): New macro.
7270 (BODY for TO_LOOP): Use bool.
7271 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
7272 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
7273 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
7274 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
7275 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
7276 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
7277 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
7278 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
7279 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
7280 * iconvdata/gbbig5.c: Tweak comment.
7282 2002-12-02 Ulrich Drepper <drepper@redhat.com>
7284 * po/fi.po: Update from translation team.
7286 2002-12-01 Roland McGrath <roland@redhat.com>
7288 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7289 testing getdents64 return value.
7291 * scripts/versions.awk: Don't pass -n flag to sort command.
7293 * posix/bug-regex13.c: Include <string.h>.
7295 * sysdeps/generic/libc-start.c (__libc_start_main): Do
7296 DL_SYSDEP_OSCHECK here.
7297 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
7298 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
7300 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
7301 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
7303 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
7304 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
7306 * include/link.h: Comment typo fix.
7308 2002-12-01 Roland McGrath <roland@frob.com>
7310 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
7311 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
7312 _POSIX_MEMORY_PROTECTION): Likewise.
7313 (_POSIX_POLL, _POSIX_SELECT): Removed.
7315 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7317 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
7318 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
7320 2002-11-28 Jakub Jelinek <jakub@redhat.com>
7322 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
7324 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
7327 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7329 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
7330 branch prediction buffers by using unpaired call/ret.
7332 2002-11-27 Ulrich Drepper <drepper@redhat.com>
7334 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
7335 first parameters constraint string.
7336 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
7338 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
7340 * posix/regcomp.c (parse_expression): Set the bit since the back
7341 reference is used in the regular expression.
7342 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
7344 (re_node_set_init_copy): Likewise.
7345 * posix/regex_internal.h (state_array_t): New structure.
7346 (re_sub_match_last_t): Likewise.
7347 (re_sub_match_top_t): Likewise.
7348 (re_match_context_t): Add new members.
7349 (re_dfa_t): Likewise.
7350 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
7351 to check the matching is really correct, and retry if failed.
7352 Move the routin pruning the impossible nodes from here, ...
7353 (prune_impossible_nodes): To this function.
7354 (check_matching): Invoke check_subexp_matching_top, and replace
7355 redundant checking with transit_state_bkref invocation.
7356 (proceed_next_node): Replace strncmp with memcmp. Reported by
7357 Paolo Bonzini <bonzini@gnu.org>.
7358 (update_cur_sifted_state): Remove search_subexp invocation.
7359 (search_subexp): Remove this function.
7360 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
7362 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
7363 Remove unused invocation of match_ctx_add_entry.
7364 (transit_state): Invoke check_subexp_matching_top.
7365 (check_subexp_matching_top): New function.
7366 (transit_state_bkref): Remove unused array.
7367 Merge transit_state_bkref_loop.
7368 (transit_state_bkref_loop): Use get_subexp instead of
7369 sift_states_backward. Use search_cur_bkref_entry for optimization.
7370 Merge this function to transit_state_bkref.
7371 (get_subexp): New function.
7372 (get_subexp_sub): Likewise.
7373 (find_subexp_node): Likewise.
7374 (check_arrival): Likewise.
7375 (check_arrival_expand_ecl): Likewise.
7376 (check_arrival_expand_ecl_sub): Likewise.
7377 (expand_bkref_cache): Likewise.
7378 (match_ctx_init): Initialize new members.
7379 (match_ctx_clean): New function.
7380 (match_ctx_free): Release new members.
7381 (match_ctx_free_subtops): New function.
7382 (match_ctx_add_entry): Fix indent.
7383 (search_cur_bkref_entry): New function.
7384 (match_ctx_add_subtop): Likewise.
7385 (match_ctx_add_sublast): Likewise.
7387 2002-11-25 Ulrich Drepper <drepper@redhat.com>
7389 * iconv/Makefile (tests): Remove tst-iconv4.c
7390 * iconv/tst-iconv4.c: Moved to...
7391 * iconvdata/tst-iconv4.c: ...here. New file.
7392 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
7394 2002-11-25 Roland McGrath <roland@redhat.com>
7396 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
7397 Grok AF_LINK if defined.
7398 From Momchil Velikov <velco@fadata.bg>.
7400 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
7401 brdaddr, or dstaddr, just set those pointers to null and don't fail.
7402 Reported by Momchil Velikov <velco@fadata.bg>.
7404 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
7405 is > sizeof IFR->ifa_addr, advance past the whole longer length.
7406 (__ifreq): Count up NIFS that way too.
7407 Reported by Momchil Velikov <velco@fadata.bg>.
7409 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
7411 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
7412 and <fpu_control.h>.
7414 2002-11-24 Ulrich Drepper <drepper@redhat.com>
7416 * elf/elf.h (EM_ST19): Fix typo.
7418 2002-11-25 Jakub Jelinek <jakub@redhat.com>
7420 * include/errno.h (__set_errno): Define as errno = val
7423 2002-11-24 Roland McGrath <roland@redhat.com>
7425 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
7426 * sysdeps/posix/writev.c: Likewise.
7427 From Momchil Velikov <velco@fadata.bg>.
7429 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
7430 calling *GL(dl_error_catch_tsd) for a thread-local location.
7431 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
7432 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
7433 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
7435 * libio/iofflush.c: Add libc_hidden_def.
7436 * libio/iofwrite.c: Likewise.
7437 * sysdeps/generic/sigtimedwait.c: Likewise.
7438 * sysdeps/generic/sigwaitinfo.c: Likewise.
7439 * sysdeps/posix/sigwait.c: Likewise.
7440 Reported by Momchil Velikov <velco@fadata.bg>.
7442 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
7443 to match <arpa/inet.h> declaration.
7444 * inet/inet_netof.c (inet_netof): Likewise.
7445 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
7446 Reported by Momchil Velikov <velco@fadata.bg>.
7448 * configure.in: Skip AUTOCONF check under --without-cvs.
7449 * configure: Regenerated.
7451 * posix/Makefile (headers): Add bits/pthreadtypes.h.
7452 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
7453 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
7455 2002-11-24 Andreas Schwab <schwab@suse.de>
7457 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
7460 2002-11-19 Jim Meyering <jim@meyering.net>
7462 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
7464 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
7466 2002-11-23 Roland McGrath <roland@redhat.com>
7468 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
7469 Just produce hex output for datum sizes.
7471 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
7472 Reported by Luca Barbieri <ldb@ldb.ods.org>.
7474 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
7476 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
7477 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7478 and __unused3 fields.
7479 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
7480 [__WORDSIZE == 32]: Only PPC32 requires __unused1
7481 and __unused2 fields.
7482 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
7483 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7484 __unused3, and __unused4 fields.
7486 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
7487 obtain lowest address for profiling in __monstartup call.
7489 2002-11-21 Roland McGrath <roland@redhat.com>
7491 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
7492 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
7494 * locale/localeinfo.h (struct locale_data): Revert last change.
7496 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
7497 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7499 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
7500 __NR_pread64 if not defined.
7501 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
7502 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7504 2002-11-21 Roland McGrath <roland@frob.com>
7506 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
7507 __libc_multiple_libcs here. Call __setfpucw.
7509 2002-11-21 Ulrich Drepper <drepper@redhat.com>
7511 * elf/Makefile (tests): Don't run test-arrayX tests for now.
7513 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
7514 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
7515 CLONE_CHILD_*TID flags.
7517 2002-11-20 Andreas Jaeger <aj@suse.de>
7519 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
7520 We pass struct ucontext on x86-64.
7522 (GET_FRAME): Adjust.
7523 (GET_STACK): Adjust.
7525 2002-11-20 Roland McGrath <roland@redhat.com>
7527 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
7528 conditionalize [! DO_VERSIONING] #error.
7530 * scripts/abilist.awk: Grok function descriptor symbols.
7532 * intl/tst-gettext.c (main): Check return values from setlocale.
7533 Add necessary unsetenv's to make LANG=existing-locale check work.
7535 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
7536 so aborted prior runs don't confuse things.
7538 * locale/localeinfo.h (struct locale_data: union locale_data_value):
7539 Use uintptr_t instead of unsigned int for `word' member.
7540 (_NL_CURRENT_WORD): Cast to uint32_t.
7542 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
7545 2002-11-20 Ulrich Drepper <drepper@redhat.com>
7547 * elf/tls-macros.h: Add IA-64 definitions.
7548 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
7550 * iconv/Makefile (tests): Add tst-iconv4.
7551 * iconv/tst-iconv4.c: New file.
7553 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
7554 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
7555 __GCONV_INCOMPLETE_INPUT.
7556 (ucs4le_internal_loop): Likewise.
7557 (ucs4le_internal_loop_unaligned): Likewise.
7558 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
7559 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
7560 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
7562 * iconv/loop.c (LOOPFCT): First test for empty input then for full
7565 * inet/getnameinfo.c: Use extend_alloca where appropriate.
7566 * sysdeps/posix/getaddrinfo.c: Likewise.
7568 * include/alloca.h (extend_alloca): New define. Based on stack
7569 direction it'll try to append to the previouls allocated buffer.
7571 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
7573 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
7574 use the same service for AF_INET and AF_INET6.
7576 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7578 * intl/localealias.c (read_alias_file): Use only about 400 bytes
7579 of stack space instead of 16k.
7581 2002-11-18 Wolfram Gloger <wg@malloc.de>
7584 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
7585 nothing if not initialized. Bug report from Marcus Brinkmann
7586 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
7588 2002-11-19 Roland McGrath <roland@redhat.com>
7590 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
7593 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
7594 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
7595 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
7596 * configure: Regenerated.
7598 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7600 * include/dlfcn.h: __libc_dlopen is now a macro calling
7601 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
7602 (__libc_dlopen_mode): New prototype.
7603 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
7604 new parameter. Store new parameter in mode field of structure passed
7606 (struct do_dlopen_args): Add new field mode.
7607 (do_dlopen): Pass mode from parameter structure to _dl_open.
7609 2002-11-11 Randolf Chung <tausq@debian.org>
7611 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
7612 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
7613 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
7615 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
7617 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
7618 Set -mdisable-fpregs for this file.
7620 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
7622 * sysdeps/unix/sysv/linux/configure.in:
7623 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
7624 from gcc-3.0 era for backwards compatibility.
7625 * sysdeps/unix/sysv/linux/configure: Regenerate.
7627 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
7628 Define mcontext_t as a sigcontext.
7630 2002-11-18 Roland McGrath <roland@redhat.com>
7632 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
7633 Free memory in `last_result' if it was used.
7635 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
7636 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
7637 Do the parsing inline instead of copying strings and calling
7638 inet_network, and properly skip all alias names not matching the form.
7640 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
7642 2002-11-17 Ulrich Drepper <drepper@redhat.com>
7644 * manual/pattern.texi (Wordexp Example): Fix sample code.
7646 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
7647 childs stack which will be loaded into the %esi register.
7649 2002-11-14 Paul Eggert <eggert@twinsun.com>
7651 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
7652 overflow when skipping the question part and when unpacking aliases.
7654 2002-11-15 Roland McGrath <roland@redhat.com>
7656 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
7657 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
7658 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
7660 2002-11-15 Jakub Jelinek <jakub@redhat.com>
7662 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
7663 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
7665 2002-11-15 Roland McGrath <roland@redhat.com>
7667 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
7668 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
7669 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
7670 (+make-include-of-dep): New canned sequence.
7672 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
7673 From Dmitry V. Levin <ldv@altlinux.org>.
7675 2002-11-14 Roland McGrath <roland@redhat.com>
7677 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
7678 * inet/herrno.c (__libc_h_errno): Likewise.
7679 * resolv/res_libc.c (__libc_res): Likewise.
7680 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
7681 (__res_state) [! USE___THREAD]: Don't define as weak.
7682 * csu/Versions: Revert last change.
7683 * resolv/Versions: Revert last change.
7685 * Makerules ($(common-objpfx)%.make): New pattern rule.
7686 * tls.make.c: New file.
7687 * Makefile (distribute): Add it.
7689 * sysdeps/generic/errno.c [! USE___THREAD]
7690 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
7691 with compat_symbol so they are not link-time visible.
7692 [! USE___THREAD] (__libc_errno): New alias for errno.
7693 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7694 Add __libc_errno here.
7695 * inet/herrno.c [USE___THREAD]: Use this conditional
7696 in place of [USE_TLS && HAVE___THREAD].
7697 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
7698 (h_errno, _h_errno): Declare these with compat_symbol so they are not
7700 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
7701 * resolv/res_libc.c [! USE___THREAD]
7702 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
7703 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
7704 (__libc_res): Define as alias for _res.
7705 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7706 Add __libc_h_errno and __libc_res here.
7708 2002-11-14 Jakub Jelinek <jakub@redhat.com>
7710 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
7711 * resolv/Versions (h_errno, _res): Likewise.
7713 2002-11-14 Roland McGrath <roland@redhat.com>
7715 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
7716 (%.symlist): Likewise.
7718 2002-11-13 Roland McGrath <roland@redhat.com>
7720 * scripts/abilist.awk: New file.
7721 * Makefile (distribute): Add it.
7722 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
7723 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
7724 [$(subdir) = elf] (tests): Depend on libc.symlist.
7725 (generated, common-generated): Add those files.
7727 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
7728 * configure: Regenerated.
7729 * config.make.in (OBJDUMP): New variable, substituted by configure.
7731 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
7732 (mallochook, reallochook): Set them up.
7733 (checkhdr): Check HDR->magic2 value.
7734 (freehook): Reset HDR->magic2.
7735 (memalignhook): New static function.
7736 (old_memalign_hook): New static variable.
7737 (mcheck, reallochook): Set __memalign_hook to memalignhook.
7739 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
7742 2002-11-13 Andreas Jaeger <aj@suse.de>
7744 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
7746 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7748 2002-11-11 Paul Eggert <eggert@twinsun.com>
7750 * manual/crypt.texi (Cryptographic Functions): Mention that
7751 the MD5 one-way algorithm is compatible with BSD's.
7753 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
7755 * posix/regex_internal.c (re_string_skip_chars): Also return the last
7757 (re_string_reconstruct): Calculate the context by itself when the
7758 offset points out of the valid range.
7759 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
7760 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
7761 (IS_WIDE_WORD_CHAR): New macro.
7762 (IS_WIDE_NEWLINE): New macro.
7764 2002-11-12 Andreas Jaeger <aj@suse.de>
7766 * sysdeps/x86_64/strchr.S: Don't use one register for two
7767 purposes, this fixes a bug noticed by test-strchr.c.
7769 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
7772 2002-11-12 Roland McGrath <roland@redhat.com>
7774 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
7775 (_G_IO_NO_BACKWARD_COMPAT): Define it.
7777 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
7778 instead of <pt-machine.h>.
7779 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
7781 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7783 2002-11-10 Roland McGrath <roland@redhat.com>
7785 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
7786 Call fputs instead of fwprintf (simpler to follow in debugger).
7788 * crypt/md5-crypt.c: Doc fix.
7790 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
7791 the beginning of generated target commands.
7793 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
7794 dependencies for these in case implicit rule search skipped the
7795 nonexistent source directory.
7796 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
7797 files with $(object-suffixes) as targets too.
7798 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
7799 and a target for it using $(make-target-directory).
7801 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
7803 2002-11-10 Roland McGrath <roland@frob.com>
7805 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
7806 * sysdeps/generic/bits/pthreadtypes.h: ... here.
7808 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
7809 l_start == 0 and l_len == 1 as we do l_len == 0.
7811 2002-11-10 Ulrich Drepper <drepper@redhat.com>
7813 * po/da.po: Update from translation team.
7815 2002-11-10 Roland McGrath <roland@redhat.com>
7817 * config.make.in (includedir): New variable, substituted by configure.
7818 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
7819 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
7821 2002-11-10 Andreas Jaeger <aj@suse.de>
7823 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
7824 REG_OLDMASK and REG_CR2 to synch with kernel header.
7827 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
7829 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
7830 * nss/getnssent_r.c (__nss_getent_r): Likewise.
7831 (__nss_setent): Likewise.
7832 (__nss_getent_r): Likewise.
7833 * inet/getnetgrent_r.c (innetgr): Likewise.
7834 (__internal_setnetgrent_reuse): Likewise.
7835 (internal_getnetgrent_r): Likewise.
7836 * inet/ether_hton.c (ether_hostton): Likewise.
7837 * inet/ether_ntoh.c (ether_ntohost): Likewise.
7838 * sunrpc/netname.c (netname2user): Likewise.
7839 * sunrpc/publickey.c (getpublickey): Likewise.
7840 (getsecretkey): Likewise.
7842 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
7844 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
7845 error in range calculation.
7847 2002-10-09 Jakub Jelinek <jakub@redhat.com>
7849 * string/test-strspn.c (do_test): Ensure zero termination.
7850 * string/test-strpbrk.c (do_test): Likewise.
7851 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
7852 * string/test-strncpy.c (stupid_strncpy): Likewise.
7853 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
7855 2002-10-08 Roland McGrath <roland@redhat.com>
7857 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
7860 2002-09-22 H.J. Lu <hjl@gnu.org>
7862 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
7863 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
7864 only if __NR_mmap2 is defined.
7866 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
7867 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
7868 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
7869 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
7871 2002-11-08 Jakub Jelinek <jakub@redhat.com>
7873 * posix/bug-regex13.c (tests): Add new test.
7875 * string/test-strchr.c (stupid_strchr): New function.
7876 (do_random_tests): Make sure the string is zero terminated.
7877 * string/test-strpbrk.c (stupid_strpbrk): New function.
7878 (do_random_tests): Make sure the string is zero terminated.
7879 * string/test-strcmp.c (stupid_strcmp): New function.
7880 (do_random_tests): Make sure the strings are zero terminated.
7881 * string/test-strspn.c (stupid_strspn): New function.
7882 (simple_strspn): Rename rej argument to acc.
7883 (do_random_tests): Make sure the string is zero terminated.
7884 * string/test-strcspn.c (stupid_strcspn): New function.
7885 * string/test-strncpy.c (stupid_strncpy): New function.
7886 * string/test-stpncpy.c (stupid_stpncpy): New function.
7887 * string/test-strncmp.c (stupid_strncmp): New function.
7888 (do_random_tests): Make sure the strings are zero terminated.
7889 * string/test-string.h (impl_t): Change test into long.
7890 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
7892 2002-11-08 Roland McGrath <roland@redhat.com>
7894 * sysdeps/ia64/elf/configure.in: Add TLS check.
7895 From Ian Wienand <ianw@cse.unsw.edu.au>.
7896 * sysdeps/ia64/elf/configure: Regenerated.
7898 2002-11-07 Roland McGrath <roland@redhat.com>
7900 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
7901 place of _IO_new_do_write.
7902 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
7903 #undef before versioned_symbol use.
7905 2002-11-07 Richard Henderson <rth@redhat.com>
7907 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
7908 * configure: Regenerated.
7909 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
7910 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
7911 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
7912 _dl_fini via gp-relative relocations.
7913 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
7915 * elf/tls-macros.h: Add alpha versions.
7916 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
7917 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
7918 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
7919 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
7920 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7921 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
7922 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7923 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7924 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
7925 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7926 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
7927 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7928 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7929 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7930 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
7931 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
7932 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7933 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7935 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
7936 Kill argument registers across the inline syscall.
7938 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
7940 * linuxthreads/sysdeps/alpha/tls.h: New file.
7941 * sysdeps/alpha/dl-tls.h: New file.
7943 2002-10-29 David Mosberger <davidm@hpl.hp.com>
7945 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
7946 (gmon_initializer): New function.
7947 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
7948 __gmon_start__ here. Call it from gmon_initializer() instead.
7950 2002-03-12 H.J. Lu <hjl@gnu.org>
7952 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
7953 tst-array2, and tst-array3.
7954 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
7955 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
7956 ($(objpfx)tst-array1.out): New target.
7957 ($(objpfx)tst-array2): Likewise.
7958 ($(objpfx)tst-array2.out): Likewise.
7959 ($(objpfx)tst-array3.out): Likewise.
7960 * elf/tst-array1.c: New file.
7961 * elf/tst-array1.exp: Likewise.
7962 * elf/tst-array2.c: Likewise.
7963 * elf/tst-array2dep.c: Likewise.
7964 * elf/tst-array2.exp: Likewise.
7965 * elf/tst-array3.c: Likewise.
7967 2002-10-28 David Mosberger <davidm@hpl.hp.com>
7969 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
7970 Don't add L->l_addr to array entry values.
7972 2002-11-07 Jakub Jelinek <jakub@redhat.com>
7974 * string/test-string.h: New file.
7975 * string/test-strlen.c: New file.
7976 * string/test-string.h: New file.
7977 * string/test-strcmp.c: New file.
7978 * string/test-strchr.c: New file.
7979 * string/test-strrchr.c: New file.
7980 * string/test-strcpy.c: New file.
7981 * string/test-stpcpy.c: New file.
7982 * string/test-strncpy.c: New file.
7983 * string/test-stpncpy.c: New file.
7984 * string/test-strpbrk.c: New file.
7985 * string/test-strcspn.c: New file.
7986 * string/test-strspn.c: New file.
7987 * string/test-strcat.c: New file.
7988 * string/test-strncmp.c: New file.
7989 * string/test-memchr.c: New file.
7990 * string/test-memcmp.c: New file.
7991 * string/test-memset.c: New file.
7992 * string/test-memcpy.c: New file.
7993 * string/test-mempcpy.c: New file.
7994 * string/test-memmove.c: New file.
7995 * string/Makefile (strop-tests): New variable.
7996 (tests): Add strop-tests.
7997 (distribute): Add test-string.h.
7999 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8001 * posix/regcomp.c: Use tabs instead of spaces.
8002 * posix/regexec.c: Likewise.
8003 * posix/regex_internal.h: Likewise.
8005 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
8007 2002-11-06 Jakub Jelinek <jakub@redhat.com>
8009 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
8011 (regcomp): Don't set can_be_null here.
8012 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
8013 (re_compile_internal): Clear can_be_null, set regs_allocated.
8015 * posix/regcomp.c (re_set_fastmap): New function.
8016 (re_compile_fastmap_iter): Use it. Remove redundant type ==
8017 COMPLEX_BRACKET check.
8018 * posix/regexec.c (re_search_internal): Optimize searching with
8019 fastmap. Call re_string_reconstruct even if match_first is
8020 smaller than raw_mbs_idx.
8022 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8024 * posix/regcomp (free_dfa_content): Use free_state.
8025 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
8026 pointers in case that realloc failed.
8027 (re_node_set_merge): Likewise.
8028 (register_state): Likewise.
8029 (create_newstate_common): Invoke memory release functions in case of
8031 (create_ci_newstate): Likewise.
8032 (create_cd_newstate): Likewise.
8033 (free_state): New function.
8034 * posix/regexec.c (re_search_internal): Invoke memory release
8035 functions in case of error conditions.
8036 (sift_states_backward): Likewise.
8037 (merge_state_array): Likewise.
8038 (add_epsilon_src_nodes): Likewise.
8039 (sub_epsilon_src_nodes): Likewise.
8040 (search_subexp): Likewise.
8041 (sift_states_bkref): Likewise.
8042 (transit_state_sb): Likewise.
8043 (transit_state_mb): Likewise.
8044 (transit_state_bkref_loop): Likewise.
8045 (group_nodes_into_DFAstates): Likewise.
8046 (push_fail_stack): Don't edit pointers in case that realloc failed.
8047 (extend_buffers): Likewise.
8048 (match_ctx_add_entry): Likewise.
8050 2002-11-06 Roland McGrath <roland@redhat.com>
8052 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
8053 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8055 * configure.in: Add checks on as and ld for binutils 2.13 or later.
8056 * configure: Regenerated.
8058 2002-11-06 Ulrich Drepper <drepper@redhat.com>
8060 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
8061 If re_compile_internal failed free fastmap buffer.
8062 (free_dfa_content): Broken out of regfree function. Frees all dfa
8064 (regfree): Add free_dfa_content.
8065 (re_compile_internal): If any of the called functions fails free
8066 all dfa related memory.
8068 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8070 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
8071 warnings from the kernel headers.
8073 2002-11-05 Roland McGrath <roland@redhat.com>
8075 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
8076 From Johannes Stezenbach <js@convergence.de>.
8078 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
8079 #errlist-compat magic comment to give 123 as size.
8080 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
8081 (libc: GLIBC_2.2): ... here.
8082 (libc: GLIBC_2.3): Likewise.
8084 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8086 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
8087 which happens at the beginning so that we can unload modules in
8090 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8092 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
8093 under [__USE_MISC || _ASM].
8095 * elf/elf.h: Remove the obsolete SH TLS relocations.
8097 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8099 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
8101 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
8104 __NR_pread64 and __NR_pwrite64.
8105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8106 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
8108 Revert change to use INLINE_SYSCALL.
8109 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8110 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
8111 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8112 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
8114 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
8116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
8117 Update clobber list and add a comment about the syscall ABI.
8119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
8120 s_pwrite64, s_ftruncate, s_truncate): Re-add.
8122 2002-11-05 Jakub Jelinek <jakub@redhat.com>
8124 * iconv/gconv_dl.c (free_mem): Clear loaded.
8125 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
8128 2002-11-05 Ulrich Drepper <drepper@redhat.com>
8130 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
8132 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
8133 as old code without locking. _IO_seekoff calls this function after
8135 * libio/ioseekpos.c: Likewise for _IO_seekpos.
8136 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
8137 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
8139 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
8140 of _IO_seekoff_internal.
8141 (_IO_rewind): Likewise.
8142 * libio/ioftell.c: Likewise.
8143 * libio/ftello.c: Likewise.
8144 * libio/ftello64.c: Likewise.
8145 * libio/iofgetpos.c: Likewise.
8146 * libio/iofgetpos64.c: Likewise.
8147 * libio/oldiofgetpos.c: Likewise.
8148 * libio/oldiofgetpos64.c: Likewise.
8149 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
8150 _IO_seekpos_internal.
8151 * libio/iofsetpos64.c: Likewise.
8152 * libio/oldiofsetpos.c: Likewise.
8153 * libio/oldiofsetpos64.c: Likewise.
8155 2002-11-04 Roland McGrath <roland@redhat.com>
8157 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
8158 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
8159 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
8160 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
8161 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8162 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
8163 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8164 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
8165 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
8166 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
8167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
8168 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
8169 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
8170 Remove these, no longer used.
8172 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
8175 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
8176 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
8177 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
8178 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
8179 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
8182 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
8183 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8184 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
8186 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8187 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
8189 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8191 2002-11-03 Roland McGrath <roland@redhat.com>
8193 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
8194 `_dl_tls_static_used'.
8195 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
8196 (__libc_setup_tls): Initialize it. Let the initial value of
8197 _dl_tls_static_size indicate some surplus space in the computed value.
8198 * elf/dl-open.c (_dl_tls_static_size): New variable.
8199 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
8200 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
8201 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
8202 (CHECK_STATIC_TLS): Use it.
8203 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
8204 closed objects occupied a trailing contiguous chunk of static TLS area.
8206 2002-10-18 Bruno Haible <bruno@clisp.org>
8208 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
8210 2002-11-04 Ulrich Drepper <drepper@redhat.com>
8212 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
8213 _wide_data->_IO_read_end if adjustment can be made in the current
8216 * sysdeps/unix/sysv/linux/fexecve.c: New file.
8218 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
8219 wide oriented streams are used.
8221 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
8222 service hasn't been used [PR libc/4744].
8224 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
8225 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
8227 * manual/examples/dir.c: Don't include <stddef.h>.
8228 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
8229 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
8231 2002-11-02 H.J. Lu <hjl@gnu.org>
8233 * stdio-common/reg-printf.c: Include <stddef.h>.
8235 2002-11-03 Ulrich Drepper <drepper@redhat.com>
8237 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
8239 * po/ca.po: Update from translation team.
8240 * po/es.po: Likewise.
8242 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
8243 is defined write out memory map.
8244 * sysdeps/unix/sysv/linux/segfault.c: New file.
8246 2002-11-02 Roland McGrath <roland@redhat.com>
8248 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
8249 pointers that can alias.
8250 Reported by Daniel Jacobowitz <drow@mvista.com>.
8252 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
8254 2002-11-02 Roland McGrath <roland@redhat.com>
8256 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
8257 description to be clearer and to say that *RESULT is set to ENTRY.
8259 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8261 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
8262 dests_ch arrays together. Alloca or malloc dest_states,
8263 dest_states_word and dest_states_nl arrays together. Free memory on
8266 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
8268 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
8269 and current_saltbits.
8271 2002-11-02 Roland McGrath <roland@redhat.com>
8273 * stdio-common/reg-printf.c: Include <stdlib.h>.
8275 2002-11-02 H.J. Lu <hjl@gnu.org>
8277 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
8278 caller to EXTRA instead of execve.
8280 2002-11-01 Roland McGrath <roland@redhat.com>
8282 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
8283 in place of [!(USE_TLS && HAVE___THREAD)].
8284 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
8286 2002-10-31 Roger Sayle <roger@eyesopen.com>
8288 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
8290 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8292 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
8293 without defining FP_ROUNDMODE.
8295 2002-10-29 Jakub Jelinek <jakub@redhat.com>
8297 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
8298 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
8300 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
8301 (OLD_SIGLIST_SIZE): Define.
8302 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
8303 (OLD_SIGLIST_SIZE): Define.
8304 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
8306 2002-11-01 Jakub Jelinek <jakub@redhat.com>
8308 * sysdeps/ia64/strncpy.S: Fix recovery code.
8310 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8312 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
8314 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
8316 * elf/dl-libc.c (free_mem): Likewise.
8317 * iconv/gconv_conf.c (free_mem): Likewise.
8318 * iconv/gconv_db.c (free_mem): Likewise.
8319 * iconv/gconv_dl.c (free_mem): Likewise.
8320 * iconv/gconv_cache.c (free_mem): Likewise.
8321 * intl/finddomain.c (free_mem): Likewise.
8322 * intl/dcigettext.c (free_mem): Likewise.
8323 * locale/setlocale.c (free_mem): Likewise.
8324 * misc/fstab.c (fstab_free): Likewise.
8325 * nss/nsswitch.c (free_mem): Likewise.
8326 * posix/regcomp.c (free_mem): Likewise.
8327 * resolv/gai_misc.c (free_res): Likewise.
8328 * stdlib/fmtmsg.c (free_mem): Likewise.
8329 * sunrpc/clnt_perr.c (free_mem): Likewise.
8330 * sysdeps/generic/setenv.c (free_mem): Likewise.
8331 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
8332 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
8333 * time/tzset.c (free_mem): Likewise.
8334 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
8335 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
8336 * malloc/set-freeres.c (__libc_freeres): Likewise.
8338 * login/getutent.c: Include stdlib.h instead of stddef.h.
8339 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8340 (__getutent): Allocate buffer the first time it is run.
8341 * login/getutid.c: Include stdlib.h instead of stddef.h.
8342 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8343 (__getutid): Allocate buffer the first time it is run.
8344 * login/getutline.c: Include stdlib.h instead of stddef.h.
8345 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8346 (__getutline): Allocate buffer the first time it is run.
8347 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
8348 (mtrace): Allocate malloc_trace_buffer.
8349 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
8350 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
8351 * string/strerror.c: Include libintl.h and errno.h.
8352 (buf): New variable.
8353 (strerror): Only allocate buffer if actually needed (unknown error).
8354 * time/tzfile.c (transitions): Add libc_freeres_ptr.
8357 2002-10-25 Jakub Jelinek <jakub@redhat.com>
8359 * include/libc-symbols.h (libc_freeres_ptr): New macro.
8360 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
8362 (__libc_freeres): Free all pointers in that section.
8363 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
8364 commands when creating .lds script.
8365 (LDSEDCMD-c.so): New variable.
8366 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8367 (rcmd_af): Use strdup to allocate ahostbuf.
8368 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8369 (rexec_af): Use strdup to allocate ahostbuf.
8370 * stdio-common/reg-printf.c (printf_funcs): Remove.
8371 (__printf_arginfo_table): Change into printf_arginfo_function **.
8372 Add libc_freeres_ptr.
8373 (__register_printf_function): Allocate __printf_arginfo_table
8374 and __printf_function_table the first time it is called.
8375 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
8376 printf_arginfo_function **.
8377 (parse_one_spec): Add __builtin_expect.
8378 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
8380 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
8382 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
8383 (string_space, map): Add libc_freeres_ptr.
8385 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
8387 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
8389 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
8390 (buffer): Add libc_freeres_ptr.
8391 (free_mem): Remove for _LIBC.
8392 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
8394 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
8396 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
8398 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
8400 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
8402 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
8404 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
8407 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
8411 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8413 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
8414 instead of duplicating the whole function in libc.
8416 2002-10-31 Roland McGrath <roland@redhat.com>
8418 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
8419 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
8421 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8423 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
8424 32bit-predefine when creating .new32 list and -U for each
8425 32bit-predefine when creating .new64 list.
8426 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
8428 2002-10-29 Andreas Schwab <schwab@suse.de>
8430 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
8431 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
8433 2002-10-25 Roland McGrath <roland@redhat.com>
8435 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
8436 * sysdeps/unix/sysv/linux/configure: Regenerated.
8438 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
8439 _dl_starting_up decl.
8441 2002-10-20 H.J. Lu <hjl@gnu.org>
8443 * sysdeps/unix/sysv/linux/configure.in: Don't check
8444 /lib/modules/`uname -r`/build/include for kernel headers if
8446 * sysdeps/unix/sysv/linux/configure: Regenerated.
8448 2002-10-25 Roland McGrath <roland@redhat.com>
8450 * math/math.h (M_LOG2El): Correct the value.
8451 From Stephen L Moshier <steve@moshier.net>.
8453 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
8454 conditional from __libc_multiple_libcs access. Remove kludge for weak
8455 symbol access with old compilers we no longer support.
8456 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8457 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
8459 2002-10-25 Roland McGrath <roland@redhat.com>
8461 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
8462 implement SV_RESETHAND by translating it to SA_RESETHAND.
8464 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
8466 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
8467 type on ELF64 platforms.
8469 2002-10-24 Ulrich Drepper <drepper@redhat.com>
8471 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
8473 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
8475 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8477 * elf/dl-misc.c: Include <sysdep.h>.
8478 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
8480 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
8481 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8482 (INLINE_SYSCALL): Use that.
8483 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
8484 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8485 (INLINE_SYSCALL): Use that.
8486 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
8487 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8488 (INLINE_SYSCALL): Use that.
8489 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
8491 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8492 (__INTERNAL_SYSCALL_STRING): Define.
8493 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8495 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8496 (__INTERNAL_SYSCALL_STRING): Define.
8497 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
8498 __SYSCALL_STRING to inline_syscall*.
8499 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
8501 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
8502 inline_syscall4, inline_syscall5, inline_syscall6): Add string
8505 2002-10-24 Roland McGrath <roland@redhat.com>
8507 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
8508 * sysdeps/unix/sysv/linux/init-first.c: Not here.
8509 * sysdeps/powerpc/elf/libc-start.c: Or here.
8510 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
8511 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
8512 * sysdeps/unix/sysv/aix/init-first.c: Or here.
8513 * sysdeps/generic/libc-start.c: Or here.
8514 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
8515 access with [! SHARED].
8516 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8518 * libio/bug-wfflush.c: New file.
8519 * libio/Makefile (tests): Add bug-wfflush.
8521 2002-10-23 Roland McGrath <roland@redhat.com>
8523 * stdio-common/tst-fphex.c: New file.
8524 * stdio-common/Makefile (tests): Add tst-fphex.
8525 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
8526 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
8527 chars always before the value digits.
8528 Reported by James Antill <james.antill@redhat.com>.
8530 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8532 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
8533 (free_mem): New function.
8534 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
8535 if not cross compiling.
8536 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
8537 (bug-regex14-ENV): Set.
8538 (bug-regex14-mem): New target.
8539 * posix/bug-regex14.c: New file.
8541 2002-10-23 Roland McGrath <roland@redhat.com>
8543 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
8544 target, so we don't touch it when the link fails.
8546 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
8547 Check for the result overflowing off_t and fail with EOVERFLOW.
8548 * libio/ioftell.c (_IO_ftell): Likewise.
8549 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8551 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
8552 use a temporary timeval on the stack for gettimeofday and copy it.
8553 * login/logout.c (logout): Likewise.
8554 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8556 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
8557 Use __SWORD_TYPE instead of int for member types.
8558 (struct statfs64): Likewise.
8559 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
8560 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
8561 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
8562 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
8563 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
8565 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
8566 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
8567 (ST_NODIRATIME): Restore fixed value of 2048.
8568 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
8569 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
8571 Rearranged <bits/types.h> definitions to reduce duplication.
8572 * sysdeps/generic/bits/types.h: Rewritten, using macros from
8573 <bits/wordsize.h> and new header <bits/typesizes.h>.
8574 * posix/Makefile (headers): Add bits/typesizes.h here.
8575 * sysdeps/generic/bits/typesizes.h: New file.
8576 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
8577 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
8578 * sysdeps/mach/hurd/bits/typesizes.h: New file.
8579 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
8580 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
8581 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
8582 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
8583 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
8584 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
8585 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
8586 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
8587 <bits/pthreadtypes.h> here, not in <bits/types.h>.
8588 * signal/signal.h: Likewise.
8590 * streams/stropts.h: Include <bits/xtitypes.h>.
8591 * streams/Makefile (headers): Add bits/xtitypes.h here.
8592 * sysdeps/generic/bits/xtitypes.h: New file.
8593 * sysdeps/s390/bits/xtitypes.h: New file.
8594 * sysdeps/ia64/bits/xtitypes.h: New file.
8595 * sysdeps/x86_64/bits/xtitypes.h: New file.
8597 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
8598 * sysdeps/generic/bits/ipctypes.h: New file.
8599 * sysdeps/mips/bits/ipctypes.h: New file.
8600 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
8601 * sysdeps/gnu/bits/msq.h: Likewise.
8602 * sysvipc/sys/ipc.h: Likewise.
8604 2002-10-22 Ulrich Drepper <drepper@redhat.com>
8606 * elf/dl-load.c (struct filebuf): For buf element to have the
8607 alignment of ElfXX_Ehdr since this is what will be stored in it.
8609 2002-10-22 Jakub Jelinek <jakub@redhat.com>
8611 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
8612 into pointer to locrec_offset.
8613 (add_locale_to_archive): Adjust callers. Free normalized_name right
8614 before returning, not immediately after add_locale, pass it to
8615 add_alias if not NULL instead of name. Rename second normalized_name
8616 occurence to nnormalized_codeset_name.
8618 * locale/programs/locarchive.c (enlarge_archive): Make sure
8619 string_size is always a multiple of 4.
8620 Reported by Andreas Schwab <schwab@suse.de>.
8622 2002-10-21 Andreas Schwab <schwab@suse.de>
8624 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
8625 caller to EXTRA instead of execve, since the latter has a
8626 higher-priority implementation in linuxthreads.
8628 2002-10-21 Roland McGrath <roland@redhat.com>
8630 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
8631 slotinfo list's len member to the proper size, not just 1.
8632 Initialize static_map.l_tls_initimage.
8634 * elf/dl-open.c (dl_open_worker): Fix loop searching for
8635 dtv_slotinfo_list element containing new modules' l_tls_modid.
8637 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
8638 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
8639 * elf/Makefile (tests): Add tst-tls9.
8640 (tests-static): Add tst-tls9-static.
8641 (tst-tls9-static-ENV): New variable.
8642 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
8644 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
8645 modids used by partially loaded modules being closed can't be known.
8647 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
8649 * posix/Makefile: Add a test case for the bug reported by Aharon
8650 Robbins <arnold@skeeve.com>.
8651 * posix/bug-regex13.c: New file.
8652 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
8654 2002-10-21 Ulrich Drepper <drepper@redhat.com>
8656 * csu/gmon-start.c: Pretty printing.
8658 2002-10-19 Art Haas <ahaas@neosoft.com>
8660 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
8661 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
8662 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
8663 * configure: Regenerated.
8665 2002-10-19 Roland McGrath <roland@redhat.com>
8667 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
8668 and then set $subdirs directly, because the new Autoconf breaks
8669 compatibility in every way imaginable and insists on whining
8670 about usage that worked since the dawn of time.
8671 * configure: Regenerated.
8673 * configure: Regenerated (using Autoconf 2.54).
8674 * sysdeps/alpha/elf/configure: Likewise.
8675 * sysdeps/generic/configure: Likewise.
8676 * sysdeps/i386/elf/configure: Likewise.
8677 * sysdeps/ia64/elf/configure: Likewise.
8678 * sysdeps/mach/hurd/configure: Likewise.
8679 * sysdeps/mach/configure: Likewise.
8680 * sysdeps/unix/configure: Likewise.
8681 * sysdeps/unix/common/configure: Likewise.
8682 * sysdeps/unix/sysv/aix/configure: Likewise.
8683 * sysdeps/unix/sysv/linux/configure: Likewise.
8684 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8685 * sysdeps/x86_64/elf/configure: Likewise.
8687 * config.make.in: Nix completely-soft nonsense.
8688 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
8689 of machine directories instead of fpu subdirectory.
8690 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
8691 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
8692 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
8693 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
8694 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
8695 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
8696 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
8697 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
8698 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
8699 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
8700 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
8701 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
8702 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
8703 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
8704 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
8705 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
8706 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
8707 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
8708 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
8709 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
8710 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
8711 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
8712 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
8713 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
8714 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
8715 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
8716 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
8717 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
8718 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
8719 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
8720 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
8721 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
8722 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
8723 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
8724 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
8725 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
8726 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
8727 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
8728 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
8729 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
8731 2002-10-19 Bruno Haible <bruno@clisp.org>
8733 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
8735 2002-10-18 Roland McGrath <roland@redhat.com>
8737 * io/Makefile (routines): Add lchmod.
8738 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
8739 * sysdeps/generic/lchmod.c: New file.
8740 * sysdeps/mach/hurd/lchmod.c: New file.
8741 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
8743 2002-10-18 Art Haas <ahaas@neosoft.com>
8745 * configure.in: Remove remaining AC_FD_CC macros, and replace
8746 AC_FD_MSG with AS_MESSAGE_FD.
8748 2002-10-18 Roland McGrath <roland@redhat.com>
8750 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
8751 typos: VALUE -> FINALADDR.
8753 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
8754 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
8755 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
8756 (inline_syscall6): Move these macros ...
8757 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
8759 * configure.in (libc_link_dests, libc_link_sources): Remove these
8760 variables and the AC_LINK_FILES call.
8762 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
8763 change to put new symbols here instead of in GLIBC_2.2.
8764 * sysdeps/powerpc/Subdirs: Move this file ...
8765 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
8767 2002-10-07 Roland McGrath <roland@redhat.com>
8769 * sysdeps/generic/bits/time.h: Replaced with contents of the
8770 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
8771 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
8772 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
8773 macros is ok even for architectures that don't now implement them.
8774 * sysdeps/mach/hurd/bits/time.h: File removed.
8775 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
8776 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
8777 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
8778 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
8779 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
8781 2002-10-18 Jeff Bailey <jbailey@gnu.org>
8783 * configure.in: Replace obsolete AC_OUTPUT syntax with
8784 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
8786 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
8787 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
8789 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
8790 * sysdeps/alpha/elf/configure.in: Likewise.
8791 * sysdeps/i386/elf/configure.in: Likewise.
8792 * sysdeps/mach/hurd/configure.in: Likewise.
8793 * sysdeps/x86_64/elf/configure.in: Likewise.
8795 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
8797 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
8798 * sysdeps/generic/configure.in: Likewise.
8799 * sysdeps/i386/elf/configure.in: Likewise.
8800 * sysdeps/ia64/elf/configure.in: Likewise.
8801 * sysdeps/mach/configure.in: Likewise.
8802 * sysdeps/mach/hurd/configure.in: Likewise.
8803 * sysdeps/unix/configure.in: Likewise.
8804 * sysdeps/unix/common/configure.in: Likewise.
8805 * sysdeps/unix/sysv/aix/configure.in: Likewise.
8806 * sysdeps/unix/sysv/linux/configure.in: Likewise.
8807 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
8808 * sysdeps/x86_64/elf/configure.in: Likewise.
8810 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
8811 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
8812 that it's obvious when extra autoconf machinery is being dragged in.
8814 2002-10-18 Roland McGrath <roland@redhat.com>
8816 * configure.in: Remove bogus echo included in
8817 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
8818 * configure: Regenerated.
8820 2002-10-18 Jakub Jelinek <jakub@redhat.com>
8822 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
8823 (statfs_filesize_max): New function.
8824 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
8825 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
8826 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
8827 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
8828 statfs_filesize_max.
8829 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8830 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
8831 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
8833 2002-10-17 Roland McGrath <roland@redhat.com>
8835 * configure.in (MIG): Just AC_SUBST it here.
8836 * configure: Regenerated.
8837 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
8838 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
8839 * sysdeps/mach/configure: Regenerated.
8841 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
8842 and AC_PROVIDE([_AS_CR_PREPARE]).
8844 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
8845 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
8847 * elf/dl-support.c: Move _dl_tls_* variables to ...
8848 * sysdeps/generic/libc-tls.c: ... here.
8850 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
8851 allow IDX to be one past the current last slotinfo entry.
8852 (_dl_close): Pass IMAP->l_init_called for that parameter.
8854 2002-10-07 Andreas Schwab <schwab@suse.de>
8856 * aclocal.m4: Fix for autoconf 2.53.
8857 * configure.in: Likewise. Require autoconf 2.53.
8859 2002-10-08 Richard Henderson <rth@redhat.com>
8861 * soft-fp/op-4.h: Handle carry correctly in
8862 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
8863 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
8864 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
8866 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
8868 * configure.in: Compute completely-soft.
8869 * config.make.in: Make completely-soft available to sub-makes.
8870 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
8871 gcc-double-routines. Add sim-full.c. Add fenv_const and
8872 fe_nomask to libm-support.
8873 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
8874 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
8875 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
8876 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
8877 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
8878 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
8879 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
8880 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
8881 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
8882 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
8883 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
8884 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
8885 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
8886 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
8887 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
8888 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
8889 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
8890 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
8891 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
8892 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
8894 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
8895 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
8896 FP_HANDLE_EXCEPTIONS.
8897 Define FP_ROUNDMODE.
8898 Redefine FP_* macros to correspond to the FE_* bit positions.
8899 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
8900 Define externs for __sim_exceptions, __sim_disabled_exceptions,
8901 __sim_round_mode, __simulate_exceptions.
8902 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
8903 * sysdeps/powerpc/bits/fenv.h: ...to here.
8905 2002-10-06 Jakub Jelinek <jakub@redhat.com>
8907 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8908 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
8909 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
8910 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
8913 2002-10-15 Jakub Jelinek <jakub@redhat.com>
8915 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
8916 __libc_res_nsend): New prototypes.
8917 * resolv/res_query.c (QUERYSIZE): Define.
8918 (__libc_res_nquery): Renamed from res_nquery. Added answerp
8919 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
8920 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
8921 res_nsend, pass answerp.
8922 (res_nquery): Changed into wrapper around __libc_res_nquery.
8923 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
8924 argument. Call __libc_res_nquerydomain and __libc_res_nquery
8925 instead of the non-__libc_ variants, pass them answerp.
8926 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
8927 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
8928 Added answerp argument. Call __libc_res_nquery instead of
8929 res_nquery, pass answerp.
8930 (res_nquerydomain): Changed into wrapper around
8931 __libc_res_nquerydomain.
8932 * resolv/res_send.c: Include sys/ioctl.h.
8933 (MAXPACKET): Define.
8934 (send_vc): Change arguments. Reallocate answer buffer if it is
8936 (send_dg): Likewise.
8937 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
8938 Reallocate answer buffer if it is too small and hooks are in use.
8939 Adjust calls to send_vc and send_dg.
8940 (res_nsend): Changed into wrapper around __libc_res_nsend.
8941 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
8942 just 1K answer buffer on the stack, use __libc_res_nsearch instead
8944 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
8945 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8946 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
8947 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
8948 (gethostbyaddr): Similarly with __libc_res_nquery.
8949 * resolv/Versions (libresolv): Export __libc_res_nquery and
8950 __libc_res_nsearch at GLIBC_PRIVATE.
8952 2002-10-17 Roland McGrath <roland@redhat.com>
8954 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
8955 * configure: Regenerated.
8957 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
8958 before performing the reloc, not after.
8959 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8961 2002-10-17 Ulrich Drepper <drepper@redhat.com>
8963 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
8964 * locale/programs/linereader.c (lr_open): Likewise.
8965 * locale/programs/charmap-dir.c (charmap_open): Likewise.
8966 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8968 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8970 * posix/bug-regex11.c: Add a test case for the bug reported by
8971 Paolo Bonzini <bonzini@gnu.org>.
8972 * posix/regexec.c (sift_states_bkref): Use correct destination of
8975 2002-10-17 Roland McGrath <roland@redhat.com>
8977 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
8978 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
8979 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
8980 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8981 Call it after performing TPOFF relocs.
8982 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8983 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8984 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
8986 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
8987 when closing a partially-initialized object.
8989 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
8990 instead of _dl_fatal_printf when we see PT_TLS.
8992 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
8993 instead of $(libof-$<).
8995 2002-10-16 Roland McGrath <roland@redhat.com>
8997 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
8998 instead of += to append, to be sure $(lib) gets expanded at defn time.
8999 (libof-$(cpp-src)): New variable, define this instead.
9000 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
9001 (lib): Don't use override.
9002 (CPPFLAGS-$(lib)): New variable, put -D's here.
9003 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
9004 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
9005 LIB found by $(libof-*) for basename, target, or source.
9006 * Makerules (CPPFLAGS-nonlib): New variable.
9007 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
9008 * locale/Makefile (lib): Likewise.
9009 * sunrpc/Makefile (lib): Likewise.
9011 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
9012 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
9013 * sysdeps/unix/sysv/linux/pathconf.h: New file.
9014 (statfs_link_max): New function, guts from fpathconf.c.
9015 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
9016 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9017 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
9018 to use the linux/pathconf.c code by #include rather than duplication.
9019 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
9021 2002-10-16 Jakub Jelinek <jakub@redhat.com>
9023 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9024 Use __libc_errno only for libc itself.
9026 2002-10-16 Andreas Jaeger <aj@suse.de>
9028 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
9030 2002-10-16 Ulrich Drepper <drepper@redhat.com>
9032 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9033 Use __libc_errno only for libc itself.
9035 2002-10-15 Roland McGrath <roland@redhat.com>
9036 Jakub Jelinek <jakub@redhat.com>
9038 * sysdeps/unix/sysv/linux/Makefile
9039 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
9040 sparc/Makefile to produce a bi-arch file as needed.
9041 That's now parameterized by the variable $(64bit-predefine).
9042 Use LC_ALL=C for `comm' commands in that rule.
9043 No longer conditional on [$(no_syscall_list_h)].
9044 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
9045 (64bit-predefine): New variable.
9046 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
9047 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
9048 * sysdeps/unix/sysv/linux/powerpc/Makefile
9049 (64bit-predefine): New variable.
9051 2002-10-15 Roland McGrath <roland@redhat.com>
9053 * sysdeps/unix/sysv/linux/Makefile
9054 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
9056 * login/utmp-private.h: Declare __libc_utmp_lock.
9057 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
9058 and call __libc_utmp_jump_table functions directly, instead of using
9061 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
9062 * sysdeps/unix/sysv/linux/configure: Regenerated.
9064 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
9065 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9066 Use int32_t for ll_time.
9067 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
9068 Use int32_t instead of long int for ut_session.
9069 Use an anonymous struct with 32-bit fields for ut_tv.
9070 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
9071 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
9072 here as in utmp.h for `struct utmp'.
9073 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
9074 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
9075 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
9076 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
9077 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
9078 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
9080 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
9081 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
9082 All the following files were identical or equivalent to it.
9083 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
9084 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
9085 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
9086 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
9087 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
9088 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
9089 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
9090 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
9091 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
9092 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
9094 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
9095 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
9096 Other than the previously incorrect sign of msg_iovlen, this is a
9097 no-op on 32-bit platforms. On 64-bit platforms it makes this header
9098 match their layouts as well, so the following are now identical to it.
9099 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
9100 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
9101 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
9102 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
9103 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
9105 2002-10-15 Ulrich Drepper <drepper@redhat.com>
9107 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9108 Define for 2.4+ kernels.
9110 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
9111 are known to have the vfork syscall. Don't confuse the CPUs
9112 branch prediction unit by jumping to the return address.
9114 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
9115 support for reiserfs and xfs.
9117 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
9119 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
9121 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
9123 2002-10-16 Jakub Jelinek <jakub@redhat.com>
9125 * include/libc-symbols.h (attribute_tls_model_ie): Define.
9126 * include/errno.h (errno): Define to __libc_errno in libc.so.
9127 Add attribute_tls_model_ie.
9128 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
9129 Add attribute_tls_model_ie.
9130 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
9131 attribute_tls_model_ie.
9132 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
9134 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
9136 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
9137 attribute_tls_model_ie.
9138 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
9140 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
9141 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
9142 __libc_errno in USE___THREAD case.
9143 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9145 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
9146 __attribute__((tls_model (""))).
9147 * configure: Rebuilt.
9148 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
9150 2002-10-15 Ulrich Drepper <drepper@redhat.com>
9152 * timezone/asia: Update from tzdata2002d.
9153 * timezone/australasia: Likewise.
9154 * timezone/iso3166.tab: Likewise.
9155 * timezone/southamerica: Likewise.
9156 * timezone/zone-tab: Likewise.
9158 2002-10-15 Roland McGrath <roland@redhat.com>
9160 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
9161 Adjust TCB pointer before calling free, so we get the whole block.
9163 2002-10-14 Roland McGrath <roland@redhat.com>
9165 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
9166 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
9167 extern using attribute_hidden instead of static, avoids warning.
9169 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9171 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
9172 * sysdeps/unix/sysv/linux/configure: Rebuilt.
9174 2002-10-14 Ulrich Drepper <drepper@redhat.com>
9176 * po/sv.po: Update from translation team.
9178 2002-10-12 H.J. Lu <hjl@gnu.org>
9180 * sunrpc/thrsvc.c (PROCQUIT): New.
9181 (struct rpc_arg): New.
9182 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
9183 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
9184 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
9185 (main): Modified for struct rpc_arg *.
9187 2002-10-14 Ulrich Drepper <drepper@redhat.com>
9189 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
9191 2002-10-14 Jakub Jelinek <jakub@redhat.com>
9193 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
9194 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
9195 in ld.so even if __thread is supported.
9197 2002-10-13 Jakub Jelinek <jakub@redhat.com>
9199 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
9200 Add hack to prevent the compiler from clobbering the signal context.
9201 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
9203 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
9206 2002-10-14 Andreas Jaeger <aj@suse.de>
9208 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
9209 Guido Guenther <agx@sigxcpu.org>.
9211 2002-10-14 Ulrich Drepper <drepper@redhat.com>
9213 * po/sk.po: Update from translation team.
9215 2002-09-26 Roland McGrath <roland@redhat.com>
9217 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
9219 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
9220 DL_DST_LIB based on $(slibdir).
9222 2002-10-13 Roland McGrath <roland@frob.com>
9224 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
9226 * sysdeps/mach/hurd/getresuid.c: New file.
9227 * sysdeps/mach/hurd/getresgid.c: New file.
9228 * sysdeps/mach/hurd/setresuid.c: New file.
9229 * sysdeps/mach/hurd/setresgid.c: New file.
9231 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
9232 setresgid): Declare them.
9235 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
9236 add libc_hidden_proto.
9237 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
9238 getresuid, getresgid, setresuid, setresgid here.
9239 * Versions.def (libc): Define GLIBC_2.3.2 set.
9240 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
9241 Add libc_hidden_def.
9242 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
9243 * sysdeps/generic/setresgid.c: New file.
9244 * sysdeps/generic/setresuid.c: New file.
9245 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9246 (sysdep_routines): Don't add getresuid and getresgid here.
9247 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
9248 (sysdep_routines): Don't add setresuid and setresgid here.
9249 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
9250 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
9251 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9252 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
9253 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9254 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9255 * posix/Makefile (routines): Add them all here instead.
9256 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
9257 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
9258 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
9259 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
9260 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
9261 [! __NR_setresuid]: Include generic file.
9262 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
9263 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
9264 [! __NR_setresuid]: Include generic file.
9265 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
9266 Caller is - now, not EXTRA.
9267 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
9268 (setresuid, setresgid, getresuid, getresgid): Likewise.
9269 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
9270 Add these calls here.
9271 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
9272 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9273 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9274 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9275 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
9277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9278 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9279 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9281 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9282 (sysdep_routines): Add setfsuid and setfsgid here.
9283 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
9284 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
9285 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
9286 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
9287 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9288 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
9289 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9290 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9292 * hurd/errno.c: Renamed to ...
9293 * hurd/errno-loc.c: ... this.
9294 * hurd/Makefile (routines): errno -> errno-loc
9296 2002-10-13 Ulrich Drepper <drepper@redhat.com>
9298 * po/de.po: Update from translation team.
9300 * MakeTAGS: Add -E flag to xgettext runs.
9302 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9304 * po/fr.po: Update from translation team.
9306 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
9307 Optimize a bit for use in glibc.
9309 2002-10-12 Roland McGrath <roland@redhat.com>
9311 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
9312 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
9314 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9316 * po/sv.po: Update from translation team.
9318 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9320 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
9322 (regfree): Likewise.
9323 (create_initial_state): Likewise.
9324 (analyze): Remove the substitutions which became useless.
9325 (calc_first): Likewise.
9326 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
9327 epsilon destination.
9328 (duplicate_node_closure): New function.
9329 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
9330 (calc_inveclosure): Likewise.
9331 (calc_eclosure): Likewise.
9332 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
9333 direct invocation of duplicate_node.
9334 (parse): Don't use comma operator in the return to avoid compiler
9336 (parse_reg_exp): Likewise.
9337 (parse_branch): Likewise.
9338 (parse_expression): Likewise.
9339 (parse_sub_exp): Likewise.
9340 (parse_dup_op): Likewise.
9341 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
9342 which became useless.
9343 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
9344 (create_cd_newstate): Likewise.
9345 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
9346 (re_token_t): Likewise.
9347 (re_dfa_t): Likewise.
9348 (re_node_set_remove): New macro.
9349 * posix/regexec.c (check_matching): Remove the handling
9351 (check_halt_node_context): Likewise.
9352 (proceed_next_node): Likewise.
9353 (pop_fail_stack): Fix the memory leak.
9354 (set_regs): Likewise.
9355 (free_fail_stack_return): New function.
9356 (sift_states_backward): Fix the memory leak. Remove the handling
9358 (update_cur_sifted_state): Append some if clause to avoid redundant
9360 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
9362 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
9363 (check_subexp_limits): Likewise.
9364 (search_subexp): Likewise.
9365 (sift_states_bkref): Likewise.
9366 (transit_state_mb): Likewise.
9367 (transit_state_bkref_loop): Likewise.
9368 (transit_state_bkref_loop): Likewise.
9369 (group_nodes_into_DFAstates): Likewise.
9370 (check_node_accept): Likewise.
9371 (sift_ctx_init): Add initializing.
9373 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9375 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
9378 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9380 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
9381 duplicated variable c.
9383 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
9386 * sysdeps/unix/sysv/linux/i386/sysdep.h
9387 (INTERNAL_SYSCALL_ERROR_P): New define.
9388 (INTERNAL_SYSCALL_ERRNO): Likewise.
9390 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
9391 Add hack to prevent the compiler from clobbering the signal context.
9393 2002-10-11 Roland McGrath <roland@redhat.com>
9395 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9398 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
9399 * sysdeps/sh/dl-lookupcfg.h: File removed.
9400 * sysdeps/i386/dl-lookupcfg.h: File removed.
9402 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
9403 missing labels and ; from last change.
9405 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
9406 number literals, so they are doubles instead of ints.
9408 2002-10-09 Roland McGrath <roland@redhat.com>
9410 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
9411 changed from [USE_TLS && HAVE___THREAD].
9413 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
9414 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
9415 * sysdeps/x86_64/dl-machine.h
9416 (elf_machine_type_class, elf_machine_rela): Likewise.
9417 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
9420 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
9421 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
9422 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
9424 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
9425 instead of ___tls_get_addr.
9426 (___tls_get_addr_internal): Add attribute_hidden to decl.
9428 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
9429 _dl_error_catch_tsd.
9430 * elf/rtld.c (startup_error_tsd): New function.
9431 (dl_main): Point _dl_error_catch_tsd at that.
9432 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
9433 use new function pointer instead.
9434 * elf/dl-tsd.c: New file.
9435 * elf/Makefile (routines): Add it.
9437 2002-10-07 Roland McGrath <roland@redhat.com>
9439 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
9440 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
9441 take _dl_load_lock around calling __writev.
9443 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
9444 (INLINE_SYSCALL): Use that.
9446 * sysdeps/generic/dl-sysdep.h: New file.
9447 * sysdeps/mach/hurd/dl-sysdep.h: New file.
9448 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
9449 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
9450 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
9452 * elf/dl-minimal.c (__errno_location): Removed.
9453 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9454 Use GOTOFF access for errno.
9455 * sysdeps/unix/sysv/linux/i386/sysdep.h
9456 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9458 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9459 Use PC-relative access for errno.
9460 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9461 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9463 * include/tls.h: New file.
9464 (USE___THREAD): New macro.
9465 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
9467 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
9468 changed from [USE_TLS && HAVE___THREAD].
9469 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9470 * sysdeps/unix/i386/sysdep.S: Likewise.
9471 * sysdeps/unix/x86_64/sysdep.S: Likewise.
9472 * include/errno.h: Likewise.
9473 * include/netdb.h: Likewise.
9474 * include/resolv.h: Likewise.
9476 * sysdeps/generic/errno.c: New file.
9477 * csu/Makefile (aux): New variable, list errno.
9478 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
9479 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
9480 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
9481 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9482 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9483 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
9484 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
9485 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
9486 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9487 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
9488 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
9489 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
9490 * sysdeps/unix/alpha/sysdep.S: Likewise.
9491 * sysdeps/generic/start.c: Likewise.
9492 * sysdeps/unix/start.c: Likewise.
9493 * sysdeps/unix/arm/start.c: Likewise.
9494 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
9495 * sysdeps/unix/sparc/start.c: Likewise.
9496 * sysdeps/unix/sysv/irix4/start.c: Likewise.
9497 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
9499 * manual/search.texi (Tree Search Function, Hash Search Function):
9500 Mention search.h clearly.
9502 2002-10-05 Roland McGrath <roland@redhat.com>
9504 * elf/dl-fxstat64.c: File removed.
9505 * elf/dl-xstat64.c: File removed.
9506 * elf/Makefile (rtld-routines): Remove them.
9507 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
9508 Instead, use strong_alias instead of versioned_symbol in the
9510 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
9511 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9513 * include/shlib-compat.h
9514 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
9515 [! NOT_IN_libc] (IS_IN_libc): Define it.
9516 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
9517 * elf/Makefile (CPPFLAGS-.os): Likewise.
9519 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
9520 Return the status instead of calling exit.
9522 * Makeconfig (CFLAGS): Prepend -std=gnu99.
9523 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
9524 Remove superfluous rm command, whose @ plus make bugs hid
9525 all these commands from the make output.
9527 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
9528 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
9529 Use that file's contents instead of literal echo's for the prologue.
9530 * include/features.h: Include <gnu/stubs.h> unconditionally.
9531 * include/gnu/stubs.h: New file.
9533 2002-09-30 Roland McGrath <roland@redhat.com>
9535 * elf/rtld-Rules: New file.
9536 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
9537 $(objpfx)rtld-libc.a): New targets.
9538 (generated): Add them.
9539 (reloc-link): Remove -o $@ from the variable.
9540 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
9541 (distribute): Add rtld-Rules.
9542 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
9543 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
9544 (common-mostlyclean, common-clean): Clean up rtld-* files.
9545 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
9547 2003-05-20 Jakub Jelinek <jakub@redhat.com>
9549 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
9550 If temp != NULL, copy dynamic entries which need relocation to temp
9551 array before relocating.
9552 (DL_RO_DYN_TEMP_CNT): Define.
9553 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
9554 * elf/rtld.c (_dl_start): Likewise.
9555 (dl_main): Likewise. Add dyn_temp static variable.
9557 2002-10-11 Roland McGrath <roland@redhat.com>
9559 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
9560 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
9562 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
9563 proper set of no-op insn prefixes.
9565 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
9567 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9569 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
9570 __pthread_kill_other_threads_np.
9572 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
9574 2002-10-08 Roland McGrath <roland@redhat.com>
9576 * locale/newlocale.c (__newlocale): If setting all categories to "C",
9577 just return &_nl_C_locobj instead of copying it.
9578 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
9579 * locale/duplocale.c (__duplocale): Likewise.
9581 2002-10-07 Roland McGrath <roland@frob.com>
9583 * config.h.in (HAVE_I386_SET_GDT): New #undef.
9584 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
9585 * sysdeps/mach/configure: Regenerated.
9587 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9589 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9590 Add all necessary register outputs for syscall-clobbered registers.
9592 2002-10-02 David Mosberger <davidm@hpl.hp.com>
9594 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
9595 Itanium 2 (and Itanium).
9596 Fix unwind directives and make it fit in 80 columns.
9597 * sysdeps/ia64/memset.S: Likewise.
9598 * sysdeps/ia64/memcpy.S: Likewise.
9599 Move jump table to .rodata section.
9601 2002-10-03 Roland McGrath <roland@frob.com>
9603 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
9606 2002-10-10 Andreas Jaeger <aj@suse.de>
9608 * sysdeps/x86_64/_mcount.S: Restore correct registers.
9610 2002-10-10 Ulrich Drepper <drepper@redhat.com>
9612 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
9614 2002-10-09 Ulrich Drepper <drepper@redhat.com>
9616 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
9617 _dl_allocate_tls_init. Add rtld_hidden_proto.
9618 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
9620 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
9622 * version.h (VERSION): Bump to 2.3.1.
9624 * Make-dist: Add back one of the tar invocations removed before.
9626 * stdlib/Makefile (distribute): Add allocalim.h.
9628 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
9629 (__libc_tsd_address): Use correct variable name.
9630 Patch by Stefan Jones <stefan.jones@multigig.com>.
9632 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
9633 Reported by edwardsg@sgi.com [PR libc/4678].
9635 * Versions.def (libc): Add GLIBC_2.3.1.
9636 (libpthread): Add GLIBC_2.3.1.
9638 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
9640 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
9641 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
9643 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
9644 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9646 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
9647 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
9648 and make old name an alias.
9649 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
9650 and make old name an alias.
9651 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
9654 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
9655 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
9657 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
9659 * sysdeps/posix/readv.c: Likewise
9660 * sysdeps/unix/sysv/aix/readv.c: Likewise.
9661 * sysdeps/unix/sysv/linux/readv.c: Likewise.
9662 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
9664 * sysdeps/posix/writev.c: Likewise
9665 * sysdeps/unix/sysv/aix/writev.c: Likewise.
9666 * sysdeps/unix/sysv/linux/writev.c: Likewise.
9668 * include/sys/wait.h: Declare __waitid.
9669 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
9670 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
9672 * sysdeps/posix/waitid.c: Likewise.
9673 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
9675 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
9677 2002-10-07 Jakub Jelinek <jakub@redhat.com>
9679 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
9681 (__MAX_ALLOCA_CUTOFF): Define.
9682 Include allocalim.h.
9683 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
9684 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
9685 host_buffer depending on __libc_use_alloca.
9686 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
9687 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
9688 net_buffer depending on __libc_use_alloca.
9689 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
9690 buf depending on __libc_use_alloca.
9691 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
9692 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
9693 instead of hardcoded constants.
9694 Pass proper size argument to alloca and compute end for wide char
9696 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
9697 instead of hardcoded constants.
9698 * string/strcoll.c (strcoll): Likewise.
9699 * string/strxfrm.c (strxfrm): Likewise.
9700 * sysdeps/posix/readv.c (__readv): Likewise.
9701 * sysdeps/posix/writev.c (__writev): Likewise.
9702 * sysdeps/generic/allocalim.h: New file.
9704 2002-10-08 Roland McGrath <roland@redhat.com>
9706 * configure.in (aux_missing warning): Change "too old" to
9707 "incompatible versions", since for autoconf it's "too new" right now.
9708 * configure: Regenerated.
9710 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
9711 one found doesn't work on our configure.in.
9712 * configure: Regenerated.
9713 * config.make.in (AUTOCONF): New substituted variable.
9714 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
9715 (autoconf-it): ... here, use that instead of defining conditionally.
9716 Use $(AUTOCONF) instead of literal autoconf.
9717 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
9718 with this condition.
9719 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
9721 2002-10-08 Ulrich Drepper <drepper@redhat.com>
9723 * Make-dist (dist): Cleanup a bit. We are not interested in the
9724 14 char filename limit anymore. Remove intermediate files and
9727 2002-10-05 Ulrich Drepper <drepper@redhat.com>
9729 * po/sk.po: Update from translation team.
9730 * po/tr.po: Likewise.
9731 * po/gl.po: Likewise.
9733 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9735 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
9737 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9739 * version.h (RELEASE): Change to stable.
9741 2002-10-03 Jakub Jelinek <jakub@redhat.com>
9743 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
9744 __syscall_exit_group): New prototypes.
9746 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9748 * glibc 2.3 released.
9751 See ChangeLog.13 for earlier changes.