1 2003-09-23 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
5 * sysdeps/unix/sysv/linux/makedev.c: New file.
6 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
7 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
8 (sysdep_routines): Add makedev.
9 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
10 major, minor, makedev.
12 2003-09-23 Ulrich Drepper <drepper@redhat.com>
14 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
15 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
17 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
18 for include Altivec support for PPC32. It was not compatible.
19 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
20 offsets for ucontext_t change.
21 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
22 for ucontext_t change. Add compatibility code.
23 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
24 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
25 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
26 Patch by Paul Mackerras <paulus@samba.org>.
28 2003-02-25 Randolph Chung <tausq@debian.org>
30 * sysdeps/hppa/Makefile: Include compat code in build.
31 * sysdeps/hppa/libgcc-compat.c: New file.
32 * sysdeps/hppa/Dist: Add libgcc-compat.c.
33 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
35 2003-09-23 Roland McGrath <roland@redhat.com>
37 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
38 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
39 Move GL(dl_make_stack_executable_hook) initialization up.
40 * elf/tst-execstack-prog.c: New file.
41 * elf/Makefile (tests-execstack-yes): Add it.
42 (LDFLAGS-tst-execstack-prog): New variable.
44 2003-09-23 Jakub Jelinek <jakub@redhat.com>
46 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
47 before calling _dl_start, using %rip relative access.
48 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
51 2003-09-23 Roland McGrath <roland@redhat.com>
53 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
54 calling _dl_start, using GOTOFF access.
56 * configure.in (libc_cv_z_execstack): New check.
57 * configure: Regenerated.
58 * config.make.in (have-z-execstack): New variable set by it.
59 * elf/tst-execstack.c: New file.
60 * elf/tst-execstack-mod.c: New file.
61 * elf/tst-execstack-needed.c: New file.
62 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
64 (tests, modules-names): Conditionally include them.
65 (distribute): Add tst-execstack-mod.c here.
66 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
67 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
68 ($(objpfx)tst-execstack-needed): New target.
69 (LDFLAGS-tst-execstack-needed): New variable.
71 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
72 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
73 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
74 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
75 Initialize _dl_make_stack_executable_hook.
76 * elf/dl-support.c: Define those new variables.
77 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
79 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
80 enable execute permission for the stack if necessary.
81 * sysdeps/generic/dl-execstack.c: New file.
82 * elf/Makefile (dl-routines): Add it.
83 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
84 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
86 2003-09-23 Ulrich Drepper <drepper@redhat.com>
88 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
90 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
92 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
93 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
96 2003-09-22 Ulrich Drepper <drepper@redhat.com>
98 * malloc/malloc.c: Include <stdint.h>.
100 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
102 * posix/regcomp.c (build_word_op): Rename like...
103 (build_charclass_op): ...this. Accept two extra parameters,
104 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
105 (peek_token): accept \s and \S as OP_SPACE and OP_NOTSPACE.
106 (parse_expression): replace build_word_op with
107 build_charclass_op, add new arguments, accept OP_SPACE
109 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
112 * posix/regcomp.c (peek_token): Don't look back for ( or |
113 to check whether to treat a caret as special. It fails
114 for the (extended) regex \(^.
115 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
116 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
118 * posix/regexec.c: Check out of bounds value before shifting.
120 * posix/regex_internal.h: Define __attribute for non-gcc.
122 2003-09-22 Jakub Jelinek <jakub@redhat.com>
124 * include/atomic.h (atomic_compare_and_exchange_val_rel,
125 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
128 * sysdeps/unix/opendir.c: Include string.h.
130 2003-09-22 Ulrich Drepper <drepper@redhat.com>
132 * timezone/zdump.c: Update from tzcode2003c.
133 * timezone/zic.c: Likewise.
134 * timezone/leapseconds: Update from tzdata2003c.
136 2003-09-19 Ulrich Drepper <drepper@redhat.com>
138 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
139 final build to ease quality control.
141 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
142 ld.so, don't include NULL buffer pointer handling.
144 2003-09-19 Jakub Jelinek <jakub@redhat.com>
146 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
148 2003-09-18 Jakub Jelinek <jakub@redhat.com>
150 * libio/memstream.c (open_memstream): Use _IO_init instead of
153 2003-09-17 Ulrich Drepper <drepper@redhat.com>
155 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
156 have to recognize octal and hexadecimal numbers as well. Simplify
157 function, signs are handled in strtol.
158 * posix/wordexp-test.c: Add tests for octal and hexadecimal
159 numbers in arithmetic expressions.
161 2003-09-17 Jakub Jelinek <jakub@redhat.com>
163 * elf/Makefile (distribute): Add tst-alignmod.c.
164 (tests): Add tst-align.
165 (modules-names): Add tst-alignmod.
166 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
167 $(stack-align-test-flags).
168 ($(objpfx)tst-align): Depend on libdl.
169 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
170 * elf/tst-align.c: New file.
171 * elf/tst-alignmod.c: New file.
172 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
173 * misc/tst-tsearch.c: Include tst-stack-align.h.
174 (stack_align_check): New array.
175 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
176 (main): Report error if stack was not enough aligned
177 in cmp_fn or walk_action.
178 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
179 * stdlib/tst-qsort.c: Include tst-stack-align.h.
180 (align_check): New var.
181 (compare): Use TEST_STACK_ALIGN () macro.
182 (main): Report error if stack was not enough aligned in compare.
183 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
184 unneeded -mpreferred-stack-boundary=4.
185 * sysdeps/x86_64/tst-stack-align.h: New file.
187 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
188 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
190 2003-09-17 Philip Blundell <philb@gnu.org>
192 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
194 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
196 * sysdeps/arm/sysdep.h (DO_RET): New.
198 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
199 required but not defined. Improve test of error code.
201 2003-09-17 Jakub Jelinek <jakub@redhat.com>
203 * sysdeps/i386/Makefile (stack-align-test-flags): Add
204 -malign-double -mpreferred-stack-boundary=4.
206 2003-09-17 Ulrich Drepper <drepper@redhat.com>
208 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
209 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
211 2003-09-15 Jakub Jelinek <jakub@redhat.com>
213 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
214 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
216 2003-09-17 Jakub Jelinek <jakub@redhat.com>
218 * Makeconfig (stack-align-test-flags): Set.
219 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
220 $(stack-align-test-flags).
221 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
222 (align_check): New var.
223 (comp): Use TEST_STACK_ALIGN macro.
224 (do_test): Fail if align_check != 1.
225 * sysdeps/generic/tst-stack-align.h: New file.
226 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
227 * sysdeps/i386/i686/tst-stack-align.h: New file.
229 2003-09-17 Ulrich Drepper <drepper@redhat.com>
231 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
232 stack which is aligned (mod 16).
234 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
235 Hans-Peter Nilsson <hp@axis.com>
237 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
238 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
240 2003-09-17 Jakub Jelinek <jakub@redhat.com>
242 * dirent/scandir.c: Include bits/libc-lock.h.
243 (struct scandir_cancel_struct): New type.
244 (cancel_handler): New function.
245 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
246 scandir_cancel_struct.
248 2003-09-16 Ulrich Drepper <drepper@redhat.com>
250 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
251 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
252 Add internal_statvfs.
253 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
254 instead of including "internal_statvfs.c".
255 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
256 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
257 Add code to avoid the stat calls on all the reported mount points
258 when we can determine mismatch in advance.
259 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
260 USBDEVFS_SUPER_MAGIC.
262 2003-09-16 Jakub Jelinek <jakub@redhat.com>
264 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
265 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
267 2003-09-16 Bruno Haible <bruno@clisp.org>
269 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
270 invoking msgfmt, not before.
272 2003-09-15 Jakub Jelinek <jakub@redhat.com>
274 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
275 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
277 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
278 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
279 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
280 * elf/dl-iteratephdr.c (cancel_handler): New function.
281 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
282 * elf/link.h (dl_iterate_phdr): Remove __THROW.
283 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
284 Add $(uses-callbacks).
285 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
286 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
287 $(exceptions) to $(uses-callbacks).
288 * Makeconfig (uses-callbacks): Set to $(exceptions).
289 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
291 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
294 2003-09-15 Andreas Schwab <schwab@suse.de>
296 * sysdeps/m68k/setjmp.c: Add hidden_def.
298 2003-09-14 Ulrich Drepper <drepper@redhat.com>
300 * libio/memstream.c (open_memstream): Don't allow wide char operations.
302 * dirent/dirent.h: Remove __THROW from scandir.
304 2003-09-14 Philip Blundell <philb@gnu.org>
306 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
309 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
311 * sysdeps/arm/memset.S: Rewrite.
313 2003-09-12 Jakub Jelinek <jakub@redhat.com>
315 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
316 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
317 __SLONGWORD_TYPE otherwise.
319 2003-09-14 Ulrich Drepper <drepper@redhat.com>
321 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
322 (CFLAGS-ftw64.c): Likewise.
324 2003-09-13 Ulrich Drepper <drepper@redhat.com>
326 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
327 (CFLAGS-nscd_getgr_r.c): Likewise.
328 (CFLAGS-nscd_gethst_r.c): Likewise.
330 2003-09-12 Ulrich Drepper <drepper@redhat.com>
332 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
335 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
336 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
337 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
338 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
339 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
340 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
342 * misc/Makefile (CFLAGS-err.c): Likewise.
343 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
344 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
345 CFLAGS-glob64.c): Likewise.
346 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
347 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
348 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
349 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
350 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
352 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
354 * libio/stdio.h: Remove __THROW from cuserid prototype.
356 * locale/loadarchive.c: Use only non-cancelable interfaces.
357 * resolv/herror.c (herror): Likewise.
359 * malloc/hooks.c: Before using IO stream mark stream so it uses
360 only non-cancelable interfaces.
361 * malloc/malloc.c: Likewise.
362 * posix/getopt.c: Likewise.
365 2003-09-11 Jakub Jelinek <jakub@redhat.com>
367 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
369 2003-09-12 Ulrich Drepper <drepper@redhat.com>
371 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
373 * misc/err.h: Remove __THROW from all prototypes.
375 * posix/getopt.h (__THROW): Define if not already defined. Add
376 __THROW to the getopt functions.
378 2003-09-11 Ulrich Drepper <drepper@redhat.com>
380 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
381 (CFLAGS-fts.c): Likewise.
382 * io/fcntl.h: Remove __THROW from lockf prototypes.
383 * io/fts.h: Remove most __THROW.
385 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
387 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
391 2003-09-11 Jakub Jelinek <jakub@redhat.com>
393 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
394 _IO_free_backup_area call.
396 2003-09-10 Chris Demetriou <cgd@broadcom.com>
398 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
400 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
401 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
402 Also, only assert off_t size is 4 for N32 and O32, and clean up
404 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
406 2003-09-10 Roland McGrath <roland@redhat.com>
408 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
409 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
410 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
411 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
412 Reported by Daniel Jacobowitz <drow@mvista.com>.
414 2003-09-10 Jakub Jelinek <jakub@redhat.com>
416 * string/Makefile (strop-tests): Add memccpy.
417 * string/test-memccpy.c: New test.
419 2003-09-09 Jakub Jelinek <jakub@redhat.com>
421 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
422 siginfo_t * argument before, change into struct ucontext *.
423 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
424 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
425 instead of structure.
426 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
429 2003-09-09 Ulrich Drepper <drepper@redhat.com>
431 * string/stratcliff.c (main): Check memccpy.
433 2003-04-11 Jes Sorensen <jes@wildopensource.com>
435 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
436 character is found during recovery, use correct register when
437 determining the position of the found character.
439 2003-04-01 Jes Sorensen <jes@wildopensource.com>
441 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
442 avoid segfaults when reading from unmapped pages. For aligned
443 reload and continue, for misaligned, roll back and use byte copy.
444 Save ar.ec on entry and restore on exit.
446 2003-09-09 Chris Demetriou <cgd@broadcom.com>
448 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
450 2003-09-08 Chris Demetriou <cgd@broadcom.com>
452 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
454 * sysdeps/mips/mips64/n64/Implies: Likewise.
456 2003-09-08 Roland McGrath <roland@frob.com>
458 * sysdeps/unix/sysv/linux/speed.c
459 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
460 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
461 * sysdeps/unix/sysv/linux/bits/termios.h
462 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
463 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
464 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
466 2003-09-08 Ulrich Drepper <drepper@redhat.com>
468 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
469 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
471 2003-09-08 Jakub Jelinek <jakub@redhat.com>
473 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
474 (__u_quad_t): Make unsigned long int if 64-bit.
475 (__SQUAD_TYPE): Make long int if 64-bit.
476 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
477 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
479 2003-09-08 Ulrich Drepper <drepper@redhat.com>
481 * Makefile (tests): Run check-c++-types.sh if possible.
482 * scripts/check-c++-types.h: New file.
483 * scripts/data/c++-types-i386-linux-gnu.data: New file.
485 2003-09-08 Andreas Jaeger <aj@suse.de>
487 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
488 Use struct sigcontext.
490 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
491 Use struct sigcontext.
493 (GET_FRAME): Likewise.
494 (GET_STACK): Likewise.
496 2003-09-08 Wolfram Gloger <wg@malloc.de>
498 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
499 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
500 (mALLOPt): Avoid requirement of C99.
502 2003-09-08 Ulrich Drepper <drepper@redhat.com>
504 * libio/bug-ftell.c: Include <sys/types.h>.
505 (main): Mark cp as const.
507 2003-09-07 Jakub Jelinek <jakub@redhat.com>
509 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
510 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
512 2003-09-05 Roland McGrath <roland@redhat.com>
514 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
516 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
517 (cfsetispeed): Set c_ispeed field.
518 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
519 to match corresponding speed.c code.
521 2003-09-06 Ulrich Drepper <drepper@redhat.com>
523 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
524 narrow character buffer.
525 * libio/Makefile: Add rules to build and run bug-ftell.
526 * libio/bug-ftell.c: New file.
528 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
530 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
531 matching the decimal point and possibly leading the thousands
532 separator. This caused the recognition of thousands separators to
535 2003-09-05 Ulrich Drepper <drepper@redhat.com>
537 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
538 write mode from read in backup buffer.
539 * libio/Makefile (tests): Add bug-ungetc2.
540 * libio/bug-ungetc2.c: New file.
542 2003-09-05 Roland McGrath <roland@redhat.com>
544 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
546 2003-09-04 Roland McGrath <roland@frob.com>
548 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
549 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
551 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
553 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
556 2003-09-05 Andreas Jaeger <aj@suse.de>
558 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
559 to make it conforming C.
560 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
562 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
563 prototype to use variable argument lists and get the possible one
565 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
566 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
568 2003-09-04 Ulrich Drepper <drepper@redhat.com>
570 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
572 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
573 Report correct value for vxfs.
574 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
576 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
579 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
580 over the place. It would be allowed to have these functions as
581 cancellation points but the cleanup would be ugly and a lot of
584 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
585 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
587 * include/fcntl.h (__fcntl_nocancel): Declare.
588 * sysdeps/unix/sysv/linux/fcntl.c: New file.
589 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
590 cancellation if absolutely needed.
591 (__fcntl_nocancel): Define.
593 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
594 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
596 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
599 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
602 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
603 unnecessary errno handling.
605 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
606 Initialize it in all cases. Change it to be a bit more like the
609 2003-09-04 Jakub Jelinek <jakub@redhat.com>
611 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
613 (_IO_file_open): Likewise. Use close_not_cancel.
615 2003-09-04 Ulrich Drepper <drepper@redhat.com>
617 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
618 * libio/fileops.c [_LIBC]: Remove close macro.
619 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
620 (_IO_new_file_open): Recognize 'c' flag in mode string.
621 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
622 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
624 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
625 * inet/rcmd.c: Likewise.
626 * inet/ruserpass.c: Likewise.
627 * intl/localealias.c: Likewise.
628 * malloc/mtrace.c: Likewise.
629 * misc/getpass.c: Likewise.
630 * misc/getttyent.c: Likewise.
631 * misc/mntent_r.c: Likewise.
632 * misc/getusershell.c: Likewise.
633 * nss/nsswitch.c: Likewise.
634 * resolv/res_hconf.c: Likewise.
635 * resolv/res_init.c: Likewise.
636 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
637 * time/getdate.c: Likewise.
638 * time/tzfile.c: Likewise.
639 * misc/fstab.h: Undo last change.
640 * misc/mntent.h: Likewise.
641 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
642 CFLAGS-fstab.c definition.
644 2003-09-04 Jakub Jelinek <jakub@redhat.com>
646 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
648 2003-09-03 Ulrich Drepper <drepper@redhat.com>
650 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
651 returning ERANGE if this wasn't intended.
653 2003-09-03 Jakub Jelinek <jakub@redhat.com>
655 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
656 function-like macros.
658 2003-09-03 Ulrich Drepper <drepper@redhat.com>
660 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
661 (CFLAGS-getgrent.c): Likewise.
662 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
663 (CFLAGS-getpwent.c): Likewise.
664 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
665 (CFLAGS-getspent.c): Likewise.
667 * inet/Makefile: Add -fexceptions to CFLAGS for the various
668 getXXent and getXXbyYY functions.
670 * locale/loadlocale.c: Use not-cancelable variants of open, close,
673 2003-09-02 Jakub Jelinek <jakub@redhat.com>
675 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
676 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
678 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
680 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
681 unused __syscall_ stubs.
682 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
684 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
685 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
686 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
687 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
688 unused __syscall_ stubs.
689 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
691 (__syscall_*): Remove unused __syscall_ stubs.
692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
693 (__syscall_*): Likewise.
694 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
696 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
697 Remove unused __syscall_ stubs.
698 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
699 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
700 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
701 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
702 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
703 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
704 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
705 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
706 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
707 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
708 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
709 __syscall_* prototypes.
710 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
711 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
712 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
713 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
714 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
715 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
716 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
717 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
718 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
719 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
720 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
721 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
722 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
723 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
724 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
725 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
726 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
727 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
728 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
729 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
730 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
731 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
732 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
733 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
734 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
735 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
736 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
737 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
738 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
739 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
740 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
741 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
742 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
743 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
744 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
745 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
746 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
747 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
748 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
749 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
750 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
751 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
752 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
753 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
754 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
755 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
756 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
757 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
758 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
759 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
760 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
761 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
762 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
763 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
764 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
765 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
766 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
767 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
768 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
769 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
770 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
771 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
772 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
773 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
774 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
775 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
776 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
777 * sysdeps/unix/sysv/linux/execve.c: Likewise.
778 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
779 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
780 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
781 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
782 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
783 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
784 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
785 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
786 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
787 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
788 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
789 * sysdeps/unix/sysv/linux/readv.c: Likewise.
790 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
791 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
792 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
793 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
794 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
795 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
796 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
797 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
798 * sysdeps/unix/sysv/linux/poll.c: Likewise.
799 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
800 * sysdeps/unix/sysv/linux/writev.c: Likewise.
801 * sysdeps/unix/sysv/linux/pread.c: Likewise.
802 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
803 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
804 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
805 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
806 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
807 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
808 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
809 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
810 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
811 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
813 2003-09-02 Jakub Jelinek <jakub@redhat.com>
815 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
816 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
817 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
819 2003-09-02 Ulrich Drepper <drepper@redhat.com>
821 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
823 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
824 open, close, and read.
826 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
829 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
831 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
832 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
833 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
835 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
837 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
838 (CFLAGS-fstatfs.c): Likewise.
839 (CFLAGS-statvfs.c): Likewise.
840 (CFLAGS-fstatvfs.c): Likewise.
842 2003-09-01 Ulrich Drepper <drepper@redhat.com>
844 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
845 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
847 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
848 (CFLAGS-pathconf.c): Likewise.
849 (CFLAGS-fpathconf.c): Likewise.
851 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
852 * misc/fstab.h: Remove all __THROW.
853 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
854 (CFLAGS-mntent_r.c): Likewise.
855 * misc/mntent.h: Remove most __THROW.
857 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
858 (CFLAGS-mkstemp64.c): Likewise.
860 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
861 around call to exec_comm.
862 * posix/wordexp.h: Remove __THROW from wordexp.
863 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
865 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
866 not-cancelable functions.
868 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
869 (CFLAGS-iofopen.c): Likewise.
870 (CFLAGS-iofopen64.c): Likewise.
872 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
874 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
875 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
877 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
878 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
880 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
882 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
883 NSS_STATUS_SUCCESS if entry was found.
884 (getspent_next_file): Store user in blacklist after entry
885 was found, use innetgr.
887 2003-09-01 Jakub Jelinek <jakub@redhat.com>
889 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
892 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
893 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
896 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
898 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
899 posix_fallocate64 at GLIBC_2.3.3.
900 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
901 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
903 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
905 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
908 2003-08-31 Ulrich Drepper <drepper@redhat.com>
910 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
911 Code by Richard Henderson.
913 2003-08-31 Philip Blundell <philb@gnu.org>
915 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
916 posix_fallocate64 at GLIBC_2.3.3.
918 2003-08-31 Ulrich Drepper <drepper@redhat.com>
920 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
921 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
923 2003-08-30 Jakub Jelinek <jakub@redhat.com>
925 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
926 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
927 included multiple times.
928 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
929 ptid, tls, ctid arguments to the kernel.
930 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
931 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
932 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
933 (__libc_sigaction): Use INLINE_SYSCALL instead of
934 __syscall_rt_sigaction.
935 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
936 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
937 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
938 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
939 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
940 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
941 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
942 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
943 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
944 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
945 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
946 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
947 (__CLONE_SYSCALL_STRING): Define.
948 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
950 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
951 (__CLONE_SYSCALL_STRING): Define.
952 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
954 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
956 2003-08-30 Ulrich Drepper <drepper@redhat.com>
958 * sunrpc/rpc/clnt.h: Remove a few __THROW.
959 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
960 (CFLAGS-key_call.c): Likewise.
961 (CFLAGS-pmap_rmt.c): Likewise.
962 (CFLAGS-clnt_perr.c): Likewise.
963 * sunrpc/rpc/auth.h: Remove serveral __THROW.
965 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
966 (CFLAGS-gethstbynm_r.c): Likewise.
967 (CFLAGS-gethstbynm2_r.c): Likewise.
968 (CFLAGS-rcmd.c): Likewise.
969 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
971 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
972 (CFLAGS-argp-fmtstream.c): Likewise.
973 * argp/argp.h: Remove a number of __THROW.
975 * misc/sys/syslog.h (vsyslog): Remove __THROW.
977 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
978 * misc/getpass.c (getpass): Add cleanup handler to ensure the
979 stream is closed even if the thread is canceled.
980 (call_fclose): New function.
981 * posix/unistd.h: Remove __THROW from getpass prototype.
983 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
985 * signal/signal.h (psignal): Remove __THROW.
986 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
988 * misc/Makefile (CFLAGS-error.c): Define.
989 * misc/error.c (error): Disable cancellation handling around the
990 actual output. The message should in any case be printed.
991 (error_at_line): Likewise.
993 * misc/error.h: Protect parameter names with leading __.
995 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
997 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
999 2003-08-29 Jakub Jelinek <jakub@redhat.com>
1001 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
1004 2003-08-29 Ulrich Drepper <drepper@redhat.com>
1006 * libio/stdio.h: Remove a few more __THROW.
1008 2003-08-29 Jakub Jelinek <jakub@redhat.com>
1010 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
1011 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
1012 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
1013 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
1014 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
1015 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
1016 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
1017 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
1018 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
1019 putwchar.c and rewind.c with exceptions.
1020 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
1021 _IO_release_lock): Define.
1022 * libio/fileops.c (_IO_new_file_underflow): Use it.
1023 * libio/fputc.c (fputc): Likewise.
1024 * libio/fputwc.c (fputwc): Likewise.
1025 * libio/freopen64.c (freopen64):
1026 * libio/freopen.c (freopen): Likewise.
1027 * libio/fseek.c (fseek): Likewise.
1028 * libio/fseeko64.c (fseeko64): Likewise.
1029 * libio/fseeko.c (fseeko): Likewise.
1030 * libio/ftello64.c (ftello64): Likewise.
1031 * libio/ftello.c (ftello): Likewise.
1032 * libio/fwide.c (fwide): Likewise.
1033 * libio/getc.c (_IO_getc): Likewise.
1034 * libio/getchar.c (getchar): Likewise.
1035 * libio/getwc.c (_IO_getwc): Likewise.
1036 * libio/getwchar.c (getwchar): Likewise.
1037 * libio/iofclose.c (_IO_new_fclose):
1038 * libio/iofflush.c (_IO_fflush): Likewise.
1039 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
1040 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1041 * libio/iofgets.c (_IO_fgets): Likewise.
1042 * libio/iofgetws.c (fgetws): Likewise.
1043 * libio/iofputs.c (_IO_fputs): Likewise.
1044 * libio/iofputws.c (fputws): Likewise.
1045 * libio/iofread.c (_IO_fread): Likewise.
1046 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
1047 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
1048 * libio/ioftell.c (_IO_ftell): Likewise.
1049 * libio/iofwrite.c (_IO_fwrite): Likewise.
1050 * libio/iogetdelim.c (_IO_getdelim): Likewise.
1051 * libio/iogets.c (_IO_gets): Likewise.
1052 * libio/ioputs.c (_IO_puts): Likewise.
1053 * libio/ioseekoff.c (_IO_seekoff): Likewise.
1054 * libio/ioseekpos.c (_IO_seekpos): Likewise.
1055 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1056 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
1057 * libio/ioungetc.c (_IO_ungetc): Likewise.
1058 * libio/ioungetwc.c (ungetwc): Likewise.
1059 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1060 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
1061 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
1062 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
1063 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
1064 * libio/peekc.c (_IO_peekc_locked): Likewise.
1065 * libio/putc.c (_IO_putc): Likewise.
1066 * libio/putchar.c (putchar): Likewise.
1067 * libio/putwc.c (putwc): Likewise.
1068 * libio/putwchar.c (putwchar): Likewise.
1069 * libio/rewind.c (rewind): Likewise.
1070 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
1072 2003-08-29 Ulrich Drepper <drepper@redhat.com>
1074 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
1075 available in XPG4.2.
1077 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
1078 Jakub Jelinek <jakub@redhat.com>
1080 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
1081 big endian arches. Don't read beyond end of fds_bits array.
1083 2003-04-27 Bruno Haible <bruno@clisp.org>
1085 * manual/message.texi (Advanced gettext functions): Add information
1086 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
1087 Add section about Lithuanian, reported by Ricardas Cepas
1088 <rch@richard.eu.org>.
1089 Add information about Croatian.
1090 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
1091 Remove remark about continuation lines that is not true for PO files.
1092 Fix formula for Slovenian, reported by Roman Maurer
1093 <roman.maurer@amis.net>.
1095 2003-08-27 Ulrich Drepper <drepper@redhat.com>
1097 * math/math_private.h: Declare __copysignf.
1098 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
1101 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
1102 __signbit, and __signbitl inline functions.
1104 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
1105 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
1107 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
1108 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
1110 2003-08-27 Jakub Jelinek <jakub@redhat.com>
1112 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
1114 2003-08-27 Ulrich Drepper <drepper@redhat.com>
1116 * include/stdio.h: Add declarations for __builtin_fwrite and
1117 __builtin_fwrite_unlocked.
1119 2003-08-27 Jakub Jelinek <jakub@redhat.com>
1121 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
1122 fits into allocation. Add padding on 32-bit arches so that
1123 dirp->data is enough aligned for struct dirent64.
1124 Avoid clearing of the buffer, just clear DIR structure.
1126 2003-08-26 Ulrich Drepper <drepper@redhat.com>
1128 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
1129 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
1131 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
1133 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
1135 2003-08-26 Jakub Jelinek <jakub@redhat.com>
1137 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
1138 to match format string.
1139 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
1141 (__new_semctl): Shut up warning.
1142 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
1143 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
1145 2003-08-26 Jakub Jelinek <jakub@redhat.com>
1147 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
1148 link file use the real file name, not the resolved name we got by
1149 following the symlinks.
1151 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1153 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
1154 if the object size is large enough.
1156 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1158 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1159 if it won't point to itself unless it is .so symlink for the linker.
1161 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1163 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
1164 use _mode if _IO_fwide_maybe_incompatible.
1165 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
1166 the compatibility test.
1168 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1170 * elf/cache.c (save_cache): Don't write beyond end of file_entries
1172 Duplicate last old cache entry if the count would be odd.
1174 2003-08-25 Andreas Jaeger <aj@suse.de>
1176 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
1177 __LONG_LONG_PAIR to long.
1179 2003-08-25 Philip Blundell <philb@gnu.org>
1181 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
1182 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
1184 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
1186 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
1187 and use __libc_cleanup_region_end instead.
1189 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1191 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
1193 2003-08-22 Ulrich Drepper <drepper@redhat.com>
1195 * io/fcntl.h (posix_fallocate): Change type of third parameter to
1197 (posix_fallocate64): Change type of third parameter to off64_t.
1198 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
1199 * sysdeps/posix/posix_fallocate.c: Likewise.
1200 * sysdeps/generic/posix_fallocate64.c: Likewise.
1201 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
1202 code for 32-bit platforms.
1203 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
1205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
1206 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1207 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1209 2003-08-19 Ulrich Drepper <drepper@redhat.com>
1211 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
1212 the type, not to name.
1214 * stdio-common/test-vfprintf.c (main): Don't write temporary file
1215 into source directory.
1217 * malloc/malloc.c (_int_free): Add cheap test for some invalid
1220 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
1223 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1225 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
1228 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
1230 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
1231 (elf_machine_lazy_rel): Likewise.
1233 2003-08-18 Art Haas <ahaas@airmail.net>
1235 * malloc/malloc.h: Remove unneeded ';' where closing the C++
1238 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1240 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
1241 loading big binaries where @gprel(sym) cannot be handled in 'add'
1242 but instead has to be used with 'movl'.
1244 2003-08-17 Juergen Kreileder <jk@blackdown.de>
1245 Andreas Jaeger <aj@suse.de>
1247 * sysdeps/x86_64/bits/byteswap.h: New file.
1249 2003-08-17 Andreas Jaeger <aj@suse.de>
1251 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
1253 2003-08-16 Jakub Jelinek <jakub@redhat.com>
1255 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
1256 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1257 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
1258 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1259 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
1260 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1261 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
1262 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1263 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
1264 ret_ERRVAL): Define.
1265 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
1266 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1267 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
1268 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1269 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
1271 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
1272 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1273 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
1275 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
1276 posix_fadvise64_64): Remove.
1277 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
1279 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1282 (posix_fadvise64): Likewise.
1283 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1284 (posix_fadvise64): Likewise.
1285 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1286 (posix_fadvise64): Likewise.
1287 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1289 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
1290 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
1291 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
1292 (__posix_fadvise64_l32): New function.
1293 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
1294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
1295 posix_fadvise64@@GLIBC_2.3.3.
1296 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1297 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1298 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
1300 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
1302 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1303 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
1305 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1307 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
1308 (elf_machine_matches_host): Remove weak extern stuff.
1309 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
1310 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
1311 stuff. Use GL(dl_hwcap) unconditionally.
1313 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1315 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
1316 __libc_start_main branch.
1318 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
1319 Andreas Jaeger <aj@suse.de>
1321 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
1322 instead of setting errno.
1323 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1325 2003-08-16 Andreas Jaeger <aj@suse.de>
1327 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
1328 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1330 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1332 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1334 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1335 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1336 description indicating the error value is returned, not -1.
1337 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1338 __ASSUME_FADVISE64_64_SYSCALL.
1339 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1340 posix_madvise in one file. Have posix_madvise defined with error
1342 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1344 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1345 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1346 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1347 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1348 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1349 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1352 * posix/Makefile (routines): Add posix_madvise.
1353 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1354 * sysdeps/generic/posix_madvise.c: New file.
1355 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1356 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1357 Add posix_fadvise64_64.
1359 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1361 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1362 3.0, not for !gcc or gcc < 3.0.
1364 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1366 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1367 Address passed to test_in_mod1 and test_in_mod2 without casting.
1368 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1369 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1370 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1371 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1373 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1375 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1376 Change quotes before using [].
1378 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1380 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1382 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1383 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1384 argument. Select one of 64 locks from address bits.
1385 (atomic_compare_and_exchange_val_acq,
1386 atomic_compare_and_exchange_bool_acq): Pass memory address to
1387 __sparc32_atomic_do_{,un}lock.
1389 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1391 * assert/assert.h (assert): Use !! in front of expression to allow
1394 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1395 Changed conversion of JIS X 0201 from using a table to calculating.
1396 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1397 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1399 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1400 * iconvdata/CP932.irreversible: New file.
1401 * iconvdata/EUC-JP-MS.irreversible: New file.
1402 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1404 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1406 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1408 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1409 text processing tools.
1411 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1412 element unless BROKEN_THREAD_SIGNALS is defined.
1413 (struct requestlist): Likewise.
1414 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1415 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1416 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1417 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1418 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1419 Pass current PID to __aio_sigqueue.
1420 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1421 call. Don't initialize caller_pid field of waitlist element.
1423 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1425 * libio/libioP.h (_IO_vtable_offset): Define.
1426 * libio/freopen.c (freopen): Use it.
1427 * libio/ioputs.c (_IO_puts): Likewise.
1428 * libio/freopen64.c (freopen64): Likewise.
1429 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1431 * libio/iofclose.c (_IO_new_fclose): Likewise.
1432 * libio/iofputs.c (_IO_fputs): Likewise.
1433 * libio/ioftell.c (_IO_ftell): Likewise.
1434 * libio/iofwrite.c (_IO_fwrite): Likewise.
1435 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1436 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1437 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1438 * stdio-common/vfscanf.c (ORIENT): Likewise.
1440 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1442 * assert/assert.h: Use __builtin_expect in assert and
1443 assert_perror definitions if possible.
1445 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1447 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1448 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1449 * elf/rtld.c (rtld_lock_default_lock_recursive,
1450 rtld_lock_default_unlock_recursive): New functions.
1451 (dl_main): Initialize _dl_rtld_lock_recursive and
1452 _dl_rtld_unlock_recursive.
1454 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1456 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1457 config_file directories instead of prepending.
1459 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1461 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1462 __ASSUME_CLONE_STOPPED.
1464 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1466 * sysdeps/generic/bits/libc-lock.h
1467 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1469 2003-08-01 Roland McGrath <roland@frob.com>
1471 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1473 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1475 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1476 instead of __SWORD_TYPE.
1477 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1478 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1479 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1481 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1483 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1485 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1487 * dlfcn/dlerror.c (once): New.
1488 (dlerror): Call __libc_once.
1489 (_dlerror_run): Remove once.
1491 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1492 Sync with 2.5.7 and 2.5.73 kernel changes.
1494 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1495 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1497 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1498 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1499 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1500 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1501 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1502 difference argument.
1503 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1505 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1506 %d format and cast expected value to int.
1507 * sysdeps/generic/libc-start.c (STATIC): Add
1508 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1509 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1510 to ieee_float_shape_type.
1511 (__sqrt): Avoid type punning.
1512 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1513 to ieee_float_shape_type.
1514 (__sqrtf): Avoid type punning.
1515 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1516 refsym if in dl-conflict.c.
1517 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1518 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1519 (__new_semctl): Shut up warning.
1520 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1521 (__new_semctl): Shut up warning.
1522 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1523 Change old into union of __old_shmid_ds and __old_shminfo structs.
1525 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1527 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1528 modtime computation.
1529 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1530 * sysdeps/posix/utimes.c (__utimes): Likewise.
1532 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1534 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1535 call dl_signal_error directly. If already relocated, call
1536 GL(dl_init_static_tls) directly, otherwise queue it for later.
1537 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1538 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1539 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1540 for all static TLS initializations delayed in _dl_allocate_static_tls.
1541 * elf/dl-support.c (_dl_init_static_tls): New variable.
1542 * include/link.h (struct link_map): Add l_need_tls_init.
1543 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1544 (_dl_nothread_init_static_tls): New prototype.
1545 (_dl_allocate_static_tls): Adjust prototype.
1547 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1549 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1551 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1552 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1553 reloc_addr is aligned.
1554 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1555 elf_machine_rela_relative): Adjust.
1556 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1557 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1558 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1559 elf_machine_rela_relative): Adjust.
1560 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1561 elf_machine_rela_relative): Adjust.
1562 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1563 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1564 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1565 elf_machine_rela_relative): Adjust.
1566 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1567 elf_machine_rela_relative): Adjust.
1568 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1569 elf_machine_rela_relative): Adjust.
1570 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1571 elf_machine_rela_relative): Adjust.
1572 * sysdeps/powerpc/powerpc64/dl-machine.h
1573 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1574 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1575 elf_machine_rela_relative): Adjust.
1576 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1577 elf_machine_rela_relative): Adjust.
1578 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1579 elf_machine_rela_relative): Adjust.
1580 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1581 elf_machine_rela_relative): Adjust.
1582 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1583 elf_machine_rela_relative): Adjust.
1584 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1585 elf_machine_rela_relative): Adjust.
1587 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1589 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1590 alignment of TCB used before the last change so that it matches
1591 ld's output for IE code.
1593 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1595 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1596 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1597 break strict-aliasing rules" warnings.
1599 2003-07-29 Roland McGrath <roland@redhat.com>
1601 * elf/Makefile: Revert accidental changes in last commit.
1602 * elf/dl-support.c: Likewise.
1604 * rt/tst-timer2.c: New file.
1605 * rt/Makefile (tests): Add it.
1607 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1609 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1611 2003-07-29 Roland McGrath <roland@redhat.com>
1613 * elf/Makefile (tests) [$(build-shared) = yes]:
1614 Depend on $(test-modules).
1615 * dlfcn/Makefile: Likewise.
1617 2003-07-28 Roland McGrath <roland@redhat.com>
1619 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1620 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1622 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1623 * elf/tst-tlsmod14a.c: Likewise.
1625 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1626 before <linux/sysctl.h>.
1628 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1630 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1631 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1632 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1633 * sysdeps/unix/syscalls.list: umask syscall never fails.
1635 2003-07-27 Andreas Jaeger <aj@suse.de>
1637 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1639 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1641 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1642 Include bits/a.out.h.
1643 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1645 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1646 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1647 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1648 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1649 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1650 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1651 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1652 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1654 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1656 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1657 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1658 aiocbp->aio_fildes does not match fildes.
1660 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1662 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1665 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1666 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1667 Fix calculation of offsets to take misalignment of first byte in
1669 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1670 l_tls_firstbyte_offset field.
1671 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1672 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1673 Take l_tls_firstbyte_offset information into account.
1674 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1675 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1676 * elf/Makefile: Add rules to build and run tst-tls14.
1677 * elf/tst-tls14.c: New file.
1678 * elf/tst-tlsmod14a.c: New file.
1679 * elf/tst-tlsmod14b.c: New file.
1681 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1683 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1684 (lio_listio): Use it.
1685 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1686 after few defines to avoid duplication.
1688 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1690 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1691 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1693 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1694 Add libc_hidden_def.
1695 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1696 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1697 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1698 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1699 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1700 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1701 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1703 * sysdeps/generic/unwind.inc: Removed.
1705 * include/resolv.h (__resp): Declare. Define to __libc_resp
1707 (_res): If USE___THREAD, define to (*__resp).
1708 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1709 even if USE___THREAD.
1710 (__resp): New __thread variable.
1711 (__libc_resp): New alias.
1712 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1713 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1714 * sysdeps/generic/res-state.c (__res_state): Return __resp
1717 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1719 * elf/dl-support.c (_dl_hwcap): New variable.
1720 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1722 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1723 and <dl-procinfo.h>.
1724 (__feclearexcept): Clear MXCSR if needed.
1725 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1727 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1728 that newer hardware needs more than these macros.
1730 * sysdeps/i386/setfpucw.c: New file.
1732 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1734 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1735 * elf/ldconfig.c: Include dl-procinfo.c.
1736 (PROCINFO_CLASS): Define.
1737 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1738 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1739 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1740 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1741 Define if not yet defined. Use it instead of EXTERN. Undefine
1742 at the end of the file.
1743 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1745 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1746 (PROCINFO_CLASS): Likewise.
1747 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1748 (PROCINFO_CLASS): Likewise.
1750 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1752 * elf/ldconfig.c (main): Issue a fatal error if relative path
1753 is used to build cache.
1755 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1757 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1759 2003-07-21 Art Haas <ahaas@airmail.net>
1761 * manual/charset.texi (Converting a Character): Fix example code so a
1762 valid pointer is returned.
1764 2003-07-22 Andreas Jaeger <aj@suse.de>
1766 * elf/readlib.c (process_file): Check that file is a shared
1769 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1770 will not optimize it away.
1771 (__DTOR_END__): Likewise.
1772 (__CTOR_END__): Likewise.
1774 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1775 that gcc will not optimize it away.
1776 (link_warning): Likewise.
1778 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1780 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1781 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1782 * wcsmbs/tst-wcpncpy.c: New file.
1784 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1786 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1788 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1789 stmxcsr and ldmxcsr.
1791 * Makerules (build-module-helper): Add -z defs unless explicitly said
1793 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1794 which has undefined symbols.
1795 * elf/Makefile: Likewise.
1797 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1798 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1799 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1800 * sysdeps/i386/fpu/fesetround.c: Likewise.
1801 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1803 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1805 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1806 if it won't point to itself.
1808 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1810 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1812 2003-07-20 Andreas Jaeger <aj@suse.de>
1814 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1815 STANDARD_TO_LOOP_ERR_HANDLER.
1816 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1818 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1820 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1822 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1824 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1825 Andreas Jaeger <aj@suse.de>
1827 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1828 256K, remove unneeded declaration of __getpagesize.
1830 2003-07-16 Andreas Schwab <schwab@suse.de>
1832 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1834 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1836 * io/test-utime.c (main): Make test yet more robust.
1838 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1840 More cancellation handling fixups.
1841 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1842 * sysdeps/generic/not-cancel.h: Likewise.
1843 * catgets/open_catalog.c: Use not-cancelable syscalls.
1844 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1845 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1846 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1847 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1848 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1849 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1850 * libio/iopopen.c: Use no-cancelable syscalls.
1851 * libio/stdio.h: Mark popen and pclose with __THROW again.
1852 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1853 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1854 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1855 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1856 CFLAGS-tempname.c): Add -fexceptions.
1857 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1858 * string/string.h: Mark strerror and strerror_r with _THROW again.
1859 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1860 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1861 #ifs since we now need all the code compiled.
1862 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1863 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1864 * sysdeps/unix/opendir.c: Likewise.
1866 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1867 Add rule for EUC-JP-MS dependency.
1868 * iconvdata/cp932.c: New file.
1869 * iconvdata/eucjp-ms.c: New file.
1870 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1871 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1873 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1878 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1880 * sysdeps/unix/sysv/linux/kernel-features.h
1881 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1884 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1886 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1888 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1889 __ASSUME_TGKILL for Alpha appropriately.
1891 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1893 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1894 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1896 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1899 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1900 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1902 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1903 second parameter == NULL.
1904 * sysdeps/unix/sysv/linux/utimes.c: New file.
1906 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1908 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1909 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1912 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1914 * time/sys/time.h: Namespace cleanup.
1915 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1916 __ASSUME_UTIMES for the architectures which always had the syscall.
1917 * sysdeps/unix/sysv/linux/futimes.c: New file.
1919 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1921 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1922 register across CENABLE and CDISABLE.
1924 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1926 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1927 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1928 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1929 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1930 int before assigning to max to avoid warnings.
1932 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1936 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1937 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1939 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1941 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1942 .data.rel.ro.local to "aw".
1944 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1946 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1947 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1948 (PIC-ccflag): Define.
1950 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1952 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1954 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1956 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1958 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1959 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1961 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1963 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1964 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1966 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1967 compilation with HAVE_AUX_SECURE defined.
1969 2003-07-05 Richard Henderson <rth@redhat.com>
1971 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1973 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1975 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1977 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1979 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1982 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1984 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1986 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1988 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1990 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1991 decl and use with #ifdef NEED_DL_SYSINFO.
1993 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1995 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1996 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1997 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1998 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1999 vsyscall DSO was added.
2001 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
2002 depending on selected standard.
2003 (NGROUPS_MAX): Define to 8 if not defined.
2005 2003-07-02 Andreas Jaeger <aj@suse.de>
2007 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
2009 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
2011 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
2012 * malloc/thread-m.h: Include <atomic.h>.
2013 (atomic_full_barrier): Provide default.
2014 (atomic_read_barrier): Likewise.
2015 (atomic_write_barrier): Likewise.
2016 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
2018 2003-06-30 Ulrich Drepper <drepper@redhat.com>
2020 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
2022 2003-06-30 Richard Henderson <rth@redhat.com>
2024 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
2025 Invert the sense of the return value.
2026 (__arch_exchange_16_int): Fix paste-o.
2027 (__arch_exchange_{32,64}_int): Fix think-o.
2029 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
2031 2003-06-30 Richard Henderson <rth@redhat.com>
2033 * include/sys/resource.h (__getrusage): Mark hidden.
2034 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
2035 * include/sys/wait.h (__wait4): Likewise.
2037 2003-06-17 Guido Guenther <agx@sigxcpu.org>
2039 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
2041 (xstat_conv): Rename to __xstat_conv and remove static inline.
2042 (xstat64_conv): Likewise.
2044 2003-06-29 Ulrich Drepper <drepper@redhat.com>
2046 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
2047 values which cannot be handled in one nanosleep call.
2049 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
2051 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
2052 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
2054 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
2056 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2058 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
2061 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
2063 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
2064 Conditionalize function definitions that use struct kernel_stat.
2065 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
2066 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
2067 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
2069 2003-06-28 Ulrich Drepper <drepper@redhat.com>
2071 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
2074 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
2076 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
2077 (getgrent_next_file): Don't store group name to early in blacklist.
2079 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
2080 and use memcpy instead of strcpy.
2082 2003-06-28 Ulrich Drepper <drepper@redhat.com>
2084 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
2086 * nis/nss_compat/compat-initgroups.c: Likewise.
2087 * nis/nss_compat/compat-pwd.c: Likewise.
2088 * nis/nss_compat/compat-spwd.c: Likewise.
2090 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
2092 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
2093 functions, dlopen corresponding NSS module instead.
2095 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
2097 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
2098 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2099 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2100 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2102 2003-06-27 Ulrich Drepper <drepper@redhat.com>
2104 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
2106 2003-06-26 Roland McGrath <roland@frob.com>
2108 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
2109 * sysdeps/mach/configure: Regenerated.
2110 * sysdeps/mach/hurd/times.c (times_init): Function removed.
2111 (__times): Assume `creation_time' field is available.
2112 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
2113 Don't append set-init.
2114 * sysdeps/mach/hurd/set-init.c: File removed.
2116 2003-06-26 Roland McGrath <roland@redhat.com>
2118 * elf/elf.h (AT_SECURE): New macro.
2119 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
2120 set __libc_enable_secure.
2121 (_dl_show_auxv): Add AT_SECURE to name table.
2122 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
2123 __libc_enable_secure and __libc_enable_secure_decided.
2124 * sysdeps/unix/sysv/linux/ldsodefs.h
2125 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
2126 * sysdeps/unix/sysv/linux/kernel-features.h
2127 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
2129 2003-06-26 Ulrich Drepper <drepper@redhat.com>
2131 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
2132 boundary test to take rounding of nanoseconds into account.
2134 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
2135 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2136 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
2137 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2138 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2139 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2140 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2142 2003-06-26 Andreas Schwab <schwab@suse.de>
2144 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
2145 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
2146 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
2148 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
2150 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
2151 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
2152 dlopen corresponding NSS module instead.
2153 * nis/nss_compat/compat-pwd.c: Likewise.
2154 * nis/nss_compat/compat-spwd.c: Likewise.
2155 * nis/nss_compat/compat-initgroups.c: Disabled for now.
2156 * nss/Versions: Export __nss_lookup_function.
2158 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2160 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
2161 for the SH architecture.
2163 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
2165 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
2167 2003-06-25 Andreas Jaeger <aj@suse.de>
2169 * stdlib/tst-strtod.c (main): Declare constant long double as
2170 suggested by Jakub Jelinek and Andreas Schwab.
2172 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
2175 * stdio-common/tst-fphex.c: Fix format string.
2177 * posix/transbug.c: Include <string.h> for memset and strlen
2180 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
2182 * stdlib/tst-strtod.c (main): Pass long double value.
2184 * test-skeleton.c: Include <time.h> for nanosleep declaration.
2186 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2188 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
2191 2003-06-11 Jakub Jelinek <jakub@redhat.com>
2193 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
2194 * elf/dl-libc.c (struct dl_open_hook): New.
2195 (_dl_open_hook): New variable.
2196 (do_dlsym_private): New function.
2197 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
2198 and initialize it if found.
2199 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
2200 call dlopen_mode hook.
2201 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
2203 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
2206 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2208 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
2209 result to long int so that extensions to long long int work.
2210 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2212 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2214 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
2215 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
2216 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
2218 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
2219 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
2220 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
2221 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
2223 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2225 * test-skeleton.c (timeout_handler): If waitpid returned 0,
2226 retry once after a second. If killed == 0, assume
2227 WTERMSIG (status) == SIGKILL.
2229 2003-06-18 Roland McGrath <roland@redhat.com>
2231 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
2232 elements in the table instead of printing an empty name string.
2234 2003-06-05 Roland McGrath <roland@redhat.com>
2236 * elf/elf.h (PT_GNU_STACK): New macro.
2238 2003-06-24 Ulrich Drepper <drepper@redhat.com>
2240 * include/time.h: Define CLOCK_IDFIELD_SIZE.
2241 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
2242 * sysdeps/unix/clock_gettime.c: Likewise.
2243 * sysdeps/unix/clock_settime.c: Likewise.
2244 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
2245 clock id for thread CPU clocks.
2247 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
2248 for the fstatfs64 syscall.
2249 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
2250 the statfs64 syscall.
2252 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2253 __ASSUME_STATFS64 appropriately.
2255 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
2256 from statfs structure if it has been filled in.
2258 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
2260 (struct statfs64): Likewise.
2261 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
2262 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2264 2003-06-24 Richard Henderson <rth@redhat.com>
2266 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
2267 the 64-bit syscall name.
2269 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
2271 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
2272 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
2274 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
2275 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
2277 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2278 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
2281 * sysdeps/alpha/bits/atomic.h: New file.
2283 2003-06-24 Andreas Schwab <schwab@suse.de>
2285 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2287 2003-06-24 Andreas Jaeger <aj@suse.de>
2289 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
2290 redeclaration with 32-bit code.
2292 2003-05-19 Ed Connell <ed.connell@sas.com>
2294 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
2295 floating point mask.
2296 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
2298 2003-06-23 Ulrich Drepper <drepper@redhat.com>
2300 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
2301 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
2302 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
2304 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
2305 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
2306 instead of __libc_cleanup_region_*.
2308 2003-06-20 Richard Henderson <rth@redhat.com>
2310 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
2311 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
2313 2003-06-20 Richard Henderson <rth@redhat.com>
2315 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
2316 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
2318 (__ASSUME_TIMEVAL64): Set for alpha.
2319 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2320 adjtimex, osf_sigprocmask, old_adjtimex.
2321 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
2322 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
2323 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
2324 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2325 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2326 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2327 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2328 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2329 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2330 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2331 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2333 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2334 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2335 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2336 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2337 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2338 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2339 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2340 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2341 defer to __syscall_name; error for rt_sigaction.
2342 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2344 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2346 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2347 hasn't happened yet.
2349 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2350 Fix completely broken implementation. The second parameter is of
2351 type struct ucontext*.
2353 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2356 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2357 * sysdeps/generic/dl-hash.h: Likewise.
2359 * sysdeps/generic/memcmp.c: Remove inline from
2360 memcmp_common_alignment and memcmp_not_common_alignment definition.
2362 * intl/localealias.c (read_alias_file): Determine whether line is
2363 read incompletely early, before we modify the line.
2365 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2367 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2368 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2370 2003-06-17 Paul Mackerras <paulus@samba.org>
2372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2377 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2379 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2381 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2383 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2385 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2386 takes care of enabling cancellation.
2388 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2389 cancelable. It's not correct to disable cancellation. Instead of
2392 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2393 and part of the incoming set, create a temporary set without this
2395 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2396 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2398 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2399 returning because seconds==0. Add __builtin_expect.
2401 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2403 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2405 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2408 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2410 * include/libc-symbols.h: Add static_link_warning macro.
2411 * grp/initgroups.c: Print linker warning if this function
2412 is called in a static linked binary.
2413 * nss/getXXbyYY.c: Likewise.
2414 * nss/getXXbyYY_r.c: Likewise.
2415 * nss/getXXent.c: Likewise.
2416 * nss/getXXent_r.c: Likewise.
2417 * sysdeps/posix/getaddrinfo.c: Likewise.
2419 2003-06-16 Bruno Haible <bruno@clisp.org>
2421 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2423 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2424 (IBM1047): Add alias IBM-1047.
2425 (GBK): Add aliases MS936, WINDOWS-936.
2427 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2429 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2430 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2431 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2433 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2435 * locale/iso-639.def: Update from current official ISO 639.
2437 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2439 2003-06-15 Andreas Jaeger <aj@suse.de>
2441 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2443 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2444 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2445 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2447 * math/tgmath.h (carg): Handle real arguments.
2453 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2454 (tests): Add test-tgmath-ret.
2455 * math/test-tgmath-ret.c: New file.
2457 * math/tgmath.h (ilogb): Return always an int.
2459 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2461 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2462 computation so that prelinking works.
2464 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2466 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2468 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2469 dynamic linker's map.
2471 Fix cancellation point handling wrt exception based cleanup.
2472 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2473 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2475 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2476 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2477 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2479 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2480 sigwait.c, and sigwaitinfo.c with exceptions.
2481 * stdlib/Makefile: Compile system.c with exceptions.
2482 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2483 * termios/Makefile: Compile tcdrain.c with exceptions.
2484 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2486 * sysdeps/generic/pselect.c: Likewise.
2487 * sysdeps/posix/sigpause.c: Likewise.
2488 * sysdeps/posix/system.c: Likewise.
2489 * sysdeps/posix/waitid.c: Likewise.
2490 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2491 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2492 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2493 INTERNAL_SYSCALL to not use push inside asm statement so that
2494 unwind info is correct around the syscall.
2495 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2496 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2498 2003-06-15 Andreas Jaeger <aj@suse.de>
2500 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2503 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2505 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2508 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2510 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2513 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2514 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2517 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2518 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2519 * inet/Makefile (routines): Add inet6_option.
2520 * inet/inet6_option.c: New file.
2521 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2522 inet6_option_init, inet6_option_append, inet6_option_alloc,
2523 inet6_option_next, and inet6_option_find.
2525 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2527 * inet/netinet/ip6.h (struct ip6_ext): Define.
2529 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2531 Fixing gcc 3.3 warnings, part II.
2532 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2533 * elf/dl-load.c (cache_rpath): Don't inline.
2534 * iconvdata/cns11642l2.h: Always inline all functions.
2535 * iconvdata/iso-ir-165.h: Likewise.
2536 * locale/Makefile (aux): Add coll-lookup.
2537 * locale/coll-lookup.c: New file.
2538 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2539 (collseq_table_lookup): Likewise.
2540 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2541 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2543 * posix/regcomp.c: Likewise.
2544 * posix/regexec.c: Likewise.
2545 * locale/programs/3level.h (*_get): Always inline.
2546 * locale/programs/locfile.h: Move definition of handle_copy to...
2547 * locale/programs/locfile.c: ...here.
2548 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2549 (obstack_int32_grow_fast): Likewise.
2550 (utf8_encode): Likewise.
2551 (find_element): Avoid aliasing problems.
2552 (insert_value): Likewise.
2553 (collate_read): Likewise.
2554 * nss/getent.c (print_hosts): Don't inline
2555 (print_networks): Likewise.
2556 (print_shadow): Likewise.
2557 (build_doc): Likewise.
2558 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2560 * posix/regcomp.c (re_set_fastmap): Always inline.
2561 (seek_collating_symbol_entry): Likewise.
2562 (lookup_collation_sequence_value): Likewise.
2563 (build_range_exp): Likewise.
2564 (build_collating_symbol): Likewise.
2565 * posix/regexec.c (acquire_init_state_context): Don't inline.
2566 (clean_state_log_if_need): Likewise.
2567 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2569 (evConsTime): Likewise.
2570 (evAddTime): Likewise.
2571 (evSubTime): Likewise.
2572 (evNowTime): Likewise.
2573 (evTimeSpec): Removed.
2574 (__libc_res_nsend): Avoid aliasing problem.
2575 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2576 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2577 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2579 (_dl_string_platform): Likewise.
2580 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2581 (wcwidth_table_lookup): Likewise.
2582 (wctrans_table_lookup): Likewise.
2584 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2586 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2588 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2590 2003-05-29 Jim Meyering <jim@meyering.net>
2592 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2593 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2594 Suggested by Daniel Yacob <locales@geez.org>.
2596 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2598 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2599 @got notation with @toc.
2600 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2603 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2605 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2606 if only PF_INET address is needed.
2608 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2611 * scripts/config.guess: Update from upstream version.
2612 * scripts/config.sub: Likewise.
2614 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2616 * locale/programs/ld-time.c (time_output): Also copy the era format,
2619 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2621 * posix/transbug.c (run_test): Return 1 for failure.
2622 (do_test): Compare only if run_test is successful.
2624 2003-06-12 Simon Josefsson <jas@extundo.com>
2626 * argp/argp.h [!__THROW]: Define if undefined.
2628 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2630 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2631 more than four parameters.
2632 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2634 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2636 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2637 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2638 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2640 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2642 2003-06-12 Roland McGrath <roland@redhat.com>
2644 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2646 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2648 * posix/regcomp.c (parse_expression): Deliver translation to
2649 build_word_op, and build_charclass.
2650 (build_charclass): Apply translation for character classes too.
2651 (build_word_op): Deliver translation to build_charclass.
2652 * posix/transbug.c: New file.
2653 * posix/Makefile (tests): Add transbug.
2655 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2657 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2658 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2659 'continue' before the others.
2661 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2663 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2664 function [PR libc/5045].
2666 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2669 * time/tzfile.c: Add a couple of __builtin_expect.
2671 Remove warnings gcc 3.3 shows.
2672 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2673 * elf/dl-load.c (fillin_rpath): Likewise.
2674 (add_path): Likewise.
2675 * elf/dl-version.c (find_needed): Always inline.
2676 * elf/do-lookup.c (FCT): Don't inline.
2677 * iconv/Makefile: Extend vpath to intl subdir.
2678 (iconvconfig-modules): Add hash-string.
2679 * iconv/gconv_charset.h (strip): Don't inline.
2680 (upstr): Always inline.
2681 Move __gconv_compare_alias prototype to...
2682 * iconv/gconv_int.h: ...here.
2683 * iconv/gconv_db.c: Don't include gconv_charset.h.
2684 * iconv/gconv_conf.c (add_alias): Don't inline.
2685 (insert_module): Likewise.
2686 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2687 (internal_ucs4_loop_unaligned): Likewise.
2688 (internal_ucs4_loop_single): Likewise.
2689 (ucs4_internal_loop): Likewise.
2690 (ucs4_internal_loop_unaligned): Likewise.
2691 (ucs4_internal_loop_single): Likewise.
2692 (internal_ucs4le_loop): Always inline.
2693 (internal_ucs4le_loop_unaligned): Likewise.
2694 (internal_ucs4le_loop_single): Likewise.
2695 (ucs4le_internal_loop): Likewise.
2696 (ucs4le_internal_loop_unaligned): Likewise.
2697 (ucs4le_internal_loop_single): Likewise.
2698 * iconv/loop.c: Always inline the defined functions.
2699 * iconvdata/cns11642.h: Likewise.
2700 * iconvdata/cns11642l1.h: Likewise.
2701 * iconvdata/euc-kr.c: Likewise.
2702 * iconvdata/gb2312.h: Likewise.
2703 * iconvdata/jis0201.h: Likewise.
2704 * iconvdata/jis0208.h: Likewise.
2705 * iconvdata/jis0212.h: Likewise.
2706 * iconvdata/jisx0213.h: Likewise.
2707 * iconvdata/ksc5601.h: Likewise.
2708 * iconvdata/utf-7.c (base64): Don't inline.
2709 * include/libc-symbols.h (symbol_set_first_element): Add cast
2710 (symbol_set_end_p): Likewise.
2711 * include/set-hooks (RUN_HOOK): Likewise.
2712 * inet/Makefile (aux): Add ifreq.
2713 * intl/Makefile (aux): Add some entries from routines. Add
2715 * intl/hash-string.c: New file.
2716 * intl/hash-string.h: Remove hash_string definition. Declare
2718 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2719 * iconv/iconvconfig.c (new_name): Likewise.
2720 * intl/dcigettext.c (_nl_find_msg): Likewise.
2721 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2722 * io/ftw.c (open_dir_stream): Always inline.
2723 (process_entry): Don't inline.
2724 * locale/findlocale.c: Include gconv_int.h.
2725 * locale/setlocale.c (new_composite_name): Don't inline.
2726 * locale/weight.h (findidx): Always inline.
2727 * locale/weightwc.h (findidx): Likewise.
2728 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2729 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2731 (lr_getc): Always inline.
2732 (lr_ungetc): Likewise.
2733 * nss/nss_files/files-parse.c (parse_list): Likewise.
2734 * stdio-common/Makefile (aux): Add printf-parsemb and
2736 * stdio-common/_itoa.h (_itoa_word): Always inline.
2737 (_fitoa_word, _fitoa): Don't define here, only declare.
2738 * stdio-common/_itoa.c (_iftoa_word): Add here.
2740 * stdio-common/_itowa.h (_itowa_word): Always inline.
2741 * stdio-common/printf-parse.h (read_int): Don't inline.
2742 (find_spec): Don't define.
2743 Declare __find_specmb and __find_specwc.
2744 (parse_one_spec): Don't define.
2745 Declare __parse_one_specmb and __parse_one_specwc.
2746 * stdio-common/printf-parsemb.c: New file.
2747 * stdio-common/printf-parsewc.c: New file.
2748 * stdio-common/vfprintf.c: Update calls to find_spec and
2749 parse_one_spec for new names.
2750 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2751 * stdlib/Makefile (aux): Add grouping and groupingwc.
2752 * stdlib/grouping.c: New file.
2753 * stdlib/groupingwc.c: New file.
2754 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2756 * stdlib/rpmatch.c (try): Don't inline.
2757 * stdlib/strtod.c (round_and_return): Don't line.
2758 (str_to_mpn): Likewise.
2759 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2760 Adjust for name change of correctly_grouped_prefix.
2761 * sysdeps/generic/strtol.c: Adjust for name change of
2762 correctly_grouped_prefix.
2763 * string/strxfrm.c (utf8_encode): Don't inline.
2764 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2765 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2766 * sysdeps/generic/ifreq.c: New file.
2767 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2768 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2769 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2770 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2771 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2772 (fde_split): Likewise.
2773 (fde_merge): Likewise.
2774 (end_fde_sort): Likewise.
2775 (init_object): Likewise.
2776 (binary_search_unencoded_fdes): Likewise.
2777 (binary_search_single_encoding_fdes): Likewise.
2778 (binary_search_mixed_encoding_fdes): Likewise.
2779 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2780 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2781 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2782 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2784 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2785 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2786 Export them. Prepend __ to name.
2787 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2788 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2789 conversion functions.
2790 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2791 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2792 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2793 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2794 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2795 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2796 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2797 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2798 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2799 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2800 to name. Change callers.
2801 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2802 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2804 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2805 * time/tzfile.c (decode): Always inline.
2806 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2807 Remove cast in tomb function call.
2808 * wcsmbs/wcsrtombs.c Likewise.
2809 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2812 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2814 * po/zh_CN.po: Update from translation team.
2816 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2818 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2819 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2821 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2823 * inet/Makefile (aux): Add check_pf.
2824 * include/ifaddrs.h: Add prototype for __check_pf.
2825 * sysdeps/generic/check_pf.c: New file.
2826 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2827 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2828 from no_netlink_support. Export.
2829 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2832 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2834 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2835 from getifaddr calls.
2837 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2839 * sysdeps/unix/sysv/linux/kernel-features.h
2840 (__ASSUME_SETRESGID_SYSCALL): Define.
2841 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2842 instead of __ASSUME_SETRESUID_SYSCALL.
2843 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2845 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2846 inline syscall if __NR_setresuid32 is defined.
2847 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2848 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2849 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2850 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2851 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2852 code handling non-existant setresgid32 syscall with
2853 #if __ASSUME_SETRESGID_SYSCALL == 0.
2855 2003-06-09 Andreas Schwab <schwab@suse.de>
2857 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2858 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2859 $(objpfx)rpc-proto.d.
2860 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2861 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2862 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2864 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2866 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2867 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2868 defined drop compatibility code.
2869 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2870 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2871 defined drop compatibility code.
2872 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2873 setresuid32 syscall directly if possible.
2874 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2875 setresgid32 syscall directly if possible.
2876 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2877 compliant. Don't change sgid.
2878 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2879 compliant. Don't change suid.
2881 * config.h.in: Add have-forced-unwind.
2882 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2884 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2886 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2887 returned status from child matches.
2889 * Makeconfig (gnulib): Add -lgcc_eh once again.
2891 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2893 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2895 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2896 %edx for first parameter. This means no pushl and therefore the
2897 unwind info isn't screwed up.
2899 2003-06-04 Richard Henderson <rth@redhat.com>
2901 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2902 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2903 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2904 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2905 entry sequence and explicit relocs. Add unwind info for sigreturn
2907 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2909 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2910 Annotate some parameters.
2911 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2913 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2915 * include/libc-symbols.h (symbol_set_declare): Use arrays
2916 of unspecified size.
2918 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2920 * config.make.in (ASFLAGS-config): New.
2921 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2922 * configure.in (libc_cv_as_noexecstack): New check.
2923 (ASFLAGS_config): Substitute.
2925 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2927 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2928 hypot, logb): Protect with #ifdef __FAST_MATH__.
2930 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2932 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2933 #ifdef __FAST_MATH__.
2935 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2937 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2938 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2939 * posix/globtest.sh: Adjust for this change.
2941 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2942 to get the actual PID value used in the records passed up.
2943 (getifaddrs): Don't initialize nh.pid here.
2945 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2947 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2950 * po/zh_CN.po: Update from translation team.
2952 * posix/getconf.c (main): Also recognize names without the
2955 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2957 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2959 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2960 ldexpf, ldexpl): Only define if __FAST_MATH__.
2962 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2964 Replace hard-coded offsets into struct sigcontext with generated file.
2965 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2966 * sysdeps/unix/sysv/linux/ia64/Makefile
2967 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2968 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2969 defining SC_* macros here.
2971 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2973 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2975 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2977 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2979 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2981 * test-skeleton.c (main): Request getopt to not reorder the
2984 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2986 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2989 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2991 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2993 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2995 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2997 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2998 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2999 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
3001 2003-05-31 Ulrich Drepper <drepper@redhat.com>
3003 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
3006 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
3008 * libio/fileops.c (_IO_file_open): Don't mark as inline.
3010 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
3013 2003-05-30 Ulrich Drepper <drepper@redhat.com>
3015 * scripts/config.guess: Update from master copy.
3016 * scripts/config.sub: Likewise.
3018 2003-05-30 Guido Guenther <agx@sigxcpu.org>
3020 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
3021 SETUP_GP64 and friends.
3022 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
3023 names in internal_syscall{6,7}.
3024 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3025 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
3026 number of syscall arguments.
3027 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3028 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3029 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3031 2003-05-30 Andreas Jaeger <aj@suse.de>
3033 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3036 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
3039 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
3041 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3044 2003-05-30 Jakub Jelinek <jakub@redhat.com>
3046 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
3049 2003-05-11 Andreas Schwab <schwab@suse.de>
3051 * Makerules: Always use -MP together with -MD.
3052 (sed-remove-dotot): Substitute $(..) also at start of line.
3053 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
3054 Generated defines with a single compiler call.
3055 Use $(sed-remove-dotdot).
3056 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
3057 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
3058 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3059 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
3060 * sysdeps/unix/sysv/linux/mips/Makefile
3061 ($(objpfx)syscall-%.h): Likewise.
3063 2003-05-28 Roland McGrath <roland@redhat.com>
3065 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
3067 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
3069 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
3071 2003-05-28 Roland McGrath <roland@redhat.com>
3073 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
3074 rt_sigprocmask system call.
3075 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
3076 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
3078 2003-05-28 Ulrich Drepper <drepper@redhat.com>
3080 * include/libc-symbols.h: Define hidden attribute for real also if
3081 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
3083 * csu/Makefile: Add rules to build Scrt1.o.
3084 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
3085 * sysdeps/x86_64/elf/start.S: Likewise.
3087 2003-05-27 Jakub Jelinek <jakub@redhat.com>
3089 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
3090 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
3091 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
3092 pa_short_int, pa_u_short_int and pa_float.
3094 2003-05-26 Jakub Jelinek <jakub@redhat.com>
3096 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
3097 _IO_str_init_static_internal.
3098 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
3099 change size argument to _IO_size_t, don't limit sprintf to 64M.
3100 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
3101 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
3102 _IO_size_t, don't limit swprintf to 256M.
3103 (_IO_wstr_init_readonly): Remove.
3104 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
3106 (_IO_wstr_init_readonly): Remove prototype.
3107 * libio/iovsprintf.c (_IO_vsprintf): Use
3108 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
3109 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
3110 * libio/memstream.c (open_memstream): Likewise.
3111 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
3112 * libio/vasprintf.c (_IO_vasprintf): Likewise.
3113 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3114 * stdio-common/tst-sprintf.c (main): Add new test.
3116 2003-05-26 Ulrich Drepper <drepper@redhat.com>
3118 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
3119 other implementation in respect of multiple uses of parameter with
3122 2003-05-25 Ulrich Drepper <drepper@redhat.com>
3124 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3125 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
3127 2003-05-22 Andreas Jaeger <aj@suse.de>
3129 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
3131 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3132 * sysdeps/x86_64/strtok.S: Likewise.
3134 2003-05-20 Guido Guenther <agx@sigxcpu.org>
3136 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
3137 to -60 and define SI_TKILL.
3139 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
3141 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
3142 (feexcp_mask_test): Likewise.
3144 2003-05-21 Ulrich Drepper <drepper@redhat.com>
3146 * locale/programs/locale.c (main): Fix typo in last patch.
3148 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
3149 __init_array_start, __init_array_end, __fini_array_start, and
3150 __fini_array_end as hidden.
3152 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
3154 * locale/programs/locale.c (main): Report an error if setlocale()
3155 fails [PR libc/2254].
3157 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3159 * sysdeps/unix/sysv/linux/s390/system.c: New file.
3161 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
3164 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3165 LOADARGS_6): Don't error if syscall argument is a string literal.
3166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
3167 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3168 LOADARGS_6): Likewise.
3170 2003-05-21 Andreas Jaeger <aj@suse.de>
3172 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
3173 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
3174 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
3176 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
3180 * configure.in: Test for asm cfi directives.
3182 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
3184 2003-05-17 Andreas Jaeger <aj@suse.de>
3186 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
3188 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
3190 2003-05-16 Ulrich Drepper <drepper@redhat.com>
3192 * rt/Makefile (tests): Add tst-clock_nanosleep.
3193 * rt/tst-clock_nanosleep.c: New file.
3194 * posix/Makefile (tests): Add tst-nanosleep.
3195 * posix/tst-nanosleep.c: New file.
3197 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
3199 * include/features.h (__USE_XOPEN2K): Define also for
3200 _POSIX_C_SOURCE>=200112L.
3202 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
3203 SI_TKILL code into SI_USER.
3204 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
3206 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
3208 2003-05-15 Jakub Jelinek <jakub@redhat.com>
3210 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
3211 Remove sym argument, always use refsym.
3212 (__process_machine_rela): Adjust callers.
3213 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
3215 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
3217 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3219 2003-05-15 Ulrich Drepper <drepper@redhat.com>
3221 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
3222 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
3223 print numeric values.
3225 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
3227 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
3229 2003-05-14 Andreas Schwab <schwab@suse.de>
3231 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
3233 2003-05-14 Jakub Jelinek <jakub@redhat.com>
3235 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
3236 even if no DT_NEEDED is present.
3238 2003-05-13 David Mosberger <davidm@hpl.hp.com>
3240 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
3241 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
3242 __sigjmp_save) so we can't keep the saved unat value in a scratch
3243 register (r16). Use loc2 instead.
3245 2003-05-13 Ulrich Drepper <drepper@redhat.com>
3247 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
3248 binaries it has to be relocatable.
3250 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
3252 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3254 * sysdeps/powerpc/bits/atomic.h
3255 (__arch_compare_and_exchange_bool_8_rel): Define.
3256 (__arch_compare_and_exchange_bool_16_rel): Define.
3257 (__ARCH_REL_INSTR): Define if not already defined.
3258 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
3259 (__arch_atomic_decrement_if_positive_32):
3260 Add "memory" to clobber list.
3261 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
3262 (__arch_compare_and_exchange_val_32_rel): Define.
3263 (__arch_atomic_exchange_32): Remove.
3264 (__arch_atomic_exchange_32_acq): Define.
3265 (__arch_atomic_exchange_32_rel): Define.
3266 (atomic_compare_and_exchange_val_rel): Define.
3267 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
3268 (atomic_exchange_rel): Define.
3269 * sysdeps/powerpc/powerpc32/bits/atomic.h
3270 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
3271 (__arch_compare_and_exchange_bool_32_rel): Define.
3272 (__arch_compare_and_exchange_bool_64_rel): Define.
3273 (__arch_compare_and_exchange_val_64_rel): Define.
3274 (__arch_atomic_exchange_64): Remove.
3275 (__arch_atomic_exchange_64_acq): Define.
3276 (__arch_atomic_exchange_64_rel): Define.
3277 * sysdeps/powerpc/powerpc64/bits/atomic.h
3278 (__arch_compare_and_exchange_bool_32_rel): Define.
3279 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
3280 (__arch_compare_and_exchange_bool_64_rel): Define.
3281 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
3282 (__arch_compare_and_exchange_val_64_rel): Define.
3283 (__arch_atomic_exchange_64): Remove.
3284 (__arch_atomic_exchange_64_acq): Define.
3285 (__arch_atomic_exchange_64_rel): Define.
3286 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
3287 (__arch_atomic_decrement_if_positive_64):
3288 Add "memory" to clobber list.
3289 [!UP](__ARCH_REL_INSTR): Define as lwsync.
3291 2003-05-11 Andreas Schwab <schwab@suse.de>
3293 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
3295 2003-05-11 Ulrich Drepper <drepper@redhat.com>
3297 * time/tst-strftime.c (do_test): Add tests for - flag.
3299 2003-05-11 Jim Meyering <jim@meyering.net>
3301 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
3302 the space-padded-by-default conversion specifiers, %e, %k, %l.
3304 2003-05-11 Andreas Schwab <schwab@suse.de>
3306 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
3308 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3310 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
3311 already defined and when really needed.
3312 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3314 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3316 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
3317 headers, add defines from kernel header, move it from here...
3318 * inet/netinet/igmp.h: ... to here.
3319 * inet/Makefile (headers): Add netinet/igmp.h.
3320 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
3321 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
3323 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3325 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
3326 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
3328 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3330 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3331 (remove __THROW from possible cancellation points).
3333 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3335 * posix/sched.h (CPU_SETSIZE): Define.
3337 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3339 * Makeconfig (gnulib): Remove -lgcc_eh again.
3341 * posix/sched.h: Change prototypes of sched_getaffinity and
3342 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3343 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3344 * sysdeps/generic/sched_setaffinity.c: Likewise.
3345 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3346 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3347 __CPU_CLR, and __CPU_ISSET.
3348 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3349 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3350 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3352 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3353 (atomic_exchange_rel): New #define.
3354 * sysdeps/ia64/bits/atomic.h: Likewise.
3355 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3357 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3358 * sysdeps/powerpc/bits/atomic.h: Likewise.
3359 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3360 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3361 * sysdeps/x86_64/bits/atomic.h: Likewise.
3362 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3364 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3366 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3368 * malloc/thread-m.h: Remove special handling of thread_atfork if
3369 HAVE_register_atfork_malloc is defined.
3371 2003-05-07 Andreas Jaeger <aj@suse.de>
3373 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3376 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3378 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3379 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3380 * libio/libioP.h: Declare _IO_old_init.
3381 * libio/genops.c (_IO_no_init): Split in two. New function
3384 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3386 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3388 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3390 * include/unistd.h: Declare __libc_enable_secure_decided.
3391 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3392 and AT_EGID. If all found, set __libc_enable_secure and
3393 __libc_enable_secure_decided.
3395 * sysdeps/generic/libc-start.c [!SHARED]: Call
3396 __libc_check_standard_fds after __libc_init_first.
3398 2003-05-05 Roland McGrath <roland@redhat.com>
3400 * Makerules (common-before-compile): New variable.
3401 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3402 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3403 to after all setting of before-compile.
3405 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3407 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3408 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3409 * sysdeps/powerpc/powerpc32/bits/atomic.h
3410 (__arch_compare_and_exchange_val_64_acq): Likewise.
3411 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3412 (__arch_compare_and_exchange_val_8_acq,
3413 __arch_compare_and_exchange_val_16_acq,
3414 __arch_compare_and_exchange_val_64_acq): Likewise.
3415 * sysdeps/sparc/sparc64/bits/atomic.h
3416 (__arch_compare_and_exchange_val_8_acq,
3417 __arch_compare_and_exchange_val_16_acq): Likewise.
3418 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3419 __arch_compare_and_exchange_val_16_acq,
3420 __arch_compare_and_exchange_val_64_acq): Likewise.
3421 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3422 (__arch_compare_and_exchange_val_64_acq): Likewise.
3423 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3425 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3427 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3428 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3429 Return long instead of int.
3430 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3431 0xfffff001u with -4095UL.
3433 2003-05-05 Andreas Jaeger <aj@suse.de>
3435 * sysdeps/x86_64/fpu_control.h: New from i386.
3437 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3438 Define if not defined.
3440 * sunrpc/Makefile (generated-dirs): New variable.
3441 * resolv/Makefile (generated): New variable.
3443 2003-05-04 Roland McGrath <roland@redhat.com>
3445 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3446 Depend on $(before-compile).
3448 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3449 pattern rule. The implicit rule could be ruled out when $(objpfx)
3450 didn't exist at the time of its consideration (ugh!).
3452 * Makerules (+make-deps): Fix target matching.
3453 Use $(sed-remove-dotdot).
3455 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3457 * nscd/nscd.c (main): Parse config file right after parsing
3458 parameters. Then, if get_stats is true, call receive_print_stats.
3459 Drop parameter from nscd_init call.
3460 (get_stats): New variable.
3461 (parse_opt): Set get_stats, don't call receive_print_stats here.
3462 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3464 * nscd/connections.c (stat_user, stat_uid): New variables.
3466 (nscd_init): Don't read configuration file here. Drop parameter.
3467 (handle_request): Cleanup handling of non-database lookup requests.
3468 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3469 Get UID of the specified user. Use xstrdup instead of strdup.
3470 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3472 * nscd/Makefile (nscd-modules): Add xstrdup.
3473 * nscd/nscd.conf: Document stat-user entry.
3475 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3477 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3480 2003-04-22 Roland McGrath <roland@redhat.com>
3482 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3483 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3484 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3485 * elf/dl-support.c: Update defn.
3486 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3487 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3488 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3489 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3490 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3491 set, set up a link_map for the preloaded, prelinked object.
3493 2003-05-03 Roland McGrath <roland@redhat.com>
3495 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3496 * stdio-common/Makefile: ... not here.
3498 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3499 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3501 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3503 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3505 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3507 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3508 comparing ftab elements.
3509 (_dl_unmap): Fix typo in test.
3510 (_dl_make_fptr): Fix typos introduced in last change.
3512 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3513 original patch. Use non-exported symbols. Mark translatable
3514 strings. Pretty printing.
3516 2003-05-02 Roland McGrath <roland@redhat.com>
3518 * Makerules (do-stamp): Do $(make-target-directory).
3520 2003-04-07 H.J. Lu <hjl@gnu.org>
3522 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3524 2003-04-03 H.J. Lu <hjl@gnu.org>
3526 * sysdeps/ia64/dl-fptr.c: Moved to ...
3527 * sysdeps/generic/dl-fptr.c: Here.
3529 * sysdeps/generic/dl-fptr.h: New.
3530 * sysdeps/ia64/dl-fptr.h: New.
3532 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3533 * sysdeps/generic/dl-symaddr.c: here.
3535 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3536 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3537 (ia64_fdesc): Likewise.
3538 (ia64_fdesc_table): Likewise.
3539 (__ia64_make_fptr): Likewise.
3540 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3541 with _dl_boot_fptr_table.
3542 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3544 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3546 2003-05-01 Roland McGrath <roland@redhat.com>
3548 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3549 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3551 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3552 Use $(make-target-directory).
3553 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3555 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3556 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3557 (compile-command.s, compile-command.c): Likewise.
3558 ($(objpfx)%.d): All such pattern rules removed.
3559 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3560 ($(common-objpfx)dummy.d): Target removed.
3561 (make-dummy-dep): Variable removed.
3562 (generate-md5): Likewise.
3563 (%.d: %.dt): New pattern rule.
3564 (+depfiles): Use $(wildcard) function to get just existing *.d files
3565 and .d files for existing *.dt files.
3566 (common-clean): Remove all *.d and *.dt files.
3567 (before-compile): Add $(objpfx). when it doesn't exist,
3568 regardless of $(no_deps).
3569 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3570 (rtld-depfiles): Use .os.d instead of .d names.
3571 Include existing *.d files and .d files for existing *.dt files.
3573 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3574 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3576 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3577 Do s-*.d includes only if we have some syscall routines in this subdir.
3579 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3580 @nobits. The former is accepted by gas on any ELF platform.
3582 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3584 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3586 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3588 2003-04-29 Andreas Schwab <schwab@suse.de>
3590 * string/test-strcat.c (do_one_test): Fix attribute name.
3592 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3594 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3595 uc_flags long for all ABIs.
3597 2003-04-30 Andreas Jaeger <aj@suse.de>
3599 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3600 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3601 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3602 Add bi-arch support.
3604 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3606 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3607 (__posix_memalign): Use __memalign_internal instead of memalign.
3609 2003-04-29 Roland McGrath <roland@redhat.com>
3611 * configure.in: Search for AUTOCONF unconditionally.
3612 Just don't complain about missing it under --without-cvs.
3614 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3615 give hidden for [SHARED] and weak for [! SHARED].
3616 (symbol_set_declare): Use that. Never need weak_extern these days.
3617 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3618 Depend on $(..)Makerules.
3620 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3622 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3623 variants of socket, bind, recvmsg, and sendto.
3625 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3627 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3628 * signal/sigaddset.c: Add libc_hidden_def.
3629 * signal/sigdelset.c: Likewise.
3631 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3633 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3634 to the end of the file.
3636 * configure.in: Change __oline__ to $LINENO.
3637 (HAVE_BUILTIN_REDIRECTION): New check.
3638 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3639 * include/libc-symbols.h (libc_hidden_builtin_proto,
3640 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3641 libc_hidden_builtin_ver): Define.
3642 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3643 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3644 strspn, strstr): Add libc_hidden_builtin_proto.
3645 * intl/plural.y: Include string.h.
3646 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3647 libc_hidden_builtin_def.
3648 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3649 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3650 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3651 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3652 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3653 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3654 * sysdeps/alpha/memchr.S (memchr): Likewise.
3655 * sysdeps/alpha/memset.S (memset): Likewise.
3656 * sysdeps/alpha/strcat.S (strcat): Likewise.
3657 * sysdeps/alpha/strchr.S (strchr): Likewise.
3658 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3659 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3660 * sysdeps/alpha/strlen.S (strlen): Likewise.
3661 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3662 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3663 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3664 * sysdeps/arm/memset.S (memset): Likewise.
3665 * sysdeps/arm/strlen.S (strlen): Likewise.
3666 * sysdeps/generic/memchr.c (memchr): Likewise.
3667 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3668 * sysdeps/generic/memmove.c (memmove): Likewise.
3669 * sysdeps/generic/memset.c (memset): Likewise.
3670 * sysdeps/generic/strcat.c (strcat): Likewise.
3671 * sysdeps/generic/strchr.c (strchr): Likewise.
3672 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3673 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3674 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3675 * sysdeps/generic/strlen.c (strlen): Likewise.
3676 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3677 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3678 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3679 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3680 * sysdeps/generic/strspn.c (strspn): Likewise.
3681 * sysdeps/generic/strstr.c (strstr): Likewise.
3682 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3683 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3684 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3685 * sysdeps/i386/i586/memset.S (memset): Likewise.
3686 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3687 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3688 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3689 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3690 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3691 * sysdeps/i386/i686/memset.S (memset): Likewise.
3692 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3693 * sysdeps/i386/memchr.S (memchr): Likewise.
3694 * sysdeps/i386/memset.c (memset): Likewise.
3695 * sysdeps/i386/strchr.S (strchr): Likewise.
3696 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3697 * sysdeps/i386/strlen.c (strlen): Likewise.
3698 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3699 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3700 * sysdeps/i386/strspn.S (strspn): Likewise.
3701 * sysdeps/ia64/memchr.S (memchr): Likewise.
3702 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3703 * sysdeps/ia64/memmove.S (memmove): Likewise.
3704 * sysdeps/ia64/memset.S (memset): Likewise.
3705 * sysdeps/ia64/strcat.S (strcat): Likewise.
3706 * sysdeps/ia64/strchr.S (strchr): Likewise.
3707 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3708 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3709 * sysdeps/ia64/strlen.S (strlen): Likewise.
3710 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3711 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3712 * sysdeps/m68k/memchr.S (memchr): Likewise.
3713 * sysdeps/m68k/strchr.S (strchr): Likewise.
3714 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3715 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3716 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3717 * sysdeps/mips/memset.S (memset): Likewise.
3718 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3719 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3720 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3721 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3722 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3723 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3724 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3725 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3726 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3727 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3728 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3729 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3730 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3731 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3732 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3733 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3734 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3735 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3736 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3737 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3738 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3739 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3740 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3741 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3742 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3743 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3744 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3745 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3746 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3747 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3748 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3749 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3750 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3751 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3752 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3753 * sysdeps/sh/memset.S (memset): Likewise.
3754 * sysdeps/sh/strlen.S (strlen): Likewise.
3755 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3756 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3757 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3758 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3759 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3760 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3761 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3762 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3763 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3764 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3765 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3766 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3767 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3768 * sysdeps/x86_64/memset.S (memset): Likewise.
3769 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3770 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3771 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3772 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3773 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3774 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3775 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3776 * string/string-inlines.c: Move...
3777 * sysdeps/generic/string-inlines.c: ...here.
3778 (__memcpy_g, __strchr_g): Remove.
3779 (__NO_INLINE__): Define before including <string.h>,
3780 undefine after. Include bits/string.h and bits/string2.h.
3781 * sysdeps/i386/i486/string-inlines.c: New file.
3782 * sysdeps/i386/string-inlines.c: New file.
3783 * sysdeps/i386/i486/Versions: Remove.
3784 All GLIBC_2.1.1 symbols moved...
3785 * sysdeps/i386/Versions (libc): ...here.
3787 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3789 * sysdeps/i386/fpu/Makefile: New file.
3790 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3791 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3792 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3793 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3796 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3798 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3799 * nscd/nscd_getpw_r.c: Likewise.
3800 * nscd/nscd_gethst_r.c: Likewise.
3802 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3804 * nscd/pwdcache.c: Initialize .version element in result.
3805 * nscd/grpcache.c: Likewise.
3806 * nscd/pwdcache.c: Likewise.
3808 2003-04-27 Andreas Schwab <schwab@suse.de>
3810 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3813 2003-04-27 Andreas Schwab <schwab@suse.de>
3815 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3817 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3819 * nscd/connections.c (client_queued): New variable.
3820 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3821 threads. Keep track of the number of delays caused because of busy
3823 * nscd/nscd.h: Declare client_queued.
3824 * nscd/nscd_stat.c: Transmit and print client_queued information.
3826 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3828 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3829 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3831 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3833 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3834 tracking of freed memory in static TLS block.
3835 * elf/Makefile: Add rules to build and run tst-tls13.
3836 * elf/tst-tls13.c: New file.
3837 * elf/tst-tlsmod13.c: New file.
3838 * elf/tst-tlsmod13a.c: New file.
3840 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3842 * elf/dl-reloc.c: Pretty printing.
3844 2003-04-26 Roland McGrath <roland@redhat.com>
3846 * Makerules ($(common-objpfx)shlib.lds): New target.
3847 (common-generated): Add it.
3848 (build-shlib, build-module): Use that instead of generating every time.
3849 ($(common-objpfx)libc.so): Depend on it.
3850 (lib%.so rule): Likewise.
3851 (build-module-helper-objlist): Remove %.lds.
3852 (LDSEDCMD-c.so): Variable removed.
3853 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3854 Depend on $(common-objpfx)shlib.lds.
3855 * dlfcn/Makefile ($(test-modules)): Likewise.
3857 2003-04-26 Roland McGrath <roland@frob.com>
3859 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3861 2003-04-26 Andreas Schwab <schwab@suse.de>
3863 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3865 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3867 * nscd/cache.c (cache_search): Keep track of how many chain links
3868 we searched and update table statistics.
3869 (cache_add): Keep track of how many values are in the table.
3870 (prune_cache): Likewise. Keep track of locking success.
3871 Print messages about removed entries in separate pass.
3872 * nscd/connections.c (handle_request): Don't print debug message here.
3873 The caller will do it. Keep track of locking success.
3874 (nscd_run): Print debug message. Also print PID of the client process.
3875 * nscd/nscd.c (start_time): New variable.
3876 (main): Remember start time.
3877 * nscd/nscd.h: Declare start_time.
3878 (struct database): Add more members for new statistics.
3879 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3882 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3884 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3886 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3887 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3888 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3890 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3891 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3892 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3893 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3896 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3898 * nss/getent.c: Implement alternative host database lookup via
3901 * include/ifaddrs.h: New file.
3902 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3904 * resolv/netdb.h: ...here.
3905 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3906 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3907 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3910 2003-04-24 Roland McGrath <roland@redhat.com>
3912 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3914 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3916 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3917 (_dl_allocate_static_tls): ... this function. No longer static.
3918 (CHECK_STATIC_TLS): Adjust.
3919 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3920 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3921 Add SYM_MAP argument.
3922 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3923 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3924 TLS relocs here. #ifdef out relocs which never appear in
3925 .gnu.conflict section from dl-conflict.c processing.
3926 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3927 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3929 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3930 out relocs which never appear in .gnu.conflict section from
3931 dl-conflict.c processing.
3932 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3933 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3934 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3935 Use r_type in RESOLVE macro.
3937 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3939 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3940 NULL. Remove code made redundant by this assumption.
3941 (__yp_unbind): Add call to free. Adjust all callers.
3943 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3946 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3947 user buffer if more groups are found than fit into it.
3949 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3952 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3954 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3955 not rc == errno. Use extend_alloca.
3957 * elf/tst-tls12.c (main): Fix declaration.
3958 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3959 * elf/tst-tlsmod7.c (dummy): Likewise.
3960 * elf/tst-tlsmod8.c (dummy): Likewise.
3961 * elf/tst-tlsmod9.c (dummy): Likewise.
3963 2003-04-22 Roland McGrath <roland@redhat.com>
3965 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3966 (open_not_cancel): Make last argument non-optional.
3967 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3968 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3969 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3971 * include/tls.h: Protect against multiple inclusion.
3973 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3975 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3976 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3977 open_socket. Not static anymore.
3978 (nscd_gethst_r): Use __nscd_open_socket.
3979 * nscd/nscd_getgr_r.c (open_socket): Removed.
3980 (nscd_getgr_r): Use __nscd_open_socket.
3981 * nscd/nscd_getpw_r.c (open_socket): Removed.
3982 (nscd_getpw_r): Use __nscd_open_socket.
3984 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3985 * nscd/connections.c (handle_request): Add cast to avoid warning.
3987 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3989 * signal/sigfillset.c: Moved to...
3990 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3991 do not set the corresponding bit.
3993 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3995 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3996 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3997 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3998 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3999 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
4001 2003-04-20 Ulrich Drepper <drepper@redhat.com>
4003 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
4004 first syscall parameter to const char*.
4006 2003-04-19 Ulrich Drepper <drepper@redhat.com>
4008 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
4010 * configure.in: Add AC_PROG_CXX.
4011 * config.make.in (CXX): Define.
4013 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
4014 __len to size_t to avoid warnings.
4016 2003-04-18 Jes Sorensen <jes@wildopensource.com>
4018 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
4020 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4022 2003-04-19 Ulrich Drepper <drepper@redhat.com>
4024 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
4025 UNREGISTER_ATFORK if d == NULL.
4027 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
4028 * dirent/dirent.h: Likewise.
4029 * dlfcn/dlfcn.h: Likewise.
4030 * grp/grp.h: Likewise.
4031 * iconv/iconv.h: Likewise.
4032 * io/fcntl.h: Likewise.
4033 * io/ftw.h: Likewise.
4034 * libio/stdio.h: Likewise.
4035 * misc/sys/mman.h: Likewise.
4036 * misc/sys/select.h: Likewise.
4037 * misc/sys/syslog.h: Likewise.
4038 * misc/sys/uio.h: Likewise.
4039 * posix/spawn.h: Likewise.
4040 * posix/unistd.h: Likewise.
4041 * posix/sys/wait.h: Likewise.
4042 * pwd/pwd.h: Likewise.
4043 * resolv/netdb.h: Likewise.
4044 * rt/aio.h: Likewise.
4045 * shadow/shadow.h: Likewise.
4046 * signal/signal.h: Likewise.
4047 * socket/sys/socket.h: Likewise.
4048 * stdlib/stdlib.h: Likewise.
4049 * streams/stropts.h: Likewise.
4050 * string/string.h: Likewise.
4051 * sysdeps/gnu/utmpx.h: Likewise.
4052 * sysvipc/sys/msg.h: Likewise.
4053 * termios/termios.h: Likewise.
4054 * time/time.h: Likewise.
4055 * wcsmbs/wchar.h: Likewise.
4056 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
4058 * misc/daemon.c: Likewise.
4059 * sysdeps/generic/backtracesymsfd.c: Likewise.
4060 * sysdeps/generic/check_fds.c: Likewise.
4061 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
4062 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
4063 * sysdeps/generic/not-cancel.h: New file.
4064 * csu/Makefile (distribute): Add not-cancel.h.
4065 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
4066 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
4067 for assert.c and assert-perr.c to include <fatal-prepare.h>.
4068 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
4070 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
4071 errno and unlink first.
4073 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
4075 2003-04-18 Ulrich Drepper <drepper@redhat.com>
4077 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
4078 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
4080 2003-04-17 Ulrich Drepper <drepper@redhat.com>
4082 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
4084 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
4085 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
4088 * signal/Makefile (tests): Add tst-sigsimple.
4089 * signal/tst-sigsimple.c: New file.
4091 2003-04-16 Jakub Jelinek <jakub@redhat.com>
4093 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
4095 (tests): Add tst-tls1[0-2].
4096 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
4097 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
4098 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
4099 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
4100 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
4101 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
4102 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
4103 * elf/tst-tls10.c: New test.
4104 * elf/tst-tls11.c: New test.
4105 * elf/tst-tls12.c: New test.
4106 * elf/tst-tls10.h: New file.
4107 * elf/tst-tlsmod7.c: New file.
4108 * elf/tst-tlsmod8.c: New file.
4109 * elf/tst-tlsmod9.c: New file.
4110 * elf/tst-tlsmod10.c: New file.
4111 * elf/tst-tlsmod11.c: New file.
4112 * elf/tst-tlsmod12.c: New file.
4114 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4116 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
4117 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
4118 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
4120 2003-04-17 Ulrich Drepper <drepper@redhat.com>
4122 * posix/regex.h: Include <sys/types.h>.
4124 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
4125 The signal number must be checked.
4126 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
4127 The signal number must be checked [PR libc/5004].
4129 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
4130 don't do anything fancy.
4132 * sysdeps/generic/bits/libc-lock.h: Define
4133 __rtld_lock_define_initialized_recursive.
4135 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
4136 contacting nscd if NOT_USENSCD_NAME > 0.
4137 * nss/nsswitch.c (__nss_disable_nscd): New function.
4138 * nss/nsswitch.h: Declare it.
4139 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
4140 * nscd/nscd.c (main): Call __nss_disable_nscd.
4142 2003-04-16 Ulrich Drepper <drepper@redhat.com>
4144 * stdio-common/perror.c (perror): We don't need to set the offset
4145 to _IO_pos_bad, this is how streams are initialized.
4147 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
4148 (time_output): If necessary, allocate new buffer for .name string if
4149 padding is required.
4151 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
4152 before copying. This might leave holes in the list. Adjust
4153 pointers if necessary.
4154 (netlink_receive): Allocate only one block.
4155 (free_netlink_handle): Adjust appropriately.
4156 (getifaddrs): Lots of cleanups.
4158 * string/test-strncpy.c (do_one_test): Mark start and stop as
4160 * string/test-memchr.c: Likewise.
4161 * string/test-memcmp.c: Likewise.
4162 * string/test-memcpy.c: Likewise.
4163 * string/test-memmove.c: Likewise.
4164 * string/test-memset.c: Likewise.
4165 * string/test-strcat.c: Likewise.
4166 * string/test-strchr.c: Likewise.
4167 * string/test-strcmp.c: Likewise.
4168 * string/test-strcpy.c: Likewise.
4169 * string/test-strlen.c: Likewise.
4170 * string/test-strncmp.c: Likewise.
4171 * string/test-strpbrk.c: Likewise.
4172 * string/test-strrchr.c: Likewise.
4173 * string/test-strspn.c: Likewise.
4175 2003-04-15 Roland McGrath <roland@redhat.com>
4177 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
4179 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
4180 INTUSE(__register_frame_info_bases).
4182 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4184 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
4185 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
4186 AT_SYSINFO_EH_FRAME. Adjust string width.
4187 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
4188 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
4189 Add _dl_sysinfo_eh_frame field.
4190 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
4191 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
4193 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
4194 if _dl_sysinfo_eh_frame is non-NULL.
4196 * Makeconfig (gnulib): Add -lgcc_eh.
4198 * config.h.in: Define HAVE_FORCED_UNWIND.
4200 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4202 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
4203 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
4205 2003-04-15 Jakub Jelinek <jakub@redhat.com>
4207 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
4208 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
4209 against local symbol in conflict processing.
4211 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4213 * sysdeps/powerpc/bits/atomic.h
4214 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
4215 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
4217 (__arch_compare_and_exchange_val_32_acq): Define.
4218 (atomic_compare_and_exchange_val_acq): Define.
4220 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4222 * include/atomic.h: Pretty printing.
4224 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4226 * stdio-common/vfscanf.c: Add casts to avoid warnings.
4228 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4230 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
4231 * sysdeps/x86_64/bits/atomic.h: Likewise.
4233 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4235 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
4236 POPARGS_1 to emit labels for the mov instructions.
4238 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4240 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
4242 2003-04-14 Roland McGrath <roland@redhat.com>
4244 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
4247 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
4249 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4251 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
4252 position. Reported by jreiser@BitWagon.com.
4254 2003-04-13 Ulrich Drepper <drepper@redhat.com>
4256 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
4257 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
4258 * sysdeps/generic/unwind-dw2.c: Likewise.
4259 * sysdeps/generic/unwind-pe.h: Likewise.
4261 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
4263 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
4264 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
4265 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
4266 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
4267 (mcontext_t): Make it match the 32-bit mips kernel in o32.
4268 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
4269 the mips and mips64 headers.
4270 (struct user): Port to n32/n64.
4272 2003-04-12 Ulrich Drepper <drepper@redhat.com>
4274 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
4277 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
4278 __ASSUME_VSYSCALL is defined don't add restorer.
4279 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4280 __ASSUME_VSYSCALL for 2.5.53.
4282 2003-04-11 Ulrich Drepper <drepper@redhat.com>
4284 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
4285 Remove HAVE_CANCELBUF code. Replace with code using the new
4286 initializers for unwind-based cleanup handling.
4287 * sysdeps/generic/unwind.h: Update from latest gcc version.
4288 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
4289 places to allow unwind data generation.
4290 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
4291 * sysdeps/x86_64/bits/setjmp.h: Likewise.
4292 * sysdeps/sh/bits/setjmp.h: Likewise.
4293 * sysdeps/powerpc/bits/setjmp.h: Likewise.
4294 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
4295 * sysdeps/alpha/bits/setjmp.h: Likewise.
4297 2003-04-11 Roland McGrath <roland@redhat.com>
4299 * csu/tst-empty.c: New file.
4300 * csu/Makefile (tests, tests-static): Add it.
4302 2003-04-11 Jakub Jelinek <jakub@redhat.com>
4304 * string/test-strcmp.c (do_random_tests): Test whether return value
4305 has been promoted to wordsize if the ABI requires caller to do so.
4306 * string/test-strncmp.c (do_random_tests): Likewise.
4307 * string/test-memcmp.c (do_random_tests): Likewise.
4309 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
4312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4313 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
4314 is not defined, but the prctl constants are.
4316 * string/tester.c (test_strcmp): Fix a typo.
4318 2003-04-09 Ulrich Drepper <drepper@redhat.com>
4320 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
4321 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
4323 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4325 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
4327 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
4329 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4331 * sysdeps/mips/mips64/memset.S: Likewise.
4332 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4333 Use t0 instead of t4 as temporary.
4335 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4337 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4338 feof_unlocked instead of feof.
4339 (add_dir): Ignore trailing whitespace.
4341 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4343 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4344 sum of SIZE1 and SIZE2 arguments.
4346 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4348 * iconv/iconv_prog.c (process_block): Don't print message about
4349 invalid input if the -c option is used.
4350 (main): Correctly append IGNORE string for -c option.
4352 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4354 * sysdeps/sh/bits/atomic.h: Moved to ...
4355 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4356 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4358 (atomic_bit_set, atomic_bit_test_set): Likewise.
4359 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4361 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4363 2003-04-06 Roland McGrath <roland@redhat.com>
4365 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4366 restoration as done for setcontext yesterday.
4368 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4370 * elf/rtld.c: Revert 2003-03-14 change.
4371 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4372 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4374 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4376 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4378 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4379 Always initialize *signgamp before returning an error.
4381 2003-04-05 Roland McGrath <roland@redhat.com>
4383 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4384 below the stack pointer even if switching to the same context we are
4387 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4389 * catgets/gencat.c (read_input_file): Make sure that \n is not
4390 alone on the line before testing for continuation.
4392 * math/test-tgmath.c (compile_test): Initialize c.
4394 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4396 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4397 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4398 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4400 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4401 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4402 structure on n32 as well.
4403 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4404 data types on n32 and n64.
4406 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4408 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4411 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4412 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4413 instead of __register_atfork.
4415 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4417 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4418 instead of malloc __printf_arginfo_table and __printf_function_table.
4419 Reported by John Reiser <jreiser@BitWagon.com>.
4421 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4423 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4424 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4426 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4429 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4431 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4434 2003-04-03 Roland McGrath <roland@redhat.com>
4436 * configure.in: Fix up use of compilation flags to match the build:
4437 For .s files, $ASFLAGS;
4438 For .S files, $CPPFLAGS $ASFLAGS;
4439 For .c files, $CFLAGS $CPPFLAGS;
4440 when linking, add $LDFLAGS.
4441 * configure: Regenerated.
4443 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4445 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4446 for atomic_compare_and_exchange_bool_acq failure.
4448 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4450 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4451 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4452 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4453 Remove declaration of pthread_atfork.
4455 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4457 * locale/iso-639.def: Add many more languages from the current ISO 639.
4459 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4460 * sysdeps/generic/semtimedop.c: New file.
4461 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4462 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4463 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4464 * sysvipc/Makefile (routines): Add semtimedop.
4465 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4466 * sysvipc/sys/sem.h: Declare semtimedop.
4468 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4470 * configure.in: Check for __register_frame_info in both
4472 * configure: Regenerated.
4474 2003-04-01 Roland McGrath <roland@redhat.com>
4476 * scripts/abilist.awk: Allow dots in soname suffix.
4478 * scripts/abilist.awk (emit): Fix bailout condition.
4480 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4482 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4485 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4486 register as input to asm.
4488 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4490 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4492 2003-04-01 Andreas Jaeger <aj@suse.de>
4494 * configure.in: Output as/ld as name if version is too old.
4496 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4498 * configure.in: Don't require an installed C library in the test
4499 for ".set" assembler support.
4501 2003-03-31 Roland McGrath <roland@redhat.com>
4503 * signal/tst-sigset.c: New file.
4504 * signal/Makefile (tests): Add it.
4506 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4508 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4509 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4510 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4511 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4512 (__SIGRTMAX): Adjust accordingly.
4513 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4514 second compatibility symbol set.
4515 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4517 2003-03-31 Andreas Schwab <schwab@suse.de>
4519 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4521 (atomic_decrement_and_test): Fix test.
4523 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4525 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4526 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4527 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4528 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4529 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4530 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4532 2003-03-30 Roland McGrath <roland@redhat.com>
4534 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4536 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4538 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4540 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4541 and remove a useless s/// command.
4543 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4545 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4546 directive into empty .prologue region to ensure that call-chain
4547 is terminated even for the first instruction.
4549 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4550 to terminate call-chain right from the get-go.
4552 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4553 stop bit between compare & branch.
4555 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4557 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4558 point correctly [PR libc/4993].
4560 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4561 netlink_open calls if netlink is known to not be available.
4563 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4565 * configure.in: Add mips64* support.
4566 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4567 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4568 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4569 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4570 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4571 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4572 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4573 * sysdeps/mips/Implies: Moved wordsize-32 to...
4574 * sysdeps/mips/mips32/Implies: New file.
4575 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4577 (ret, PSEUDO_END): Moved past END.
4578 (PSEUDO): Moved to...
4579 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4580 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4581 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4582 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4583 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4584 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4586 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4589 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4591 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4592 * inet/test-ifaddrs.c: Allow AF_PACKET.
4593 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4594 __ASSUME_NETLINK_SUPPORT.
4596 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4598 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4600 2003-03-26 H.J. Lu <hjl@gnu.org>
4602 * elf/vismod.h (getvarlocal1): Return const char **.
4603 (getvarinmod1): Likewise.
4604 (getvaritcpt1): Likewise.
4605 (getvarlocal2): Likewise.
4606 (getvarinmod2): Likewise.
4607 (getvaritcpt2): Likewise.
4608 (getvaritcpt3): Likewise.
4609 * elf/vismain.c (do_test): Adjusted.
4610 * elf/vismod1.c (getvarlocal1): Return address.
4611 (getvarinmod1): Likewise.
4612 (getvaritcpt1): Likewise.
4613 * elf/vismod2.c (getvarlocal2): Likewise.
4614 (getvarinmod2): Likewise.
4615 (getvaritcpt2): Likewise.
4616 * elf/vismod3.c (getvaritcpt3): Likewise.
4618 2003-03-28 Roland McGrath <roland@redhat.com>
4620 * elf/vismain.c (do_test): Print both addresses when they don't match.
4622 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4623 libname_regexp when parsing names, then produce output only
4624 for those matching the given regexps. In combine mode, save all
4625 stanzas for a final sorting by stanza header at the end.
4626 Emit a blank line between stanzas.
4628 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4629 emit a single output stream with lib name in stanza header lines.
4631 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4633 2003-03-27 Roland McGrath <roland@redhat.com>
4635 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4636 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4638 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4640 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4641 Return old value. Make asm output reg constraint earlyclobber.
4643 (__arch_compare_and_exchange_8_acq): ... this.
4644 (__arch_compare_and_exchange_val_16_acq):
4645 Return old value. Make asm output reg constraint earlyclobber.
4647 (__arch_compare_and_exchange_16_acq): ... this.
4648 (__arch_compare_and_exchange_val_32_acq):
4649 Return old value. Make asm output reg constraint earlyclobber.
4651 (__arch_compare_and_exchange_32_acq): ... this.
4652 (__arch_compare_and_exchange_val_64_acq):
4654 (__arch_compare_and_exchange_64_acq): ... this.
4655 (atomic_exchange_and_add): Use local variables and
4656 __arch_compare_and_exchange_val_64_acq.
4657 (atomic_add): Likewise.
4658 (atomic_add_negative, atomic_add_zero): Use local variables.
4660 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4662 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4664 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4666 * Makefile: Remove libmd5crypt goal.
4668 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4670 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4671 special handling of relocations against local symbols.
4673 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4675 * sysdeps/powerpc/bits/atomic.h
4676 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4677 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4678 Define PPC64 specific version.
4679 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4680 Change (mem) constraint to "b".
4681 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4682 Replace addi with add. Change (value) contraint to "r".
4683 Change (mem) constraint to "b".
4684 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4685 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4686 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4687 (__arch_atomic_decrement_if_positive_32): New macro.
4688 (atomic_decrement_if_positive): Use __arch* macros.
4690 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4692 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4694 2003-03-27 Roland McGrath <roland@redhat.com>
4696 * scripts/rpm2dynsym.sh: New file.
4697 * Makefile (distribute): Add it.
4699 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4701 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4702 ar.unat before returning. Add missing .mem.offset directives
4703 to ensure file gets assembled without warnings.
4704 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4706 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4708 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4709 Return -1 instead of 0 if clock_getres failed.
4711 2003-03-27 Roland McGrath <roland@redhat.com>
4713 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4714 header lines and write out foo.symlist files for each foo.so.NN listed.
4716 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4717 This symbol is exported, and we don't want to hide it.
4718 Add libc_hidden_proto instead.
4719 (_IO_file_jumps): Add libc_hidden_proto.
4720 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4722 * libio/fileops.c (_IO_file_jumps): Likewise.
4723 * libio/stdfiles.c: Don't use INTUSE on them.
4724 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4725 * libio/iofopen.c (__fopen_internal): Likewise.
4726 * libio/freopen.c (freopen): Likewise.
4727 * libio/freopen64.c (freopen64): Likewise.
4728 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4730 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4731 Ignore exit status from diff.
4732 * configure.in (enable_check_abi): Document possible value "warn".
4733 Change default to no for now.
4734 * configure: Regenerated.
4736 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4737 macro calls and a #include <stub-tag.h> at the end.
4738 * Makerules ($(objpfx)stubs): Tweak sed commands.
4740 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4741 caller column for *xattr syscalls, since they are in sysdeps/generic.
4743 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4744 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4746 2003-03-26 Roland McGrath <roland@redhat.com>
4748 * Makerules (check-abi-config): Use /thread instead of /tls when
4749 use-thread and not just use-tls is set.
4751 * Makerules (update-abi): Put quotes around $(update-abi-config).
4753 * elf/Makefile (check-abi): Depend on check-abi-ld.
4754 (update-abi): Depend on update-abi-ld.
4756 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4758 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4759 do not check for errors (unless testing for 32bit variant).
4760 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4762 2003-03-27 Philip Blundell <philb@gnu.org>
4764 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4765 unconditional mov. Remove nop.
4767 * sysdeps/unix/sysv/linux/kernel-features.h
4768 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4769 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4770 when __ASSUME_VFORK_SYSCALL is defined.
4771 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4772 __ASSUME_MMAP2_SYSCALL.
4773 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4774 __ASSUME_REALTIME_SIGNALS.
4776 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4778 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4779 only if DL_NO_COPY_RELOCS is not defined.
4780 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4782 2003-03-26 Roland McGrath <roland@redhat.com>
4784 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4785 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4786 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4787 (sysdep_routines): Add stub-syscalls.
4788 ($(objpfx)stub-syscalls.c): New target.
4789 (generated): Add stub-syscalls.c.
4791 * tls.make.c: Also define use-tls according to USE_TLS macro.
4793 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4795 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4796 no-op padding element.
4797 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4798 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4799 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4800 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4802 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4804 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4805 condition check for the return value of getgroups32.
4807 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4809 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4811 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4812 PSEUDO_END_NOERRNO): Define.
4813 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4814 Define to PSEUDO_END.
4816 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4818 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4820 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4822 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4823 * iconvdata/bug-iconv4.c: New file.
4824 * iconvdata/Makefile (tests): Add bug-iconv4.
4826 2003-03-25 H.J. Lu <hjl@gnu.org>
4828 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4830 (_dl_lookup_versioned_symbol): Likewise.
4832 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4834 * csu/tst-atomic.c (do_test): Add some new
4835 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4836 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4837 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4838 Prefix local variable so that it doesn't clash with the one
4839 in atomic_exchange_and_add.
4840 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4842 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4843 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4844 value into register.
4845 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4846 Cast newval to long.
4847 * sysdeps/x86_64/bits/atomic.h
4848 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4850 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4851 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4852 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4853 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4855 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4857 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4858 bit from backtrace addresses.
4860 2003-03-21 Andreas Schwab <schwab@suse.de>
4862 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4865 2003-03-25 Roland McGrath <roland@redhat.com>
4867 * config.make.in (enable-check-abi): New variable from configure.
4868 * configure.in (enable_check_abi): New substituted variable,
4869 controlled by --{enable,disable}-check-abi (default yes).
4870 * configure: Regenerated.
4871 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4872 on check-abi dependency.
4874 2003-03-26 Andreas Schwab <schwab@suse.de>
4876 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4877 * include/atomic.h: Likewise.
4879 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4881 2003-03-25 Roland McGrath <roland@redhat.com>
4883 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4884 (__arch_atomic_exchange_64): New macro.
4885 (atomic_exchange): Use them.
4886 (__arch_atomic_exchange_and_add_32): New macro.
4887 (__arch_atomic_exchange_and_add_64): New macro.
4888 (atomic_exchange_and_add): Use them.
4889 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4891 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4893 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4895 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4897 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4898 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4899 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4900 to decide whether to add padding.
4901 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4902 to decide whether to add padding.
4903 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4904 old_kernel_sigaction): Likewise.
4906 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4908 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4909 atomic_add_zero were supposed to do.
4910 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4913 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4914 This matches the new timer implementation.
4915 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4917 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4919 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4920 timer info for what the kernel provides these days.
4921 (struct sigevent): Add _tid field.
4922 Define SIGEV_THREAD_ID.
4923 Remove struct __pthread_attr_s forward declaration.
4924 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4925 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4926 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4927 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4929 * Versions.def (librt): Add GLIBC_2.3.3.
4931 * abilist/libpthread.abilist: Update for nptl.
4933 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4935 * inet/netinet/in.h: Add IPPROTO_SCTP.
4937 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4939 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4941 2003-03-24 Philip Blundell <philb@gnu.org>
4943 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4944 Remove a1 from clobber list.
4946 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4948 * timezone/antarctica: Update from tzdata2003a.
4949 * timezone/asia: Likewise.
4950 * timezone/australasia: Likewise.
4951 * timezone/europe: Likewise.
4952 * timezone/iso3166.tab: Likewise.
4953 * timezone/northamerica: Likewise.
4954 * timezone/southamerica: Likewise.
4955 * timezone/zone.tab: Likewise.
4957 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4959 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4961 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4963 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4964 unwanted expansion by definining to ret. Patch by Ian Wienand.
4966 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4967 the parameter description to denote no error checking. Generate
4968 appropriate pseudo asm code.
4969 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4970 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4971 getpgrp, and getppid with 'E'.
4972 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4973 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4974 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4975 * sysdeps/unix/sysdep.h: Likewise.
4976 * sysdeps/unix/alpha/sysdep.h: Likewise.
4977 * sysdeps/unix/sparc/sysdep.h: Likewise.
4978 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4979 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4980 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4981 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4982 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4983 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4984 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4985 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4986 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4987 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4988 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4990 2003-03-23 Roland McGrath <roland@redhat.com>
4992 * Makeconfig (+includes): Don't use $(last-includes).
4994 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4996 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4997 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4999 2003-03-23 Jakub Jelinek <jakub@redhat.com>
5001 * sysdeps/alpha/fpu/libm-test-ulps: Update.
5002 * sysdeps/arm/libm-test-ulps: Update.
5003 * sysdeps/hppa/fpu/libm-test-ulps: Update.
5004 * sysdeps/ia64/fpu/libm-test-ulps: Update.
5005 * sysdeps/mips/fpu/libm-test-ulps: Update.
5006 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5007 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5008 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
5009 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
5010 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
5011 * sysdeps/s390/fpu/libm-test-ulps: Update.
5012 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5014 2003-03-22 Roland McGrath <roland@redhat.com>
5016 * include/atomic.h: Put parens around all macro arguments.
5017 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
5018 (atomic_compare_and_exchange_val_acq): Use it.
5019 (atomic_compare_and_exchange_bool_acq): Likewise.
5020 (atomic_increment_and_test): Invert sense of test.
5021 (atomic_decrement_and_test): Likewise.
5022 * csu/tst-atomic.c: Update those tests to match.
5024 2003-03-22 Jakub Jelinek <jakub@redhat.com>
5026 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
5027 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
5028 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
5029 __oldval variable in the macro, since it might be macro argument.
5030 (atomic_decrement_if_positive): Initialize __memp, remove setting
5031 of non-existent variable.
5032 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
5033 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
5034 using atomic_compare_and_exchange_val_acq.
5035 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
5036 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
5038 (__arch_compare_and_exchange_bool_8_acq): ... this.
5039 (__arch_compare_and_exchange_val_16_acq): Renamed from...
5040 (__arch_compare_and_exchange_bool_16_acq): ... this.
5041 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
5043 (__arch_compare_and_exchange_bool_32_acq): ... this.
5044 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
5046 (__arch_compare_and_exchange_bool_64_acq): ... this.
5047 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
5048 variables types instead of assuming int.
5049 Change prefix of local variables to __arch.
5050 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
5052 (atomic_compare_and_exchange_val_acq,
5053 atomic_compare_and_exchange_bool_acq): Define.
5055 * csu/tst-atomic.c: New test.
5056 * csu/tst-atomic-long.c: New test.
5057 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
5059 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
5061 * sysdeps/s390/Versions: Add trailing newline.
5063 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
5064 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
5066 2003-03-22 Andreas Schwab <schwab@suse.de>
5068 * sysdeps/m68k/fpu/libm-test-ulps: Update.
5070 * sysdeps/m68k/m68020/bits/atomic.h: New file.
5071 * sysdeps/m68k/m68020/atomicity.h: Removed.
5073 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
5075 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
5076 data structures and macros. Protect from multiple inclusion.
5078 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
5081 2003-03-21 Andreas Jaeger <aj@suse.de>
5083 * sysdeps/i386/fpu/libm-test-ulps: Update.
5085 * math/libm-test.inc (tgamma_test): Recompute some constants with
5086 36 digits precision.
5087 (lgamma_test): Likewise.
5088 (ccos_test): Likewise.
5089 (ccosh_test): Likewise.
5090 (clog10_test): Likewise.
5091 (csin_test): Likewise.
5092 (csinh_test): Likewise.
5093 (ctan_test): Likewise.
5094 (ctanh_test): Likewise.
5096 2003-03-19 Jakub Jelinek <jakub@redhat.com>
5098 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
5100 2003-03-21 Roland McGrath <roland@redhat.com>
5102 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
5103 constraint to permit non-constant BIT argument.
5104 (atomic_bit_test_set): Likewise.
5105 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
5106 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
5107 For quadword case, use "i" constraint if __builtin_constant_p and < 32
5108 or "r" constraint otherwise.
5110 * configure.in: Move AC_PROG_CC and other program-finding before all
5112 * configure: Regenerated.
5114 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
5116 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
5117 unaligned copying of 8-15 bytes. From Chris Demetriou
5118 <cgd@broadcom.com>. Fix label names.
5119 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
5120 change as to memcpy.S.
5121 * sysdeps/mips/memcpy.S: Formatting changes.
5122 * sysdeps/mips/memset.S: Likewise.
5124 2003-03-21 Roland McGrath <roland@redhat.com>
5126 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
5128 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
5130 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
5131 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
5133 2003-03-21 Roland McGrath <roland@redhat.com>
5135 * sysdeps/i386/i486/bits/atomic.h
5136 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
5137 version of the macro to avoid compile-time warnings.
5138 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
5139 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
5140 (atomic_increment, atomic_decrement): Likewise.
5142 2003-03-21 Ulrich Drepper <drepper@redhat.com>
5144 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
5145 * sysdeps/i386/i486/bits/atomic.h: Likewise.
5147 2003-03-21 Roland McGrath <roland@redhat.com>
5149 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
5151 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5153 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
5154 atomic_compare_and_exchange_val_rel,
5155 atomic_compare_and_exchange_bool_acq, and
5156 atomic_compare_and_exchange_bool_rel instead of
5157 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
5158 * sysdeps/i386/i486/bits/atomic.h: Define
5159 __arch_compare_and_exchange_val_*_acq instead of
5160 __arch_compare_and_exchange_*_acq.
5161 * sysdeps/x86_64/bits/atomic.h: Likewise.
5162 * sysdeps/ia64/bits/atomic.h: Define
5163 __arch_compare_and_exchange_bool_*_acq instead of
5164 __arch_compare_and_exchange_*_acq.
5165 * sysdeps/powerpc/bits/atomic.h: Likewise.
5166 * sysdeps/s390/bits/atomic.h: Likewise.
5167 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
5168 * malloc/set-freeres.c: Likewise.
5169 * nscd/cache.c: Likewise.
5170 * stdlib/cxa_finalize.c: Likewise.
5171 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5173 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5175 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
5176 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
5177 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
5179 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
5180 into high and low halves on n64.
5181 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5182 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5183 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5185 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5187 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
5188 correct atomic_compare_and_exchange_acq semantics.
5190 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5192 * sysdeps/mips/ieee754.h: Remove excess #endif.
5194 2003-03-20 Roland McGrath <roland@redhat.com>
5196 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
5197 variable. Remove superfluous memory clobber.
5199 * include/atomic.h: Syntax braino fix.
5201 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
5202 in decimal. Don't bail if niced at start. Just check that nice call
5203 bumps the total at all.
5205 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5207 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
5208 including pc, gp, sp and fp, as long long.
5209 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
5210 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
5211 Add gp argument, and set gp in the jmpbuf to it.
5212 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
5214 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5216 * include/atomic.h: Define atomic_exchange and
5217 atomic_decrement_if_positive if not already defined. Add some
5219 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
5220 * sysdeps/x86_64/bits/atomic.h: Likewise.
5221 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
5222 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
5223 atomic_exchange, atomic_exchange_and_add, and
5224 atomic_decrement_if_positive
5226 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5228 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
5229 with a single instruction.
5231 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
5233 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
5235 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
5236 Word before comparing with gotsym. Take reloc_addr argument as
5237 void*. Remove the code added for the compiler to drop any
5238 alignment assumptions.
5240 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5242 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
5243 * include/atomic.h: New file.
5244 * sysdeps/i386/i486/bits/atomic.h: New file.
5245 * sysdeps/x86_64/bits/atomic.h: New file.
5246 * sysdeps/s390/bits/atomic.h: New file.
5247 * sysdeps/sh/bits/atomic.h: New file.
5248 * sysdeps/ia64/bits/atomic.h: New file.
5249 * sysdeps/powerpc/bits/atomic.h: New file.
5250 * sysdeps/generic/bits/atomic.h: New file.
5251 * sysdeps/i386/i486/atomicity.h: Removed.
5252 * sysdeps/x86_64/atomicity.h: Removed.
5253 * sysdeps/s390/s390-32/atomicity.h: Removed.
5254 * sysdeps/s390/s390-64/atomicity.h: Removed.
5255 * sysdeps/ia64/atomicity.h: Removed.
5256 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
5257 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
5258 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
5259 use of macros from atomicity.h to new names and semantics.
5260 * gmon_mcount.c: Likewise.
5261 * malloc/set-freeres.c: Likewise.
5262 * nscd/cache.c: Likewise.
5263 * stdlib/cxa_finalize.c: Likewise.
5264 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5266 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5268 * sysdeps/mips/ieee754.h: New file, suitable to replace both
5269 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
5270 mips-specific for now.
5272 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5274 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
5275 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
5276 * stdlib/tst-strtod.c: Add test for the bug.
5278 * posix/tst-nice.c (do_test): Remove invalid of return value.
5279 Don't run test if initial level != 0.
5281 2003-03-19 Amos Waterland <apw@us.ibm.com>
5283 * posix/tst-nice.c: New file.
5284 * posix/Makefile (tests): Add tst-nice.
5286 2003-03-18 Roland McGrath <roland@redhat.com>
5288 * abilist: New directory of libfoo.abilist files maintained using
5289 scripts/merge-abilist.awk and "make update-abi" rules.
5290 * Makefile (distribute): Add abilist/*.abilist.
5291 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
5292 Depend on check-abi.
5294 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
5295 * configure: Regenerated.
5297 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
5299 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5301 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
5304 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
5306 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
5308 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5310 * Versions.def: Add GLIBC_2.3.3 for libpthread.
5312 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5314 * sysdeps/generic/libc-start.c [!SHARED &&
5315 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
5317 2003-03-17 Roland McGrath <roland@redhat.com>
5319 * include/ctype.h: Revert last change.
5321 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5323 * argp/tst-argp1.c: Use test-skeleton.c.
5324 * locale/tst-C-locale.c: Likewise.
5326 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
5328 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5329 * sysdeps/mips/mips64/n64/Implies: New file.
5330 * sysdeps/mips/mips64/n64/Makefile: New file.
5331 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5332 * sysdeps/mips/mips64/n32/Implies: New file.
5333 * sysdeps/mips/mips64/n32/Makefile: New file.
5334 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5335 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5336 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5337 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5338 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5339 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5340 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5341 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5342 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5343 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5344 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5345 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5346 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5347 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5349 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5350 lib64 for mips64/n64 and lib32 for mips64/n32.
5351 (ldd_rewrite_script): Needed for all mips64 configurations.
5352 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5353 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5354 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5356 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5359 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5360 asm/unistd.h into asm-unistd.h.
5361 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5362 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5364 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5365 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5368 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5369 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5370 long type for registers on n32.
5372 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5374 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5375 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5376 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5377 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5378 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5379 * sysdeps/unix/mips/brk.S: Likewise.
5380 * sysdeps/unix/mips/sysdep.S: Likewise.
5381 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5382 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5383 * sysdeps/mips/sys/ucontext.h: Likewise.
5384 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5385 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5386 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5387 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5388 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5389 * sysdeps/mips/mips64/setjmp.S: Likewise.
5390 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5391 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5394 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5396 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5397 not at function level.
5398 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5400 2003-03-15 Roland McGrath <roland@redhat.com>
5402 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5403 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5404 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5405 * nis/nis_table.c (__create_ib_request): Likewise.
5407 * posix/fnmatch_loop.c: Add casts for signedness.
5408 * nss/nss_files/files-hosts.c: Likewise.
5409 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5410 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5411 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5413 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5414 get errors into the log file.
5415 (libc_cv_broken_visibility_attribute): Likewise.
5416 (libc_cv_broken_alias_attribute): Likewise.
5417 (libc_cv_asm_weak_directive): Likewise.
5418 (libc_cv_need_minus_P): Likewise.
5419 (libc_cv_dot_text): Likewise.
5420 (libc_cv_asm_global_directive): Likewise.
5421 (libc_cv_asm_type_prefix): Likewise.
5422 * configure: Regenerated.
5424 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5425 * nscd/nscd.h: Update decl.
5427 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5428 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5429 * elf/dl-close.c (_dl_close): Likewise.
5430 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5431 * io/fts.c (fts_build): Likewise.
5432 * elf/cache.c (add_to_cache): Likewise.
5433 * locale/programs/locarchive.c (show_archive_content): Likewise.
5435 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5437 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5439 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5441 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5443 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5444 code for most parts.
5446 2003-03-15 Roland McGrath <roland@redhat.com>
5448 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5449 * sysdeps/unix/sysv/linux/system.c: ... here.
5450 (FORK): Don't #define if already #define'd.
5451 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5452 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5453 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5455 * dlfcn/tst-dlinfo.c: New file.
5456 * dlfcn/Makefile (tests): Add tst-dlinfo.
5457 ($(objpfx)tst-dlinfo): New target.
5459 * dlfcn/dlinfo.c: New file.
5460 * dlfcn/Makefile (libdl-routines): Add it.
5461 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5462 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5463 [__USE_GNU] (RTLD_DI_*): New enum constants.
5464 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5465 * elf/dl-load.c (cache_rpath): New inline function.
5466 (_dl_map_object): Use it.
5467 (_dl_rtld_di_serinfo): New function.
5468 * sysdeps/generic/ldsodefs.h: Declare it.
5469 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5471 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5472 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5473 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5474 (__libc_start_main): Just call the generic one for most of the work.
5476 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5477 static function by that name instead of BP_SYM (__libc_start_main).
5478 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5479 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5480 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5482 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5483 Use this macro for extra AT_* cases.
5484 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5485 New macro, guts from ...
5486 (__aux_init_cache): ... here, function removed.
5487 (DL_PLATFORM_INIT): Don't define this.
5489 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5490 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5492 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5494 2003-03-14 Roland McGrath <roland@redhat.com>
5496 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5498 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5500 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5502 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5503 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5505 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5507 * sysdeps/mips/fpu/bits/mathdef.h: New.
5508 (__NO_LONG_DOUBLE_MATH): Define for o32.
5510 * sysdeps/mips/sys/asm.h: Formatting changes.
5511 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5512 (CPADD): Define for all of them.
5513 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5514 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5515 NARGSAVE): Define per ABI spec.
5516 (END): Don't redefine.
5517 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5518 LONG_SRAV): Remove duplicate definitions.
5519 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5520 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5521 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5522 (PTR_LA): Define for all 3 ABIs.
5524 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5525 (elf_machine_matches_host): Prevent linking of o32 and n32
5527 (elf_machine_dynamic): Document assumption on $gp.
5528 (STRINGXP, STRINGXV, STRINGV_): New macros.
5529 (elf_machine_load_address): Use them to stringize PTR_LA and
5531 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5532 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5533 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5534 (__dl_runtime_resolve): Cast the symtab initializer to the
5536 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5537 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5538 Handle 64-bit R_MIPS_REL composite relocation and accept
5539 R_MIPS_64 relocations to shift addend size to 64 bits.
5540 Document assumption regarding local GOT entries. Document
5541 backward-compatibility departing from the ABI behavior in
5542 applying relocations that reference section symbols, no longer
5543 used. Support relocations to mis-aligned offsets.
5544 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5546 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5548 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5549 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5550 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5551 restore_rt functions. Use them.
5553 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5554 .set mips2 on new abis.
5556 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5558 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5559 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5560 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5561 * sysdeps/posix/pathconf.c: Likewise.
5562 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5563 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5564 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5566 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5569 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5571 * include/gmp.h: Include/gmp-mparam.h.
5572 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5575 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5576 ELF_MACHINE_NO_RELA is set.
5577 * elf/rtld.c (dl_main): No prelink support for REL-only.
5579 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5580 FLAG_MIPS64_LIBN64): Define.
5581 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5583 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5584 * sysdeps/mips/memset.S: Likewise.
5585 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5586 depending on the ABI.
5588 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5589 Don't .set mips2 on new abi.
5590 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5592 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5594 2003-03-13 Roland McGrath <roland@redhat.com>
5596 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5597 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5599 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5601 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5603 * stdlib/fpioconst.c: Likewise.
5604 * stdlib/strtod.c: Likewise.
5606 * sysdeps/mips/add_n.S: Use L macro for local labels.
5607 * sysdeps/mips/addmul_1.S: Likewise.
5608 * sysdeps/mips/lshift.S: Likewise.
5609 * sysdeps/mips/memcpy.S: Likewise.
5610 * sysdeps/mips/memset.S: Likewise.
5611 * sysdeps/mips/mul_1.S: Likewise.
5612 * sysdeps/mips/rshift.S: Likewise.
5613 * sysdeps/mips/sub_n.S: Likewise.
5614 * sysdeps/mips/submul_1.S: Likewise.
5615 * sysdeps/mips/mips64/add_n.S: Likewise.
5616 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5617 * sysdeps/mips/mips64/lshift.S: Likewise.
5618 * sysdeps/mips/mips64/mul_1.S: Likewise.
5619 * sysdeps/mips/mips64/rshift.S: Likewise.
5620 * sysdeps/mips/mips64/sub_n.S: Likewise.
5621 * sysdeps/mips/mips64/submul_1.S: Likewise.
5622 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5623 conventions. Define END as in sys/asm.h.
5624 * sysdeps/unix/mips/sysdep.S: Likewise.
5625 * sysdeps/unix/mips/wait.S: Likewise.
5626 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5628 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5629 Cast shifted values that may be too narrow to mp_limb_t.
5630 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5632 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5634 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5635 (__mpn_extract_long_double): Likewise.
5636 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5637 (__mpn_construct_long_double): Likewise.
5638 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5639 (__mpn_extract_long_double): Likewise.
5640 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5641 (__mpn_construct_long_double): Likewise.
5643 2003-03-13 Roland McGrath <roland@redhat.com>
5645 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5646 entries in the map file match too.
5648 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5650 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5651 label .Lthread_start since current binutils don't allow branches
5652 to globally visible symbols.
5654 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5656 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5657 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5658 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5659 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5660 clobbered by the syscall.
5661 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5662 ASM_ARGS_6): Change constraints from r to index of corresponding
5664 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5665 ptid and ctid to match kernel.
5666 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5668 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5670 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5671 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5672 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5674 2003-03-11 Roland McGrath <roland@redhat.com>
5676 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5677 Check SYM_MAP rather than SYM as definedness check.
5678 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5679 Don't handle R_PPC64_REL24 reloc.
5680 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5682 * sysdeps/powerpc/powerpc64/dl-machine.h
5683 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5684 block, so we cover all the TPREL16* flavors without 6 ||s.
5685 [USE_TLS] (elf_machine_tprel): New function.
5686 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5687 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5688 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5690 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5692 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5693 instead of jalr to invoke subroutine so restoring the $gp register
5696 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5698 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5699 to __NR_pread if not defined.
5700 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5702 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5704 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5705 * sysdeps/unix/sysv/linux/kernel-features.h
5706 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5709 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5711 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5712 allocate space even for the trailing '/'.
5713 Reported by John Reiser <jreiser@BitWagon.com>.
5715 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5716 ASM_CLOBBERS_6): Define.
5717 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5718 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5719 to match IA-32 order.
5720 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5722 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5725 Copy extra params for NPTL to registers used in clone syscall.
5727 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5729 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5730 call names for pread and pwrite.
5732 2003-03-10 Roland McGrath <roland@redhat.com>
5734 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5735 * dlfcn/dladdr1.c: New file.
5736 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5737 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5738 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5739 a const ElfNN_Sym ** to fill in.
5740 * include/dlfcn.h: Update decl. Include <link.h>.
5741 * dlfcn/dladdr.c (dladdr): Update caller.
5742 * malloc/mtrace.c (tr_where): Likewise.
5743 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5744 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5745 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5746 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5748 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5750 * sysdeps/unix/Makefile (compile-syscall): New variable.
5751 Pass -g0 to compiler for assembling syscall stubs from stdin.
5753 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5754 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5755 Define these to do nothing.
5757 * configure.in: New check for -g on .S files.
5758 * configure: Regenerated.
5759 * config.make.in (have-cpp-asm-debuginfo): New variable.
5760 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5761 * Makeconfig (ASFLAGS): New variable, if undefined and
5762 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5763 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5765 2003-03-09 Roland McGrath <roland@redhat.com>
5767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5768 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5770 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5772 * po/fi.po: Update from translation team.
5773 * po/ca.po: Likewise.
5774 * po/da.po: Likewise.
5776 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5778 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5780 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5782 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5784 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5786 2003-03-07 Roland McGrath <roland@redhat.com>
5788 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5789 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5791 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5793 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5794 stubs, we have INLINE_SYSCALL.
5795 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5798 2003-03-06 Roland McGrath <roland@redhat.com>
5800 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5801 permanent extent and add a comment about testing its implicit teardown.
5803 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5805 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5807 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5809 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5810 reversed __builtin_expect expectation.
5812 2003-03-05 Roland McGrath <roland@redhat.com>
5814 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5815 * libio/swscanf.c: Likewise.
5816 * libio/swprintf.c: Likewise.
5818 2003-03-04 Roland McGrath <roland@redhat.com>
5820 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5821 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5822 R_PPC64_JMP_SLOT as well as TLS cases.
5823 (BIT_INSERT): Move parenthesis where it ought to have been.
5824 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5826 * posix/confstr.c (confstr): Correct STRING_LEN values for
5827 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5828 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5830 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5832 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5834 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5836 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5839 * po/sv.po: Update from translation team.
5841 2003-03-04 Andreas Jaeger <aj@suse.de>
5842 Ulrich Drepper <drepper@redhat.com>
5844 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5846 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5848 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5850 * po/tr.po: Update from translation team.
5852 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5853 are holes between the segments. Only call mprotect to set
5854 proection to PROT_NONE if there are some.
5856 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5859 * include/sched.h (__clone2): Use ... instead of adding all the
5862 2003-03-03 Roland McGrath <roland@redhat.com>
5864 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5866 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5867 PI_STATIC_AND_HIDDEN.
5869 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5871 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5873 * include/sched.h: Update clone2 prototype.
5875 2003-03-03 Andreas Jaeger <aj@suse.de>
5877 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5878 (llrint): Use it to correct return type.
5881 (llround): Likewise.
5883 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5885 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5888 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5889 if ccs parameter isn't valid. Reported by Andreas Schwab.
5891 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5893 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5894 for system call numbers > 255.
5895 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5896 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5897 INTERNAL_SYSCALL): Likewise.
5898 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5899 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5900 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5901 INTERNAL_SYSCALL): Likewise.
5903 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5905 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5906 array if it is the initial dtv.
5908 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5910 * po/es.po: Update from translation team.
5911 * po/fr.po: Likewise.
5912 * po/gl.po: Likewise.
5913 * po/sk.po: Likewise.
5914 * po/sv.po: Likewise.
5916 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5917 * misc/sys/mman.h: Add prototype for remap_file_pages.
5918 * sysdeps/generic/remap_file_pages.c: New file.
5919 * misc/Makefile (routines): Add remap_file_pages.
5920 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5922 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5924 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5925 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5926 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5927 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5928 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5929 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5930 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5931 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5933 2003-03-03 Roland McGrath <roland@redhat.com>
5935 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5936 * sysdeps/ia64/dl-machine.h: Likewise.
5937 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5939 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5941 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5942 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5943 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5944 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5945 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5946 * Versions.def (libc): Add GLIBC_2.3.3 set.
5948 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5949 * sysdeps/ia64/dl-machine.h: Update decl.
5951 2003-03-03 Andreas Jaeger <aj@suse.de>
5953 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5955 2003-03-02 Roland McGrath <roland@redhat.com>
5957 * scripts/abilist.awk: Reject data items with apparent 0 size.
5959 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5960 after foo.* as if it were a duplicate.
5962 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5964 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5966 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5968 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5969 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5970 if not already defined. Use SYSDEP_GETRES to allow other files to
5971 provide alternative implementations.
5972 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5973 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5974 if not already defined. Use SYSDEP_GETTIME to allow other files to
5975 provide alternative implementations.
5976 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5977 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5978 if not already defined. Use SYSDEP_GETTIME to allow other files to
5979 provide alternative implementations.
5980 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5981 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5982 other files to provide alternative implementations. Rearrange
5983 tests for invalid parameters.
5984 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5985 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5986 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5987 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5988 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5989 _POSIX_MONOTONIC_CLOCK.
5991 2003-03-02 Roland McGrath <roland@redhat.com>
5993 * scripts/merge-abilist.awk: More checks for bogus input.
5994 Uniquify duplicate config names.
5996 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5998 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5999 from dl_reloc_overflow, make global.
6000 (__process_machine_rela): Update callers.
6001 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
6002 Add attribute_hidden to __process_machine_rela decl.
6003 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
6005 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
6008 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
6009 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
6010 (elf_machine_rela): Clean up.
6012 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
6014 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
6015 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
6016 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
6017 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
6018 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
6019 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
6022 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
6023 macros out of [SHARED].
6024 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
6026 * elf/elf.h: Define R_PPC_* relocs for TLS support.
6027 Clean up R_PPC64_* macro definition comments.
6029 * configure.in: In "running configure fragment for" message,
6030 omit $srcdir from the name if we prepended it.
6031 * configure: Regenerated.
6033 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
6034 From Jakub Jelinek <jakub@redhat.com>.
6036 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
6037 which duplicated the O_DIRECT defn.
6039 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
6041 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
6044 2003-03-01 Andreas Schwab <schwab@suse.de>
6046 * resolv/Makefile (tests): Don't depend on
6047 $(objpfx)mtrace-tst-leaks when cross compiling.
6049 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
6050 __libc_stack_end through GOT since it is a global symbol.
6052 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
6054 * argp/argp.h: Fix a typo.
6055 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
6057 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
6059 2003-02-27 Pat Rankin <rankin@pactechdata.com>
6061 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
6063 (get_subexp): Likewise.
6065 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
6067 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
6069 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
6071 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
6073 2003-02-27 Roland McGrath <roland@redhat.com>
6075 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
6076 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
6077 repeat it and avoids the test for the common case.
6078 Clean up and fix calculations for TLS relocs.
6080 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
6081 * sysdeps/powerpc/dl-tls.h: ... here.
6082 (TLS_TP_OFFSET): New macro.
6084 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
6086 2003-02-27 Ulrich Drepper <drepper@redhat.com>
6088 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
6089 code generation changes in recent gcc.
6091 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
6093 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
6094 Rename argument to avoid symbol conflict.
6096 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
6097 [__USE_GNU] (O_DIRECT): New macro.
6099 2003-02-24 David Mosberger <davidm@hpl.hp.com>
6101 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
6104 2003-02-27 Ulrich Drepper <drepper@redhat.com>
6106 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
6107 initializer anymore now that res_thread_freeres is more careful.
6109 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
6110 except the PKTINFO. Reset interface in PKTINFO.
6111 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
6113 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
6115 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
6116 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
6118 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
6119 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
6120 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
6121 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
6123 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
6124 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
6126 2003-02-25 Andreas Jaeger <aj@suse.de>
6128 * manual/memory.texi (Malloc Tunable Parameters): Clarify
6129 behaviour of M_MMAP_THRESHOLD.
6131 2003-02-25 Roland McGrath <roland@redhat.com>
6133 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
6134 zero, inidicating _res was not initialized yet.
6136 2003-02-24 Ulrich Drepper <drepper@redhat.com>
6138 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
6141 2003-02-24 Roland McGrath <roland@redhat.com>
6143 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
6145 2003-02-23 Roland McGrath <roland@redhat.com>
6147 * sysdeps/posix/pause.c: New file.
6148 * sysdeps/unix/common/pause.c: File removed.
6150 2003-02-23 Ulrich Drepper <drepper@redhat.com>
6152 * sysdeps/generic/bits/confname.h: Remove #ifs.
6154 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
6155 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
6157 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
6160 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6162 * sysdeps/generic/dl-sysdep.c: Avoid warning.
6164 2003-02-22 Roland McGrath <roland@redhat.com>
6166 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
6167 * resolv/Makefile (tests): Add tst-leaks.
6168 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
6169 (tst-leaks-ENV): New variable.
6170 ($(objpfx)mtrace-tst-leaks): New target.
6171 (tests): Depend on it.
6173 * include/libc-internal.h: Declare __libc_thread_freeres.
6175 * Makerules: Fix last change to use $($(subdir)-version) when set.
6177 * Makerules (install-lib-nosubdir): Depend on installed
6178 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
6179 regardless of the libfoo.so target's dependencies.
6181 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
6182 Use that in $(MAKE) calls.
6184 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6186 * catgets/gencat.c (read_input_file): Collision between
6187 auto-assigned numbers and user-defined nubmers is not fatal.
6189 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
6190 * catgets/Makefile: Add rules to run test2.msg test.
6191 * catgets/test2.msg: New file.
6193 * catgets/gencat.c (main): Return 1 if messages have been printed.
6195 * iconv/iconv_prog.c (main): Unify messages.
6197 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
6198 when shifting retval.
6199 * stdlib/tst-strtod.c (main): Add strtold test case.
6200 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6202 2003-02-21 Roland McGrath <roland@redhat.com>
6204 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
6205 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
6206 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
6208 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
6209 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
6210 (res_thread_freeres): New function, on __libc_thread_subfreeres and
6213 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
6214 * malloc/thread-freeres.c: New file.
6215 * malloc/Makefile (aux): Add it.
6216 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
6217 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
6218 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
6220 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
6221 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
6223 2003-02-21 Roland McGrath <roland@frob.com>
6225 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
6227 * iconvdata/Makefile (tests): Add bug-iconv3 only if
6228 [$(have-thread-library) = yes].
6230 2003-02-21 Ulrich Drepper <drepper@redhat.com>
6232 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
6234 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
6235 not chechk for errors (unless testing for 32bit variant).
6236 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
6237 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
6238 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
6240 2003-02-21 Jakub Jelinek <jakub@redhat.com>
6242 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
6243 Check for signed overflow, not unsigned.
6245 * sysdeps/sparc/sparc64/elf/configure.in: New file.
6246 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
6247 Use -fcall-used-g6, not -fcall-used-g7.
6249 2003-02-21 Andreas Jaeger <aj@suse.de>
6251 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
6254 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
6255 clear whole mxcsr but only exceptions.
6257 2003-02-21 Roland McGrath <roland@redhat.com>
6259 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
6260 for libfoo.so that need $(make-link) rules.
6262 2003-02-21 Roland McGrath <roland@frob.com>
6264 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
6265 to match existing struct stat layout in mig protocols.
6267 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6269 * version.h (VERSION): Bump to 2.3.2.
6271 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
6272 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
6274 * sysdeps/generic/Dist: Add sysdep-cancel.h.
6275 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
6276 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
6277 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
6278 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
6279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
6281 * Makefile (distribute): Add include/stubs-prologue.h,
6282 include/gnu/stubs.h, scripts/merge-abilist.awk, and
6283 scripts/extract-abilist.awk.
6285 2003-02-20 Roland McGrath <roland@redhat.com>
6287 * math/Makefile (distribute): Don't add generated files.
6289 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6291 * math/Makefile: Rearrange variable definitions slightly to get
6292 definition in the right order.
6294 2003-02-20 Roland McGrath <roland@redhat.com>
6296 * Makerules: Clean up conditional around include of tls.make.
6297 * Make-dist: Export generating=t to prevent using that.
6298 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
6300 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6302 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
6303 around in search if port IPPORT_RESERVED/2 has been test.
6305 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
6307 * posix/regcomp.c: Remove inclusions.
6308 * posix/regexec.c: Likewise.
6309 * posix/regex_internal.c: Likewise.
6310 * posix/regex_internal.h: Add inclusions here.
6311 * posix/regex.c: Only include sys/types.h before regex.h. Include
6312 regex_internal.h here. Include regex_internal.c before regcomp.c
6313 and regexec.c (might expose more opportunities to the C compiler).
6315 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
6317 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
6318 [!_LIBC] (__wcrtomb): New definition.
6319 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
6320 HAVE_LOCALE_H as well.
6322 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6324 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
6325 patch to check for system call errors.
6327 2002-07-24 Philip Blundell <philb@gnu.org>
6329 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6332 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6334 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6335 * sysdeps/unix/sysv/linux/kernel-features.h
6336 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6340 interprocedure branches.
6341 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6342 * sysdeps/powerpc/nofpu/Dist: ...here.
6343 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6345 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6346 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6347 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6349 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6351 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6353 2003-02-20 Philip Blundell <philb@gnu.org>
6355 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6356 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6357 INTERNAL_SYSCALL_ERRNO.
6359 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6361 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6362 for __ASSUME_32BITUIDS.
6364 2003-02-20 Andreas Schwab <schwab@suse.de>
6366 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6367 POSIX_MADV_* constants.
6369 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6371 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6372 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6373 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6374 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6376 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6378 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6380 2003-02-16 Roland McGrath <roland@redhat.com>
6382 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6384 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6386 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6387 decimal input digits.
6388 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6390 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6392 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6393 invalid file descriptors and missing access permissions.
6395 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6397 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6400 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6401 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6402 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6405 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6406 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6408 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6409 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6410 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6411 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6412 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6414 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6416 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6417 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6418 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6419 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6420 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6421 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6423 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6425 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6428 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6429 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6430 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6431 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6433 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6435 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6437 2003-02-15 Roland McGrath <roland@frob.com>
6439 * sysdeps/mach/hurd/tls.h: New file.
6440 * sysdeps/mach/hurd/i386/tls.h: New file.
6442 * mach/errsystems.awk: Include <errno.h> in generated output.
6444 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6445 use target mach-before-compile instead of generated.
6446 (mach-before-compile): New target.
6447 * Makerules: Disable use of tls.make if $(generating) is set.
6448 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6449 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6450 mach-shortcuts.h so mach/ generation happens before hurd/.
6452 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6454 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6455 of demorm correctly if low word is zero.
6456 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6457 * math/libm-test.inc (nextafter_test): New test, but disabled due
6460 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6461 counter and only call __exit_thread if this is not the last thread.
6463 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6465 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6466 subtracting map->l_tls_offset.
6468 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6470 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6471 _CS_GNU_LIBPTHREAD_VERSION.
6472 * posix/conststr.c: Handle these new values.
6473 * posix/getconf.c: Likewise.
6475 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6476 masking of version index.
6477 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6479 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6481 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6482 correctly. Reported by Thorsten Kukuk.
6484 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6486 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6487 _BSD_SOURCE to compiler.
6488 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6489 Patches by Alan Modra.
6491 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6493 * io/ftwtest.c: Get current working directory before and after the
6494 nftw call and make sure they match.
6496 2003-02-08 Jim Meyering <jim@meyering.net>
6498 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6499 the current directory, not just when DIR contains a slash.
6500 Reported by Manoj Srivastava.
6502 2003-02-07 Jim Meyering <jim@meyering.net>
6504 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6505 Include autoconf-recommended block of dirent/NAMELEN-related
6506 definitions and includes. Use NAMELEN throughout, rather than
6508 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6509 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6510 (stpcpy): Declare, if necessary.
6511 (mempcpy): Define, if necessary.
6512 [!_LIBC] (__stpcpy, __mempcpy): Define.
6513 [!_LIBC] (LXSTAT, XSTAT): Define.
6514 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6515 (find_object): Don't use c99-style struct initializer.
6516 Tweak wording in a couple comments.
6518 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6520 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6522 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6523 after the trapa instruction.
6524 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6526 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6527 (NEED_SYSCALL_INST_PAD): Define.
6528 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6529 avoid to use definition for the kernel.
6530 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6531 Save and restore the frame pointer.
6532 (SYSCALL_INST_PAD): Define.
6533 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6534 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6535 after trapa instruction.
6536 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6537 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6539 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6541 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6542 so that it can have aliases.
6543 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6545 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6547 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6548 (profile_fixup): Likewise.
6549 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6551 2002-11-24 Robert Love <rml@tech9.net>
6553 * posix/sched.h: Second parameter of sched_setaffinity and
6554 sched_getaffinity is `unsigned int', not `unsigned long'.
6555 * sysdeps/generic/sched_setaffinity.c: Likewise.
6556 * sysdeps/generic/sched_getaffinity.c: Likewise.
6558 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6560 * debug/catchsegv.sh: Fix typo in error messsage.
6561 Reported by John Levon <levon@movementarian.org>.
6563 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6564 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6565 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6566 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6568 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6569 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6571 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6572 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6574 2003-02-05 Jim Meyering <jim@meyering.net>
6576 Fix a heap-corrupting bug.
6577 * io/ftw.c: Include <limits.h>.
6578 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6579 (process_entry): Allocate enough space to hold the resulting
6580 file name. Don't presume that 2*dirbufsize is enough.
6581 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6582 it is guaranteed to be defined.
6584 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6586 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6587 * iconvdata/bug-iconv3.c: New file.
6589 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6591 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6593 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6595 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6597 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6599 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6601 * sysdeps/i386/i686/memmove.S: New file.
6603 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6606 Include kernel-features.h
6607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6612 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6614 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6616 2003-01-25 Jim Meyering <jim@meyering.net>
6618 * io/ftw.c (object_compare): Compare inode numbers before device
6619 numbers, since the former are much more likely to differ.
6621 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6623 * time/tzfile.c (__tzfile_compute): Change return value type to
6624 void. Adjust return statements.
6625 * include/time.h (__tzfile_compute): Adjust prototype.
6627 2003-02-01 Jim Meyering <jim@meyering.net>
6629 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6632 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6635 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6637 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6640 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6642 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6643 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6644 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6646 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6648 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6650 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6651 back to 2.4.19 for powerpc64.
6652 * sysdeps/unix/sysv/linux/kernel-features.h
6653 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6654 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6656 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6658 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6659 platforms with strange alignment requirements on wchar_t.
6661 2003-01-31 Andreas Schwab <schwab@suse.de>
6663 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6664 aliases, already added by make-syscalls.sh.
6665 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6666 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6667 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6668 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6669 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6670 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6671 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6672 * sysdeps/unix/inet/syscalls.list: Likewise.
6673 * sysdeps/unix/syscalls.list: Likewise.
6675 2003-01-31 Andreas Schwab <schwab@suse.de>
6677 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6680 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6682 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6683 not l to load tls from stack.
6685 2003-01-30 Roland McGrath <roland@redhat.com>
6687 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6688 null argument before all else.
6689 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6691 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6693 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6694 Move to RESOLVE protected part of the header.
6695 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6698 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6700 * stdio-common/Makefile (tests): Add bug15.
6701 (bug15-ENV): Define.
6702 * stdio-common/bug15.c: New file.
6704 2002-10-07 Wolfram Gloger <wg@malloc.de>
6706 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6707 to foreign sbrk()'s if arena is contiguous. Bug report from
6708 Bruno Haible <bruno@clisp.org>.
6710 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6712 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6714 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6716 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6719 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6721 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6723 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6725 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6727 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6729 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6730 (allocate_static_tls): ...here. Add __attribute_noinline__.
6731 Don't return on failure.
6732 (_dl_reloc_bad_type): Add __attribute_noinline__.
6733 * elf/do-rel.h (elf_dynamic_do_rel): Add
6734 __attribute__((always_inline)).
6735 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6736 elf_machine_rel_relative, elf_machine_rela_relative,
6737 elf_machine_lazy_rel): Add prototypes with
6738 __attribute__((always_inline)).
6740 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6742 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6744 2003-01-29 Roland McGrath <roland@redhat.com>
6746 * configure.in: Barf if configured in $srcdir.
6748 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6751 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6753 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6755 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6756 clone parameters to match the order used on ia32.
6757 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6759 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6761 * elf/elf.h: Add new s390 relocs.
6762 * elf/tls-macros.h: Add s390 versions.
6763 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6764 * sysdeps/s390/dl-tls.h: New file.
6765 * sysdeps/s390/libc-tls.c: New file.
6766 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6767 relocs for class PLT.
6768 (elf_machine_rela): Handle TLS relocs.
6769 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6770 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6771 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6772 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6773 CLONE_CHILD_*TID flags.
6774 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6775 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6777 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6778 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6779 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6780 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6781 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6783 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6784 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6785 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6787 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6788 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6789 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6790 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6793 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6795 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6796 from __libc_pause. Implement using sigsuspend.
6797 (__libc_pause): Call do_pause to do the real work.
6799 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6800 sig_or_mask parameter is is_sig != 0.
6802 2003-01-21 Philip Blundell <philb@gnu.org>
6804 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6806 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6808 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6810 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6812 * stdio-common/bug14.c: Use official name for the locale.
6814 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6815 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6816 instead of __libc_cleanup_region_end.
6818 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6819 as first parameter to __libc_cleanup_region_start.
6821 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6822 (__fe_nomask_env): Use __prctl not prctl.
6823 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6826 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6828 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6830 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6831 wrap-around in test.
6833 2003-01-26 Andreas Schwab <schwab@suse.de>
6835 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6836 compatibility symbols. Remove INTDEF for __divdi3.
6837 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6838 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6839 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6841 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6843 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6845 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6846 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6847 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6848 for the first half of the header. Include tls.h.
6849 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6851 (elf_machine_rela): Handle TLS relocs.
6852 * sysdeps/sparc/dl-tls.h: New file.
6854 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6857 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6858 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6859 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6860 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6861 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6862 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6863 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6864 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6865 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6866 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6867 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6868 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6869 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6870 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6871 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6872 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6873 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6874 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6875 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6876 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6878 2003-01-24 Andreas Schwab <schwab@suse.de>
6880 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6881 elements, and process them backwards.
6882 * elf/Makefile ($(objpfx)tst-array4): New target.
6883 ($(objpfx)tst-array4.out): Likewise.
6884 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6885 * elf/tst-array4.c: New file.
6886 * elf/tst-array4.exp: Likewise.
6888 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6892 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6894 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6895 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6896 cancellation handling and handle both __NR_pread64 and __NR_pread.
6897 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6898 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6899 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6900 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6901 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6902 case, use register names consistently.
6904 2003-01-27 Wolfram Gloger <wg@malloc.de>
6906 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6907 pointer, not of the computed chunk. Bug report from Carlos
6908 O'Donell <carlos@baldric.uwo.ca>.
6910 2003-01-25 Andreas Schwab <schwab@suse.de>
6912 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6913 addressing to save GOT entries.
6915 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6917 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6918 inline_syscall1, inline_syscall2, inline_syscall3,
6919 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6920 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6921 __attribute__((unused)) to ChEcK.
6923 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6925 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6926 Fix inline assembler constraints.
6927 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6930 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6933 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6935 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6936 compute the cosine, not the sine, even if x > 0.8.
6938 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6940 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6941 _nss_nis_setspent. Work around the different prototypes.
6942 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6943 internal_nis_endrpcent.
6944 (internal_nis_endrpcent): Change return type to void. Change callers.
6945 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6946 _nss_nis_setpwent. Work around the different prototypes.
6947 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6948 of the function to...
6949 (internal_nis_endprotoent): ... here. New function.
6950 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6951 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6952 _nss_nis_setnetent. Work around the different prototypes.
6953 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6954 of the function to...
6955 (internal_nis_endnetgrent): ... here. New function.
6956 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6958 2003-01-19 Jim Meyering <jim@meyering.net>
6960 * time/strftime.c: (widen): Merge nearly-identical definitions.
6961 (nl_get_alt_digit) [! defined my_strftime]: Define.
6962 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6963 _nl_get_alt_digit and _nl_get_walt_digit.
6965 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6967 * time/strftime.c (my_strftime): Handle very large width
6968 specifications for numeric values correctly. Improve checks for
6970 * time/Makefile (tests): Add tst-strftime.
6971 * time/tst-strftime.c: New file.
6973 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6975 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6976 _nss_nis_sethostent. Work around the different prototypes.
6977 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6978 _nss_nis_setgrent. Work around the different prototypes.
6979 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6980 function. Split out from _nss_nis_endetherent.
6981 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6982 duplicating the code.
6983 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6984 of _nss_nis_setaliasent.
6985 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6986 internal_nis_endservent code, don't duplicate it.
6988 * inet/rexec.c (rexec_af): Protect socket operations with
6989 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6990 * inet/rcmd.c (rcmd_af): Likewise.
6992 2003-01-17 Roland McGrath <roland@redhat.com>
6994 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6995 Add test of value 0.80190127184058835.
6997 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6999 2003-01-17 Richard Henderson <rth@redhat.com>
7001 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
7002 relocs for class PLT.
7003 * sysdeps/alpha/libc-tls.c: New file.
7004 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
7005 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
7007 2003-01-17 Jakub Jelinek <jakub@redhat.com>
7009 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
7010 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
7013 2003-01-17 Andreas Jaeger <aj@suse.de>
7015 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
7017 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
7019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
7020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
7021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
7022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
7023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
7024 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
7025 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
7028 2003-01-16 Ulrich Drepper <drepper@redhat.com>
7030 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
7031 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
7034 * sysdeps/generic/sysconf.c: Unconditionally implement
7035 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
7036 * sysdeps/posix/sysconf.c: Likewise.
7038 2003-01-16 Jakub Jelinek <jakub@redhat.com>
7040 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
7041 set *err to the returned error, not to REG_ESPACE unconditionally.
7042 (build_word_op): Likewise.
7043 * posix/Makefile (tests): Add bug-regex16.
7044 * posix/bug-regex16.c: New test.
7046 2003-01-16 Jakub Jelinek <jakub@redhat.com>
7048 * elf/dl-load.c (_dl_map_object_from_fd): Use
7049 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
7050 been already initialized.
7052 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
7054 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
7056 2003-01-16 Jakub Jelinek <jakub@redhat.com>
7058 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
7059 allocated too. Reported by Al Viro <aviro@redhat.com>.
7061 2003-01-16 Roland McGrath <roland@redhat.com>
7063 Tweak merged .abilist file format to merge duplicate symbols in
7064 different sets into multi-version stanzas with new "| SET regexp..."
7065 header continuation lines.
7066 * scripts/merge-abilist.awk: Rewritten for new format.
7067 * scripts/extract-abilist.awk: Likewise.
7069 2003-01-15 Ulrich Drepper <drepper@redhat.com>
7071 * nscd/connections.c (nscd_run): Remove bogus return which isn't
7072 necessary with gcc 3.2+.
7073 (nscd_init): Don't use error() to print message, use dbg_log.
7075 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
7076 expected size into state.
7077 (UNPACK_BYTES): Do the reverse.
7078 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
7079 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
7080 Reported by Al Viro <aviro@redhat.com>.
7082 * stdio-common/Makefile (tests): Add bug14.
7083 * stdio-common/bug14.c: New file.
7085 * stdio-common/vfscanf.c: When recognizing multibyte characters in
7086 string reset the byte counter after mbrtowc reported it is not a
7087 partial character. Reported by Al Viro <aviro@redhat.com>.
7089 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
7091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
7092 sysdep-cancel.h, not sysdep.h.
7094 2003-01-15 Ulrich Drepper <drepper@redhat.com>
7096 * nscd/connections.c (nscd_run): Protect accept call with
7099 2003-01-15 Andreas Schwab <schwab@suse.de>
7101 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
7102 (common-generated): Add s-proto-bp.d.
7103 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
7105 * sysdeps/unix/s-proto-bp.S: New file.
7106 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
7107 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
7108 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
7110 2003-01-15 Roland McGrath <roland@redhat.com>
7112 * Makerules: Use -include for tls.make, suppresses warning.
7113 Move gen-as-const-headers rules up so before-compile is set in time.
7114 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
7116 2003-01-15 Ulrich Drepper <drepper@redhat.com>
7118 * nscd/nscd.c (main): Make code to close all file descriptors
7119 faster and more robust.
7121 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
7122 request with one writev call. Protect all read calls with
7124 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7125 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7127 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
7128 Protect writev calls with TEMP_FAILURE_RETRY.
7129 * nscd/grpcache.c: Likewise.
7130 * nscd/pwdcache.c: Likewise.
7132 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
7133 IPv6 address in debug output.
7135 2003-01-14 Roland McGrath <roland@redhat.com>
7137 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
7138 $(objpfx) directories, and get rid of vpath directives. The previous
7139 arrangement resulted in files being written to the source directories
7140 when run in a clean build. Find all .abilist files in $(..)abilist/.
7141 (update-abi-%): Likewise.
7142 (generated): Don't add .symlist files, they'll be intermediates.
7144 * sysdeps/generic/init-first.c: Add a comment.
7146 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
7148 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
7149 #includes and expressions.
7151 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
7152 config list when it already contains cpu-.*-os.* without / part.
7154 * Makerules (sed-remove-dotdot): New variable.
7155 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
7156 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
7157 (check-abi-config): New variable, append /tls or /notls to the tuple.
7158 (check-abi-%): Use that for -v config value.
7159 Find .abilist files in abilist/libfoo.abilist, not in subdir.
7160 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
7162 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7164 * manual/install.texi: Correct description of header preparation for
7165 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
7167 2003-01-14 Guido Guenther <agx@sigxcpu.org>
7169 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
7170 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7171 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
7173 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7176 (INTERNAL_SYSCALL): Make use of ERR parameter.
7177 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7178 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7179 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
7182 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7184 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
7186 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
7188 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
7189 Fix entry for bit 31.
7191 * iconvdata/Makefile: Add rules to build IBM866NAV.
7192 * iconvdata/ibm866nav.c: New file.
7193 * iconvdata/tst-tables.sh: Add IBM866NAV.
7194 * iconvdata/gconv-modules: Add entries for IBM866NAV.
7196 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7198 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
7199 to test void* parameters.
7201 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
7202 source pointer before dereferencing.
7203 (__STRING_SMALLL_GET32): Likewise.
7204 (__memset_gc): Add missing parenthesis around macro arguments.
7205 Patch by Denis Zaitsev <zzz@cd-club.ru>.
7207 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
7208 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
7210 2003-01-14 Jakub Jelinek <jakub@redhat.com>
7212 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
7215 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7217 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
7218 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
7220 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
7222 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7224 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
7226 (PSEUDO): ... to here.
7227 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
7229 (PSEUDO): ... to here.
7231 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7233 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
7234 dirent64 instead of struct dirent for dirent. Call readdir64
7237 * locale/programs/locfile.c (siblings_uncached): Use struct
7238 dirent64 instead of struct dirent for other_dentry. Call
7239 readdir64 instead of readdir.
7241 * elf/ldconfig.c (direntry): Change type to struct dirent64.
7242 (search_dir): Use readdir64 instead of readdir.
7243 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
7245 2003-01-12 Roland McGrath <roland@redhat.com>
7247 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
7248 not strtol. The former is usable in ld.so, the latter not.
7250 * include/fcntl.h: Declare __libc_creat.
7252 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
7253 libhurduser-link.so-no-z-defs): New variables.
7255 * malloc/malloc.c: Revert last change.
7256 * malloc/malloc.h (_int_*): Move these decls to ...
7257 * include/malloc.h: ... here. Add attribute_hidden.
7258 (_int_valloc): Declare it too.
7260 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7262 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
7263 search for removed searchlist. Reported by Roland McGrath.
7265 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
7266 given as start file.
7268 * io/ftw.c (ftw_startup): Use correct name in check for symlink
7269 without existing target. Patch by Jim Meyering.
7271 * Makerules (build-shlib-helper): Don't use -z defs linker option
7272 if no-z-defs is defined either.
7274 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7276 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
7279 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7281 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
7282 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7284 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7286 * io/ftwtest-sh: Add test case for relative path with /. at the end.
7288 2003-01-12 Jim Meyering <jim@meyering.net>
7290 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
7291 use the basename if we've already chdir'd into its parent directory.
7293 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7295 * io/ftw.c (process_entry): Use relative path when using chdir()
7296 to change directory after call to ftw_dir.
7297 * io/ftwtest-sh: Add test for relative path argument to nftw()
7298 with FTW_CHDIR option.
7300 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7302 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
7304 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
7306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7307 (INTERNAL_SYSCALL): Make use of ERR parameter.
7308 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7309 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7310 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7313 2002-01-09 Richard Henderson <rth@redhat.com>
7315 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
7316 DTPREL64 and TPREL64 without loadbase applied.
7318 2002-01-09 Richard Henderson <rth@redhat.com>
7320 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
7323 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
7324 * sysdeps/unix/alpha/sysdep.h: ... here.
7325 (PSEUDO_LOADGP): Remove.
7326 (PSEUDO_PROLOGUE): Load GP in non-pic case.
7327 (SYSCALL_ERROR_LABEL): New.
7328 (PSEUDO): Use it in error branch.
7329 (PSEUDO_END): Add $syscall_error label.
7331 2003-01-12 Andreas Jaeger <aj@suse.de>
7333 * math/bits/mathcalls.h: Round is a const function.
7335 2003-01-11 Jim Meyering <jim@meyering.net>
7337 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7338 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7339 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7340 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7341 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7342 [!_LIBC] (internal_function, dirent64, MAX): Define.
7343 (__set_errno): Define if not already defined.
7344 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7345 the basename, not the entire file name.
7346 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7347 the basename, not the entire file name.
7349 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7351 * string/tester.c (test_strcpy): Disable last added strcpy until
7354 2003-01-11 Philip Blundell <philb@gnu.org>
7356 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7358 2003-01-11 Andreas Schwab <schwab@suse.de>
7360 * Makerules: Add vpath for %.dynsym and %.so so that the
7361 implicit rule chaining for check-abi works.
7363 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7365 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7368 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7370 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7371 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7373 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7374 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7375 Ensure libc.so in DT_NEEDED.
7376 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7377 CHECK_STATIC_TLS before l_tls_offset use.
7378 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7380 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7381 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7382 Allocate TLS_PRE_TCB_SIZE bytes below result.
7383 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7384 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7385 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7386 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7387 bytes below result and add tcb_offset to memsz.
7388 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7389 * sysdeps/ia64/dl-machine.h: Include tls.h.
7390 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7392 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7393 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7394 * sysdeps/ia64/libc-tls.c: New file.
7396 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7398 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7399 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7400 Fix type. Move definition out of #if.
7401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7409 ftruncate64, pread64, pwrite64, truncate64 entries.
7410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7411 (INLINE_SYSCALL): New version that supports function call like
7412 syscalls. Add __builtin_expect.
7413 (LOADARGS_n): Add argument size safety checks.
7414 (INTERNAL_SYSCALL): New Macro.
7415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7416 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7417 redefinition of elf_fpreg_t and elf_fpregset_t.
7419 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7421 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7422 simplify test for unloading. If loader of a DSO is unloaded do not
7423 use its scope anymore. Fall back to own scope and adjust opencounts.
7424 Fix several comments.
7425 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7426 the l_searchlist, not only for l_initfini.
7428 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7429 dependencies if objects cannot be removed. Remove object with the
7430 definition as not unloadable if necessary.
7432 * elf/reldep6.c: Create relocation dependency before closing the first
7435 2003-01-10 Guido Günther <agx@sigxcpu.org>
7437 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7438 * sysdeps/unix/mips/brk.S: Likewise.
7439 * sysdeps/unix/mips/pipe.S: Likewise.
7441 2003-01-10 Andreas Schwab <schwab@suse.de>
7443 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7445 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7446 are known to have the vfork syscall.
7448 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7450 * sysdeps/unix/sysv/linux/kernel-features.h
7451 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7452 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7453 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7455 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7457 * elf/Makefile: Add rules to build and run reldep9 test.
7458 * elf/reldep9.c: New file.
7459 * elf/reldep9mod1.c: New file.
7460 * elf/reldep9mod2.c: New file.
7461 * elf/reldep9mod3.c: New file.
7463 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7465 * elf/Makefile: Add rules to build and run nodelete2 test.
7466 * elf/nodelete2.c: New file.
7467 * elf/nodel2mod1.c: New file.
7468 * elf/nodel2mod2.c: New file.
7469 * elf/nodel2mod3.c: New file.
7471 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7473 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7474 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7475 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7477 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7478 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7479 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7480 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7481 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7483 2003-01-09 Andreas Schwab <schwab@suse.de>
7485 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7487 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7489 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7490 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7492 (INTERNAL_SYSCALL_DECL): Define.
7494 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7496 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7497 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7499 (INTERNAL_SYSCALL_DECL): Define.
7500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7501 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7502 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7503 (INLINE_SYSCALL): Adjust.
7504 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7505 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7506 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7507 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7508 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7509 add err argument to INTERNAL_SYSCALL* macros.
7510 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7511 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7512 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7513 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7515 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7516 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7517 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7519 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7521 Unify symbols in user namespace exported by libc.so and libc.a.
7522 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7523 argp_fmtstream_free, and argp_fmtstream_printf.
7524 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7525 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7526 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7527 argp_fmtstream_point.
7528 * gmon/gmon.c: Don't define write_profiling.
7529 * libio/genops.c: Don't define _cleanup.
7531 * intl/explodename.c (_nl_find_language.c): Mark as static.
7532 * intl/loadinfo.h: Remove _nl_find_language prototype.
7534 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7535 * libio/libioP.h: Remove declaration.
7537 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7538 * libio/libioP.h: Remove declaration.
7540 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7541 * sysdeps/generic/framestate.c: Define STATIC before including
7544 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7546 2003-01-06 Philip Blundell <philb@gnu.org>
7548 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7549 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7551 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7553 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7554 (SYSCALL_ERROR): New.
7555 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7557 (INTERNAL_SYSCALL): Define.
7558 (INLINE_SYSCALL): Use it.
7559 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7560 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7561 SYSCALL_ERROR in place of __syscall_error.
7563 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7565 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7566 __bswap_32, __bswap_64): Put x into temporary variable
7568 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7570 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7571 __bswap_32, __bswap_64): Put x into temporary variable
7573 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7575 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7578 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7580 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7583 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7585 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7586 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7588 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7590 * math/libm-test.inc (significand_test): New function.
7593 2003-01-06 Roland McGrath <roland@redhat.com>
7595 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7597 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7598 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7599 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7601 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7603 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7605 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7606 return significand and not the exponent.
7607 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7609 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7610 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7612 * malloc/malloc.c: Mark all _int_* functions as static.
7614 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7616 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7617 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7619 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7621 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7623 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7627 ftruncate64, truncate64, pread64 and pwrite64 entries.
7628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7629 (INLINE_SYSCALL): Add __builtin_expect.
7630 (LOADARGS_n): Add argument size safety checks.
7631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7638 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7640 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7641 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7642 (LIBC_CANCEL_HANDLED): Add.
7644 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7645 (inline_syscall_r0_constraint): Rename to...
7646 (inline_syscall_r0_out_constraint): ... this. Add =.
7647 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7649 2003-01-06 Andreas Schwab <schwab@suse.de>
7651 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7652 sure this is always inlined.
7653 (elf_machine_rela): Likewise.
7655 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7657 2003-01-04 Roland McGrath <roland@redhat.com>
7659 * Makeconfig (+mkdep): Add -MP flag.
7660 Suggested by Art Haas <ahaas@airmail.net>.
7662 2003-01-05 Andreas Schwab <schwab@suse.de>
7664 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7666 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7668 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7669 SYSCALL_ERROR_HANDLER.
7670 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7671 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7672 Add support for cancellation handling.
7673 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7674 SYSCALL_ERROR_HANDLER.
7675 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7676 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7677 Add support for cancellation handling.
7678 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7680 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7683 __syscall_pread64 and __syscall_pwrite64 cancelable.
7684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7685 (INTERNAL_SYSCALL): New macro.
7686 (LOADARGS_0, LOADARGS_1): Fix.
7688 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7690 * Makerules (build-shlip-helper): Unless told otherwise, add
7691 -Wl,-z,defs to linker command line.
7692 * rt/Makefile (librt.so): Link with ld.so.
7693 * dlfcn/Makefile (libdl.so): Likewise.
7695 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7697 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7698 cancellation handling.
7699 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7700 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7702 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7704 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7705 order of parameters passed to kill.
7707 2003-01-04 Andreas Schwab <schwab@suse.de>
7709 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7711 2002-01-03 Paul Eggert <eggert@twinsun.com>
7713 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7714 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7715 when compiling Bison 1.875's `bitset bset = obstack_alloc
7716 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7718 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7720 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7722 Correct reference counter in case SIGQUIT handler installation failed.
7724 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7726 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7727 Define using _Pragma(weak ...).
7729 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7731 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7732 reorder declarations.
7734 2003-01-03 Art Haas <ahaas@airmail.net>
7736 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7737 initializer syntax to C99.
7738 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7739 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7740 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7741 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7742 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7743 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7744 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7745 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7746 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7747 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7748 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7749 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7750 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7751 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7752 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7753 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7754 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7755 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7756 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7757 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7758 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7759 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7760 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7761 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7762 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7763 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7764 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7765 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7766 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7767 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7768 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7769 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7770 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7771 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7772 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7773 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7774 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7775 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7776 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7777 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7778 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7779 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7780 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7781 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7782 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7783 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7784 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7785 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7786 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7788 2003-01-03 Richard Henderson <rth@redhat.com>
7790 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7791 (inline_syscall_r0_constraint): New.
7792 (inline_syscall[0-6]): Use them.
7794 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7796 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7797 Add rtld_hidden_proto.
7798 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7799 (_dl_allocate_tls): Likewise. Remove INTDEF.
7801 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7803 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7804 Morita <toshiyasu.morita@hsa.hitachi.com>.
7805 * sysdeps/sh/memcpy.S: Likewise.
7807 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7809 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7810 any, but unify the test.
7812 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7814 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7815 sigaction): Protect weak_alias and libc_hidden_weak with
7816 #ifndef LIBC_SIGACTION.
7817 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7818 sigaction): Likewise.
7819 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7820 sigaction): Likewise.
7821 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7822 sigaction): Likewise.
7823 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7824 sigaction): Likewise.
7825 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7826 sigaction): Likewise.
7827 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7828 sigaction): Likewise.
7829 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7830 sigaction): Likewise. Remove SIGCANCEL handling here.
7831 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7834 2003-01-02 Art Haas <ahaas@airmail.net>
7836 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7838 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7840 * posix/getconf.c: Update copyright year.
7841 * nss/getent.c: Likewise.
7842 * nscd/nscd_nischeck.c: Likewise.
7843 * iconv/iconvconfig.c: Likewise.
7844 * iconv/iconv_prog.c: Likewise.
7845 * elf/ldconfig.c: Likewise.
7846 * catgets/gencat.c: Likewise.
7847 * csu/version.c: Likewise.
7848 * elf/ldd.bash.in: Likewise.
7849 * elf/sprof.c (print_version): Likewise.
7850 * locale/programs/locale.c: Likewise.
7851 * locale/programs/localedef.c: Likewise.
7852 * nscd/nscd.c (print_version): Likewise.
7853 * debug/xtrace.sh: Likewise.
7854 * malloc/memusage.sh: Likewise.
7855 * malloc/mtrace.pl: Likewise.
7857 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7859 * io/sys/stat.h: Include time.h with __need_timespec even if
7860 __USE_MISC is defined but __USE_XOPEN is not.
7862 2003-01-01 Andreas Jaeger <aj@suse.de>
7864 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7865 type to avoid strict aliasing problem.
7866 (_nss_dns_gethostbyname2_r): Likewise.
7867 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7868 (_nss_dns_getnetbyname_r): Likewise.
7869 * resolv/gethnamaddr.c (_gethtent): Likewise.
7870 (gethostbyname2): Likewise.
7872 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7874 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7875 to avoid using the exported symbols. Define aliases with the
7876 original names separately.
7878 * include/time.h: Add libc_hidden_proto for __strftime_l.
7879 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7880 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7882 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7883 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7885 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7888 * csu/Makefile (routines): Add dso_handle.
7889 * csu/dso_handle.c: New file.
7891 2002-12-31 Roland McGrath <roland@redhat.com>
7893 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7894 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7895 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7896 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7898 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7900 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7903 2002-12-31 Andreas Jaeger <aj@suse.de>
7905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7907 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7908 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7909 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7911 * sysdeps/unix/sysv/linux/kernel_stat.h
7912 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7914 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7915 __unused[1-3] since they're needed by some platforms. Handle
7916 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7918 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7919 for structs stat and stat64.
7920 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7921 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7922 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7923 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7925 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7927 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7928 nsec resolution changes.
7929 (xstat64_conv): Likewise.
7930 (xstat32_conv): Likewise.
7932 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7935 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7936 structs stat and stat64.
7938 * time/time.h (__timespec_defined): Define for __USE_MISC.
7940 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7942 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7943 and __libc_current_sigrtmax.
7945 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7947 * include/errno.h (__errno_location): Add prototype.
7948 Use libc_hidden_proto unconditionally.
7949 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7951 * include/resolv.h (__res_state): Likewise.
7953 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7954 * include/sys/socket.h (accept): Add libc_hidden_proto.
7955 * include/errno.h (__errno_location): Likewise.
7956 * include/netdb.h (__h_errno_location): Likewise.
7957 * include/resolv.h (__res_state): Likewise.
7958 * include/unistd.h (__lseek): Likewise.
7959 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7960 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7961 * sysdeps/generic/res-state.c (__res_state): Likewise.
7962 * sysdeps/generic/accept.c (accept): Likewise.
7963 * sysdeps/generic/lseek.c (__lseek): Likewise.
7964 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7965 __libc_current_sigrtmax): Likewise.
7966 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7967 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7968 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7969 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7970 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7971 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7972 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7973 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7974 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7976 (__GI_accept): New alias to accept.
7977 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7978 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7979 New alias to llseek.
7980 (__GI_accept): New alias to accept.
7981 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7983 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7985 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7987 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7988 strong_alias (name, __GI_name).
7989 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7990 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7991 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7992 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7993 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7994 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7995 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7996 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7997 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7998 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7999 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
8000 * sysdeps/sh/bsd-_setjmp.S : Likewise.
8001 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
8002 * sysdeps/unix/arm/fork.S : Likewise.
8003 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
8004 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
8005 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
8006 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
8007 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
8008 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
8009 * sysdeps/unix/i386/fork.S : Likewise.
8010 * sysdeps/unix/mips/fork.S : Likewise.
8011 * sysdeps/unix/sparc/fork.S : Likewise.
8012 * sysdeps/unix/sparc/vfork.S : Likewise.
8013 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
8014 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
8015 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
8016 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
8017 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
8018 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
8019 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
8020 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
8021 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
8022 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
8023 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
8024 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
8025 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
8026 * sysdeps/unix/fork.S : Likewise.
8027 * sysdeps/vax/bsd-_setjmp.S : Likewise.
8028 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
8030 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
8033 2002-12-31 Ulrich Drepper <drepper@redhat.com>
8035 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
8036 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
8037 * sysdeps/mach/hurd/fork.c: Likewise.
8038 * sysdeps/unix/sysv/aix/fork.c: Likewise.
8039 * sysdeps/unix/fork.S: Add __GI___fork alias.
8040 * sysdeps/unix/arm/fork.S: Likewise.
8041 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
8042 * sysdeps/unix/i386/fork.S: Likewise.
8043 * sysdeps/unix/mips/fork.S: Likewise.
8044 * sysdeps/unix/sparc/fork.S: Likewise.
8045 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
8046 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
8047 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8048 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
8049 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
8050 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
8051 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
8052 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
8053 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
8054 * sysdeps/unix/sparc/vfork.S: Likewise.
8055 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8056 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
8057 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8058 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8059 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8060 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8061 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
8062 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8064 * include/time.h: Add libc_hidden_proto for __nanosleep.
8065 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
8066 * sysdeps/mach/nanosleep.c: Likewise.
8067 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
8068 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
8070 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
8071 _IO_list_unlock, and _IO_list_resetlock.
8072 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
8073 _IO_list_unlock, and _IO_list_resetlock.
8075 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
8076 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
8077 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
8078 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
8080 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
8081 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
8082 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
8083 __GI___longjmp alias.
8085 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
8086 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
8087 * sysdeps/arm/bsd-_setjmp.S: Likewise.
8088 * sysdeps/generic/bsd-_setjmp.c: Likewise.
8089 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
8090 * sysdeps/i386/bsd-_setjmp.S: Likewise.
8091 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
8092 * sysdeps/mips/bsd-_setjmp.S: Likewise.
8093 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8094 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
8095 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
8096 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
8097 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
8098 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
8099 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
8100 * sysdeps/sh/bsd-_setjmp.S: Likewise.
8101 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
8102 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
8103 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
8104 * sysdeps/vax/bsd-_setjmp.S: Likewise.
8105 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
8107 2002-12-30 Ulrich Drepper <drepper@redhat.com>
8109 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
8111 2002-12-30 Roland McGrath <roland@redhat.com>
8113 * Rules (generated): Target removed.
8114 * mach/Makefile (generated): Define it here instead.
8116 * math/Makefile (generated): Add m_*l and m_*f variants too.
8118 2002-12-30 Ulrich Drepper <drepper@redhat.com>
8120 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
8121 the to-be-deleted objects right away instead of later separately.
8122 The latter fails because the scope data structures of the DSO
8123 might already be gone.
8125 * elf/Makefile: Add rules to build and run reldep8 test.
8126 * elf/reldep8.c: New file.
8127 * elf/reldep8mod1.c: New file.
8128 * elf/reldep8mod2.c: New file.
8129 * elf/reldep8mod3.c: New file.
8130 Contributed by Jakub Jelinek.
8132 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
8134 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8135 checking of return value ENOSYS from getdents64.
8137 2002-12-28 Andreas Schwab <schwab@suse.de>
8139 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
8140 ($(common-objpfx)s-%.d): Generalized from
8141 $(common-objpfx)s-proto.d rule.
8142 (common-generated): Add s-proto-cancel.d.
8143 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
8144 cancellable syscalls.
8145 * sysdeps/unix/s-proto-cancel.S: New file.
8147 2002-12-29 Roland McGrath <roland@redhat.com>
8149 * resolv/res_libc.c: Move _res defn magic after res_init defn
8150 so _res macro is in effect for that code.
8152 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
8153 pattern for prepending $(..) so it doesn't affect $(foo).
8155 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
8157 2002-12-29 Jakub Jelinek <jakub@redhat.com>
8159 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
8162 2002-12-28 Ulrich Drepper <drepper@redhat.com>
8164 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
8166 2002-12-28 Andreas Jaeger <aj@suse.de>
8168 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
8170 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
8172 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8174 * inet/herrno.c (__h_errno_location): Remove.
8175 * inet/Makefile (routines): Add herrno-loc.
8176 * resolv/res_libc.c (__res_state): Remove.
8177 * resolv/Makefile (routines): Add res-state.
8178 * sysdeps/generic/herrno-loc.c: New file.
8179 * sysdeps/generic/res-state.c: New file.
8181 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8183 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
8184 Only define if USE_DL_SYSINFO is defined.
8186 2002-12-22 Jakub Jelinek <jakub@redhat.com>
8188 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
8189 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
8190 Define. Patch by Richard Henderson and Jes Sorensen.
8191 (PSEUDO): Remove unnecessary ;;.
8192 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
8193 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
8194 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
8195 if not initializing thread pointer.
8196 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
8197 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
8198 make it weak also if NONTLS_INIT_TP.
8199 * sysdeps/unix/common/pause.c: Handle cancellation.
8200 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
8201 (LOADSYSCALL): Remove.
8202 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8203 (SYSCALL_ERROR_HANDLER): Use it.
8204 (PSEUDO): Don't jump around error handler.
8205 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
8206 jump around error handler.
8207 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
8208 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
8209 to __syscall_error_handler on failure.
8210 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
8211 (LOADSYSCALL): Remove.
8212 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8213 (SYSCALL_ERROR_HANDLER): Use it.
8214 (PSEUDO): Don't jump around error handler.
8215 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
8216 jump around error handler.
8217 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
8218 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
8219 to __syscall_error_handler on failure.
8221 2002-12-27 Roland McGrath <roland@redhat.com>
8223 * scripts/gen-as-const.awk: New file.
8224 * Makefile (distribute): Add it.
8225 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
8226 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
8228 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
8230 2002-12-27 Andreas Schwab <schwab@suse.de>
8232 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
8234 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8236 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
8239 2002-12-27 Andreas Schwab <schwab@suse.de>
8241 * Makerules ($(common-objpfx)%.make): Filter through
8242 $(sed-remove-objpfx).
8244 2002-12-23 Roland McGrath <roland@redhat.com>
8246 * scripts/abilist.awk: Produce a more compact format, divided into
8247 stanzas for each version set, the set name listed only once.
8248 * scripts/extract-abilist.awk: New file.
8249 * scripts/merge-abilist.awk: New file.
8250 * Makerules (check-abi-%, update-abi-%): New pattern rules.
8251 (update-abi, check-abi): New targets.
8252 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
8254 2002-12-19 Roland McGrath <roland@redhat.com>
8256 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
8258 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
8261 2002-12-21 Andreas Schwab <schwab@suse.de>
8263 * elf/check-textrel.c (handle_file): Swap p_type.
8265 2002-12-21 Andreas Schwab <schwab@suse.de>
8267 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
8268 (INLINE_SYSCALL): Use it.
8269 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8270 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8272 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
8273 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
8275 2002-12-20 Art Haas <ahaas@airmail.net>
8277 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
8280 2002-12-21 Philip Blundell <philb@gnu.org>
8282 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
8283 top as seventh arg to __libc_start_main.
8284 Reported by paulnash@wildseed.com.
8286 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
8288 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
8289 compatibility cruft when new enough kernel is assumed.
8291 2002-12-20 Jakub Jelinek <jakub@redhat.com>
8293 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
8294 instead of INLINE_SYSCALL.
8296 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8298 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
8301 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
8302 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
8303 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
8304 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8305 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8306 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8307 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8308 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8309 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
8310 Patch by William Lee Irwin <wli@holomorphy.com>.
8312 2002-12-20 Andreas Schwab <schwab@suse.de>
8314 * locale/programs/ld-measurement.c (measurement_output): Fix
8317 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8319 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
8320 Redefine _IO_flockifle and _IO_funlockfile as inlines.
8322 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
8323 builds add "tls" in the search path.
8324 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
8325 (path_hwcap): Recognize "tls".
8327 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8329 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8330 __waitpid instead of waitpid.
8332 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8334 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8335 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8336 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8338 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8339 information for system calls.
8341 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8344 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8346 2002-12-19 Roland McGrath <roland@redhat.com>
8348 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8349 * iconvdata/ibm922.h: Likewise.
8350 * iconvdata/ibm930.h: Likewise.
8351 * iconvdata/ibm932.h: Likewise.
8352 * iconvdata/ibm933.h: Likewise.
8353 * iconvdata/ibm935.h: Likewise.
8354 * iconvdata/ibm937.h: Likewise.
8355 * iconvdata/ibm939.h: Likewise.
8356 * iconvdata/ibm943.h: Likewise.
8357 * iconvdata/isiri-3342.h: Likewise.
8359 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8361 * test-skeleton.c (main): Make sure correct value is seen as
8362 argv[0] after adjustment of argv, and argc.
8364 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8365 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8367 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8369 * nscd/connections.c (nscd_run): Shut up warning.
8370 * tst-ungetc.c (assert): Undefined before redefining.
8372 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8374 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8377 2002-12-17 Art Haas <ahaas@airmail.net>
8379 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8380 * iconvdata/cp775.h: Likewise.
8381 * iconvdata/ibm1046.h: Likewise.
8382 * iconvdata/ibm1124.h: Likewise.
8383 * iconvdata/ibm1129.h: Likewise.
8384 * iconvdata/ibm1132.h: Likewise.
8385 * iconvdata/ibm1133.h: Likewise.
8386 * iconvdata/ibm1160.h: Likewise.
8387 * iconvdata/ibm1161.h: Likewise.
8388 * iconvdata/ibm1162.h: Likewise.
8389 * iconvdata/ibm1163.h: Likewise.
8390 * iconvdata/ibm1164.h: Likewise.
8392 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8394 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8395 __ASSUME_CLONE_THREAD_FLAGS is defined.
8396 * sysdeps/unix/sysv/linux/kernel-features.h
8397 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8399 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8401 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8403 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8405 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8407 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8409 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8411 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8413 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8414 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8415 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8418 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8420 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8422 [libc: GLIBC_PRIVATE]: ...here.
8423 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8425 [libc: GLIBC_PRIVATE]: ...here.
8427 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8429 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8430 Use it instead of directly int $0x80.
8431 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8432 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8433 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8434 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8435 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8436 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8438 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8440 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8442 * elf/elf.h (AT_SYSINFO): New define.
8443 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8446 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8448 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8450 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8452 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8454 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8456 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8458 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8460 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8461 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8462 available, otherwise __libc_maybe_call.
8463 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8464 cancellation handling.
8465 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8467 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8469 * posix/regcomp.c (free_workarea_compile): Free the new member
8471 (analyze): Initialize ORG_INDICES.
8472 (duplicate_node_closure): Search for a existing node, which is
8473 duplicated from the node ORG_DEST and satisfies the constraint
8474 CONSTRAINT. And use it to avoid inifimite loop.
8475 (search_duplicated_node): New function.
8476 (duplicate_node): Store the index of the original node.
8477 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8479 * posix/regex_internal.h (re_dfa_t): Add new members.
8481 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8483 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8485 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8487 * sysdeps/posix/system.c (do_system): Add support for installation
8488 of cancellation handlers.
8489 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8491 * stdlib/Makefile (tests): Add tst-system.
8492 * stdlib/tst-system.c: New file.
8494 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8495 CENABLE]: Don't lose content of %ebx.
8497 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8499 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8500 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8502 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8504 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8505 fails to return a function pointer don't use it.
8507 2002-12-16 Art Haas <ahaas@airmail.net>
8509 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8510 * iconvdata/iso-ir-165.c: Likewise.
8511 * iconvdata/jis0208.c: Likewise.
8512 * iconvdata/jis0212.c: Likewise.
8514 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8516 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8517 epoll_ctl, and epoll_wait.
8518 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8519 epoll_create, epoll_ctl, and epoll_wait.
8520 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8521 Davide Libenzi <davidel@xmailserver.org>.
8522 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8523 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8526 2002-12-16 Art Haas <ahaas@airmail.net>
8528 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8530 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8531 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8532 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8534 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8536 * stdio-common/Makefile (routines): Remove lockfile. Add
8537 flockfile, ftrylockfile, and funlockfile.
8538 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8539 * sysdeps/generic/flockfile.c: New file.
8540 * sysdeps/generic/ftrylockfile.c: New file.
8541 * sysdeps/generic/funlockfile.c: New file.
8543 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8545 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8546 macros instead of doing the calls directly.
8547 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8548 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8551 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8553 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8554 * sysdeps/ieee754/bits/nan.h: Likewise.
8556 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8557 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8559 2002-12-16 Roland McGrath <roland@redhat.com>
8561 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8562 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8563 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8565 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8566 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8568 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8569 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8570 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8571 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8572 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8573 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8574 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8575 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8577 2002-12-13 Paul Eggert <eggert@twinsun.com>
8579 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8580 is now u_int, not int.
8581 (struct XDR.x_handy): Now u_int, not int.
8582 * sunrpc/xdr_mem.c: Include <limits.h>.
8583 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8584 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8585 x_handy is now unsigned, not signed.
8586 Do not decrement x_handy if no change is made.
8587 (xdrmem_setpos): Check for int overflow.
8588 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8589 (xdr_sizeof): Remove cast that is now unnecessary, now that
8590 x_handy is unsigned.
8592 2002-12-15 Art Haas <ahaas@airmail.net>
8594 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8595 * iconvdata/gap.awk: Likewise.
8596 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8597 * iconvdata/gen-8bit-gap.sh: Likewise.
8598 * locale/C-address.c: Likewise.
8599 * locale/C-collate.c: Likewise.
8600 * locale/C-ctype.c: Likewise.
8601 * locale/C-identification.c: Likewise.
8602 * locale/C-measurement.c: Likewise.
8603 * locale/C-messages.c: Likewise.
8604 * locale/C-monetary.c: Likewise.
8605 * locale/C-name.c: Likewise.
8606 * locale/C-numeric.c: Likewise.
8607 * locale/C-paper.c: Likewise.
8608 * locale/C-telephone.c: Likewise.
8609 * locale/C-time.c: Likewise.
8610 * nscd/connections.c: Likewise.
8611 * nscd/grpcache.c: Likewise.
8612 * nscd/hstcache.c: Likewise.
8613 * nscd/pwdcache.c: Likewise.
8614 * stdio-common/vfprintf.c: Likewise.
8615 * stdlib/random.c: Likewise.
8616 * sysdeps/generic/siglist.c: Likewise.
8617 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8618 * sysdeps/ieee754/bits/nan.h: Likewise.
8619 * sysdeps/posix/sprofil.c: Likewise.
8620 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8621 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8622 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8624 2002-12-15 Roland McGrath <roland@redhat.com>
8626 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8628 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8629 <tls.h> here, no need for it.
8630 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8632 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8633 parameter, not varargs parameter.
8635 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8636 argument so it's not an unused variable.
8638 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8639 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8642 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8644 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8646 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8647 original __libc_fcntl code. Just renamed.
8649 2002-12-15 Andreas Schwab <schwab@suse.de>
8651 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8653 2002-12-14 Olaf Hering <olh@suse.de>
8655 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8656 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8658 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8660 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8662 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8663 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8665 * sysdeps/unix/sysv/linux/open64.c: New file.
8667 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8668 * sysdeps/posix/open64.c: Likewise.
8669 * sysdeps/posix/sigpause.c: Likewise.
8670 * sysdeps/posix/sigwait.c: Likewise.
8671 * sysdeps/posix/system.c: Likewise.
8672 * sysdeps/posix/waitid.c: Likewise.
8673 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8674 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8675 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8676 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8677 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8678 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8679 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8680 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8681 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8682 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8683 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8684 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8685 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8686 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8687 * sysdeps/unix/sysv/linux/send.S: Likewise.
8688 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8689 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8690 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8691 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8692 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8693 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8694 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8695 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8696 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8697 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8698 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8699 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8701 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8703 * sysdeps/generic/sysdep-cancel.h: New file.
8704 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8706 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8707 recvmsg, send, sendmsg, sendto): Make cancelable.
8708 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8709 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8710 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8711 sendto, osf_select): Likewise.
8712 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8713 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8714 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8715 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8717 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8718 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8719 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8720 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8722 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8723 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8724 sendto, select): Likewise.
8725 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8726 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8728 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8729 select, fcntl): Likewise.
8730 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8731 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8732 read, readv, select, sigsuspend, write, writev): Likewise.
8734 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8736 * dirent/bug-readdir1.c: Include unistd.h.
8738 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8740 * locale/programs/locale.c: Include locarchive.h.
8741 (ARCHIVE_NAME): Define.
8742 (write_archive_locales): New function.
8743 (write_locales): Use it. Ensure the same locale is not printed
8744 multiple times in verbose mode.
8745 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8746 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8748 (struct nameent): New type.
8749 (nameentcmp): New function.
8751 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8753 * posix/regex_internal.c (re_string_context_at): Guard wide char
8754 code with #ifdef RE_ENABLE_I18N.
8756 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8758 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8760 2002-12-13 Roland McGrath <roland@redhat.com>
8762 * posix/bug-regex15.c: New file.
8763 * posix/Makefile (tests): Add it.
8765 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8766 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8768 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8770 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8772 * misc/syslog.c (log_cleanup): Don't use parameter in
8773 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8774 pass NULL instead of a pointer to syslog_lock.
8776 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8778 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8779 linker map for all iconv modules.
8780 (distribute): Add gconv.map.
8781 * iconvdata/gconv.map: New file.
8783 * elf/Makefile: Also check all iconv modules for text relocations.
8785 * stdlib/Makefile: Remove code to automatically import GMP.
8787 * elf/Makefile (tests): Add rules to build and run check-textrel.
8788 * elf/check-textrel.c: New file.
8790 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8793 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8795 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8798 2002-04-30 Bruno Haible <bruno@clisp.org>
8800 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8801 the encoding if it already has slashes.
8802 Reported by Perry Rapp <prapp@erols.com>.
8804 2002-12-11 Roland McGrath <roland@redhat.com>
8806 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8807 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8808 Turn off PIC for compiling this file.
8810 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8812 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8813 definitions. Not needed.
8814 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8815 pthread routines directly.
8816 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8818 (arena_get2): Don't look at return value of mutex_lock.
8820 2002-12-11 Roland McGrath <roland@redhat.com>
8822 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8823 elf-init.o instead of compiling a PIC version.
8825 2002-12-11 Bruno Haible <bruno@clisp.org>
8827 * intl/gettext.h: Renamed to ...
8828 * intl/gmo.h: ... here.
8829 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8830 * intl/gettextP.h: Update.
8831 * intl/loadmsgcat.c: Update.
8833 * intl/gettextP.h (PARAMS): Make more portable.
8834 (attribute_hidden): Define as empty macro if not already defined.
8835 * intl/hash-string.h (PARAMS): Make more portable.
8836 * intl/loadinfo.h (PARAMS): Likewise.
8837 * intl/plural-exp.h (PARAMS): Likewise.
8838 (attribute_hidden): Move definition near the definition of
8841 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8842 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8844 2002-07-13 Bruno Haible <bruno@clisp.org>
8846 * intl/dcigettext.c (freea): New macro.
8847 (FREE_BLOCKS): Free also the registered blocks.
8848 (DCIGETTEXT): Free the 'search' variable.
8849 Reported by Andreas Fischer <a.fischer@asentics.de>.
8851 2002-04-27 Bruno Haible <bruno@clisp.org>
8853 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8854 * intl/dcigettext.c: Likewise.
8855 * intl/dcgettext.c: Likewise.
8856 * intl/dgettext.c: Likewise.
8857 * intl/gettext.c: Likewise.
8858 * intl/dcngettext.c: Likewise.
8859 * intl/dngettext.c: Likewise.
8860 * intl/ngettext.c: Likewise.
8861 * intl/textdomain.c: Likewise.
8862 * intl/bindtextdom.c: Likewise.
8863 * intl/plural-exp.h: Likewise.
8865 2002-01-02 Bruno Haible <bruno@clisp.org>
8867 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8869 2001-04-30 Bruno Haible <bruno@clisp.org>
8871 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8872 default macro definitions. Needed for mingw32.
8874 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8876 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8877 __builtin_constant_p to macro parameter.
8879 * sysdeps/generic/sigpause.c: Define all functions as weak.
8880 * sysdeps/posix/sigpause.c: Likewise.
8882 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8885 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8887 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8888 Explicitly align the array to sizeof (void *).
8889 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8891 * include/libc-symbols.h: Fix a comment typo.
8893 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8894 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8896 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8898 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8899 (__libc_sigsuspend): Likewise.
8900 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8901 (__libc_sigsuspend): Likewise.
8902 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8903 (creat): New weak alias.
8905 2002-12-10 Roland McGrath <roland@redhat.com>
8907 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8908 contributes a manual chapter.
8909 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8912 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8913 and move contents to ...
8914 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8915 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8916 it instead of duplicating its contents.
8917 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8919 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8921 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8923 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8925 (EXTRA_LD_ENVVARS): Use it.
8926 (DL_OSVERSION_INIT): Define.
8927 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8929 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8931 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8933 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8935 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8936 call. It is not allowed to destroy pthread mutexes which are
8937 still in use even though it is safe for our implementations. If
8938 somebody still uses the descriptor it is a bug.
8940 2002-12-09 Richard Henderson <rth@redhat.com>
8942 * csu/abi-note.S: Use .p2align, not .align.
8944 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8946 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8947 __libc_select aliases.
8949 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8952 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8954 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8956 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8958 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8960 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8962 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8963 __libc___xpg_sigpause aliases.
8965 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8967 * misc/error.c: Remove use of USE_IN_LIBIO.
8969 2002-12-08 Roland McGrath <roland@redhat.com>
8971 * elf/Makefile (tests): Uncomment tst-array[123].
8972 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8973 * csu/elf-init.c: New file.
8974 * csu/Makefile (routines, static-only-routines): Add elf-init.
8975 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8976 and __libc_csu_fini in place of _fini.
8977 * sysdeps/arm/elf/start.S: Likewise.
8978 * sysdeps/cris/elf/start.S: Likewise.
8979 * sysdeps/hppa/elf/start.S: Likewise.
8980 * sysdeps/i386/elf/start.S: Likewise.
8981 * sysdeps/ia64/elf/start.S: Likewise.
8982 * sysdeps/m68k/elf/start.S: Likewise.
8983 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8984 * sysdeps/mips/elf/start.S: Likewise.
8985 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8986 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8987 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8988 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8989 * sysdeps/sh/elf/start.S: Likewise.
8990 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8991 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8992 * sysdeps/x86_64/elf/start.S: Likewise.
8994 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8995 struct containing function ptr and value, free it.
8996 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8997 It's not safe to let the new thread use the SIGEV pointer.
8999 2001-10-20 Paul Eggert <eggert@twinsun.com>
9001 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
9002 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
9003 Use strerror_r that is only a macro, even if it is not a function.
9004 (strerror): Check for HAVE_DECL_STRERROR before declaring.
9005 (private_strerror): Use prototypes, not old-style function definition.
9006 (print_errno_message): New function.
9007 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
9009 (error_tail, error, error_at_line): Use it.
9011 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
9013 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
9015 2002-12-08 Ulrich Drepper <drepper@redhat.com>
9017 * scripts/output-format.sed: Fix bug in one of the s expressions
9018 which used / for one too many things.
9020 * include/unistd.h: Declare __libc_close.
9022 2002-12-07 Ulrich Drepper <drepper@redhat.com>
9024 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
9026 2002-12-07 Roland McGrath <roland@redhat.com>
9028 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
9029 from 2002-12-06, but remove unnecessary memset call without removing
9030 necessary copy of initialization image.
9032 * Makerules ($(common-objpfx)format.lds): New target.
9033 (common-generated): Add it.
9034 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
9035 * scripts/output-format.sed: New file.
9036 * Makefile (distribute): Add it.
9038 2002-12-07 Ulrich Drepper <drepper@redhat.com>
9040 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
9041 Reported by Art Haas <ahaas@airmail.net>.
9043 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
9045 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
9047 2002-12-07 Jakub Jelinek <jakub@redhat.com>
9049 * string/test-strncpy.c (do_random_tests): Improve test coverage.
9051 2002-12-06 Ulrich Drepper <drepper@redhat.com>
9053 * test-skeleton.c (timeout_handler): Allow expected signal to be
9056 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
9058 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
9060 2002-12-07 Jakub Jelinek <jakub@redhat.com>
9062 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
9063 (SYSCALL_ERROR_HANDLER): Fix a pasto.
9064 Reported by Jeff Bailey <jbailey@nisa.net>.
9066 2002-12-06 Ulrich Drepper <drepper@redhat.com>
9068 * sysdeps/generic/libc-tls.c: Undo last patch.
9070 * include/wctype.h: Define iswalnum with libc_hidden_proto.
9072 * include/signal.h: Define raise with libc_hidden_proto.
9074 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
9075 __execve instead of snprintf and execve.
9077 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
9080 2002-12-06 Jakub Jelinek <jakub@redhat.com>
9082 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
9083 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
9085 2002-12-06 Ulrich Drepper <drepper@redhat.com>
9087 * misc/syslog.c (log_cleanup): New function.
9088 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
9089 (closelog): Likewise.
9091 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
9092 * elf/dl-iteratephdr.c: Likewise.
9093 * elf/dl-lookup.c: Likewise.
9094 * elf/dl-misc.c: Likewise.
9095 * elf/dl-open.c: Likewise.
9096 * elf/dl-support.c: Likewise.
9097 * elf/rtld.c: Likewise.
9098 * sysdeps/generic/ldsodefs.h: Likewise.
9099 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
9100 * sysdeps/mach/bits/libc-lock.h: Likewise.
9101 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
9103 2002-12-06 Roland McGrath <roland@redhat.com>
9105 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
9107 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
9108 (malloc_starter, memalign_starter, free_starter): Don't define these.
9109 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
9110 Don't declare them either.
9111 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
9112 __pthread_initialize, so no need to set hooks to *_starter.
9113 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
9114 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
9115 (__libc_malloc_pthread_startup): New function.
9116 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
9118 * malloc/hooks.c (memalign_starter): New function.
9119 * malloc/malloc.c: Declare it.
9120 * malloc/arena.c (save_memalign_hook): New variable.
9121 (ptmalloc_init): Set __memalign_hook to memalign_starter.
9123 * elf/dl-minimal.c (free): Clear the memory.
9124 (calloc): Just call malloc, knowing all memory it returns is cleared.
9126 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
9127 malloc and memset; calloc can avoid the zeroing when redundant.
9128 (_dl_tls_setup): Likewise.
9129 * elf/dl-load.c (decompose_rpath): Likewise.
9130 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
9131 call, since memory from sbrk at startup is already zero.
9133 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
9134 error string for failure, null for success. Update callers.
9135 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
9136 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9138 2002-12-05 Jakub Jelinek <jakub@redhat.com>
9140 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
9142 (readahead): Change args to i:iii.
9143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
9144 Change args to i:iii.
9145 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
9148 2002-12-05 Roland McGrath <roland@redhat.com>
9150 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
9151 call all functions rather than none.
9152 Reported by Mark P. Mitchell <mark@codesourcery.com>.
9154 2002-12-04 Roland McGrath <roland@redhat.com>
9156 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
9157 on _nl_current_LC_* variables.
9159 2002-12-05 Ulrich Drepper <drepper@redhat.com>
9161 * dirent/bug-readdir1.c (main): Don't call closedir, just close
9162 the file descriptor. This is testing what the bug report was about.
9164 2002-12-04 Ulrich Drepper <drepper@redhat.com>
9166 * po/be.po: New file.
9168 * argp/Makefile (tests): Add tst-argp1.
9170 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
9171 Change type of _attribute to void*.
9172 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9173 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
9174 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
9175 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9176 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9178 2002-12-04 Roland McGrath <roland@redhat.com>
9180 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
9181 members to the end, so a libpthread compiled with !USE_TLS will still
9182 find other members properly.
9184 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
9185 operand for DEST memory. Fix dummy input operand to use SRC.
9186 Reported by Davin McCall <davmac@ozonline.com.au>.
9188 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
9189 alignment when initializing the DTV entry.
9191 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
9192 when TLS has not been set up, try to set it up if we can.
9193 * elf/tst-tls4.c: Revert last change.
9194 * elf/tst-tls5.c: Likewise.
9195 * elf/tst-tls6.c: Likewise.
9196 * elf/tst-tls7.c: Likewise.
9197 * elf/tst-tls8.c: Likewise.
9198 * elf/tst-tls9.c: Likewise.
9200 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
9201 * sysdeps/generic/ldsodefs.h: Declare it.
9202 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
9203 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
9204 function, broken out of __libc_setup_tls.
9205 (init_static_tls): Likewise.
9206 (__libc_setup_tls): Call them.
9207 (_dl_tls_setup): New function, uses new subroutines.
9209 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
9210 Clear the pointer when returning true.
9211 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
9212 first element of the slotinfo list too.
9214 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
9217 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
9218 (_dl_determine_tlsoffset): Likewise.
9220 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
9221 startup_error_tsd, made global.
9222 (dl_main): Update initialization.
9223 * elf/dl-tsd.c: Likewise.
9224 * sysdeps/generic/ldsodefs.h: Declare it.
9226 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9228 * manual/texinfo.tex: Update from latest upstream version.
9230 2002-12-03 Roland McGrath <roland@redhat.com>
9232 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
9233 area surplus in calculation for sbrk call.
9235 * iconvdata/cp1125.c: New file.
9236 * iconvdata/Makefile (distribute): Add it.
9237 (modules): Add CP1125.
9238 (gen-8bit-gap-modules): Add cp1125.
9239 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
9240 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
9242 2002-12-03 Andreas Jaeger <aj@suse.de>
9244 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
9246 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9248 * sysdeps/posix/system.c (do_system): Make signal handler
9249 installation thread safe.
9251 2002-12-02 Roland McGrath <roland@redhat.com>
9253 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
9254 caller from EXTRA to -.
9255 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9256 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9257 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9259 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
9261 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
9262 bits of RM are cleared.
9264 2002-12-02 Roland McGrath <roland@redhat.com>
9266 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
9267 TLS setup is required.
9268 * elf/tst-tls5.c: Likewise.
9269 * elf/tst-tls6.c: Likewise.
9270 * elf/tst-tls7.c: Likewise.
9271 * elf/tst-tls8.c: Likewise.
9272 * elf/tst-tls9.c: Likewise.
9274 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
9275 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
9276 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
9277 for being null before calling free_slotinfo.
9278 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
9279 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
9281 2002-11-30 Bruno Haible <bruno@clisp.org>
9283 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
9284 (struct __gconv_step): New field __btowc_fct.
9285 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
9286 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
9288 (__gconv_btwoc_ascii): New declaration.
9289 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9290 (__gconv_btwoc_ascii): New function.
9291 * iconv/gconv_builtin.h: Add BtowcFct argument to all
9292 BUILTIN_TRANSFORMATION invocations.
9293 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9294 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
9295 * iconv/gconv_builtin.c (map): New field btowc_fct.
9296 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
9298 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
9299 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
9300 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
9301 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
9302 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
9303 (gconv_init): Initialize __btowc_fct field.
9304 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
9305 * iconv/loop.c: Document ONEBYTE_BODY.
9306 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
9307 Undefine ONEBYTE_BODY at the end.
9308 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
9309 * iconvdata/8bit-gap.c (NONNUL): New macro.
9310 (BODY for FROM_LOOP): Use it.
9311 (ONEBYTE_BODY): New macro.
9312 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
9313 (NONNUL): New macro.
9314 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
9315 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
9316 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
9317 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
9318 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
9319 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
9320 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
9321 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
9322 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
9323 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
9324 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
9325 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
9326 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
9327 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
9328 * iconvdata/ibm932.c: Include <stdbool.h>.
9329 (TRUE, FALSE): Remove macros.
9330 (BODY for FROM_LOOP): Remove unused variable rp1.
9331 (ONEBYTE_BODY): New macro.
9332 (BODY for TO_LOOP): Use bool.
9333 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9334 * iconvdata/ibm943.c: Include <stdbool.h>.
9335 (TRUE, FALSE): Remove macros.
9336 (BODY for FROM_LOOP): Remove unused variable rp1.
9337 (ONEBYTE_BODY): New macro.
9338 (BODY for TO_LOOP): Use bool.
9339 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9340 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9341 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9342 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9343 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9344 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9345 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9346 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9347 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9348 * iconvdata/gbbig5.c: Tweak comment.
9350 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9352 * po/fi.po: Update from translation team.
9354 2002-12-01 Roland McGrath <roland@redhat.com>
9356 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9357 testing getdents64 return value.
9359 * scripts/versions.awk: Don't pass -n flag to sort command.
9361 * posix/bug-regex13.c: Include <string.h>.
9363 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9364 DL_SYSDEP_OSCHECK here.
9365 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9366 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9368 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9369 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9371 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9372 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9374 * include/link.h: Comment typo fix.
9376 2002-12-01 Roland McGrath <roland@frob.com>
9378 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9379 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9380 _POSIX_MEMORY_PROTECTION): Likewise.
9381 (_POSIX_POLL, _POSIX_SELECT): Removed.
9383 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9385 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9386 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9388 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9390 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9392 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9395 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9397 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9398 branch prediction buffers by using unpaired call/ret.
9400 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9402 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9403 first parameters constraint string.
9404 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9406 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9408 * posix/regcomp.c (parse_expression): Set the bit since the back
9409 reference is used in the regular expression.
9410 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9412 (re_node_set_init_copy): Likewise.
9413 * posix/regex_internal.h (state_array_t): New structure.
9414 (re_sub_match_last_t): Likewise.
9415 (re_sub_match_top_t): Likewise.
9416 (re_match_context_t): Add new members.
9417 (re_dfa_t): Likewise.
9418 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9419 to check the matching is really correct, and retry if failed.
9420 Move the routin pruning the impossible nodes from here, ...
9421 (prune_impossible_nodes): To this function.
9422 (check_matching): Invoke check_subexp_matching_top, and replace
9423 redundant checking with transit_state_bkref invocation.
9424 (proceed_next_node): Replace strncmp with memcmp. Reported by
9425 Paolo Bonzini <bonzini@gnu.org>.
9426 (update_cur_sifted_state): Remove search_subexp invocation.
9427 (search_subexp): Remove this function.
9428 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9430 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9431 Remove unused invocation of match_ctx_add_entry.
9432 (transit_state): Invoke check_subexp_matching_top.
9433 (check_subexp_matching_top): New function.
9434 (transit_state_bkref): Remove unused array.
9435 Merge transit_state_bkref_loop.
9436 (transit_state_bkref_loop): Use get_subexp instead of
9437 sift_states_backward. Use search_cur_bkref_entry for optimization.
9438 Merge this function to transit_state_bkref.
9439 (get_subexp): New function.
9440 (get_subexp_sub): Likewise.
9441 (find_subexp_node): Likewise.
9442 (check_arrival): Likewise.
9443 (check_arrival_expand_ecl): Likewise.
9444 (check_arrival_expand_ecl_sub): Likewise.
9445 (expand_bkref_cache): Likewise.
9446 (match_ctx_init): Initialize new members.
9447 (match_ctx_clean): New function.
9448 (match_ctx_free): Release new members.
9449 (match_ctx_free_subtops): New function.
9450 (match_ctx_add_entry): Fix indent.
9451 (search_cur_bkref_entry): New function.
9452 (match_ctx_add_subtop): Likewise.
9453 (match_ctx_add_sublast): Likewise.
9455 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9457 * iconv/Makefile (tests): Remove tst-iconv4.c
9458 * iconv/tst-iconv4.c: Moved to...
9459 * iconvdata/tst-iconv4.c: ...here. New file.
9460 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9462 2002-11-25 Roland McGrath <roland@redhat.com>
9464 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9465 Grok AF_LINK if defined.
9466 From Momchil Velikov <velco@fadata.bg>.
9468 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9469 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9470 Reported by Momchil Velikov <velco@fadata.bg>.
9472 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9473 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9474 (__ifreq): Count up NIFS that way too.
9475 Reported by Momchil Velikov <velco@fadata.bg>.
9477 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9479 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9480 and <fpu_control.h>.
9482 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9484 * elf/elf.h (EM_ST19): Fix typo.
9486 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9488 * include/errno.h (__set_errno): Define as errno = val
9491 2002-11-24 Roland McGrath <roland@redhat.com>
9493 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9494 * sysdeps/posix/writev.c: Likewise.
9495 From Momchil Velikov <velco@fadata.bg>.
9497 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9498 calling *GL(dl_error_catch_tsd) for a thread-local location.
9499 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9500 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9501 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9503 * libio/iofflush.c: Add libc_hidden_def.
9504 * libio/iofwrite.c: Likewise.
9505 * sysdeps/generic/sigtimedwait.c: Likewise.
9506 * sysdeps/generic/sigwaitinfo.c: Likewise.
9507 * sysdeps/posix/sigwait.c: Likewise.
9508 Reported by Momchil Velikov <velco@fadata.bg>.
9510 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9511 to match <arpa/inet.h> declaration.
9512 * inet/inet_netof.c (inet_netof): Likewise.
9513 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9514 Reported by Momchil Velikov <velco@fadata.bg>.
9516 * configure.in: Skip AUTOCONF check under --without-cvs.
9517 * configure: Regenerated.
9519 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9520 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9521 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9523 2002-11-24 Andreas Schwab <schwab@suse.de>
9525 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9528 2002-11-19 Jim Meyering <jim@meyering.net>
9530 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9532 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9534 2002-11-23 Roland McGrath <roland@redhat.com>
9536 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9537 Just produce hex output for datum sizes.
9539 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9540 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9542 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9544 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9545 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9546 and __unused3 fields.
9547 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9548 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9549 and __unused2 fields.
9550 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9551 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9552 __unused3, and __unused4 fields.
9554 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9555 obtain lowest address for profiling in __monstartup call.
9557 2002-11-21 Roland McGrath <roland@redhat.com>
9559 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9560 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9562 * locale/localeinfo.h (struct locale_data): Revert last change.
9564 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9565 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9567 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9568 __NR_pread64 if not defined.
9569 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9570 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9572 2002-11-21 Roland McGrath <roland@frob.com>
9574 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9575 __libc_multiple_libcs here. Call __setfpucw.
9577 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9579 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9581 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9582 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9583 CLONE_CHILD_*TID flags.
9585 2002-11-20 Andreas Jaeger <aj@suse.de>
9587 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9588 We pass struct ucontext on x86-64.
9590 (GET_FRAME): Adjust.
9591 (GET_STACK): Adjust.
9593 2002-11-20 Roland McGrath <roland@redhat.com>
9595 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9596 conditionalize [! DO_VERSIONING] #error.
9598 * scripts/abilist.awk: Grok function descriptor symbols.
9600 * intl/tst-gettext.c (main): Check return values from setlocale.
9601 Add necessary unsetenv's to make LANG=existing-locale check work.
9603 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9604 so aborted prior runs don't confuse things.
9606 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9607 Use uintptr_t instead of unsigned int for `word' member.
9608 (_NL_CURRENT_WORD): Cast to uint32_t.
9610 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9613 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9615 * elf/tls-macros.h: Add IA-64 definitions.
9616 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9618 * iconv/Makefile (tests): Add tst-iconv4.
9619 * iconv/tst-iconv4.c: New file.
9621 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9622 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9623 __GCONV_INCOMPLETE_INPUT.
9624 (ucs4le_internal_loop): Likewise.
9625 (ucs4le_internal_loop_unaligned): Likewise.
9626 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9627 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9628 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9630 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9633 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9634 * sysdeps/posix/getaddrinfo.c: Likewise.
9636 * include/alloca.h (extend_alloca): New define. Based on stack
9637 direction it'll try to append to the previouls allocated buffer.
9639 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9641 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9642 use the same service for AF_INET and AF_INET6.
9644 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9646 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9647 of stack space instead of 16k.
9649 2002-11-18 Wolfram Gloger <wg@malloc.de>
9652 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9653 nothing if not initialized. Bug report from Marcus Brinkmann
9654 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9656 2002-11-19 Roland McGrath <roland@redhat.com>
9658 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9661 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9662 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9663 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9664 * configure: Regenerated.
9666 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9668 * include/dlfcn.h: __libc_dlopen is now a macro calling
9669 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9670 (__libc_dlopen_mode): New prototype.
9671 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9672 new parameter. Store new parameter in mode field of structure passed
9674 (struct do_dlopen_args): Add new field mode.
9675 (do_dlopen): Pass mode from parameter structure to _dl_open.
9677 2002-11-11 Randolf Chung <tausq@debian.org>
9679 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9680 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9681 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9683 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9685 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9686 Set -mdisable-fpregs for this file.
9688 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9690 * sysdeps/unix/sysv/linux/configure.in:
9691 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9692 from gcc-3.0 era for backwards compatibility.
9693 * sysdeps/unix/sysv/linux/configure: Regenerate.
9695 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9696 Define mcontext_t as a sigcontext.
9698 2002-11-18 Roland McGrath <roland@redhat.com>
9700 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9701 Free memory in `last_result' if it was used.
9703 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9704 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9705 Do the parsing inline instead of copying strings and calling
9706 inet_network, and properly skip all alias names not matching the form.
9708 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9710 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9712 * manual/pattern.texi (Wordexp Example): Fix sample code.
9714 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9715 childs stack which will be loaded into the %esi register.
9717 2002-11-14 Paul Eggert <eggert@twinsun.com>
9719 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9720 overflow when skipping the question part and when unpacking aliases.
9722 2002-11-15 Roland McGrath <roland@redhat.com>
9724 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9725 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9726 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9728 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9730 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9731 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9733 2002-11-15 Roland McGrath <roland@redhat.com>
9735 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9736 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9737 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9738 (+make-include-of-dep): New canned sequence.
9740 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9741 From Dmitry V. Levin <ldv@altlinux.org>.
9743 2002-11-14 Roland McGrath <roland@redhat.com>
9745 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9746 * inet/herrno.c (__libc_h_errno): Likewise.
9747 * resolv/res_libc.c (__libc_res): Likewise.
9748 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9749 (__res_state) [! USE___THREAD]: Don't define as weak.
9750 * csu/Versions: Revert last change.
9751 * resolv/Versions: Revert last change.
9753 * Makerules ($(common-objpfx)%.make): New pattern rule.
9754 * tls.make.c: New file.
9755 * Makefile (distribute): Add it.
9757 * sysdeps/generic/errno.c [! USE___THREAD]
9758 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9759 with compat_symbol so they are not link-time visible.
9760 [! USE___THREAD] (__libc_errno): New alias for errno.
9761 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9762 Add __libc_errno here.
9763 * inet/herrno.c [USE___THREAD]: Use this conditional
9764 in place of [USE_TLS && HAVE___THREAD].
9765 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9766 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9768 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9769 * resolv/res_libc.c [! USE___THREAD]
9770 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9771 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9772 (__libc_res): Define as alias for _res.
9773 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9774 Add __libc_h_errno and __libc_res here.
9776 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9778 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9779 * resolv/Versions (h_errno, _res): Likewise.
9781 2002-11-14 Roland McGrath <roland@redhat.com>
9783 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9784 (%.symlist): Likewise.
9786 2002-11-13 Roland McGrath <roland@redhat.com>
9788 * scripts/abilist.awk: New file.
9789 * Makefile (distribute): Add it.
9790 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9791 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9792 [$(subdir) = elf] (tests): Depend on libc.symlist.
9793 (generated, common-generated): Add those files.
9795 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9796 * configure: Regenerated.
9797 * config.make.in (OBJDUMP): New variable, substituted by configure.
9799 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9800 (mallochook, reallochook): Set them up.
9801 (checkhdr): Check HDR->magic2 value.
9802 (freehook): Reset HDR->magic2.
9803 (memalignhook): New static function.
9804 (old_memalign_hook): New static variable.
9805 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9807 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9810 2002-11-13 Andreas Jaeger <aj@suse.de>
9812 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9814 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9816 2002-11-11 Paul Eggert <eggert@twinsun.com>
9818 * manual/crypt.texi (Cryptographic Functions): Mention that
9819 the MD5 one-way algorithm is compatible with BSD's.
9821 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9823 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9825 (re_string_reconstruct): Calculate the context by itself when the
9826 offset points out of the valid range.
9827 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9828 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9829 (IS_WIDE_WORD_CHAR): New macro.
9830 (IS_WIDE_NEWLINE): New macro.
9832 2002-11-12 Andreas Jaeger <aj@suse.de>
9834 * sysdeps/x86_64/strchr.S: Don't use one register for two
9835 purposes, this fixes a bug noticed by test-strchr.c.
9837 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9840 2002-11-12 Roland McGrath <roland@redhat.com>
9842 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9843 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9845 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9846 instead of <pt-machine.h>.
9847 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9849 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9851 2002-11-10 Roland McGrath <roland@redhat.com>
9853 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9854 Call fputs instead of fwprintf (simpler to follow in debugger).
9856 * crypt/md5-crypt.c: Doc fix.
9858 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9859 the beginning of generated target commands.
9861 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9862 dependencies for these in case implicit rule search skipped the
9863 nonexistent source directory.
9864 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9865 files with $(object-suffixes) as targets too.
9866 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9867 and a target for it using $(make-target-directory).
9869 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9871 2002-11-10 Roland McGrath <roland@frob.com>
9873 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9874 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9876 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9877 l_start == 0 and l_len == 1 as we do l_len == 0.
9879 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9881 * po/da.po: Update from translation team.
9883 2002-11-10 Roland McGrath <roland@redhat.com>
9885 * config.make.in (includedir): New variable, substituted by configure.
9886 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9887 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9889 2002-11-10 Andreas Jaeger <aj@suse.de>
9891 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9892 REG_OLDMASK and REG_CR2 to synch with kernel header.
9895 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9897 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9898 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9899 (__nss_setent): Likewise.
9900 (__nss_getent_r): Likewise.
9901 * inet/getnetgrent_r.c (innetgr): Likewise.
9902 (__internal_setnetgrent_reuse): Likewise.
9903 (internal_getnetgrent_r): Likewise.
9904 * inet/ether_hton.c (ether_hostton): Likewise.
9905 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9906 * sunrpc/netname.c (netname2user): Likewise.
9907 * sunrpc/publickey.c (getpublickey): Likewise.
9908 (getsecretkey): Likewise.
9910 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9912 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9913 error in range calculation.
9915 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9917 * string/test-strspn.c (do_test): Ensure zero termination.
9918 * string/test-strpbrk.c (do_test): Likewise.
9919 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9920 * string/test-strncpy.c (stupid_strncpy): Likewise.
9921 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9923 2002-10-08 Roland McGrath <roland@redhat.com>
9925 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9928 2002-09-22 H.J. Lu <hjl@gnu.org>
9930 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9931 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9932 only if __NR_mmap2 is defined.
9934 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9935 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9936 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9937 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9939 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9941 * posix/bug-regex13.c (tests): Add new test.
9943 * string/test-strchr.c (stupid_strchr): New function.
9944 (do_random_tests): Make sure the string is zero terminated.
9945 * string/test-strpbrk.c (stupid_strpbrk): New function.
9946 (do_random_tests): Make sure the string is zero terminated.
9947 * string/test-strcmp.c (stupid_strcmp): New function.
9948 (do_random_tests): Make sure the strings are zero terminated.
9949 * string/test-strspn.c (stupid_strspn): New function.
9950 (simple_strspn): Rename rej argument to acc.
9951 (do_random_tests): Make sure the string is zero terminated.
9952 * string/test-strcspn.c (stupid_strcspn): New function.
9953 * string/test-strncpy.c (stupid_strncpy): New function.
9954 * string/test-stpncpy.c (stupid_stpncpy): New function.
9955 * string/test-strncmp.c (stupid_strncmp): New function.
9956 (do_random_tests): Make sure the strings are zero terminated.
9957 * string/test-string.h (impl_t): Change test into long.
9958 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9960 2002-11-08 Roland McGrath <roland@redhat.com>
9962 * sysdeps/ia64/elf/configure.in: Add TLS check.
9963 From Ian Wienand <ianw@cse.unsw.edu.au>.
9964 * sysdeps/ia64/elf/configure: Regenerated.
9966 2002-11-07 Roland McGrath <roland@redhat.com>
9968 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9969 place of _IO_new_do_write.
9970 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9971 #undef before versioned_symbol use.
9973 2002-11-07 Richard Henderson <rth@redhat.com>
9975 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9976 * configure: Regenerated.
9977 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9978 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9979 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9980 _dl_fini via gp-relative relocations.
9981 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9983 * elf/tls-macros.h: Add alpha versions.
9984 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9985 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9986 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9987 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9988 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9989 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9990 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9991 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9992 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9993 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9994 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9995 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9996 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9997 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9998 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9999 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
10000 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
10001 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
10003 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
10004 Kill argument registers across the inline syscall.
10006 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
10008 * linuxthreads/sysdeps/alpha/tls.h: New file.
10009 * sysdeps/alpha/dl-tls.h: New file.
10011 2002-10-29 David Mosberger <davidm@hpl.hp.com>
10013 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
10014 (gmon_initializer): New function.
10015 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
10016 __gmon_start__ here. Call it from gmon_initializer() instead.
10018 2002-03-12 H.J. Lu <hjl@gnu.org>
10020 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
10021 tst-array2, and tst-array3.
10022 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
10023 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
10024 ($(objpfx)tst-array1.out): New target.
10025 ($(objpfx)tst-array2): Likewise.
10026 ($(objpfx)tst-array2.out): Likewise.
10027 ($(objpfx)tst-array3.out): Likewise.
10028 * elf/tst-array1.c: New file.
10029 * elf/tst-array1.exp: Likewise.
10030 * elf/tst-array2.c: Likewise.
10031 * elf/tst-array2dep.c: Likewise.
10032 * elf/tst-array2.exp: Likewise.
10033 * elf/tst-array3.c: Likewise.
10035 2002-10-28 David Mosberger <davidm@hpl.hp.com>
10037 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
10038 Don't add L->l_addr to array entry values.
10040 2002-11-07 Jakub Jelinek <jakub@redhat.com>
10042 * string/test-string.h: New file.
10043 * string/test-strlen.c: New file.
10044 * string/test-string.h: New file.
10045 * string/test-strcmp.c: New file.
10046 * string/test-strchr.c: New file.
10047 * string/test-strrchr.c: New file.
10048 * string/test-strcpy.c: New file.
10049 * string/test-stpcpy.c: New file.
10050 * string/test-strncpy.c: New file.
10051 * string/test-stpncpy.c: New file.
10052 * string/test-strpbrk.c: New file.
10053 * string/test-strcspn.c: New file.
10054 * string/test-strspn.c: New file.
10055 * string/test-strcat.c: New file.
10056 * string/test-strncmp.c: New file.
10057 * string/test-memchr.c: New file.
10058 * string/test-memcmp.c: New file.
10059 * string/test-memset.c: New file.
10060 * string/test-memcpy.c: New file.
10061 * string/test-mempcpy.c: New file.
10062 * string/test-memmove.c: New file.
10063 * string/Makefile (strop-tests): New variable.
10064 (tests): Add strop-tests.
10065 (distribute): Add test-string.h.
10067 2002-11-06 Ulrich Drepper <drepper@redhat.com>
10069 * posix/regcomp.c: Use tabs instead of spaces.
10070 * posix/regexec.c: Likewise.
10071 * posix/regex_internal.h: Likewise.
10073 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
10075 2002-11-06 Jakub Jelinek <jakub@redhat.com>
10077 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
10079 (regcomp): Don't set can_be_null here.
10080 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
10081 (re_compile_internal): Clear can_be_null, set regs_allocated.
10083 * posix/regcomp.c (re_set_fastmap): New function.
10084 (re_compile_fastmap_iter): Use it. Remove redundant type ==
10085 COMPLEX_BRACKET check.
10086 * posix/regexec.c (re_search_internal): Optimize searching with
10087 fastmap. Call re_string_reconstruct even if match_first is
10088 smaller than raw_mbs_idx.
10090 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
10092 * posix/regcomp (free_dfa_content): Use free_state.
10093 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
10094 pointers in case that realloc failed.
10095 (re_node_set_merge): Likewise.
10096 (register_state): Likewise.
10097 (create_newstate_common): Invoke memory release functions in case of
10099 (create_ci_newstate): Likewise.
10100 (create_cd_newstate): Likewise.
10101 (free_state): New function.
10102 * posix/regexec.c (re_search_internal): Invoke memory release
10103 functions in case of error conditions.
10104 (sift_states_backward): Likewise.
10105 (merge_state_array): Likewise.
10106 (add_epsilon_src_nodes): Likewise.
10107 (sub_epsilon_src_nodes): Likewise.
10108 (search_subexp): Likewise.
10109 (sift_states_bkref): Likewise.
10110 (transit_state_sb): Likewise.
10111 (transit_state_mb): Likewise.
10112 (transit_state_bkref_loop): Likewise.
10113 (group_nodes_into_DFAstates): Likewise.
10114 (push_fail_stack): Don't edit pointers in case that realloc failed.
10115 (extend_buffers): Likewise.
10116 (match_ctx_add_entry): Likewise.
10118 2002-11-06 Roland McGrath <roland@redhat.com>
10120 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
10121 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10123 * configure.in: Add checks on as and ld for binutils 2.13 or later.
10124 * configure: Regenerated.
10126 2002-11-06 Ulrich Drepper <drepper@redhat.com>
10128 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
10129 If re_compile_internal failed free fastmap buffer.
10130 (free_dfa_content): Broken out of regfree function. Frees all dfa
10132 (regfree): Add free_dfa_content.
10133 (re_compile_internal): If any of the called functions fails free
10134 all dfa related memory.
10136 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10138 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
10139 warnings from the kernel headers.
10141 2002-11-05 Roland McGrath <roland@redhat.com>
10143 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
10144 From Johannes Stezenbach <js@convergence.de>.
10146 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
10147 #errlist-compat magic comment to give 123 as size.
10148 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
10149 (libc: GLIBC_2.2): ... here.
10150 (libc: GLIBC_2.3): Likewise.
10152 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10154 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
10155 which happens at the beginning so that we can unload modules in
10158 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10160 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
10161 under [__USE_MISC || _ASM].
10163 * elf/elf.h: Remove the obsolete SH TLS relocations.
10165 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10167 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
10169 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
10172 __NR_pread64 and __NR_pwrite64.
10173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10174 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
10176 Revert change to use INLINE_SYSCALL.
10177 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10178 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10179 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10180 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
10182 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
10185 Update clobber list and add a comment about the syscall ABI.
10187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
10188 s_pwrite64, s_ftruncate, s_truncate): Re-add.
10190 2002-11-05 Jakub Jelinek <jakub@redhat.com>
10192 * iconv/gconv_dl.c (free_mem): Clear loaded.
10193 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
10196 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10198 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
10200 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
10201 as old code without locking. _IO_seekoff calls this function after
10202 locking the stream.
10203 * libio/ioseekpos.c: Likewise for _IO_seekpos.
10204 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
10205 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
10207 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
10208 of _IO_seekoff_internal.
10209 (_IO_rewind): Likewise.
10210 * libio/ioftell.c: Likewise.
10211 * libio/ftello.c: Likewise.
10212 * libio/ftello64.c: Likewise.
10213 * libio/iofgetpos.c: Likewise.
10214 * libio/iofgetpos64.c: Likewise.
10215 * libio/oldiofgetpos.c: Likewise.
10216 * libio/oldiofgetpos64.c: Likewise.
10217 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
10218 _IO_seekpos_internal.
10219 * libio/iofsetpos64.c: Likewise.
10220 * libio/oldiofsetpos.c: Likewise.
10221 * libio/oldiofsetpos64.c: Likewise.
10223 2002-11-04 Roland McGrath <roland@redhat.com>
10225 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
10226 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
10227 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
10228 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
10229 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10230 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10231 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10232 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
10233 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
10234 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
10236 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
10237 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
10238 Remove these, no longer used.
10240 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
10243 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
10244 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
10245 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
10246 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
10247 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
10250 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
10251 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10252 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
10254 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10255 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
10257 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10259 2002-11-03 Roland McGrath <roland@redhat.com>
10261 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
10262 `_dl_tls_static_used'.
10263 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
10264 (__libc_setup_tls): Initialize it. Let the initial value of
10265 _dl_tls_static_size indicate some surplus space in the computed value.
10266 * elf/dl-open.c (_dl_tls_static_size): New variable.
10267 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
10268 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
10269 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
10270 (CHECK_STATIC_TLS): Use it.
10271 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
10272 closed objects occupied a trailing contiguous chunk of static TLS area.
10274 2002-10-18 Bruno Haible <bruno@clisp.org>
10276 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
10278 2002-11-04 Ulrich Drepper <drepper@redhat.com>
10280 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
10281 _wide_data->_IO_read_end if adjustment can be made in the current
10284 * sysdeps/unix/sysv/linux/fexecve.c: New file.
10286 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
10287 wide oriented streams are used.
10289 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
10290 service hasn't been used [PR libc/4744].
10292 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
10293 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
10295 * manual/examples/dir.c: Don't include <stddef.h>.
10296 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
10297 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
10299 2002-11-02 H.J. Lu <hjl@gnu.org>
10301 * stdio-common/reg-printf.c: Include <stddef.h>.
10303 2002-11-03 Ulrich Drepper <drepper@redhat.com>
10305 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
10307 * po/ca.po: Update from translation team.
10308 * po/es.po: Likewise.
10310 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
10311 is defined write out memory map.
10312 * sysdeps/unix/sysv/linux/segfault.c: New file.
10314 2002-11-02 Roland McGrath <roland@redhat.com>
10316 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
10317 pointers that can alias.
10318 Reported by Daniel Jacobowitz <drow@mvista.com>.
10320 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
10322 2002-11-02 Roland McGrath <roland@redhat.com>
10324 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
10325 description to be clearer and to say that *RESULT is set to ENTRY.
10327 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10329 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10330 dests_ch arrays together. Alloca or malloc dest_states,
10331 dest_states_word and dest_states_nl arrays together. Free memory on
10334 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10336 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10337 and current_saltbits.
10339 2002-11-02 Roland McGrath <roland@redhat.com>
10341 * stdio-common/reg-printf.c: Include <stdlib.h>.
10343 2002-11-02 H.J. Lu <hjl@gnu.org>
10345 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10346 caller to EXTRA instead of execve.
10348 2002-11-01 Roland McGrath <roland@redhat.com>
10350 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10351 in place of [!(USE_TLS && HAVE___THREAD)].
10352 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10354 2002-10-31 Roger Sayle <roger@eyesopen.com>
10356 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10358 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10360 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10361 without defining FP_ROUNDMODE.
10363 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10365 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10366 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10368 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10369 (OLD_SIGLIST_SIZE): Define.
10370 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10371 (OLD_SIGLIST_SIZE): Define.
10372 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10374 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10376 * sysdeps/ia64/strncpy.S: Fix recovery code.
10378 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10380 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10382 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10384 * elf/dl-libc.c (free_mem): Likewise.
10385 * iconv/gconv_conf.c (free_mem): Likewise.
10386 * iconv/gconv_db.c (free_mem): Likewise.
10387 * iconv/gconv_dl.c (free_mem): Likewise.
10388 * iconv/gconv_cache.c (free_mem): Likewise.
10389 * intl/finddomain.c (free_mem): Likewise.
10390 * intl/dcigettext.c (free_mem): Likewise.
10391 * locale/setlocale.c (free_mem): Likewise.
10392 * misc/fstab.c (fstab_free): Likewise.
10393 * nss/nsswitch.c (free_mem): Likewise.
10394 * posix/regcomp.c (free_mem): Likewise.
10395 * resolv/gai_misc.c (free_res): Likewise.
10396 * stdlib/fmtmsg.c (free_mem): Likewise.
10397 * sunrpc/clnt_perr.c (free_mem): Likewise.
10398 * sysdeps/generic/setenv.c (free_mem): Likewise.
10399 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10400 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10401 * time/tzset.c (free_mem): Likewise.
10402 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10403 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10404 * malloc/set-freeres.c (__libc_freeres): Likewise.
10406 * login/getutent.c: Include stdlib.h instead of stddef.h.
10407 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10408 (__getutent): Allocate buffer the first time it is run.
10409 * login/getutid.c: Include stdlib.h instead of stddef.h.
10410 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10411 (__getutid): Allocate buffer the first time it is run.
10412 * login/getutline.c: Include stdlib.h instead of stddef.h.
10413 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10414 (__getutline): Allocate buffer the first time it is run.
10415 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10416 (mtrace): Allocate malloc_trace_buffer.
10417 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10418 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10419 * string/strerror.c: Include libintl.h and errno.h.
10420 (buf): New variable.
10421 (strerror): Only allocate buffer if actually needed (unknown error).
10422 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10425 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10427 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10428 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10430 (__libc_freeres): Free all pointers in that section.
10431 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10432 commands when creating .lds script.
10433 (LDSEDCMD-c.so): New variable.
10434 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10435 (rcmd_af): Use strdup to allocate ahostbuf.
10436 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10437 (rexec_af): Use strdup to allocate ahostbuf.
10438 * stdio-common/reg-printf.c (printf_funcs): Remove.
10439 (__printf_arginfo_table): Change into printf_arginfo_function **.
10440 Add libc_freeres_ptr.
10441 (__register_printf_function): Allocate __printf_arginfo_table
10442 and __printf_function_table the first time it is called.
10443 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10444 printf_arginfo_function **.
10445 (parse_one_spec): Add __builtin_expect.
10446 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10447 (free_mem): Remove.
10448 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10449 (free_mem): Remove.
10450 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10451 (string_space, map): Add libc_freeres_ptr.
10452 (free_mem): Remove.
10453 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10454 (free_mem): Remove.
10455 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10456 (free_mem): Remove.
10457 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10458 (buffer): Add libc_freeres_ptr.
10459 (free_mem): Remove for _LIBC.
10460 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10461 (free_mem): Remove.
10462 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10463 (free_mem): Remove.
10464 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10465 (free_mem): Remove.
10466 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10467 (free_mem): Remove.
10468 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10469 (free_mem): Remove.
10470 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10471 (free_mem): Remove.
10472 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10474 (free_mem): Remove.
10475 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10477 (free_mem): Remove.
10479 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10481 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10482 instead of duplicating the whole function in libc.
10484 2002-10-31 Roland McGrath <roland@redhat.com>
10486 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10487 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10489 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10491 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10492 32bit-predefine when creating .new32 list and -U for each
10493 32bit-predefine when creating .new64 list.
10494 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10496 2002-10-29 Andreas Schwab <schwab@suse.de>
10498 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10499 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10501 2002-10-25 Roland McGrath <roland@redhat.com>
10503 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10504 * sysdeps/unix/sysv/linux/configure: Regenerated.
10506 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10507 _dl_starting_up decl.
10509 2002-10-20 H.J. Lu <hjl@gnu.org>
10511 * sysdeps/unix/sysv/linux/configure.in: Don't check
10512 /lib/modules/`uname -r`/build/include for kernel headers if
10514 * sysdeps/unix/sysv/linux/configure: Regenerated.
10516 2002-10-25 Roland McGrath <roland@redhat.com>
10518 * math/math.h (M_LOG2El): Correct the value.
10519 From Stephen L Moshier <steve@moshier.net>.
10521 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10522 conditional from __libc_multiple_libcs access. Remove kludge for weak
10523 symbol access with old compilers we no longer support.
10524 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10525 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10527 2002-10-25 Roland McGrath <roland@redhat.com>
10529 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10530 implement SV_RESETHAND by translating it to SA_RESETHAND.
10532 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10534 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10535 type on ELF64 platforms.
10537 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10539 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10541 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10543 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10545 * elf/dl-misc.c: Include <sysdep.h>.
10546 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10548 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10549 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10550 (INLINE_SYSCALL): Use that.
10551 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10552 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10553 (INLINE_SYSCALL): Use that.
10554 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10555 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10556 (INLINE_SYSCALL): Use that.
10557 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10559 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10560 (__INTERNAL_SYSCALL_STRING): Define.
10561 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10563 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10564 (__INTERNAL_SYSCALL_STRING): Define.
10565 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10566 __SYSCALL_STRING to inline_syscall*.
10567 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10569 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10570 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10573 2002-10-24 Roland McGrath <roland@redhat.com>
10575 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10576 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10577 * sysdeps/powerpc/elf/libc-start.c: Or here.
10578 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10579 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10580 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10581 * sysdeps/generic/libc-start.c: Or here.
10582 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10583 access with [! SHARED].
10584 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10586 * libio/bug-wfflush.c: New file.
10587 * libio/Makefile (tests): Add bug-wfflush.
10589 2002-10-23 Roland McGrath <roland@redhat.com>
10591 * stdio-common/tst-fphex.c: New file.
10592 * stdio-common/Makefile (tests): Add tst-fphex.
10593 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10594 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10595 chars always before the value digits.
10596 Reported by James Antill <james.antill@redhat.com>.
10598 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10600 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10601 (free_mem): New function.
10602 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10603 if not cross compiling.
10604 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10605 (bug-regex14-ENV): Set.
10606 (bug-regex14-mem): New target.
10607 * posix/bug-regex14.c: New file.
10609 2002-10-23 Roland McGrath <roland@redhat.com>
10611 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10612 target, so we don't touch it when the link fails.
10614 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10615 Check for the result overflowing off_t and fail with EOVERFLOW.
10616 * libio/ioftell.c (_IO_ftell): Likewise.
10617 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10619 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10620 use a temporary timeval on the stack for gettimeofday and copy it.
10621 * login/logout.c (logout): Likewise.
10622 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10624 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10625 Use __SWORD_TYPE instead of int for member types.
10626 (struct statfs64): Likewise.
10627 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10628 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10629 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10630 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10631 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10633 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10634 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10635 (ST_NODIRATIME): Restore fixed value of 2048.
10636 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10637 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10639 Rearranged <bits/types.h> definitions to reduce duplication.
10640 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10641 <bits/wordsize.h> and new header <bits/typesizes.h>.
10642 * posix/Makefile (headers): Add bits/typesizes.h here.
10643 * sysdeps/generic/bits/typesizes.h: New file.
10644 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10645 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10646 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10647 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10648 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10649 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10650 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10651 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10652 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10653 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10654 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10655 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10656 * signal/signal.h: Likewise.
10658 * streams/stropts.h: Include <bits/xtitypes.h>.
10659 * streams/Makefile (headers): Add bits/xtitypes.h here.
10660 * sysdeps/generic/bits/xtitypes.h: New file.
10661 * sysdeps/s390/bits/xtitypes.h: New file.
10662 * sysdeps/ia64/bits/xtitypes.h: New file.
10663 * sysdeps/x86_64/bits/xtitypes.h: New file.
10665 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10666 * sysdeps/generic/bits/ipctypes.h: New file.
10667 * sysdeps/mips/bits/ipctypes.h: New file.
10668 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10669 * sysdeps/gnu/bits/msq.h: Likewise.
10670 * sysvipc/sys/ipc.h: Likewise.
10672 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10674 * elf/dl-load.c (struct filebuf): For buf element to have the
10675 alignment of ElfXX_Ehdr since this is what will be stored in it.
10677 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10679 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10680 into pointer to locrec_offset.
10681 (add_locale_to_archive): Adjust callers. Free normalized_name right
10682 before returning, not immediately after add_locale, pass it to
10683 add_alias if not NULL instead of name. Rename second normalized_name
10684 occurence to nnormalized_codeset_name.
10686 * locale/programs/locarchive.c (enlarge_archive): Make sure
10687 string_size is always a multiple of 4.
10688 Reported by Andreas Schwab <schwab@suse.de>.
10690 2002-10-21 Andreas Schwab <schwab@suse.de>
10692 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10693 caller to EXTRA instead of execve, since the latter has a
10694 higher-priority implementation in linuxthreads.
10696 2002-10-21 Roland McGrath <roland@redhat.com>
10698 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10699 slotinfo list's len member to the proper size, not just 1.
10700 Initialize static_map.l_tls_initimage.
10702 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10703 dtv_slotinfo_list element containing new modules' l_tls_modid.
10705 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10706 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10707 * elf/Makefile (tests): Add tst-tls9.
10708 (tests-static): Add tst-tls9-static.
10709 (tst-tls9-static-ENV): New variable.
10710 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10712 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10713 modids used by partially loaded modules being closed can't be known.
10715 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10717 * posix/Makefile: Add a test case for the bug reported by Aharon
10718 Robbins <arnold@skeeve.com>.
10719 * posix/bug-regex13.c: New file.
10720 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10722 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10724 * csu/gmon-start.c: Pretty printing.
10726 2002-10-19 Art Haas <ahaas@neosoft.com>
10728 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10729 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10730 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10731 * configure: Regenerated.
10733 2002-10-19 Roland McGrath <roland@redhat.com>
10735 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10736 and then set $subdirs directly, because the new Autoconf breaks
10737 compatibility in every way imaginable and insists on whining
10738 about usage that worked since the dawn of time.
10739 * configure: Regenerated.
10741 * configure: Regenerated (using Autoconf 2.54).
10742 * sysdeps/alpha/elf/configure: Likewise.
10743 * sysdeps/generic/configure: Likewise.
10744 * sysdeps/i386/elf/configure: Likewise.
10745 * sysdeps/ia64/elf/configure: Likewise.
10746 * sysdeps/mach/hurd/configure: Likewise.
10747 * sysdeps/mach/configure: Likewise.
10748 * sysdeps/unix/configure: Likewise.
10749 * sysdeps/unix/common/configure: Likewise.
10750 * sysdeps/unix/sysv/aix/configure: Likewise.
10751 * sysdeps/unix/sysv/linux/configure: Likewise.
10752 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10753 * sysdeps/x86_64/elf/configure: Likewise.
10755 * config.make.in: Nix completely-soft nonsense.
10756 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10757 of machine directories instead of fpu subdirectory.
10758 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10759 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10760 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10761 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10762 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10763 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10764 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10765 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10766 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10767 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10768 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10769 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10770 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10771 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10772 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10773 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10774 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10775 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10776 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10777 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10778 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10779 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10780 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10781 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10782 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10783 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10784 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10785 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10786 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10787 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10788 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10789 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10790 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10791 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10792 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10793 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10794 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10795 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10796 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10797 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10799 2002-10-19 Bruno Haible <bruno@clisp.org>
10801 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10803 2002-10-18 Roland McGrath <roland@redhat.com>
10805 * io/Makefile (routines): Add lchmod.
10806 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10807 * sysdeps/generic/lchmod.c: New file.
10808 * sysdeps/mach/hurd/lchmod.c: New file.
10809 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10811 2002-10-18 Art Haas <ahaas@neosoft.com>
10813 * configure.in: Remove remaining AC_FD_CC macros, and replace
10814 AC_FD_MSG with AS_MESSAGE_FD.
10816 2002-10-18 Roland McGrath <roland@redhat.com>
10818 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10819 typos: VALUE -> FINALADDR.
10821 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10822 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10823 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10824 (inline_syscall6): Move these macros ...
10825 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10827 * configure.in (libc_link_dests, libc_link_sources): Remove these
10828 variables and the AC_LINK_FILES call.
10830 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10831 change to put new symbols here instead of in GLIBC_2.2.
10832 * sysdeps/powerpc/Subdirs: Move this file ...
10833 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10835 2002-10-07 Roland McGrath <roland@redhat.com>
10837 * sysdeps/generic/bits/time.h: Replaced with contents of the
10838 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10839 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10840 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10841 macros is ok even for architectures that don't now implement them.
10842 * sysdeps/mach/hurd/bits/time.h: File removed.
10843 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10844 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10845 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10846 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10847 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10849 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10851 * configure.in: Replace obsolete AC_OUTPUT syntax with
10852 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10854 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10855 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10857 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10858 * sysdeps/alpha/elf/configure.in: Likewise.
10859 * sysdeps/i386/elf/configure.in: Likewise.
10860 * sysdeps/mach/hurd/configure.in: Likewise.
10861 * sysdeps/x86_64/elf/configure.in: Likewise.
10863 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10865 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10866 * sysdeps/generic/configure.in: Likewise.
10867 * sysdeps/i386/elf/configure.in: Likewise.
10868 * sysdeps/ia64/elf/configure.in: Likewise.
10869 * sysdeps/mach/configure.in: Likewise.
10870 * sysdeps/mach/hurd/configure.in: Likewise.
10871 * sysdeps/unix/configure.in: Likewise.
10872 * sysdeps/unix/common/configure.in: Likewise.
10873 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10874 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10875 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10876 * sysdeps/x86_64/elf/configure.in: Likewise.
10878 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10879 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10880 that it's obvious when extra autoconf machinery is being dragged in.
10882 2002-10-18 Roland McGrath <roland@redhat.com>
10884 * configure.in: Remove bogus echo included in
10885 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10886 * configure: Regenerated.
10888 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10890 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10891 (statfs_filesize_max): New function.
10892 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10893 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10894 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10895 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10896 statfs_filesize_max.
10897 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10898 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10899 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10901 2002-10-17 Roland McGrath <roland@redhat.com>
10903 * configure.in (MIG): Just AC_SUBST it here.
10904 * configure: Regenerated.
10905 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10906 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10907 * sysdeps/mach/configure: Regenerated.
10909 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10910 and AC_PROVIDE([_AS_CR_PREPARE]).
10912 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10913 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10915 * elf/dl-support.c: Move _dl_tls_* variables to ...
10916 * sysdeps/generic/libc-tls.c: ... here.
10918 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10919 allow IDX to be one past the current last slotinfo entry.
10920 (_dl_close): Pass IMAP->l_init_called for that parameter.
10922 2002-10-07 Andreas Schwab <schwab@suse.de>
10924 * aclocal.m4: Fix for autoconf 2.53.
10925 * configure.in: Likewise. Require autoconf 2.53.
10927 2002-10-08 Richard Henderson <rth@redhat.com>
10929 * soft-fp/op-4.h: Handle carry correctly in
10930 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10931 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10932 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10934 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10936 * configure.in: Compute completely-soft.
10937 * config.make.in: Make completely-soft available to sub-makes.
10938 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10939 gcc-double-routines. Add sim-full.c. Add fenv_const and
10940 fe_nomask to libm-support.
10941 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10942 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10943 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10944 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10945 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10946 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10947 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10948 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10949 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10950 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10951 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10952 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10953 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10954 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10955 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10956 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10957 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10958 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10959 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10960 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10962 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10963 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10964 FP_HANDLE_EXCEPTIONS.
10965 Define FP_ROUNDMODE.
10966 Redefine FP_* macros to correspond to the FE_* bit positions.
10967 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10968 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10969 __sim_round_mode, __simulate_exceptions.
10970 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10971 * sysdeps/powerpc/bits/fenv.h: ...to here.
10973 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10975 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10976 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10977 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10978 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10981 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10983 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10984 __libc_res_nsend): New prototypes.
10985 * resolv/res_query.c (QUERYSIZE): Define.
10986 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10987 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10988 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10989 res_nsend, pass answerp.
10990 (res_nquery): Changed into wrapper around __libc_res_nquery.
10991 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10992 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10993 instead of the non-__libc_ variants, pass them answerp.
10994 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10995 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10996 Added answerp argument. Call __libc_res_nquery instead of
10997 res_nquery, pass answerp.
10998 (res_nquerydomain): Changed into wrapper around
10999 __libc_res_nquerydomain.
11000 * resolv/res_send.c: Include sys/ioctl.h.
11001 (MAXPACKET): Define.
11002 (send_vc): Change arguments. Reallocate answer buffer if it is
11004 (send_dg): Likewise.
11005 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
11006 Reallocate answer buffer if it is too small and hooks are in use.
11007 Adjust calls to send_vc and send_dg.
11008 (res_nsend): Changed into wrapper around __libc_res_nsend.
11009 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
11010 just 1K answer buffer on the stack, use __libc_res_nsearch instead
11012 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
11013 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
11014 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
11015 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
11016 (gethostbyaddr): Similarly with __libc_res_nquery.
11017 * resolv/Versions (libresolv): Export __libc_res_nquery and
11018 __libc_res_nsearch at GLIBC_PRIVATE.
11020 2002-10-17 Roland McGrath <roland@redhat.com>
11022 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
11023 * configure: Regenerated.
11025 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
11026 before performing the reloc, not after.
11027 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
11029 2002-10-17 Ulrich Drepper <drepper@redhat.com>
11031 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
11032 * locale/programs/linereader.c (lr_open): Likewise.
11033 * locale/programs/charmap-dir.c (charmap_open): Likewise.
11034 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11036 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
11038 * posix/bug-regex11.c: Add a test case for the bug reported by
11039 Paolo Bonzini <bonzini@gnu.org>.
11040 * posix/regexec.c (sift_states_bkref): Use correct destination of
11041 the back reference.
11043 2002-10-17 Roland McGrath <roland@redhat.com>
11045 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
11046 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
11047 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
11048 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
11049 Call it after performing TPOFF relocs.
11050 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
11051 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11052 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
11054 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
11055 when closing a partially-initialized object.
11057 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
11058 instead of _dl_fatal_printf when we see PT_TLS.
11060 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
11061 instead of $(libof-$<).
11063 2002-10-16 Roland McGrath <roland@redhat.com>
11065 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
11066 instead of += to append, to be sure $(lib) gets expanded at defn time.
11067 (libof-$(cpp-src)): New variable, define this instead.
11068 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
11069 (lib): Don't use override.
11070 (CPPFLAGS-$(lib)): New variable, put -D's here.
11071 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
11072 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
11073 LIB found by $(libof-*) for basename, target, or source.
11074 * Makerules (CPPFLAGS-nonlib): New variable.
11075 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
11076 * locale/Makefile (lib): Likewise.
11077 * sunrpc/Makefile (lib): Likewise.
11079 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
11080 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
11081 * sysdeps/unix/sysv/linux/pathconf.h: New file.
11082 (statfs_link_max): New function, guts from fpathconf.c.
11083 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
11084 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11085 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
11086 to use the linux/pathconf.c code by #include rather than duplication.
11087 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
11089 2002-10-16 Jakub Jelinek <jakub@redhat.com>
11091 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11092 Use __libc_errno only for libc itself.
11094 2002-10-16 Andreas Jaeger <aj@suse.de>
11096 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
11098 2002-10-16 Ulrich Drepper <drepper@redhat.com>
11100 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11101 Use __libc_errno only for libc itself.
11103 2002-10-15 Roland McGrath <roland@redhat.com>
11104 Jakub Jelinek <jakub@redhat.com>
11106 * sysdeps/unix/sysv/linux/Makefile
11107 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
11108 sparc/Makefile to produce a bi-arch file as needed.
11109 That's now parameterized by the variable $(64bit-predefine).
11110 Use LC_ALL=C for `comm' commands in that rule.
11111 No longer conditional on [$(no_syscall_list_h)].
11112 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
11113 (64bit-predefine): New variable.
11114 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
11115 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
11116 * sysdeps/unix/sysv/linux/powerpc/Makefile
11117 (64bit-predefine): New variable.
11119 2002-10-15 Roland McGrath <roland@redhat.com>
11121 * sysdeps/unix/sysv/linux/Makefile
11122 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
11124 * login/utmp-private.h: Declare __libc_utmp_lock.
11125 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
11126 and call __libc_utmp_jump_table functions directly, instead of using
11129 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
11130 * sysdeps/unix/sysv/linux/configure: Regenerated.
11132 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
11133 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
11134 Use int32_t for ll_time.
11135 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
11136 Use int32_t instead of long int for ut_session.
11137 Use an anonymous struct with 32-bit fields for ut_tv.
11138 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
11139 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
11140 here as in utmp.h for `struct utmp'.
11141 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
11142 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
11143 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
11144 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
11145 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
11146 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
11148 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
11149 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
11150 All the following files were identical or equivalent to it.
11151 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
11152 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
11153 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
11154 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
11155 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
11156 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
11157 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
11158 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
11159 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
11160 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
11162 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
11163 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
11164 Other than the previously incorrect sign of msg_iovlen, this is a
11165 no-op on 32-bit platforms. On 64-bit platforms it makes this header
11166 match their layouts as well, so the following are now identical to it.
11167 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
11168 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
11169 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
11170 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
11171 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
11173 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11175 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
11176 Define for 2.4+ kernels.
11178 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
11179 are known to have the vfork syscall. Don't confuse the CPUs
11180 branch prediction unit by jumping to the return address.
11182 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
11183 support for reiserfs and xfs.
11185 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
11187 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
11189 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
11191 2002-10-16 Jakub Jelinek <jakub@redhat.com>
11193 * include/libc-symbols.h (attribute_tls_model_ie): Define.
11194 * include/errno.h (errno): Define to __libc_errno in libc.so.
11195 Add attribute_tls_model_ie.
11196 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
11197 Add attribute_tls_model_ie.
11198 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
11199 attribute_tls_model_ie.
11200 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
11202 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
11204 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
11205 attribute_tls_model_ie.
11206 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
11208 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
11209 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
11210 __libc_errno in USE___THREAD case.
11211 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11213 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
11214 __attribute__((tls_model (""))).
11215 * configure: Rebuilt.
11216 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
11218 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11220 * timezone/asia: Update from tzdata2002d.
11221 * timezone/australasia: Likewise.
11222 * timezone/iso3166.tab: Likewise.
11223 * timezone/southamerica: Likewise.
11224 * timezone/zone-tab: Likewise.
11226 2002-10-15 Roland McGrath <roland@redhat.com>
11228 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
11229 Adjust TCB pointer before calling free, so we get the whole block.
11231 2002-10-14 Roland McGrath <roland@redhat.com>
11233 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
11234 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
11235 extern using attribute_hidden instead of static, avoids warning.
11237 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11239 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
11240 * sysdeps/unix/sysv/linux/configure: Rebuilt.
11242 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11244 * po/sv.po: Update from translation team.
11246 2002-10-12 H.J. Lu <hjl@gnu.org>
11248 * sunrpc/thrsvc.c (PROCQUIT): New.
11249 (struct rpc_arg): New.
11250 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
11251 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
11252 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
11253 (main): Modified for struct rpc_arg *.
11255 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11257 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
11259 2002-10-14 Jakub Jelinek <jakub@redhat.com>
11261 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
11262 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
11263 in ld.so even if __thread is supported.
11265 2002-10-13 Jakub Jelinek <jakub@redhat.com>
11267 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
11268 Add hack to prevent the compiler from clobbering the signal context.
11269 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
11271 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
11274 2002-10-14 Andreas Jaeger <aj@suse.de>
11276 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
11277 Guido Guenther <agx@sigxcpu.org>.
11279 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11281 * po/sk.po: Update from translation team.
11283 2002-09-26 Roland McGrath <roland@redhat.com>
11285 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
11286 dynamic string tag.
11287 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
11288 DL_DST_LIB based on $(slibdir).
11290 2002-10-13 Roland McGrath <roland@frob.com>
11292 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
11294 * sysdeps/mach/hurd/getresuid.c: New file.
11295 * sysdeps/mach/hurd/getresgid.c: New file.
11296 * sysdeps/mach/hurd/setresuid.c: New file.
11297 * sysdeps/mach/hurd/setresgid.c: New file.
11299 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
11300 setresgid): Declare them.
11301 * NEWS: Mention it.
11303 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
11304 add libc_hidden_proto.
11305 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
11306 getresuid, getresgid, setresuid, setresgid here.
11307 * Versions.def (libc): Define GLIBC_2.3.2 set.
11308 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
11309 Add libc_hidden_def.
11310 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
11311 * sysdeps/generic/setresgid.c: New file.
11312 * sysdeps/generic/setresuid.c: New file.
11313 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11314 (sysdep_routines): Don't add getresuid and getresgid here.
11315 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
11316 (sysdep_routines): Don't add setresuid and setresgid here.
11317 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11318 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11319 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11320 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11321 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11322 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11323 * posix/Makefile (routines): Add them all here instead.
11324 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
11325 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
11326 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
11327 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
11328 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11329 [! __NR_setresuid]: Include generic file.
11330 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11331 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11332 [! __NR_setresuid]: Include generic file.
11333 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11334 Caller is - now, not EXTRA.
11335 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11336 (setresuid, setresgid, getresuid, getresgid): Likewise.
11337 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11338 Add these calls here.
11339 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11340 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11341 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11342 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11343 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11346 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11347 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11349 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11350 (sysdep_routines): Add setfsuid and setfsgid here.
11351 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11352 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11353 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11354 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11355 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11356 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11357 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11358 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11360 * hurd/errno.c: Renamed to ...
11361 * hurd/errno-loc.c: ... this.
11362 * hurd/Makefile (routines): errno -> errno-loc
11364 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11366 * po/de.po: Update from translation team.
11368 * MakeTAGS: Add -E flag to xgettext runs.
11370 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11372 * po/fr.po: Update from translation team.
11374 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11375 Optimize a bit for use in glibc.
11377 2002-10-12 Roland McGrath <roland@redhat.com>
11379 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11380 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11382 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11384 * po/sv.po: Update from translation team.
11386 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11388 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11390 (regfree): Likewise.
11391 (create_initial_state): Likewise.
11392 (analyze): Remove the substitutions which became useless.
11393 (calc_first): Likewise.
11394 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11395 epsilon destination.
11396 (duplicate_node_closure): New function.
11397 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11398 (calc_inveclosure): Likewise.
11399 (calc_eclosure): Likewise.
11400 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11401 direct invocation of duplicate_node.
11402 (parse): Don't use comma operator in the return to avoid compiler
11404 (parse_reg_exp): Likewise.
11405 (parse_branch): Likewise.
11406 (parse_expression): Likewise.
11407 (parse_sub_exp): Likewise.
11408 (parse_dup_op): Likewise.
11409 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11410 which became useless.
11411 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11412 (create_cd_newstate): Likewise.
11413 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11414 (re_token_t): Likewise.
11415 (re_dfa_t): Likewise.
11416 (re_node_set_remove): New macro.
11417 * posix/regexec.c (check_matching): Remove the handling
11419 (check_halt_node_context): Likewise.
11420 (proceed_next_node): Likewise.
11421 (pop_fail_stack): Fix the memory leak.
11422 (set_regs): Likewise.
11423 (free_fail_stack_return): New function.
11424 (sift_states_backward): Fix the memory leak. Remove the handling
11426 (update_cur_sifted_state): Append some if clause to avoid redundant
11428 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11430 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11431 (check_subexp_limits): Likewise.
11432 (search_subexp): Likewise.
11433 (sift_states_bkref): Likewise.
11434 (transit_state_mb): Likewise.
11435 (transit_state_bkref_loop): Likewise.
11436 (transit_state_bkref_loop): Likewise.
11437 (group_nodes_into_DFAstates): Likewise.
11438 (check_node_accept): Likewise.
11439 (sift_ctx_init): Add initializing.
11441 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11443 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11446 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11448 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11449 duplicated variable c.
11451 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11454 * sysdeps/unix/sysv/linux/i386/sysdep.h
11455 (INTERNAL_SYSCALL_ERROR_P): New define.
11456 (INTERNAL_SYSCALL_ERRNO): Likewise.
11458 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11459 Add hack to prevent the compiler from clobbering the signal context.
11461 2002-10-11 Roland McGrath <roland@redhat.com>
11463 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11466 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11467 * sysdeps/sh/dl-lookupcfg.h: File removed.
11468 * sysdeps/i386/dl-lookupcfg.h: File removed.
11470 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11471 missing labels and ; from last change.
11473 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11474 number literals, so they are doubles instead of ints.
11476 2002-10-09 Roland McGrath <roland@redhat.com>
11478 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11479 changed from [USE_TLS && HAVE___THREAD].
11481 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11482 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11483 * sysdeps/x86_64/dl-machine.h
11484 (elf_machine_type_class, elf_machine_rela): Likewise.
11485 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11488 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11489 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11490 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11492 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11493 instead of ___tls_get_addr.
11494 (___tls_get_addr_internal): Add attribute_hidden to decl.
11496 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11497 _dl_error_catch_tsd.
11498 * elf/rtld.c (startup_error_tsd): New function.
11499 (dl_main): Point _dl_error_catch_tsd at that.
11500 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11501 use new function pointer instead.
11502 * elf/dl-tsd.c: New file.
11503 * elf/Makefile (routines): Add it.
11505 2002-10-07 Roland McGrath <roland@redhat.com>
11507 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11508 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11509 take _dl_load_lock around calling __writev.
11511 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11512 (INLINE_SYSCALL): Use that.
11514 * sysdeps/generic/dl-sysdep.h: New file.
11515 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11516 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11517 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11518 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11519 access it directly.
11520 * elf/dl-minimal.c (__errno_location): Removed.
11521 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11522 Use GOTOFF access for errno.
11523 * sysdeps/unix/sysv/linux/i386/sysdep.h
11524 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11526 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11527 Use PC-relative access for errno.
11528 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11529 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11531 * include/tls.h: New file.
11532 (USE___THREAD): New macro.
11533 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11534 libc or libpthread.
11535 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11536 changed from [USE_TLS && HAVE___THREAD].
11537 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11538 * sysdeps/unix/i386/sysdep.S: Likewise.
11539 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11540 * include/errno.h: Likewise.
11541 * include/netdb.h: Likewise.
11542 * include/resolv.h: Likewise.
11544 * sysdeps/generic/errno.c: New file.
11545 * csu/Makefile (aux): New variable, list errno.
11546 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11547 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11548 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11549 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11550 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11551 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11552 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11553 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11554 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11555 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11556 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11557 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11558 * sysdeps/unix/alpha/sysdep.S: Likewise.
11559 * sysdeps/generic/start.c: Likewise.
11560 * sysdeps/unix/start.c: Likewise.
11561 * sysdeps/unix/arm/start.c: Likewise.
11562 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11563 * sysdeps/unix/sparc/start.c: Likewise.
11564 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11565 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11567 * manual/search.texi (Tree Search Function, Hash Search Function):
11568 Mention search.h clearly.
11570 2002-10-05 Roland McGrath <roland@redhat.com>
11572 * elf/dl-fxstat64.c: File removed.
11573 * elf/dl-xstat64.c: File removed.
11574 * elf/Makefile (rtld-routines): Remove them.
11575 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11576 Instead, use strong_alias instead of versioned_symbol in the
11577 !SHLIB_COMPAT case.
11578 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11579 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11581 * include/shlib-compat.h
11582 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11583 [! NOT_IN_libc] (IS_IN_libc): Define it.
11584 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11585 * elf/Makefile (CPPFLAGS-.os): Likewise.
11587 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11588 Return the status instead of calling exit.
11590 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11591 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11592 Remove superfluous rm command, whose @ plus make bugs hid
11593 all these commands from the make output.
11595 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11596 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11597 Use that file's contents instead of literal echo's for the prologue.
11598 * include/features.h: Include <gnu/stubs.h> unconditionally.
11599 * include/gnu/stubs.h: New file.
11601 2002-09-30 Roland McGrath <roland@redhat.com>
11603 * elf/rtld-Rules: New file.
11604 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11605 $(objpfx)rtld-libc.a): New targets.
11606 (generated): Add them.
11607 (reloc-link): Remove -o $@ from the variable.
11608 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11609 (distribute): Add rtld-Rules.
11610 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11611 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11612 (common-mostlyclean, common-clean): Clean up rtld-* files.
11613 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11615 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11617 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11618 If temp != NULL, copy dynamic entries which need relocation to temp
11619 array before relocating.
11620 (DL_RO_DYN_TEMP_CNT): Define.
11621 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11622 * elf/rtld.c (_dl_start): Likewise.
11623 (dl_main): Likewise. Add dyn_temp static variable.
11625 2002-10-11 Roland McGrath <roland@redhat.com>
11627 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11628 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11630 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11631 proper set of no-op insn prefixes.
11633 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11635 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11637 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11638 __pthread_kill_other_threads_np.
11640 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11642 2002-10-08 Roland McGrath <roland@redhat.com>
11644 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11645 just return &_nl_C_locobj instead of copying it.
11646 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11647 * locale/duplocale.c (__duplocale): Likewise.
11649 2002-10-07 Roland McGrath <roland@frob.com>
11651 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11652 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11653 * sysdeps/mach/configure: Regenerated.
11655 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11658 Add all necessary register outputs for syscall-clobbered registers.
11660 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11662 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11663 Itanium 2 (and Itanium).
11664 Fix unwind directives and make it fit in 80 columns.
11665 * sysdeps/ia64/memset.S: Likewise.
11666 * sysdeps/ia64/memcpy.S: Likewise.
11667 Move jump table to .rodata section.
11669 2002-10-03 Roland McGrath <roland@frob.com>
11671 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11674 2002-10-10 Andreas Jaeger <aj@suse.de>
11676 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11678 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11680 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11682 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11684 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11685 _dl_allocate_tls_init. Add rtld_hidden_proto.
11686 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11688 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11690 * version.h (VERSION): Bump to 2.3.1.
11692 * Make-dist: Add back one of the tar invocations removed before.
11694 * stdlib/Makefile (distribute): Add allocalim.h.
11696 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11697 (__libc_tsd_address): Use correct variable name.
11698 Patch by Stefan Jones <stefan.jones@multigig.com>.
11700 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11701 Reported by edwardsg@sgi.com [PR libc/4678].
11703 * Versions.def (libc): Add GLIBC_2.3.1.
11704 (libpthread): Add GLIBC_2.3.1.
11706 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11707 and __sigtimedwait.
11708 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11709 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11711 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11712 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11714 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11715 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11716 and make old name an alias.
11717 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11718 and make old name an alias.
11719 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11722 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11723 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11725 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11727 * sysdeps/posix/readv.c: Likewise
11728 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11729 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11730 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11732 * sysdeps/posix/writev.c: Likewise
11733 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11734 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11736 * include/sys/wait.h: Declare __waitid.
11737 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11738 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11740 * sysdeps/posix/waitid.c: Likewise.
11741 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11743 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11745 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11747 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11749 (__MAX_ALLOCA_CUTOFF): Define.
11750 Include allocalim.h.
11751 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11752 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11753 host_buffer depending on __libc_use_alloca.
11754 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11755 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11756 net_buffer depending on __libc_use_alloca.
11757 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11758 buf depending on __libc_use_alloca.
11759 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11760 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11761 instead of hardcoded constants.
11762 Pass proper size argument to alloca and compute end for wide char
11764 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11765 instead of hardcoded constants.
11766 * string/strcoll.c (strcoll): Likewise.
11767 * string/strxfrm.c (strxfrm): Likewise.
11768 * sysdeps/posix/readv.c (__readv): Likewise.
11769 * sysdeps/posix/writev.c (__writev): Likewise.
11770 * sysdeps/generic/allocalim.h: New file.
11772 2002-10-08 Roland McGrath <roland@redhat.com>
11774 * configure.in (aux_missing warning): Change "too old" to
11775 "incompatible versions", since for autoconf it's "too new" right now.
11776 * configure: Regenerated.
11778 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11779 one found doesn't work on our configure.in.
11780 * configure: Regenerated.
11781 * config.make.in (AUTOCONF): New substituted variable.
11782 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11783 (autoconf-it): ... here, use that instead of defining conditionally.
11784 Use $(AUTOCONF) instead of literal autoconf.
11785 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11786 with this condition.
11787 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11789 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11791 * Make-dist (dist): Cleanup a bit. We are not interested in the
11792 14 char filename limit anymore. Remove intermediate files and
11795 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11797 * po/sk.po: Update from translation team.
11798 * po/tr.po: Likewise.
11799 * po/gl.po: Likewise.
11801 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11803 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11805 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11807 * version.h (RELEASE): Change to stable.
11809 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11811 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11812 __syscall_exit_group): New prototypes.
11814 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11816 * glibc 2.3 released.
11819 See ChangeLog.13 for earlier changes.