1 2003-10-03 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
4 * sysdeps/i386/elf/setjmp.S: Likewise.
6 2003-10-02 Roland McGrath <roland@redhat.com>
8 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
10 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
11 (__argp_short_program_name): Don't declare fn, define it as a macro.
13 2003-08-22 Simon Josefsson <jas@extundo.com>
15 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
17 * argp/argp-help.c: Don't include malloc.h, some platforms
18 complain and it doesn't appear to be used.
19 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
21 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
23 (hol_entry_long_iterate): Change __attribute to __attribute__.
24 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
25 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
26 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
27 modifed after comments from Ulrich Drepper.
28 (__argp_short_program_name): Ditto.
29 (__argp_state_help, __argp_error, __argp_failure): Use it.
30 (__argp_failure): Use strerror when necessary.
32 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
33 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
34 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
35 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
36 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
37 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
38 non-unlocked functions.
39 [!_LIBC]: Add prototypes for __argp_basename and
40 __argp_short_program_name.
42 * argp/argp-parse.c (argp_default_parser): Only use
43 program_invocation{_short,}_name if declared.
44 (parser_init): Use __argp_short_program_name.
46 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
47 '#include features.h'.
49 * argp/argp.h [!__attribute__]: Define to nothing.
51 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
53 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
54 for the first token in a subexpression as well.
56 2003-10-02 Jakub Jelinek <jakub@redhat.com>
58 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
60 (parse_reg_exp): Likewise.
61 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
63 * posix/bug-regex11.c (tests): Add new tests.
64 * posix/bug-regex12.c (tests): Add new test.
66 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
68 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
69 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
71 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
73 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
74 the old thread-m.h header too.
76 2003-10-02 Ulrich Drepper <drepper@redhat.com>
78 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
79 back to 131027 since this is what the kernel enforces.
81 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
82 define it with libc_freeres_ptr.
84 2003-10-01 Roland McGrath <roland@redhat.com>
86 * elf/rtld.c (dl_main): Add cast in last change.
88 2003-09-10 Chris Demetriou <cgd@broadcom.com>
90 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
91 "#if 0" surrounding most of contents.
92 (SYSCALL_ERROR_LABEL): Define.
93 (__SYSCALL_CLOBBERS): Add $10.
94 (internal_syscall7): Remove.
95 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
97 2003-09-30 Ulrich Drepper <drepper@redhat.com>
99 * elf/rtld.c (dl_main): Also set l_map_start.
101 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
103 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
104 to work around kernel problem.
106 2003-09-27 Wolfram Gloger <wg@malloc.de>
108 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
109 "thread-m.h", so that default parameters can be overridden in a
110 system-specific malloc-machine.h. Remove extra ; from extern "C"
112 * sysdeps/generic/malloc-machine.h: New file.
113 * sysdeps/mach/hurd/malloc-machine.h: New file.
114 * malloc/thread-m.h: Removed.
115 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
116 is in sysdeps/generic/malloc-machine.h now.
118 2003-09-29 Ulrich Drepper <drepper@redhat.com>
120 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
121 variables only used if TLS_TCB_AT_TP is defined into the #if
124 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
125 well to cover using long long in C90.
127 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
129 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
130 Redefine and use __libc_cleanup_region_end instead.
132 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
134 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
135 fix prototypes for picky C++ compilers.
137 2003-09-27 Ulrich Drepper <drepper@redhat.com>
139 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
140 the device ID is invalid and return -1.
141 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
143 2003-09-26 Andreas Schwab <schwab@suse.de>
145 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
146 rt_sigprocmask system call.
148 2003-09-25 Roland McGrath <roland@redhat.com>
150 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
151 Don't check for zero __libc_stack_end, it should be initialized.
152 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
153 and fall back if it fails with EINVAL.
154 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
156 2003-09-25 Jakub Jelinek <jakub@redhat.com>
158 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
159 sysdeps/i386/dl-procinfo.c instead of
160 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
161 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
164 2003-09-25 Ulrich Drepper <drepper@redhat.com>
166 * posix/regcomp.c (peek_token): Remove recent changes for anchor
168 (parse_reg_exp): Likewise.
169 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
171 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
174 * nis/nis_table.c (nis_list): Always strdup string used with
175 ibreq->ibr_name. Add several NULL pointer checks.
177 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
179 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
180 * nis/nss_nisplus/nisplus-grp.c: Likewise.
181 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
182 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
183 * nis/nss_nisplus/nisplus-network.c: Likewise.
184 * nis/nss_nisplus/nisplus-proto.c: Likewise.
185 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
186 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
187 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
188 * nis/nss_nisplus/nisplus-service.c: Likewise.
189 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
191 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
193 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
194 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
195 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
196 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
197 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
198 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
199 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
200 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
201 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
202 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
203 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
205 2003-09-25 Jakub Jelinek <jakub@redhat.com>
207 * misc/syslog.c: Include locale.h.
208 (vsyslog): Add date always in C locale %h %e %T format.
210 2003-09-24 Paul Eggert <eggert@twinsun.com>
212 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
213 size_t overflow when reallocating storage.
214 * argp/argp-help.c (make_hol, hol_append): Likewise.
215 (SIZE_MAX): New macro.
217 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
219 * sysdeps/mach/hurd/bits/libc-lock.h
220 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
222 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
224 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
225 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
226 #include_next dl-procinfo.h to get them.
227 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
228 (_DL_PLATFORMS_COUNT): Likewise.
229 (_DL_FIRST_PLATFORM): Likewise.
230 (_DL_HWCAP_PLATFORM): Likewise.
231 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
232 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
233 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
234 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
235 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
236 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
237 HWCAP_IMPORTANT): Likewise.
238 (_DL_PROCINFO_H_): Likewise.
239 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
240 (_dl_string_platform): Likewise.
241 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
242 * sysdeps/i386/dl-procinfo.c: ... here, new file.
244 2003-09-24 Ulrich Drepper <drepper@redhat.com>
246 * sysdeps/unix/sysv/linux/dl-execstack.c
247 (_dl_make_stack_executable): Remember that we changed the permission.
249 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
250 __libc_stack_end. Patch by David Mosberger.
252 2003-09-24 Jakub Jelinek <jakub@redhat.com>
254 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
255 __libc_stack_end@GLIBC_PRIVATE.
257 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
258 (_dl_sysdep_start): Set __libc_stack_end here.
259 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
261 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
262 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
263 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
264 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
265 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
266 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
267 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
268 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
269 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
270 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
271 (RTLD_START): Remove setting of __libc_stack_end.
272 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
273 (RTLD_START): Remove setting of __libc_stack_end.
275 2003-09-24 Ulrich Drepper <drepper@redhat.com>
277 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
278 function definitions. Adjust macro expansions accordingly.
279 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
281 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
283 2003-09-24 Jakub Jelinek <jakub@redhat.com>
285 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
288 2003-09-24 Jakub Jelinek <jakub@redhat.com>
290 * nscd/Makefile (others): Add nscd before including ../Rules.
292 2003-09-24 Ulrich Drepper <drepper@redhat.com>
294 * nscd/Makefile: Add rules to build nscd as a PIE.
295 * configure.in: Check for -fpie and -pie compiler options.
296 * config.make.in (have-fpie): Define.
298 2003-09-23 Ulrich Drepper <drepper@redhat.com>
300 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
302 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
303 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
304 * sysdeps/unix/sysv/linux/makedev.c: New file.
305 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
306 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
307 (sysdep_routines): Add makedev.
308 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
309 major, minor, makedev.
310 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
312 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
313 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
314 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
315 Code by Alexander Viro <aviro@redhat.com>.
317 2003-09-23 Ulrich Drepper <drepper@redhat.com>
319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
320 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
322 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
323 for include Altivec support for PPC32. It was not compatible.
324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
325 offsets for ucontext_t change.
326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
327 for ucontext_t change. Add compatibility code.
328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
331 Patch by Paul Mackerras <paulus@samba.org>.
333 2003-02-25 Randolph Chung <tausq@debian.org>
335 * sysdeps/hppa/Makefile: Include compat code in build.
336 * sysdeps/hppa/libgcc-compat.c: New file.
337 * sysdeps/hppa/Dist: Add libgcc-compat.c.
338 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
340 2003-09-23 Roland McGrath <roland@redhat.com>
342 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
343 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
344 Move GL(dl_make_stack_executable_hook) initialization up.
345 * elf/tst-execstack-prog.c: New file.
346 * elf/Makefile (tests-execstack-yes): Add it.
347 (LDFLAGS-tst-execstack-prog): New variable.
349 2003-09-23 Jakub Jelinek <jakub@redhat.com>
351 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
352 before calling _dl_start, using %rip relative access.
353 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
356 2003-09-23 Roland McGrath <roland@redhat.com>
358 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
359 calling _dl_start, using GOTOFF access.
361 * configure.in (libc_cv_z_execstack): New check.
362 * configure: Regenerated.
363 * config.make.in (have-z-execstack): New variable set by it.
364 * elf/tst-execstack.c: New file.
365 * elf/tst-execstack-mod.c: New file.
366 * elf/tst-execstack-needed.c: New file.
367 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
369 (tests, modules-names): Conditionally include them.
370 (distribute): Add tst-execstack-mod.c here.
371 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
372 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
373 ($(objpfx)tst-execstack-needed): New target.
374 (LDFLAGS-tst-execstack-needed): New variable.
376 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
377 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
378 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
379 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
380 Initialize _dl_make_stack_executable_hook.
381 * elf/dl-support.c: Define those new variables.
382 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
383 (_dl_phdr): Fix type.
384 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
385 enable execute permission for the stack if necessary.
386 * sysdeps/generic/dl-execstack.c: New file.
387 * elf/Makefile (dl-routines): Add it.
388 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
389 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
391 2003-09-23 Ulrich Drepper <drepper@redhat.com>
393 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
395 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
397 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
398 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
401 2003-09-22 Ulrich Drepper <drepper@redhat.com>
403 * malloc/malloc.c: Include <stdint.h>.
405 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
407 * posix/regcomp.c (build_word_op): Rename like...
408 (build_charclass_op): ...this. Accept two extra parameters,
409 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
410 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
411 (parse_expression): Replace build_word_op with
412 build_charclass_op, add new arguments, accept OP_SPACE
414 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
417 * posix/regcomp.c (peek_token): Don't look back for ( or |
418 to check whether to treat a caret as special. It fails
419 for the (extended) regex \(^.
420 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
421 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
423 * posix/regexec.c: Check out of bounds value before shifting.
425 * posix/regex_internal.h: Define __attribute for non-gcc.
427 2003-09-22 Jakub Jelinek <jakub@redhat.com>
429 * include/atomic.h (atomic_compare_and_exchange_val_rel,
430 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
433 * sysdeps/unix/opendir.c: Include string.h.
435 2003-09-22 Ulrich Drepper <drepper@redhat.com>
437 * timezone/zdump.c: Update from tzcode2003c.
438 * timezone/zic.c: Likewise.
439 * timezone/leapseconds: Update from tzdata2003c.
441 2003-09-19 Ulrich Drepper <drepper@redhat.com>
443 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
444 final build to ease quality control.
446 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
447 ld.so, don't include NULL buffer pointer handling.
449 2003-09-19 Jakub Jelinek <jakub@redhat.com>
451 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
453 2003-09-18 Jakub Jelinek <jakub@redhat.com>
455 * libio/memstream.c (open_memstream): Use _IO_init instead of
458 2003-09-17 Ulrich Drepper <drepper@redhat.com>
460 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
461 have to recognize octal and hexadecimal numbers as well. Simplify
462 function, signs are handled in strtol.
463 * posix/wordexp-test.c: Add tests for octal and hexadecimal
464 numbers in arithmetic expressions.
466 2003-09-17 Jakub Jelinek <jakub@redhat.com>
468 * elf/Makefile (distribute): Add tst-alignmod.c.
469 (tests): Add tst-align.
470 (modules-names): Add tst-alignmod.
471 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
472 $(stack-align-test-flags).
473 ($(objpfx)tst-align): Depend on libdl.
474 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
475 * elf/tst-align.c: New file.
476 * elf/tst-alignmod.c: New file.
477 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
478 * misc/tst-tsearch.c: Include tst-stack-align.h.
479 (stack_align_check): New array.
480 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
481 (main): Report error if stack was not enough aligned
482 in cmp_fn or walk_action.
483 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
484 * stdlib/tst-qsort.c: Include tst-stack-align.h.
485 (align_check): New var.
486 (compare): Use TEST_STACK_ALIGN () macro.
487 (main): Report error if stack was not enough aligned in compare.
488 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
489 unneeded -mpreferred-stack-boundary=4.
490 * sysdeps/x86_64/tst-stack-align.h: New file.
492 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
493 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
495 2003-09-17 Philip Blundell <philb@gnu.org>
497 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
499 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
501 * sysdeps/arm/sysdep.h (DO_RET): New.
503 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
504 required but not defined. Improve test of error code.
506 2003-09-17 Jakub Jelinek <jakub@redhat.com>
508 * sysdeps/i386/Makefile (stack-align-test-flags): Add
509 -malign-double -mpreferred-stack-boundary=4.
511 2003-09-17 Ulrich Drepper <drepper@redhat.com>
513 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
514 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
516 2003-09-15 Jakub Jelinek <jakub@redhat.com>
518 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
519 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
521 2003-09-17 Jakub Jelinek <jakub@redhat.com>
523 * Makeconfig (stack-align-test-flags): Set.
524 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
525 $(stack-align-test-flags).
526 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
527 (align_check): New var.
528 (comp): Use TEST_STACK_ALIGN macro.
529 (do_test): Fail if align_check != 1.
530 * sysdeps/generic/tst-stack-align.h: New file.
531 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
532 * sysdeps/i386/i686/tst-stack-align.h: New file.
534 2003-09-17 Ulrich Drepper <drepper@redhat.com>
536 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
537 stack which is aligned (mod 16).
539 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
540 Hans-Peter Nilsson <hp@axis.com>
542 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
543 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
545 2003-09-17 Jakub Jelinek <jakub@redhat.com>
547 * dirent/scandir.c: Include bits/libc-lock.h.
548 (struct scandir_cancel_struct): New type.
549 (cancel_handler): New function.
550 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
551 scandir_cancel_struct.
553 2003-09-16 Ulrich Drepper <drepper@redhat.com>
555 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
556 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
557 Add internal_statvfs.
558 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
559 instead of including "internal_statvfs.c".
560 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
561 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
562 Add code to avoid the stat calls on all the reported mount points
563 when we can determine mismatch in advance.
564 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
565 USBDEVFS_SUPER_MAGIC.
567 2003-09-16 Jakub Jelinek <jakub@redhat.com>
569 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
570 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
572 2003-09-16 Bruno Haible <bruno@clisp.org>
574 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
575 invoking msgfmt, not before.
577 2003-09-15 Jakub Jelinek <jakub@redhat.com>
579 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
580 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
582 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
583 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
584 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
585 * elf/dl-iteratephdr.c (cancel_handler): New function.
586 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
587 * elf/link.h (dl_iterate_phdr): Remove __THROW.
588 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
589 Add $(uses-callbacks).
590 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
591 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
592 $(exceptions) to $(uses-callbacks).
593 * Makeconfig (uses-callbacks): Set to $(exceptions).
594 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
596 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
599 2003-09-15 Andreas Schwab <schwab@suse.de>
601 * sysdeps/m68k/setjmp.c: Add hidden_def.
603 2003-09-14 Ulrich Drepper <drepper@redhat.com>
605 * libio/memstream.c (open_memstream): Don't allow wide char operations.
607 * dirent/dirent.h: Remove __THROW from scandir.
609 2003-09-14 Philip Blundell <philb@gnu.org>
611 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
614 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
616 * sysdeps/arm/memset.S: Rewrite.
618 2003-09-12 Jakub Jelinek <jakub@redhat.com>
620 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
621 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
622 __SLONGWORD_TYPE otherwise.
624 2003-09-14 Ulrich Drepper <drepper@redhat.com>
626 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
627 (CFLAGS-ftw64.c): Likewise.
629 2003-09-13 Ulrich Drepper <drepper@redhat.com>
631 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
632 (CFLAGS-nscd_getgr_r.c): Likewise.
633 (CFLAGS-nscd_gethst_r.c): Likewise.
635 2003-09-12 Ulrich Drepper <drepper@redhat.com>
637 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
640 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
641 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
642 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
643 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
644 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
645 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
647 * misc/Makefile (CFLAGS-err.c): Likewise.
648 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
649 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
650 CFLAGS-glob64.c): Likewise.
651 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
652 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
653 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
654 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
655 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
657 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
659 * libio/stdio.h: Remove __THROW from cuserid prototype.
661 * locale/loadarchive.c: Use only non-cancelable interfaces.
662 * resolv/herror.c (herror): Likewise.
664 * malloc/hooks.c: Before using IO stream mark stream so it uses
665 only non-cancelable interfaces.
666 * malloc/malloc.c: Likewise.
667 * posix/getopt.c: Likewise.
670 2003-09-11 Jakub Jelinek <jakub@redhat.com>
672 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
674 2003-09-12 Ulrich Drepper <drepper@redhat.com>
676 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
678 * misc/err.h: Remove __THROW from all prototypes.
680 * posix/getopt.h (__THROW): Define if not already defined. Add
681 __THROW to the getopt functions.
683 2003-09-11 Ulrich Drepper <drepper@redhat.com>
685 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
686 (CFLAGS-fts.c): Likewise.
687 * io/fcntl.h: Remove __THROW from lockf prototypes.
688 * io/fts.h: Remove most __THROW.
690 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
692 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
696 2003-09-11 Jakub Jelinek <jakub@redhat.com>
698 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
699 _IO_free_backup_area call.
701 2003-09-10 Chris Demetriou <cgd@broadcom.com>
703 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
705 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
706 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
707 Also, only assert off_t size is 4 for N32 and O32, and clean up
709 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
711 2003-09-10 Roland McGrath <roland@redhat.com>
713 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
714 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
715 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
716 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
717 Reported by Daniel Jacobowitz <drow@mvista.com>.
719 2003-09-10 Jakub Jelinek <jakub@redhat.com>
721 * string/Makefile (strop-tests): Add memccpy.
722 * string/test-memccpy.c: New test.
724 2003-09-09 Jakub Jelinek <jakub@redhat.com>
726 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
727 siginfo_t * argument before, change into struct ucontext *.
728 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
729 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
730 instead of structure.
731 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
734 2003-09-09 Ulrich Drepper <drepper@redhat.com>
736 * string/stratcliff.c (main): Check memccpy.
738 2003-04-11 Jes Sorensen <jes@wildopensource.com>
740 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
741 character is found during recovery, use correct register when
742 determining the position of the found character.
744 2003-04-01 Jes Sorensen <jes@wildopensource.com>
746 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
747 avoid segfaults when reading from unmapped pages. For aligned
748 reload and continue, for misaligned, roll back and use byte copy.
749 Save ar.ec on entry and restore on exit.
751 2003-09-09 Chris Demetriou <cgd@broadcom.com>
753 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
755 2003-09-08 Chris Demetriou <cgd@broadcom.com>
757 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
759 * sysdeps/mips/mips64/n64/Implies: Likewise.
761 2003-09-08 Roland McGrath <roland@frob.com>
763 * sysdeps/unix/sysv/linux/speed.c
764 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
765 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
766 * sysdeps/unix/sysv/linux/bits/termios.h
767 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
768 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
769 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
771 2003-09-08 Ulrich Drepper <drepper@redhat.com>
773 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
774 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
776 2003-09-08 Jakub Jelinek <jakub@redhat.com>
778 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
779 (__u_quad_t): Make unsigned long int if 64-bit.
780 (__SQUAD_TYPE): Make long int if 64-bit.
781 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
782 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
784 2003-09-08 Ulrich Drepper <drepper@redhat.com>
786 * Makefile (tests): Run check-c++-types.sh if possible.
787 * scripts/check-c++-types.h: New file.
788 * scripts/data/c++-types-i386-linux-gnu.data: New file.
790 2003-09-08 Andreas Jaeger <aj@suse.de>
792 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
793 Use struct sigcontext.
795 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
796 Use struct sigcontext.
798 (GET_FRAME): Likewise.
799 (GET_STACK): Likewise.
801 2003-09-08 Wolfram Gloger <wg@malloc.de>
803 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
804 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
805 (mALLOPt): Avoid requirement of C99.
807 2003-09-08 Ulrich Drepper <drepper@redhat.com>
809 * libio/bug-ftell.c: Include <sys/types.h>.
810 (main): Mark cp as const.
812 2003-09-07 Jakub Jelinek <jakub@redhat.com>
814 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
815 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
817 2003-09-05 Roland McGrath <roland@redhat.com>
819 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
821 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
822 (cfsetispeed): Set c_ispeed field.
823 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
824 to match corresponding speed.c code.
826 2003-09-06 Ulrich Drepper <drepper@redhat.com>
828 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
829 narrow character buffer.
830 * libio/Makefile: Add rules to build and run bug-ftell.
831 * libio/bug-ftell.c: New file.
833 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
835 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
836 matching the decimal point and possibly leading the thousands
837 separator. This caused the recognition of thousands separators to
840 2003-09-05 Ulrich Drepper <drepper@redhat.com>
842 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
843 write mode from read in backup buffer.
844 * libio/Makefile (tests): Add bug-ungetc2.
845 * libio/bug-ungetc2.c: New file.
847 2003-09-05 Roland McGrath <roland@redhat.com>
849 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
851 2003-09-04 Roland McGrath <roland@frob.com>
853 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
854 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
856 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
858 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
861 2003-09-05 Andreas Jaeger <aj@suse.de>
863 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
864 to make it conforming C.
865 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
867 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
868 prototype to use variable argument lists and get the possible one
870 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
871 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
873 2003-09-04 Ulrich Drepper <drepper@redhat.com>
875 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
877 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
878 Report correct value for vxfs.
879 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
881 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
884 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
885 over the place. It would be allowed to have these functions as
886 cancellation points but the cleanup would be ugly and a lot of
889 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
890 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
892 * include/fcntl.h (__fcntl_nocancel): Declare.
893 * sysdeps/unix/sysv/linux/fcntl.c: New file.
894 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
895 cancellation if absolutely needed.
896 (__fcntl_nocancel): Define.
898 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
899 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
901 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
904 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
907 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
908 unnecessary errno handling.
910 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
911 Initialize it in all cases. Change it to be a bit more like the
914 2003-09-04 Jakub Jelinek <jakub@redhat.com>
916 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
918 (_IO_file_open): Likewise. Use close_not_cancel.
920 2003-09-04 Ulrich Drepper <drepper@redhat.com>
922 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
923 * libio/fileops.c [_LIBC]: Remove close macro.
924 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
925 (_IO_new_file_open): Recognize 'c' flag in mode string.
926 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
927 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
929 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
930 * inet/rcmd.c: Likewise.
931 * inet/ruserpass.c: Likewise.
932 * intl/localealias.c: Likewise.
933 * malloc/mtrace.c: Likewise.
934 * misc/getpass.c: Likewise.
935 * misc/getttyent.c: Likewise.
936 * misc/mntent_r.c: Likewise.
937 * misc/getusershell.c: Likewise.
938 * nss/nsswitch.c: Likewise.
939 * resolv/res_hconf.c: Likewise.
940 * resolv/res_init.c: Likewise.
941 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
942 * time/getdate.c: Likewise.
943 * time/tzfile.c: Likewise.
944 * misc/fstab.h: Undo last change.
945 * misc/mntent.h: Likewise.
946 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
947 CFLAGS-fstab.c definition.
949 2003-09-04 Jakub Jelinek <jakub@redhat.com>
951 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
953 2003-09-03 Ulrich Drepper <drepper@redhat.com>
955 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
956 returning ERANGE if this wasn't intended.
958 2003-09-03 Jakub Jelinek <jakub@redhat.com>
960 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
961 function-like macros.
963 2003-09-03 Ulrich Drepper <drepper@redhat.com>
965 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
966 (CFLAGS-getgrent.c): Likewise.
967 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
968 (CFLAGS-getpwent.c): Likewise.
969 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
970 (CFLAGS-getspent.c): Likewise.
972 * inet/Makefile: Add -fexceptions to CFLAGS for the various
973 getXXent and getXXbyYY functions.
975 * locale/loadlocale.c: Use not-cancelable variants of open, close,
978 2003-09-02 Jakub Jelinek <jakub@redhat.com>
980 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
981 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
983 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
985 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
986 unused __syscall_ stubs.
987 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
989 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
990 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
991 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
992 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
993 unused __syscall_ stubs.
994 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
996 (__syscall_*): Remove unused __syscall_ stubs.
997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
998 (__syscall_*): Likewise.
999 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
1001 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
1002 Remove unused __syscall_ stubs.
1003 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
1004 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
1005 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
1006 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
1007 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
1008 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
1009 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
1010 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
1011 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
1012 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
1013 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
1014 __syscall_* prototypes.
1015 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
1016 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
1017 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
1018 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
1019 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1020 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1021 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
1022 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1023 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1024 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
1025 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
1026 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1027 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
1028 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1029 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1030 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1031 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
1032 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
1033 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
1034 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
1035 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
1036 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
1037 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1038 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1039 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
1040 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
1041 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1042 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1043 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1044 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1045 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1046 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1047 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
1048 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1049 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1050 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1051 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1052 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
1053 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1054 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
1055 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
1056 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1057 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
1058 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1059 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1060 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1061 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1062 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1063 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1064 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1065 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
1066 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1067 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1068 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
1069 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1070 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
1071 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
1072 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
1073 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
1074 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
1075 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1076 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
1077 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
1078 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1079 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1080 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
1081 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1082 * sysdeps/unix/sysv/linux/execve.c: Likewise.
1083 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1084 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
1085 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
1086 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
1087 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1088 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1089 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
1090 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1091 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
1092 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1093 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1094 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1095 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
1096 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1097 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
1098 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1099 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1100 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1101 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
1102 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
1103 * sysdeps/unix/sysv/linux/poll.c: Likewise.
1104 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1105 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1106 * sysdeps/unix/sysv/linux/pread.c: Likewise.
1107 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
1108 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
1109 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1110 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1111 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1112 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1113 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1114 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1115 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1116 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1118 2003-09-02 Jakub Jelinek <jakub@redhat.com>
1120 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
1121 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
1122 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
1124 2003-09-02 Ulrich Drepper <drepper@redhat.com>
1126 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
1128 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
1129 open, close, and read.
1131 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
1134 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
1136 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
1137 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
1138 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
1140 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
1142 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
1143 (CFLAGS-fstatfs.c): Likewise.
1144 (CFLAGS-statvfs.c): Likewise.
1145 (CFLAGS-fstatvfs.c): Likewise.
1147 2003-09-01 Ulrich Drepper <drepper@redhat.com>
1149 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
1150 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
1152 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
1153 (CFLAGS-pathconf.c): Likewise.
1154 (CFLAGS-fpathconf.c): Likewise.
1156 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
1157 * misc/fstab.h: Remove all __THROW.
1158 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
1159 (CFLAGS-mntent_r.c): Likewise.
1160 * misc/mntent.h: Remove most __THROW.
1162 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1163 (CFLAGS-mkstemp64.c): Likewise.
1165 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
1166 around call to exec_comm.
1167 * posix/wordexp.h: Remove __THROW from wordexp.
1168 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
1170 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
1171 not-cancelable functions.
1173 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
1174 (CFLAGS-iofopen.c): Likewise.
1175 (CFLAGS-iofopen64.c): Likewise.
1177 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
1179 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
1180 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
1182 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
1183 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
1185 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
1187 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
1188 NSS_STATUS_SUCCESS if entry was found.
1189 (getspent_next_file): Store user in blacklist after entry
1190 was found, use innetgr.
1192 2003-09-01 Jakub Jelinek <jakub@redhat.com>
1194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
1195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
1197 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
1198 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
1199 DTV_AT_TP, optimize.
1201 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1203 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
1204 posix_fallocate64 at GLIBC_2.3.3.
1205 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
1206 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
1208 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1210 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
1213 2003-08-31 Ulrich Drepper <drepper@redhat.com>
1215 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
1216 Code by Richard Henderson.
1218 2003-08-31 Philip Blundell <philb@gnu.org>
1220 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
1221 posix_fallocate64 at GLIBC_2.3.3.
1223 2003-08-31 Ulrich Drepper <drepper@redhat.com>
1225 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
1226 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
1228 2003-08-30 Jakub Jelinek <jakub@redhat.com>
1230 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
1231 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
1232 included multiple times.
1233 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
1234 ptid, tls, ctid arguments to the kernel.
1235 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1236 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
1237 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1238 (__libc_sigaction): Use INLINE_SYSCALL instead of
1239 __syscall_rt_sigaction.
1240 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
1241 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
1242 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
1243 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
1244 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
1245 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
1246 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
1247 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
1248 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
1249 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
1250 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
1251 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1252 (__CLONE_SYSCALL_STRING): Define.
1253 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
1255 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1256 (__CLONE_SYSCALL_STRING): Define.
1257 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
1259 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
1261 2003-08-30 Ulrich Drepper <drepper@redhat.com>
1263 * sunrpc/rpc/clnt.h: Remove a few __THROW.
1264 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
1265 (CFLAGS-key_call.c): Likewise.
1266 (CFLAGS-pmap_rmt.c): Likewise.
1267 (CFLAGS-clnt_perr.c): Likewise.
1268 * sunrpc/rpc/auth.h: Remove serveral __THROW.
1270 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
1271 (CFLAGS-gethstbynm_r.c): Likewise.
1272 (CFLAGS-gethstbynm2_r.c): Likewise.
1273 (CFLAGS-rcmd.c): Likewise.
1274 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
1276 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
1277 (CFLAGS-argp-fmtstream.c): Likewise.
1278 * argp/argp.h: Remove a number of __THROW.
1280 * misc/sys/syslog.h (vsyslog): Remove __THROW.
1282 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
1283 * misc/getpass.c (getpass): Add cleanup handler to ensure the
1284 stream is closed even if the thread is canceled.
1285 (call_fclose): New function.
1286 * posix/unistd.h: Remove __THROW from getpass prototype.
1288 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
1290 * signal/signal.h (psignal): Remove __THROW.
1291 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
1293 * misc/Makefile (CFLAGS-error.c): Define.
1294 * misc/error.c (error): Disable cancellation handling around the
1295 actual output. The message should in any case be printed.
1296 (error_at_line): Likewise.
1298 * misc/error.h: Protect parameter names with leading __.
1300 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
1302 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
1304 2003-08-29 Jakub Jelinek <jakub@redhat.com>
1306 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
1309 2003-08-29 Ulrich Drepper <drepper@redhat.com>
1311 * libio/stdio.h: Remove a few more __THROW.
1313 2003-08-29 Jakub Jelinek <jakub@redhat.com>
1315 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
1316 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
1317 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
1318 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
1319 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
1320 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
1321 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
1322 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
1323 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
1324 putwchar.c and rewind.c with exceptions.
1325 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
1326 _IO_release_lock): Define.
1327 * libio/fileops.c (_IO_new_file_underflow): Use it.
1328 * libio/fputc.c (fputc): Likewise.
1329 * libio/fputwc.c (fputwc): Likewise.
1330 * libio/freopen64.c (freopen64):
1331 * libio/freopen.c (freopen): Likewise.
1332 * libio/fseek.c (fseek): Likewise.
1333 * libio/fseeko64.c (fseeko64): Likewise.
1334 * libio/fseeko.c (fseeko): Likewise.
1335 * libio/ftello64.c (ftello64): Likewise.
1336 * libio/ftello.c (ftello): Likewise.
1337 * libio/fwide.c (fwide): Likewise.
1338 * libio/getc.c (_IO_getc): Likewise.
1339 * libio/getchar.c (getchar): Likewise.
1340 * libio/getwc.c (_IO_getwc): Likewise.
1341 * libio/getwchar.c (getwchar): Likewise.
1342 * libio/iofclose.c (_IO_new_fclose):
1343 * libio/iofflush.c (_IO_fflush): Likewise.
1344 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
1345 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1346 * libio/iofgets.c (_IO_fgets): Likewise.
1347 * libio/iofgetws.c (fgetws): Likewise.
1348 * libio/iofputs.c (_IO_fputs): Likewise.
1349 * libio/iofputws.c (fputws): Likewise.
1350 * libio/iofread.c (_IO_fread): Likewise.
1351 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
1352 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
1353 * libio/ioftell.c (_IO_ftell): Likewise.
1354 * libio/iofwrite.c (_IO_fwrite): Likewise.
1355 * libio/iogetdelim.c (_IO_getdelim): Likewise.
1356 * libio/iogets.c (_IO_gets): Likewise.
1357 * libio/ioputs.c (_IO_puts): Likewise.
1358 * libio/ioseekoff.c (_IO_seekoff): Likewise.
1359 * libio/ioseekpos.c (_IO_seekpos): Likewise.
1360 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1361 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
1362 * libio/ioungetc.c (_IO_ungetc): Likewise.
1363 * libio/ioungetwc.c (ungetwc): Likewise.
1364 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1365 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
1366 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
1367 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
1368 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
1369 * libio/peekc.c (_IO_peekc_locked): Likewise.
1370 * libio/putc.c (_IO_putc): Likewise.
1371 * libio/putchar.c (putchar): Likewise.
1372 * libio/putwc.c (putwc): Likewise.
1373 * libio/putwchar.c (putwchar): Likewise.
1374 * libio/rewind.c (rewind): Likewise.
1375 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
1377 2003-08-29 Ulrich Drepper <drepper@redhat.com>
1379 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
1380 available in XPG4.2.
1382 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
1383 Jakub Jelinek <jakub@redhat.com>
1385 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
1386 big endian arches. Don't read beyond end of fds_bits array.
1388 2003-04-27 Bruno Haible <bruno@clisp.org>
1390 * manual/message.texi (Advanced gettext functions): Add information
1391 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
1392 Add section about Lithuanian, reported by Ricardas Cepas
1393 <rch@richard.eu.org>.
1394 Add information about Croatian.
1395 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
1396 Remove remark about continuation lines that is not true for PO files.
1397 Fix formula for Slovenian, reported by Roman Maurer
1398 <roman.maurer@amis.net>.
1400 2003-08-27 Ulrich Drepper <drepper@redhat.com>
1402 * math/math_private.h: Declare __copysignf.
1403 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
1406 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
1407 __signbit, and __signbitl inline functions.
1409 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
1410 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
1412 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
1413 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
1415 2003-08-27 Jakub Jelinek <jakub@redhat.com>
1417 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
1419 2003-08-27 Ulrich Drepper <drepper@redhat.com>
1421 * include/stdio.h: Add declarations for __builtin_fwrite and
1422 __builtin_fwrite_unlocked.
1424 2003-08-27 Jakub Jelinek <jakub@redhat.com>
1426 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
1427 fits into allocation. Add padding on 32-bit arches so that
1428 dirp->data is enough aligned for struct dirent64.
1429 Avoid clearing of the buffer, just clear DIR structure.
1431 2003-08-26 Ulrich Drepper <drepper@redhat.com>
1433 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
1434 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
1436 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
1438 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
1440 2003-08-26 Jakub Jelinek <jakub@redhat.com>
1442 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
1443 to match format string.
1444 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
1446 (__new_semctl): Shut up warning.
1447 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
1448 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
1450 2003-08-26 Jakub Jelinek <jakub@redhat.com>
1452 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
1453 link file use the real file name, not the resolved name we got by
1454 following the symlinks.
1456 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1458 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
1459 if the object size is large enough.
1461 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1463 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1464 if it won't point to itself unless it is .so symlink for the linker.
1466 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1468 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
1469 use _mode if _IO_fwide_maybe_incompatible.
1470 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
1471 the compatibility test.
1473 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1475 * elf/cache.c (save_cache): Don't write beyond end of file_entries
1477 Duplicate last old cache entry if the count would be odd.
1479 2003-08-25 Andreas Jaeger <aj@suse.de>
1481 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
1482 __LONG_LONG_PAIR to long.
1484 2003-08-25 Philip Blundell <philb@gnu.org>
1486 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
1487 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
1489 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
1491 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
1492 and use __libc_cleanup_region_end instead.
1494 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1496 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
1498 2003-08-22 Ulrich Drepper <drepper@redhat.com>
1500 * io/fcntl.h (posix_fallocate): Change type of third parameter to
1502 (posix_fallocate64): Change type of third parameter to off64_t.
1503 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
1504 * sysdeps/posix/posix_fallocate.c: Likewise.
1505 * sysdeps/generic/posix_fallocate64.c: Likewise.
1506 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
1507 code for 32-bit platforms.
1508 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
1510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
1511 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1512 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1514 2003-08-19 Ulrich Drepper <drepper@redhat.com>
1516 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
1517 the type, not to name.
1519 * stdio-common/test-vfprintf.c (main): Don't write temporary file
1520 into source directory.
1522 * malloc/malloc.c (_int_free): Add cheap test for some invalid
1525 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
1528 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1530 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
1533 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
1535 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
1536 (elf_machine_lazy_rel): Likewise.
1538 2003-08-18 Art Haas <ahaas@airmail.net>
1540 * malloc/malloc.h: Remove unneeded ';' where closing the C++
1543 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1545 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
1546 loading big binaries where @gprel(sym) cannot be handled in 'add'
1547 but instead has to be used with 'movl'.
1549 2003-08-17 Juergen Kreileder <jk@blackdown.de>
1550 Andreas Jaeger <aj@suse.de>
1552 * sysdeps/x86_64/bits/byteswap.h: New file.
1554 2003-08-17 Andreas Jaeger <aj@suse.de>
1556 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
1558 2003-08-16 Jakub Jelinek <jakub@redhat.com>
1560 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
1561 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1562 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
1563 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1564 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
1565 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1566 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
1567 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1568 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
1569 ret_ERRVAL): Define.
1570 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
1571 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1572 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
1573 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1574 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
1576 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
1577 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1578 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
1580 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
1581 posix_fadvise64_64): Remove.
1582 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
1584 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1587 (posix_fadvise64): Likewise.
1588 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1589 (posix_fadvise64): Likewise.
1590 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1591 (posix_fadvise64): Likewise.
1592 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1594 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
1595 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
1596 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
1597 (__posix_fadvise64_l32): New function.
1598 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
1599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
1600 posix_fadvise64@@GLIBC_2.3.3.
1601 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1602 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1603 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
1605 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
1607 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1608 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
1610 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1612 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
1613 (elf_machine_matches_host): Remove weak extern stuff.
1614 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
1615 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
1616 stuff. Use GL(dl_hwcap) unconditionally.
1618 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1620 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
1621 __libc_start_main branch.
1623 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
1624 Andreas Jaeger <aj@suse.de>
1626 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
1627 instead of setting errno.
1628 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1630 2003-08-16 Andreas Jaeger <aj@suse.de>
1632 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
1633 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1635 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1637 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1639 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1640 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1641 description indicating the error value is returned, not -1.
1642 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1643 __ASSUME_FADVISE64_64_SYSCALL.
1644 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1645 posix_madvise in one file. Have posix_madvise defined with error
1647 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1649 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1650 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1651 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1652 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1653 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1654 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1657 * posix/Makefile (routines): Add posix_madvise.
1658 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1659 * sysdeps/generic/posix_madvise.c: New file.
1660 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1661 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1662 Add posix_fadvise64_64.
1664 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1666 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1667 3.0, not for !gcc or gcc < 3.0.
1669 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1671 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1672 Address passed to test_in_mod1 and test_in_mod2 without casting.
1673 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1674 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1675 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1676 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1678 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1680 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1681 Change quotes before using [].
1683 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1685 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1687 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1688 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1689 argument. Select one of 64 locks from address bits.
1690 (atomic_compare_and_exchange_val_acq,
1691 atomic_compare_and_exchange_bool_acq): Pass memory address to
1692 __sparc32_atomic_do_{,un}lock.
1694 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1696 * assert/assert.h (assert): Use !! in front of expression to allow
1699 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1700 Changed conversion of JIS X 0201 from using a table to calculating.
1701 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1702 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1704 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1705 * iconvdata/CP932.irreversible: New file.
1706 * iconvdata/EUC-JP-MS.irreversible: New file.
1707 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1709 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1711 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1713 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1714 text processing tools.
1716 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1717 element unless BROKEN_THREAD_SIGNALS is defined.
1718 (struct requestlist): Likewise.
1719 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1720 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1721 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1722 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1723 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1724 Pass current PID to __aio_sigqueue.
1725 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1726 call. Don't initialize caller_pid field of waitlist element.
1728 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1730 * libio/libioP.h (_IO_vtable_offset): Define.
1731 * libio/freopen.c (freopen): Use it.
1732 * libio/ioputs.c (_IO_puts): Likewise.
1733 * libio/freopen64.c (freopen64): Likewise.
1734 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1736 * libio/iofclose.c (_IO_new_fclose): Likewise.
1737 * libio/iofputs.c (_IO_fputs): Likewise.
1738 * libio/ioftell.c (_IO_ftell): Likewise.
1739 * libio/iofwrite.c (_IO_fwrite): Likewise.
1740 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1741 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1742 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1743 * stdio-common/vfscanf.c (ORIENT): Likewise.
1745 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1747 * assert/assert.h: Use __builtin_expect in assert and
1748 assert_perror definitions if possible.
1750 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1752 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1753 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1754 * elf/rtld.c (rtld_lock_default_lock_recursive,
1755 rtld_lock_default_unlock_recursive): New functions.
1756 (dl_main): Initialize _dl_rtld_lock_recursive and
1757 _dl_rtld_unlock_recursive.
1759 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1761 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1762 config_file directories instead of prepending.
1764 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1766 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1767 __ASSUME_CLONE_STOPPED.
1769 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1771 * sysdeps/generic/bits/libc-lock.h
1772 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1774 2003-08-01 Roland McGrath <roland@frob.com>
1776 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1778 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1780 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1781 instead of __SWORD_TYPE.
1782 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1783 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1784 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1786 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1788 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1790 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1792 * dlfcn/dlerror.c (once): New.
1793 (dlerror): Call __libc_once.
1794 (_dlerror_run): Remove once.
1796 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1797 Sync with 2.5.7 and 2.5.73 kernel changes.
1799 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1800 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1802 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1803 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1804 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1805 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1806 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1807 difference argument.
1808 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1810 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1811 %d format and cast expected value to int.
1812 * sysdeps/generic/libc-start.c (STATIC): Add
1813 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1814 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1815 to ieee_float_shape_type.
1816 (__sqrt): Avoid type punning.
1817 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1818 to ieee_float_shape_type.
1819 (__sqrtf): Avoid type punning.
1820 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1821 refsym if in dl-conflict.c.
1822 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1823 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1824 (__new_semctl): Shut up warning.
1825 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1826 (__new_semctl): Shut up warning.
1827 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1828 Change old into union of __old_shmid_ds and __old_shminfo structs.
1830 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1832 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1833 modtime computation.
1834 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1835 * sysdeps/posix/utimes.c (__utimes): Likewise.
1837 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1839 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1840 call dl_signal_error directly. If already relocated, call
1841 GL(dl_init_static_tls) directly, otherwise queue it for later.
1842 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1843 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1844 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1845 for all static TLS initializations delayed in _dl_allocate_static_tls.
1846 * elf/dl-support.c (_dl_init_static_tls): New variable.
1847 * include/link.h (struct link_map): Add l_need_tls_init.
1848 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1849 (_dl_nothread_init_static_tls): New prototype.
1850 (_dl_allocate_static_tls): Adjust prototype.
1852 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1854 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1856 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1857 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1858 reloc_addr is aligned.
1859 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1860 elf_machine_rela_relative): Adjust.
1861 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1862 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1863 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1864 elf_machine_rela_relative): Adjust.
1865 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1866 elf_machine_rela_relative): Adjust.
1867 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1868 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1869 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1870 elf_machine_rela_relative): Adjust.
1871 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1872 elf_machine_rela_relative): Adjust.
1873 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1874 elf_machine_rela_relative): Adjust.
1875 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1876 elf_machine_rela_relative): Adjust.
1877 * sysdeps/powerpc/powerpc64/dl-machine.h
1878 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1879 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1880 elf_machine_rela_relative): Adjust.
1881 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1882 elf_machine_rela_relative): Adjust.
1883 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1884 elf_machine_rela_relative): Adjust.
1885 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1886 elf_machine_rela_relative): Adjust.
1887 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1888 elf_machine_rela_relative): Adjust.
1889 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1890 elf_machine_rela_relative): Adjust.
1892 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1894 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1895 alignment of TCB used before the last change so that it matches
1896 ld's output for IE code.
1898 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1900 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1901 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1902 break strict-aliasing rules" warnings.
1904 2003-07-29 Roland McGrath <roland@redhat.com>
1906 * elf/Makefile: Revert accidental changes in last commit.
1907 * elf/dl-support.c: Likewise.
1909 * rt/tst-timer2.c: New file.
1910 * rt/Makefile (tests): Add it.
1912 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1914 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1916 2003-07-29 Roland McGrath <roland@redhat.com>
1918 * elf/Makefile (tests) [$(build-shared) = yes]:
1919 Depend on $(test-modules).
1920 * dlfcn/Makefile: Likewise.
1922 2003-07-28 Roland McGrath <roland@redhat.com>
1924 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1925 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1927 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1928 * elf/tst-tlsmod14a.c: Likewise.
1930 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1931 before <linux/sysctl.h>.
1933 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1935 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1936 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1937 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1938 * sysdeps/unix/syscalls.list: umask syscall never fails.
1940 2003-07-27 Andreas Jaeger <aj@suse.de>
1942 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1944 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1946 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1947 Include bits/a.out.h.
1948 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1950 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1951 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1952 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1953 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1954 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1955 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1956 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1957 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1959 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1961 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1962 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1963 aiocbp->aio_fildes does not match fildes.
1965 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1967 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1970 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1971 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1972 Fix calculation of offsets to take misalignment of first byte in
1974 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1975 l_tls_firstbyte_offset field.
1976 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1977 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1978 Take l_tls_firstbyte_offset information into account.
1979 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1980 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1981 * elf/Makefile: Add rules to build and run tst-tls14.
1982 * elf/tst-tls14.c: New file.
1983 * elf/tst-tlsmod14a.c: New file.
1984 * elf/tst-tlsmod14b.c: New file.
1986 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1988 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1989 (lio_listio): Use it.
1990 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1991 after few defines to avoid duplication.
1993 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1995 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1996 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1998 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1999 Add libc_hidden_def.
2000 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
2001 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2002 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
2003 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
2004 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
2005 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
2006 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
2008 * sysdeps/generic/unwind.inc: Removed.
2010 * include/resolv.h (__resp): Declare. Define to __libc_resp
2012 (_res): If USE___THREAD, define to (*__resp).
2013 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
2014 even if USE___THREAD.
2015 (__resp): New __thread variable.
2016 (__libc_resp): New alias.
2017 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
2018 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
2019 * sysdeps/generic/res-state.c (__res_state): Return __resp
2022 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
2024 * elf/dl-support.c (_dl_hwcap): New variable.
2025 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
2027 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
2028 and <dl-procinfo.h>.
2029 (__feclearexcept): Clear MXCSR if needed.
2030 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
2032 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
2033 that newer hardware needs more than these macros.
2035 * sysdeps/i386/setfpucw.c: New file.
2037 2003-07-22 Jakub Jelinek <jakub@redhat.com>
2039 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
2040 * elf/ldconfig.c: Include dl-procinfo.c.
2041 (PROCINFO_CLASS): Define.
2042 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
2043 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
2044 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
2045 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
2046 Define if not yet defined. Use it instead of EXTERN. Undefine
2047 at the end of the file.
2048 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
2050 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
2051 (PROCINFO_CLASS): Likewise.
2052 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
2053 (PROCINFO_CLASS): Likewise.
2055 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
2057 * elf/ldconfig.c (main): Issue a fatal error if relative path
2058 is used to build cache.
2060 2003-07-22 Ulrich Drepper <drepper@redhat.com>
2062 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
2064 2003-07-21 Art Haas <ahaas@airmail.net>
2066 * manual/charset.texi (Converting a Character): Fix example code so a
2067 valid pointer is returned.
2069 2003-07-22 Andreas Jaeger <aj@suse.de>
2071 * elf/readlib.c (process_file): Check that file is a shared
2074 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
2075 will not optimize it away.
2076 (__DTOR_END__): Likewise.
2077 (__CTOR_END__): Likewise.
2079 * include/libc-symbols.h (_elf_set_element): Use attribute used so
2080 that gcc will not optimize it away.
2081 (link_warning): Likewise.
2083 2003-07-22 Ulrich Drepper <drepper@redhat.com>
2085 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
2086 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
2087 * wcsmbs/tst-wcpncpy.c: New file.
2089 2003-07-21 Ulrich Drepper <drepper@redhat.com>
2091 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
2093 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
2094 stmxcsr and ldmxcsr.
2096 * Makerules (build-module-helper): Add -z defs unless explicitly said
2098 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
2099 which has undefined symbols.
2100 * elf/Makefile: Likewise.
2102 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
2103 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
2104 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2105 * sysdeps/i386/fpu/fesetround.c: Likewise.
2106 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
2108 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
2110 * elf/ldconfig.c (search_dir): Treat symlink as regular file
2111 if it won't point to itself.
2113 2003-07-20 Ulrich Drepper <drepper@redhat.com>
2115 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
2117 2003-07-20 Andreas Jaeger <aj@suse.de>
2119 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
2120 STANDARD_TO_LOOP_ERR_HANDLER.
2121 * iconvdata/euc-jp-ms.c (BODY): Likewise.
2123 2003-07-19 Ulrich Drepper <drepper@redhat.com>
2125 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
2127 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
2129 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
2130 Andreas Jaeger <aj@suse.de>
2132 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
2133 256K, remove unneeded declaration of __getpagesize.
2135 2003-07-16 Andreas Schwab <schwab@suse.de>
2137 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
2139 2003-07-15 Ulrich Drepper <drepper@redhat.com>
2141 * io/test-utime.c (main): Make test yet more robust.
2143 2003-07-14 Ulrich Drepper <drepper@redhat.com>
2145 More cancellation handling fixups.
2146 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
2147 * sysdeps/generic/not-cancel.h: Likewise.
2148 * catgets/open_catalog.c: Use not-cancelable syscalls.
2149 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
2150 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
2151 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
2152 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
2153 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
2154 * libio/fileops.c: Use not-cancelable syscalls for fclose.
2155 * libio/iopopen.c: Use no-cancelable syscalls.
2156 * libio/stdio.h: Mark popen and pclose with __THROW again.
2157 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
2158 * misc/syslog.c: Fix locking and cancellation cleanup handling.
2159 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
2160 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
2161 CFLAGS-tempname.c): Add -fexceptions.
2162 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
2163 * string/string.h: Mark strerror and strerror_r with _THROW again.
2164 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
2165 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
2166 #ifs since we now need all the code compiled.
2167 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
2168 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
2169 * sysdeps/unix/opendir.c: Likewise.
2171 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
2172 Add rule for EUC-JP-MS dependency.
2173 * iconvdata/cp932.c: New file.
2174 * iconvdata/eucjp-ms.c: New file.
2175 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
2176 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
2178 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
2183 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2185 * sysdeps/unix/sysv/linux/kernel-features.h
2186 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
2187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
2189 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
2191 2003-07-14 Ulrich Drepper <drepper@redhat.com>
2193 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2194 __ASSUME_TGKILL for Alpha appropriately.
2196 2003-07-12 Ulrich Drepper <drepper@redhat.com>
2198 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
2199 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
2201 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
2204 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2205 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
2207 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
2208 second parameter == NULL.
2209 * sysdeps/unix/sysv/linux/utimes.c: New file.
2211 2003-07-12 Jakub Jelinek <jakub@redhat.com>
2213 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
2214 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
2217 2003-07-12 Ulrich Drepper <drepper@redhat.com>
2219 * time/sys/time.h: Namespace cleanup.
2220 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2221 __ASSUME_UTIMES for the architectures which always had the syscall.
2222 * sysdeps/unix/sysv/linux/futimes.c: New file.
2224 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2226 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
2227 register across CENABLE and CDISABLE.
2229 2003-07-11 Jakub Jelinek <jakub@redhat.com>
2231 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
2232 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2233 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2234 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
2235 int before assigning to max to avoid warnings.
2237 2003-07-11 Jakub Jelinek <jakub@redhat.com>
2239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
2241 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
2242 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
2244 2003-07-10 Jakub Jelinek <jakub@redhat.com>
2246 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
2247 .data.rel.ro.local to "aw".
2249 2003-07-10 Ulrich Drepper <drepper@redhat.com>
2251 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
2252 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
2253 (PIC-ccflag): Define.
2255 2003-07-04 Jakub Jelinek <jakub@redhat.com>
2257 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
2259 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2261 2003-07-07 Jakub Jelinek <jakub@redhat.com>
2263 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
2264 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
2266 2003-07-07 Ulrich Drepper <drepper@redhat.com>
2268 * sysdeps/unix/sysv/linux/kernel-features.h: Version
2269 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
2271 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
2272 compilation with HAVE_AUX_SECURE defined.
2274 2003-07-05 Richard Henderson <rth@redhat.com>
2276 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
2278 2003-07-03 Ulrich Drepper <drepper@redhat.com>
2280 * configure.in: Also check for .cfi_rel_offset pseudo-op.
2282 2003-07-03 Jakub Jelinek <jakub@redhat.com>
2284 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
2287 2003-07-03 Ulrich Drepper <drepper@redhat.com>
2289 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
2291 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
2293 2003-07-02 Jakub Jelinek <jakub@redhat.com>
2295 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
2296 decl and use with #ifdef NEED_DL_SYSINFO.
2298 2003-07-02 Ulrich Drepper <drepper@redhat.com>
2300 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
2301 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
2302 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2303 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
2304 vsyscall DSO was added.
2306 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
2307 depending on selected standard.
2308 (NGROUPS_MAX): Define to 8 if not defined.
2310 2003-07-02 Andreas Jaeger <aj@suse.de>
2312 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
2314 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
2316 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
2317 * malloc/thread-m.h: Include <atomic.h>.
2318 (atomic_full_barrier): Provide default.
2319 (atomic_read_barrier): Likewise.
2320 (atomic_write_barrier): Likewise.
2321 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
2323 2003-06-30 Ulrich Drepper <drepper@redhat.com>
2325 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
2327 2003-06-30 Richard Henderson <rth@redhat.com>
2329 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
2330 Invert the sense of the return value.
2331 (__arch_exchange_16_int): Fix paste-o.
2332 (__arch_exchange_{32,64}_int): Fix think-o.
2334 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
2336 2003-06-30 Richard Henderson <rth@redhat.com>
2338 * include/sys/resource.h (__getrusage): Mark hidden.
2339 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
2340 * include/sys/wait.h (__wait4): Likewise.
2342 2003-06-17 Guido Guenther <agx@sigxcpu.org>
2344 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
2346 (xstat_conv): Rename to __xstat_conv and remove static inline.
2347 (xstat64_conv): Likewise.
2349 2003-06-29 Ulrich Drepper <drepper@redhat.com>
2351 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
2352 values which cannot be handled in one nanosleep call.
2354 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
2356 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
2357 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
2359 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
2361 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2363 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
2366 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
2368 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
2369 Conditionalize function definitions that use struct kernel_stat.
2370 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
2371 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
2372 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
2374 2003-06-28 Ulrich Drepper <drepper@redhat.com>
2376 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
2379 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
2381 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
2382 (getgrent_next_file): Don't store group name to early in blacklist.
2384 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
2385 and use memcpy instead of strcpy.
2387 2003-06-28 Ulrich Drepper <drepper@redhat.com>
2389 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
2391 * nis/nss_compat/compat-initgroups.c: Likewise.
2392 * nis/nss_compat/compat-pwd.c: Likewise.
2393 * nis/nss_compat/compat-spwd.c: Likewise.
2395 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
2397 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
2398 functions, dlopen corresponding NSS module instead.
2400 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
2402 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
2403 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2404 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2405 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2407 2003-06-27 Ulrich Drepper <drepper@redhat.com>
2409 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
2411 2003-06-26 Roland McGrath <roland@frob.com>
2413 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
2414 * sysdeps/mach/configure: Regenerated.
2415 * sysdeps/mach/hurd/times.c (times_init): Function removed.
2416 (__times): Assume `creation_time' field is available.
2417 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
2418 Don't append set-init.
2419 * sysdeps/mach/hurd/set-init.c: File removed.
2421 2003-06-26 Roland McGrath <roland@redhat.com>
2423 * elf/elf.h (AT_SECURE): New macro.
2424 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
2425 set __libc_enable_secure.
2426 (_dl_show_auxv): Add AT_SECURE to name table.
2427 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
2428 __libc_enable_secure and __libc_enable_secure_decided.
2429 * sysdeps/unix/sysv/linux/ldsodefs.h
2430 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
2431 * sysdeps/unix/sysv/linux/kernel-features.h
2432 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
2434 2003-06-26 Ulrich Drepper <drepper@redhat.com>
2436 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
2437 boundary test to take rounding of nanoseconds into account.
2439 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
2440 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2441 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
2442 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2443 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2444 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2445 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2447 2003-06-26 Andreas Schwab <schwab@suse.de>
2449 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
2450 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
2451 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
2453 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
2455 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
2456 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
2457 dlopen corresponding NSS module instead.
2458 * nis/nss_compat/compat-pwd.c: Likewise.
2459 * nis/nss_compat/compat-spwd.c: Likewise.
2460 * nis/nss_compat/compat-initgroups.c: Disabled for now.
2461 * nss/Versions: Export __nss_lookup_function.
2463 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2465 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
2466 for the SH architecture.
2468 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
2470 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
2472 2003-06-25 Andreas Jaeger <aj@suse.de>
2474 * stdlib/tst-strtod.c (main): Declare constant long double as
2475 suggested by Jakub Jelinek and Andreas Schwab.
2477 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
2480 * stdio-common/tst-fphex.c: Fix format string.
2482 * posix/transbug.c: Include <string.h> for memset and strlen
2485 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
2487 * stdlib/tst-strtod.c (main): Pass long double value.
2489 * test-skeleton.c: Include <time.h> for nanosleep declaration.
2491 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2493 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
2496 2003-06-11 Jakub Jelinek <jakub@redhat.com>
2498 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
2499 * elf/dl-libc.c (struct dl_open_hook): New.
2500 (_dl_open_hook): New variable.
2501 (do_dlsym_private): New function.
2502 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
2503 and initialize it if found.
2504 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
2505 call dlopen_mode hook.
2506 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
2508 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
2511 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2513 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
2514 result to long int so that extensions to long long int work.
2515 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2517 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2519 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
2520 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
2521 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
2523 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
2524 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
2525 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
2526 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
2528 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2530 * test-skeleton.c (timeout_handler): If waitpid returned 0,
2531 retry once after a second. If killed == 0, assume
2532 WTERMSIG (status) == SIGKILL.
2534 2003-06-18 Roland McGrath <roland@redhat.com>
2536 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
2537 elements in the table instead of printing an empty name string.
2539 2003-06-05 Roland McGrath <roland@redhat.com>
2541 * elf/elf.h (PT_GNU_STACK): New macro.
2543 2003-06-24 Ulrich Drepper <drepper@redhat.com>
2545 * include/time.h: Define CLOCK_IDFIELD_SIZE.
2546 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
2547 * sysdeps/unix/clock_gettime.c: Likewise.
2548 * sysdeps/unix/clock_settime.c: Likewise.
2549 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
2550 clock id for thread CPU clocks.
2552 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
2553 for the fstatfs64 syscall.
2554 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
2555 the statfs64 syscall.
2557 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2558 __ASSUME_STATFS64 appropriately.
2560 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
2561 from statfs structure if it has been filled in.
2563 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
2565 (struct statfs64): Likewise.
2566 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
2567 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2569 2003-06-24 Richard Henderson <rth@redhat.com>
2571 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
2572 the 64-bit syscall name.
2574 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
2576 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
2577 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
2579 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
2580 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
2582 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2583 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
2586 * sysdeps/alpha/bits/atomic.h: New file.
2588 2003-06-24 Andreas Schwab <schwab@suse.de>
2590 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2592 2003-06-24 Andreas Jaeger <aj@suse.de>
2594 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
2595 redeclaration with 32-bit code.
2597 2003-05-19 Ed Connell <ed.connell@sas.com>
2599 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
2600 floating point mask.
2601 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
2603 2003-06-23 Ulrich Drepper <drepper@redhat.com>
2605 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
2606 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
2607 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
2609 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
2610 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
2611 instead of __libc_cleanup_region_*.
2613 2003-06-20 Richard Henderson <rth@redhat.com>
2615 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
2616 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
2618 2003-06-20 Richard Henderson <rth@redhat.com>
2620 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
2621 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
2623 (__ASSUME_TIMEVAL64): Set for alpha.
2624 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2625 adjtimex, osf_sigprocmask, old_adjtimex.
2626 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
2627 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
2628 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
2629 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2630 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2631 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2632 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2633 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2634 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2635 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2636 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2638 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2639 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2640 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2641 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2642 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2643 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2644 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2645 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2646 defer to __syscall_name; error for rt_sigaction.
2647 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2649 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2651 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2652 hasn't happened yet.
2654 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2655 Fix completely broken implementation. The second parameter is of
2656 type struct ucontext*.
2658 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2661 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2662 * sysdeps/generic/dl-hash.h: Likewise.
2664 * sysdeps/generic/memcmp.c: Remove inline from
2665 memcmp_common_alignment and memcmp_not_common_alignment definition.
2667 * intl/localealias.c (read_alias_file): Determine whether line is
2668 read incompletely early, before we modify the line.
2670 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2672 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2673 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2675 2003-06-17 Paul Mackerras <paulus@samba.org>
2677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2682 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2684 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2686 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2688 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2690 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2691 takes care of enabling cancellation.
2693 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2694 cancelable. It's not correct to disable cancellation. Instead of
2697 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2698 and part of the incoming set, create a temporary set without this
2700 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2701 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2703 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2704 returning because seconds==0. Add __builtin_expect.
2706 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2708 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2710 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2713 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2715 * include/libc-symbols.h: Add static_link_warning macro.
2716 * grp/initgroups.c: Print linker warning if this function
2717 is called in a static linked binary.
2718 * nss/getXXbyYY.c: Likewise.
2719 * nss/getXXbyYY_r.c: Likewise.
2720 * nss/getXXent.c: Likewise.
2721 * nss/getXXent_r.c: Likewise.
2722 * sysdeps/posix/getaddrinfo.c: Likewise.
2724 2003-06-16 Bruno Haible <bruno@clisp.org>
2726 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2728 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2729 (IBM1047): Add alias IBM-1047.
2730 (GBK): Add aliases MS936, WINDOWS-936.
2732 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2734 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2735 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2736 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2738 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2740 * locale/iso-639.def: Update from current official ISO 639.
2742 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2744 2003-06-15 Andreas Jaeger <aj@suse.de>
2746 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2748 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2749 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2750 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2752 * math/tgmath.h (carg): Handle real arguments.
2758 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2759 (tests): Add test-tgmath-ret.
2760 * math/test-tgmath-ret.c: New file.
2762 * math/tgmath.h (ilogb): Return always an int.
2764 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2766 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2767 computation so that prelinking works.
2769 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2771 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2773 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2774 dynamic linker's map.
2776 Fix cancellation point handling wrt exception based cleanup.
2777 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2778 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2780 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2781 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2782 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2784 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2785 sigwait.c, and sigwaitinfo.c with exceptions.
2786 * stdlib/Makefile: Compile system.c with exceptions.
2787 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2788 * termios/Makefile: Compile tcdrain.c with exceptions.
2789 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2791 * sysdeps/generic/pselect.c: Likewise.
2792 * sysdeps/posix/sigpause.c: Likewise.
2793 * sysdeps/posix/system.c: Likewise.
2794 * sysdeps/posix/waitid.c: Likewise.
2795 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2796 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2797 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2798 INTERNAL_SYSCALL to not use push inside asm statement so that
2799 unwind info is correct around the syscall.
2800 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2801 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2803 2003-06-15 Andreas Jaeger <aj@suse.de>
2805 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2808 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2810 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2813 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2815 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2818 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2819 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2822 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2823 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2824 * inet/Makefile (routines): Add inet6_option.
2825 * inet/inet6_option.c: New file.
2826 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2827 inet6_option_init, inet6_option_append, inet6_option_alloc,
2828 inet6_option_next, and inet6_option_find.
2830 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2832 * inet/netinet/ip6.h (struct ip6_ext): Define.
2834 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2836 Fixing gcc 3.3 warnings, part II.
2837 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2838 * elf/dl-load.c (cache_rpath): Don't inline.
2839 * iconvdata/cns11642l2.h: Always inline all functions.
2840 * iconvdata/iso-ir-165.h: Likewise.
2841 * locale/Makefile (aux): Add coll-lookup.
2842 * locale/coll-lookup.c: New file.
2843 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2844 (collseq_table_lookup): Likewise.
2845 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2846 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2848 * posix/regcomp.c: Likewise.
2849 * posix/regexec.c: Likewise.
2850 * locale/programs/3level.h (*_get): Always inline.
2851 * locale/programs/locfile.h: Move definition of handle_copy to...
2852 * locale/programs/locfile.c: ...here.
2853 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2854 (obstack_int32_grow_fast): Likewise.
2855 (utf8_encode): Likewise.
2856 (find_element): Avoid aliasing problems.
2857 (insert_value): Likewise.
2858 (collate_read): Likewise.
2859 * nss/getent.c (print_hosts): Don't inline
2860 (print_networks): Likewise.
2861 (print_shadow): Likewise.
2862 (build_doc): Likewise.
2863 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2865 * posix/regcomp.c (re_set_fastmap): Always inline.
2866 (seek_collating_symbol_entry): Likewise.
2867 (lookup_collation_sequence_value): Likewise.
2868 (build_range_exp): Likewise.
2869 (build_collating_symbol): Likewise.
2870 * posix/regexec.c (acquire_init_state_context): Don't inline.
2871 (clean_state_log_if_need): Likewise.
2872 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2874 (evConsTime): Likewise.
2875 (evAddTime): Likewise.
2876 (evSubTime): Likewise.
2877 (evNowTime): Likewise.
2878 (evTimeSpec): Removed.
2879 (__libc_res_nsend): Avoid aliasing problem.
2880 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2881 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2882 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2884 (_dl_string_platform): Likewise.
2885 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2886 (wcwidth_table_lookup): Likewise.
2887 (wctrans_table_lookup): Likewise.
2889 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2891 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2893 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2895 2003-05-29 Jim Meyering <jim@meyering.net>
2897 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2898 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2899 Suggested by Daniel Yacob <locales@geez.org>.
2901 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2903 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2904 @got notation with @toc.
2905 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2906 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2908 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2910 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2911 if only PF_INET address is needed.
2913 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2916 * scripts/config.guess: Update from upstream version.
2917 * scripts/config.sub: Likewise.
2919 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2921 * locale/programs/ld-time.c (time_output): Also copy the era format,
2924 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2926 * posix/transbug.c (run_test): Return 1 for failure.
2927 (do_test): Compare only if run_test is successful.
2929 2003-06-12 Simon Josefsson <jas@extundo.com>
2931 * argp/argp.h [!__THROW]: Define if undefined.
2933 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2935 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2936 more than four parameters.
2937 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2939 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2941 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2942 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2943 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2945 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2947 2003-06-12 Roland McGrath <roland@redhat.com>
2949 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2951 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2953 * posix/regcomp.c (parse_expression): Deliver translation to
2954 build_word_op, and build_charclass.
2955 (build_charclass): Apply translation for character classes too.
2956 (build_word_op): Deliver translation to build_charclass.
2957 * posix/transbug.c: New file.
2958 * posix/Makefile (tests): Add transbug.
2960 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2962 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2963 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2964 'continue' before the others.
2966 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2968 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2969 function [PR libc/5045].
2971 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2974 * time/tzfile.c: Add a couple of __builtin_expect.
2976 Remove warnings gcc 3.3 shows.
2977 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2978 * elf/dl-load.c (fillin_rpath): Likewise.
2979 (add_path): Likewise.
2980 * elf/dl-version.c (find_needed): Always inline.
2981 * elf/do-lookup.c (FCT): Don't inline.
2982 * iconv/Makefile: Extend vpath to intl subdir.
2983 (iconvconfig-modules): Add hash-string.
2984 * iconv/gconv_charset.h (strip): Don't inline.
2985 (upstr): Always inline.
2986 Move __gconv_compare_alias prototype to...
2987 * iconv/gconv_int.h: ...here.
2988 * iconv/gconv_db.c: Don't include gconv_charset.h.
2989 * iconv/gconv_conf.c (add_alias): Don't inline.
2990 (insert_module): Likewise.
2991 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2992 (internal_ucs4_loop_unaligned): Likewise.
2993 (internal_ucs4_loop_single): Likewise.
2994 (ucs4_internal_loop): Likewise.
2995 (ucs4_internal_loop_unaligned): Likewise.
2996 (ucs4_internal_loop_single): Likewise.
2997 (internal_ucs4le_loop): Always inline.
2998 (internal_ucs4le_loop_unaligned): Likewise.
2999 (internal_ucs4le_loop_single): Likewise.
3000 (ucs4le_internal_loop): Likewise.
3001 (ucs4le_internal_loop_unaligned): Likewise.
3002 (ucs4le_internal_loop_single): Likewise.
3003 * iconv/loop.c: Always inline the defined functions.
3004 * iconvdata/cns11642.h: Likewise.
3005 * iconvdata/cns11642l1.h: Likewise.
3006 * iconvdata/euc-kr.c: Likewise.
3007 * iconvdata/gb2312.h: Likewise.
3008 * iconvdata/jis0201.h: Likewise.
3009 * iconvdata/jis0208.h: Likewise.
3010 * iconvdata/jis0212.h: Likewise.
3011 * iconvdata/jisx0213.h: Likewise.
3012 * iconvdata/ksc5601.h: Likewise.
3013 * iconvdata/utf-7.c (base64): Don't inline.
3014 * include/libc-symbols.h (symbol_set_first_element): Add cast
3015 (symbol_set_end_p): Likewise.
3016 * include/set-hooks (RUN_HOOK): Likewise.
3017 * inet/Makefile (aux): Add ifreq.
3018 * intl/Makefile (aux): Add some entries from routines. Add
3020 * intl/hash-string.c: New file.
3021 * intl/hash-string.h: Remove hash_string definition. Declare
3023 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
3024 * iconv/iconvconfig.c (new_name): Likewise.
3025 * intl/dcigettext.c (_nl_find_msg): Likewise.
3026 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
3027 * io/ftw.c (open_dir_stream): Always inline.
3028 (process_entry): Don't inline.
3029 * locale/findlocale.c: Include gconv_int.h.
3030 * locale/setlocale.c (new_composite_name): Don't inline.
3031 * locale/weight.h (findidx): Always inline.
3032 * locale/weightwc.h (findidx): Likewise.
3033 * locale/programs/linereader.c (lr_ignore_rest): Define here.
3034 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
3036 (lr_getc): Always inline.
3037 (lr_ungetc): Likewise.
3038 * nss/nss_files/files-parse.c (parse_list): Likewise.
3039 * stdio-common/Makefile (aux): Add printf-parsemb and
3041 * stdio-common/_itoa.h (_itoa_word): Always inline.
3042 (_fitoa_word, _fitoa): Don't define here, only declare.
3043 * stdio-common/_itoa.c (_iftoa_word): Add here.
3045 * stdio-common/_itowa.h (_itowa_word): Always inline.
3046 * stdio-common/printf-parse.h (read_int): Don't inline.
3047 (find_spec): Don't define.
3048 Declare __find_specmb and __find_specwc.
3049 (parse_one_spec): Don't define.
3050 Declare __parse_one_specmb and __parse_one_specwc.
3051 * stdio-common/printf-parsemb.c: New file.
3052 * stdio-common/printf-parsewc.c: New file.
3053 * stdio-common/vfprintf.c: Update calls to find_spec and
3054 parse_one_spec for new names.
3055 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
3056 * stdlib/Makefile (aux): Add grouping and groupingwc.
3057 * stdlib/grouping.c: New file.
3058 * stdlib/groupingwc.c: New file.
3059 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
3061 * stdlib/rpmatch.c (try): Don't inline.
3062 * stdlib/strtod.c (round_and_return): Don't line.
3063 (str_to_mpn): Likewise.
3064 (__mpn_lshift_1): Always inline. Optimize only for constant count.
3065 Adjust for name change of correctly_grouped_prefix.
3066 * sysdeps/generic/strtol.c: Adjust for name change of
3067 correctly_grouped_prefix.
3068 * string/strxfrm.c (utf8_encode): Don't inline.
3069 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
3070 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
3071 * sysdeps/generic/ifreq.c: New file.
3072 * sysdeps/unix/sysv/linux/ifreq.c: New file.
3073 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
3074 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
3075 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
3076 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
3077 (fde_split): Likewise.
3078 (fde_merge): Likewise.
3079 (end_fde_sort): Likewise.
3080 (init_object): Likewise.
3081 (binary_search_unencoded_fdes): Likewise.
3082 (binary_search_single_encoding_fdes): Likewise.
3083 (binary_search_mixed_encoding_fdes): Likewise.
3084 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
3085 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
3086 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
3087 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3089 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
3090 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
3091 Export them. Prepend __ to name.
3092 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
3093 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
3094 conversion functions.
3095 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3096 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3097 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3098 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
3099 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3100 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3101 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3102 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3103 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
3104 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
3105 to name. Change callers.
3106 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
3107 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
3109 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
3110 * time/tzfile.c (decode): Always inline.
3111 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
3112 Remove cast in tomb function call.
3113 * wcsmbs/wcsrtombs.c Likewise.
3114 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
3117 2003-06-10 Ulrich Drepper <drepper@redhat.com>
3119 * po/zh_CN.po: Update from translation team.
3121 2003-06-10 Jakub Jelinek <jakub@redhat.com>
3123 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
3124 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
3126 2003-06-10 Ulrich Drepper <drepper@redhat.com>
3128 * inet/Makefile (aux): Add check_pf.
3129 * include/ifaddrs.h: Add prototype for __check_pf.
3130 * sysdeps/generic/check_pf.c: New file.
3131 * sysdeps/unix/sysv/linux/check_pf.c: New file.
3132 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
3133 from no_netlink_support. Export.
3134 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
3137 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
3139 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
3140 from getifaddr calls.
3142 2003-06-09 Jakub Jelinek <jakub@redhat.com>
3144 * sysdeps/unix/sysv/linux/kernel-features.h
3145 (__ASSUME_SETRESGID_SYSCALL): Define.
3146 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
3147 instead of __ASSUME_SETRESUID_SYSCALL.
3148 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
3150 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
3151 inline syscall if __NR_setresuid32 is defined.
3152 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
3153 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
3154 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
3155 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3156 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
3157 code handling non-existant setresgid32 syscall with
3158 #if __ASSUME_SETRESGID_SYSCALL == 0.
3160 2003-06-09 Andreas Schwab <schwab@suse.de>
3162 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
3163 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
3164 $(objpfx)rpc-proto.d.
3165 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
3166 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
3167 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
3169 2003-06-08 Ulrich Drepper <drepper@redhat.com>
3171 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
3172 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
3173 defined drop compatibility code.
3174 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
3175 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
3176 defined drop compatibility code.
3177 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
3178 setresuid32 syscall directly if possible.
3179 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
3180 setresgid32 syscall directly if possible.
3181 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
3182 compliant. Don't change sgid.
3183 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
3184 compliant. Don't change suid.
3186 * config.h.in: Add have-forced-unwind.
3187 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
3189 2003-06-07 Ulrich Drepper <drepper@redhat.com>
3191 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
3192 returned status from child matches.
3194 * Makeconfig (gnulib): Add -lgcc_eh once again.
3196 2003-06-06 Ulrich Drepper <drepper@redhat.com>
3198 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
3200 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
3201 %edx for first parameter. This means no pushl and therefore the
3202 unwind info isn't screwed up.
3204 2003-06-04 Richard Henderson <rth@redhat.com>
3206 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
3207 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
3208 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
3209 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
3210 entry sequence and explicit relocs. Add unwind info for sigreturn
3212 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
3214 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
3215 Annotate some parameters.
3216 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
3218 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
3220 * include/libc-symbols.h (symbol_set_declare): Use arrays
3221 of unspecified size.
3223 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3225 * config.make.in (ASFLAGS-config): New.
3226 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
3227 * configure.in (libc_cv_as_noexecstack): New check.
3228 (ASFLAGS_config): Substitute.
3230 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3232 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
3233 hypot, logb): Protect with #ifdef __FAST_MATH__.
3235 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
3237 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
3238 #ifdef __FAST_MATH__.
3240 2003-06-03 Ulrich Drepper <drepper@redhat.com>
3242 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
3243 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
3244 * posix/globtest.sh: Adjust for this change.
3246 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
3247 to get the actual PID value used in the records passed up.
3248 (getifaddrs): Don't initialize nh.pid here.
3250 2003-06-02 Ulrich Drepper <drepper@redhat.com>
3252 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
3255 * po/zh_CN.po: Update from translation team.
3257 * posix/getconf.c (main): Also recognize names without the
3260 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
3262 2003-06-02 Bernd Schmidt <bernds@redhat.com>
3264 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
3265 ldexpf, ldexpl): Only define if __FAST_MATH__.
3267 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
3269 Replace hard-coded offsets into struct sigcontext with generated file.
3270 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
3271 * sysdeps/unix/sysv/linux/ia64/Makefile
3272 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
3273 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
3274 defining SC_* macros here.
3276 2003-06-02 Jakub Jelinek <jakub@redhat.com>
3278 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
3280 2003-06-01 Jakub Jelinek <jakub@redhat.com>
3282 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
3284 2003-06-01 Ulrich Drepper <drepper@redhat.com>
3286 * test-skeleton.c (main): Request getopt to not reorder the
3289 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
3291 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
3294 2003-05-31 Ulrich Drepper <drepper@redhat.com>
3296 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
3298 2003-05-31 Jakub Jelinek <jakub@redhat.com>
3300 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
3302 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
3303 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
3304 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
3306 2003-05-31 Ulrich Drepper <drepper@redhat.com>
3308 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
3311 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
3313 * libio/fileops.c (_IO_file_open): Don't mark as inline.
3315 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
3318 2003-05-30 Ulrich Drepper <drepper@redhat.com>
3320 * scripts/config.guess: Update from master copy.
3321 * scripts/config.sub: Likewise.
3323 2003-05-30 Guido Guenther <agx@sigxcpu.org>
3325 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
3326 SETUP_GP64 and friends.
3327 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
3328 names in internal_syscall{6,7}.
3329 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3330 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
3331 number of syscall arguments.
3332 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3333 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3334 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3336 2003-05-30 Andreas Jaeger <aj@suse.de>
3338 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3341 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
3344 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
3346 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3349 2003-05-30 Jakub Jelinek <jakub@redhat.com>
3351 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
3354 2003-05-11 Andreas Schwab <schwab@suse.de>
3356 * Makerules: Always use -MP together with -MD.
3357 (sed-remove-dotot): Substitute $(..) also at start of line.
3358 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
3359 Generated defines with a single compiler call.
3360 Use $(sed-remove-dotdot).
3361 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
3362 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
3363 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3364 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
3365 * sysdeps/unix/sysv/linux/mips/Makefile
3366 ($(objpfx)syscall-%.h): Likewise.
3368 2003-05-28 Roland McGrath <roland@redhat.com>
3370 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
3372 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
3374 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
3376 2003-05-28 Roland McGrath <roland@redhat.com>
3378 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
3379 rt_sigprocmask system call.
3380 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
3381 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
3383 2003-05-28 Ulrich Drepper <drepper@redhat.com>
3385 * include/libc-symbols.h: Define hidden attribute for real also if
3386 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
3388 * csu/Makefile: Add rules to build Scrt1.o.
3389 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
3390 * sysdeps/x86_64/elf/start.S: Likewise.
3392 2003-05-27 Jakub Jelinek <jakub@redhat.com>
3394 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
3395 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
3396 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
3397 pa_short_int, pa_u_short_int and pa_float.
3399 2003-05-26 Jakub Jelinek <jakub@redhat.com>
3401 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
3402 _IO_str_init_static_internal.
3403 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
3404 change size argument to _IO_size_t, don't limit sprintf to 64M.
3405 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
3406 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
3407 _IO_size_t, don't limit swprintf to 256M.
3408 (_IO_wstr_init_readonly): Remove.
3409 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
3411 (_IO_wstr_init_readonly): Remove prototype.
3412 * libio/iovsprintf.c (_IO_vsprintf): Use
3413 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
3414 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
3415 * libio/memstream.c (open_memstream): Likewise.
3416 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
3417 * libio/vasprintf.c (_IO_vasprintf): Likewise.
3418 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3419 * stdio-common/tst-sprintf.c (main): Add new test.
3421 2003-05-26 Ulrich Drepper <drepper@redhat.com>
3423 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
3424 other implementation in respect of multiple uses of parameter with
3427 2003-05-25 Ulrich Drepper <drepper@redhat.com>
3429 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3430 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
3432 2003-05-22 Andreas Jaeger <aj@suse.de>
3434 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
3436 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3437 * sysdeps/x86_64/strtok.S: Likewise.
3439 2003-05-20 Guido Guenther <agx@sigxcpu.org>
3441 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
3442 to -60 and define SI_TKILL.
3444 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
3446 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
3447 (feexcp_mask_test): Likewise.
3449 2003-05-21 Ulrich Drepper <drepper@redhat.com>
3451 * locale/programs/locale.c (main): Fix typo in last patch.
3453 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
3454 __init_array_start, __init_array_end, __fini_array_start, and
3455 __fini_array_end as hidden.
3457 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
3459 * locale/programs/locale.c (main): Report an error if setlocale()
3460 fails [PR libc/2254].
3462 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3464 * sysdeps/unix/sysv/linux/s390/system.c: New file.
3466 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
3469 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3470 LOADARGS_6): Don't error if syscall argument is a string literal.
3471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
3472 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3473 LOADARGS_6): Likewise.
3475 2003-05-21 Andreas Jaeger <aj@suse.de>
3477 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
3478 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
3479 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
3481 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
3485 * configure.in: Test for asm cfi directives.
3487 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
3489 2003-05-17 Andreas Jaeger <aj@suse.de>
3491 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
3493 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
3495 2003-05-16 Ulrich Drepper <drepper@redhat.com>
3497 * rt/Makefile (tests): Add tst-clock_nanosleep.
3498 * rt/tst-clock_nanosleep.c: New file.
3499 * posix/Makefile (tests): Add tst-nanosleep.
3500 * posix/tst-nanosleep.c: New file.
3502 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
3504 * include/features.h (__USE_XOPEN2K): Define also for
3505 _POSIX_C_SOURCE>=200112L.
3507 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
3508 SI_TKILL code into SI_USER.
3509 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
3511 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
3513 2003-05-15 Jakub Jelinek <jakub@redhat.com>
3515 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
3516 Remove sym argument, always use refsym.
3517 (__process_machine_rela): Adjust callers.
3518 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
3520 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
3522 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3524 2003-05-15 Ulrich Drepper <drepper@redhat.com>
3526 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
3527 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
3528 print numeric values.
3530 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
3532 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
3534 2003-05-14 Andreas Schwab <schwab@suse.de>
3536 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
3538 2003-05-14 Jakub Jelinek <jakub@redhat.com>
3540 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
3541 even if no DT_NEEDED is present.
3543 2003-05-13 David Mosberger <davidm@hpl.hp.com>
3545 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
3546 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
3547 __sigjmp_save) so we can't keep the saved unat value in a scratch
3548 register (r16). Use loc2 instead.
3550 2003-05-13 Ulrich Drepper <drepper@redhat.com>
3552 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
3553 binaries it has to be relocatable.
3555 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
3557 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3559 * sysdeps/powerpc/bits/atomic.h
3560 (__arch_compare_and_exchange_bool_8_rel): Define.
3561 (__arch_compare_and_exchange_bool_16_rel): Define.
3562 (__ARCH_REL_INSTR): Define if not already defined.
3563 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
3564 (__arch_atomic_decrement_if_positive_32):
3565 Add "memory" to clobber list.
3566 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
3567 (__arch_compare_and_exchange_val_32_rel): Define.
3568 (__arch_atomic_exchange_32): Remove.
3569 (__arch_atomic_exchange_32_acq): Define.
3570 (__arch_atomic_exchange_32_rel): Define.
3571 (atomic_compare_and_exchange_val_rel): Define.
3572 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
3573 (atomic_exchange_rel): Define.
3574 * sysdeps/powerpc/powerpc32/bits/atomic.h
3575 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
3576 (__arch_compare_and_exchange_bool_32_rel): Define.
3577 (__arch_compare_and_exchange_bool_64_rel): Define.
3578 (__arch_compare_and_exchange_val_64_rel): Define.
3579 (__arch_atomic_exchange_64): Remove.
3580 (__arch_atomic_exchange_64_acq): Define.
3581 (__arch_atomic_exchange_64_rel): Define.
3582 * sysdeps/powerpc/powerpc64/bits/atomic.h
3583 (__arch_compare_and_exchange_bool_32_rel): Define.
3584 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
3585 (__arch_compare_and_exchange_bool_64_rel): Define.
3586 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
3587 (__arch_compare_and_exchange_val_64_rel): Define.
3588 (__arch_atomic_exchange_64): Remove.
3589 (__arch_atomic_exchange_64_acq): Define.
3590 (__arch_atomic_exchange_64_rel): Define.
3591 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
3592 (__arch_atomic_decrement_if_positive_64):
3593 Add "memory" to clobber list.
3594 [!UP](__ARCH_REL_INSTR): Define as lwsync.
3596 2003-05-11 Andreas Schwab <schwab@suse.de>
3598 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
3600 2003-05-11 Ulrich Drepper <drepper@redhat.com>
3602 * time/tst-strftime.c (do_test): Add tests for - flag.
3604 2003-05-11 Jim Meyering <jim@meyering.net>
3606 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
3607 the space-padded-by-default conversion specifiers, %e, %k, %l.
3609 2003-05-11 Andreas Schwab <schwab@suse.de>
3611 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
3613 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3615 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
3616 already defined and when really needed.
3617 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3619 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3621 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
3622 headers, add defines from kernel header, move it from here...
3623 * inet/netinet/igmp.h: ... to here.
3624 * inet/Makefile (headers): Add netinet/igmp.h.
3625 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
3626 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
3628 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3630 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
3631 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
3633 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3635 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3636 (remove __THROW from possible cancellation points).
3638 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3640 * posix/sched.h (CPU_SETSIZE): Define.
3642 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3644 * Makeconfig (gnulib): Remove -lgcc_eh again.
3646 * posix/sched.h: Change prototypes of sched_getaffinity and
3647 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3648 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3649 * sysdeps/generic/sched_setaffinity.c: Likewise.
3650 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3651 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3652 __CPU_CLR, and __CPU_ISSET.
3653 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3654 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3655 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3657 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3658 (atomic_exchange_rel): New #define.
3659 * sysdeps/ia64/bits/atomic.h: Likewise.
3660 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3662 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3663 * sysdeps/powerpc/bits/atomic.h: Likewise.
3664 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3665 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3666 * sysdeps/x86_64/bits/atomic.h: Likewise.
3667 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3669 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3671 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3673 * malloc/thread-m.h: Remove special handling of thread_atfork if
3674 HAVE_register_atfork_malloc is defined.
3676 2003-05-07 Andreas Jaeger <aj@suse.de>
3678 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3681 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3683 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3684 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3685 * libio/libioP.h: Declare _IO_old_init.
3686 * libio/genops.c (_IO_no_init): Split in two. New function
3689 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3691 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3693 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3695 * include/unistd.h: Declare __libc_enable_secure_decided.
3696 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3697 and AT_EGID. If all found, set __libc_enable_secure and
3698 __libc_enable_secure_decided.
3700 * sysdeps/generic/libc-start.c [!SHARED]: Call
3701 __libc_check_standard_fds after __libc_init_first.
3703 2003-05-05 Roland McGrath <roland@redhat.com>
3705 * Makerules (common-before-compile): New variable.
3706 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3707 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3708 to after all setting of before-compile.
3710 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3712 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3713 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3714 * sysdeps/powerpc/powerpc32/bits/atomic.h
3715 (__arch_compare_and_exchange_val_64_acq): Likewise.
3716 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3717 (__arch_compare_and_exchange_val_8_acq,
3718 __arch_compare_and_exchange_val_16_acq,
3719 __arch_compare_and_exchange_val_64_acq): Likewise.
3720 * sysdeps/sparc/sparc64/bits/atomic.h
3721 (__arch_compare_and_exchange_val_8_acq,
3722 __arch_compare_and_exchange_val_16_acq): Likewise.
3723 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3724 __arch_compare_and_exchange_val_16_acq,
3725 __arch_compare_and_exchange_val_64_acq): Likewise.
3726 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3727 (__arch_compare_and_exchange_val_64_acq): Likewise.
3728 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3730 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3732 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3733 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3734 Return long instead of int.
3735 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3736 0xfffff001u with -4095UL.
3738 2003-05-05 Andreas Jaeger <aj@suse.de>
3740 * sysdeps/x86_64/fpu_control.h: New from i386.
3742 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3743 Define if not defined.
3745 * sunrpc/Makefile (generated-dirs): New variable.
3746 * resolv/Makefile (generated): New variable.
3748 2003-05-04 Roland McGrath <roland@redhat.com>
3750 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3751 Depend on $(before-compile).
3753 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3754 pattern rule. The implicit rule could be ruled out when $(objpfx)
3755 didn't exist at the time of its consideration (ugh!).
3757 * Makerules (+make-deps): Fix target matching.
3758 Use $(sed-remove-dotdot).
3760 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3762 * nscd/nscd.c (main): Parse config file right after parsing
3763 parameters. Then, if get_stats is true, call receive_print_stats.
3764 Drop parameter from nscd_init call.
3765 (get_stats): New variable.
3766 (parse_opt): Set get_stats, don't call receive_print_stats here.
3767 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3769 * nscd/connections.c (stat_user, stat_uid): New variables.
3771 (nscd_init): Don't read configuration file here. Drop parameter.
3772 (handle_request): Cleanup handling of non-database lookup requests.
3773 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3774 Get UID of the specified user. Use xstrdup instead of strdup.
3775 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3777 * nscd/Makefile (nscd-modules): Add xstrdup.
3778 * nscd/nscd.conf: Document stat-user entry.
3780 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3782 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3785 2003-04-22 Roland McGrath <roland@redhat.com>
3787 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3788 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3789 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3790 * elf/dl-support.c: Update defn.
3791 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3792 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3793 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3794 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3795 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3796 set, set up a link_map for the preloaded, prelinked object.
3798 2003-05-03 Roland McGrath <roland@redhat.com>
3800 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3801 * stdio-common/Makefile: ... not here.
3803 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3804 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3806 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3808 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3810 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3812 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3813 comparing ftab elements.
3814 (_dl_unmap): Fix typo in test.
3815 (_dl_make_fptr): Fix typos introduced in last change.
3817 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3818 original patch. Use non-exported symbols. Mark translatable
3819 strings. Pretty printing.
3821 2003-05-02 Roland McGrath <roland@redhat.com>
3823 * Makerules (do-stamp): Do $(make-target-directory).
3825 2003-04-07 H.J. Lu <hjl@gnu.org>
3827 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3829 2003-04-03 H.J. Lu <hjl@gnu.org>
3831 * sysdeps/ia64/dl-fptr.c: Moved to ...
3832 * sysdeps/generic/dl-fptr.c: Here.
3834 * sysdeps/generic/dl-fptr.h: New.
3835 * sysdeps/ia64/dl-fptr.h: New.
3837 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3838 * sysdeps/generic/dl-symaddr.c: here.
3840 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3841 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3842 (ia64_fdesc): Likewise.
3843 (ia64_fdesc_table): Likewise.
3844 (__ia64_make_fptr): Likewise.
3845 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3846 with _dl_boot_fptr_table.
3847 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3849 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3851 2003-05-01 Roland McGrath <roland@redhat.com>
3853 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3854 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3856 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3857 Use $(make-target-directory).
3858 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3860 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3861 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3862 (compile-command.s, compile-command.c): Likewise.
3863 ($(objpfx)%.d): All such pattern rules removed.
3864 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3865 ($(common-objpfx)dummy.d): Target removed.
3866 (make-dummy-dep): Variable removed.
3867 (generate-md5): Likewise.
3868 (%.d: %.dt): New pattern rule.
3869 (+depfiles): Use $(wildcard) function to get just existing *.d files
3870 and .d files for existing *.dt files.
3871 (common-clean): Remove all *.d and *.dt files.
3872 (before-compile): Add $(objpfx). when it doesn't exist,
3873 regardless of $(no_deps).
3874 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3875 (rtld-depfiles): Use .os.d instead of .d names.
3876 Include existing *.d files and .d files for existing *.dt files.
3878 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3879 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3881 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3882 Do s-*.d includes only if we have some syscall routines in this subdir.
3884 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3885 @nobits. The former is accepted by gas on any ELF platform.
3887 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3889 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3891 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3893 2003-04-29 Andreas Schwab <schwab@suse.de>
3895 * string/test-strcat.c (do_one_test): Fix attribute name.
3897 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3899 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3900 uc_flags long for all ABIs.
3902 2003-04-30 Andreas Jaeger <aj@suse.de>
3904 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3905 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3906 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3907 Add bi-arch support.
3909 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3911 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3912 (__posix_memalign): Use __memalign_internal instead of memalign.
3914 2003-04-29 Roland McGrath <roland@redhat.com>
3916 * configure.in: Search for AUTOCONF unconditionally.
3917 Just don't complain about missing it under --without-cvs.
3919 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3920 give hidden for [SHARED] and weak for [! SHARED].
3921 (symbol_set_declare): Use that. Never need weak_extern these days.
3922 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3923 Depend on $(..)Makerules.
3925 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3927 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3928 variants of socket, bind, recvmsg, and sendto.
3930 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3932 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3933 * signal/sigaddset.c: Add libc_hidden_def.
3934 * signal/sigdelset.c: Likewise.
3936 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3938 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3939 to the end of the file.
3941 * configure.in: Change __oline__ to $LINENO.
3942 (HAVE_BUILTIN_REDIRECTION): New check.
3943 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3944 * include/libc-symbols.h (libc_hidden_builtin_proto,
3945 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3946 libc_hidden_builtin_ver): Define.
3947 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3948 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3949 strspn, strstr): Add libc_hidden_builtin_proto.
3950 * intl/plural.y: Include string.h.
3951 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3952 libc_hidden_builtin_def.
3953 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3954 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3955 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3956 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3957 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3958 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3959 * sysdeps/alpha/memchr.S (memchr): Likewise.
3960 * sysdeps/alpha/memset.S (memset): Likewise.
3961 * sysdeps/alpha/strcat.S (strcat): Likewise.
3962 * sysdeps/alpha/strchr.S (strchr): Likewise.
3963 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3964 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3965 * sysdeps/alpha/strlen.S (strlen): Likewise.
3966 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3967 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3968 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3969 * sysdeps/arm/memset.S (memset): Likewise.
3970 * sysdeps/arm/strlen.S (strlen): Likewise.
3971 * sysdeps/generic/memchr.c (memchr): Likewise.
3972 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3973 * sysdeps/generic/memmove.c (memmove): Likewise.
3974 * sysdeps/generic/memset.c (memset): Likewise.
3975 * sysdeps/generic/strcat.c (strcat): Likewise.
3976 * sysdeps/generic/strchr.c (strchr): Likewise.
3977 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3978 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3979 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3980 * sysdeps/generic/strlen.c (strlen): Likewise.
3981 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3982 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3983 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3984 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3985 * sysdeps/generic/strspn.c (strspn): Likewise.
3986 * sysdeps/generic/strstr.c (strstr): Likewise.
3987 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3988 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3989 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3990 * sysdeps/i386/i586/memset.S (memset): Likewise.
3991 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3992 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3993 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3994 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3995 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3996 * sysdeps/i386/i686/memset.S (memset): Likewise.
3997 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3998 * sysdeps/i386/memchr.S (memchr): Likewise.
3999 * sysdeps/i386/memset.c (memset): Likewise.
4000 * sysdeps/i386/strchr.S (strchr): Likewise.
4001 * sysdeps/i386/strcspn.S (strcspn): Likewise.
4002 * sysdeps/i386/strlen.c (strlen): Likewise.
4003 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
4004 * sysdeps/i386/strrchr.S (strrchr): Likewise.
4005 * sysdeps/i386/strspn.S (strspn): Likewise.
4006 * sysdeps/ia64/memchr.S (memchr): Likewise.
4007 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
4008 * sysdeps/ia64/memmove.S (memmove): Likewise.
4009 * sysdeps/ia64/memset.S (memset): Likewise.
4010 * sysdeps/ia64/strcat.S (strcat): Likewise.
4011 * sysdeps/ia64/strchr.S (strchr): Likewise.
4012 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
4013 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
4014 * sysdeps/ia64/strlen.S (strlen): Likewise.
4015 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
4016 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
4017 * sysdeps/m68k/memchr.S (memchr): Likewise.
4018 * sysdeps/m68k/strchr.S (strchr): Likewise.
4019 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
4020 * sysdeps/mips/mips64/memset.S (memset): Likewise.
4021 * sysdeps/mips/memcpy.S (memcpy): Likewise.
4022 * sysdeps/mips/memset.S (memset): Likewise.
4023 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
4024 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
4025 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
4026 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
4027 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
4028 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
4029 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
4030 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
4031 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
4032 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
4033 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
4034 * sysdeps/powerpc/strcat.c (strcat): Likewise.
4035 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
4036 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
4037 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
4038 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
4039 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
4040 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
4041 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
4042 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
4043 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
4044 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
4045 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
4046 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
4047 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
4048 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
4049 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
4050 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
4051 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
4052 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
4053 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
4054 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
4055 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
4056 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
4057 * sysdeps/sh/memcpy.S (memcpy): Likewise.
4058 * sysdeps/sh/memset.S (memset): Likewise.
4059 * sysdeps/sh/strlen.S (strlen): Likewise.
4060 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
4061 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
4062 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
4063 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
4064 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
4065 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
4066 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
4067 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
4068 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
4069 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
4070 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
4071 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
4072 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
4073 * sysdeps/x86_64/memset.S (memset): Likewise.
4074 * sysdeps/x86_64/strcat.S (strcat): Likewise.
4075 * sysdeps/x86_64/strchr.S (strchr): Likewise.
4076 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
4077 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
4078 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
4079 * sysdeps/x86_64/strlen.S (strlen): Likewise.
4080 * sysdeps/x86_64/strspn.S (strspn): Likewise.
4081 * string/string-inlines.c: Move...
4082 * sysdeps/generic/string-inlines.c: ...here.
4083 (__memcpy_g, __strchr_g): Remove.
4084 (__NO_INLINE__): Define before including <string.h>,
4085 undefine after. Include bits/string.h and bits/string2.h.
4086 * sysdeps/i386/i486/string-inlines.c: New file.
4087 * sysdeps/i386/string-inlines.c: New file.
4088 * sysdeps/i386/i486/Versions: Remove.
4089 All GLIBC_2.1.1 symbols moved...
4090 * sysdeps/i386/Versions (libc): ...here.
4092 2003-04-29 Ulrich Drepper <drepper@redhat.com>
4094 * sysdeps/i386/fpu/Makefile: New file.
4095 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
4096 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4097 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4098 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
4101 2003-04-28 Ulrich Drepper <drepper@redhat.com>
4103 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
4104 * nscd/nscd_getpw_r.c: Likewise.
4105 * nscd/nscd_gethst_r.c: Likewise.
4107 2003-04-27 Ulrich Drepper <drepper@redhat.com>
4109 * nscd/pwdcache.c: Initialize .version element in result.
4110 * nscd/grpcache.c: Likewise.
4111 * nscd/pwdcache.c: Likewise.
4113 2003-04-27 Andreas Schwab <schwab@suse.de>
4115 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
4118 2003-04-27 Andreas Schwab <schwab@suse.de>
4120 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
4122 2003-04-27 Ulrich Drepper <drepper@redhat.com>
4124 * nscd/connections.c (client_queued): New variable.
4125 (nscd_run): Revamp the loop. Don't call poll except for cleanup
4126 threads. Keep track of the number of delays caused because of busy
4128 * nscd/nscd.h: Declare client_queued.
4129 * nscd/nscd_stat.c: Transmit and print client_queued information.
4131 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
4133 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
4134 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
4136 2003-04-26 Ulrich Drepper <drepper@redhat.com>
4138 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
4139 tracking of freed memory in static TLS block.
4140 * elf/Makefile: Add rules to build and run tst-tls13.
4141 * elf/tst-tls13.c: New file.
4142 * elf/tst-tlsmod13.c: New file.
4143 * elf/tst-tlsmod13a.c: New file.
4145 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
4147 * elf/dl-reloc.c: Pretty printing.
4149 2003-04-26 Roland McGrath <roland@redhat.com>
4151 * Makerules ($(common-objpfx)shlib.lds): New target.
4152 (common-generated): Add it.
4153 (build-shlib, build-module): Use that instead of generating every time.
4154 ($(common-objpfx)libc.so): Depend on it.
4155 (lib%.so rule): Likewise.
4156 (build-module-helper-objlist): Remove %.lds.
4157 (LDSEDCMD-c.so): Variable removed.
4158 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
4159 Depend on $(common-objpfx)shlib.lds.
4160 * dlfcn/Makefile ($(test-modules)): Likewise.
4162 2003-04-26 Roland McGrath <roland@frob.com>
4164 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
4166 2003-04-26 Andreas Schwab <schwab@suse.de>
4168 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
4170 2003-04-25 Ulrich Drepper <drepper@redhat.com>
4172 * nscd/cache.c (cache_search): Keep track of how many chain links
4173 we searched and update table statistics.
4174 (cache_add): Keep track of how many values are in the table.
4175 (prune_cache): Likewise. Keep track of locking success.
4176 Print messages about removed entries in separate pass.
4177 * nscd/connections.c (handle_request): Don't print debug message here.
4178 The caller will do it. Keep track of locking success.
4179 (nscd_run): Print debug message. Also print PID of the client process.
4180 * nscd/nscd.c (start_time): New variable.
4181 (main): Remember start time.
4182 * nscd/nscd.h: Declare start_time.
4183 (struct database): Add more members for new statistics.
4184 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
4187 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
4189 2003-04-22 Jakub Jelinek <jakub@redhat.com>
4191 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
4192 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
4193 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
4195 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
4196 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
4197 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
4198 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
4201 2003-04-24 Ulrich Drepper <drepper@redhat.com>
4203 * nss/getent.c: Implement alternative host database lookup via
4206 * include/ifaddrs.h: New file.
4207 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
4209 * resolv/netdb.h: ...here.
4210 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
4211 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4212 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
4215 2003-04-24 Roland McGrath <roland@redhat.com>
4217 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
4219 2003-04-24 Jakub Jelinek <jakub@redhat.com>
4221 * elf/dl-reloc.c (allocate_static_tls): Rename to...
4222 (_dl_allocate_static_tls): ... this function. No longer static.
4223 (CHECK_STATIC_TLS): Adjust.
4224 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
4225 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
4226 Add SYM_MAP argument.
4227 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
4228 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
4229 TLS relocs here. #ifdef out relocs which never appear in
4230 .gnu.conflict section from dl-conflict.c processing.
4231 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4232 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
4234 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
4235 out relocs which never appear in .gnu.conflict section from
4236 dl-conflict.c processing.
4237 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4238 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4239 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
4240 Use r_type in RESOLVE macro.
4242 2003-04-23 Ulrich Drepper <drepper@redhat.com>
4244 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
4245 NULL. Remove code made redundant by this assumption.
4246 (__yp_unbind): Add call to free. Adjust all callers.
4248 * nis/ypclnt.c (yp_all): Free the dom_binding object after
4251 * grp/initgroups.c (getgrouplist): Don't copy too much into the
4252 user buffer if more groups are found than fit into it.
4254 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
4257 2003-04-23 Jakub Jelinek <jakub@redhat.com>
4259 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
4260 not rc == errno. Use extend_alloca.
4262 * elf/tst-tls12.c (main): Fix declaration.
4263 * elf/tst-tls10.c (dummy): Make hidden instead of static.
4264 * elf/tst-tlsmod7.c (dummy): Likewise.
4265 * elf/tst-tlsmod8.c (dummy): Likewise.
4266 * elf/tst-tlsmod9.c (dummy): Likewise.
4268 2003-04-22 Roland McGrath <roland@redhat.com>
4270 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
4271 (open_not_cancel): Make last argument non-optional.
4272 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
4273 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
4274 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4276 * include/tls.h: Protect against multiple inclusion.
4278 2003-04-22 Ulrich Drepper <drepper@redhat.com>
4280 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
4281 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
4282 open_socket. Not static anymore.
4283 (nscd_gethst_r): Use __nscd_open_socket.
4284 * nscd/nscd_getgr_r.c (open_socket): Removed.
4285 (nscd_getgr_r): Use __nscd_open_socket.
4286 * nscd/nscd_getpw_r.c (open_socket): Removed.
4287 (nscd_getpw_r): Use __nscd_open_socket.
4289 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
4290 * nscd/connections.c (handle_request): Add cast to avoid warning.
4292 2003-04-21 Ulrich Drepper <drepper@redhat.com>
4294 * signal/sigfillset.c: Moved to...
4295 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
4296 do not set the corresponding bit.
4298 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
4300 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
4301 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
4302 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
4303 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
4304 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
4306 2003-04-20 Ulrich Drepper <drepper@redhat.com>
4308 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
4309 first syscall parameter to const char*.
4311 2003-04-19 Ulrich Drepper <drepper@redhat.com>
4313 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
4315 * configure.in: Add AC_PROG_CXX.
4316 * config.make.in (CXX): Define.
4318 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
4319 __len to size_t to avoid warnings.
4321 2003-04-18 Jes Sorensen <jes@wildopensource.com>
4323 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
4325 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4327 2003-04-19 Ulrich Drepper <drepper@redhat.com>
4329 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
4330 UNREGISTER_ATFORK if d == NULL.
4332 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
4333 * dirent/dirent.h: Likewise.
4334 * dlfcn/dlfcn.h: Likewise.
4335 * grp/grp.h: Likewise.
4336 * iconv/iconv.h: Likewise.
4337 * io/fcntl.h: Likewise.
4338 * io/ftw.h: Likewise.
4339 * libio/stdio.h: Likewise.
4340 * misc/sys/mman.h: Likewise.
4341 * misc/sys/select.h: Likewise.
4342 * misc/sys/syslog.h: Likewise.
4343 * misc/sys/uio.h: Likewise.
4344 * posix/spawn.h: Likewise.
4345 * posix/unistd.h: Likewise.
4346 * posix/sys/wait.h: Likewise.
4347 * pwd/pwd.h: Likewise.
4348 * resolv/netdb.h: Likewise.
4349 * rt/aio.h: Likewise.
4350 * shadow/shadow.h: Likewise.
4351 * signal/signal.h: Likewise.
4352 * socket/sys/socket.h: Likewise.
4353 * stdlib/stdlib.h: Likewise.
4354 * streams/stropts.h: Likewise.
4355 * string/string.h: Likewise.
4356 * sysdeps/gnu/utmpx.h: Likewise.
4357 * sysvipc/sys/msg.h: Likewise.
4358 * termios/termios.h: Likewise.
4359 * time/time.h: Likewise.
4360 * wcsmbs/wchar.h: Likewise.
4361 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
4363 * misc/daemon.c: Likewise.
4364 * sysdeps/generic/backtracesymsfd.c: Likewise.
4365 * sysdeps/generic/check_fds.c: Likewise.
4366 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
4367 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
4368 * sysdeps/generic/not-cancel.h: New file.
4369 * csu/Makefile (distribute): Add not-cancel.h.
4370 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
4371 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
4372 for assert.c and assert-perr.c to include <fatal-prepare.h>.
4373 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
4375 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
4376 errno and unlink first.
4378 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
4380 2003-04-18 Ulrich Drepper <drepper@redhat.com>
4382 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
4383 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
4385 2003-04-17 Ulrich Drepper <drepper@redhat.com>
4387 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
4389 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
4390 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
4393 * signal/Makefile (tests): Add tst-sigsimple.
4394 * signal/tst-sigsimple.c: New file.
4396 2003-04-16 Jakub Jelinek <jakub@redhat.com>
4398 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
4400 (tests): Add tst-tls1[0-2].
4401 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
4402 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
4403 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
4404 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
4405 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
4406 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
4407 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
4408 * elf/tst-tls10.c: New test.
4409 * elf/tst-tls11.c: New test.
4410 * elf/tst-tls12.c: New test.
4411 * elf/tst-tls10.h: New file.
4412 * elf/tst-tlsmod7.c: New file.
4413 * elf/tst-tlsmod8.c: New file.
4414 * elf/tst-tlsmod9.c: New file.
4415 * elf/tst-tlsmod10.c: New file.
4416 * elf/tst-tlsmod11.c: New file.
4417 * elf/tst-tlsmod12.c: New file.
4419 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4421 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
4422 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
4423 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
4425 2003-04-17 Ulrich Drepper <drepper@redhat.com>
4427 * posix/regex.h: Include <sys/types.h>.
4429 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
4430 The signal number must be checked.
4431 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
4432 The signal number must be checked [PR libc/5004].
4434 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
4435 don't do anything fancy.
4437 * sysdeps/generic/bits/libc-lock.h: Define
4438 __rtld_lock_define_initialized_recursive.
4440 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
4441 contacting nscd if NOT_USENSCD_NAME > 0.
4442 * nss/nsswitch.c (__nss_disable_nscd): New function.
4443 * nss/nsswitch.h: Declare it.
4444 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
4445 * nscd/nscd.c (main): Call __nss_disable_nscd.
4447 2003-04-16 Ulrich Drepper <drepper@redhat.com>
4449 * stdio-common/perror.c (perror): We don't need to set the offset
4450 to _IO_pos_bad, this is how streams are initialized.
4452 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
4453 (time_output): If necessary, allocate new buffer for .name string if
4454 padding is required.
4456 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
4457 before copying. This might leave holes in the list. Adjust
4458 pointers if necessary.
4459 (netlink_receive): Allocate only one block.
4460 (free_netlink_handle): Adjust appropriately.
4461 (getifaddrs): Lots of cleanups.
4463 * string/test-strncpy.c (do_one_test): Mark start and stop as
4465 * string/test-memchr.c: Likewise.
4466 * string/test-memcmp.c: Likewise.
4467 * string/test-memcpy.c: Likewise.
4468 * string/test-memmove.c: Likewise.
4469 * string/test-memset.c: Likewise.
4470 * string/test-strcat.c: Likewise.
4471 * string/test-strchr.c: Likewise.
4472 * string/test-strcmp.c: Likewise.
4473 * string/test-strcpy.c: Likewise.
4474 * string/test-strlen.c: Likewise.
4475 * string/test-strncmp.c: Likewise.
4476 * string/test-strpbrk.c: Likewise.
4477 * string/test-strrchr.c: Likewise.
4478 * string/test-strspn.c: Likewise.
4480 2003-04-15 Roland McGrath <roland@redhat.com>
4482 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
4484 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
4485 INTUSE(__register_frame_info_bases).
4487 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4489 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
4490 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
4491 AT_SYSINFO_EH_FRAME. Adjust string width.
4492 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
4493 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
4494 Add _dl_sysinfo_eh_frame field.
4495 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
4496 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
4498 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
4499 if _dl_sysinfo_eh_frame is non-NULL.
4501 * Makeconfig (gnulib): Add -lgcc_eh.
4503 * config.h.in: Define HAVE_FORCED_UNWIND.
4505 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4507 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
4508 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
4510 2003-04-15 Jakub Jelinek <jakub@redhat.com>
4512 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
4513 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
4514 against local symbol in conflict processing.
4516 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4518 * sysdeps/powerpc/bits/atomic.h
4519 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
4520 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
4522 (__arch_compare_and_exchange_val_32_acq): Define.
4523 (atomic_compare_and_exchange_val_acq): Define.
4525 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4527 * include/atomic.h: Pretty printing.
4529 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4531 * stdio-common/vfscanf.c: Add casts to avoid warnings.
4533 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4535 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
4536 * sysdeps/x86_64/bits/atomic.h: Likewise.
4538 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4540 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
4541 POPARGS_1 to emit labels for the mov instructions.
4543 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4545 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
4547 2003-04-14 Roland McGrath <roland@redhat.com>
4549 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
4552 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
4554 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4556 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
4557 position. Reported by jreiser@BitWagon.com.
4559 2003-04-13 Ulrich Drepper <drepper@redhat.com>
4561 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
4562 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
4563 * sysdeps/generic/unwind-dw2.c: Likewise.
4564 * sysdeps/generic/unwind-pe.h: Likewise.
4566 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
4568 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
4569 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
4570 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
4571 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
4572 (mcontext_t): Make it match the 32-bit mips kernel in o32.
4573 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
4574 the mips and mips64 headers.
4575 (struct user): Port to n32/n64.
4577 2003-04-12 Ulrich Drepper <drepper@redhat.com>
4579 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
4582 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
4583 __ASSUME_VSYSCALL is defined don't add restorer.
4584 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4585 __ASSUME_VSYSCALL for 2.5.53.
4587 2003-04-11 Ulrich Drepper <drepper@redhat.com>
4589 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
4590 Remove HAVE_CANCELBUF code. Replace with code using the new
4591 initializers for unwind-based cleanup handling.
4592 * sysdeps/generic/unwind.h: Update from latest gcc version.
4593 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
4594 places to allow unwind data generation.
4595 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
4596 * sysdeps/x86_64/bits/setjmp.h: Likewise.
4597 * sysdeps/sh/bits/setjmp.h: Likewise.
4598 * sysdeps/powerpc/bits/setjmp.h: Likewise.
4599 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
4600 * sysdeps/alpha/bits/setjmp.h: Likewise.
4602 2003-04-11 Roland McGrath <roland@redhat.com>
4604 * csu/tst-empty.c: New file.
4605 * csu/Makefile (tests, tests-static): Add it.
4607 2003-04-11 Jakub Jelinek <jakub@redhat.com>
4609 * string/test-strcmp.c (do_random_tests): Test whether return value
4610 has been promoted to wordsize if the ABI requires caller to do so.
4611 * string/test-strncmp.c (do_random_tests): Likewise.
4612 * string/test-memcmp.c (do_random_tests): Likewise.
4614 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
4617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4618 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
4619 is not defined, but the prctl constants are.
4621 * string/tester.c (test_strcmp): Fix a typo.
4623 2003-04-09 Ulrich Drepper <drepper@redhat.com>
4625 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
4626 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
4628 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4630 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
4632 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
4634 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4636 * sysdeps/mips/mips64/memset.S: Likewise.
4637 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4638 Use t0 instead of t4 as temporary.
4640 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4642 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4643 feof_unlocked instead of feof.
4644 (add_dir): Ignore trailing whitespace.
4646 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4648 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4649 sum of SIZE1 and SIZE2 arguments.
4651 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4653 * iconv/iconv_prog.c (process_block): Don't print message about
4654 invalid input if the -c option is used.
4655 (main): Correctly append IGNORE string for -c option.
4657 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4659 * sysdeps/sh/bits/atomic.h: Moved to ...
4660 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4661 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4663 (atomic_bit_set, atomic_bit_test_set): Likewise.
4664 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4666 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4668 2003-04-06 Roland McGrath <roland@redhat.com>
4670 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4671 restoration as done for setcontext yesterday.
4673 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4675 * elf/rtld.c: Revert 2003-03-14 change.
4676 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4677 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4679 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4681 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4683 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4684 Always initialize *signgamp before returning an error.
4686 2003-04-05 Roland McGrath <roland@redhat.com>
4688 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4689 below the stack pointer even if switching to the same context we are
4692 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4694 * catgets/gencat.c (read_input_file): Make sure that \n is not
4695 alone on the line before testing for continuation.
4697 * math/test-tgmath.c (compile_test): Initialize c.
4699 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4701 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4702 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4703 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4705 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4706 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4707 structure on n32 as well.
4708 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4709 data types on n32 and n64.
4711 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4713 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4716 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4717 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4718 instead of __register_atfork.
4720 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4722 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4723 instead of malloc __printf_arginfo_table and __printf_function_table.
4724 Reported by John Reiser <jreiser@BitWagon.com>.
4726 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4728 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4729 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4731 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4734 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4736 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4739 2003-04-03 Roland McGrath <roland@redhat.com>
4741 * configure.in: Fix up use of compilation flags to match the build:
4742 For .s files, $ASFLAGS;
4743 For .S files, $CPPFLAGS $ASFLAGS;
4744 For .c files, $CFLAGS $CPPFLAGS;
4745 when linking, add $LDFLAGS.
4746 * configure: Regenerated.
4748 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4750 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4751 for atomic_compare_and_exchange_bool_acq failure.
4753 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4755 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4756 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4757 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4758 Remove declaration of pthread_atfork.
4760 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4762 * locale/iso-639.def: Add many more languages from the current ISO 639.
4764 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4765 * sysdeps/generic/semtimedop.c: New file.
4766 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4767 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4768 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4769 * sysvipc/Makefile (routines): Add semtimedop.
4770 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4771 * sysvipc/sys/sem.h: Declare semtimedop.
4773 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4775 * configure.in: Check for __register_frame_info in both
4777 * configure: Regenerated.
4779 2003-04-01 Roland McGrath <roland@redhat.com>
4781 * scripts/abilist.awk: Allow dots in soname suffix.
4783 * scripts/abilist.awk (emit): Fix bailout condition.
4785 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4787 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4790 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4791 register as input to asm.
4793 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4795 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4797 2003-04-01 Andreas Jaeger <aj@suse.de>
4799 * configure.in: Output as/ld as name if version is too old.
4801 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4803 * configure.in: Don't require an installed C library in the test
4804 for ".set" assembler support.
4806 2003-03-31 Roland McGrath <roland@redhat.com>
4808 * signal/tst-sigset.c: New file.
4809 * signal/Makefile (tests): Add it.
4811 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4813 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4814 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4815 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4816 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4817 (__SIGRTMAX): Adjust accordingly.
4818 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4819 second compatibility symbol set.
4820 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4822 2003-03-31 Andreas Schwab <schwab@suse.de>
4824 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4826 (atomic_decrement_and_test): Fix test.
4828 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4830 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4831 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4832 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4833 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4834 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4835 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4837 2003-03-30 Roland McGrath <roland@redhat.com>
4839 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4841 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4843 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4845 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4846 and remove a useless s/// command.
4848 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4850 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4851 directive into empty .prologue region to ensure that call-chain
4852 is terminated even for the first instruction.
4854 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4855 to terminate call-chain right from the get-go.
4857 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4858 stop bit between compare & branch.
4860 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4862 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4863 point correctly [PR libc/4993].
4865 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4866 netlink_open calls if netlink is known to not be available.
4868 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4870 * configure.in: Add mips64* support.
4871 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4872 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4873 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4874 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4875 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4876 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4877 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4878 * sysdeps/mips/Implies: Moved wordsize-32 to...
4879 * sysdeps/mips/mips32/Implies: New file.
4880 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4882 (ret, PSEUDO_END): Moved past END.
4883 (PSEUDO): Moved to...
4884 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4885 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4886 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4887 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4888 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4889 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4891 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4894 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4896 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4897 * inet/test-ifaddrs.c: Allow AF_PACKET.
4898 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4899 __ASSUME_NETLINK_SUPPORT.
4901 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4903 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4905 2003-03-26 H.J. Lu <hjl@gnu.org>
4907 * elf/vismod.h (getvarlocal1): Return const char **.
4908 (getvarinmod1): Likewise.
4909 (getvaritcpt1): Likewise.
4910 (getvarlocal2): Likewise.
4911 (getvarinmod2): Likewise.
4912 (getvaritcpt2): Likewise.
4913 (getvaritcpt3): Likewise.
4914 * elf/vismain.c (do_test): Adjusted.
4915 * elf/vismod1.c (getvarlocal1): Return address.
4916 (getvarinmod1): Likewise.
4917 (getvaritcpt1): Likewise.
4918 * elf/vismod2.c (getvarlocal2): Likewise.
4919 (getvarinmod2): Likewise.
4920 (getvaritcpt2): Likewise.
4921 * elf/vismod3.c (getvaritcpt3): Likewise.
4923 2003-03-28 Roland McGrath <roland@redhat.com>
4925 * elf/vismain.c (do_test): Print both addresses when they don't match.
4927 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4928 libname_regexp when parsing names, then produce output only
4929 for those matching the given regexps. In combine mode, save all
4930 stanzas for a final sorting by stanza header at the end.
4931 Emit a blank line between stanzas.
4933 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4934 emit a single output stream with lib name in stanza header lines.
4936 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4938 2003-03-27 Roland McGrath <roland@redhat.com>
4940 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4941 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4943 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4945 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4946 Return old value. Make asm output reg constraint earlyclobber.
4948 (__arch_compare_and_exchange_8_acq): ... this.
4949 (__arch_compare_and_exchange_val_16_acq):
4950 Return old value. Make asm output reg constraint earlyclobber.
4952 (__arch_compare_and_exchange_16_acq): ... this.
4953 (__arch_compare_and_exchange_val_32_acq):
4954 Return old value. Make asm output reg constraint earlyclobber.
4956 (__arch_compare_and_exchange_32_acq): ... this.
4957 (__arch_compare_and_exchange_val_64_acq):
4959 (__arch_compare_and_exchange_64_acq): ... this.
4960 (atomic_exchange_and_add): Use local variables and
4961 __arch_compare_and_exchange_val_64_acq.
4962 (atomic_add): Likewise.
4963 (atomic_add_negative, atomic_add_zero): Use local variables.
4965 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4967 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4969 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4971 * Makefile: Remove libmd5crypt goal.
4973 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4975 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4976 special handling of relocations against local symbols.
4978 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4980 * sysdeps/powerpc/bits/atomic.h
4981 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4982 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4983 Define PPC64 specific version.
4984 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4985 Change (mem) constraint to "b".
4986 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4987 Replace addi with add. Change (value) contraint to "r".
4988 Change (mem) constraint to "b".
4989 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4990 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4991 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4992 (__arch_atomic_decrement_if_positive_32): New macro.
4993 (atomic_decrement_if_positive): Use __arch* macros.
4995 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4997 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4999 2003-03-27 Roland McGrath <roland@redhat.com>
5001 * scripts/rpm2dynsym.sh: New file.
5002 * Makefile (distribute): Add it.
5004 2003-03-27 David Mosberger <davidm@hpl.hp.com>
5006 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
5007 ar.unat before returning. Add missing .mem.offset directives
5008 to ensure file gets assembled without warnings.
5009 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5011 2003-03-27 Jakub Jelinek <jakub@redhat.com>
5013 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
5014 Return -1 instead of 0 if clock_getres failed.
5016 2003-03-27 Roland McGrath <roland@redhat.com>
5018 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
5019 header lines and write out foo.symlist files for each foo.so.NN listed.
5021 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
5022 This symbol is exported, and we don't want to hide it.
5023 Add libc_hidden_proto instead.
5024 (_IO_file_jumps): Add libc_hidden_proto.
5025 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
5027 * libio/fileops.c (_IO_file_jumps): Likewise.
5028 * libio/stdfiles.c: Don't use INTUSE on them.
5029 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
5030 * libio/iofopen.c (__fopen_internal): Likewise.
5031 * libio/freopen.c (freopen): Likewise.
5032 * libio/freopen64.c (freopen64): Likewise.
5033 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5035 * Makerules (check-abi) [$(enable-check-abi) = warn]:
5036 Ignore exit status from diff.
5037 * configure.in (enable_check_abi): Document possible value "warn".
5038 Change default to no for now.
5039 * configure: Regenerated.
5041 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
5042 macro calls and a #include <stub-tag.h> at the end.
5043 * Makerules ($(objpfx)stubs): Tweak sed commands.
5045 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
5046 caller column for *xattr syscalls, since they are in sysdeps/generic.
5048 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
5049 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
5051 2003-03-26 Roland McGrath <roland@redhat.com>
5053 * Makerules (check-abi-config): Use /thread instead of /tls when
5054 use-thread and not just use-tls is set.
5056 * Makerules (update-abi): Put quotes around $(update-abi-config).
5058 * elf/Makefile (check-abi): Depend on check-abi-ld.
5059 (update-abi): Depend on update-abi-ld.
5061 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
5063 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
5064 do not check for errors (unless testing for 32bit variant).
5065 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
5067 2003-03-27 Philip Blundell <philb@gnu.org>
5069 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
5070 unconditional mov. Remove nop.
5072 * sysdeps/unix/sysv/linux/kernel-features.h
5073 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
5074 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
5075 when __ASSUME_VFORK_SYSCALL is defined.
5076 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
5077 __ASSUME_MMAP2_SYSCALL.
5078 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
5079 __ASSUME_REALTIME_SIGNALS.
5081 2003-03-26 Ulrich Drepper <drepper@redhat.com>
5083 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
5084 only if DL_NO_COPY_RELOCS is not defined.
5085 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
5087 2003-03-26 Roland McGrath <roland@redhat.com>
5089 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
5090 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
5091 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
5092 (sysdep_routines): Add stub-syscalls.
5093 ($(objpfx)stub-syscalls.c): New target.
5094 (generated): Add stub-syscalls.c.
5096 * tls.make.c: Also define use-tls according to USE_TLS macro.
5098 2003-03-26 Ulrich Drepper <drepper@redhat.com>
5100 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
5101 no-op padding element.
5102 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
5103 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
5104 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5105 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5107 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
5109 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
5110 condition check for the return value of getgroups32.
5112 2003-03-26 Jakub Jelinek <jakub@redhat.com>
5114 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
5116 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
5117 PSEUDO_END_NOERRNO): Define.
5118 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
5119 Define to PSEUDO_END.
5121 2003-03-26 Ulrich Drepper <drepper@redhat.com>
5123 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
5125 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
5127 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
5128 * iconvdata/bug-iconv4.c: New file.
5129 * iconvdata/Makefile (tests): Add bug-iconv4.
5131 2003-03-25 H.J. Lu <hjl@gnu.org>
5133 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
5135 (_dl_lookup_versioned_symbol): Likewise.
5137 2003-03-26 Jakub Jelinek <jakub@redhat.com>
5139 * csu/tst-atomic.c (do_test): Add some new
5140 atomic_compare_and_exchange_val_acq, atomic_add_zero,
5141 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
5142 * include/atomic.h (atomic_add_negative, atomic_add_zero):
5143 Prefix local variable so that it doesn't clash with the one
5144 in atomic_exchange_and_add.
5145 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
5147 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
5148 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
5149 value into register.
5150 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
5151 Cast newval to long.
5152 * sysdeps/x86_64/bits/atomic.h
5153 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
5155 (atomic_exchange): Cast newvalue to long if sizeof == 8.
5156 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
5157 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
5158 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
5160 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
5162 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
5163 bit from backtrace addresses.
5165 2003-03-21 Andreas Schwab <schwab@suse.de>
5167 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
5170 2003-03-25 Roland McGrath <roland@redhat.com>
5172 * config.make.in (enable-check-abi): New variable from configure.
5173 * configure.in (enable_check_abi): New substituted variable,
5174 controlled by --{enable,disable}-check-abi (default yes).
5175 * configure: Regenerated.
5176 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
5177 on check-abi dependency.
5179 2003-03-26 Andreas Schwab <schwab@suse.de>
5181 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
5182 * include/atomic.h: Likewise.
5184 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
5186 2003-03-25 Roland McGrath <roland@redhat.com>
5188 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
5189 (__arch_atomic_exchange_64): New macro.
5190 (atomic_exchange): Use them.
5191 (__arch_atomic_exchange_and_add_32): New macro.
5192 (__arch_atomic_exchange_and_add_64): New macro.
5193 (atomic_exchange_and_add): Use them.
5194 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
5196 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
5198 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
5200 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
5202 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
5203 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
5204 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
5205 to decide whether to add padding.
5206 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
5207 to decide whether to add padding.
5208 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
5209 old_kernel_sigaction): Likewise.
5211 2003-03-25 Ulrich Drepper <drepper@redhat.com>
5213 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
5214 atomic_add_zero were supposed to do.
5215 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
5218 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
5219 This matches the new timer implementation.
5220 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
5222 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
5224 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
5225 timer info for what the kernel provides these days.
5226 (struct sigevent): Add _tid field.
5227 Define SIGEV_THREAD_ID.
5228 Remove struct __pthread_attr_s forward declaration.
5229 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
5230 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
5231 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
5232 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5234 * Versions.def (librt): Add GLIBC_2.3.3.
5236 * abilist/libpthread.abilist: Update for nptl.
5238 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
5240 * inet/netinet/in.h: Add IPPROTO_SCTP.
5242 2003-03-24 Ulrich Drepper <drepper@redhat.com>
5244 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
5246 2003-03-24 Philip Blundell <philb@gnu.org>
5248 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
5249 Remove a1 from clobber list.
5251 2003-03-24 Ulrich Drepper <drepper@redhat.com>
5253 * timezone/antarctica: Update from tzdata2003a.
5254 * timezone/asia: Likewise.
5255 * timezone/australasia: Likewise.
5256 * timezone/europe: Likewise.
5257 * timezone/iso3166.tab: Likewise.
5258 * timezone/northamerica: Likewise.
5259 * timezone/southamerica: Likewise.
5260 * timezone/zone.tab: Likewise.
5262 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
5264 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
5266 2003-03-23 Ulrich Drepper <drepper@redhat.com>
5268 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
5269 unwanted expansion by definining to ret. Patch by Ian Wienand.
5271 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
5272 the parameter description to denote no error checking. Generate
5273 appropriate pseudo asm code.
5274 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
5275 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
5276 getpgrp, and getppid with 'E'.
5277 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
5278 PSEUDO_END_NOERRNO, and ret_NOERRNO.
5279 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5280 * sysdeps/unix/sysdep.h: Likewise.
5281 * sysdeps/unix/alpha/sysdep.h: Likewise.
5282 * sysdeps/unix/sparc/sysdep.h: Likewise.
5283 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
5284 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
5285 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
5286 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5287 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
5288 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
5289 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5290 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5291 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
5292 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5293 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5295 2003-03-23 Roland McGrath <roland@redhat.com>
5297 * Makeconfig (+includes): Don't use $(last-includes).
5299 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
5301 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
5302 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5304 2003-03-23 Jakub Jelinek <jakub@redhat.com>
5306 * sysdeps/alpha/fpu/libm-test-ulps: Update.
5307 * sysdeps/arm/libm-test-ulps: Update.
5308 * sysdeps/hppa/fpu/libm-test-ulps: Update.
5309 * sysdeps/ia64/fpu/libm-test-ulps: Update.
5310 * sysdeps/mips/fpu/libm-test-ulps: Update.
5311 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5312 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5313 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
5314 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
5315 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
5316 * sysdeps/s390/fpu/libm-test-ulps: Update.
5317 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5319 2003-03-22 Roland McGrath <roland@redhat.com>
5321 * include/atomic.h: Put parens around all macro arguments.
5322 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
5323 (atomic_compare_and_exchange_val_acq): Use it.
5324 (atomic_compare_and_exchange_bool_acq): Likewise.
5325 (atomic_increment_and_test): Invert sense of test.
5326 (atomic_decrement_and_test): Likewise.
5327 * csu/tst-atomic.c: Update those tests to match.
5329 2003-03-22 Jakub Jelinek <jakub@redhat.com>
5331 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
5332 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
5333 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
5334 __oldval variable in the macro, since it might be macro argument.
5335 (atomic_decrement_if_positive): Initialize __memp, remove setting
5336 of non-existent variable.
5337 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
5338 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
5339 using atomic_compare_and_exchange_val_acq.
5340 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
5341 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
5343 (__arch_compare_and_exchange_bool_8_acq): ... this.
5344 (__arch_compare_and_exchange_val_16_acq): Renamed from...
5345 (__arch_compare_and_exchange_bool_16_acq): ... this.
5346 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
5348 (__arch_compare_and_exchange_bool_32_acq): ... this.
5349 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
5351 (__arch_compare_and_exchange_bool_64_acq): ... this.
5352 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
5353 variables types instead of assuming int.
5354 Change prefix of local variables to __arch.
5355 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
5357 (atomic_compare_and_exchange_val_acq,
5358 atomic_compare_and_exchange_bool_acq): Define.
5360 * csu/tst-atomic.c: New test.
5361 * csu/tst-atomic-long.c: New test.
5362 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
5364 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
5366 * sysdeps/s390/Versions: Add trailing newline.
5368 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
5369 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
5371 2003-03-22 Andreas Schwab <schwab@suse.de>
5373 * sysdeps/m68k/fpu/libm-test-ulps: Update.
5375 * sysdeps/m68k/m68020/bits/atomic.h: New file.
5376 * sysdeps/m68k/m68020/atomicity.h: Removed.
5378 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
5380 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
5381 data structures and macros. Protect from multiple inclusion.
5383 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
5386 2003-03-21 Andreas Jaeger <aj@suse.de>
5388 * sysdeps/i386/fpu/libm-test-ulps: Update.
5390 * math/libm-test.inc (tgamma_test): Recompute some constants with
5391 36 digits precision.
5392 (lgamma_test): Likewise.
5393 (ccos_test): Likewise.
5394 (ccosh_test): Likewise.
5395 (clog10_test): Likewise.
5396 (csin_test): Likewise.
5397 (csinh_test): Likewise.
5398 (ctan_test): Likewise.
5399 (ctanh_test): Likewise.
5401 2003-03-19 Jakub Jelinek <jakub@redhat.com>
5403 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
5405 2003-03-21 Roland McGrath <roland@redhat.com>
5407 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
5408 constraint to permit non-constant BIT argument.
5409 (atomic_bit_test_set): Likewise.
5410 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
5411 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
5412 For quadword case, use "i" constraint if __builtin_constant_p and < 32
5413 or "r" constraint otherwise.
5415 * configure.in: Move AC_PROG_CC and other program-finding before all
5417 * configure: Regenerated.
5419 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
5421 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
5422 unaligned copying of 8-15 bytes. From Chris Demetriou
5423 <cgd@broadcom.com>. Fix label names.
5424 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
5425 change as to memcpy.S.
5426 * sysdeps/mips/memcpy.S: Formatting changes.
5427 * sysdeps/mips/memset.S: Likewise.
5429 2003-03-21 Roland McGrath <roland@redhat.com>
5431 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
5433 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
5435 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
5436 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
5438 2003-03-21 Roland McGrath <roland@redhat.com>
5440 * sysdeps/i386/i486/bits/atomic.h
5441 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
5442 version of the macro to avoid compile-time warnings.
5443 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
5444 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
5445 (atomic_increment, atomic_decrement): Likewise.
5447 2003-03-21 Ulrich Drepper <drepper@redhat.com>
5449 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
5450 * sysdeps/i386/i486/bits/atomic.h: Likewise.
5452 2003-03-21 Roland McGrath <roland@redhat.com>
5454 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
5456 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5458 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
5459 atomic_compare_and_exchange_val_rel,
5460 atomic_compare_and_exchange_bool_acq, and
5461 atomic_compare_and_exchange_bool_rel instead of
5462 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
5463 * sysdeps/i386/i486/bits/atomic.h: Define
5464 __arch_compare_and_exchange_val_*_acq instead of
5465 __arch_compare_and_exchange_*_acq.
5466 * sysdeps/x86_64/bits/atomic.h: Likewise.
5467 * sysdeps/ia64/bits/atomic.h: Define
5468 __arch_compare_and_exchange_bool_*_acq instead of
5469 __arch_compare_and_exchange_*_acq.
5470 * sysdeps/powerpc/bits/atomic.h: Likewise.
5471 * sysdeps/s390/bits/atomic.h: Likewise.
5472 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
5473 * malloc/set-freeres.c: Likewise.
5474 * nscd/cache.c: Likewise.
5475 * stdlib/cxa_finalize.c: Likewise.
5476 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5478 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5480 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
5481 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
5482 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
5484 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
5485 into high and low halves on n64.
5486 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5487 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5488 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5490 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5492 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
5493 correct atomic_compare_and_exchange_acq semantics.
5495 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5497 * sysdeps/mips/ieee754.h: Remove excess #endif.
5499 2003-03-20 Roland McGrath <roland@redhat.com>
5501 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
5502 variable. Remove superfluous memory clobber.
5504 * include/atomic.h: Syntax braino fix.
5506 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
5507 in decimal. Don't bail if niced at start. Just check that nice call
5508 bumps the total at all.
5510 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5512 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
5513 including pc, gp, sp and fp, as long long.
5514 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
5515 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
5516 Add gp argument, and set gp in the jmpbuf to it.
5517 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
5519 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5521 * include/atomic.h: Define atomic_exchange and
5522 atomic_decrement_if_positive if not already defined. Add some
5524 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
5525 * sysdeps/x86_64/bits/atomic.h: Likewise.
5526 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
5527 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
5528 atomic_exchange, atomic_exchange_and_add, and
5529 atomic_decrement_if_positive
5531 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5533 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
5534 with a single instruction.
5536 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
5538 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
5540 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
5541 Word before comparing with gotsym. Take reloc_addr argument as
5542 void*. Remove the code added for the compiler to drop any
5543 alignment assumptions.
5545 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5547 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
5548 * include/atomic.h: New file.
5549 * sysdeps/i386/i486/bits/atomic.h: New file.
5550 * sysdeps/x86_64/bits/atomic.h: New file.
5551 * sysdeps/s390/bits/atomic.h: New file.
5552 * sysdeps/sh/bits/atomic.h: New file.
5553 * sysdeps/ia64/bits/atomic.h: New file.
5554 * sysdeps/powerpc/bits/atomic.h: New file.
5555 * sysdeps/generic/bits/atomic.h: New file.
5556 * sysdeps/i386/i486/atomicity.h: Removed.
5557 * sysdeps/x86_64/atomicity.h: Removed.
5558 * sysdeps/s390/s390-32/atomicity.h: Removed.
5559 * sysdeps/s390/s390-64/atomicity.h: Removed.
5560 * sysdeps/ia64/atomicity.h: Removed.
5561 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
5562 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
5563 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
5564 use of macros from atomicity.h to new names and semantics.
5565 * gmon_mcount.c: Likewise.
5566 * malloc/set-freeres.c: Likewise.
5567 * nscd/cache.c: Likewise.
5568 * stdlib/cxa_finalize.c: Likewise.
5569 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5571 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5573 * sysdeps/mips/ieee754.h: New file, suitable to replace both
5574 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
5575 mips-specific for now.
5577 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5579 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
5580 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
5581 * stdlib/tst-strtod.c: Add test for the bug.
5583 * posix/tst-nice.c (do_test): Remove invalid of return value.
5584 Don't run test if initial level != 0.
5586 2003-03-19 Amos Waterland <apw@us.ibm.com>
5588 * posix/tst-nice.c: New file.
5589 * posix/Makefile (tests): Add tst-nice.
5591 2003-03-18 Roland McGrath <roland@redhat.com>
5593 * abilist: New directory of libfoo.abilist files maintained using
5594 scripts/merge-abilist.awk and "make update-abi" rules.
5595 * Makefile (distribute): Add abilist/*.abilist.
5596 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
5597 Depend on check-abi.
5599 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
5600 * configure: Regenerated.
5602 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
5604 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5606 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
5609 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
5611 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
5613 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5615 * Versions.def: Add GLIBC_2.3.3 for libpthread.
5617 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5619 * sysdeps/generic/libc-start.c [!SHARED &&
5620 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
5622 2003-03-17 Roland McGrath <roland@redhat.com>
5624 * include/ctype.h: Revert last change.
5626 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5628 * argp/tst-argp1.c: Use test-skeleton.c.
5629 * locale/tst-C-locale.c: Likewise.
5631 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
5633 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5634 * sysdeps/mips/mips64/n64/Implies: New file.
5635 * sysdeps/mips/mips64/n64/Makefile: New file.
5636 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5637 * sysdeps/mips/mips64/n32/Implies: New file.
5638 * sysdeps/mips/mips64/n32/Makefile: New file.
5639 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5640 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5641 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5642 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5643 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5644 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5645 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5646 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5647 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5648 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5649 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5650 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5651 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5652 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5654 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5655 lib64 for mips64/n64 and lib32 for mips64/n32.
5656 (ldd_rewrite_script): Needed for all mips64 configurations.
5657 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5658 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5659 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5661 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5664 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5665 asm/unistd.h into asm-unistd.h.
5666 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5667 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5669 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5670 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5673 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5674 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5675 long type for registers on n32.
5677 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5679 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5680 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5681 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5682 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5683 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5684 * sysdeps/unix/mips/brk.S: Likewise.
5685 * sysdeps/unix/mips/sysdep.S: Likewise.
5686 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5687 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5688 * sysdeps/mips/sys/ucontext.h: Likewise.
5689 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5690 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5691 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5692 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5693 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5694 * sysdeps/mips/mips64/setjmp.S: Likewise.
5695 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5696 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5699 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5701 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5702 not at function level.
5703 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5705 2003-03-15 Roland McGrath <roland@redhat.com>
5707 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5708 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5709 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5710 * nis/nis_table.c (__create_ib_request): Likewise.
5712 * posix/fnmatch_loop.c: Add casts for signedness.
5713 * nss/nss_files/files-hosts.c: Likewise.
5714 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5715 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5716 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5718 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5719 get errors into the log file.
5720 (libc_cv_broken_visibility_attribute): Likewise.
5721 (libc_cv_broken_alias_attribute): Likewise.
5722 (libc_cv_asm_weak_directive): Likewise.
5723 (libc_cv_need_minus_P): Likewise.
5724 (libc_cv_dot_text): Likewise.
5725 (libc_cv_asm_global_directive): Likewise.
5726 (libc_cv_asm_type_prefix): Likewise.
5727 * configure: Regenerated.
5729 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5730 * nscd/nscd.h: Update decl.
5732 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5733 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5734 * elf/dl-close.c (_dl_close): Likewise.
5735 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5736 * io/fts.c (fts_build): Likewise.
5737 * elf/cache.c (add_to_cache): Likewise.
5738 * locale/programs/locarchive.c (show_archive_content): Likewise.
5740 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5742 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5744 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5746 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5748 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5749 code for most parts.
5751 2003-03-15 Roland McGrath <roland@redhat.com>
5753 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5754 * sysdeps/unix/sysv/linux/system.c: ... here.
5755 (FORK): Don't #define if already #define'd.
5756 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5757 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5758 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5760 * dlfcn/tst-dlinfo.c: New file.
5761 * dlfcn/Makefile (tests): Add tst-dlinfo.
5762 ($(objpfx)tst-dlinfo): New target.
5764 * dlfcn/dlinfo.c: New file.
5765 * dlfcn/Makefile (libdl-routines): Add it.
5766 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5767 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5768 [__USE_GNU] (RTLD_DI_*): New enum constants.
5769 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5770 * elf/dl-load.c (cache_rpath): New inline function.
5771 (_dl_map_object): Use it.
5772 (_dl_rtld_di_serinfo): New function.
5773 * sysdeps/generic/ldsodefs.h: Declare it.
5774 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5776 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5777 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5778 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5779 (__libc_start_main): Just call the generic one for most of the work.
5781 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5782 static function by that name instead of BP_SYM (__libc_start_main).
5783 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5784 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5785 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5787 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5788 Use this macro for extra AT_* cases.
5789 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5790 New macro, guts from ...
5791 (__aux_init_cache): ... here, function removed.
5792 (DL_PLATFORM_INIT): Don't define this.
5794 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5795 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5797 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5799 2003-03-14 Roland McGrath <roland@redhat.com>
5801 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5803 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5805 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5807 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5808 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5810 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5812 * sysdeps/mips/fpu/bits/mathdef.h: New.
5813 (__NO_LONG_DOUBLE_MATH): Define for o32.
5815 * sysdeps/mips/sys/asm.h: Formatting changes.
5816 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5817 (CPADD): Define for all of them.
5818 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5819 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5820 NARGSAVE): Define per ABI spec.
5821 (END): Don't redefine.
5822 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5823 LONG_SRAV): Remove duplicate definitions.
5824 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5825 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5826 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5827 (PTR_LA): Define for all 3 ABIs.
5829 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5830 (elf_machine_matches_host): Prevent linking of o32 and n32
5832 (elf_machine_dynamic): Document assumption on $gp.
5833 (STRINGXP, STRINGXV, STRINGV_): New macros.
5834 (elf_machine_load_address): Use them to stringize PTR_LA and
5836 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5837 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5838 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5839 (__dl_runtime_resolve): Cast the symtab initializer to the
5841 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5842 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5843 Handle 64-bit R_MIPS_REL composite relocation and accept
5844 R_MIPS_64 relocations to shift addend size to 64 bits.
5845 Document assumption regarding local GOT entries. Document
5846 backward-compatibility departing from the ABI behavior in
5847 applying relocations that reference section symbols, no longer
5848 used. Support relocations to mis-aligned offsets.
5849 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5851 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5853 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5854 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5855 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5856 restore_rt functions. Use them.
5858 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5859 .set mips2 on new abis.
5861 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5863 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5864 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5865 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5866 * sysdeps/posix/pathconf.c: Likewise.
5867 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5868 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5869 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5871 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5874 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5876 * include/gmp.h: Include/gmp-mparam.h.
5877 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5880 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5881 ELF_MACHINE_NO_RELA is set.
5882 * elf/rtld.c (dl_main): No prelink support for REL-only.
5884 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5885 FLAG_MIPS64_LIBN64): Define.
5886 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5888 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5889 * sysdeps/mips/memset.S: Likewise.
5890 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5891 depending on the ABI.
5893 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5894 Don't .set mips2 on new abi.
5895 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5897 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5899 2003-03-13 Roland McGrath <roland@redhat.com>
5901 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5902 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5904 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5906 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5908 * stdlib/fpioconst.c: Likewise.
5909 * stdlib/strtod.c: Likewise.
5911 * sysdeps/mips/add_n.S: Use L macro for local labels.
5912 * sysdeps/mips/addmul_1.S: Likewise.
5913 * sysdeps/mips/lshift.S: Likewise.
5914 * sysdeps/mips/memcpy.S: Likewise.
5915 * sysdeps/mips/memset.S: Likewise.
5916 * sysdeps/mips/mul_1.S: Likewise.
5917 * sysdeps/mips/rshift.S: Likewise.
5918 * sysdeps/mips/sub_n.S: Likewise.
5919 * sysdeps/mips/submul_1.S: Likewise.
5920 * sysdeps/mips/mips64/add_n.S: Likewise.
5921 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5922 * sysdeps/mips/mips64/lshift.S: Likewise.
5923 * sysdeps/mips/mips64/mul_1.S: Likewise.
5924 * sysdeps/mips/mips64/rshift.S: Likewise.
5925 * sysdeps/mips/mips64/sub_n.S: Likewise.
5926 * sysdeps/mips/mips64/submul_1.S: Likewise.
5927 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5928 conventions. Define END as in sys/asm.h.
5929 * sysdeps/unix/mips/sysdep.S: Likewise.
5930 * sysdeps/unix/mips/wait.S: Likewise.
5931 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5933 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5934 Cast shifted values that may be too narrow to mp_limb_t.
5935 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5937 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5939 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5940 (__mpn_extract_long_double): Likewise.
5941 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5942 (__mpn_construct_long_double): Likewise.
5943 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5944 (__mpn_extract_long_double): Likewise.
5945 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5946 (__mpn_construct_long_double): Likewise.
5948 2003-03-13 Roland McGrath <roland@redhat.com>
5950 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5951 entries in the map file match too.
5953 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5955 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5956 label .Lthread_start since current binutils don't allow branches
5957 to globally visible symbols.
5959 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5961 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5962 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5963 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5964 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5965 clobbered by the syscall.
5966 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5967 ASM_ARGS_6): Change constraints from r to index of corresponding
5969 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5970 ptid and ctid to match kernel.
5971 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5973 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5975 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5976 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5977 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5979 2003-03-11 Roland McGrath <roland@redhat.com>
5981 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5982 Check SYM_MAP rather than SYM as definedness check.
5983 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5984 Don't handle R_PPC64_REL24 reloc.
5985 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5987 * sysdeps/powerpc/powerpc64/dl-machine.h
5988 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5989 block, so we cover all the TPREL16* flavors without 6 ||s.
5990 [USE_TLS] (elf_machine_tprel): New function.
5991 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5992 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5993 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5995 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5997 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5998 instead of jalr to invoke subroutine so restoring the $gp register
6001 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
6003 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
6004 to __NR_pread if not defined.
6005 (__NR_pwrite64): Define to __NR_pwrite if not defined.
6007 2003-03-11 Jakub Jelinek <jakub@redhat.com>
6009 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
6010 * sysdeps/unix/sysv/linux/kernel-features.h
6011 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
6014 2003-03-11 Jakub Jelinek <jakub@redhat.com>
6016 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
6017 allocate space even for the trailing '/'.
6018 Reported by John Reiser <jreiser@BitWagon.com>.
6020 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
6021 ASM_CLOBBERS_6): Define.
6022 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
6023 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
6024 to match IA-32 order.
6025 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
6027 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
6029 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
6030 Copy extra params for NPTL to registers used in clone syscall.
6032 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6034 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
6035 call names for pread and pwrite.
6037 2003-03-10 Roland McGrath <roland@redhat.com>
6039 * dlfcn/Makefile (libdl-routines): Add dladdr1.
6040 * dlfcn/dladdr1.c: New file.
6041 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
6042 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
6043 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
6044 a const ElfNN_Sym ** to fill in.
6045 * include/dlfcn.h: Update decl. Include <link.h>.
6046 * dlfcn/dladdr.c (dladdr): Update caller.
6047 * malloc/mtrace.c (tr_where): Likewise.
6048 * sysdeps/generic/elf/backtracesyms.c: Likewise.
6049 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
6050 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
6051 * Versions.def (libdl): Define GLIBC_2.3.3 set.
6053 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
6055 * sysdeps/unix/Makefile (compile-syscall): New variable.
6056 Pass -g0 to compiler for assembling syscall stubs from stdin.
6058 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
6059 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
6060 Define these to do nothing.
6062 * configure.in: New check for -g on .S files.
6063 * configure: Regenerated.
6064 * config.make.in (have-cpp-asm-debuginfo): New variable.
6065 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
6066 * Makeconfig (ASFLAGS): New variable, if undefined and
6067 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
6068 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
6070 2003-03-09 Roland McGrath <roland@redhat.com>
6072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
6073 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
6075 2003-03-09 Ulrich Drepper <drepper@redhat.com>
6077 * po/fi.po: Update from translation team.
6078 * po/ca.po: Likewise.
6079 * po/da.po: Likewise.
6081 2003-03-08 Ulrich Drepper <drepper@redhat.com>
6083 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
6085 2003-03-07 Ulrich Drepper <drepper@redhat.com>
6087 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
6089 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
6091 2003-03-07 Roland McGrath <roland@redhat.com>
6093 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
6094 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
6096 2003-03-04 Guido Guenther <agx@sigxcpu.org>
6098 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
6099 stubs, we have INLINE_SYSCALL.
6100 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
6103 2003-03-06 Roland McGrath <roland@redhat.com>
6105 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
6106 permanent extent and add a comment about testing its implicit teardown.
6108 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
6110 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
6112 2003-03-05 Ulrich Drepper <drepper@redhat.com>
6114 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
6115 reversed __builtin_expect expectation.
6117 2003-03-05 Roland McGrath <roland@redhat.com>
6119 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
6120 * libio/swscanf.c: Likewise.
6121 * libio/swprintf.c: Likewise.
6123 2003-03-04 Roland McGrath <roland@redhat.com>
6125 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
6126 (elf_machine_rela): Always use RESOLVE_MAP, needed for
6127 R_PPC64_JMP_SLOT as well as TLS cases.
6128 (BIT_INSERT): Move parenthesis where it ought to have been.
6129 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
6131 * posix/confstr.c (confstr): Correct STRING_LEN values for
6132 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
6133 break. Reported by Alexandre Julliard <julliard@winehq.com>.
6135 2003-03-04 Jakub Jelinek <jakub@redhat.com>
6137 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6139 2003-03-04 Ulrich Drepper <drepper@redhat.com>
6141 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
6144 * po/sv.po: Update from translation team.
6146 2003-03-04 Andreas Jaeger <aj@suse.de>
6147 Ulrich Drepper <drepper@redhat.com>
6149 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
6151 2003-03-03 Ulrich Drepper <drepper@redhat.com>
6153 * sysdeps/generic/dl-sysdep.h: Add double include protection.
6155 * po/tr.po: Update from translation team.
6157 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
6158 are holes between the segments. Only call mprotect to set
6159 proection to PROT_NONE if there are some.
6161 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
6164 * include/sched.h (__clone2): Use ... instead of adding all the
6167 2003-03-03 Roland McGrath <roland@redhat.com>
6169 * elf/dl-load.c (struct filebuf): Fix typo in last change.
6171 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
6172 PI_STATIC_AND_HIDDEN.
6174 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
6176 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
6178 * include/sched.h: Update clone2 prototype.
6180 2003-03-03 Andreas Jaeger <aj@suse.de>
6182 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
6183 (llrint): Use it to correct return type.
6186 (llround): Likewise.
6188 2003-03-03 Ulrich Drepper <drepper@redhat.com>
6190 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
6193 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
6194 if ccs parameter isn't valid. Reported by Andreas Schwab.
6196 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
6198 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
6199 for system call numbers > 255.
6200 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
6201 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
6202 INTERNAL_SYSCALL): Likewise.
6203 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
6204 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
6205 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
6206 INTERNAL_SYSCALL): Likewise.
6208 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
6210 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
6211 array if it is the initial dtv.
6213 2003-03-03 Ulrich Drepper <drepper@redhat.com>
6215 * po/es.po: Update from translation team.
6216 * po/fr.po: Likewise.
6217 * po/gl.po: Likewise.
6218 * po/sk.po: Likewise.
6219 * po/sv.po: Likewise.
6221 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
6222 * misc/sys/mman.h: Add prototype for remap_file_pages.
6223 * sysdeps/generic/remap_file_pages.c: New file.
6224 * misc/Makefile (routines): Add remap_file_pages.
6225 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
6227 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
6229 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6230 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
6231 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6232 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6233 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
6234 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
6235 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
6236 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
6238 2003-03-03 Roland McGrath <roland@redhat.com>
6240 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
6241 * sysdeps/ia64/dl-machine.h: Likewise.
6242 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
6244 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
6246 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
6247 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
6248 * locale/Versions (libc: GLIBC_2.3): Move those to ...
6249 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
6250 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
6251 * Versions.def (libc): Add GLIBC_2.3.3 set.
6253 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
6254 * sysdeps/ia64/dl-machine.h: Update decl.
6256 2003-03-03 Andreas Jaeger <aj@suse.de>
6258 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
6260 2003-03-02 Roland McGrath <roland@redhat.com>
6262 * scripts/abilist.awk: Reject data items with apparent 0 size.
6264 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
6265 after foo.* as if it were a duplicate.
6267 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
6269 2003-03-02 Ulrich Drepper <drepper@redhat.com>
6271 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
6273 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
6274 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
6275 if not already defined. Use SYSDEP_GETRES to allow other files to
6276 provide alternative implementations.
6277 * sysdeps/unix/sysv/linux/clock_getres.c: New file
6278 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
6279 if not already defined. Use SYSDEP_GETTIME to allow other files to
6280 provide alternative implementations.
6281 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
6282 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
6283 if not already defined. Use SYSDEP_GETTIME to allow other files to
6284 provide alternative implementations.
6285 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
6286 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
6287 other files to provide alternative implementations. Rearrange
6288 tests for invalid parameters.
6289 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
6290 * sysdeps/unix/sysv/linux/sysconf.c: New file.
6291 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6292 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
6293 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
6294 _POSIX_MONOTONIC_CLOCK.
6296 2003-03-02 Roland McGrath <roland@redhat.com>
6298 * scripts/merge-abilist.awk: More checks for bogus input.
6299 Uniquify duplicate config names.
6301 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
6303 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
6304 from dl_reloc_overflow, make global.
6305 (__process_machine_rela): Update callers.
6306 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
6307 Add attribute_hidden to __process_machine_rela decl.
6308 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
6310 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
6313 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
6314 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
6315 (elf_machine_rela): Clean up.
6317 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
6319 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
6320 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
6321 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
6322 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
6323 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
6324 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
6327 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
6328 macros out of [SHARED].
6329 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
6331 * elf/elf.h: Define R_PPC_* relocs for TLS support.
6332 Clean up R_PPC64_* macro definition comments.
6334 * configure.in: In "running configure fragment for" message,
6335 omit $srcdir from the name if we prepended it.
6336 * configure: Regenerated.
6338 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
6339 From Jakub Jelinek <jakub@redhat.com>.
6341 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
6342 which duplicated the O_DIRECT defn.
6344 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
6346 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
6349 2003-03-01 Andreas Schwab <schwab@suse.de>
6351 * resolv/Makefile (tests): Don't depend on
6352 $(objpfx)mtrace-tst-leaks when cross compiling.
6354 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
6355 __libc_stack_end through GOT since it is a global symbol.
6357 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
6359 * argp/argp.h: Fix a typo.
6360 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
6362 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
6364 2003-02-27 Pat Rankin <rankin@pactechdata.com>
6366 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
6368 (get_subexp): Likewise.
6370 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
6372 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
6374 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
6376 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
6378 2003-02-27 Roland McGrath <roland@redhat.com>
6380 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
6381 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
6382 repeat it and avoids the test for the common case.
6383 Clean up and fix calculations for TLS relocs.
6385 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
6386 * sysdeps/powerpc/dl-tls.h: ... here.
6387 (TLS_TP_OFFSET): New macro.
6389 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
6391 2003-02-27 Ulrich Drepper <drepper@redhat.com>
6393 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
6394 code generation changes in recent gcc.
6396 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
6398 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
6399 Rename argument to avoid symbol conflict.
6401 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
6402 [__USE_GNU] (O_DIRECT): New macro.
6404 2003-02-24 David Mosberger <davidm@hpl.hp.com>
6406 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
6409 2003-02-27 Ulrich Drepper <drepper@redhat.com>
6411 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
6412 initializer anymore now that res_thread_freeres is more careful.
6414 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
6415 except the PKTINFO. Reset interface in PKTINFO.
6416 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
6418 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
6420 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
6421 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
6423 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
6424 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
6425 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
6426 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
6428 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
6429 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
6431 2003-02-25 Andreas Jaeger <aj@suse.de>
6433 * manual/memory.texi (Malloc Tunable Parameters): Clarify
6434 behaviour of M_MMAP_THRESHOLD.
6436 2003-02-25 Roland McGrath <roland@redhat.com>
6438 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
6439 zero, inidicating _res was not initialized yet.
6441 2003-02-24 Ulrich Drepper <drepper@redhat.com>
6443 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
6446 2003-02-24 Roland McGrath <roland@redhat.com>
6448 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
6450 2003-02-23 Roland McGrath <roland@redhat.com>
6452 * sysdeps/posix/pause.c: New file.
6453 * sysdeps/unix/common/pause.c: File removed.
6455 2003-02-23 Ulrich Drepper <drepper@redhat.com>
6457 * sysdeps/generic/bits/confname.h: Remove #ifs.
6459 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
6460 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
6462 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
6465 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6467 * sysdeps/generic/dl-sysdep.c: Avoid warning.
6469 2003-02-22 Roland McGrath <roland@redhat.com>
6471 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
6472 * resolv/Makefile (tests): Add tst-leaks.
6473 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
6474 (tst-leaks-ENV): New variable.
6475 ($(objpfx)mtrace-tst-leaks): New target.
6476 (tests): Depend on it.
6478 * include/libc-internal.h: Declare __libc_thread_freeres.
6480 * Makerules: Fix last change to use $($(subdir)-version) when set.
6482 * Makerules (install-lib-nosubdir): Depend on installed
6483 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
6484 regardless of the libfoo.so target's dependencies.
6486 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
6487 Use that in $(MAKE) calls.
6489 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6491 * catgets/gencat.c (read_input_file): Collision between
6492 auto-assigned numbers and user-defined nubmers is not fatal.
6494 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
6495 * catgets/Makefile: Add rules to run test2.msg test.
6496 * catgets/test2.msg: New file.
6498 * catgets/gencat.c (main): Return 1 if messages have been printed.
6500 * iconv/iconv_prog.c (main): Unify messages.
6502 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
6503 when shifting retval.
6504 * stdlib/tst-strtod.c (main): Add strtold test case.
6505 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6507 2003-02-21 Roland McGrath <roland@redhat.com>
6509 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
6510 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
6511 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
6513 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
6514 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
6515 (res_thread_freeres): New function, on __libc_thread_subfreeres and
6518 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
6519 * malloc/thread-freeres.c: New file.
6520 * malloc/Makefile (aux): Add it.
6521 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
6522 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
6523 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
6525 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
6526 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
6528 2003-02-21 Roland McGrath <roland@frob.com>
6530 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
6532 * iconvdata/Makefile (tests): Add bug-iconv3 only if
6533 [$(have-thread-library) = yes].
6535 2003-02-21 Ulrich Drepper <drepper@redhat.com>
6537 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
6539 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
6540 not chechk for errors (unless testing for 32bit variant).
6541 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
6542 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
6543 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
6545 2003-02-21 Jakub Jelinek <jakub@redhat.com>
6547 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
6548 Check for signed overflow, not unsigned.
6550 * sysdeps/sparc/sparc64/elf/configure.in: New file.
6551 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
6552 Use -fcall-used-g6, not -fcall-used-g7.
6554 2003-02-21 Andreas Jaeger <aj@suse.de>
6556 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
6559 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
6560 clear whole mxcsr but only exceptions.
6562 2003-02-21 Roland McGrath <roland@redhat.com>
6564 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
6565 for libfoo.so that need $(make-link) rules.
6567 2003-02-21 Roland McGrath <roland@frob.com>
6569 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
6570 to match existing struct stat layout in mig protocols.
6572 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6574 * version.h (VERSION): Bump to 2.3.2.
6576 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
6577 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
6579 * sysdeps/generic/Dist: Add sysdep-cancel.h.
6580 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
6581 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
6582 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
6583 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
6584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
6586 * Makefile (distribute): Add include/stubs-prologue.h,
6587 include/gnu/stubs.h, scripts/merge-abilist.awk, and
6588 scripts/extract-abilist.awk.
6590 2003-02-20 Roland McGrath <roland@redhat.com>
6592 * math/Makefile (distribute): Don't add generated files.
6594 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6596 * math/Makefile: Rearrange variable definitions slightly to get
6597 definition in the right order.
6599 2003-02-20 Roland McGrath <roland@redhat.com>
6601 * Makerules: Clean up conditional around include of tls.make.
6602 * Make-dist: Export generating=t to prevent using that.
6603 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
6605 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6607 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
6608 around in search if port IPPORT_RESERVED/2 has been test.
6610 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
6612 * posix/regcomp.c: Remove inclusions.
6613 * posix/regexec.c: Likewise.
6614 * posix/regex_internal.c: Likewise.
6615 * posix/regex_internal.h: Add inclusions here.
6616 * posix/regex.c: Only include sys/types.h before regex.h. Include
6617 regex_internal.h here. Include regex_internal.c before regcomp.c
6618 and regexec.c (might expose more opportunities to the C compiler).
6620 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
6622 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
6623 [!_LIBC] (__wcrtomb): New definition.
6624 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
6625 HAVE_LOCALE_H as well.
6627 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6629 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
6630 patch to check for system call errors.
6632 2002-07-24 Philip Blundell <philb@gnu.org>
6634 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6637 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6639 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6640 * sysdeps/unix/sysv/linux/kernel-features.h
6641 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6645 interprocedure branches.
6646 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6647 * sysdeps/powerpc/nofpu/Dist: ...here.
6648 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6650 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6651 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6652 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6654 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6656 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6658 2003-02-20 Philip Blundell <philb@gnu.org>
6660 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6661 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6662 INTERNAL_SYSCALL_ERRNO.
6664 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6666 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6667 for __ASSUME_32BITUIDS.
6669 2003-02-20 Andreas Schwab <schwab@suse.de>
6671 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6672 POSIX_MADV_* constants.
6674 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6676 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6677 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6678 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6679 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6681 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6683 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6685 2003-02-16 Roland McGrath <roland@redhat.com>
6687 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6689 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6691 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6692 decimal input digits.
6693 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6695 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6697 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6698 invalid file descriptors and missing access permissions.
6700 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6702 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6705 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6706 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6707 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6710 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6711 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6713 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6714 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6715 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6716 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6717 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6719 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6721 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6722 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6723 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6724 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6725 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6726 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6728 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6730 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6733 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6734 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6735 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6736 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6738 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6740 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6742 2003-02-15 Roland McGrath <roland@frob.com>
6744 * sysdeps/mach/hurd/tls.h: New file.
6745 * sysdeps/mach/hurd/i386/tls.h: New file.
6747 * mach/errsystems.awk: Include <errno.h> in generated output.
6749 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6750 use target mach-before-compile instead of generated.
6751 (mach-before-compile): New target.
6752 * Makerules: Disable use of tls.make if $(generating) is set.
6753 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6754 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6755 mach-shortcuts.h so mach/ generation happens before hurd/.
6757 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6759 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6760 of demorm correctly if low word is zero.
6761 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6762 * math/libm-test.inc (nextafter_test): New test, but disabled due
6765 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6766 counter and only call __exit_thread if this is not the last thread.
6768 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6770 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6771 subtracting map->l_tls_offset.
6773 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6775 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6776 _CS_GNU_LIBPTHREAD_VERSION.
6777 * posix/conststr.c: Handle these new values.
6778 * posix/getconf.c: Likewise.
6780 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6781 masking of version index.
6782 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6784 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6786 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6787 correctly. Reported by Thorsten Kukuk.
6789 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6791 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6792 _BSD_SOURCE to compiler.
6793 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6794 Patches by Alan Modra.
6796 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6798 * io/ftwtest.c: Get current working directory before and after the
6799 nftw call and make sure they match.
6801 2003-02-08 Jim Meyering <jim@meyering.net>
6803 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6804 the current directory, not just when DIR contains a slash.
6805 Reported by Manoj Srivastava.
6807 2003-02-07 Jim Meyering <jim@meyering.net>
6809 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6810 Include autoconf-recommended block of dirent/NAMELEN-related
6811 definitions and includes. Use NAMELEN throughout, rather than
6813 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6814 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6815 (stpcpy): Declare, if necessary.
6816 (mempcpy): Define, if necessary.
6817 [!_LIBC] (__stpcpy, __mempcpy): Define.
6818 [!_LIBC] (LXSTAT, XSTAT): Define.
6819 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6820 (find_object): Don't use c99-style struct initializer.
6821 Tweak wording in a couple comments.
6823 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6825 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6827 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6828 after the trapa instruction.
6829 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6831 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6832 (NEED_SYSCALL_INST_PAD): Define.
6833 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6834 avoid to use definition for the kernel.
6835 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6836 Save and restore the frame pointer.
6837 (SYSCALL_INST_PAD): Define.
6838 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6839 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6840 after trapa instruction.
6841 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6842 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6844 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6846 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6847 so that it can have aliases.
6848 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6850 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6852 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6853 (profile_fixup): Likewise.
6854 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6856 2002-11-24 Robert Love <rml@tech9.net>
6858 * posix/sched.h: Second parameter of sched_setaffinity and
6859 sched_getaffinity is `unsigned int', not `unsigned long'.
6860 * sysdeps/generic/sched_setaffinity.c: Likewise.
6861 * sysdeps/generic/sched_getaffinity.c: Likewise.
6863 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6865 * debug/catchsegv.sh: Fix typo in error messsage.
6866 Reported by John Levon <levon@movementarian.org>.
6868 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6869 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6870 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6871 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6873 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6874 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6876 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6877 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6879 2003-02-05 Jim Meyering <jim@meyering.net>
6881 Fix a heap-corrupting bug.
6882 * io/ftw.c: Include <limits.h>.
6883 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6884 (process_entry): Allocate enough space to hold the resulting
6885 file name. Don't presume that 2*dirbufsize is enough.
6886 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6887 it is guaranteed to be defined.
6889 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6891 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6892 * iconvdata/bug-iconv3.c: New file.
6894 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6896 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6898 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6900 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6902 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6904 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6906 * sysdeps/i386/i686/memmove.S: New file.
6908 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6911 Include kernel-features.h
6912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6917 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6919 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6921 2003-01-25 Jim Meyering <jim@meyering.net>
6923 * io/ftw.c (object_compare): Compare inode numbers before device
6924 numbers, since the former are much more likely to differ.
6926 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6928 * time/tzfile.c (__tzfile_compute): Change return value type to
6929 void. Adjust return statements.
6930 * include/time.h (__tzfile_compute): Adjust prototype.
6932 2003-02-01 Jim Meyering <jim@meyering.net>
6934 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6937 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6940 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6942 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6944 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6945 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6947 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6949 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6951 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6953 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6955 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6956 back to 2.4.19 for powerpc64.
6957 * sysdeps/unix/sysv/linux/kernel-features.h
6958 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6959 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6961 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6963 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6964 platforms with strange alignment requirements on wchar_t.
6966 2003-01-31 Andreas Schwab <schwab@suse.de>
6968 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6969 aliases, already added by make-syscalls.sh.
6970 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6971 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6972 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6973 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6974 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6975 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6976 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6977 * sysdeps/unix/inet/syscalls.list: Likewise.
6978 * sysdeps/unix/syscalls.list: Likewise.
6980 2003-01-31 Andreas Schwab <schwab@suse.de>
6982 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6985 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6987 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6988 not l to load tls from stack.
6990 2003-01-30 Roland McGrath <roland@redhat.com>
6992 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6993 null argument before all else.
6994 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6996 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6998 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6999 Move to RESOLVE protected part of the header.
7000 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
7003 2003-01-30 Ulrich Drepper <drepper@redhat.com>
7005 * stdio-common/Makefile (tests): Add bug15.
7006 (bug15-ENV): Define.
7007 * stdio-common/bug15.c: New file.
7009 2002-10-07 Wolfram Gloger <wg@malloc.de>
7011 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
7012 to foreign sbrk()'s if arena is contiguous. Bug report from
7013 Bruno Haible <bruno@clisp.org>.
7015 2003-01-30 Jakub Jelinek <jakub@redhat.com>
7017 * sysdeps/s390/libc-tls.c: Include stdlib.h.
7019 2003-01-30 Jakub Jelinek <jakub@redhat.com>
7021 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
7024 2003-01-30 Ulrich Drepper <drepper@redhat.com>
7026 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
7028 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
7030 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
7032 2003-01-30 Jakub Jelinek <jakub@redhat.com>
7034 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
7035 (allocate_static_tls): ...here. Add __attribute_noinline__.
7036 Don't return on failure.
7037 (_dl_reloc_bad_type): Add __attribute_noinline__.
7038 * elf/do-rel.h (elf_dynamic_do_rel): Add
7039 __attribute__((always_inline)).
7040 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
7041 elf_machine_rel_relative, elf_machine_rela_relative,
7042 elf_machine_lazy_rel): Add prototypes with
7043 __attribute__((always_inline)).
7045 2003-01-29 David Mosberger <davidm@hpl.hp.com>
7047 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
7049 2003-01-29 Roland McGrath <roland@redhat.com>
7051 * configure.in: Barf if configured in $srcdir.
7053 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
7055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7056 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
7058 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
7060 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
7061 clone parameters to match the order used on ia32.
7062 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
7064 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
7066 * elf/elf.h: Add new s390 relocs.
7067 * elf/tls-macros.h: Add s390 versions.
7068 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
7069 * sysdeps/s390/dl-tls.h: New file.
7070 * sysdeps/s390/libc-tls.c: New file.
7071 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
7072 relocs for class PLT.
7073 (elf_machine_rela): Handle TLS relocs.
7074 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7075 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
7076 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7077 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
7078 CLONE_CHILD_*TID flags.
7079 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
7080 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
7082 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7083 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7084 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
7085 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
7086 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
7088 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
7089 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
7090 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
7092 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
7093 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
7094 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
7095 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
7098 2003-01-28 Ulrich Drepper <drepper@redhat.com>
7100 * sysdeps/unix/common/pause.c (do_pause): New function. Split
7101 from __libc_pause. Implement using sigsuspend.
7102 (__libc_pause): Call do_pause to do the real work.
7104 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
7105 sig_or_mask parameter is is_sig != 0.
7107 2003-01-21 Philip Blundell <philb@gnu.org>
7109 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
7111 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
7113 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
7115 2003-01-27 Ulrich Drepper <drepper@redhat.com>
7117 * stdio-common/bug14.c: Use official name for the locale.
7119 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
7120 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
7121 instead of __libc_cleanup_region_end.
7123 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
7124 as first parameter to __libc_cleanup_region_start.
7126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
7127 (__fe_nomask_env): Use __prctl not prctl.
7128 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
7131 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
7133 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
7135 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
7136 wrap-around in test.
7138 2003-01-26 Andreas Schwab <schwab@suse.de>
7140 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
7141 compatibility symbols. Remove INTDEF for __divdi3.
7142 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
7143 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
7144 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
7146 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
7148 2003-01-24 Jakub Jelinek <jakub@redhat.com>
7150 * elf/tls-macros.h: Add SPARC 32-bit definitions.
7151 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
7152 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
7153 for the first half of the header. Include tls.h.
7154 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
7156 (elf_machine_rela): Handle TLS relocs.
7157 * sysdeps/sparc/dl-tls.h: New file.
7159 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
7162 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
7163 * sysdeps/sparc/sparc32/memchr.S: Likewise.
7164 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
7165 * sysdeps/sparc/sparc32/strcat.S: Likewise.
7166 * sysdeps/sparc/sparc32/strchr.S: Likewise.
7167 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
7168 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
7169 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
7170 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7171 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7172 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
7173 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
7174 * sysdeps/sparc/sparc64/strcat.S: Likewise.
7175 * sysdeps/sparc/sparc64/strchr.S: Likewise.
7176 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
7177 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
7178 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
7179 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
7180 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7181 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7183 2003-01-24 Andreas Schwab <schwab@suse.de>
7185 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
7186 elements, and process them backwards.
7187 * elf/Makefile ($(objpfx)tst-array4): New target.
7188 ($(objpfx)tst-array4.out): Likewise.
7189 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
7190 * elf/tst-array4.c: New file.
7191 * elf/tst-array4.exp: Likewise.
7193 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
7195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
7197 2003-01-27 Guido Guenther <agx@sigxcpu.org>
7199 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
7200 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
7201 cancellation handling and handle both __NR_pread64 and __NR_pread.
7202 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7203 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
7204 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
7205 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7206 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
7207 case, use register names consistently.
7209 2003-01-27 Wolfram Gloger <wg@malloc.de>
7211 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
7212 pointer, not of the computed chunk. Bug report from Carlos
7213 O'Donell <carlos@baldric.uwo.ca>.
7215 2003-01-25 Andreas Schwab <schwab@suse.de>
7217 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
7218 addressing to save GOT entries.
7220 2003-01-21 Jakub Jelinek <jakub@redhat.com>
7222 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
7223 inline_syscall1, inline_syscall2, inline_syscall3,
7224 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
7225 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
7226 __attribute__((unused)) to ChEcK.
7228 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7230 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
7231 Fix inline assembler constraints.
7232 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
7235 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
7238 2003-01-20 Segher Boessenkool <segher@koffie.nl>
7240 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
7241 compute the cosine, not the sine, even if x > 0.8.
7243 2003-01-19 Ulrich Drepper <drepper@redhat.com>
7245 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
7246 _nss_nis_setspent. Work around the different prototypes.
7247 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
7248 internal_nis_endrpcent.
7249 (internal_nis_endrpcent): Change return type to void. Change callers.
7250 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
7251 _nss_nis_setpwent. Work around the different prototypes.
7252 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
7253 of the function to...
7254 (internal_nis_endprotoent): ... here. New function.
7255 (internal_nis_setprotoent): Use internal_nis_endprotoent.
7256 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
7257 _nss_nis_setnetent. Work around the different prototypes.
7258 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
7259 of the function to...
7260 (internal_nis_endnetgrent): ... here. New function.
7261 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
7263 2003-01-19 Jim Meyering <jim@meyering.net>
7265 * time/strftime.c: (widen): Merge nearly-identical definitions.
7266 (nl_get_alt_digit) [! defined my_strftime]: Define.
7267 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
7268 _nl_get_alt_digit and _nl_get_walt_digit.
7270 2003-01-19 Ulrich Drepper <drepper@redhat.com>
7272 * time/strftime.c (my_strftime): Handle very large width
7273 specifications for numeric values correctly. Improve checks for
7275 * time/Makefile (tests): Add tst-strftime.
7276 * time/tst-strftime.c: New file.
7278 2003-01-18 Ulrich Drepper <drepper@redhat.com>
7280 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
7281 _nss_nis_sethostent. Work around the different prototypes.
7282 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
7283 _nss_nis_setgrent. Work around the different prototypes.
7284 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
7285 function. Split out from _nss_nis_endetherent.
7286 (internal_nis_setetherent): Use internal_nis_endetherent instead of
7287 duplicating the code.
7288 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
7289 of _nss_nis_setaliasent.
7290 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
7291 internal_nis_endservent code, don't duplicate it.
7293 * inet/rexec.c (rexec_af): Protect socket operations with
7294 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
7295 * inet/rcmd.c (rcmd_af): Likewise.
7297 2003-01-17 Roland McGrath <roland@redhat.com>
7299 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
7300 Add test of value 0.80190127184058835.
7302 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
7304 2003-01-17 Richard Henderson <rth@redhat.com>
7306 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
7307 relocs for class PLT.
7308 * sysdeps/alpha/libc-tls.c: New file.
7309 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
7310 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
7312 2003-01-17 Jakub Jelinek <jakub@redhat.com>
7314 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
7315 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
7318 2003-01-17 Andreas Jaeger <aj@suse.de>
7320 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
7322 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
7324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
7325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
7326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
7327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
7328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
7329 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
7330 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
7333 2003-01-16 Ulrich Drepper <drepper@redhat.com>
7335 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
7336 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
7339 * sysdeps/generic/sysconf.c: Unconditionally implement
7340 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
7341 * sysdeps/posix/sysconf.c: Likewise.
7343 2003-01-16 Jakub Jelinek <jakub@redhat.com>
7345 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
7346 set *err to the returned error, not to REG_ESPACE unconditionally.
7347 (build_word_op): Likewise.
7348 * posix/Makefile (tests): Add bug-regex16.
7349 * posix/bug-regex16.c: New test.
7351 2003-01-16 Jakub Jelinek <jakub@redhat.com>
7353 * elf/dl-load.c (_dl_map_object_from_fd): Use
7354 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
7355 been already initialized.
7357 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
7359 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
7361 2003-01-16 Jakub Jelinek <jakub@redhat.com>
7363 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
7364 allocated too. Reported by Al Viro <aviro@redhat.com>.
7366 2003-01-16 Roland McGrath <roland@redhat.com>
7368 Tweak merged .abilist file format to merge duplicate symbols in
7369 different sets into multi-version stanzas with new "| SET regexp..."
7370 header continuation lines.
7371 * scripts/merge-abilist.awk: Rewritten for new format.
7372 * scripts/extract-abilist.awk: Likewise.
7374 2003-01-15 Ulrich Drepper <drepper@redhat.com>
7376 * nscd/connections.c (nscd_run): Remove bogus return which isn't
7377 necessary with gcc 3.2+.
7378 (nscd_init): Don't use error() to print message, use dbg_log.
7380 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
7381 expected size into state.
7382 (UNPACK_BYTES): Do the reverse.
7383 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
7384 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
7385 Reported by Al Viro <aviro@redhat.com>.
7387 * stdio-common/Makefile (tests): Add bug14.
7388 * stdio-common/bug14.c: New file.
7390 * stdio-common/vfscanf.c: When recognizing multibyte characters in
7391 string reset the byte counter after mbrtowc reported it is not a
7392 partial character. Reported by Al Viro <aviro@redhat.com>.
7394 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
7396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
7397 sysdep-cancel.h, not sysdep.h.
7399 2003-01-15 Ulrich Drepper <drepper@redhat.com>
7401 * nscd/connections.c (nscd_run): Protect accept call with
7404 2003-01-15 Andreas Schwab <schwab@suse.de>
7406 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
7407 (common-generated): Add s-proto-bp.d.
7408 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
7410 * sysdeps/unix/s-proto-bp.S: New file.
7411 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
7412 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
7413 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
7415 2003-01-15 Roland McGrath <roland@redhat.com>
7417 * Makerules: Use -include for tls.make, suppresses warning.
7418 Move gen-as-const-headers rules up so before-compile is set in time.
7419 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
7421 2003-01-15 Ulrich Drepper <drepper@redhat.com>
7423 * nscd/nscd.c (main): Make code to close all file descriptors
7424 faster and more robust.
7426 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
7427 request with one writev call. Protect all read calls with
7429 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7430 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7432 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
7433 Protect writev calls with TEMP_FAILURE_RETRY.
7434 * nscd/grpcache.c: Likewise.
7435 * nscd/pwdcache.c: Likewise.
7437 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
7438 IPv6 address in debug output.
7440 2003-01-14 Roland McGrath <roland@redhat.com>
7442 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
7443 $(objpfx) directories, and get rid of vpath directives. The previous
7444 arrangement resulted in files being written to the source directories
7445 when run in a clean build. Find all .abilist files in $(..)abilist/.
7446 (update-abi-%): Likewise.
7447 (generated): Don't add .symlist files, they'll be intermediates.
7449 * sysdeps/generic/init-first.c: Add a comment.
7451 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
7453 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
7454 #includes and expressions.
7456 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
7457 config list when it already contains cpu-.*-os.* without / part.
7459 * Makerules (sed-remove-dotdot): New variable.
7460 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
7461 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
7462 (check-abi-config): New variable, append /tls or /notls to the tuple.
7463 (check-abi-%): Use that for -v config value.
7464 Find .abilist files in abilist/libfoo.abilist, not in subdir.
7465 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
7467 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7469 * manual/install.texi: Correct description of header preparation for
7470 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
7472 2003-01-14 Guido Guenther <agx@sigxcpu.org>
7474 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
7475 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7476 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
7478 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7481 (INTERNAL_SYSCALL): Make use of ERR parameter.
7482 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7483 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7484 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
7487 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7489 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
7491 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
7493 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
7494 Fix entry for bit 31.
7496 * iconvdata/Makefile: Add rules to build IBM866NAV.
7497 * iconvdata/ibm866nav.c: New file.
7498 * iconvdata/tst-tables.sh: Add IBM866NAV.
7499 * iconvdata/gconv-modules: Add entries for IBM866NAV.
7501 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7503 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
7504 to test void* parameters.
7506 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
7507 source pointer before dereferencing.
7508 (__STRING_SMALLL_GET32): Likewise.
7509 (__memset_gc): Add missing parenthesis around macro arguments.
7510 Patch by Denis Zaitsev <zzz@cd-club.ru>.
7512 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
7513 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
7515 2003-01-14 Jakub Jelinek <jakub@redhat.com>
7517 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
7520 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7522 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
7523 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
7525 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
7527 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7529 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
7531 (PSEUDO): ... to here.
7532 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
7534 (PSEUDO): ... to here.
7536 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7538 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
7539 dirent64 instead of struct dirent for dirent. Call readdir64
7542 * locale/programs/locfile.c (siblings_uncached): Use struct
7543 dirent64 instead of struct dirent for other_dentry. Call
7544 readdir64 instead of readdir.
7546 * elf/ldconfig.c (direntry): Change type to struct dirent64.
7547 (search_dir): Use readdir64 instead of readdir.
7548 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
7550 2003-01-12 Roland McGrath <roland@redhat.com>
7552 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
7553 not strtol. The former is usable in ld.so, the latter not.
7555 * include/fcntl.h: Declare __libc_creat.
7557 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
7558 libhurduser-link.so-no-z-defs): New variables.
7560 * malloc/malloc.c: Revert last change.
7561 * malloc/malloc.h (_int_*): Move these decls to ...
7562 * include/malloc.h: ... here. Add attribute_hidden.
7563 (_int_valloc): Declare it too.
7565 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7567 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
7568 search for removed searchlist. Reported by Roland McGrath.
7570 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
7571 given as start file.
7573 * io/ftw.c (ftw_startup): Use correct name in check for symlink
7574 without existing target. Patch by Jim Meyering.
7576 * Makerules (build-shlib-helper): Don't use -z defs linker option
7577 if no-z-defs is defined either.
7579 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7581 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
7584 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7586 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
7587 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7589 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7591 * io/ftwtest-sh: Add test case for relative path with /. at the end.
7593 2003-01-12 Jim Meyering <jim@meyering.net>
7595 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
7596 use the basename if we've already chdir'd into its parent directory.
7598 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7600 * io/ftw.c (process_entry): Use relative path when using chdir()
7601 to change directory after call to ftw_dir.
7602 * io/ftwtest-sh: Add test for relative path argument to nftw()
7603 with FTW_CHDIR option.
7605 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7607 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
7609 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
7611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7612 (INTERNAL_SYSCALL): Make use of ERR parameter.
7613 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7614 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7615 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7618 2002-01-09 Richard Henderson <rth@redhat.com>
7620 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
7621 DTPREL64 and TPREL64 without loadbase applied.
7623 2002-01-09 Richard Henderson <rth@redhat.com>
7625 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
7628 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
7629 * sysdeps/unix/alpha/sysdep.h: ... here.
7630 (PSEUDO_LOADGP): Remove.
7631 (PSEUDO_PROLOGUE): Load GP in non-pic case.
7632 (SYSCALL_ERROR_LABEL): New.
7633 (PSEUDO): Use it in error branch.
7634 (PSEUDO_END): Add $syscall_error label.
7636 2003-01-12 Andreas Jaeger <aj@suse.de>
7638 * math/bits/mathcalls.h: Round is a const function.
7640 2003-01-11 Jim Meyering <jim@meyering.net>
7642 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7643 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7644 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7645 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7646 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7647 [!_LIBC] (internal_function, dirent64, MAX): Define.
7648 (__set_errno): Define if not already defined.
7649 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7650 the basename, not the entire file name.
7651 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7652 the basename, not the entire file name.
7654 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7656 * string/tester.c (test_strcpy): Disable last added strcpy until
7659 2003-01-11 Philip Blundell <philb@gnu.org>
7661 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7663 2003-01-11 Andreas Schwab <schwab@suse.de>
7665 * Makerules: Add vpath for %.dynsym and %.so so that the
7666 implicit rule chaining for check-abi works.
7668 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7670 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7673 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7675 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7676 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7678 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7679 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7680 Ensure libc.so in DT_NEEDED.
7681 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7682 CHECK_STATIC_TLS before l_tls_offset use.
7683 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7685 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7686 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7687 Allocate TLS_PRE_TCB_SIZE bytes below result.
7688 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7689 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7690 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7691 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7692 bytes below result and add tcb_offset to memsz.
7693 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7694 * sysdeps/ia64/dl-machine.h: Include tls.h.
7695 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7697 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7698 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7699 * sysdeps/ia64/libc-tls.c: New file.
7701 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7703 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7704 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7705 Fix type. Move definition out of #if.
7706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7714 ftruncate64, pread64, pwrite64, truncate64 entries.
7715 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7716 (INLINE_SYSCALL): New version that supports function call like
7717 syscalls. Add __builtin_expect.
7718 (LOADARGS_n): Add argument size safety checks.
7719 (INTERNAL_SYSCALL): New Macro.
7720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7721 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7722 redefinition of elf_fpreg_t and elf_fpregset_t.
7724 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7726 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7727 simplify test for unloading. If loader of a DSO is unloaded do not
7728 use its scope anymore. Fall back to own scope and adjust opencounts.
7729 Fix several comments.
7730 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7731 the l_searchlist, not only for l_initfini.
7733 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7734 dependencies if objects cannot be removed. Remove object with the
7735 definition as not unloadable if necessary.
7737 * elf/reldep6.c: Create relocation dependency before closing the first
7740 2003-01-10 Guido Günther <agx@sigxcpu.org>
7742 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7743 * sysdeps/unix/mips/brk.S: Likewise.
7744 * sysdeps/unix/mips/pipe.S: Likewise.
7746 2003-01-10 Andreas Schwab <schwab@suse.de>
7748 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7750 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7751 are known to have the vfork syscall.
7753 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7755 * sysdeps/unix/sysv/linux/kernel-features.h
7756 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7757 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7758 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7760 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7762 * elf/Makefile: Add rules to build and run reldep9 test.
7763 * elf/reldep9.c: New file.
7764 * elf/reldep9mod1.c: New file.
7765 * elf/reldep9mod2.c: New file.
7766 * elf/reldep9mod3.c: New file.
7768 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7770 * elf/Makefile: Add rules to build and run nodelete2 test.
7771 * elf/nodelete2.c: New file.
7772 * elf/nodel2mod1.c: New file.
7773 * elf/nodel2mod2.c: New file.
7774 * elf/nodel2mod3.c: New file.
7776 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7778 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7779 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7780 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7782 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7783 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7784 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7785 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7786 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7788 2003-01-09 Andreas Schwab <schwab@suse.de>
7790 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7792 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7794 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7795 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7797 (INTERNAL_SYSCALL_DECL): Define.
7799 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7801 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7802 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7804 (INTERNAL_SYSCALL_DECL): Define.
7805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7806 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7807 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7808 (INLINE_SYSCALL): Adjust.
7809 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7810 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7811 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7812 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7813 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7814 add err argument to INTERNAL_SYSCALL* macros.
7815 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7816 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7817 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7818 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7820 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7821 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7822 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7824 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7826 Unify symbols in user namespace exported by libc.so and libc.a.
7827 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7828 argp_fmtstream_free, and argp_fmtstream_printf.
7829 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7830 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7831 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7832 argp_fmtstream_point.
7833 * gmon/gmon.c: Don't define write_profiling.
7834 * libio/genops.c: Don't define _cleanup.
7836 * intl/explodename.c (_nl_find_language.c): Mark as static.
7837 * intl/loadinfo.h: Remove _nl_find_language prototype.
7839 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7840 * libio/libioP.h: Remove declaration.
7842 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7843 * libio/libioP.h: Remove declaration.
7845 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7846 * sysdeps/generic/framestate.c: Define STATIC before including
7849 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7851 2003-01-06 Philip Blundell <philb@gnu.org>
7853 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7854 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7856 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7858 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7859 (SYSCALL_ERROR): New.
7860 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7862 (INTERNAL_SYSCALL): Define.
7863 (INLINE_SYSCALL): Use it.
7864 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7865 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7866 SYSCALL_ERROR in place of __syscall_error.
7868 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7870 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7871 __bswap_32, __bswap_64): Put x into temporary variable
7873 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7875 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7876 __bswap_32, __bswap_64): Put x into temporary variable
7878 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7880 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7883 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7885 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7888 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7890 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7891 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7893 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7895 * math/libm-test.inc (significand_test): New function.
7898 2003-01-06 Roland McGrath <roland@redhat.com>
7900 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7902 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7903 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7904 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7906 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7908 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7910 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7911 return significand and not the exponent.
7912 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7914 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7915 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7917 * malloc/malloc.c: Mark all _int_* functions as static.
7919 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7921 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7922 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7924 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7926 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7928 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7929 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7932 ftruncate64, truncate64, pread64 and pwrite64 entries.
7933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7934 (INLINE_SYSCALL): Add __builtin_expect.
7935 (LOADARGS_n): Add argument size safety checks.
7936 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7943 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7945 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7946 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7947 (LIBC_CANCEL_HANDLED): Add.
7949 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7950 (inline_syscall_r0_constraint): Rename to...
7951 (inline_syscall_r0_out_constraint): ... this. Add =.
7952 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7954 2003-01-06 Andreas Schwab <schwab@suse.de>
7956 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7957 sure this is always inlined.
7958 (elf_machine_rela): Likewise.
7960 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7962 2003-01-04 Roland McGrath <roland@redhat.com>
7964 * Makeconfig (+mkdep): Add -MP flag.
7965 Suggested by Art Haas <ahaas@airmail.net>.
7967 2003-01-05 Andreas Schwab <schwab@suse.de>
7969 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7971 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7973 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7974 SYSCALL_ERROR_HANDLER.
7975 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7976 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7977 Add support for cancellation handling.
7978 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7979 SYSCALL_ERROR_HANDLER.
7980 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7981 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7982 Add support for cancellation handling.
7983 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7985 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7988 __syscall_pread64 and __syscall_pwrite64 cancelable.
7989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7990 (INTERNAL_SYSCALL): New macro.
7991 (LOADARGS_0, LOADARGS_1): Fix.
7993 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7995 * Makerules (build-shlip-helper): Unless told otherwise, add
7996 -Wl,-z,defs to linker command line.
7997 * rt/Makefile (librt.so): Link with ld.so.
7998 * dlfcn/Makefile (libdl.so): Likewise.
8000 2003-01-05 Jakub Jelinek <jakub@redhat.com>
8002 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
8003 cancellation handling.
8004 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8005 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
8007 2003-01-04 Ulrich Drepper <drepper@redhat.com>
8009 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
8010 order of parameters passed to kill.
8012 2003-01-04 Andreas Schwab <schwab@suse.de>
8014 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
8016 2002-01-03 Paul Eggert <eggert@twinsun.com>
8018 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
8019 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
8020 when compiling Bison 1.875's `bitset bset = obstack_alloc
8021 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
8023 2003-01-04 Ulrich Drepper <drepper@redhat.com>
8025 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
8027 Correct reference counter in case SIGQUIT handler installation failed.
8029 2003-01-03 Ulrich Drepper <drepper@redhat.com>
8031 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
8032 Define using _Pragma(weak ...).
8034 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
8036 * resolv/res_libc.c: Provide declaration for __res_init_weak and
8037 reorder declarations.
8039 2003-01-03 Art Haas <ahaas@airmail.net>
8041 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
8042 initializer syntax to C99.
8043 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
8044 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
8045 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
8046 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
8047 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
8048 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
8049 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
8050 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
8051 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
8052 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
8053 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
8054 * localedata/tests-mbwc/dat_mblen.c: Likewise.
8055 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
8056 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
8057 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
8058 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
8059 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
8060 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
8061 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
8062 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
8063 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
8064 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
8065 * localedata/tests-mbwc/dat_towlower.c: Likewise.
8066 * localedata/tests-mbwc/dat_towupper.c: Likewise.
8067 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
8068 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
8069 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
8070 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
8071 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
8072 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
8073 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
8074 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
8075 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
8076 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
8077 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
8078 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
8079 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
8080 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
8081 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
8082 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
8083 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
8084 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
8085 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
8086 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
8087 * localedata/tests-mbwc/dat_wctob.c: Likewise.
8088 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
8089 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
8090 * localedata/tests-mbwc/dat_wctype.c: Likewise.
8091 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
8093 2003-01-03 Richard Henderson <rth@redhat.com>
8095 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
8096 (inline_syscall_r0_constraint): New.
8097 (inline_syscall[0-6]): Use them.
8099 2003-01-03 Jakub Jelinek <jakub@redhat.com>
8101 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
8102 Add rtld_hidden_proto.
8103 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
8104 (_dl_allocate_tls): Likewise. Remove INTDEF.
8106 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8108 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
8109 Morita <toshiyasu.morita@hsa.hitachi.com>.
8110 * sysdeps/sh/memcpy.S: Likewise.
8112 2003-01-02 Ulrich Drepper <drepper@redhat.com>
8114 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
8115 any, but unify the test.
8117 2003-01-02 Jakub Jelinek <jakub@redhat.com>
8119 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
8120 sigaction): Protect weak_alias and libc_hidden_weak with
8121 #ifndef LIBC_SIGACTION.
8122 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
8123 sigaction): Likewise.
8124 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
8125 sigaction): Likewise.
8126 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
8127 sigaction): Likewise.
8128 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
8129 sigaction): Likewise.
8130 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
8131 sigaction): Likewise.
8132 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
8133 sigaction): Likewise.
8134 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
8135 sigaction): Likewise. Remove SIGCANCEL handling here.
8136 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
8139 2003-01-02 Art Haas <ahaas@airmail.net>
8141 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
8143 2003-01-02 Ulrich Drepper <drepper@redhat.com>
8145 * posix/getconf.c: Update copyright year.
8146 * nss/getent.c: Likewise.
8147 * nscd/nscd_nischeck.c: Likewise.
8148 * iconv/iconvconfig.c: Likewise.
8149 * iconv/iconv_prog.c: Likewise.
8150 * elf/ldconfig.c: Likewise.
8151 * catgets/gencat.c: Likewise.
8152 * csu/version.c: Likewise.
8153 * elf/ldd.bash.in: Likewise.
8154 * elf/sprof.c (print_version): Likewise.
8155 * locale/programs/locale.c: Likewise.
8156 * locale/programs/localedef.c: Likewise.
8157 * nscd/nscd.c (print_version): Likewise.
8158 * debug/xtrace.sh: Likewise.
8159 * malloc/memusage.sh: Likewise.
8160 * malloc/mtrace.pl: Likewise.
8162 2003-01-01 Jakub Jelinek <jakub@redhat.com>
8164 * io/sys/stat.h: Include time.h with __need_timespec even if
8165 __USE_MISC is defined but __USE_XOPEN is not.
8167 2003-01-01 Andreas Jaeger <aj@suse.de>
8169 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
8170 type to avoid strict aliasing problem.
8171 (_nss_dns_gethostbyname2_r): Likewise.
8172 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8173 (_nss_dns_getnetbyname_r): Likewise.
8174 * resolv/gethnamaddr.c (_gethtent): Likewise.
8175 (gethostbyname2): Likewise.
8177 2002-12-31 Ulrich Drepper <drepper@redhat.com>
8179 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
8180 to avoid using the exported symbols. Define aliases with the
8181 original names separately.
8183 * include/time.h: Add libc_hidden_proto for __strftime_l.
8184 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
8185 * time/strftime.c: Always use libc_hidden_def if _LIBC.
8187 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
8188 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
8190 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
8193 * csu/Makefile (routines): Add dso_handle.
8194 * csu/dso_handle.c: New file.
8196 2002-12-31 Roland McGrath <roland@redhat.com>
8198 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
8199 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
8200 (S-CPPFLAGS): Add -DASSEMBLER here instead.
8201 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
8203 2002-12-31 Ulrich Drepper <drepper@redhat.com>
8205 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
8208 2002-12-31 Andreas Jaeger <aj@suse.de>
8210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
8212 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
8213 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
8214 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
8216 * sysdeps/unix/sysv/linux/kernel_stat.h
8217 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
8219 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
8220 __unused[1-3] since they're needed by some platforms. Handle
8221 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
8223 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
8224 for structs stat and stat64.
8225 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8226 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
8227 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8228 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8230 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
8232 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
8233 nsec resolution changes.
8234 (xstat64_conv): Likewise.
8235 (xstat32_conv): Likewise.
8237 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
8240 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
8241 structs stat and stat64.
8243 * time/time.h (__timespec_defined): Define for __USE_MISC.
8245 2002-12-31 Ulrich Drepper <drepper@redhat.com>
8247 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
8248 and __libc_current_sigrtmax.
8250 2002-12-31 Jakub Jelinek <jakub@redhat.com>
8252 * include/errno.h (__errno_location): Add prototype.
8253 Use libc_hidden_proto unconditionally.
8254 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
8256 * include/resolv.h (__res_state): Likewise.
8258 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
8259 * include/sys/socket.h (accept): Add libc_hidden_proto.
8260 * include/errno.h (__errno_location): Likewise.
8261 * include/netdb.h (__h_errno_location): Likewise.
8262 * include/resolv.h (__res_state): Likewise.
8263 * include/unistd.h (__lseek): Likewise.
8264 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
8265 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
8266 * sysdeps/generic/res-state.c (__res_state): Likewise.
8267 * sysdeps/generic/accept.c (accept): Likewise.
8268 * sysdeps/generic/lseek.c (__lseek): Likewise.
8269 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
8270 __libc_current_sigrtmax): Likewise.
8271 * sysdeps/mach/hurd/accept.c (accept): Likewise.
8272 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
8273 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
8274 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
8275 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
8276 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
8277 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
8278 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
8279 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
8281 (__GI_accept): New alias to accept.
8282 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
8283 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
8284 New alias to llseek.
8285 (__GI_accept): New alias to accept.
8286 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
8288 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
8290 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
8292 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
8293 strong_alias (name, __GI_name).
8294 * sysdeps/arm/bsd-_setjmp.S : Likewise.
8295 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
8296 * sysdeps/i386/bsd-_setjmp.S : Likewise.
8297 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
8298 * sysdeps/mips/bsd-_setjmp.S : Likewise.
8299 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
8300 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
8301 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
8302 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
8303 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
8304 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
8305 * sysdeps/sh/bsd-_setjmp.S : Likewise.
8306 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
8307 * sysdeps/unix/arm/fork.S : Likewise.
8308 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
8309 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
8310 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
8311 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
8312 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
8313 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
8314 * sysdeps/unix/i386/fork.S : Likewise.
8315 * sysdeps/unix/mips/fork.S : Likewise.
8316 * sysdeps/unix/sparc/fork.S : Likewise.
8317 * sysdeps/unix/sparc/vfork.S : Likewise.
8318 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
8319 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
8320 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
8321 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
8322 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
8323 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
8324 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
8325 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
8326 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
8327 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
8328 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
8329 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
8330 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
8331 * sysdeps/unix/fork.S : Likewise.
8332 * sysdeps/vax/bsd-_setjmp.S : Likewise.
8333 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
8335 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
8338 2002-12-31 Ulrich Drepper <drepper@redhat.com>
8340 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
8341 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
8342 * sysdeps/mach/hurd/fork.c: Likewise.
8343 * sysdeps/unix/sysv/aix/fork.c: Likewise.
8344 * sysdeps/unix/fork.S: Add __GI___fork alias.
8345 * sysdeps/unix/arm/fork.S: Likewise.
8346 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
8347 * sysdeps/unix/i386/fork.S: Likewise.
8348 * sysdeps/unix/mips/fork.S: Likewise.
8349 * sysdeps/unix/sparc/fork.S: Likewise.
8350 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
8351 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
8352 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8353 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
8354 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
8355 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
8356 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
8357 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
8358 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
8359 * sysdeps/unix/sparc/vfork.S: Likewise.
8360 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8361 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
8362 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8363 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8364 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8365 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8366 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
8367 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8369 * include/time.h: Add libc_hidden_proto for __nanosleep.
8370 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
8371 * sysdeps/mach/nanosleep.c: Likewise.
8372 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
8373 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
8375 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
8376 _IO_list_unlock, and _IO_list_resetlock.
8377 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
8378 _IO_list_unlock, and _IO_list_resetlock.
8380 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
8381 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
8382 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
8383 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
8385 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
8386 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
8387 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
8388 __GI___longjmp alias.
8390 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
8391 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
8392 * sysdeps/arm/bsd-_setjmp.S: Likewise.
8393 * sysdeps/generic/bsd-_setjmp.c: Likewise.
8394 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
8395 * sysdeps/i386/bsd-_setjmp.S: Likewise.
8396 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8397 * sysdeps/mips/bsd-_setjmp.S: Likewise.
8398 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8399 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
8400 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
8401 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
8402 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
8403 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
8404 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
8405 * sysdeps/sh/bsd-_setjmp.S: Likewise.
8406 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
8407 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
8408 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
8409 * sysdeps/vax/bsd-_setjmp.S: Likewise.
8410 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
8412 2002-12-30 Ulrich Drepper <drepper@redhat.com>
8414 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
8416 2002-12-30 Roland McGrath <roland@redhat.com>
8418 * Rules (generated): Target removed.
8419 * mach/Makefile (generated): Define it here instead.
8421 * math/Makefile (generated): Add m_*l and m_*f variants too.
8423 2002-12-30 Ulrich Drepper <drepper@redhat.com>
8425 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
8426 the to-be-deleted objects right away instead of later separately.
8427 The latter fails because the scope data structures of the DSO
8428 might already be gone.
8430 * elf/Makefile: Add rules to build and run reldep8 test.
8431 * elf/reldep8.c: New file.
8432 * elf/reldep8mod1.c: New file.
8433 * elf/reldep8mod2.c: New file.
8434 * elf/reldep8mod3.c: New file.
8435 Contributed by Jakub Jelinek.
8437 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
8439 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8440 checking of return value ENOSYS from getdents64.
8442 2002-12-28 Andreas Schwab <schwab@suse.de>
8444 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
8445 ($(common-objpfx)s-%.d): Generalized from
8446 $(common-objpfx)s-proto.d rule.
8447 (common-generated): Add s-proto-cancel.d.
8448 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
8449 cancellable syscalls.
8450 * sysdeps/unix/s-proto-cancel.S: New file.
8452 2002-12-29 Roland McGrath <roland@redhat.com>
8454 * resolv/res_libc.c: Move _res defn magic after res_init defn
8455 so _res macro is in effect for that code.
8457 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
8458 pattern for prepending $(..) so it doesn't affect $(foo).
8460 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
8462 2002-12-29 Jakub Jelinek <jakub@redhat.com>
8464 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
8467 2002-12-28 Ulrich Drepper <drepper@redhat.com>
8469 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
8471 2002-12-28 Andreas Jaeger <aj@suse.de>
8473 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
8475 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
8477 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8479 * inet/herrno.c (__h_errno_location): Remove.
8480 * inet/Makefile (routines): Add herrno-loc.
8481 * resolv/res_libc.c (__res_state): Remove.
8482 * resolv/Makefile (routines): Add res-state.
8483 * sysdeps/generic/herrno-loc.c: New file.
8484 * sysdeps/generic/res-state.c: New file.
8486 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8488 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
8489 Only define if USE_DL_SYSINFO is defined.
8491 2002-12-22 Jakub Jelinek <jakub@redhat.com>
8493 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
8494 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
8495 Define. Patch by Richard Henderson and Jes Sorensen.
8496 (PSEUDO): Remove unnecessary ;;.
8497 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
8498 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
8499 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
8500 if not initializing thread pointer.
8501 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
8502 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
8503 make it weak also if NONTLS_INIT_TP.
8504 * sysdeps/unix/common/pause.c: Handle cancellation.
8505 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
8506 (LOADSYSCALL): Remove.
8507 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8508 (SYSCALL_ERROR_HANDLER): Use it.
8509 (PSEUDO): Don't jump around error handler.
8510 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
8511 jump around error handler.
8512 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
8513 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
8514 to __syscall_error_handler on failure.
8515 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
8516 (LOADSYSCALL): Remove.
8517 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8518 (SYSCALL_ERROR_HANDLER): Use it.
8519 (PSEUDO): Don't jump around error handler.
8520 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
8521 jump around error handler.
8522 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
8523 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
8524 to __syscall_error_handler on failure.
8526 2002-12-27 Roland McGrath <roland@redhat.com>
8528 * scripts/gen-as-const.awk: New file.
8529 * Makefile (distribute): Add it.
8530 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
8531 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
8533 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
8535 2002-12-27 Andreas Schwab <schwab@suse.de>
8537 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
8539 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8541 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
8544 2002-12-27 Andreas Schwab <schwab@suse.de>
8546 * Makerules ($(common-objpfx)%.make): Filter through
8547 $(sed-remove-objpfx).
8549 2002-12-23 Roland McGrath <roland@redhat.com>
8551 * scripts/abilist.awk: Produce a more compact format, divided into
8552 stanzas for each version set, the set name listed only once.
8553 * scripts/extract-abilist.awk: New file.
8554 * scripts/merge-abilist.awk: New file.
8555 * Makerules (check-abi-%, update-abi-%): New pattern rules.
8556 (update-abi, check-abi): New targets.
8557 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
8559 2002-12-19 Roland McGrath <roland@redhat.com>
8561 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
8563 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
8566 2002-12-21 Andreas Schwab <schwab@suse.de>
8568 * elf/check-textrel.c (handle_file): Swap p_type.
8570 2002-12-21 Andreas Schwab <schwab@suse.de>
8572 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
8573 (INLINE_SYSCALL): Use it.
8574 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8575 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8577 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
8578 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
8580 2002-12-20 Art Haas <ahaas@airmail.net>
8582 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
8585 2002-12-21 Philip Blundell <philb@gnu.org>
8587 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
8588 top as seventh arg to __libc_start_main.
8589 Reported by paulnash@wildseed.com.
8591 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
8593 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
8594 compatibility cruft when new enough kernel is assumed.
8596 2002-12-20 Jakub Jelinek <jakub@redhat.com>
8598 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
8599 instead of INLINE_SYSCALL.
8601 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8603 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
8606 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
8607 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
8608 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
8609 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8610 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8611 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8612 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8613 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8614 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
8615 Patch by William Lee Irwin <wli@holomorphy.com>.
8617 2002-12-20 Andreas Schwab <schwab@suse.de>
8619 * locale/programs/ld-measurement.c (measurement_output): Fix
8622 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8624 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
8625 Redefine _IO_flockifle and _IO_funlockfile as inlines.
8627 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
8628 builds add "tls" in the search path.
8629 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
8630 (path_hwcap): Recognize "tls".
8632 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8634 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8635 __waitpid instead of waitpid.
8637 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8639 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8640 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8641 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8643 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8644 information for system calls.
8646 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8649 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8651 2002-12-19 Roland McGrath <roland@redhat.com>
8653 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8654 * iconvdata/ibm922.h: Likewise.
8655 * iconvdata/ibm930.h: Likewise.
8656 * iconvdata/ibm932.h: Likewise.
8657 * iconvdata/ibm933.h: Likewise.
8658 * iconvdata/ibm935.h: Likewise.
8659 * iconvdata/ibm937.h: Likewise.
8660 * iconvdata/ibm939.h: Likewise.
8661 * iconvdata/ibm943.h: Likewise.
8662 * iconvdata/isiri-3342.h: Likewise.
8664 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8666 * test-skeleton.c (main): Make sure correct value is seen as
8667 argv[0] after adjustment of argv, and argc.
8669 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8670 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8672 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8674 * nscd/connections.c (nscd_run): Shut up warning.
8675 * tst-ungetc.c (assert): Undefined before redefining.
8677 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8679 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8682 2002-12-17 Art Haas <ahaas@airmail.net>
8684 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8685 * iconvdata/cp775.h: Likewise.
8686 * iconvdata/ibm1046.h: Likewise.
8687 * iconvdata/ibm1124.h: Likewise.
8688 * iconvdata/ibm1129.h: Likewise.
8689 * iconvdata/ibm1132.h: Likewise.
8690 * iconvdata/ibm1133.h: Likewise.
8691 * iconvdata/ibm1160.h: Likewise.
8692 * iconvdata/ibm1161.h: Likewise.
8693 * iconvdata/ibm1162.h: Likewise.
8694 * iconvdata/ibm1163.h: Likewise.
8695 * iconvdata/ibm1164.h: Likewise.
8697 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8699 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8700 __ASSUME_CLONE_THREAD_FLAGS is defined.
8701 * sysdeps/unix/sysv/linux/kernel-features.h
8702 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8704 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8706 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8708 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8710 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8712 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8714 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8716 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8718 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8719 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8720 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8723 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8725 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8727 [libc: GLIBC_PRIVATE]: ...here.
8728 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8730 [libc: GLIBC_PRIVATE]: ...here.
8732 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8734 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8735 Use it instead of directly int $0x80.
8736 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8737 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8738 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8739 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8740 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8741 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8743 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8745 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8747 * elf/elf.h (AT_SYSINFO): New define.
8748 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8751 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8753 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8755 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8757 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8759 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8761 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8763 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8765 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8766 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8767 available, otherwise __libc_maybe_call.
8768 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8769 cancellation handling.
8770 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8772 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8774 * posix/regcomp.c (free_workarea_compile): Free the new member
8776 (analyze): Initialize ORG_INDICES.
8777 (duplicate_node_closure): Search for a existing node, which is
8778 duplicated from the node ORG_DEST and satisfies the constraint
8779 CONSTRAINT. And use it to avoid inifimite loop.
8780 (search_duplicated_node): New function.
8781 (duplicate_node): Store the index of the original node.
8782 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8784 * posix/regex_internal.h (re_dfa_t): Add new members.
8786 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8788 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8790 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8792 * sysdeps/posix/system.c (do_system): Add support for installation
8793 of cancellation handlers.
8794 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8796 * stdlib/Makefile (tests): Add tst-system.
8797 * stdlib/tst-system.c: New file.
8799 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8800 CENABLE]: Don't lose content of %ebx.
8802 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8804 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8805 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8807 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8809 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8810 fails to return a function pointer don't use it.
8812 2002-12-16 Art Haas <ahaas@airmail.net>
8814 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8815 * iconvdata/iso-ir-165.c: Likewise.
8816 * iconvdata/jis0208.c: Likewise.
8817 * iconvdata/jis0212.c: Likewise.
8819 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8821 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8822 epoll_ctl, and epoll_wait.
8823 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8824 epoll_create, epoll_ctl, and epoll_wait.
8825 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8826 Davide Libenzi <davidel@xmailserver.org>.
8827 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8828 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8831 2002-12-16 Art Haas <ahaas@airmail.net>
8833 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8835 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8836 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8837 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8839 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8841 * stdio-common/Makefile (routines): Remove lockfile. Add
8842 flockfile, ftrylockfile, and funlockfile.
8843 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8844 * sysdeps/generic/flockfile.c: New file.
8845 * sysdeps/generic/ftrylockfile.c: New file.
8846 * sysdeps/generic/funlockfile.c: New file.
8848 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8850 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8851 macros instead of doing the calls directly.
8852 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8853 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8856 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8858 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8859 * sysdeps/ieee754/bits/nan.h: Likewise.
8861 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8862 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8864 2002-12-16 Roland McGrath <roland@redhat.com>
8866 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8867 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8868 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8870 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8871 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8873 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8874 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8875 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8876 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8877 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8878 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8879 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8880 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8882 2002-12-13 Paul Eggert <eggert@twinsun.com>
8884 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8885 is now u_int, not int.
8886 (struct XDR.x_handy): Now u_int, not int.
8887 * sunrpc/xdr_mem.c: Include <limits.h>.
8888 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8889 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8890 x_handy is now unsigned, not signed.
8891 Do not decrement x_handy if no change is made.
8892 (xdrmem_setpos): Check for int overflow.
8893 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8894 (xdr_sizeof): Remove cast that is now unnecessary, now that
8895 x_handy is unsigned.
8897 2002-12-15 Art Haas <ahaas@airmail.net>
8899 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8900 * iconvdata/gap.awk: Likewise.
8901 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8902 * iconvdata/gen-8bit-gap.sh: Likewise.
8903 * locale/C-address.c: Likewise.
8904 * locale/C-collate.c: Likewise.
8905 * locale/C-ctype.c: Likewise.
8906 * locale/C-identification.c: Likewise.
8907 * locale/C-measurement.c: Likewise.
8908 * locale/C-messages.c: Likewise.
8909 * locale/C-monetary.c: Likewise.
8910 * locale/C-name.c: Likewise.
8911 * locale/C-numeric.c: Likewise.
8912 * locale/C-paper.c: Likewise.
8913 * locale/C-telephone.c: Likewise.
8914 * locale/C-time.c: Likewise.
8915 * nscd/connections.c: Likewise.
8916 * nscd/grpcache.c: Likewise.
8917 * nscd/hstcache.c: Likewise.
8918 * nscd/pwdcache.c: Likewise.
8919 * stdio-common/vfprintf.c: Likewise.
8920 * stdlib/random.c: Likewise.
8921 * sysdeps/generic/siglist.c: Likewise.
8922 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8923 * sysdeps/ieee754/bits/nan.h: Likewise.
8924 * sysdeps/posix/sprofil.c: Likewise.
8925 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8926 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8927 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8929 2002-12-15 Roland McGrath <roland@redhat.com>
8931 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8933 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8934 <tls.h> here, no need for it.
8935 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8937 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8938 parameter, not varargs parameter.
8940 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8941 argument so it's not an unused variable.
8943 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8944 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8947 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8949 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8951 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8952 original __libc_fcntl code. Just renamed.
8954 2002-12-15 Andreas Schwab <schwab@suse.de>
8956 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8958 2002-12-14 Olaf Hering <olh@suse.de>
8960 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8961 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8963 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8965 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8967 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8968 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8970 * sysdeps/unix/sysv/linux/open64.c: New file.
8972 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8973 * sysdeps/posix/open64.c: Likewise.
8974 * sysdeps/posix/sigpause.c: Likewise.
8975 * sysdeps/posix/sigwait.c: Likewise.
8976 * sysdeps/posix/system.c: Likewise.
8977 * sysdeps/posix/waitid.c: Likewise.
8978 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8979 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8980 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8981 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8982 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8983 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8984 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8985 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8986 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8987 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8988 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8989 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8990 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8991 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8992 * sysdeps/unix/sysv/linux/send.S: Likewise.
8993 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8994 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8995 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8996 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8997 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8998 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8999 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
9000 * sysdeps/unix/sysv/linux/wait.c: Likewise.
9001 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
9002 * sysdeps/unix/sysv/linux/writev.c: Likewise.
9003 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
9004 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
9006 2002-12-14 Jakub Jelinek <jakub@redhat.com>
9008 * sysdeps/generic/sysdep-cancel.h: New file.
9009 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
9011 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
9012 recvmsg, send, sendmsg, sendto): Make cancelable.
9013 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
9014 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
9015 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9016 sendto, osf_select): Likewise.
9017 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
9018 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
9019 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
9020 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9022 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
9023 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
9024 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
9025 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9027 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
9028 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
9029 sendto, select): Likewise.
9030 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
9031 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
9033 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
9034 select, fcntl): Likewise.
9035 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
9036 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
9037 read, readv, select, sigsuspend, write, writev): Likewise.
9039 2002-12-14 Jakub Jelinek <jakub@redhat.com>
9041 * dirent/bug-readdir1.c: Include unistd.h.
9043 2002-12-13 Jakub Jelinek <jakub@redhat.com>
9045 * locale/programs/locale.c: Include locarchive.h.
9046 (ARCHIVE_NAME): Define.
9047 (write_archive_locales): New function.
9048 (write_locales): Use it. Ensure the same locale is not printed
9049 multiple times in verbose mode.
9050 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
9051 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
9053 (struct nameent): New type.
9054 (nameentcmp): New function.
9056 2002-12-14 Jakub Jelinek <jakub@redhat.com>
9058 * posix/regex_internal.c (re_string_context_at): Guard wide char
9059 code with #ifdef RE_ENABLE_I18N.
9061 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
9063 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
9065 2002-12-13 Roland McGrath <roland@redhat.com>
9067 * posix/bug-regex15.c: New file.
9068 * posix/Makefile (tests): Add it.
9070 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
9071 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
9073 2002-12-13 Ulrich Drepper <drepper@redhat.com>
9075 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
9077 * misc/syslog.c (log_cleanup): Don't use parameter in
9078 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
9079 pass NULL instead of a pointer to syslog_lock.
9081 2002-12-12 Ulrich Drepper <drepper@redhat.com>
9083 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
9084 linker map for all iconv modules.
9085 (distribute): Add gconv.map.
9086 * iconvdata/gconv.map: New file.
9088 * elf/Makefile: Also check all iconv modules for text relocations.
9090 * stdlib/Makefile: Remove code to automatically import GMP.
9092 * elf/Makefile (tests): Add rules to build and run check-textrel.
9093 * elf/check-textrel.c: New file.
9095 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
9098 2002-12-11 Jakub Jelinek <jakub@redhat.com>
9100 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
9103 2002-04-30 Bruno Haible <bruno@clisp.org>
9105 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
9106 the encoding if it already has slashes.
9107 Reported by Perry Rapp <prapp@erols.com>.
9109 2002-12-11 Roland McGrath <roland@redhat.com>
9111 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
9112 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
9113 Turn off PIC for compiling this file.
9115 2002-12-11 Ulrich Drepper <drepper@redhat.com>
9117 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
9118 definitions. Not needed.
9119 [_LIBC]: Use definitions from libc-lock.h instead of referencing
9120 pthread routines directly.
9121 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
9123 (arena_get2): Don't look at return value of mutex_lock.
9125 2002-12-11 Roland McGrath <roland@redhat.com>
9127 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
9128 elf-init.o instead of compiling a PIC version.
9130 2002-12-11 Bruno Haible <bruno@clisp.org>
9132 * intl/gettext.h: Renamed to ...
9133 * intl/gmo.h: ... here.
9134 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
9135 * intl/gettextP.h: Update.
9136 * intl/loadmsgcat.c: Update.
9138 * intl/gettextP.h (PARAMS): Make more portable.
9139 (attribute_hidden): Define as empty macro if not already defined.
9140 * intl/hash-string.h (PARAMS): Make more portable.
9141 * intl/loadinfo.h (PARAMS): Likewise.
9142 * intl/plural-exp.h (PARAMS): Likewise.
9143 (attribute_hidden): Move definition near the definition of
9146 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
9147 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
9149 2002-07-13 Bruno Haible <bruno@clisp.org>
9151 * intl/dcigettext.c (freea): New macro.
9152 (FREE_BLOCKS): Free also the registered blocks.
9153 (DCIGETTEXT): Free the 'search' variable.
9154 Reported by Andreas Fischer <a.fischer@asentics.de>.
9156 2002-04-27 Bruno Haible <bruno@clisp.org>
9158 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
9159 * intl/dcigettext.c: Likewise.
9160 * intl/dcgettext.c: Likewise.
9161 * intl/dgettext.c: Likewise.
9162 * intl/gettext.c: Likewise.
9163 * intl/dcngettext.c: Likewise.
9164 * intl/dngettext.c: Likewise.
9165 * intl/ngettext.c: Likewise.
9166 * intl/textdomain.c: Likewise.
9167 * intl/bindtextdom.c: Likewise.
9168 * intl/plural-exp.h: Likewise.
9170 2002-01-02 Bruno Haible <bruno@clisp.org>
9172 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
9174 2001-04-30 Bruno Haible <bruno@clisp.org>
9176 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
9177 default macro definitions. Needed for mingw32.
9179 2002-12-10 Ulrich Drepper <drepper@redhat.com>
9181 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
9182 __builtin_constant_p to macro parameter.
9184 * sysdeps/generic/sigpause.c: Define all functions as weak.
9185 * sysdeps/posix/sigpause.c: Likewise.
9187 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
9190 2002-12-10 Jakub Jelinek <jakub@redhat.com>
9192 * elf/tst-array1.c (preinit_array, init_array, fini_array):
9193 Explicitly align the array to sizeof (void *).
9194 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
9196 * include/libc-symbols.h: Fix a comment typo.
9198 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
9199 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
9201 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
9203 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
9204 (__libc_sigsuspend): Likewise.
9205 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
9206 (__libc_sigsuspend): Likewise.
9207 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
9208 (creat): New weak alias.
9210 2002-12-10 Roland McGrath <roland@redhat.com>
9212 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
9213 contributes a manual chapter.
9214 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
9217 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
9218 and move contents to ...
9219 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
9220 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
9221 it instead of duplicating its contents.
9222 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
9224 2002-12-09 Jakub Jelinek <jakub@redhat.com>
9226 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
9228 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
9230 (EXTRA_LD_ENVVARS): Use it.
9231 (DL_OSVERSION_INIT): Define.
9232 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
9234 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
9236 2002-12-10 Ulrich Drepper <drepper@redhat.com>
9238 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
9240 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
9241 call. It is not allowed to destroy pthread mutexes which are
9242 still in use even though it is safe for our implementations. If
9243 somebody still uses the descriptor it is a bug.
9245 2002-12-09 Richard Henderson <rth@redhat.com>
9247 * csu/abi-note.S: Use .p2align, not .align.
9249 2002-12-09 Ulrich Drepper <drepper@redhat.com>
9251 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
9252 __libc_select aliases.
9254 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
9257 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
9259 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
9261 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
9263 * sysdeps/unix/syscalls.list: Define __libc_select alias.
9265 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
9267 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
9268 __libc___xpg_sigpause aliases.
9270 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
9272 * misc/error.c: Remove use of USE_IN_LIBIO.
9274 2002-12-08 Roland McGrath <roland@redhat.com>
9276 * elf/Makefile (tests): Uncomment tst-array[123].
9277 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
9278 * csu/elf-init.c: New file.
9279 * csu/Makefile (routines, static-only-routines): Add elf-init.
9280 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
9281 and __libc_csu_fini in place of _fini.
9282 * sysdeps/arm/elf/start.S: Likewise.
9283 * sysdeps/cris/elf/start.S: Likewise.
9284 * sysdeps/hppa/elf/start.S: Likewise.
9285 * sysdeps/i386/elf/start.S: Likewise.
9286 * sysdeps/ia64/elf/start.S: Likewise.
9287 * sysdeps/m68k/elf/start.S: Likewise.
9288 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
9289 * sysdeps/mips/elf/start.S: Likewise.
9290 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
9291 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
9292 * sysdeps/s390/s390-32/elf/start.S: Likewise.
9293 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9294 * sysdeps/sh/elf/start.S: Likewise.
9295 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9296 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9297 * sysdeps/x86_64/elf/start.S: Likewise.
9299 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
9300 struct containing function ptr and value, free it.
9301 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
9302 It's not safe to let the new thread use the SIGEV pointer.
9304 2001-10-20 Paul Eggert <eggert@twinsun.com>
9306 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
9307 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
9308 Use strerror_r that is only a macro, even if it is not a function.
9309 (strerror): Check for HAVE_DECL_STRERROR before declaring.
9310 (private_strerror): Use prototypes, not old-style function definition.
9311 (print_errno_message): New function.
9312 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
9314 (error_tail, error, error_at_line): Use it.
9316 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
9318 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
9320 2002-12-08 Ulrich Drepper <drepper@redhat.com>
9322 * scripts/output-format.sed: Fix bug in one of the s expressions
9323 which used / for one too many things.
9325 * include/unistd.h: Declare __libc_close.
9327 2002-12-07 Ulrich Drepper <drepper@redhat.com>
9329 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
9331 2002-12-07 Roland McGrath <roland@redhat.com>
9333 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
9334 from 2002-12-06, but remove unnecessary memset call without removing
9335 necessary copy of initialization image.
9337 * Makerules ($(common-objpfx)format.lds): New target.
9338 (common-generated): Add it.
9339 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
9340 * scripts/output-format.sed: New file.
9341 * Makefile (distribute): Add it.
9343 2002-12-07 Ulrich Drepper <drepper@redhat.com>
9345 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
9346 Reported by Art Haas <ahaas@airmail.net>.
9348 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
9350 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
9352 2002-12-07 Jakub Jelinek <jakub@redhat.com>
9354 * string/test-strncpy.c (do_random_tests): Improve test coverage.
9356 2002-12-06 Ulrich Drepper <drepper@redhat.com>
9358 * test-skeleton.c (timeout_handler): Allow expected signal to be
9361 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
9363 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
9365 2002-12-07 Jakub Jelinek <jakub@redhat.com>
9367 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
9368 (SYSCALL_ERROR_HANDLER): Fix a pasto.
9369 Reported by Jeff Bailey <jbailey@nisa.net>.
9371 2002-12-06 Ulrich Drepper <drepper@redhat.com>
9373 * sysdeps/generic/libc-tls.c: Undo last patch.
9375 * include/wctype.h: Define iswalnum with libc_hidden_proto.
9377 * include/signal.h: Define raise with libc_hidden_proto.
9379 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
9380 __execve instead of snprintf and execve.
9382 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
9385 2002-12-06 Jakub Jelinek <jakub@redhat.com>
9387 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
9388 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
9390 2002-12-06 Ulrich Drepper <drepper@redhat.com>
9392 * misc/syslog.c (log_cleanup): New function.
9393 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
9394 (closelog): Likewise.
9396 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
9397 * elf/dl-iteratephdr.c: Likewise.
9398 * elf/dl-lookup.c: Likewise.
9399 * elf/dl-misc.c: Likewise.
9400 * elf/dl-open.c: Likewise.
9401 * elf/dl-support.c: Likewise.
9402 * elf/rtld.c: Likewise.
9403 * sysdeps/generic/ldsodefs.h: Likewise.
9404 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
9405 * sysdeps/mach/bits/libc-lock.h: Likewise.
9406 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
9408 2002-12-06 Roland McGrath <roland@redhat.com>
9410 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
9412 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
9413 (malloc_starter, memalign_starter, free_starter): Don't define these.
9414 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
9415 Don't declare them either.
9416 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
9417 __pthread_initialize, so no need to set hooks to *_starter.
9418 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
9419 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
9420 (__libc_malloc_pthread_startup): New function.
9421 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
9423 * malloc/hooks.c (memalign_starter): New function.
9424 * malloc/malloc.c: Declare it.
9425 * malloc/arena.c (save_memalign_hook): New variable.
9426 (ptmalloc_init): Set __memalign_hook to memalign_starter.
9428 * elf/dl-minimal.c (free): Clear the memory.
9429 (calloc): Just call malloc, knowing all memory it returns is cleared.
9431 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
9432 malloc and memset; calloc can avoid the zeroing when redundant.
9433 (_dl_tls_setup): Likewise.
9434 * elf/dl-load.c (decompose_rpath): Likewise.
9435 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
9436 call, since memory from sbrk at startup is already zero.
9438 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
9439 error string for failure, null for success. Update callers.
9440 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
9441 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9443 2002-12-05 Jakub Jelinek <jakub@redhat.com>
9445 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
9447 (readahead): Change args to i:iii.
9448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
9449 Change args to i:iii.
9450 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
9453 2002-12-05 Roland McGrath <roland@redhat.com>
9455 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
9456 call all functions rather than none.
9457 Reported by Mark P. Mitchell <mark@codesourcery.com>.
9459 2002-12-04 Roland McGrath <roland@redhat.com>
9461 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
9462 on _nl_current_LC_* variables.
9464 2002-12-05 Ulrich Drepper <drepper@redhat.com>
9466 * dirent/bug-readdir1.c (main): Don't call closedir, just close
9467 the file descriptor. This is testing what the bug report was about.
9469 2002-12-04 Ulrich Drepper <drepper@redhat.com>
9471 * po/be.po: New file.
9473 * argp/Makefile (tests): Add tst-argp1.
9475 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
9476 Change type of _attribute to void*.
9477 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9478 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
9479 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
9480 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9481 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9483 2002-12-04 Roland McGrath <roland@redhat.com>
9485 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
9486 members to the end, so a libpthread compiled with !USE_TLS will still
9487 find other members properly.
9489 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
9490 operand for DEST memory. Fix dummy input operand to use SRC.
9491 Reported by Davin McCall <davmac@ozonline.com.au>.
9493 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
9494 alignment when initializing the DTV entry.
9496 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
9497 when TLS has not been set up, try to set it up if we can.
9498 * elf/tst-tls4.c: Revert last change.
9499 * elf/tst-tls5.c: Likewise.
9500 * elf/tst-tls6.c: Likewise.
9501 * elf/tst-tls7.c: Likewise.
9502 * elf/tst-tls8.c: Likewise.
9503 * elf/tst-tls9.c: Likewise.
9505 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
9506 * sysdeps/generic/ldsodefs.h: Declare it.
9507 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
9508 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
9509 function, broken out of __libc_setup_tls.
9510 (init_static_tls): Likewise.
9511 (__libc_setup_tls): Call them.
9512 (_dl_tls_setup): New function, uses new subroutines.
9514 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
9515 Clear the pointer when returning true.
9516 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
9517 first element of the slotinfo list too.
9519 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
9522 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
9523 (_dl_determine_tlsoffset): Likewise.
9525 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
9526 startup_error_tsd, made global.
9527 (dl_main): Update initialization.
9528 * elf/dl-tsd.c: Likewise.
9529 * sysdeps/generic/ldsodefs.h: Declare it.
9531 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9533 * manual/texinfo.tex: Update from latest upstream version.
9535 2002-12-03 Roland McGrath <roland@redhat.com>
9537 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
9538 area surplus in calculation for sbrk call.
9540 * iconvdata/cp1125.c: New file.
9541 * iconvdata/Makefile (distribute): Add it.
9542 (modules): Add CP1125.
9543 (gen-8bit-gap-modules): Add cp1125.
9544 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
9545 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
9547 2002-12-03 Andreas Jaeger <aj@suse.de>
9549 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
9551 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9553 * sysdeps/posix/system.c (do_system): Make signal handler
9554 installation thread safe.
9556 2002-12-02 Roland McGrath <roland@redhat.com>
9558 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
9559 caller from EXTRA to -.
9560 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9561 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9562 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9564 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
9566 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
9567 bits of RM are cleared.
9569 2002-12-02 Roland McGrath <roland@redhat.com>
9571 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
9572 TLS setup is required.
9573 * elf/tst-tls5.c: Likewise.
9574 * elf/tst-tls6.c: Likewise.
9575 * elf/tst-tls7.c: Likewise.
9576 * elf/tst-tls8.c: Likewise.
9577 * elf/tst-tls9.c: Likewise.
9579 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
9580 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
9581 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
9582 for being null before calling free_slotinfo.
9583 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
9584 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
9586 2002-11-30 Bruno Haible <bruno@clisp.org>
9588 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
9589 (struct __gconv_step): New field __btowc_fct.
9590 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
9591 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
9593 (__gconv_btwoc_ascii): New declaration.
9594 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9595 (__gconv_btwoc_ascii): New function.
9596 * iconv/gconv_builtin.h: Add BtowcFct argument to all
9597 BUILTIN_TRANSFORMATION invocations.
9598 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9599 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
9600 * iconv/gconv_builtin.c (map): New field btowc_fct.
9601 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
9603 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
9604 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
9605 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
9606 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
9607 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
9608 (gconv_init): Initialize __btowc_fct field.
9609 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
9610 * iconv/loop.c: Document ONEBYTE_BODY.
9611 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
9612 Undefine ONEBYTE_BODY at the end.
9613 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
9614 * iconvdata/8bit-gap.c (NONNUL): New macro.
9615 (BODY for FROM_LOOP): Use it.
9616 (ONEBYTE_BODY): New macro.
9617 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
9618 (NONNUL): New macro.
9619 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
9620 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
9621 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
9622 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
9623 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
9624 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
9625 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
9626 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
9627 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
9628 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
9629 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
9630 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
9631 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
9632 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
9633 * iconvdata/ibm932.c: Include <stdbool.h>.
9634 (TRUE, FALSE): Remove macros.
9635 (BODY for FROM_LOOP): Remove unused variable rp1.
9636 (ONEBYTE_BODY): New macro.
9637 (BODY for TO_LOOP): Use bool.
9638 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9639 * iconvdata/ibm943.c: Include <stdbool.h>.
9640 (TRUE, FALSE): Remove macros.
9641 (BODY for FROM_LOOP): Remove unused variable rp1.
9642 (ONEBYTE_BODY): New macro.
9643 (BODY for TO_LOOP): Use bool.
9644 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9645 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9646 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9647 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9648 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9649 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9650 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9651 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9652 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9653 * iconvdata/gbbig5.c: Tweak comment.
9655 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9657 * po/fi.po: Update from translation team.
9659 2002-12-01 Roland McGrath <roland@redhat.com>
9661 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9662 testing getdents64 return value.
9664 * scripts/versions.awk: Don't pass -n flag to sort command.
9666 * posix/bug-regex13.c: Include <string.h>.
9668 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9669 DL_SYSDEP_OSCHECK here.
9670 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9671 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9673 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9674 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9676 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9677 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9679 * include/link.h: Comment typo fix.
9681 2002-12-01 Roland McGrath <roland@frob.com>
9683 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9684 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9685 _POSIX_MEMORY_PROTECTION): Likewise.
9686 (_POSIX_POLL, _POSIX_SELECT): Removed.
9688 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9690 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9691 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9693 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9695 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9697 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9700 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9702 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9703 branch prediction buffers by using unpaired call/ret.
9705 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9707 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9708 first parameters constraint string.
9709 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9711 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9713 * posix/regcomp.c (parse_expression): Set the bit since the back
9714 reference is used in the regular expression.
9715 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9717 (re_node_set_init_copy): Likewise.
9718 * posix/regex_internal.h (state_array_t): New structure.
9719 (re_sub_match_last_t): Likewise.
9720 (re_sub_match_top_t): Likewise.
9721 (re_match_context_t): Add new members.
9722 (re_dfa_t): Likewise.
9723 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9724 to check the matching is really correct, and retry if failed.
9725 Move the routin pruning the impossible nodes from here, ...
9726 (prune_impossible_nodes): To this function.
9727 (check_matching): Invoke check_subexp_matching_top, and replace
9728 redundant checking with transit_state_bkref invocation.
9729 (proceed_next_node): Replace strncmp with memcmp. Reported by
9730 Paolo Bonzini <bonzini@gnu.org>.
9731 (update_cur_sifted_state): Remove search_subexp invocation.
9732 (search_subexp): Remove this function.
9733 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9735 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9736 Remove unused invocation of match_ctx_add_entry.
9737 (transit_state): Invoke check_subexp_matching_top.
9738 (check_subexp_matching_top): New function.
9739 (transit_state_bkref): Remove unused array.
9740 Merge transit_state_bkref_loop.
9741 (transit_state_bkref_loop): Use get_subexp instead of
9742 sift_states_backward. Use search_cur_bkref_entry for optimization.
9743 Merge this function to transit_state_bkref.
9744 (get_subexp): New function.
9745 (get_subexp_sub): Likewise.
9746 (find_subexp_node): Likewise.
9747 (check_arrival): Likewise.
9748 (check_arrival_expand_ecl): Likewise.
9749 (check_arrival_expand_ecl_sub): Likewise.
9750 (expand_bkref_cache): Likewise.
9751 (match_ctx_init): Initialize new members.
9752 (match_ctx_clean): New function.
9753 (match_ctx_free): Release new members.
9754 (match_ctx_free_subtops): New function.
9755 (match_ctx_add_entry): Fix indent.
9756 (search_cur_bkref_entry): New function.
9757 (match_ctx_add_subtop): Likewise.
9758 (match_ctx_add_sublast): Likewise.
9760 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9762 * iconv/Makefile (tests): Remove tst-iconv4.c
9763 * iconv/tst-iconv4.c: Moved to...
9764 * iconvdata/tst-iconv4.c: ...here. New file.
9765 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9767 2002-11-25 Roland McGrath <roland@redhat.com>
9769 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9770 Grok AF_LINK if defined.
9771 From Momchil Velikov <velco@fadata.bg>.
9773 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9774 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9775 Reported by Momchil Velikov <velco@fadata.bg>.
9777 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9778 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9779 (__ifreq): Count up NIFS that way too.
9780 Reported by Momchil Velikov <velco@fadata.bg>.
9782 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9784 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9785 and <fpu_control.h>.
9787 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9789 * elf/elf.h (EM_ST19): Fix typo.
9791 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9793 * include/errno.h (__set_errno): Define as errno = val
9796 2002-11-24 Roland McGrath <roland@redhat.com>
9798 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9799 * sysdeps/posix/writev.c: Likewise.
9800 From Momchil Velikov <velco@fadata.bg>.
9802 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9803 calling *GL(dl_error_catch_tsd) for a thread-local location.
9804 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9805 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9806 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9808 * libio/iofflush.c: Add libc_hidden_def.
9809 * libio/iofwrite.c: Likewise.
9810 * sysdeps/generic/sigtimedwait.c: Likewise.
9811 * sysdeps/generic/sigwaitinfo.c: Likewise.
9812 * sysdeps/posix/sigwait.c: Likewise.
9813 Reported by Momchil Velikov <velco@fadata.bg>.
9815 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9816 to match <arpa/inet.h> declaration.
9817 * inet/inet_netof.c (inet_netof): Likewise.
9818 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9819 Reported by Momchil Velikov <velco@fadata.bg>.
9821 * configure.in: Skip AUTOCONF check under --without-cvs.
9822 * configure: Regenerated.
9824 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9825 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9826 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9828 2002-11-24 Andreas Schwab <schwab@suse.de>
9830 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9833 2002-11-19 Jim Meyering <jim@meyering.net>
9835 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9837 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9839 2002-11-23 Roland McGrath <roland@redhat.com>
9841 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9842 Just produce hex output for datum sizes.
9844 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9845 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9847 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9849 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9850 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9851 and __unused3 fields.
9852 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9853 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9854 and __unused2 fields.
9855 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9856 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9857 __unused3, and __unused4 fields.
9859 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9860 obtain lowest address for profiling in __monstartup call.
9862 2002-11-21 Roland McGrath <roland@redhat.com>
9864 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9865 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9867 * locale/localeinfo.h (struct locale_data): Revert last change.
9869 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9870 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9872 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9873 __NR_pread64 if not defined.
9874 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9875 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9877 2002-11-21 Roland McGrath <roland@frob.com>
9879 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9880 __libc_multiple_libcs here. Call __setfpucw.
9882 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9884 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9886 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9887 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9888 CLONE_CHILD_*TID flags.
9890 2002-11-20 Andreas Jaeger <aj@suse.de>
9892 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9893 We pass struct ucontext on x86-64.
9895 (GET_FRAME): Adjust.
9896 (GET_STACK): Adjust.
9898 2002-11-20 Roland McGrath <roland@redhat.com>
9900 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9901 conditionalize [! DO_VERSIONING] #error.
9903 * scripts/abilist.awk: Grok function descriptor symbols.
9905 * intl/tst-gettext.c (main): Check return values from setlocale.
9906 Add necessary unsetenv's to make LANG=existing-locale check work.
9908 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9909 so aborted prior runs don't confuse things.
9911 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9912 Use uintptr_t instead of unsigned int for `word' member.
9913 (_NL_CURRENT_WORD): Cast to uint32_t.
9915 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9918 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9920 * elf/tls-macros.h: Add IA-64 definitions.
9921 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9923 * iconv/Makefile (tests): Add tst-iconv4.
9924 * iconv/tst-iconv4.c: New file.
9926 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9927 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9928 __GCONV_INCOMPLETE_INPUT.
9929 (ucs4le_internal_loop): Likewise.
9930 (ucs4le_internal_loop_unaligned): Likewise.
9931 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9932 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9933 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9935 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9938 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9939 * sysdeps/posix/getaddrinfo.c: Likewise.
9941 * include/alloca.h (extend_alloca): New define. Based on stack
9942 direction it'll try to append to the previouls allocated buffer.
9944 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9946 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9947 use the same service for AF_INET and AF_INET6.
9949 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9951 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9952 of stack space instead of 16k.
9954 2002-11-18 Wolfram Gloger <wg@malloc.de>
9957 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9958 nothing if not initialized. Bug report from Marcus Brinkmann
9959 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9961 2002-11-19 Roland McGrath <roland@redhat.com>
9963 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9966 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9967 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9968 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9969 * configure: Regenerated.
9971 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9973 * include/dlfcn.h: __libc_dlopen is now a macro calling
9974 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9975 (__libc_dlopen_mode): New prototype.
9976 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9977 new parameter. Store new parameter in mode field of structure passed
9979 (struct do_dlopen_args): Add new field mode.
9980 (do_dlopen): Pass mode from parameter structure to _dl_open.
9982 2002-11-11 Randolf Chung <tausq@debian.org>
9984 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9985 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9986 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9988 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9990 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9991 Set -mdisable-fpregs for this file.
9993 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9995 * sysdeps/unix/sysv/linux/configure.in:
9996 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9997 from gcc-3.0 era for backwards compatibility.
9998 * sysdeps/unix/sysv/linux/configure: Regenerate.
10000 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
10001 Define mcontext_t as a sigcontext.
10003 2002-11-18 Roland McGrath <roland@redhat.com>
10005 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
10006 Free memory in `last_result' if it was used.
10008 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
10009 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
10010 Do the parsing inline instead of copying strings and calling
10011 inet_network, and properly skip all alias names not matching the form.
10013 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
10015 2002-11-17 Ulrich Drepper <drepper@redhat.com>
10017 * manual/pattern.texi (Wordexp Example): Fix sample code.
10019 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
10020 childs stack which will be loaded into the %esi register.
10022 2002-11-14 Paul Eggert <eggert@twinsun.com>
10024 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
10025 overflow when skipping the question part and when unpacking aliases.
10027 2002-11-15 Roland McGrath <roland@redhat.com>
10029 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
10030 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
10031 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
10033 2002-11-15 Jakub Jelinek <jakub@redhat.com>
10035 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
10036 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
10038 2002-11-15 Roland McGrath <roland@redhat.com>
10040 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
10041 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
10042 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
10043 (+make-include-of-dep): New canned sequence.
10045 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
10046 From Dmitry V. Levin <ldv@altlinux.org>.
10048 2002-11-14 Roland McGrath <roland@redhat.com>
10050 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
10051 * inet/herrno.c (__libc_h_errno): Likewise.
10052 * resolv/res_libc.c (__libc_res): Likewise.
10053 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
10054 (__res_state) [! USE___THREAD]: Don't define as weak.
10055 * csu/Versions: Revert last change.
10056 * resolv/Versions: Revert last change.
10058 * Makerules ($(common-objpfx)%.make): New pattern rule.
10059 * tls.make.c: New file.
10060 * Makefile (distribute): Add it.
10062 * sysdeps/generic/errno.c [! USE___THREAD]
10063 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
10064 with compat_symbol so they are not link-time visible.
10065 [! USE___THREAD] (__libc_errno): New alias for errno.
10066 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
10067 Add __libc_errno here.
10068 * inet/herrno.c [USE___THREAD]: Use this conditional
10069 in place of [USE_TLS && HAVE___THREAD].
10070 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
10071 (h_errno, _h_errno): Declare these with compat_symbol so they are not
10073 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
10074 * resolv/res_libc.c [! USE___THREAD]
10075 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
10076 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
10077 (__libc_res): Define as alias for _res.
10078 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
10079 Add __libc_h_errno and __libc_res here.
10081 2002-11-14 Jakub Jelinek <jakub@redhat.com>
10083 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
10084 * resolv/Versions (h_errno, _res): Likewise.
10086 2002-11-14 Roland McGrath <roland@redhat.com>
10088 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
10089 (%.symlist): Likewise.
10091 2002-11-13 Roland McGrath <roland@redhat.com>
10093 * scripts/abilist.awk: New file.
10094 * Makefile (distribute): Add it.
10095 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
10096 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
10097 [$(subdir) = elf] (tests): Depend on libc.symlist.
10098 (generated, common-generated): Add those files.
10100 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
10101 * configure: Regenerated.
10102 * config.make.in (OBJDUMP): New variable, substituted by configure.
10104 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
10105 (mallochook, reallochook): Set them up.
10106 (checkhdr): Check HDR->magic2 value.
10107 (freehook): Reset HDR->magic2.
10108 (memalignhook): New static function.
10109 (old_memalign_hook): New static variable.
10110 (mcheck, reallochook): Set __memalign_hook to memalignhook.
10112 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
10115 2002-11-13 Andreas Jaeger <aj@suse.de>
10117 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
10119 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10121 2002-11-11 Paul Eggert <eggert@twinsun.com>
10123 * manual/crypt.texi (Cryptographic Functions): Mention that
10124 the MD5 one-way algorithm is compatible with BSD's.
10126 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
10128 * posix/regex_internal.c (re_string_skip_chars): Also return the last
10130 (re_string_reconstruct): Calculate the context by itself when the
10131 offset points out of the valid range.
10132 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
10133 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
10134 (IS_WIDE_WORD_CHAR): New macro.
10135 (IS_WIDE_NEWLINE): New macro.
10137 2002-11-12 Andreas Jaeger <aj@suse.de>
10139 * sysdeps/x86_64/strchr.S: Don't use one register for two
10140 purposes, this fixes a bug noticed by test-strchr.c.
10142 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
10145 2002-11-12 Roland McGrath <roland@redhat.com>
10147 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
10148 (_G_IO_NO_BACKWARD_COMPAT): Define it.
10150 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
10151 instead of <pt-machine.h>.
10152 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
10154 From Ian Wienand <ianw@gelato.unsw.edu.au>.
10156 2002-11-10 Roland McGrath <roland@redhat.com>
10158 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
10159 Call fputs instead of fwprintf (simpler to follow in debugger).
10161 * crypt/md5-crypt.c: Doc fix.
10163 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
10164 the beginning of generated target commands.
10166 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
10167 dependencies for these in case implicit rule search skipped the
10168 nonexistent source directory.
10169 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
10170 files with $(object-suffixes) as targets too.
10171 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
10172 and a target for it using $(make-target-directory).
10174 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
10176 2002-11-10 Roland McGrath <roland@frob.com>
10178 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
10179 * sysdeps/generic/bits/pthreadtypes.h: ... here.
10181 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
10182 l_start == 0 and l_len == 1 as we do l_len == 0.
10184 2002-11-10 Ulrich Drepper <drepper@redhat.com>
10186 * po/da.po: Update from translation team.
10188 2002-11-10 Roland McGrath <roland@redhat.com>
10190 * config.make.in (includedir): New variable, substituted by configure.
10191 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
10192 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
10194 2002-11-10 Andreas Jaeger <aj@suse.de>
10196 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
10197 REG_OLDMASK and REG_CR2 to synch with kernel header.
10200 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
10202 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
10203 * nss/getnssent_r.c (__nss_getent_r): Likewise.
10204 (__nss_setent): Likewise.
10205 (__nss_getent_r): Likewise.
10206 * inet/getnetgrent_r.c (innetgr): Likewise.
10207 (__internal_setnetgrent_reuse): Likewise.
10208 (internal_getnetgrent_r): Likewise.
10209 * inet/ether_hton.c (ether_hostton): Likewise.
10210 * inet/ether_ntoh.c (ether_ntohost): Likewise.
10211 * sunrpc/netname.c (netname2user): Likewise.
10212 * sunrpc/publickey.c (getpublickey): Likewise.
10213 (getsecretkey): Likewise.
10215 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
10217 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
10218 error in range calculation.
10220 2002-10-09 Jakub Jelinek <jakub@redhat.com>
10222 * string/test-strspn.c (do_test): Ensure zero termination.
10223 * string/test-strpbrk.c (do_test): Likewise.
10224 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
10225 * string/test-strncpy.c (stupid_strncpy): Likewise.
10226 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
10228 2002-10-08 Roland McGrath <roland@redhat.com>
10230 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
10231 nonzero characters.
10233 2002-09-22 H.J. Lu <hjl@gnu.org>
10235 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
10236 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
10237 only if __NR_mmap2 is defined.
10239 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
10240 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
10241 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
10242 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
10244 2002-11-08 Jakub Jelinek <jakub@redhat.com>
10246 * posix/bug-regex13.c (tests): Add new test.
10248 * string/test-strchr.c (stupid_strchr): New function.
10249 (do_random_tests): Make sure the string is zero terminated.
10250 * string/test-strpbrk.c (stupid_strpbrk): New function.
10251 (do_random_tests): Make sure the string is zero terminated.
10252 * string/test-strcmp.c (stupid_strcmp): New function.
10253 (do_random_tests): Make sure the strings are zero terminated.
10254 * string/test-strspn.c (stupid_strspn): New function.
10255 (simple_strspn): Rename rej argument to acc.
10256 (do_random_tests): Make sure the string is zero terminated.
10257 * string/test-strcspn.c (stupid_strcspn): New function.
10258 * string/test-strncpy.c (stupid_strncpy): New function.
10259 * string/test-stpncpy.c (stupid_stpncpy): New function.
10260 * string/test-strncmp.c (stupid_strncmp): New function.
10261 (do_random_tests): Make sure the strings are zero terminated.
10262 * string/test-string.h (impl_t): Change test into long.
10263 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
10265 2002-11-08 Roland McGrath <roland@redhat.com>
10267 * sysdeps/ia64/elf/configure.in: Add TLS check.
10268 From Ian Wienand <ianw@cse.unsw.edu.au>.
10269 * sysdeps/ia64/elf/configure: Regenerated.
10271 2002-11-07 Roland McGrath <roland@redhat.com>
10273 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
10274 place of _IO_new_do_write.
10275 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
10276 #undef before versioned_symbol use.
10278 2002-11-07 Richard Henderson <rth@redhat.com>
10280 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
10281 * configure: Regenerated.
10282 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
10283 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
10284 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
10285 _dl_fini via gp-relative relocations.
10286 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
10288 * elf/tls-macros.h: Add alpha versions.
10289 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
10290 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
10291 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
10292 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
10293 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
10294 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
10295 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
10296 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
10297 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
10298 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
10299 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
10300 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10301 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
10302 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
10303 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
10304 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
10305 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
10306 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
10308 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
10309 Kill argument registers across the inline syscall.
10311 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
10313 * linuxthreads/sysdeps/alpha/tls.h: New file.
10314 * sysdeps/alpha/dl-tls.h: New file.
10316 2002-10-29 David Mosberger <davidm@hpl.hp.com>
10318 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
10319 (gmon_initializer): New function.
10320 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
10321 __gmon_start__ here. Call it from gmon_initializer() instead.
10323 2002-03-12 H.J. Lu <hjl@gnu.org>
10325 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
10326 tst-array2, and tst-array3.
10327 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
10328 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
10329 ($(objpfx)tst-array1.out): New target.
10330 ($(objpfx)tst-array2): Likewise.
10331 ($(objpfx)tst-array2.out): Likewise.
10332 ($(objpfx)tst-array3.out): Likewise.
10333 * elf/tst-array1.c: New file.
10334 * elf/tst-array1.exp: Likewise.
10335 * elf/tst-array2.c: Likewise.
10336 * elf/tst-array2dep.c: Likewise.
10337 * elf/tst-array2.exp: Likewise.
10338 * elf/tst-array3.c: Likewise.
10340 2002-10-28 David Mosberger <davidm@hpl.hp.com>
10342 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
10343 Don't add L->l_addr to array entry values.
10345 2002-11-07 Jakub Jelinek <jakub@redhat.com>
10347 * string/test-string.h: New file.
10348 * string/test-strlen.c: New file.
10349 * string/test-string.h: New file.
10350 * string/test-strcmp.c: New file.
10351 * string/test-strchr.c: New file.
10352 * string/test-strrchr.c: New file.
10353 * string/test-strcpy.c: New file.
10354 * string/test-stpcpy.c: New file.
10355 * string/test-strncpy.c: New file.
10356 * string/test-stpncpy.c: New file.
10357 * string/test-strpbrk.c: New file.
10358 * string/test-strcspn.c: New file.
10359 * string/test-strspn.c: New file.
10360 * string/test-strcat.c: New file.
10361 * string/test-strncmp.c: New file.
10362 * string/test-memchr.c: New file.
10363 * string/test-memcmp.c: New file.
10364 * string/test-memset.c: New file.
10365 * string/test-memcpy.c: New file.
10366 * string/test-mempcpy.c: New file.
10367 * string/test-memmove.c: New file.
10368 * string/Makefile (strop-tests): New variable.
10369 (tests): Add strop-tests.
10370 (distribute): Add test-string.h.
10372 2002-11-06 Ulrich Drepper <drepper@redhat.com>
10374 * posix/regcomp.c: Use tabs instead of spaces.
10375 * posix/regexec.c: Likewise.
10376 * posix/regex_internal.h: Likewise.
10378 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
10380 2002-11-06 Jakub Jelinek <jakub@redhat.com>
10382 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
10384 (regcomp): Don't set can_be_null here.
10385 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
10386 (re_compile_internal): Clear can_be_null, set regs_allocated.
10388 * posix/regcomp.c (re_set_fastmap): New function.
10389 (re_compile_fastmap_iter): Use it. Remove redundant type ==
10390 COMPLEX_BRACKET check.
10391 * posix/regexec.c (re_search_internal): Optimize searching with
10392 fastmap. Call re_string_reconstruct even if match_first is
10393 smaller than raw_mbs_idx.
10395 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
10397 * posix/regcomp (free_dfa_content): Use free_state.
10398 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
10399 pointers in case that realloc failed.
10400 (re_node_set_merge): Likewise.
10401 (register_state): Likewise.
10402 (create_newstate_common): Invoke memory release functions in case of
10404 (create_ci_newstate): Likewise.
10405 (create_cd_newstate): Likewise.
10406 (free_state): New function.
10407 * posix/regexec.c (re_search_internal): Invoke memory release
10408 functions in case of error conditions.
10409 (sift_states_backward): Likewise.
10410 (merge_state_array): Likewise.
10411 (add_epsilon_src_nodes): Likewise.
10412 (sub_epsilon_src_nodes): Likewise.
10413 (search_subexp): Likewise.
10414 (sift_states_bkref): Likewise.
10415 (transit_state_sb): Likewise.
10416 (transit_state_mb): Likewise.
10417 (transit_state_bkref_loop): Likewise.
10418 (group_nodes_into_DFAstates): Likewise.
10419 (push_fail_stack): Don't edit pointers in case that realloc failed.
10420 (extend_buffers): Likewise.
10421 (match_ctx_add_entry): Likewise.
10423 2002-11-06 Roland McGrath <roland@redhat.com>
10425 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
10426 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10428 * configure.in: Add checks on as and ld for binutils 2.13 or later.
10429 * configure: Regenerated.
10431 2002-11-06 Ulrich Drepper <drepper@redhat.com>
10433 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
10434 If re_compile_internal failed free fastmap buffer.
10435 (free_dfa_content): Broken out of regfree function. Frees all dfa
10437 (regfree): Add free_dfa_content.
10438 (re_compile_internal): If any of the called functions fails free
10439 all dfa related memory.
10441 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10443 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
10444 warnings from the kernel headers.
10446 2002-11-05 Roland McGrath <roland@redhat.com>
10448 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
10449 From Johannes Stezenbach <js@convergence.de>.
10451 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
10452 #errlist-compat magic comment to give 123 as size.
10453 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
10454 (libc: GLIBC_2.2): ... here.
10455 (libc: GLIBC_2.3): Likewise.
10457 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10459 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
10460 which happens at the beginning so that we can unload modules in
10463 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10465 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
10466 under [__USE_MISC || _ASM].
10468 * elf/elf.h: Remove the obsolete SH TLS relocations.
10470 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10472 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
10474 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
10477 __NR_pread64 and __NR_pwrite64.
10478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10479 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
10481 Revert change to use INLINE_SYSCALL.
10482 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10483 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10484 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10485 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
10487 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10489 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
10490 Update clobber list and add a comment about the syscall ABI.
10492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
10493 s_pwrite64, s_ftruncate, s_truncate): Re-add.
10495 2002-11-05 Jakub Jelinek <jakub@redhat.com>
10497 * iconv/gconv_dl.c (free_mem): Clear loaded.
10498 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
10501 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10503 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
10505 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
10506 as old code without locking. _IO_seekoff calls this function after
10507 locking the stream.
10508 * libio/ioseekpos.c: Likewise for _IO_seekpos.
10509 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
10510 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
10512 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
10513 of _IO_seekoff_internal.
10514 (_IO_rewind): Likewise.
10515 * libio/ioftell.c: Likewise.
10516 * libio/ftello.c: Likewise.
10517 * libio/ftello64.c: Likewise.
10518 * libio/iofgetpos.c: Likewise.
10519 * libio/iofgetpos64.c: Likewise.
10520 * libio/oldiofgetpos.c: Likewise.
10521 * libio/oldiofgetpos64.c: Likewise.
10522 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
10523 _IO_seekpos_internal.
10524 * libio/iofsetpos64.c: Likewise.
10525 * libio/oldiofsetpos.c: Likewise.
10526 * libio/oldiofsetpos64.c: Likewise.
10528 2002-11-04 Roland McGrath <roland@redhat.com>
10530 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
10531 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
10532 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
10533 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
10534 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10535 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10536 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10537 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
10538 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
10539 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
10541 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
10542 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
10543 Remove these, no longer used.
10545 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
10548 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
10549 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
10550 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
10551 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
10552 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
10555 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
10556 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10557 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
10559 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10560 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
10562 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10564 2002-11-03 Roland McGrath <roland@redhat.com>
10566 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
10567 `_dl_tls_static_used'.
10568 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
10569 (__libc_setup_tls): Initialize it. Let the initial value of
10570 _dl_tls_static_size indicate some surplus space in the computed value.
10571 * elf/dl-open.c (_dl_tls_static_size): New variable.
10572 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
10573 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
10574 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
10575 (CHECK_STATIC_TLS): Use it.
10576 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
10577 closed objects occupied a trailing contiguous chunk of static TLS area.
10579 2002-10-18 Bruno Haible <bruno@clisp.org>
10581 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
10583 2002-11-04 Ulrich Drepper <drepper@redhat.com>
10585 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
10586 _wide_data->_IO_read_end if adjustment can be made in the current
10589 * sysdeps/unix/sysv/linux/fexecve.c: New file.
10591 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
10592 wide oriented streams are used.
10594 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
10595 service hasn't been used [PR libc/4744].
10597 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
10598 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
10600 * manual/examples/dir.c: Don't include <stddef.h>.
10601 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
10602 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
10604 2002-11-02 H.J. Lu <hjl@gnu.org>
10606 * stdio-common/reg-printf.c: Include <stddef.h>.
10608 2002-11-03 Ulrich Drepper <drepper@redhat.com>
10610 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
10612 * po/ca.po: Update from translation team.
10613 * po/es.po: Likewise.
10615 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
10616 is defined write out memory map.
10617 * sysdeps/unix/sysv/linux/segfault.c: New file.
10619 2002-11-02 Roland McGrath <roland@redhat.com>
10621 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
10622 pointers that can alias.
10623 Reported by Daniel Jacobowitz <drow@mvista.com>.
10625 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
10627 2002-11-02 Roland McGrath <roland@redhat.com>
10629 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
10630 description to be clearer and to say that *RESULT is set to ENTRY.
10632 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10634 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10635 dests_ch arrays together. Alloca or malloc dest_states,
10636 dest_states_word and dest_states_nl arrays together. Free memory on
10639 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10641 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10642 and current_saltbits.
10644 2002-11-02 Roland McGrath <roland@redhat.com>
10646 * stdio-common/reg-printf.c: Include <stdlib.h>.
10648 2002-11-02 H.J. Lu <hjl@gnu.org>
10650 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10651 caller to EXTRA instead of execve.
10653 2002-11-01 Roland McGrath <roland@redhat.com>
10655 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10656 in place of [!(USE_TLS && HAVE___THREAD)].
10657 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10659 2002-10-31 Roger Sayle <roger@eyesopen.com>
10661 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10663 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10665 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10666 without defining FP_ROUNDMODE.
10668 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10670 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10671 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10673 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10674 (OLD_SIGLIST_SIZE): Define.
10675 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10676 (OLD_SIGLIST_SIZE): Define.
10677 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10679 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10681 * sysdeps/ia64/strncpy.S: Fix recovery code.
10683 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10685 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10687 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10689 * elf/dl-libc.c (free_mem): Likewise.
10690 * iconv/gconv_conf.c (free_mem): Likewise.
10691 * iconv/gconv_db.c (free_mem): Likewise.
10692 * iconv/gconv_dl.c (free_mem): Likewise.
10693 * iconv/gconv_cache.c (free_mem): Likewise.
10694 * intl/finddomain.c (free_mem): Likewise.
10695 * intl/dcigettext.c (free_mem): Likewise.
10696 * locale/setlocale.c (free_mem): Likewise.
10697 * misc/fstab.c (fstab_free): Likewise.
10698 * nss/nsswitch.c (free_mem): Likewise.
10699 * posix/regcomp.c (free_mem): Likewise.
10700 * resolv/gai_misc.c (free_res): Likewise.
10701 * stdlib/fmtmsg.c (free_mem): Likewise.
10702 * sunrpc/clnt_perr.c (free_mem): Likewise.
10703 * sysdeps/generic/setenv.c (free_mem): Likewise.
10704 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10705 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10706 * time/tzset.c (free_mem): Likewise.
10707 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10708 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10709 * malloc/set-freeres.c (__libc_freeres): Likewise.
10711 * login/getutent.c: Include stdlib.h instead of stddef.h.
10712 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10713 (__getutent): Allocate buffer the first time it is run.
10714 * login/getutid.c: Include stdlib.h instead of stddef.h.
10715 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10716 (__getutid): Allocate buffer the first time it is run.
10717 * login/getutline.c: Include stdlib.h instead of stddef.h.
10718 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10719 (__getutline): Allocate buffer the first time it is run.
10720 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10721 (mtrace): Allocate malloc_trace_buffer.
10722 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10723 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10724 * string/strerror.c: Include libintl.h and errno.h.
10725 (buf): New variable.
10726 (strerror): Only allocate buffer if actually needed (unknown error).
10727 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10730 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10732 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10733 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10735 (__libc_freeres): Free all pointers in that section.
10736 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10737 commands when creating .lds script.
10738 (LDSEDCMD-c.so): New variable.
10739 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10740 (rcmd_af): Use strdup to allocate ahostbuf.
10741 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10742 (rexec_af): Use strdup to allocate ahostbuf.
10743 * stdio-common/reg-printf.c (printf_funcs): Remove.
10744 (__printf_arginfo_table): Change into printf_arginfo_function **.
10745 Add libc_freeres_ptr.
10746 (__register_printf_function): Allocate __printf_arginfo_table
10747 and __printf_function_table the first time it is called.
10748 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10749 printf_arginfo_function **.
10750 (parse_one_spec): Add __builtin_expect.
10751 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10752 (free_mem): Remove.
10753 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10754 (free_mem): Remove.
10755 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10756 (string_space, map): Add libc_freeres_ptr.
10757 (free_mem): Remove.
10758 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10759 (free_mem): Remove.
10760 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10761 (free_mem): Remove.
10762 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10763 (buffer): Add libc_freeres_ptr.
10764 (free_mem): Remove for _LIBC.
10765 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10766 (free_mem): Remove.
10767 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10768 (free_mem): Remove.
10769 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10770 (free_mem): Remove.
10771 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10772 (free_mem): Remove.
10773 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10774 (free_mem): Remove.
10775 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10776 (free_mem): Remove.
10777 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10779 (free_mem): Remove.
10780 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10782 (free_mem): Remove.
10784 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10786 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10787 instead of duplicating the whole function in libc.
10789 2002-10-31 Roland McGrath <roland@redhat.com>
10791 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10792 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10794 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10796 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10797 32bit-predefine when creating .new32 list and -U for each
10798 32bit-predefine when creating .new64 list.
10799 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10801 2002-10-29 Andreas Schwab <schwab@suse.de>
10803 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10804 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10806 2002-10-25 Roland McGrath <roland@redhat.com>
10808 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10809 * sysdeps/unix/sysv/linux/configure: Regenerated.
10811 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10812 _dl_starting_up decl.
10814 2002-10-20 H.J. Lu <hjl@gnu.org>
10816 * sysdeps/unix/sysv/linux/configure.in: Don't check
10817 /lib/modules/`uname -r`/build/include for kernel headers if
10819 * sysdeps/unix/sysv/linux/configure: Regenerated.
10821 2002-10-25 Roland McGrath <roland@redhat.com>
10823 * math/math.h (M_LOG2El): Correct the value.
10824 From Stephen L Moshier <steve@moshier.net>.
10826 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10827 conditional from __libc_multiple_libcs access. Remove kludge for weak
10828 symbol access with old compilers we no longer support.
10829 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10830 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10832 2002-10-25 Roland McGrath <roland@redhat.com>
10834 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10835 implement SV_RESETHAND by translating it to SA_RESETHAND.
10837 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10839 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10840 type on ELF64 platforms.
10842 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10844 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10846 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10848 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10850 * elf/dl-misc.c: Include <sysdep.h>.
10851 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10853 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10854 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10855 (INLINE_SYSCALL): Use that.
10856 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10857 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10858 (INLINE_SYSCALL): Use that.
10859 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10860 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10861 (INLINE_SYSCALL): Use that.
10862 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10864 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10865 (__INTERNAL_SYSCALL_STRING): Define.
10866 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10868 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10869 (__INTERNAL_SYSCALL_STRING): Define.
10870 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10871 __SYSCALL_STRING to inline_syscall*.
10872 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10874 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10875 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10878 2002-10-24 Roland McGrath <roland@redhat.com>
10880 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10881 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10882 * sysdeps/powerpc/elf/libc-start.c: Or here.
10883 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10884 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10885 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10886 * sysdeps/generic/libc-start.c: Or here.
10887 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10888 access with [! SHARED].
10889 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10891 * libio/bug-wfflush.c: New file.
10892 * libio/Makefile (tests): Add bug-wfflush.
10894 2002-10-23 Roland McGrath <roland@redhat.com>
10896 * stdio-common/tst-fphex.c: New file.
10897 * stdio-common/Makefile (tests): Add tst-fphex.
10898 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10899 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10900 chars always before the value digits.
10901 Reported by James Antill <james.antill@redhat.com>.
10903 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10905 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10906 (free_mem): New function.
10907 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10908 if not cross compiling.
10909 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10910 (bug-regex14-ENV): Set.
10911 (bug-regex14-mem): New target.
10912 * posix/bug-regex14.c: New file.
10914 2002-10-23 Roland McGrath <roland@redhat.com>
10916 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10917 target, so we don't touch it when the link fails.
10919 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10920 Check for the result overflowing off_t and fail with EOVERFLOW.
10921 * libio/ioftell.c (_IO_ftell): Likewise.
10922 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10924 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10925 use a temporary timeval on the stack for gettimeofday and copy it.
10926 * login/logout.c (logout): Likewise.
10927 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10929 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10930 Use __SWORD_TYPE instead of int for member types.
10931 (struct statfs64): Likewise.
10932 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10933 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10934 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10935 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10936 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10938 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10939 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10940 (ST_NODIRATIME): Restore fixed value of 2048.
10941 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10942 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10944 Rearranged <bits/types.h> definitions to reduce duplication.
10945 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10946 <bits/wordsize.h> and new header <bits/typesizes.h>.
10947 * posix/Makefile (headers): Add bits/typesizes.h here.
10948 * sysdeps/generic/bits/typesizes.h: New file.
10949 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10950 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10951 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10952 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10953 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10954 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10955 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10956 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10957 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10958 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10959 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10960 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10961 * signal/signal.h: Likewise.
10963 * streams/stropts.h: Include <bits/xtitypes.h>.
10964 * streams/Makefile (headers): Add bits/xtitypes.h here.
10965 * sysdeps/generic/bits/xtitypes.h: New file.
10966 * sysdeps/s390/bits/xtitypes.h: New file.
10967 * sysdeps/ia64/bits/xtitypes.h: New file.
10968 * sysdeps/x86_64/bits/xtitypes.h: New file.
10970 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10971 * sysdeps/generic/bits/ipctypes.h: New file.
10972 * sysdeps/mips/bits/ipctypes.h: New file.
10973 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10974 * sysdeps/gnu/bits/msq.h: Likewise.
10975 * sysvipc/sys/ipc.h: Likewise.
10977 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10979 * elf/dl-load.c (struct filebuf): For buf element to have the
10980 alignment of ElfXX_Ehdr since this is what will be stored in it.
10982 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10984 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10985 into pointer to locrec_offset.
10986 (add_locale_to_archive): Adjust callers. Free normalized_name right
10987 before returning, not immediately after add_locale, pass it to
10988 add_alias if not NULL instead of name. Rename second normalized_name
10989 occurence to nnormalized_codeset_name.
10991 * locale/programs/locarchive.c (enlarge_archive): Make sure
10992 string_size is always a multiple of 4.
10993 Reported by Andreas Schwab <schwab@suse.de>.
10995 2002-10-21 Andreas Schwab <schwab@suse.de>
10997 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10998 caller to EXTRA instead of execve, since the latter has a
10999 higher-priority implementation in linuxthreads.
11001 2002-10-21 Roland McGrath <roland@redhat.com>
11003 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
11004 slotinfo list's len member to the proper size, not just 1.
11005 Initialize static_map.l_tls_initimage.
11007 * elf/dl-open.c (dl_open_worker): Fix loop searching for
11008 dtv_slotinfo_list element containing new modules' l_tls_modid.
11010 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
11011 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
11012 * elf/Makefile (tests): Add tst-tls9.
11013 (tests-static): Add tst-tls9-static.
11014 (tst-tls9-static-ENV): New variable.
11015 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
11017 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
11018 modids used by partially loaded modules being closed can't be known.
11020 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
11022 * posix/Makefile: Add a test case for the bug reported by Aharon
11023 Robbins <arnold@skeeve.com>.
11024 * posix/bug-regex13.c: New file.
11025 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
11027 2002-10-21 Ulrich Drepper <drepper@redhat.com>
11029 * csu/gmon-start.c: Pretty printing.
11031 2002-10-19 Art Haas <ahaas@neosoft.com>
11033 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
11034 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
11035 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
11036 * configure: Regenerated.
11038 2002-10-19 Roland McGrath <roland@redhat.com>
11040 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
11041 and then set $subdirs directly, because the new Autoconf breaks
11042 compatibility in every way imaginable and insists on whining
11043 about usage that worked since the dawn of time.
11044 * configure: Regenerated.
11046 * configure: Regenerated (using Autoconf 2.54).
11047 * sysdeps/alpha/elf/configure: Likewise.
11048 * sysdeps/generic/configure: Likewise.
11049 * sysdeps/i386/elf/configure: Likewise.
11050 * sysdeps/ia64/elf/configure: Likewise.
11051 * sysdeps/mach/hurd/configure: Likewise.
11052 * sysdeps/mach/configure: Likewise.
11053 * sysdeps/unix/configure: Likewise.
11054 * sysdeps/unix/common/configure: Likewise.
11055 * sysdeps/unix/sysv/aix/configure: Likewise.
11056 * sysdeps/unix/sysv/linux/configure: Likewise.
11057 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
11058 * sysdeps/x86_64/elf/configure: Likewise.
11060 * config.make.in: Nix completely-soft nonsense.
11061 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
11062 of machine directories instead of fpu subdirectory.
11063 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
11064 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
11065 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
11066 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
11067 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
11068 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
11069 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
11070 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
11071 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
11072 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
11073 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
11074 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
11075 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
11076 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
11077 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
11078 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
11079 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
11080 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
11081 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
11082 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
11083 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
11084 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
11085 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
11086 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
11087 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
11088 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
11089 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
11090 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
11091 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
11092 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
11093 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
11094 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
11095 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
11096 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
11097 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
11098 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
11099 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
11100 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
11101 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
11102 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
11104 2002-10-19 Bruno Haible <bruno@clisp.org>
11106 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
11108 2002-10-18 Roland McGrath <roland@redhat.com>
11110 * io/Makefile (routines): Add lchmod.
11111 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
11112 * sysdeps/generic/lchmod.c: New file.
11113 * sysdeps/mach/hurd/lchmod.c: New file.
11114 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
11116 2002-10-18 Art Haas <ahaas@neosoft.com>
11118 * configure.in: Remove remaining AC_FD_CC macros, and replace
11119 AC_FD_MSG with AS_MESSAGE_FD.
11121 2002-10-18 Roland McGrath <roland@redhat.com>
11123 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
11124 typos: VALUE -> FINALADDR.
11126 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
11127 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
11128 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
11129 (inline_syscall6): Move these macros ...
11130 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
11132 * configure.in (libc_link_dests, libc_link_sources): Remove these
11133 variables and the AC_LINK_FILES call.
11135 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
11136 change to put new symbols here instead of in GLIBC_2.2.
11137 * sysdeps/powerpc/Subdirs: Move this file ...
11138 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
11140 2002-10-07 Roland McGrath <roland@redhat.com>
11142 * sysdeps/generic/bits/time.h: Replaced with contents of the
11143 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
11144 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
11145 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
11146 macros is ok even for architectures that don't now implement them.
11147 * sysdeps/mach/hurd/bits/time.h: File removed.
11148 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
11149 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
11150 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
11151 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
11152 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
11154 2002-10-18 Jeff Bailey <jbailey@gnu.org>
11156 * configure.in: Replace obsolete AC_OUTPUT syntax with
11157 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
11159 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
11160 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
11162 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
11163 * sysdeps/alpha/elf/configure.in: Likewise.
11164 * sysdeps/i386/elf/configure.in: Likewise.
11165 * sysdeps/mach/hurd/configure.in: Likewise.
11166 * sysdeps/x86_64/elf/configure.in: Likewise.
11168 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
11170 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
11171 * sysdeps/generic/configure.in: Likewise.
11172 * sysdeps/i386/elf/configure.in: Likewise.
11173 * sysdeps/ia64/elf/configure.in: Likewise.
11174 * sysdeps/mach/configure.in: Likewise.
11175 * sysdeps/mach/hurd/configure.in: Likewise.
11176 * sysdeps/unix/configure.in: Likewise.
11177 * sysdeps/unix/common/configure.in: Likewise.
11178 * sysdeps/unix/sysv/aix/configure.in: Likewise.
11179 * sysdeps/unix/sysv/linux/configure.in: Likewise.
11180 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
11181 * sysdeps/x86_64/elf/configure.in: Likewise.
11183 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
11184 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
11185 that it's obvious when extra autoconf machinery is being dragged in.
11187 2002-10-18 Roland McGrath <roland@redhat.com>
11189 * configure.in: Remove bogus echo included in
11190 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
11191 * configure: Regenerated.
11193 2002-10-18 Jakub Jelinek <jakub@redhat.com>
11195 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
11196 (statfs_filesize_max): New function.
11197 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
11198 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
11199 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
11200 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
11201 statfs_filesize_max.
11202 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11203 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
11204 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
11206 2002-10-17 Roland McGrath <roland@redhat.com>
11208 * configure.in (MIG): Just AC_SUBST it here.
11209 * configure: Regenerated.
11210 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
11211 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
11212 * sysdeps/mach/configure: Regenerated.
11214 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
11215 and AC_PROVIDE([_AS_CR_PREPARE]).
11217 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
11218 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
11220 * elf/dl-support.c: Move _dl_tls_* variables to ...
11221 * sysdeps/generic/libc-tls.c: ... here.
11223 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
11224 allow IDX to be one past the current last slotinfo entry.
11225 (_dl_close): Pass IMAP->l_init_called for that parameter.
11227 2002-10-07 Andreas Schwab <schwab@suse.de>
11229 * aclocal.m4: Fix for autoconf 2.53.
11230 * configure.in: Likewise. Require autoconf 2.53.
11232 2002-10-08 Richard Henderson <rth@redhat.com>
11234 * soft-fp/op-4.h: Handle carry correctly in
11235 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
11236 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
11237 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
11239 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
11241 * configure.in: Compute completely-soft.
11242 * config.make.in: Make completely-soft available to sub-makes.
11243 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
11244 gcc-double-routines. Add sim-full.c. Add fenv_const and
11245 fe_nomask to libm-support.
11246 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
11247 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
11248 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
11249 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
11250 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
11251 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
11252 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
11253 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
11254 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
11255 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
11256 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
11257 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
11258 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
11259 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
11260 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
11261 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
11262 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
11263 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
11264 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
11265 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
11267 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
11268 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
11269 FP_HANDLE_EXCEPTIONS.
11270 Define FP_ROUNDMODE.
11271 Redefine FP_* macros to correspond to the FE_* bit positions.
11272 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
11273 Define externs for __sim_exceptions, __sim_disabled_exceptions,
11274 __sim_round_mode, __simulate_exceptions.
11275 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
11276 * sysdeps/powerpc/bits/fenv.h: ...to here.
11278 2002-10-06 Jakub Jelinek <jakub@redhat.com>
11280 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
11281 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
11282 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
11283 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
11286 2002-10-15 Jakub Jelinek <jakub@redhat.com>
11288 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
11289 __libc_res_nsend): New prototypes.
11290 * resolv/res_query.c (QUERYSIZE): Define.
11291 (__libc_res_nquery): Renamed from res_nquery. Added answerp
11292 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
11293 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
11294 res_nsend, pass answerp.
11295 (res_nquery): Changed into wrapper around __libc_res_nquery.
11296 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
11297 argument. Call __libc_res_nquerydomain and __libc_res_nquery
11298 instead of the non-__libc_ variants, pass them answerp.
11299 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
11300 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
11301 Added answerp argument. Call __libc_res_nquery instead of
11302 res_nquery, pass answerp.
11303 (res_nquerydomain): Changed into wrapper around
11304 __libc_res_nquerydomain.
11305 * resolv/res_send.c: Include sys/ioctl.h.
11306 (MAXPACKET): Define.
11307 (send_vc): Change arguments. Reallocate answer buffer if it is
11309 (send_dg): Likewise.
11310 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
11311 Reallocate answer buffer if it is too small and hooks are in use.
11312 Adjust calls to send_vc and send_dg.
11313 (res_nsend): Changed into wrapper around __libc_res_nsend.
11314 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
11315 just 1K answer buffer on the stack, use __libc_res_nsearch instead
11317 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
11318 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
11319 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
11320 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
11321 (gethostbyaddr): Similarly with __libc_res_nquery.
11322 * resolv/Versions (libresolv): Export __libc_res_nquery and
11323 __libc_res_nsearch at GLIBC_PRIVATE.
11325 2002-10-17 Roland McGrath <roland@redhat.com>
11327 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
11328 * configure: Regenerated.
11330 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
11331 before performing the reloc, not after.
11332 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
11334 2002-10-17 Ulrich Drepper <drepper@redhat.com>
11336 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
11337 * locale/programs/linereader.c (lr_open): Likewise.
11338 * locale/programs/charmap-dir.c (charmap_open): Likewise.
11339 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11341 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
11343 * posix/bug-regex11.c: Add a test case for the bug reported by
11344 Paolo Bonzini <bonzini@gnu.org>.
11345 * posix/regexec.c (sift_states_bkref): Use correct destination of
11346 the back reference.
11348 2002-10-17 Roland McGrath <roland@redhat.com>
11350 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
11351 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
11352 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
11353 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
11354 Call it after performing TPOFF relocs.
11355 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
11356 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11357 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
11359 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
11360 when closing a partially-initialized object.
11362 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
11363 instead of _dl_fatal_printf when we see PT_TLS.
11365 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
11366 instead of $(libof-$<).
11368 2002-10-16 Roland McGrath <roland@redhat.com>
11370 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
11371 instead of += to append, to be sure $(lib) gets expanded at defn time.
11372 (libof-$(cpp-src)): New variable, define this instead.
11373 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
11374 (lib): Don't use override.
11375 (CPPFLAGS-$(lib)): New variable, put -D's here.
11376 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
11377 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
11378 LIB found by $(libof-*) for basename, target, or source.
11379 * Makerules (CPPFLAGS-nonlib): New variable.
11380 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
11381 * locale/Makefile (lib): Likewise.
11382 * sunrpc/Makefile (lib): Likewise.
11384 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
11385 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
11386 * sysdeps/unix/sysv/linux/pathconf.h: New file.
11387 (statfs_link_max): New function, guts from fpathconf.c.
11388 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
11389 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11390 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
11391 to use the linux/pathconf.c code by #include rather than duplication.
11392 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
11394 2002-10-16 Jakub Jelinek <jakub@redhat.com>
11396 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11397 Use __libc_errno only for libc itself.
11399 2002-10-16 Andreas Jaeger <aj@suse.de>
11401 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
11403 2002-10-16 Ulrich Drepper <drepper@redhat.com>
11405 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11406 Use __libc_errno only for libc itself.
11408 2002-10-15 Roland McGrath <roland@redhat.com>
11409 Jakub Jelinek <jakub@redhat.com>
11411 * sysdeps/unix/sysv/linux/Makefile
11412 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
11413 sparc/Makefile to produce a bi-arch file as needed.
11414 That's now parameterized by the variable $(64bit-predefine).
11415 Use LC_ALL=C for `comm' commands in that rule.
11416 No longer conditional on [$(no_syscall_list_h)].
11417 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
11418 (64bit-predefine): New variable.
11419 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
11420 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
11421 * sysdeps/unix/sysv/linux/powerpc/Makefile
11422 (64bit-predefine): New variable.
11424 2002-10-15 Roland McGrath <roland@redhat.com>
11426 * sysdeps/unix/sysv/linux/Makefile
11427 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
11429 * login/utmp-private.h: Declare __libc_utmp_lock.
11430 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
11431 and call __libc_utmp_jump_table functions directly, instead of using
11434 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
11435 * sysdeps/unix/sysv/linux/configure: Regenerated.
11437 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
11438 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
11439 Use int32_t for ll_time.
11440 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
11441 Use int32_t instead of long int for ut_session.
11442 Use an anonymous struct with 32-bit fields for ut_tv.
11443 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
11444 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
11445 here as in utmp.h for `struct utmp'.
11446 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
11447 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
11448 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
11449 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
11450 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
11451 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
11453 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
11454 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
11455 All the following files were identical or equivalent to it.
11456 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
11457 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
11458 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
11459 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
11460 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
11461 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
11462 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
11463 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
11464 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
11465 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
11467 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
11468 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
11469 Other than the previously incorrect sign of msg_iovlen, this is a
11470 no-op on 32-bit platforms. On 64-bit platforms it makes this header
11471 match their layouts as well, so the following are now identical to it.
11472 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
11473 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
11474 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
11475 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
11476 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
11478 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11480 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
11481 Define for 2.4+ kernels.
11483 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
11484 are known to have the vfork syscall. Don't confuse the CPUs
11485 branch prediction unit by jumping to the return address.
11487 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
11488 support for reiserfs and xfs.
11490 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
11492 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
11494 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
11496 2002-10-16 Jakub Jelinek <jakub@redhat.com>
11498 * include/libc-symbols.h (attribute_tls_model_ie): Define.
11499 * include/errno.h (errno): Define to __libc_errno in libc.so.
11500 Add attribute_tls_model_ie.
11501 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
11502 Add attribute_tls_model_ie.
11503 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
11504 attribute_tls_model_ie.
11505 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
11507 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
11509 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
11510 attribute_tls_model_ie.
11511 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
11513 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
11514 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
11515 __libc_errno in USE___THREAD case.
11516 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11518 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
11519 __attribute__((tls_model (""))).
11520 * configure: Rebuilt.
11521 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
11523 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11525 * timezone/asia: Update from tzdata2002d.
11526 * timezone/australasia: Likewise.
11527 * timezone/iso3166.tab: Likewise.
11528 * timezone/southamerica: Likewise.
11529 * timezone/zone-tab: Likewise.
11531 2002-10-15 Roland McGrath <roland@redhat.com>
11533 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
11534 Adjust TCB pointer before calling free, so we get the whole block.
11536 2002-10-14 Roland McGrath <roland@redhat.com>
11538 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
11539 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
11540 extern using attribute_hidden instead of static, avoids warning.
11542 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11544 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
11545 * sysdeps/unix/sysv/linux/configure: Rebuilt.
11547 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11549 * po/sv.po: Update from translation team.
11551 2002-10-12 H.J. Lu <hjl@gnu.org>
11553 * sunrpc/thrsvc.c (PROCQUIT): New.
11554 (struct rpc_arg): New.
11555 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
11556 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
11557 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
11558 (main): Modified for struct rpc_arg *.
11560 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11562 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
11564 2002-10-14 Jakub Jelinek <jakub@redhat.com>
11566 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
11567 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
11568 in ld.so even if __thread is supported.
11570 2002-10-13 Jakub Jelinek <jakub@redhat.com>
11572 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
11573 Add hack to prevent the compiler from clobbering the signal context.
11574 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
11576 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
11579 2002-10-14 Andreas Jaeger <aj@suse.de>
11581 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
11582 Guido Guenther <agx@sigxcpu.org>.
11584 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11586 * po/sk.po: Update from translation team.
11588 2002-09-26 Roland McGrath <roland@redhat.com>
11590 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
11591 dynamic string tag.
11592 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
11593 DL_DST_LIB based on $(slibdir).
11595 2002-10-13 Roland McGrath <roland@frob.com>
11597 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
11599 * sysdeps/mach/hurd/getresuid.c: New file.
11600 * sysdeps/mach/hurd/getresgid.c: New file.
11601 * sysdeps/mach/hurd/setresuid.c: New file.
11602 * sysdeps/mach/hurd/setresgid.c: New file.
11604 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
11605 setresgid): Declare them.
11606 * NEWS: Mention it.
11608 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
11609 add libc_hidden_proto.
11610 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
11611 getresuid, getresgid, setresuid, setresgid here.
11612 * Versions.def (libc): Define GLIBC_2.3.2 set.
11613 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
11614 Add libc_hidden_def.
11615 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
11616 * sysdeps/generic/setresgid.c: New file.
11617 * sysdeps/generic/setresuid.c: New file.
11618 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11619 (sysdep_routines): Don't add getresuid and getresgid here.
11620 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
11621 (sysdep_routines): Don't add setresuid and setresgid here.
11622 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11623 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11624 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11625 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11626 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11627 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11628 * posix/Makefile (routines): Add them all here instead.
11629 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
11630 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
11631 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
11632 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
11633 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11634 [! __NR_setresuid]: Include generic file.
11635 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11636 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11637 [! __NR_setresuid]: Include generic file.
11638 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11639 Caller is - now, not EXTRA.
11640 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11641 (setresuid, setresgid, getresuid, getresgid): Likewise.
11642 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11643 Add these calls here.
11644 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11645 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11646 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11647 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11648 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11651 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11652 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11654 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11655 (sysdep_routines): Add setfsuid and setfsgid here.
11656 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11657 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11658 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11659 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11660 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11661 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11662 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11663 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11665 * hurd/errno.c: Renamed to ...
11666 * hurd/errno-loc.c: ... this.
11667 * hurd/Makefile (routines): errno -> errno-loc
11669 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11671 * po/de.po: Update from translation team.
11673 * MakeTAGS: Add -E flag to xgettext runs.
11675 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11677 * po/fr.po: Update from translation team.
11679 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11680 Optimize a bit for use in glibc.
11682 2002-10-12 Roland McGrath <roland@redhat.com>
11684 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11685 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11687 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11689 * po/sv.po: Update from translation team.
11691 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11693 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11695 (regfree): Likewise.
11696 (create_initial_state): Likewise.
11697 (analyze): Remove the substitutions which became useless.
11698 (calc_first): Likewise.
11699 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11700 epsilon destination.
11701 (duplicate_node_closure): New function.
11702 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11703 (calc_inveclosure): Likewise.
11704 (calc_eclosure): Likewise.
11705 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11706 direct invocation of duplicate_node.
11707 (parse): Don't use comma operator in the return to avoid compiler
11709 (parse_reg_exp): Likewise.
11710 (parse_branch): Likewise.
11711 (parse_expression): Likewise.
11712 (parse_sub_exp): Likewise.
11713 (parse_dup_op): Likewise.
11714 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11715 which became useless.
11716 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11717 (create_cd_newstate): Likewise.
11718 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11719 (re_token_t): Likewise.
11720 (re_dfa_t): Likewise.
11721 (re_node_set_remove): New macro.
11722 * posix/regexec.c (check_matching): Remove the handling
11724 (check_halt_node_context): Likewise.
11725 (proceed_next_node): Likewise.
11726 (pop_fail_stack): Fix the memory leak.
11727 (set_regs): Likewise.
11728 (free_fail_stack_return): New function.
11729 (sift_states_backward): Fix the memory leak. Remove the handling
11731 (update_cur_sifted_state): Append some if clause to avoid redundant
11733 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11735 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11736 (check_subexp_limits): Likewise.
11737 (search_subexp): Likewise.
11738 (sift_states_bkref): Likewise.
11739 (transit_state_mb): Likewise.
11740 (transit_state_bkref_loop): Likewise.
11741 (transit_state_bkref_loop): Likewise.
11742 (group_nodes_into_DFAstates): Likewise.
11743 (check_node_accept): Likewise.
11744 (sift_ctx_init): Add initializing.
11746 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11748 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11751 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11753 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11754 duplicated variable c.
11756 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11759 * sysdeps/unix/sysv/linux/i386/sysdep.h
11760 (INTERNAL_SYSCALL_ERROR_P): New define.
11761 (INTERNAL_SYSCALL_ERRNO): Likewise.
11763 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11764 Add hack to prevent the compiler from clobbering the signal context.
11766 2002-10-11 Roland McGrath <roland@redhat.com>
11768 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11771 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11772 * sysdeps/sh/dl-lookupcfg.h: File removed.
11773 * sysdeps/i386/dl-lookupcfg.h: File removed.
11775 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11776 missing labels and ; from last change.
11778 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11779 number literals, so they are doubles instead of ints.
11781 2002-10-09 Roland McGrath <roland@redhat.com>
11783 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11784 changed from [USE_TLS && HAVE___THREAD].
11786 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11787 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11788 * sysdeps/x86_64/dl-machine.h
11789 (elf_machine_type_class, elf_machine_rela): Likewise.
11790 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11793 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11794 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11795 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11797 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11798 instead of ___tls_get_addr.
11799 (___tls_get_addr_internal): Add attribute_hidden to decl.
11801 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11802 _dl_error_catch_tsd.
11803 * elf/rtld.c (startup_error_tsd): New function.
11804 (dl_main): Point _dl_error_catch_tsd at that.
11805 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11806 use new function pointer instead.
11807 * elf/dl-tsd.c: New file.
11808 * elf/Makefile (routines): Add it.
11810 2002-10-07 Roland McGrath <roland@redhat.com>
11812 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11813 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11814 take _dl_load_lock around calling __writev.
11816 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11817 (INLINE_SYSCALL): Use that.
11819 * sysdeps/generic/dl-sysdep.h: New file.
11820 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11821 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11822 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11823 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11824 access it directly.
11825 * elf/dl-minimal.c (__errno_location): Removed.
11826 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11827 Use GOTOFF access for errno.
11828 * sysdeps/unix/sysv/linux/i386/sysdep.h
11829 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11831 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11832 Use PC-relative access for errno.
11833 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11834 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11836 * include/tls.h: New file.
11837 (USE___THREAD): New macro.
11838 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11839 libc or libpthread.
11840 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11841 changed from [USE_TLS && HAVE___THREAD].
11842 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11843 * sysdeps/unix/i386/sysdep.S: Likewise.
11844 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11845 * include/errno.h: Likewise.
11846 * include/netdb.h: Likewise.
11847 * include/resolv.h: Likewise.
11849 * sysdeps/generic/errno.c: New file.
11850 * csu/Makefile (aux): New variable, list errno.
11851 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11852 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11853 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11854 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11855 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11856 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11857 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11858 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11859 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11860 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11861 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11862 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11863 * sysdeps/unix/alpha/sysdep.S: Likewise.
11864 * sysdeps/generic/start.c: Likewise.
11865 * sysdeps/unix/start.c: Likewise.
11866 * sysdeps/unix/arm/start.c: Likewise.
11867 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11868 * sysdeps/unix/sparc/start.c: Likewise.
11869 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11870 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11872 * manual/search.texi (Tree Search Function, Hash Search Function):
11873 Mention search.h clearly.
11875 2002-10-05 Roland McGrath <roland@redhat.com>
11877 * elf/dl-fxstat64.c: File removed.
11878 * elf/dl-xstat64.c: File removed.
11879 * elf/Makefile (rtld-routines): Remove them.
11880 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11881 Instead, use strong_alias instead of versioned_symbol in the
11882 !SHLIB_COMPAT case.
11883 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11884 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11886 * include/shlib-compat.h
11887 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11888 [! NOT_IN_libc] (IS_IN_libc): Define it.
11889 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11890 * elf/Makefile (CPPFLAGS-.os): Likewise.
11892 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11893 Return the status instead of calling exit.
11895 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11896 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11897 Remove superfluous rm command, whose @ plus make bugs hid
11898 all these commands from the make output.
11900 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11901 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11902 Use that file's contents instead of literal echo's for the prologue.
11903 * include/features.h: Include <gnu/stubs.h> unconditionally.
11904 * include/gnu/stubs.h: New file.
11906 2002-09-30 Roland McGrath <roland@redhat.com>
11908 * elf/rtld-Rules: New file.
11909 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11910 $(objpfx)rtld-libc.a): New targets.
11911 (generated): Add them.
11912 (reloc-link): Remove -o $@ from the variable.
11913 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11914 (distribute): Add rtld-Rules.
11915 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11916 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11917 (common-mostlyclean, common-clean): Clean up rtld-* files.
11918 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11920 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11922 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11923 If temp != NULL, copy dynamic entries which need relocation to temp
11924 array before relocating.
11925 (DL_RO_DYN_TEMP_CNT): Define.
11926 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11927 * elf/rtld.c (_dl_start): Likewise.
11928 (dl_main): Likewise. Add dyn_temp static variable.
11930 2002-10-11 Roland McGrath <roland@redhat.com>
11932 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11933 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11935 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11936 proper set of no-op insn prefixes.
11938 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11940 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11942 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11943 __pthread_kill_other_threads_np.
11945 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11947 2002-10-08 Roland McGrath <roland@redhat.com>
11949 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11950 just return &_nl_C_locobj instead of copying it.
11951 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11952 * locale/duplocale.c (__duplocale): Likewise.
11954 2002-10-07 Roland McGrath <roland@frob.com>
11956 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11957 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11958 * sysdeps/mach/configure: Regenerated.
11960 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11963 Add all necessary register outputs for syscall-clobbered registers.
11965 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11967 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11968 Itanium 2 (and Itanium).
11969 Fix unwind directives and make it fit in 80 columns.
11970 * sysdeps/ia64/memset.S: Likewise.
11971 * sysdeps/ia64/memcpy.S: Likewise.
11972 Move jump table to .rodata section.
11974 2002-10-03 Roland McGrath <roland@frob.com>
11976 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11979 2002-10-10 Andreas Jaeger <aj@suse.de>
11981 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11983 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11985 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11987 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11989 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11990 _dl_allocate_tls_init. Add rtld_hidden_proto.
11991 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11993 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11995 * version.h (VERSION): Bump to 2.3.1.
11997 * Make-dist: Add back one of the tar invocations removed before.
11999 * stdlib/Makefile (distribute): Add allocalim.h.
12001 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
12002 (__libc_tsd_address): Use correct variable name.
12003 Patch by Stefan Jones <stefan.jones@multigig.com>.
12005 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
12006 Reported by edwardsg@sgi.com [PR libc/4678].
12008 * Versions.def (libc): Add GLIBC_2.3.1.
12009 (libpthread): Add GLIBC_2.3.1.
12011 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
12012 and __sigtimedwait.
12013 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
12014 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
12016 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
12017 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
12019 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
12020 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
12021 and make old name an alias.
12022 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
12023 and make old name an alias.
12024 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
12027 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
12028 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
12030 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
12032 * sysdeps/posix/readv.c: Likewise
12033 * sysdeps/unix/sysv/aix/readv.c: Likewise.
12034 * sysdeps/unix/sysv/linux/readv.c: Likewise.
12035 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
12037 * sysdeps/posix/writev.c: Likewise
12038 * sysdeps/unix/sysv/aix/writev.c: Likewise.
12039 * sysdeps/unix/sysv/linux/writev.c: Likewise.
12041 * include/sys/wait.h: Declare __waitid.
12042 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
12043 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
12045 * sysdeps/posix/waitid.c: Likewise.
12046 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
12048 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
12050 2002-10-07 Jakub Jelinek <jakub@redhat.com>
12052 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
12054 (__MAX_ALLOCA_CUTOFF): Define.
12055 Include allocalim.h.
12056 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
12057 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
12058 host_buffer depending on __libc_use_alloca.
12059 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
12060 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
12061 net_buffer depending on __libc_use_alloca.
12062 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
12063 buf depending on __libc_use_alloca.
12064 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
12065 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
12066 instead of hardcoded constants.
12067 Pass proper size argument to alloca and compute end for wide char
12069 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
12070 instead of hardcoded constants.
12071 * string/strcoll.c (strcoll): Likewise.
12072 * string/strxfrm.c (strxfrm): Likewise.
12073 * sysdeps/posix/readv.c (__readv): Likewise.
12074 * sysdeps/posix/writev.c (__writev): Likewise.
12075 * sysdeps/generic/allocalim.h: New file.
12077 2002-10-08 Roland McGrath <roland@redhat.com>
12079 * configure.in (aux_missing warning): Change "too old" to
12080 "incompatible versions", since for autoconf it's "too new" right now.
12081 * configure: Regenerated.
12083 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
12084 one found doesn't work on our configure.in.
12085 * configure: Regenerated.
12086 * config.make.in (AUTOCONF): New substituted variable.
12087 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
12088 (autoconf-it): ... here, use that instead of defining conditionally.
12089 Use $(AUTOCONF) instead of literal autoconf.
12090 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
12091 with this condition.
12092 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
12094 2002-10-08 Ulrich Drepper <drepper@redhat.com>
12096 * Make-dist (dist): Cleanup a bit. We are not interested in the
12097 14 char filename limit anymore. Remove intermediate files and
12100 2002-10-05 Ulrich Drepper <drepper@redhat.com>
12102 * po/sk.po: Update from translation team.
12103 * po/tr.po: Likewise.
12104 * po/gl.po: Likewise.
12106 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12108 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
12110 2002-10-03 Ulrich Drepper <drepper@redhat.com>
12112 * version.h (RELEASE): Change to stable.
12114 2002-10-03 Jakub Jelinek <jakub@redhat.com>
12116 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
12117 __syscall_exit_group): New prototypes.
12119 2002-10-03 Ulrich Drepper <drepper@redhat.com>
12121 * glibc 2.3 released.
12124 See ChangeLog.13 for earlier changes.