1 2003-09-22 Ulrich Drepper <drepper@redhat.com>
3 * timezone/zdump.c: Update from tzcode2003c.
4 * timezone/zic.c: Likewise.
5 * timezone/leapseconds: Update from tzdata2003c.
7 2003-09-19 Ulrich Drepper <drepper@redhat.com>
9 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
10 final build to ease quality control.
12 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
13 ld.so, don't include NULL buffer pointer handling.
15 2003-09-19 Jakub Jelinek <jakub@redhat.com>
17 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
19 2003-09-18 Jakub Jelinek <jakub@redhat.com>
21 * libio/memstream.c (open_memstream): Use _IO_init instead of
24 2003-09-17 Ulrich Drepper <drepper@redhat.com>
26 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
27 have to recognize octal and hexadecimal numbers as well. Simplify
28 function, signs are handled in strtol.
29 * posix/wordexp-test.c: Add tests for octal and hexadecimal
30 numbers in arithmetic expressions.
32 2003-09-17 Jakub Jelinek <jakub@redhat.com>
34 * elf/Makefile (distribute): Add tst-alignmod.c.
35 (tests): Add tst-align.
36 (modules-names): Add tst-alignmod.
37 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
38 $(stack-align-test-flags).
39 ($(objpfx)tst-align): Depend on libdl.
40 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
41 * elf/tst-align.c: New file.
42 * elf/tst-alignmod.c: New file.
43 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
44 * misc/tst-tsearch.c: Include tst-stack-align.h.
45 (stack_align_check): New array.
46 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
47 (main): Report error if stack was not enough aligned
48 in cmp_fn or walk_action.
49 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
50 * stdlib/tst-qsort.c: Include tst-stack-align.h.
51 (align_check): New var.
52 (compare): Use TEST_STACK_ALIGN () macro.
53 (main): Report error if stack was not enough aligned in compare.
54 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
55 unneeded -mpreferred-stack-boundary=4.
56 * sysdeps/x86_64/tst-stack-align.h: New file.
58 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
59 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
61 2003-09-17 Philip Blundell <philb@gnu.org>
63 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
65 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
67 * sysdeps/arm/sysdep.h (DO_RET): New.
69 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
70 required but not defined. Improve test of error code.
72 2003-09-17 Jakub Jelinek <jakub@redhat.com>
74 * sysdeps/i386/Makefile (stack-align-test-flags): Add
75 -malign-double -mpreferred-stack-boundary=4.
77 2003-09-17 Ulrich Drepper <drepper@redhat.com>
79 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
80 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
82 2003-09-15 Jakub Jelinek <jakub@redhat.com>
84 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
85 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
87 2003-09-17 Jakub Jelinek <jakub@redhat.com>
89 * Makeconfig (stack-align-test-flags): Set.
90 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
91 $(stack-align-test-flags).
92 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
93 (align_check): New var.
94 (comp): Use TEST_STACK_ALIGN macro.
95 (do_test): Fail if align_check != 1.
96 * sysdeps/generic/tst-stack-align.h: New file.
97 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
98 * sysdeps/i386/i686/tst-stack-align.h: New file.
100 2003-09-17 Ulrich Drepper <drepper@redhat.com>
102 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
103 stack which is aligned (mod 16).
105 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
106 Hans-Peter Nilsson <hp@axis.com>
108 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
109 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
111 2003-09-17 Jakub Jelinek <jakub@redhat.com>
113 * dirent/scandir.c: Include bits/libc-lock.h.
114 (struct scandir_cancel_struct): New type.
115 (cancel_handler): New function.
116 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
117 scandir_cancel_struct.
119 2003-09-16 Ulrich Drepper <drepper@redhat.com>
121 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
122 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
123 Add internal_statvfs.
124 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
125 instead of including "internal_statvfs.c".
126 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
127 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
128 Add code to avoid the stat calls on all the reported mount points
129 when we can determine mismatch in advance.
130 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
131 USBDEVFS_SUPER_MAGIC.
133 2003-09-16 Jakub Jelinek <jakub@redhat.com>
135 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
136 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
138 2003-09-16 Bruno Haible <bruno@clisp.org>
140 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
141 invoking msgfmt, not before.
143 2003-09-15 Jakub Jelinek <jakub@redhat.com>
145 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
146 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
148 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
149 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
150 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
151 * elf/dl-iteratephdr.c (cancel_handler): New function.
152 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
153 * elf/link.h (dl_iterate_phdr): Remove __THROW.
154 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
155 Add $(uses-callbacks).
156 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
157 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
158 $(exceptions) to $(uses-callbacks).
159 * Makeconfig (uses-callbacks): Set to $(exceptions).
160 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
162 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
165 2003-09-15 Andreas Schwab <schwab@suse.de>
167 * sysdeps/m68k/setjmp.c: Add hidden_def.
169 2003-09-14 Ulrich Drepper <drepper@redhat.com>
171 * libio/memstream.c (open_memstream): Don't allow wide char operations.
173 * dirent/dirent.h: Remove __THROW from scandir.
175 2003-09-14 Philip Blundell <philb@gnu.org>
177 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
180 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
182 * sysdeps/arm/memset.S: Rewrite.
184 2003-09-12 Jakub Jelinek <jakub@redhat.com>
186 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
187 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
188 __SLONGWORD_TYPE otherwise.
190 2003-09-14 Ulrich Drepper <drepper@redhat.com>
192 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
193 (CFLAGS-ftw64.c): Likewise.
195 2003-09-13 Ulrich Drepper <drepper@redhat.com>
197 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
198 (CFLAGS-nscd_getgr_r.c): Likewise.
199 (CFLAGS-nscd_gethst_r.c): Likewise.
201 2003-09-12 Ulrich Drepper <drepper@redhat.com>
203 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
206 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
207 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
208 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
209 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
210 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
211 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
213 * misc/Makefile (CFLAGS-err.c): Likewise.
214 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
215 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
216 CFLAGS-glob64.c): Likewise.
217 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
218 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
219 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
220 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
221 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
223 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
225 * libio/stdio.h: Remove __THROW from cuserid prototype.
227 * locale/loadarchive.c: Use only non-cancelable interfaces.
228 * resolv/herror.c (herror): Likewise.
230 * malloc/hooks.c: Before using IO stream mark stream so it uses
231 only non-cancelable interfaces.
232 * malloc/malloc.c: Likewise.
233 * posix/getopt.c: Likewise.
236 2003-09-11 Jakub Jelinek <jakub@redhat.com>
238 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
240 2003-09-12 Ulrich Drepper <drepper@redhat.com>
242 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
244 * misc/err.h: Remove __THROW from all prototypes.
246 * posix/getopt.h (__THROW): Define if not already defined. Add
247 __THROW to the getopt functions.
249 2003-09-11 Ulrich Drepper <drepper@redhat.com>
251 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
252 (CFLAGS-fts.c): Likewise.
253 * io/fcntl.h: Remove __THROW from lockf prototypes.
254 * io/fts.h: Remove most __THROW.
256 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
258 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
262 2003-09-11 Jakub Jelinek <jakub@redhat.com>
264 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
265 _IO_free_backup_area call.
267 2003-09-10 Chris Demetriou <cgd@broadcom.com>
269 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
271 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
272 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
273 Also, only assert off_t size is 4 for N32 and O32, and clean up
275 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
277 2003-09-10 Roland McGrath <roland@redhat.com>
279 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
280 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
281 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
282 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
283 Reported by Daniel Jacobowitz <drow@mvista.com>.
285 2003-09-10 Jakub Jelinek <jakub@redhat.com>
287 * string/Makefile (strop-tests): Add memccpy.
288 * string/test-memccpy.c: New test.
290 2003-09-09 Jakub Jelinek <jakub@redhat.com>
292 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
293 siginfo_t * argument before, change into struct ucontext *.
294 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
295 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
296 instead of structure.
297 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
300 2003-09-09 Ulrich Drepper <drepper@redhat.com>
302 * string/stratcliff.c (main): Check memccpy.
304 2003-04-11 Jes Sorensen <jes@wildopensource.com>
306 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
307 character is found during recovery, use correct register when
308 determining the position of the found character.
310 2003-04-01 Jes Sorensen <jes@wildopensource.com>
312 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
313 avoid segfaults when reading from unmapped pages. For aligned
314 reload and continue, for misaligned, roll back and use byte copy.
315 Save ar.ec on entry and restore on exit.
317 2003-09-09 Chris Demetriou <cgd@broadcom.com>
319 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
321 2003-09-08 Chris Demetriou <cgd@broadcom.com>
323 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
325 * sysdeps/mips/mips64/n64/Implies: Likewise.
327 2003-09-08 Roland McGrath <roland@frob.com>
329 * sysdeps/unix/sysv/linux/speed.c
330 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
331 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
332 * sysdeps/unix/sysv/linux/bits/termios.h
333 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
334 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
335 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
337 2003-09-08 Ulrich Drepper <drepper@redhat.com>
339 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
340 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
342 2003-09-08 Jakub Jelinek <jakub@redhat.com>
344 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
345 (__u_quad_t): Make unsigned long int if 64-bit.
346 (__SQUAD_TYPE): Make long int if 64-bit.
347 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
348 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
350 2003-09-08 Ulrich Drepper <drepper@redhat.com>
352 * Makefile (tests): Run check-c++-types.sh if possible.
353 * scripts/check-c++-types.h: New file.
354 * scripts/data/c++-types-i386-linux-gnu.data: New file.
356 2003-09-08 Andreas Jaeger <aj@suse.de>
358 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
359 Use struct sigcontext.
361 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
362 Use struct sigcontext.
364 (GET_FRAME): Likewise.
365 (GET_STACK): Likewise.
367 2003-09-08 Wolfram Gloger <wg@malloc.de>
369 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
370 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
371 (mALLOPt): Avoid requirement of C99.
373 2003-09-08 Ulrich Drepper <drepper@redhat.com>
375 * libio/bug-ftell.c: Include <sys/types.h>.
376 (main): Mark cp as const.
378 2003-09-07 Jakub Jelinek <jakub@redhat.com>
380 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
381 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
383 2003-09-05 Roland McGrath <roland@redhat.com>
385 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
387 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
388 (cfsetispeed): Set c_ispeed field.
389 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
390 to match corresponding speed.c code.
392 2003-09-06 Ulrich Drepper <drepper@redhat.com>
394 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
395 narrow character buffer.
396 * libio/Makefile: Add rules to build and run bug-ftell.
397 * libio/bug-ftell.c: New file.
399 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
401 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
402 matching the decimal point and possibly leading the thousands
403 separator. This caused the recognition of thousands separators to
406 2003-09-05 Ulrich Drepper <drepper@redhat.com>
408 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
409 write mode from read in backup buffer.
410 * libio/Makefile (tests): Add bug-ungetc2.
411 * libio/bug-ungetc2.c: New file.
413 2003-09-05 Roland McGrath <roland@redhat.com>
415 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
417 2003-09-04 Roland McGrath <roland@frob.com>
419 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
420 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
422 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
424 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
427 2003-09-05 Andreas Jaeger <aj@suse.de>
429 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
430 to make it conforming C.
431 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
433 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
434 prototype to use variable argument lists and get the possible one
436 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
437 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
439 2003-09-04 Ulrich Drepper <drepper@redhat.com>
441 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
443 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
444 Report correct value for vxfs.
445 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
447 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
450 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
451 over the place. It would be allowed to have these functions as
452 cancellation points but the cleanup would be ugly and a lot of
455 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
456 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
458 * include/fcntl.h (__fcntl_nocancel): Declare.
459 * sysdeps/unix/sysv/linux/fcntl.c: New file.
460 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
461 cancellation if absolutely needed.
462 (__fcntl_nocancel): Define.
464 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
465 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
467 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
470 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
473 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
474 unnecessary errno handling.
476 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
477 Initialize it in all cases. Change it to be a bit more like the
480 2003-09-04 Jakub Jelinek <jakub@redhat.com>
482 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
484 (_IO_file_open): Likewise. Use close_not_cancel.
486 2003-09-04 Ulrich Drepper <drepper@redhat.com>
488 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
489 * libio/fileops.c [_LIBC]: Remove close macro.
490 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
491 (_IO_new_file_open): Recognize 'c' flag in mode string.
492 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
493 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
495 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
496 * inet/rcmd.c: Likewise.
497 * inet/ruserpass.c: Likewise.
498 * intl/localealias.c: Likewise.
499 * malloc/mtrace.c: Likewise.
500 * misc/getpass.c: Likewise.
501 * misc/getttyent.c: Likewise.
502 * misc/mntent_r.c: Likewise.
503 * misc/getusershell.c: Likewise.
504 * nss/nsswitch.c: Likewise.
505 * resolv/res_hconf.c: Likewise.
506 * resolv/res_init.c: Likewise.
507 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
508 * time/getdate.c: Likewise.
509 * time/tzfile.c: Likewise.
510 * misc/fstab.h: Undo last change.
511 * misc/mntent.h: Likewise.
512 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
513 CFLAGS-fstab.c definition.
515 2003-09-04 Jakub Jelinek <jakub@redhat.com>
517 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
519 2003-09-03 Ulrich Drepper <drepper@redhat.com>
521 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
522 returning ERANGE if this wasn't intended.
524 2003-09-03 Jakub Jelinek <jakub@redhat.com>
526 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
527 function-like macros.
529 2003-09-03 Ulrich Drepper <drepper@redhat.com>
531 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
532 (CFLAGS-getgrent.c): Likewise.
533 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
534 (CFLAGS-getpwent.c): Likewise.
535 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
536 (CFLAGS-getspent.c): Likewise.
538 * inet/Makefile: Add -fexceptions to CFLAGS for the various
539 getXXent and getXXbyYY functions.
541 * locale/loadlocale.c: Use not-cancelable variants of open, close,
544 2003-09-02 Jakub Jelinek <jakub@redhat.com>
546 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
547 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
549 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
551 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
552 unused __syscall_ stubs.
553 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
555 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
556 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
557 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
558 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
559 unused __syscall_ stubs.
560 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
562 (__syscall_*): Remove unused __syscall_ stubs.
563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
564 (__syscall_*): Likewise.
565 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
567 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
568 Remove unused __syscall_ stubs.
569 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
570 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
571 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
572 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
573 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
574 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
575 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
576 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
577 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
578 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
579 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
580 __syscall_* prototypes.
581 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
582 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
583 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
584 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
585 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
586 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
587 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
588 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
589 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
590 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
591 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
592 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
593 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
594 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
595 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
596 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
597 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
598 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
599 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
600 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
601 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
602 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
603 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
604 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
605 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
606 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
607 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
608 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
609 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
610 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
611 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
612 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
613 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
614 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
615 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
616 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
617 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
618 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
619 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
620 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
621 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
622 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
623 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
624 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
625 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
626 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
627 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
628 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
629 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
630 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
631 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
632 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
633 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
634 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
635 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
636 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
637 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
638 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
639 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
640 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
641 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
642 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
643 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
644 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
645 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
646 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
647 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
648 * sysdeps/unix/sysv/linux/execve.c: Likewise.
649 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
650 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
651 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
652 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
653 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
654 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
655 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
656 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
657 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
658 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
659 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
660 * sysdeps/unix/sysv/linux/readv.c: Likewise.
661 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
662 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
663 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
664 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
665 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
666 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
667 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
668 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
669 * sysdeps/unix/sysv/linux/poll.c: Likewise.
670 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
671 * sysdeps/unix/sysv/linux/writev.c: Likewise.
672 * sysdeps/unix/sysv/linux/pread.c: Likewise.
673 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
674 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
675 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
676 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
677 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
678 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
679 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
680 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
681 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
682 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
684 2003-09-02 Jakub Jelinek <jakub@redhat.com>
686 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
687 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
688 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
690 2003-09-02 Ulrich Drepper <drepper@redhat.com>
692 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
694 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
695 open, close, and read.
697 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
700 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
702 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
703 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
704 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
706 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
708 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
709 (CFLAGS-fstatfs.c): Likewise.
710 (CFLAGS-statvfs.c): Likewise.
711 (CFLAGS-fstatvfs.c): Likewise.
713 2003-09-01 Ulrich Drepper <drepper@redhat.com>
715 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
716 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
718 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
719 (CFLAGS-pathconf.c): Likewise.
720 (CFLAGS-fpathconf.c): Likewise.
722 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
723 * misc/fstab.h: Remove all __THROW.
724 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
725 (CFLAGS-mntent_r.c): Likewise.
726 * misc/mntent.h: Remove most __THROW.
728 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
729 (CFLAGS-mkstemp64.c): Likewise.
731 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
732 around call to exec_comm.
733 * posix/wordexp.h: Remove __THROW from wordexp.
734 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
736 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
737 not-cancelable functions.
739 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
740 (CFLAGS-iofopen.c): Likewise.
741 (CFLAGS-iofopen64.c): Likewise.
743 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
745 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
746 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
748 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
749 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
751 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
753 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
754 NSS_STATUS_SUCCESS if entry was found.
755 (getspent_next_file): Store user in blacklist after entry
756 was found, use innetgr.
758 2003-09-01 Jakub Jelinek <jakub@redhat.com>
760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
763 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
764 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
767 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
769 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
770 posix_fallocate64 at GLIBC_2.3.3.
771 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
772 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
774 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
776 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
779 2003-08-31 Ulrich Drepper <drepper@redhat.com>
781 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
782 Code by Richard Henderson.
784 2003-08-31 Philip Blundell <philb@gnu.org>
786 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
787 posix_fallocate64 at GLIBC_2.3.3.
789 2003-08-31 Ulrich Drepper <drepper@redhat.com>
791 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
792 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
794 2003-08-30 Jakub Jelinek <jakub@redhat.com>
796 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
797 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
798 included multiple times.
799 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
800 ptid, tls, ctid arguments to the kernel.
801 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
802 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
803 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
804 (__libc_sigaction): Use INLINE_SYSCALL instead of
805 __syscall_rt_sigaction.
806 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
807 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
808 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
809 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
810 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
811 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
812 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
813 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
814 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
815 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
816 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
817 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
818 (__CLONE_SYSCALL_STRING): Define.
819 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
821 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
822 (__CLONE_SYSCALL_STRING): Define.
823 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
825 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
827 2003-08-30 Ulrich Drepper <drepper@redhat.com>
829 * sunrpc/rpc/clnt.h: Remove a few __THROW.
830 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
831 (CFLAGS-key_call.c): Likewise.
832 (CFLAGS-pmap_rmt.c): Likewise.
833 (CFLAGS-clnt_perr.c): Likewise.
834 * sunrpc/rpc/auth.h: Remove serveral __THROW.
836 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
837 (CFLAGS-gethstbynm_r.c): Likewise.
838 (CFLAGS-gethstbynm2_r.c): Likewise.
839 (CFLAGS-rcmd.c): Likewise.
840 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
842 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
843 (CFLAGS-argp-fmtstream.c): Likewise.
844 * argp/argp.h: Remove a number of __THROW.
846 * misc/sys/syslog.h (vsyslog): Remove __THROW.
848 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
849 * misc/getpass.c (getpass): Add cleanup handler to ensure the
850 stream is closed even if the thread is canceled.
851 (call_fclose): New function.
852 * posix/unistd.h: Remove __THROW from getpass prototype.
854 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
856 * signal/signal.h (psignal): Remove __THROW.
857 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
859 * misc/Makefile (CFLAGS-error.c): Define.
860 * misc/error.c (error): Disable cancellation handling around the
861 actual output. The message should in any case be printed.
862 (error_at_line): Likewise.
864 * misc/error.h: Protect parameter names with leading __.
866 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
868 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
870 2003-08-29 Jakub Jelinek <jakub@redhat.com>
872 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
875 2003-08-29 Ulrich Drepper <drepper@redhat.com>
877 * libio/stdio.h: Remove a few more __THROW.
879 2003-08-29 Jakub Jelinek <jakub@redhat.com>
881 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
882 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
883 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
884 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
885 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
886 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
887 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
888 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
889 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
890 putwchar.c and rewind.c with exceptions.
891 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
892 _IO_release_lock): Define.
893 * libio/fileops.c (_IO_new_file_underflow): Use it.
894 * libio/fputc.c (fputc): Likewise.
895 * libio/fputwc.c (fputwc): Likewise.
896 * libio/freopen64.c (freopen64):
897 * libio/freopen.c (freopen): Likewise.
898 * libio/fseek.c (fseek): Likewise.
899 * libio/fseeko64.c (fseeko64): Likewise.
900 * libio/fseeko.c (fseeko): Likewise.
901 * libio/ftello64.c (ftello64): Likewise.
902 * libio/ftello.c (ftello): Likewise.
903 * libio/fwide.c (fwide): Likewise.
904 * libio/getc.c (_IO_getc): Likewise.
905 * libio/getchar.c (getchar): Likewise.
906 * libio/getwc.c (_IO_getwc): Likewise.
907 * libio/getwchar.c (getwchar): Likewise.
908 * libio/iofclose.c (_IO_new_fclose):
909 * libio/iofflush.c (_IO_fflush): Likewise.
910 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
911 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
912 * libio/iofgets.c (_IO_fgets): Likewise.
913 * libio/iofgetws.c (fgetws): Likewise.
914 * libio/iofputs.c (_IO_fputs): Likewise.
915 * libio/iofputws.c (fputws): Likewise.
916 * libio/iofread.c (_IO_fread): Likewise.
917 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
918 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
919 * libio/ioftell.c (_IO_ftell): Likewise.
920 * libio/iofwrite.c (_IO_fwrite): Likewise.
921 * libio/iogetdelim.c (_IO_getdelim): Likewise.
922 * libio/iogets.c (_IO_gets): Likewise.
923 * libio/ioputs.c (_IO_puts): Likewise.
924 * libio/ioseekoff.c (_IO_seekoff): Likewise.
925 * libio/ioseekpos.c (_IO_seekpos): Likewise.
926 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
927 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
928 * libio/ioungetc.c (_IO_ungetc): Likewise.
929 * libio/ioungetwc.c (ungetwc): Likewise.
930 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
931 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
932 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
933 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
934 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
935 * libio/peekc.c (_IO_peekc_locked): Likewise.
936 * libio/putc.c (_IO_putc): Likewise.
937 * libio/putchar.c (putchar): Likewise.
938 * libio/putwc.c (putwc): Likewise.
939 * libio/putwchar.c (putwchar): Likewise.
940 * libio/rewind.c (rewind): Likewise.
941 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
943 2003-08-29 Ulrich Drepper <drepper@redhat.com>
945 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
948 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
949 Jakub Jelinek <jakub@redhat.com>
951 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
952 big endian arches. Don't read beyond end of fds_bits array.
954 2003-04-27 Bruno Haible <bruno@clisp.org>
956 * manual/message.texi (Advanced gettext functions): Add information
957 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
958 Add section about Lithuanian, reported by Ricardas Cepas
959 <rch@richard.eu.org>.
960 Add information about Croatian.
961 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
962 Remove remark about continuation lines that is not true for PO files.
963 Fix formula for Slovenian, reported by Roman Maurer
964 <roman.maurer@amis.net>.
966 2003-08-27 Ulrich Drepper <drepper@redhat.com>
968 * math/math_private.h: Declare __copysignf.
969 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
972 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
973 __signbit, and __signbitl inline functions.
975 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
976 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
978 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
979 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
981 2003-08-27 Jakub Jelinek <jakub@redhat.com>
983 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
985 2003-08-27 Ulrich Drepper <drepper@redhat.com>
987 * include/stdio.h: Add declarations for __builtin_fwrite and
988 __builtin_fwrite_unlocked.
990 2003-08-27 Jakub Jelinek <jakub@redhat.com>
992 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
993 fits into allocation. Add padding on 32-bit arches so that
994 dirp->data is enough aligned for struct dirent64.
995 Avoid clearing of the buffer, just clear DIR structure.
997 2003-08-26 Ulrich Drepper <drepper@redhat.com>
999 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
1000 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
1002 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
1004 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
1006 2003-08-26 Jakub Jelinek <jakub@redhat.com>
1008 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
1009 to match format string.
1010 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
1012 (__new_semctl): Shut up warning.
1013 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
1014 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
1016 2003-08-26 Jakub Jelinek <jakub@redhat.com>
1018 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
1019 link file use the real file name, not the resolved name we got by
1020 following the symlinks.
1022 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1024 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
1025 if the object size is large enough.
1027 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1029 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1030 if it won't point to itself unless it is .so symlink for the linker.
1032 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1034 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
1035 use _mode if _IO_fwide_maybe_incompatible.
1036 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
1037 the compatibility test.
1039 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1041 * elf/cache.c (save_cache): Don't write beyond end of file_entries
1043 Duplicate last old cache entry if the count would be odd.
1045 2003-08-25 Andreas Jaeger <aj@suse.de>
1047 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
1048 __LONG_LONG_PAIR to long.
1050 2003-08-25 Philip Blundell <philb@gnu.org>
1052 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
1053 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
1055 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
1057 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
1058 and use __libc_cleanup_region_end instead.
1060 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1062 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
1064 2003-08-22 Ulrich Drepper <drepper@redhat.com>
1066 * io/fcntl.h (posix_fallocate): Change type of third parameter to
1068 (posix_fallocate64): Change type of third parameter to off64_t.
1069 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
1070 * sysdeps/posix/posix_fallocate.c: Likewise.
1071 * sysdeps/generic/posix_fallocate64.c: Likewise.
1072 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
1073 code for 32-bit platforms.
1074 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
1076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
1077 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1078 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1080 2003-08-19 Ulrich Drepper <drepper@redhat.com>
1082 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
1083 the type, not to name.
1085 * stdio-common/test-vfprintf.c (main): Don't write temporary file
1086 into source directory.
1088 * malloc/malloc.c (_int_free): Add cheap test for some invalid
1091 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
1094 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1096 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
1099 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
1101 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
1102 (elf_machine_lazy_rel): Likewise.
1104 2003-08-18 Art Haas <ahaas@airmail.net>
1106 * malloc/malloc.h: Remove unneeded ';' where closing the C++
1109 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1111 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
1112 loading big binaries where @gprel(sym) cannot be handled in 'add'
1113 but instead has to be used with 'movl'.
1115 2003-08-17 Juergen Kreileder <jk@blackdown.de>
1116 Andreas Jaeger <aj@suse.de>
1118 * sysdeps/x86_64/bits/byteswap.h: New file.
1120 2003-08-17 Andreas Jaeger <aj@suse.de>
1122 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
1124 2003-08-16 Jakub Jelinek <jakub@redhat.com>
1126 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
1127 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1128 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
1129 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1130 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
1131 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1132 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
1133 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1134 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
1135 ret_ERRVAL): Define.
1136 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
1137 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1138 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
1139 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1140 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
1142 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
1143 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1144 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
1146 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
1147 posix_fadvise64_64): Remove.
1148 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
1150 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1153 (posix_fadvise64): Likewise.
1154 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1155 (posix_fadvise64): Likewise.
1156 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1157 (posix_fadvise64): Likewise.
1158 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1160 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
1161 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
1162 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
1163 (__posix_fadvise64_l32): New function.
1164 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
1165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
1166 posix_fadvise64@@GLIBC_2.3.3.
1167 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1168 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1169 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
1171 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
1173 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1174 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
1176 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1178 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
1179 (elf_machine_matches_host): Remove weak extern stuff.
1180 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
1181 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
1182 stuff. Use GL(dl_hwcap) unconditionally.
1184 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1186 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
1187 __libc_start_main branch.
1189 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
1190 Andreas Jaeger <aj@suse.de>
1192 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
1193 instead of setting errno.
1194 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1196 2003-08-16 Andreas Jaeger <aj@suse.de>
1198 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
1199 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1201 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1203 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1205 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1206 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1207 description indicating the error value is returned, not -1.
1208 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1209 __ASSUME_FADVISE64_64_SYSCALL.
1210 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1211 posix_madvise in one file. Have posix_madvise defined with error
1213 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1215 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1216 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1217 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1218 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1219 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1220 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1223 * posix/Makefile (routines): Add posix_madvise.
1224 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1225 * sysdeps/generic/posix_madvise.c: New file.
1226 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1227 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1228 Add posix_fadvise64_64.
1230 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1232 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1233 3.0, not for !gcc or gcc < 3.0.
1235 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1237 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1238 Address passed to test_in_mod1 and test_in_mod2 without casting.
1239 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1240 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1241 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1242 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1244 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1246 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1247 Change quotes before using [].
1249 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1251 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1253 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1254 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1255 argument. Select one of 64 locks from address bits.
1256 (atomic_compare_and_exchange_val_acq,
1257 atomic_compare_and_exchange_bool_acq): Pass memory address to
1258 __sparc32_atomic_do_{,un}lock.
1260 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1262 * assert/assert.h (assert): Use !! in front of expression to allow
1265 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1266 Changed conversion of JIS X 0201 from using a table to calculating.
1267 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1268 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1270 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1271 * iconvdata/CP932.irreversible: New file.
1272 * iconvdata/EUC-JP-MS.irreversible: New file.
1273 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1275 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1277 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1279 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1280 text processing tools.
1282 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1283 element unless BROKEN_THREAD_SIGNALS is defined.
1284 (struct requestlist): Likewise.
1285 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1286 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1287 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1288 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1289 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1290 Pass current PID to __aio_sigqueue.
1291 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1292 call. Don't initialize caller_pid field of waitlist element.
1294 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1296 * libio/libioP.h (_IO_vtable_offset): Define.
1297 * libio/freopen.c (freopen): Use it.
1298 * libio/ioputs.c (_IO_puts): Likewise.
1299 * libio/freopen64.c (freopen64): Likewise.
1300 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1302 * libio/iofclose.c (_IO_new_fclose): Likewise.
1303 * libio/iofputs.c (_IO_fputs): Likewise.
1304 * libio/ioftell.c (_IO_ftell): Likewise.
1305 * libio/iofwrite.c (_IO_fwrite): Likewise.
1306 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1307 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1308 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1309 * stdio-common/vfscanf.c (ORIENT): Likewise.
1311 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1313 * assert/assert.h: Use __builtin_expect in assert and
1314 assert_perror definitions if possible.
1316 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1318 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1319 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1320 * elf/rtld.c (rtld_lock_default_lock_recursive,
1321 rtld_lock_default_unlock_recursive): New functions.
1322 (dl_main): Initialize _dl_rtld_lock_recursive and
1323 _dl_rtld_unlock_recursive.
1325 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1327 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1328 config_file directories instead of prepending.
1330 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1332 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1333 __ASSUME_CLONE_STOPPED.
1335 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1337 * sysdeps/generic/bits/libc-lock.h
1338 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1340 2003-08-01 Roland McGrath <roland@frob.com>
1342 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1344 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1346 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1347 instead of __SWORD_TYPE.
1348 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1349 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1350 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1352 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1354 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1356 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1358 * dlfcn/dlerror.c (once): New.
1359 (dlerror): Call __libc_once.
1360 (_dlerror_run): Remove once.
1362 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1363 Sync with 2.5.7 and 2.5.73 kernel changes.
1365 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1366 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1368 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1369 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1370 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1371 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1372 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1373 difference argument.
1374 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1376 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1377 %d format and cast expected value to int.
1378 * sysdeps/generic/libc-start.c (STATIC): Add
1379 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1380 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1381 to ieee_float_shape_type.
1382 (__sqrt): Avoid type punning.
1383 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1384 to ieee_float_shape_type.
1385 (__sqrtf): Avoid type punning.
1386 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1387 refsym if in dl-conflict.c.
1388 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1389 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1390 (__new_semctl): Shut up warning.
1391 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1392 (__new_semctl): Shut up warning.
1393 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1394 Change old into union of __old_shmid_ds and __old_shminfo structs.
1396 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1398 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1399 modtime computation.
1400 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1401 * sysdeps/posix/utimes.c (__utimes): Likewise.
1403 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1405 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1406 call dl_signal_error directly. If already relocated, call
1407 GL(dl_init_static_tls) directly, otherwise queue it for later.
1408 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1409 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1410 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1411 for all static TLS initializations delayed in _dl_allocate_static_tls.
1412 * elf/dl-support.c (_dl_init_static_tls): New variable.
1413 * include/link.h (struct link_map): Add l_need_tls_init.
1414 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1415 (_dl_nothread_init_static_tls): New prototype.
1416 (_dl_allocate_static_tls): Adjust prototype.
1418 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1420 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1422 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1423 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1424 reloc_addr is aligned.
1425 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1426 elf_machine_rela_relative): Adjust.
1427 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1428 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1429 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1430 elf_machine_rela_relative): Adjust.
1431 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1432 elf_machine_rela_relative): Adjust.
1433 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1434 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1435 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1436 elf_machine_rela_relative): Adjust.
1437 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1438 elf_machine_rela_relative): Adjust.
1439 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1440 elf_machine_rela_relative): Adjust.
1441 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1442 elf_machine_rela_relative): Adjust.
1443 * sysdeps/powerpc/powerpc64/dl-machine.h
1444 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1445 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1446 elf_machine_rela_relative): Adjust.
1447 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1448 elf_machine_rela_relative): Adjust.
1449 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1450 elf_machine_rela_relative): Adjust.
1451 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1452 elf_machine_rela_relative): Adjust.
1453 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1454 elf_machine_rela_relative): Adjust.
1455 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1456 elf_machine_rela_relative): Adjust.
1458 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1460 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1461 alignment of TCB used before the last change so that it matches
1462 ld's output for IE code.
1464 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1466 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1467 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1468 break strict-aliasing rules" warnings.
1470 2003-07-29 Roland McGrath <roland@redhat.com>
1472 * elf/Makefile: Revert accidental changes in last commit.
1473 * elf/dl-support.c: Likewise.
1475 * rt/tst-timer2.c: New file.
1476 * rt/Makefile (tests): Add it.
1478 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1480 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1482 2003-07-29 Roland McGrath <roland@redhat.com>
1484 * elf/Makefile (tests) [$(build-shared) = yes]:
1485 Depend on $(test-modules).
1486 * dlfcn/Makefile: Likewise.
1488 2003-07-28 Roland McGrath <roland@redhat.com>
1490 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1491 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1493 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1494 * elf/tst-tlsmod14a.c: Likewise.
1496 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1497 before <linux/sysctl.h>.
1499 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1501 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1502 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1503 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1504 * sysdeps/unix/syscalls.list: umask syscall never fails.
1506 2003-07-27 Andreas Jaeger <aj@suse.de>
1508 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1510 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1512 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1513 Include bits/a.out.h.
1514 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1516 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1517 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1518 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1519 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1520 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1521 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1522 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1523 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1525 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1527 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1528 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1529 aiocbp->aio_fildes does not match fildes.
1531 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1533 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1536 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1537 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1538 Fix calculation of offsets to take misalignment of first byte in
1540 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1541 l_tls_firstbyte_offset field.
1542 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1543 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1544 Take l_tls_firstbyte_offset information into account.
1545 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1546 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1547 * elf/Makefile: Add rules to build and run tst-tls14.
1548 * elf/tst-tls14.c: New file.
1549 * elf/tst-tlsmod14a.c: New file.
1550 * elf/tst-tlsmod14b.c: New file.
1552 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1554 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1555 (lio_listio): Use it.
1556 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1557 after few defines to avoid duplication.
1559 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1561 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1562 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1564 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1565 Add libc_hidden_def.
1566 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1567 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1568 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1569 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1570 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1571 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1572 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1574 * sysdeps/generic/unwind.inc: Removed.
1576 * include/resolv.h (__resp): Declare. Define to __libc_resp
1578 (_res): If USE___THREAD, define to (*__resp).
1579 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1580 even if USE___THREAD.
1581 (__resp): New __thread variable.
1582 (__libc_resp): New alias.
1583 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1584 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1585 * sysdeps/generic/res-state.c (__res_state): Return __resp
1588 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1590 * elf/dl-support.c (_dl_hwcap): New variable.
1591 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1593 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1594 and <dl-procinfo.h>.
1595 (__feclearexcept): Clear MXCSR if needed.
1596 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1598 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1599 that newer hardware needs more than these macros.
1601 * sysdeps/i386/setfpucw.c: New file.
1603 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1605 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1606 * elf/ldconfig.c: Include dl-procinfo.c.
1607 (PROCINFO_CLASS): Define.
1608 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1609 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1610 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1611 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1612 Define if not yet defined. Use it instead of EXTERN. Undefine
1613 at the end of the file.
1614 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1616 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1617 (PROCINFO_CLASS): Likewise.
1618 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1619 (PROCINFO_CLASS): Likewise.
1621 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1623 * elf/ldconfig.c (main): Issue a fatal error if relative path
1624 is used to build cache.
1626 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1628 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1630 2003-07-21 Art Haas <ahaas@airmail.net>
1632 * manual/charset.texi (Converting a Character): Fix example code so a
1633 valid pointer is returned.
1635 2003-07-22 Andreas Jaeger <aj@suse.de>
1637 * elf/readlib.c (process_file): Check that file is a shared
1640 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1641 will not optimize it away.
1642 (__DTOR_END__): Likewise.
1643 (__CTOR_END__): Likewise.
1645 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1646 that gcc will not optimize it away.
1647 (link_warning): Likewise.
1649 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1651 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1652 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1653 * wcsmbs/tst-wcpncpy.c: New file.
1655 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1657 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1659 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1660 stmxcsr and ldmxcsr.
1662 * Makerules (build-module-helper): Add -z defs unless explicitly said
1664 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1665 which has undefined symbols.
1666 * elf/Makefile: Likewise.
1668 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1669 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1670 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1671 * sysdeps/i386/fpu/fesetround.c: Likewise.
1672 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1674 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1676 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1677 if it won't point to itself.
1679 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1681 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1683 2003-07-20 Andreas Jaeger <aj@suse.de>
1685 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1686 STANDARD_TO_LOOP_ERR_HANDLER.
1687 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1689 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1691 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1693 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1695 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1696 Andreas Jaeger <aj@suse.de>
1698 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1699 256K, remove unneeded declaration of __getpagesize.
1701 2003-07-16 Andreas Schwab <schwab@suse.de>
1703 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1705 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1707 * io/test-utime.c (main): Make test yet more robust.
1709 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1711 More cancellation handling fixups.
1712 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1713 * sysdeps/generic/not-cancel.h: Likewise.
1714 * catgets/open_catalog.c: Use not-cancelable syscalls.
1715 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1716 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1717 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1718 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1719 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1720 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1721 * libio/iopopen.c: Use no-cancelable syscalls.
1722 * libio/stdio.h: Mark popen and pclose with __THROW again.
1723 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1724 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1725 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1726 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1727 CFLAGS-tempname.c): Add -fexceptions.
1728 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1729 * string/string.h: Mark strerror and strerror_r with _THROW again.
1730 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1731 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1732 #ifs since we now need all the code compiled.
1733 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1734 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1735 * sysdeps/unix/opendir.c: Likewise.
1737 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1738 Add rule for EUC-JP-MS dependency.
1739 * iconvdata/cp932.c: New file.
1740 * iconvdata/eucjp-ms.c: New file.
1741 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1742 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1744 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1749 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1751 * sysdeps/unix/sysv/linux/kernel-features.h
1752 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1755 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1757 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1759 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1760 __ASSUME_TGKILL for Alpha appropriately.
1762 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1764 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1765 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1767 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1770 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1771 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1773 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1774 second parameter == NULL.
1775 * sysdeps/unix/sysv/linux/utimes.c: New file.
1777 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1779 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1780 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1783 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1785 * time/sys/time.h: Namespace cleanup.
1786 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1787 __ASSUME_UTIMES for the architectures which always had the syscall.
1788 * sysdeps/unix/sysv/linux/futimes.c: New file.
1790 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1792 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1793 register across CENABLE and CDISABLE.
1795 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1797 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1798 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1799 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1800 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1801 int before assigning to max to avoid warnings.
1803 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1807 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1808 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1810 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1812 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1813 .data.rel.ro.local to "aw".
1815 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1817 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1818 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1819 (PIC-ccflag): Define.
1821 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1823 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1825 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1827 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1829 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1830 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1832 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1834 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1835 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1837 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1838 compilation with HAVE_AUX_SECURE defined.
1840 2003-07-05 Richard Henderson <rth@redhat.com>
1842 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1844 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1846 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1848 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1850 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1853 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1855 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1857 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1859 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1861 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1862 decl and use with #ifdef NEED_DL_SYSINFO.
1864 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1866 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1867 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1868 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1869 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1870 vsyscall DSO was added.
1872 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1873 depending on selected standard.
1874 (NGROUPS_MAX): Define to 8 if not defined.
1876 2003-07-02 Andreas Jaeger <aj@suse.de>
1878 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1880 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1882 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1883 * malloc/thread-m.h: Include <atomic.h>.
1884 (atomic_full_barrier): Provide default.
1885 (atomic_read_barrier): Likewise.
1886 (atomic_write_barrier): Likewise.
1887 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1889 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1891 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1893 2003-06-30 Richard Henderson <rth@redhat.com>
1895 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1896 Invert the sense of the return value.
1897 (__arch_exchange_16_int): Fix paste-o.
1898 (__arch_exchange_{32,64}_int): Fix think-o.
1900 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1902 2003-06-30 Richard Henderson <rth@redhat.com>
1904 * include/sys/resource.h (__getrusage): Mark hidden.
1905 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1906 * include/sys/wait.h (__wait4): Likewise.
1908 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1910 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1912 (xstat_conv): Rename to __xstat_conv and remove static inline.
1913 (xstat64_conv): Likewise.
1915 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1917 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1918 values which cannot be handled in one nanosleep call.
1920 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1922 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1923 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1925 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1927 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1929 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1932 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1934 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1935 Conditionalize function definitions that use struct kernel_stat.
1936 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1937 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1938 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1940 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1942 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1945 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1947 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1948 (getgrent_next_file): Don't store group name to early in blacklist.
1950 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1951 and use memcpy instead of strcpy.
1953 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1955 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1957 * nis/nss_compat/compat-initgroups.c: Likewise.
1958 * nis/nss_compat/compat-pwd.c: Likewise.
1959 * nis/nss_compat/compat-spwd.c: Likewise.
1961 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1963 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1964 functions, dlopen corresponding NSS module instead.
1966 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1968 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1969 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1970 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1971 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1973 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1975 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1977 2003-06-26 Roland McGrath <roland@frob.com>
1979 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1980 * sysdeps/mach/configure: Regenerated.
1981 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1982 (__times): Assume `creation_time' field is available.
1983 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1984 Don't append set-init.
1985 * sysdeps/mach/hurd/set-init.c: File removed.
1987 2003-06-26 Roland McGrath <roland@redhat.com>
1989 * elf/elf.h (AT_SECURE): New macro.
1990 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1991 set __libc_enable_secure.
1992 (_dl_show_auxv): Add AT_SECURE to name table.
1993 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1994 __libc_enable_secure and __libc_enable_secure_decided.
1995 * sysdeps/unix/sysv/linux/ldsodefs.h
1996 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1997 * sysdeps/unix/sysv/linux/kernel-features.h
1998 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
2000 2003-06-26 Ulrich Drepper <drepper@redhat.com>
2002 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
2003 boundary test to take rounding of nanoseconds into account.
2005 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
2006 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2007 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
2008 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2009 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2010 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2011 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2013 2003-06-26 Andreas Schwab <schwab@suse.de>
2015 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
2016 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
2017 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
2019 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
2021 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
2022 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
2023 dlopen corresponding NSS module instead.
2024 * nis/nss_compat/compat-pwd.c: Likewise.
2025 * nis/nss_compat/compat-spwd.c: Likewise.
2026 * nis/nss_compat/compat-initgroups.c: Disabled for now.
2027 * nss/Versions: Export __nss_lookup_function.
2029 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2031 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
2032 for the SH architecture.
2034 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
2036 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
2038 2003-06-25 Andreas Jaeger <aj@suse.de>
2040 * stdlib/tst-strtod.c (main): Declare constant long double as
2041 suggested by Jakub Jelinek and Andreas Schwab.
2043 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
2046 * stdio-common/tst-fphex.c: Fix format string.
2048 * posix/transbug.c: Include <string.h> for memset and strlen
2051 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
2053 * stdlib/tst-strtod.c (main): Pass long double value.
2055 * test-skeleton.c: Include <time.h> for nanosleep declaration.
2057 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2059 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
2062 2003-06-11 Jakub Jelinek <jakub@redhat.com>
2064 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
2065 * elf/dl-libc.c (struct dl_open_hook): New.
2066 (_dl_open_hook): New variable.
2067 (do_dlsym_private): New function.
2068 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
2069 and initialize it if found.
2070 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
2071 call dlopen_mode hook.
2072 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
2074 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
2077 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2079 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
2080 result to long int so that extensions to long long int work.
2081 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2083 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2085 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
2086 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
2087 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
2089 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
2090 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
2091 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
2092 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
2094 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2096 * test-skeleton.c (timeout_handler): If waitpid returned 0,
2097 retry once after a second. If killed == 0, assume
2098 WTERMSIG (status) == SIGKILL.
2100 2003-06-18 Roland McGrath <roland@redhat.com>
2102 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
2103 elements in the table instead of printing an empty name string.
2105 2003-06-05 Roland McGrath <roland@redhat.com>
2107 * elf/elf.h (PT_GNU_STACK): New macro.
2109 2003-06-24 Ulrich Drepper <drepper@redhat.com>
2111 * include/time.h: Define CLOCK_IDFIELD_SIZE.
2112 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
2113 * sysdeps/unix/clock_gettime.c: Likewise.
2114 * sysdeps/unix/clock_settime.c: Likewise.
2115 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
2116 clock id for thread CPU clocks.
2118 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
2119 for the fstatfs64 syscall.
2120 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
2121 the statfs64 syscall.
2123 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2124 __ASSUME_STATFS64 appropriately.
2126 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
2127 from statfs structure if it has been filled in.
2129 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
2131 (struct statfs64): Likewise.
2132 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
2133 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2135 2003-06-24 Richard Henderson <rth@redhat.com>
2137 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
2138 the 64-bit syscall name.
2140 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
2142 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
2143 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
2145 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
2146 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
2148 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2149 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
2152 * sysdeps/alpha/bits/atomic.h: New file.
2154 2003-06-24 Andreas Schwab <schwab@suse.de>
2156 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2158 2003-06-24 Andreas Jaeger <aj@suse.de>
2160 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
2161 redeclaration with 32-bit code.
2163 2003-05-19 Ed Connell <ed.connell@sas.com>
2165 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
2166 floating point mask.
2167 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
2169 2003-06-23 Ulrich Drepper <drepper@redhat.com>
2171 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
2172 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
2173 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
2175 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
2176 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
2177 instead of __libc_cleanup_region_*.
2179 2003-06-20 Richard Henderson <rth@redhat.com>
2181 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
2182 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
2184 2003-06-20 Richard Henderson <rth@redhat.com>
2186 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
2187 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
2189 (__ASSUME_TIMEVAL64): Set for alpha.
2190 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2191 adjtimex, osf_sigprocmask, old_adjtimex.
2192 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
2193 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
2194 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
2195 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2196 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2197 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2198 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2199 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2200 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2201 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2202 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2204 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2205 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2206 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2207 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2208 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2209 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2210 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2211 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2212 defer to __syscall_name; error for rt_sigaction.
2213 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2215 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2217 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2218 hasn't happened yet.
2220 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2221 Fix completely broken implementation. The second parameter is of
2222 type struct ucontext*.
2224 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2227 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2228 * sysdeps/generic/dl-hash.h: Likewise.
2230 * sysdeps/generic/memcmp.c: Remove inline from
2231 memcmp_common_alignment and memcmp_not_common_alignment definition.
2233 * intl/localealias.c (read_alias_file): Determine whether line is
2234 read incompletely early, before we modify the line.
2236 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2238 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2239 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2241 2003-06-17 Paul Mackerras <paulus@samba.org>
2243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2247 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2248 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2250 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2252 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2254 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2256 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2257 takes care of enabling cancellation.
2259 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2260 cancelable. It's not correct to disable cancellation. Instead of
2263 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2264 and part of the incoming set, create a temporary set without this
2266 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2267 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2269 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2270 returning because seconds==0. Add __builtin_expect.
2272 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2274 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2276 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2279 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2281 * include/libc-symbols.h: Add static_link_warning macro.
2282 * grp/initgroups.c: Print linker warning if this function
2283 is called in a static linked binary.
2284 * nss/getXXbyYY.c: Likewise.
2285 * nss/getXXbyYY_r.c: Likewise.
2286 * nss/getXXent.c: Likewise.
2287 * nss/getXXent_r.c: Likewise.
2288 * sysdeps/posix/getaddrinfo.c: Likewise.
2290 2003-06-16 Bruno Haible <bruno@clisp.org>
2292 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2294 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2295 (IBM1047): Add alias IBM-1047.
2296 (GBK): Add aliases MS936, WINDOWS-936.
2298 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2300 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2301 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2302 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2304 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2306 * locale/iso-639.def: Update from current official ISO 639.
2308 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2310 2003-06-15 Andreas Jaeger <aj@suse.de>
2312 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2314 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2315 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2316 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2318 * math/tgmath.h (carg): Handle real arguments.
2324 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2325 (tests): Add test-tgmath-ret.
2326 * math/test-tgmath-ret.c: New file.
2328 * math/tgmath.h (ilogb): Return always an int.
2330 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2332 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2333 computation so that prelinking works.
2335 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2337 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2339 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2340 dynamic linker's map.
2342 Fix cancellation point handling wrt exception based cleanup.
2343 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2344 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2346 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2347 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2348 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2350 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2351 sigwait.c, and sigwaitinfo.c with exceptions.
2352 * stdlib/Makefile: Compile system.c with exceptions.
2353 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2354 * termios/Makefile: Compile tcdrain.c with exceptions.
2355 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2357 * sysdeps/generic/pselect.c: Likewise.
2358 * sysdeps/posix/sigpause.c: Likewise.
2359 * sysdeps/posix/system.c: Likewise.
2360 * sysdeps/posix/waitid.c: Likewise.
2361 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2362 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2363 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2364 INTERNAL_SYSCALL to not use push inside asm statement so that
2365 unwind info is correct around the syscall.
2366 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2367 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2369 2003-06-15 Andreas Jaeger <aj@suse.de>
2371 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2374 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2376 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2379 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2381 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2384 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2385 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2388 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2389 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2390 * inet/Makefile (routines): Add inet6_option.
2391 * inet/inet6_option.c: New file.
2392 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2393 inet6_option_init, inet6_option_append, inet6_option_alloc,
2394 inet6_option_next, and inet6_option_find.
2396 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2398 * inet/netinet/ip6.h (struct ip6_ext): Define.
2400 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2402 Fixing gcc 3.3 warnings, part II.
2403 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2404 * elf/dl-load.c (cache_rpath): Don't inline.
2405 * iconvdata/cns11642l2.h: Always inline all functions.
2406 * iconvdata/iso-ir-165.h: Likewise.
2407 * locale/Makefile (aux): Add coll-lookup.
2408 * locale/coll-lookup.c: New file.
2409 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2410 (collseq_table_lookup): Likewise.
2411 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2412 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2414 * posix/regcomp.c: Likewise.
2415 * posix/regexec.c: Likewise.
2416 * locale/programs/3level.h (*_get): Always inline.
2417 * locale/programs/locfile.h: Move definition of handle_copy to...
2418 * locale/programs/locfile.c: ...here.
2419 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2420 (obstack_int32_grow_fast): Likewise.
2421 (utf8_encode): Likewise.
2422 (find_element): Avoid aliasing problems.
2423 (insert_value): Likewise.
2424 (collate_read): Likewise.
2425 * nss/getent.c (print_hosts): Don't inline
2426 (print_networks): Likewise.
2427 (print_shadow): Likewise.
2428 (build_doc): Likewise.
2429 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2431 * posix/regcomp.c (re_set_fastmap): Always inline.
2432 (seek_collating_symbol_entry): Likewise.
2433 (lookup_collation_sequence_value): Likewise.
2434 (build_range_exp): Likewise.
2435 (build_collating_symbol): Likewise.
2436 * posix/regexec.c (acquire_init_state_context): Don't inline.
2437 (clean_state_log_if_need): Likewise.
2438 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2440 (evConsTime): Likewise.
2441 (evAddTime): Likewise.
2442 (evSubTime): Likewise.
2443 (evNowTime): Likewise.
2444 (evTimeSpec): Removed.
2445 (__libc_res_nsend): Avoid aliasing problem.
2446 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2447 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2448 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2450 (_dl_string_platform): Likewise.
2451 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2452 (wcwidth_table_lookup): Likewise.
2453 (wctrans_table_lookup): Likewise.
2455 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2457 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2459 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2461 2003-05-29 Jim Meyering <jim@meyering.net>
2463 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2464 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2465 Suggested by Daniel Yacob <locales@geez.org>.
2467 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2469 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2470 @got notation with @toc.
2471 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2474 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2476 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2477 if only PF_INET address is needed.
2479 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2482 * scripts/config.guess: Update from upstream version.
2483 * scripts/config.sub: Likewise.
2485 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2487 * locale/programs/ld-time.c (time_output): Also copy the era format,
2490 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2492 * posix/transbug.c (run_test): Return 1 for failure.
2493 (do_test): Compare only if run_test is successful.
2495 2003-06-12 Simon Josefsson <jas@extundo.com>
2497 * argp/argp.h [!__THROW]: Define if undefined.
2499 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2501 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2502 more than four parameters.
2503 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2505 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2507 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2508 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2509 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2511 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2513 2003-06-12 Roland McGrath <roland@redhat.com>
2515 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2517 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2519 * posix/regcomp.c (parse_expression): Deliver translation to
2520 build_word_op, and build_charclass.
2521 (build_charclass): Apply translation for character classes too.
2522 (build_word_op): Deliver translation to build_charclass.
2523 * posix/transbug.c: New file.
2524 * posix/Makefile (tests): Add transbug.
2526 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2528 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2529 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2530 'continue' before the others.
2532 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2534 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2535 function [PR libc/5045].
2537 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2540 * time/tzfile.c: Add a couple of __builtin_expect.
2542 Remove warnings gcc 3.3 shows.
2543 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2544 * elf/dl-load.c (fillin_rpath): Likewise.
2545 (add_path): Likewise.
2546 * elf/dl-version.c (find_needed): Always inline.
2547 * elf/do-lookup.c (FCT): Don't inline.
2548 * iconv/Makefile: Extend vpath to intl subdir.
2549 (iconvconfig-modules): Add hash-string.
2550 * iconv/gconv_charset.h (strip): Don't inline.
2551 (upstr): Always inline.
2552 Move __gconv_compare_alias prototype to...
2553 * iconv/gconv_int.h: ...here.
2554 * iconv/gconv_db.c: Don't include gconv_charset.h.
2555 * iconv/gconv_conf.c (add_alias): Don't inline.
2556 (insert_module): Likewise.
2557 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2558 (internal_ucs4_loop_unaligned): Likewise.
2559 (internal_ucs4_loop_single): Likewise.
2560 (ucs4_internal_loop): Likewise.
2561 (ucs4_internal_loop_unaligned): Likewise.
2562 (ucs4_internal_loop_single): Likewise.
2563 (internal_ucs4le_loop): Always inline.
2564 (internal_ucs4le_loop_unaligned): Likewise.
2565 (internal_ucs4le_loop_single): Likewise.
2566 (ucs4le_internal_loop): Likewise.
2567 (ucs4le_internal_loop_unaligned): Likewise.
2568 (ucs4le_internal_loop_single): Likewise.
2569 * iconv/loop.c: Always inline the defined functions.
2570 * iconvdata/cns11642.h: Likewise.
2571 * iconvdata/cns11642l1.h: Likewise.
2572 * iconvdata/euc-kr.c: Likewise.
2573 * iconvdata/gb2312.h: Likewise.
2574 * iconvdata/jis0201.h: Likewise.
2575 * iconvdata/jis0208.h: Likewise.
2576 * iconvdata/jis0212.h: Likewise.
2577 * iconvdata/jisx0213.h: Likewise.
2578 * iconvdata/ksc5601.h: Likewise.
2579 * iconvdata/utf-7.c (base64): Don't inline.
2580 * include/libc-symbols.h (symbol_set_first_element): Add cast
2581 (symbol_set_end_p): Likewise.
2582 * include/set-hooks (RUN_HOOK): Likewise.
2583 * inet/Makefile (aux): Add ifreq.
2584 * intl/Makefile (aux): Add some entries from routines. Add
2586 * intl/hash-string.c: New file.
2587 * intl/hash-string.h: Remove hash_string definition. Declare
2589 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2590 * iconv/iconvconfig.c (new_name): Likewise.
2591 * intl/dcigettext.c (_nl_find_msg): Likewise.
2592 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2593 * io/ftw.c (open_dir_stream): Always inline.
2594 (process_entry): Don't inline.
2595 * locale/findlocale.c: Include gconv_int.h.
2596 * locale/setlocale.c (new_composite_name): Don't inline.
2597 * locale/weight.h (findidx): Always inline.
2598 * locale/weightwc.h (findidx): Likewise.
2599 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2600 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2602 (lr_getc): Always inline.
2603 (lr_ungetc): Likewise.
2604 * nss/nss_files/files-parse.c (parse_list): Likewise.
2605 * stdio-common/Makefile (aux): Add printf-parsemb and
2607 * stdio-common/_itoa.h (_itoa_word): Always inline.
2608 (_fitoa_word, _fitoa): Don't define here, only declare.
2609 * stdio-common/_itoa.c (_iftoa_word): Add here.
2611 * stdio-common/_itowa.h (_itowa_word): Always inline.
2612 * stdio-common/printf-parse.h (read_int): Don't inline.
2613 (find_spec): Don't define.
2614 Declare __find_specmb and __find_specwc.
2615 (parse_one_spec): Don't define.
2616 Declare __parse_one_specmb and __parse_one_specwc.
2617 * stdio-common/printf-parsemb.c: New file.
2618 * stdio-common/printf-parsewc.c: New file.
2619 * stdio-common/vfprintf.c: Update calls to find_spec and
2620 parse_one_spec for new names.
2621 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2622 * stdlib/Makefile (aux): Add grouping and groupingwc.
2623 * stdlib/grouping.c: New file.
2624 * stdlib/groupingwc.c: New file.
2625 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2627 * stdlib/rpmatch.c (try): Don't inline.
2628 * stdlib/strtod.c (round_and_return): Don't line.
2629 (str_to_mpn): Likewise.
2630 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2631 Adjust for name change of correctly_grouped_prefix.
2632 * sysdeps/generic/strtol.c: Adjust for name change of
2633 correctly_grouped_prefix.
2634 * string/strxfrm.c (utf8_encode): Don't inline.
2635 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2636 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2637 * sysdeps/generic/ifreq.c: New file.
2638 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2639 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2640 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2641 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2642 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2643 (fde_split): Likewise.
2644 (fde_merge): Likewise.
2645 (end_fde_sort): Likewise.
2646 (init_object): Likewise.
2647 (binary_search_unencoded_fdes): Likewise.
2648 (binary_search_single_encoding_fdes): Likewise.
2649 (binary_search_mixed_encoding_fdes): Likewise.
2650 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2651 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2652 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2653 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2655 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2656 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2657 Export them. Prepend __ to name.
2658 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2659 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2660 conversion functions.
2661 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2662 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2663 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2664 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2665 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2666 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2667 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2668 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2669 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2670 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2671 to name. Change callers.
2672 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2673 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2675 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2676 * time/tzfile.c (decode): Always inline.
2677 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2678 Remove cast in tomb function call.
2679 * wcsmbs/wcsrtombs.c Likewise.
2680 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2683 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2685 * po/zh_CN.po: Update from translation team.
2687 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2689 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2690 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2692 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2694 * inet/Makefile (aux): Add check_pf.
2695 * include/ifaddrs.h: Add prototype for __check_pf.
2696 * sysdeps/generic/check_pf.c: New file.
2697 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2698 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2699 from no_netlink_support. Export.
2700 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2703 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2705 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2706 from getifaddr calls.
2708 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2710 * sysdeps/unix/sysv/linux/kernel-features.h
2711 (__ASSUME_SETRESGID_SYSCALL): Define.
2712 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2713 instead of __ASSUME_SETRESUID_SYSCALL.
2714 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2716 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2717 inline syscall if __NR_setresuid32 is defined.
2718 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2719 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2720 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2721 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2722 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2723 code handling non-existant setresgid32 syscall with
2724 #if __ASSUME_SETRESGID_SYSCALL == 0.
2726 2003-06-09 Andreas Schwab <schwab@suse.de>
2728 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2729 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2730 $(objpfx)rpc-proto.d.
2731 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2732 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2733 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2735 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2737 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2738 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2739 defined drop compatibility code.
2740 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2741 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2742 defined drop compatibility code.
2743 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2744 setresuid32 syscall directly if possible.
2745 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2746 setresgid32 syscall directly if possible.
2747 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2748 compliant. Don't change sgid.
2749 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2750 compliant. Don't change suid.
2752 * config.h.in: Add have-forced-unwind.
2753 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2755 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2757 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2758 returned status from child matches.
2760 * Makeconfig (gnulib): Add -lgcc_eh once again.
2762 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2764 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2766 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2767 %edx for first parameter. This means no pushl and therefore the
2768 unwind info isn't screwed up.
2770 2003-06-04 Richard Henderson <rth@redhat.com>
2772 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2773 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2774 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2775 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2776 entry sequence and explicit relocs. Add unwind info for sigreturn
2778 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2780 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2781 Annotate some parameters.
2782 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2784 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2786 * include/libc-symbols.h (symbol_set_declare): Use arrays
2787 of unspecified size.
2789 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2791 * config.make.in (ASFLAGS-config): New.
2792 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2793 * configure.in (libc_cv_as_noexecstack): New check.
2794 (ASFLAGS_config): Substitute.
2796 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2798 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2799 hypot, logb): Protect with #ifdef __FAST_MATH__.
2801 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2803 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2804 #ifdef __FAST_MATH__.
2806 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2808 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2809 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2810 * posix/globtest.sh: Adjust for this change.
2812 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2813 to get the actual PID value used in the records passed up.
2814 (getifaddrs): Don't initialize nh.pid here.
2816 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2818 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2821 * po/zh_CN.po: Update from translation team.
2823 * posix/getconf.c (main): Also recognize names without the
2826 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2828 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2830 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2831 ldexpf, ldexpl): Only define if __FAST_MATH__.
2833 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2835 Replace hard-coded offsets into struct sigcontext with generated file.
2836 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2837 * sysdeps/unix/sysv/linux/ia64/Makefile
2838 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2839 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2840 defining SC_* macros here.
2842 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2844 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2846 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2848 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2850 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2852 * test-skeleton.c (main): Request getopt to not reorder the
2855 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2857 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2860 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2862 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2864 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2866 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2868 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2869 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2870 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2872 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2874 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2877 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2879 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2881 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2884 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2886 * scripts/config.guess: Update from master copy.
2887 * scripts/config.sub: Likewise.
2889 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2891 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2892 SETUP_GP64 and friends.
2893 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2894 names in internal_syscall{6,7}.
2895 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2896 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2897 number of syscall arguments.
2898 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2899 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2900 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2902 2003-05-30 Andreas Jaeger <aj@suse.de>
2904 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2907 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2910 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2912 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2915 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2917 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2920 2003-05-11 Andreas Schwab <schwab@suse.de>
2922 * Makerules: Always use -MP together with -MD.
2923 (sed-remove-dotot): Substitute $(..) also at start of line.
2924 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2925 Generated defines with a single compiler call.
2926 Use $(sed-remove-dotdot).
2927 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2928 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2929 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2930 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2931 * sysdeps/unix/sysv/linux/mips/Makefile
2932 ($(objpfx)syscall-%.h): Likewise.
2934 2003-05-28 Roland McGrath <roland@redhat.com>
2936 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2938 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2940 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2942 2003-05-28 Roland McGrath <roland@redhat.com>
2944 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2945 rt_sigprocmask system call.
2946 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2947 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2949 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2951 * include/libc-symbols.h: Define hidden attribute for real also if
2952 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2954 * csu/Makefile: Add rules to build Scrt1.o.
2955 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2956 * sysdeps/x86_64/elf/start.S: Likewise.
2958 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2960 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2961 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2962 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2963 pa_short_int, pa_u_short_int and pa_float.
2965 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2967 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2968 _IO_str_init_static_internal.
2969 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2970 change size argument to _IO_size_t, don't limit sprintf to 64M.
2971 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2972 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2973 _IO_size_t, don't limit swprintf to 256M.
2974 (_IO_wstr_init_readonly): Remove.
2975 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2977 (_IO_wstr_init_readonly): Remove prototype.
2978 * libio/iovsprintf.c (_IO_vsprintf): Use
2979 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2980 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2981 * libio/memstream.c (open_memstream): Likewise.
2982 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2983 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2984 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2985 * stdio-common/tst-sprintf.c (main): Add new test.
2987 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2989 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2990 other implementation in respect of multiple uses of parameter with
2993 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2995 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2996 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2998 2003-05-22 Andreas Jaeger <aj@suse.de>
3000 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
3002 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3003 * sysdeps/x86_64/strtok.S: Likewise.
3005 2003-05-20 Guido Guenther <agx@sigxcpu.org>
3007 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
3008 to -60 and define SI_TKILL.
3010 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
3012 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
3013 (feexcp_mask_test): Likewise.
3015 2003-05-21 Ulrich Drepper <drepper@redhat.com>
3017 * locale/programs/locale.c (main): Fix typo in last patch.
3019 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
3020 __init_array_start, __init_array_end, __fini_array_start, and
3021 __fini_array_end as hidden.
3023 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
3025 * locale/programs/locale.c (main): Report an error if setlocale()
3026 fails [PR libc/2254].
3028 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3030 * sysdeps/unix/sysv/linux/s390/system.c: New file.
3032 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
3035 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3036 LOADARGS_6): Don't error if syscall argument is a string literal.
3037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
3038 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3039 LOADARGS_6): Likewise.
3041 2003-05-21 Andreas Jaeger <aj@suse.de>
3043 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
3044 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
3045 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
3047 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
3051 * configure.in: Test for asm cfi directives.
3053 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
3055 2003-05-17 Andreas Jaeger <aj@suse.de>
3057 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
3059 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
3061 2003-05-16 Ulrich Drepper <drepper@redhat.com>
3063 * rt/Makefile (tests): Add tst-clock_nanosleep.
3064 * rt/tst-clock_nanosleep.c: New file.
3065 * posix/Makefile (tests): Add tst-nanosleep.
3066 * posix/tst-nanosleep.c: New file.
3068 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
3070 * include/features.h (__USE_XOPEN2K): Define also for
3071 _POSIX_C_SOURCE>=200112L.
3073 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
3074 SI_TKILL code into SI_USER.
3075 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
3077 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
3079 2003-05-15 Jakub Jelinek <jakub@redhat.com>
3081 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
3082 Remove sym argument, always use refsym.
3083 (__process_machine_rela): Adjust callers.
3084 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
3086 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
3088 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3090 2003-05-15 Ulrich Drepper <drepper@redhat.com>
3092 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
3093 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
3094 print numeric values.
3096 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
3098 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
3100 2003-05-14 Andreas Schwab <schwab@suse.de>
3102 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
3104 2003-05-14 Jakub Jelinek <jakub@redhat.com>
3106 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
3107 even if no DT_NEEDED is present.
3109 2003-05-13 David Mosberger <davidm@hpl.hp.com>
3111 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
3112 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
3113 __sigjmp_save) so we can't keep the saved unat value in a scratch
3114 register (r16). Use loc2 instead.
3116 2003-05-13 Ulrich Drepper <drepper@redhat.com>
3118 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
3119 binaries it has to be relocatable.
3121 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
3123 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3125 * sysdeps/powerpc/bits/atomic.h
3126 (__arch_compare_and_exchange_bool_8_rel): Define.
3127 (__arch_compare_and_exchange_bool_16_rel): Define.
3128 (__ARCH_REL_INSTR): Define if not already defined.
3129 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
3130 (__arch_atomic_decrement_if_positive_32):
3131 Add "memory" to clobber list.
3132 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
3133 (__arch_compare_and_exchange_val_32_rel): Define.
3134 (__arch_atomic_exchange_32): Remove.
3135 (__arch_atomic_exchange_32_acq): Define.
3136 (__arch_atomic_exchange_32_rel): Define.
3137 (atomic_compare_and_exchange_val_rel): Define.
3138 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
3139 (atomic_exchange_rel): Define.
3140 * sysdeps/powerpc/powerpc32/bits/atomic.h
3141 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
3142 (__arch_compare_and_exchange_bool_32_rel): Define.
3143 (__arch_compare_and_exchange_bool_64_rel): Define.
3144 (__arch_compare_and_exchange_val_64_rel): Define.
3145 (__arch_atomic_exchange_64): Remove.
3146 (__arch_atomic_exchange_64_acq): Define.
3147 (__arch_atomic_exchange_64_rel): Define.
3148 * sysdeps/powerpc/powerpc64/bits/atomic.h
3149 (__arch_compare_and_exchange_bool_32_rel): Define.
3150 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
3151 (__arch_compare_and_exchange_bool_64_rel): Define.
3152 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
3153 (__arch_compare_and_exchange_val_64_rel): Define.
3154 (__arch_atomic_exchange_64): Remove.
3155 (__arch_atomic_exchange_64_acq): Define.
3156 (__arch_atomic_exchange_64_rel): Define.
3157 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
3158 (__arch_atomic_decrement_if_positive_64):
3159 Add "memory" to clobber list.
3160 [!UP](__ARCH_REL_INSTR): Define as lwsync.
3162 2003-05-11 Andreas Schwab <schwab@suse.de>
3164 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
3166 2003-05-11 Ulrich Drepper <drepper@redhat.com>
3168 * time/tst-strftime.c (do_test): Add tests for - flag.
3170 2003-05-11 Jim Meyering <jim@meyering.net>
3172 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
3173 the space-padded-by-default conversion specifiers, %e, %k, %l.
3175 2003-05-11 Andreas Schwab <schwab@suse.de>
3177 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
3179 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3181 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
3182 already defined and when really needed.
3183 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3185 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3187 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
3188 headers, add defines from kernel header, move it from here...
3189 * inet/netinet/igmp.h: ... to here.
3190 * inet/Makefile (headers): Add netinet/igmp.h.
3191 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
3192 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
3194 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3196 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
3197 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
3199 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3201 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3202 (remove __THROW from possible cancellation points).
3204 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3206 * posix/sched.h (CPU_SETSIZE): Define.
3208 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3210 * Makeconfig (gnulib): Remove -lgcc_eh again.
3212 * posix/sched.h: Change prototypes of sched_getaffinity and
3213 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3214 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3215 * sysdeps/generic/sched_setaffinity.c: Likewise.
3216 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3217 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3218 __CPU_CLR, and __CPU_ISSET.
3219 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3220 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3221 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3223 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3224 (atomic_exchange_rel): New #define.
3225 * sysdeps/ia64/bits/atomic.h: Likewise.
3226 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3228 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3229 * sysdeps/powerpc/bits/atomic.h: Likewise.
3230 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3231 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3232 * sysdeps/x86_64/bits/atomic.h: Likewise.
3233 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3235 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3237 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3239 * malloc/thread-m.h: Remove special handling of thread_atfork if
3240 HAVE_register_atfork_malloc is defined.
3242 2003-05-07 Andreas Jaeger <aj@suse.de>
3244 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3247 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3249 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3250 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3251 * libio/libioP.h: Declare _IO_old_init.
3252 * libio/genops.c (_IO_no_init): Split in two. New function
3255 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3257 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3259 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3261 * include/unistd.h: Declare __libc_enable_secure_decided.
3262 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3263 and AT_EGID. If all found, set __libc_enable_secure and
3264 __libc_enable_secure_decided.
3266 * sysdeps/generic/libc-start.c [!SHARED]: Call
3267 __libc_check_standard_fds after __libc_init_first.
3269 2003-05-05 Roland McGrath <roland@redhat.com>
3271 * Makerules (common-before-compile): New variable.
3272 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3273 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3274 to after all setting of before-compile.
3276 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3278 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3279 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3280 * sysdeps/powerpc/powerpc32/bits/atomic.h
3281 (__arch_compare_and_exchange_val_64_acq): Likewise.
3282 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3283 (__arch_compare_and_exchange_val_8_acq,
3284 __arch_compare_and_exchange_val_16_acq,
3285 __arch_compare_and_exchange_val_64_acq): Likewise.
3286 * sysdeps/sparc/sparc64/bits/atomic.h
3287 (__arch_compare_and_exchange_val_8_acq,
3288 __arch_compare_and_exchange_val_16_acq): Likewise.
3289 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3290 __arch_compare_and_exchange_val_16_acq,
3291 __arch_compare_and_exchange_val_64_acq): Likewise.
3292 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3293 (__arch_compare_and_exchange_val_64_acq): Likewise.
3294 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3296 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3298 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3299 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3300 Return long instead of int.
3301 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3302 0xfffff001u with -4095UL.
3304 2003-05-05 Andreas Jaeger <aj@suse.de>
3306 * sysdeps/x86_64/fpu_control.h: New from i386.
3308 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3309 Define if not defined.
3311 * sunrpc/Makefile (generated-dirs): New variable.
3312 * resolv/Makefile (generated): New variable.
3314 2003-05-04 Roland McGrath <roland@redhat.com>
3316 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3317 Depend on $(before-compile).
3319 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3320 pattern rule. The implicit rule could be ruled out when $(objpfx)
3321 didn't exist at the time of its consideration (ugh!).
3323 * Makerules (+make-deps): Fix target matching.
3324 Use $(sed-remove-dotdot).
3326 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3328 * nscd/nscd.c (main): Parse config file right after parsing
3329 parameters. Then, if get_stats is true, call receive_print_stats.
3330 Drop parameter from nscd_init call.
3331 (get_stats): New variable.
3332 (parse_opt): Set get_stats, don't call receive_print_stats here.
3333 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3335 * nscd/connections.c (stat_user, stat_uid): New variables.
3337 (nscd_init): Don't read configuration file here. Drop parameter.
3338 (handle_request): Cleanup handling of non-database lookup requests.
3339 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3340 Get UID of the specified user. Use xstrdup instead of strdup.
3341 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3343 * nscd/Makefile (nscd-modules): Add xstrdup.
3344 * nscd/nscd.conf: Document stat-user entry.
3346 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3348 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3351 2003-04-22 Roland McGrath <roland@redhat.com>
3353 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3354 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3355 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3356 * elf/dl-support.c: Update defn.
3357 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3358 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3359 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3360 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3361 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3362 set, set up a link_map for the preloaded, prelinked object.
3364 2003-05-03 Roland McGrath <roland@redhat.com>
3366 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3367 * stdio-common/Makefile: ... not here.
3369 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3370 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3372 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3374 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3376 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3378 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3379 comparing ftab elements.
3380 (_dl_unmap): Fix typo in test.
3381 (_dl_make_fptr): Fix typos introduced in last change.
3383 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3384 original patch. Use non-exported symbols. Mark translatable
3385 strings. Pretty printing.
3387 2003-05-02 Roland McGrath <roland@redhat.com>
3389 * Makerules (do-stamp): Do $(make-target-directory).
3391 2003-04-07 H.J. Lu <hjl@gnu.org>
3393 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3395 2003-04-03 H.J. Lu <hjl@gnu.org>
3397 * sysdeps/ia64/dl-fptr.c: Moved to ...
3398 * sysdeps/generic/dl-fptr.c: Here.
3400 * sysdeps/generic/dl-fptr.h: New.
3401 * sysdeps/ia64/dl-fptr.h: New.
3403 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3404 * sysdeps/generic/dl-symaddr.c: here.
3406 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3407 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3408 (ia64_fdesc): Likewise.
3409 (ia64_fdesc_table): Likewise.
3410 (__ia64_make_fptr): Likewise.
3411 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3412 with _dl_boot_fptr_table.
3413 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3415 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3417 2003-05-01 Roland McGrath <roland@redhat.com>
3419 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3420 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3422 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3423 Use $(make-target-directory).
3424 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3426 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3427 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3428 (compile-command.s, compile-command.c): Likewise.
3429 ($(objpfx)%.d): All such pattern rules removed.
3430 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3431 ($(common-objpfx)dummy.d): Target removed.
3432 (make-dummy-dep): Variable removed.
3433 (generate-md5): Likewise.
3434 (%.d: %.dt): New pattern rule.
3435 (+depfiles): Use $(wildcard) function to get just existing *.d files
3436 and .d files for existing *.dt files.
3437 (common-clean): Remove all *.d and *.dt files.
3438 (before-compile): Add $(objpfx). when it doesn't exist,
3439 regardless of $(no_deps).
3440 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3441 (rtld-depfiles): Use .os.d instead of .d names.
3442 Include existing *.d files and .d files for existing *.dt files.
3444 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3445 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3447 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3448 Do s-*.d includes only if we have some syscall routines in this subdir.
3450 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3451 @nobits. The former is accepted by gas on any ELF platform.
3453 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3455 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3457 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3459 2003-04-29 Andreas Schwab <schwab@suse.de>
3461 * string/test-strcat.c (do_one_test): Fix attribute name.
3463 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3465 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3466 uc_flags long for all ABIs.
3468 2003-04-30 Andreas Jaeger <aj@suse.de>
3470 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3471 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3472 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3473 Add bi-arch support.
3475 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3477 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3478 (__posix_memalign): Use __memalign_internal instead of memalign.
3480 2003-04-29 Roland McGrath <roland@redhat.com>
3482 * configure.in: Search for AUTOCONF unconditionally.
3483 Just don't complain about missing it under --without-cvs.
3485 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3486 give hidden for [SHARED] and weak for [! SHARED].
3487 (symbol_set_declare): Use that. Never need weak_extern these days.
3488 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3489 Depend on $(..)Makerules.
3491 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3493 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3494 variants of socket, bind, recvmsg, and sendto.
3496 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3498 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3499 * signal/sigaddset.c: Add libc_hidden_def.
3500 * signal/sigdelset.c: Likewise.
3502 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3504 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3505 to the end of the file.
3507 * configure.in: Change __oline__ to $LINENO.
3508 (HAVE_BUILTIN_REDIRECTION): New check.
3509 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3510 * include/libc-symbols.h (libc_hidden_builtin_proto,
3511 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3512 libc_hidden_builtin_ver): Define.
3513 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3514 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3515 strspn, strstr): Add libc_hidden_builtin_proto.
3516 * intl/plural.y: Include string.h.
3517 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3518 libc_hidden_builtin_def.
3519 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3520 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3521 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3522 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3523 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3524 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3525 * sysdeps/alpha/memchr.S (memchr): Likewise.
3526 * sysdeps/alpha/memset.S (memset): Likewise.
3527 * sysdeps/alpha/strcat.S (strcat): Likewise.
3528 * sysdeps/alpha/strchr.S (strchr): Likewise.
3529 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3530 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3531 * sysdeps/alpha/strlen.S (strlen): Likewise.
3532 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3533 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3534 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3535 * sysdeps/arm/memset.S (memset): Likewise.
3536 * sysdeps/arm/strlen.S (strlen): Likewise.
3537 * sysdeps/generic/memchr.c (memchr): Likewise.
3538 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3539 * sysdeps/generic/memmove.c (memmove): Likewise.
3540 * sysdeps/generic/memset.c (memset): Likewise.
3541 * sysdeps/generic/strcat.c (strcat): Likewise.
3542 * sysdeps/generic/strchr.c (strchr): Likewise.
3543 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3544 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3545 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3546 * sysdeps/generic/strlen.c (strlen): Likewise.
3547 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3548 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3549 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3550 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3551 * sysdeps/generic/strspn.c (strspn): Likewise.
3552 * sysdeps/generic/strstr.c (strstr): Likewise.
3553 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3554 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3555 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3556 * sysdeps/i386/i586/memset.S (memset): Likewise.
3557 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3558 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3559 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3560 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3561 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3562 * sysdeps/i386/i686/memset.S (memset): Likewise.
3563 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3564 * sysdeps/i386/memchr.S (memchr): Likewise.
3565 * sysdeps/i386/memset.c (memset): Likewise.
3566 * sysdeps/i386/strchr.S (strchr): Likewise.
3567 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3568 * sysdeps/i386/strlen.c (strlen): Likewise.
3569 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3570 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3571 * sysdeps/i386/strspn.S (strspn): Likewise.
3572 * sysdeps/ia64/memchr.S (memchr): Likewise.
3573 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3574 * sysdeps/ia64/memmove.S (memmove): Likewise.
3575 * sysdeps/ia64/memset.S (memset): Likewise.
3576 * sysdeps/ia64/strcat.S (strcat): Likewise.
3577 * sysdeps/ia64/strchr.S (strchr): Likewise.
3578 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3579 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3580 * sysdeps/ia64/strlen.S (strlen): Likewise.
3581 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3582 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3583 * sysdeps/m68k/memchr.S (memchr): Likewise.
3584 * sysdeps/m68k/strchr.S (strchr): Likewise.
3585 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3586 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3587 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3588 * sysdeps/mips/memset.S (memset): Likewise.
3589 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3590 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3591 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3592 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3593 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3594 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3595 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3596 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3597 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3598 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3599 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3600 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3601 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3602 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3603 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3604 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3605 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3606 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3607 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3608 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3609 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3610 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3611 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3612 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3613 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3614 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3615 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3616 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3617 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3618 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3619 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3620 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3621 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3622 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3623 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3624 * sysdeps/sh/memset.S (memset): Likewise.
3625 * sysdeps/sh/strlen.S (strlen): Likewise.
3626 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3627 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3628 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3629 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3630 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3631 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3632 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3633 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3634 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3635 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3636 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3637 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3638 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3639 * sysdeps/x86_64/memset.S (memset): Likewise.
3640 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3641 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3642 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3643 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3644 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3645 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3646 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3647 * string/string-inlines.c: Move...
3648 * sysdeps/generic/string-inlines.c: ...here.
3649 (__memcpy_g, __strchr_g): Remove.
3650 (__NO_INLINE__): Define before including <string.h>,
3651 undefine after. Include bits/string.h and bits/string2.h.
3652 * sysdeps/i386/i486/string-inlines.c: New file.
3653 * sysdeps/i386/string-inlines.c: New file.
3654 * sysdeps/i386/i486/Versions: Remove.
3655 All GLIBC_2.1.1 symbols moved...
3656 * sysdeps/i386/Versions (libc): ...here.
3658 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3660 * sysdeps/i386/fpu/Makefile: New file.
3661 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3662 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3663 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3664 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3667 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3669 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3670 * nscd/nscd_getpw_r.c: Likewise.
3671 * nscd/nscd_gethst_r.c: Likewise.
3673 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3675 * nscd/pwdcache.c: Initialize .version element in result.
3676 * nscd/grpcache.c: Likewise.
3677 * nscd/pwdcache.c: Likewise.
3679 2003-04-27 Andreas Schwab <schwab@suse.de>
3681 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3684 2003-04-27 Andreas Schwab <schwab@suse.de>
3686 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3688 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3690 * nscd/connections.c (client_queued): New variable.
3691 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3692 threads. Keep track of the number of delays caused because of busy
3694 * nscd/nscd.h: Declare client_queued.
3695 * nscd/nscd_stat.c: Transmit and print client_queued information.
3697 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3699 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3700 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3702 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3704 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3705 tracking of freed memory in static TLS block.
3706 * elf/Makefile: Add rules to build and run tst-tls13.
3707 * elf/tst-tls13.c: New file.
3708 * elf/tst-tlsmod13.c: New file.
3709 * elf/tst-tlsmod13a.c: New file.
3711 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3713 * elf/dl-reloc.c: Pretty printing.
3715 2003-04-26 Roland McGrath <roland@redhat.com>
3717 * Makerules ($(common-objpfx)shlib.lds): New target.
3718 (common-generated): Add it.
3719 (build-shlib, build-module): Use that instead of generating every time.
3720 ($(common-objpfx)libc.so): Depend on it.
3721 (lib%.so rule): Likewise.
3722 (build-module-helper-objlist): Remove %.lds.
3723 (LDSEDCMD-c.so): Variable removed.
3724 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3725 Depend on $(common-objpfx)shlib.lds.
3726 * dlfcn/Makefile ($(test-modules)): Likewise.
3728 2003-04-26 Roland McGrath <roland@frob.com>
3730 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3732 2003-04-26 Andreas Schwab <schwab@suse.de>
3734 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3736 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3738 * nscd/cache.c (cache_search): Keep track of how many chain links
3739 we searched and update table statistics.
3740 (cache_add): Keep track of how many values are in the table.
3741 (prune_cache): Likewise. Keep track of locking success.
3742 Print messages about removed entries in separate pass.
3743 * nscd/connections.c (handle_request): Don't print debug message here.
3744 The caller will do it. Keep track of locking success.
3745 (nscd_run): Print debug message. Also print PID of the client process.
3746 * nscd/nscd.c (start_time): New variable.
3747 (main): Remember start time.
3748 * nscd/nscd.h: Declare start_time.
3749 (struct database): Add more members for new statistics.
3750 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3753 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3755 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3757 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3758 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3759 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3761 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3762 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3763 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3764 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3767 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3769 * nss/getent.c: Implement alternative host database lookup via
3772 * include/ifaddrs.h: New file.
3773 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3775 * resolv/netdb.h: ...here.
3776 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3777 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3778 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3781 2003-04-24 Roland McGrath <roland@redhat.com>
3783 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3785 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3787 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3788 (_dl_allocate_static_tls): ... this function. No longer static.
3789 (CHECK_STATIC_TLS): Adjust.
3790 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3791 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3792 Add SYM_MAP argument.
3793 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3794 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3795 TLS relocs here. #ifdef out relocs which never appear in
3796 .gnu.conflict section from dl-conflict.c processing.
3797 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3798 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3800 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3801 out relocs which never appear in .gnu.conflict section from
3802 dl-conflict.c processing.
3803 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3804 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3805 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3806 Use r_type in RESOLVE macro.
3808 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3810 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3811 NULL. Remove code made redundant by this assumption.
3812 (__yp_unbind): Add call to free. Adjust all callers.
3814 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3817 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3818 user buffer if more groups are found than fit into it.
3820 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3823 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3825 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3826 not rc == errno. Use extend_alloca.
3828 * elf/tst-tls12.c (main): Fix declaration.
3829 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3830 * elf/tst-tlsmod7.c (dummy): Likewise.
3831 * elf/tst-tlsmod8.c (dummy): Likewise.
3832 * elf/tst-tlsmod9.c (dummy): Likewise.
3834 2003-04-22 Roland McGrath <roland@redhat.com>
3836 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3837 (open_not_cancel): Make last argument non-optional.
3838 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3839 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3840 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3842 * include/tls.h: Protect against multiple inclusion.
3844 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3846 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3847 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3848 open_socket. Not static anymore.
3849 (nscd_gethst_r): Use __nscd_open_socket.
3850 * nscd/nscd_getgr_r.c (open_socket): Removed.
3851 (nscd_getgr_r): Use __nscd_open_socket.
3852 * nscd/nscd_getpw_r.c (open_socket): Removed.
3853 (nscd_getpw_r): Use __nscd_open_socket.
3855 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3856 * nscd/connections.c (handle_request): Add cast to avoid warning.
3858 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3860 * signal/sigfillset.c: Moved to...
3861 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3862 do not set the corresponding bit.
3864 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3866 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3867 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3868 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3869 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3870 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3872 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3874 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3875 first syscall parameter to const char*.
3877 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3879 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3881 * configure.in: Add AC_PROG_CXX.
3882 * config.make.in (CXX): Define.
3884 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3885 __len to size_t to avoid warnings.
3887 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3889 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3891 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3893 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3895 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3896 UNREGISTER_ATFORK if d == NULL.
3898 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3899 * dirent/dirent.h: Likewise.
3900 * dlfcn/dlfcn.h: Likewise.
3901 * grp/grp.h: Likewise.
3902 * iconv/iconv.h: Likewise.
3903 * io/fcntl.h: Likewise.
3904 * io/ftw.h: Likewise.
3905 * libio/stdio.h: Likewise.
3906 * misc/sys/mman.h: Likewise.
3907 * misc/sys/select.h: Likewise.
3908 * misc/sys/syslog.h: Likewise.
3909 * misc/sys/uio.h: Likewise.
3910 * posix/spawn.h: Likewise.
3911 * posix/unistd.h: Likewise.
3912 * posix/sys/wait.h: Likewise.
3913 * pwd/pwd.h: Likewise.
3914 * resolv/netdb.h: Likewise.
3915 * rt/aio.h: Likewise.
3916 * shadow/shadow.h: Likewise.
3917 * signal/signal.h: Likewise.
3918 * socket/sys/socket.h: Likewise.
3919 * stdlib/stdlib.h: Likewise.
3920 * streams/stropts.h: Likewise.
3921 * string/string.h: Likewise.
3922 * sysdeps/gnu/utmpx.h: Likewise.
3923 * sysvipc/sys/msg.h: Likewise.
3924 * termios/termios.h: Likewise.
3925 * time/time.h: Likewise.
3926 * wcsmbs/wchar.h: Likewise.
3927 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3929 * misc/daemon.c: Likewise.
3930 * sysdeps/generic/backtracesymsfd.c: Likewise.
3931 * sysdeps/generic/check_fds.c: Likewise.
3932 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3933 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3934 * sysdeps/generic/not-cancel.h: New file.
3935 * csu/Makefile (distribute): Add not-cancel.h.
3936 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3937 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3938 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3939 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3941 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3942 errno and unlink first.
3944 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3946 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3948 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3949 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3951 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3953 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3955 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3956 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3959 * signal/Makefile (tests): Add tst-sigsimple.
3960 * signal/tst-sigsimple.c: New file.
3962 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3964 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3966 (tests): Add tst-tls1[0-2].
3967 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3968 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3969 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3970 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3971 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3972 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3973 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3974 * elf/tst-tls10.c: New test.
3975 * elf/tst-tls11.c: New test.
3976 * elf/tst-tls12.c: New test.
3977 * elf/tst-tls10.h: New file.
3978 * elf/tst-tlsmod7.c: New file.
3979 * elf/tst-tlsmod8.c: New file.
3980 * elf/tst-tlsmod9.c: New file.
3981 * elf/tst-tlsmod10.c: New file.
3982 * elf/tst-tlsmod11.c: New file.
3983 * elf/tst-tlsmod12.c: New file.
3985 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3987 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3988 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3989 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3991 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3993 * posix/regex.h: Include <sys/types.h>.
3995 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3996 The signal number must be checked.
3997 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3998 The signal number must be checked [PR libc/5004].
4000 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
4001 don't do anything fancy.
4003 * sysdeps/generic/bits/libc-lock.h: Define
4004 __rtld_lock_define_initialized_recursive.
4006 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
4007 contacting nscd if NOT_USENSCD_NAME > 0.
4008 * nss/nsswitch.c (__nss_disable_nscd): New function.
4009 * nss/nsswitch.h: Declare it.
4010 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
4011 * nscd/nscd.c (main): Call __nss_disable_nscd.
4013 2003-04-16 Ulrich Drepper <drepper@redhat.com>
4015 * stdio-common/perror.c (perror): We don't need to set the offset
4016 to _IO_pos_bad, this is how streams are initialized.
4018 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
4019 (time_output): If necessary, allocate new buffer for .name string if
4020 padding is required.
4022 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
4023 before copying. This might leave holes in the list. Adjust
4024 pointers if necessary.
4025 (netlink_receive): Allocate only one block.
4026 (free_netlink_handle): Adjust appropriately.
4027 (getifaddrs): Lots of cleanups.
4029 * string/test-strncpy.c (do_one_test): Mark start and stop as
4031 * string/test-memchr.c: Likewise.
4032 * string/test-memcmp.c: Likewise.
4033 * string/test-memcpy.c: Likewise.
4034 * string/test-memmove.c: Likewise.
4035 * string/test-memset.c: Likewise.
4036 * string/test-strcat.c: Likewise.
4037 * string/test-strchr.c: Likewise.
4038 * string/test-strcmp.c: Likewise.
4039 * string/test-strcpy.c: Likewise.
4040 * string/test-strlen.c: Likewise.
4041 * string/test-strncmp.c: Likewise.
4042 * string/test-strpbrk.c: Likewise.
4043 * string/test-strrchr.c: Likewise.
4044 * string/test-strspn.c: Likewise.
4046 2003-04-15 Roland McGrath <roland@redhat.com>
4048 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
4050 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
4051 INTUSE(__register_frame_info_bases).
4053 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4055 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
4056 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
4057 AT_SYSINFO_EH_FRAME. Adjust string width.
4058 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
4059 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
4060 Add _dl_sysinfo_eh_frame field.
4061 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
4062 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
4064 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
4065 if _dl_sysinfo_eh_frame is non-NULL.
4067 * Makeconfig (gnulib): Add -lgcc_eh.
4069 * config.h.in: Define HAVE_FORCED_UNWIND.
4071 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4073 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
4074 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
4076 2003-04-15 Jakub Jelinek <jakub@redhat.com>
4078 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
4079 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
4080 against local symbol in conflict processing.
4082 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4084 * sysdeps/powerpc/bits/atomic.h
4085 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
4086 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
4088 (__arch_compare_and_exchange_val_32_acq): Define.
4089 (atomic_compare_and_exchange_val_acq): Define.
4091 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4093 * include/atomic.h: Pretty printing.
4095 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4097 * stdio-common/vfscanf.c: Add casts to avoid warnings.
4099 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4101 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
4102 * sysdeps/x86_64/bits/atomic.h: Likewise.
4104 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4106 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
4107 POPARGS_1 to emit labels for the mov instructions.
4109 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4111 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
4113 2003-04-14 Roland McGrath <roland@redhat.com>
4115 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
4118 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
4120 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4122 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
4123 position. Reported by jreiser@BitWagon.com.
4125 2003-04-13 Ulrich Drepper <drepper@redhat.com>
4127 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
4128 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
4129 * sysdeps/generic/unwind-dw2.c: Likewise.
4130 * sysdeps/generic/unwind-pe.h: Likewise.
4132 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
4134 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
4135 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
4136 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
4137 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
4138 (mcontext_t): Make it match the 32-bit mips kernel in o32.
4139 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
4140 the mips and mips64 headers.
4141 (struct user): Port to n32/n64.
4143 2003-04-12 Ulrich Drepper <drepper@redhat.com>
4145 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
4148 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
4149 __ASSUME_VSYSCALL is defined don't add restorer.
4150 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4151 __ASSUME_VSYSCALL for 2.5.53.
4153 2003-04-11 Ulrich Drepper <drepper@redhat.com>
4155 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
4156 Remove HAVE_CANCELBUF code. Replace with code using the new
4157 initializers for unwind-based cleanup handling.
4158 * sysdeps/generic/unwind.h: Update from latest gcc version.
4159 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
4160 places to allow unwind data generation.
4161 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
4162 * sysdeps/x86_64/bits/setjmp.h: Likewise.
4163 * sysdeps/sh/bits/setjmp.h: Likewise.
4164 * sysdeps/powerpc/bits/setjmp.h: Likewise.
4165 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
4166 * sysdeps/alpha/bits/setjmp.h: Likewise.
4168 2003-04-11 Roland McGrath <roland@redhat.com>
4170 * csu/tst-empty.c: New file.
4171 * csu/Makefile (tests, tests-static): Add it.
4173 2003-04-11 Jakub Jelinek <jakub@redhat.com>
4175 * string/test-strcmp.c (do_random_tests): Test whether return value
4176 has been promoted to wordsize if the ABI requires caller to do so.
4177 * string/test-strncmp.c (do_random_tests): Likewise.
4178 * string/test-memcmp.c (do_random_tests): Likewise.
4180 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
4183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4184 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
4185 is not defined, but the prctl constants are.
4187 * string/tester.c (test_strcmp): Fix a typo.
4189 2003-04-09 Ulrich Drepper <drepper@redhat.com>
4191 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
4192 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
4194 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4196 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
4198 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
4200 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4202 * sysdeps/mips/mips64/memset.S: Likewise.
4203 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4204 Use t0 instead of t4 as temporary.
4206 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4208 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4209 feof_unlocked instead of feof.
4210 (add_dir): Ignore trailing whitespace.
4212 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4214 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4215 sum of SIZE1 and SIZE2 arguments.
4217 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4219 * iconv/iconv_prog.c (process_block): Don't print message about
4220 invalid input if the -c option is used.
4221 (main): Correctly append IGNORE string for -c option.
4223 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4225 * sysdeps/sh/bits/atomic.h: Moved to ...
4226 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4227 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4229 (atomic_bit_set, atomic_bit_test_set): Likewise.
4230 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4232 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4234 2003-04-06 Roland McGrath <roland@redhat.com>
4236 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4237 restoration as done for setcontext yesterday.
4239 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4241 * elf/rtld.c: Revert 2003-03-14 change.
4242 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4243 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4245 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4247 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4249 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4250 Always initialize *signgamp before returning an error.
4252 2003-04-05 Roland McGrath <roland@redhat.com>
4254 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4255 below the stack pointer even if switching to the same context we are
4258 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4260 * catgets/gencat.c (read_input_file): Make sure that \n is not
4261 alone on the line before testing for continuation.
4263 * math/test-tgmath.c (compile_test): Initialize c.
4265 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4267 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4268 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4269 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4271 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4272 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4273 structure on n32 as well.
4274 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4275 data types on n32 and n64.
4277 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4279 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4282 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4283 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4284 instead of __register_atfork.
4286 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4288 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4289 instead of malloc __printf_arginfo_table and __printf_function_table.
4290 Reported by John Reiser <jreiser@BitWagon.com>.
4292 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4294 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4295 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4297 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4300 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4302 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4305 2003-04-03 Roland McGrath <roland@redhat.com>
4307 * configure.in: Fix up use of compilation flags to match the build:
4308 For .s files, $ASFLAGS;
4309 For .S files, $CPPFLAGS $ASFLAGS;
4310 For .c files, $CFLAGS $CPPFLAGS;
4311 when linking, add $LDFLAGS.
4312 * configure: Regenerated.
4314 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4316 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4317 for atomic_compare_and_exchange_bool_acq failure.
4319 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4321 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4322 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4323 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4324 Remove declaration of pthread_atfork.
4326 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4328 * locale/iso-639.def: Add many more languages from the current ISO 639.
4330 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4331 * sysdeps/generic/semtimedop.c: New file.
4332 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4333 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4334 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4335 * sysvipc/Makefile (routines): Add semtimedop.
4336 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4337 * sysvipc/sys/sem.h: Declare semtimedop.
4339 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4341 * configure.in: Check for __register_frame_info in both
4343 * configure: Regenerated.
4345 2003-04-01 Roland McGrath <roland@redhat.com>
4347 * scripts/abilist.awk: Allow dots in soname suffix.
4349 * scripts/abilist.awk (emit): Fix bailout condition.
4351 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4353 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4356 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4357 register as input to asm.
4359 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4361 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4363 2003-04-01 Andreas Jaeger <aj@suse.de>
4365 * configure.in: Output as/ld as name if version is too old.
4367 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4369 * configure.in: Don't require an installed C library in the test
4370 for ".set" assembler support.
4372 2003-03-31 Roland McGrath <roland@redhat.com>
4374 * signal/tst-sigset.c: New file.
4375 * signal/Makefile (tests): Add it.
4377 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4379 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4380 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4381 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4382 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4383 (__SIGRTMAX): Adjust accordingly.
4384 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4385 second compatibility symbol set.
4386 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4388 2003-03-31 Andreas Schwab <schwab@suse.de>
4390 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4392 (atomic_decrement_and_test): Fix test.
4394 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4396 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4397 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4398 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4399 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4400 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4401 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4403 2003-03-30 Roland McGrath <roland@redhat.com>
4405 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4407 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4409 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4411 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4412 and remove a useless s/// command.
4414 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4416 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4417 directive into empty .prologue region to ensure that call-chain
4418 is terminated even for the first instruction.
4420 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4421 to terminate call-chain right from the get-go.
4423 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4424 stop bit between compare & branch.
4426 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4428 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4429 point correctly [PR libc/4993].
4431 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4432 netlink_open calls if netlink is known to not be available.
4434 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4436 * configure.in: Add mips64* support.
4437 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4438 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4439 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4440 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4441 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4442 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4443 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4444 * sysdeps/mips/Implies: Moved wordsize-32 to...
4445 * sysdeps/mips/mips32/Implies: New file.
4446 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4448 (ret, PSEUDO_END): Moved past END.
4449 (PSEUDO): Moved to...
4450 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4451 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4452 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4453 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4454 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4455 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4457 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4460 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4462 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4463 * inet/test-ifaddrs.c: Allow AF_PACKET.
4464 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4465 __ASSUME_NETLINK_SUPPORT.
4467 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4469 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4471 2003-03-26 H.J. Lu <hjl@gnu.org>
4473 * elf/vismod.h (getvarlocal1): Return const char **.
4474 (getvarinmod1): Likewise.
4475 (getvaritcpt1): Likewise.
4476 (getvarlocal2): Likewise.
4477 (getvarinmod2): Likewise.
4478 (getvaritcpt2): Likewise.
4479 (getvaritcpt3): Likewise.
4480 * elf/vismain.c (do_test): Adjusted.
4481 * elf/vismod1.c (getvarlocal1): Return address.
4482 (getvarinmod1): Likewise.
4483 (getvaritcpt1): Likewise.
4484 * elf/vismod2.c (getvarlocal2): Likewise.
4485 (getvarinmod2): Likewise.
4486 (getvaritcpt2): Likewise.
4487 * elf/vismod3.c (getvaritcpt3): Likewise.
4489 2003-03-28 Roland McGrath <roland@redhat.com>
4491 * elf/vismain.c (do_test): Print both addresses when they don't match.
4493 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4494 libname_regexp when parsing names, then produce output only
4495 for those matching the given regexps. In combine mode, save all
4496 stanzas for a final sorting by stanza header at the end.
4497 Emit a blank line between stanzas.
4499 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4500 emit a single output stream with lib name in stanza header lines.
4502 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4504 2003-03-27 Roland McGrath <roland@redhat.com>
4506 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4507 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4509 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4511 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4512 Return old value. Make asm output reg constraint earlyclobber.
4514 (__arch_compare_and_exchange_8_acq): ... this.
4515 (__arch_compare_and_exchange_val_16_acq):
4516 Return old value. Make asm output reg constraint earlyclobber.
4518 (__arch_compare_and_exchange_16_acq): ... this.
4519 (__arch_compare_and_exchange_val_32_acq):
4520 Return old value. Make asm output reg constraint earlyclobber.
4522 (__arch_compare_and_exchange_32_acq): ... this.
4523 (__arch_compare_and_exchange_val_64_acq):
4525 (__arch_compare_and_exchange_64_acq): ... this.
4526 (atomic_exchange_and_add): Use local variables and
4527 __arch_compare_and_exchange_val_64_acq.
4528 (atomic_add): Likewise.
4529 (atomic_add_negative, atomic_add_zero): Use local variables.
4531 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4533 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4535 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4537 * Makefile: Remove libmd5crypt goal.
4539 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4541 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4542 special handling of relocations against local symbols.
4544 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4546 * sysdeps/powerpc/bits/atomic.h
4547 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4548 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4549 Define PPC64 specific version.
4550 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4551 Change (mem) constraint to "b".
4552 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4553 Replace addi with add. Change (value) contraint to "r".
4554 Change (mem) constraint to "b".
4555 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4556 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4557 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4558 (__arch_atomic_decrement_if_positive_32): New macro.
4559 (atomic_decrement_if_positive): Use __arch* macros.
4561 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4563 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4565 2003-03-27 Roland McGrath <roland@redhat.com>
4567 * scripts/rpm2dynsym.sh: New file.
4568 * Makefile (distribute): Add it.
4570 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4572 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4573 ar.unat before returning. Add missing .mem.offset directives
4574 to ensure file gets assembled without warnings.
4575 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4577 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4579 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4580 Return -1 instead of 0 if clock_getres failed.
4582 2003-03-27 Roland McGrath <roland@redhat.com>
4584 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4585 header lines and write out foo.symlist files for each foo.so.NN listed.
4587 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4588 This symbol is exported, and we don't want to hide it.
4589 Add libc_hidden_proto instead.
4590 (_IO_file_jumps): Add libc_hidden_proto.
4591 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4593 * libio/fileops.c (_IO_file_jumps): Likewise.
4594 * libio/stdfiles.c: Don't use INTUSE on them.
4595 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4596 * libio/iofopen.c (__fopen_internal): Likewise.
4597 * libio/freopen.c (freopen): Likewise.
4598 * libio/freopen64.c (freopen64): Likewise.
4599 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4601 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4602 Ignore exit status from diff.
4603 * configure.in (enable_check_abi): Document possible value "warn".
4604 Change default to no for now.
4605 * configure: Regenerated.
4607 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4608 macro calls and a #include <stub-tag.h> at the end.
4609 * Makerules ($(objpfx)stubs): Tweak sed commands.
4611 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4612 caller column for *xattr syscalls, since they are in sysdeps/generic.
4614 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4615 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4617 2003-03-26 Roland McGrath <roland@redhat.com>
4619 * Makerules (check-abi-config): Use /thread instead of /tls when
4620 use-thread and not just use-tls is set.
4622 * Makerules (update-abi): Put quotes around $(update-abi-config).
4624 * elf/Makefile (check-abi): Depend on check-abi-ld.
4625 (update-abi): Depend on update-abi-ld.
4627 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4629 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4630 do not check for errors (unless testing for 32bit variant).
4631 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4633 2003-03-27 Philip Blundell <philb@gnu.org>
4635 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4636 unconditional mov. Remove nop.
4638 * sysdeps/unix/sysv/linux/kernel-features.h
4639 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4640 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4641 when __ASSUME_VFORK_SYSCALL is defined.
4642 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4643 __ASSUME_MMAP2_SYSCALL.
4644 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4645 __ASSUME_REALTIME_SIGNALS.
4647 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4649 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4650 only if DL_NO_COPY_RELOCS is not defined.
4651 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4653 2003-03-26 Roland McGrath <roland@redhat.com>
4655 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4656 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4657 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4658 (sysdep_routines): Add stub-syscalls.
4659 ($(objpfx)stub-syscalls.c): New target.
4660 (generated): Add stub-syscalls.c.
4662 * tls.make.c: Also define use-tls according to USE_TLS macro.
4664 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4666 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4667 no-op padding element.
4668 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4669 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4670 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4671 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4673 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4675 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4676 condition check for the return value of getgroups32.
4678 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4680 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4682 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4683 PSEUDO_END_NOERRNO): Define.
4684 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4685 Define to PSEUDO_END.
4687 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4689 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4691 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4693 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4694 * iconvdata/bug-iconv4.c: New file.
4695 * iconvdata/Makefile (tests): Add bug-iconv4.
4697 2003-03-25 H.J. Lu <hjl@gnu.org>
4699 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4701 (_dl_lookup_versioned_symbol): Likewise.
4703 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4705 * csu/tst-atomic.c (do_test): Add some new
4706 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4707 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4708 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4709 Prefix local variable so that it doesn't clash with the one
4710 in atomic_exchange_and_add.
4711 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4713 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4714 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4715 value into register.
4716 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4717 Cast newval to long.
4718 * sysdeps/x86_64/bits/atomic.h
4719 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4721 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4722 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4723 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4724 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4726 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4728 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4729 bit from backtrace addresses.
4731 2003-03-21 Andreas Schwab <schwab@suse.de>
4733 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4736 2003-03-25 Roland McGrath <roland@redhat.com>
4738 * config.make.in (enable-check-abi): New variable from configure.
4739 * configure.in (enable_check_abi): New substituted variable,
4740 controlled by --{enable,disable}-check-abi (default yes).
4741 * configure: Regenerated.
4742 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4743 on check-abi dependency.
4745 2003-03-26 Andreas Schwab <schwab@suse.de>
4747 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4748 * include/atomic.h: Likewise.
4750 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4752 2003-03-25 Roland McGrath <roland@redhat.com>
4754 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4755 (__arch_atomic_exchange_64): New macro.
4756 (atomic_exchange): Use them.
4757 (__arch_atomic_exchange_and_add_32): New macro.
4758 (__arch_atomic_exchange_and_add_64): New macro.
4759 (atomic_exchange_and_add): Use them.
4760 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4762 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4764 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4766 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4768 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4769 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4770 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4771 to decide whether to add padding.
4772 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4773 to decide whether to add padding.
4774 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4775 old_kernel_sigaction): Likewise.
4777 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4779 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4780 atomic_add_zero were supposed to do.
4781 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4784 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4785 This matches the new timer implementation.
4786 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4788 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4790 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4791 timer info for what the kernel provides these days.
4792 (struct sigevent): Add _tid field.
4793 Define SIGEV_THREAD_ID.
4794 Remove struct __pthread_attr_s forward declaration.
4795 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4796 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4797 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4798 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4800 * Versions.def (librt): Add GLIBC_2.3.3.
4802 * abilist/libpthread.abilist: Update for nptl.
4804 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4806 * inet/netinet/in.h: Add IPPROTO_SCTP.
4808 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4810 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4812 2003-03-24 Philip Blundell <philb@gnu.org>
4814 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4815 Remove a1 from clobber list.
4817 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4819 * timezone/antarctica: Update from tzdata2003a.
4820 * timezone/asia: Likewise.
4821 * timezone/australasia: Likewise.
4822 * timezone/europe: Likewise.
4823 * timezone/iso3166.tab: Likewise.
4824 * timezone/northamerica: Likewise.
4825 * timezone/southamerica: Likewise.
4826 * timezone/zone.tab: Likewise.
4828 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4830 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4832 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4834 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4835 unwanted expansion by definining to ret. Patch by Ian Wienand.
4837 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4838 the parameter description to denote no error checking. Generate
4839 appropriate pseudo asm code.
4840 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4841 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4842 getpgrp, and getppid with 'E'.
4843 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4844 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4845 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4846 * sysdeps/unix/sysdep.h: Likewise.
4847 * sysdeps/unix/alpha/sysdep.h: Likewise.
4848 * sysdeps/unix/sparc/sysdep.h: Likewise.
4849 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4850 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4851 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4852 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4853 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4854 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4855 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4856 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4857 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4858 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4859 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4861 2003-03-23 Roland McGrath <roland@redhat.com>
4863 * Makeconfig (+includes): Don't use $(last-includes).
4865 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4867 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4868 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4870 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4872 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4873 * sysdeps/arm/libm-test-ulps: Update.
4874 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4875 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4876 * sysdeps/mips/fpu/libm-test-ulps: Update.
4877 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4878 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4879 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4880 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4881 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4882 * sysdeps/s390/fpu/libm-test-ulps: Update.
4883 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4885 2003-03-22 Roland McGrath <roland@redhat.com>
4887 * include/atomic.h: Put parens around all macro arguments.
4888 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4889 (atomic_compare_and_exchange_val_acq): Use it.
4890 (atomic_compare_and_exchange_bool_acq): Likewise.
4891 (atomic_increment_and_test): Invert sense of test.
4892 (atomic_decrement_and_test): Likewise.
4893 * csu/tst-atomic.c: Update those tests to match.
4895 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4897 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4898 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4899 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4900 __oldval variable in the macro, since it might be macro argument.
4901 (atomic_decrement_if_positive): Initialize __memp, remove setting
4902 of non-existent variable.
4903 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4904 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4905 using atomic_compare_and_exchange_val_acq.
4906 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4907 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4909 (__arch_compare_and_exchange_bool_8_acq): ... this.
4910 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4911 (__arch_compare_and_exchange_bool_16_acq): ... this.
4912 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4914 (__arch_compare_and_exchange_bool_32_acq): ... this.
4915 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4917 (__arch_compare_and_exchange_bool_64_acq): ... this.
4918 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4919 variables types instead of assuming int.
4920 Change prefix of local variables to __arch.
4921 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4923 (atomic_compare_and_exchange_val_acq,
4924 atomic_compare_and_exchange_bool_acq): Define.
4926 * csu/tst-atomic.c: New test.
4927 * csu/tst-atomic-long.c: New test.
4928 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4930 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4932 * sysdeps/s390/Versions: Add trailing newline.
4934 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4935 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4937 2003-03-22 Andreas Schwab <schwab@suse.de>
4939 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4941 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4942 * sysdeps/m68k/m68020/atomicity.h: Removed.
4944 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4946 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4947 data structures and macros. Protect from multiple inclusion.
4949 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4952 2003-03-21 Andreas Jaeger <aj@suse.de>
4954 * sysdeps/i386/fpu/libm-test-ulps: Update.
4956 * math/libm-test.inc (tgamma_test): Recompute some constants with
4957 36 digits precision.
4958 (lgamma_test): Likewise.
4959 (ccos_test): Likewise.
4960 (ccosh_test): Likewise.
4961 (clog10_test): Likewise.
4962 (csin_test): Likewise.
4963 (csinh_test): Likewise.
4964 (ctan_test): Likewise.
4965 (ctanh_test): Likewise.
4967 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4969 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4971 2003-03-21 Roland McGrath <roland@redhat.com>
4973 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4974 constraint to permit non-constant BIT argument.
4975 (atomic_bit_test_set): Likewise.
4976 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4977 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4978 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4979 or "r" constraint otherwise.
4981 * configure.in: Move AC_PROG_CC and other program-finding before all
4983 * configure: Regenerated.
4985 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4987 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4988 unaligned copying of 8-15 bytes. From Chris Demetriou
4989 <cgd@broadcom.com>. Fix label names.
4990 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4991 change as to memcpy.S.
4992 * sysdeps/mips/memcpy.S: Formatting changes.
4993 * sysdeps/mips/memset.S: Likewise.
4995 2003-03-21 Roland McGrath <roland@redhat.com>
4997 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4999 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
5001 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
5002 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
5004 2003-03-21 Roland McGrath <roland@redhat.com>
5006 * sysdeps/i386/i486/bits/atomic.h
5007 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
5008 version of the macro to avoid compile-time warnings.
5009 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
5010 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
5011 (atomic_increment, atomic_decrement): Likewise.
5013 2003-03-21 Ulrich Drepper <drepper@redhat.com>
5015 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
5016 * sysdeps/i386/i486/bits/atomic.h: Likewise.
5018 2003-03-21 Roland McGrath <roland@redhat.com>
5020 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
5022 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5024 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
5025 atomic_compare_and_exchange_val_rel,
5026 atomic_compare_and_exchange_bool_acq, and
5027 atomic_compare_and_exchange_bool_rel instead of
5028 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
5029 * sysdeps/i386/i486/bits/atomic.h: Define
5030 __arch_compare_and_exchange_val_*_acq instead of
5031 __arch_compare_and_exchange_*_acq.
5032 * sysdeps/x86_64/bits/atomic.h: Likewise.
5033 * sysdeps/ia64/bits/atomic.h: Define
5034 __arch_compare_and_exchange_bool_*_acq instead of
5035 __arch_compare_and_exchange_*_acq.
5036 * sysdeps/powerpc/bits/atomic.h: Likewise.
5037 * sysdeps/s390/bits/atomic.h: Likewise.
5038 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
5039 * malloc/set-freeres.c: Likewise.
5040 * nscd/cache.c: Likewise.
5041 * stdlib/cxa_finalize.c: Likewise.
5042 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5044 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5046 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
5047 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
5048 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
5050 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
5051 into high and low halves on n64.
5052 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5053 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5054 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5056 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5058 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
5059 correct atomic_compare_and_exchange_acq semantics.
5061 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5063 * sysdeps/mips/ieee754.h: Remove excess #endif.
5065 2003-03-20 Roland McGrath <roland@redhat.com>
5067 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
5068 variable. Remove superfluous memory clobber.
5070 * include/atomic.h: Syntax braino fix.
5072 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
5073 in decimal. Don't bail if niced at start. Just check that nice call
5074 bumps the total at all.
5076 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5078 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
5079 including pc, gp, sp and fp, as long long.
5080 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
5081 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
5082 Add gp argument, and set gp in the jmpbuf to it.
5083 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
5085 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5087 * include/atomic.h: Define atomic_exchange and
5088 atomic_decrement_if_positive if not already defined. Add some
5090 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
5091 * sysdeps/x86_64/bits/atomic.h: Likewise.
5092 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
5093 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
5094 atomic_exchange, atomic_exchange_and_add, and
5095 atomic_decrement_if_positive
5097 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5099 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
5100 with a single instruction.
5102 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
5104 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
5106 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
5107 Word before comparing with gotsym. Take reloc_addr argument as
5108 void*. Remove the code added for the compiler to drop any
5109 alignment assumptions.
5111 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5113 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
5114 * include/atomic.h: New file.
5115 * sysdeps/i386/i486/bits/atomic.h: New file.
5116 * sysdeps/x86_64/bits/atomic.h: New file.
5117 * sysdeps/s390/bits/atomic.h: New file.
5118 * sysdeps/sh/bits/atomic.h: New file.
5119 * sysdeps/ia64/bits/atomic.h: New file.
5120 * sysdeps/powerpc/bits/atomic.h: New file.
5121 * sysdeps/generic/bits/atomic.h: New file.
5122 * sysdeps/i386/i486/atomicity.h: Removed.
5123 * sysdeps/x86_64/atomicity.h: Removed.
5124 * sysdeps/s390/s390-32/atomicity.h: Removed.
5125 * sysdeps/s390/s390-64/atomicity.h: Removed.
5126 * sysdeps/ia64/atomicity.h: Removed.
5127 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
5128 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
5129 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
5130 use of macros from atomicity.h to new names and semantics.
5131 * gmon_mcount.c: Likewise.
5132 * malloc/set-freeres.c: Likewise.
5133 * nscd/cache.c: Likewise.
5134 * stdlib/cxa_finalize.c: Likewise.
5135 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5137 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5139 * sysdeps/mips/ieee754.h: New file, suitable to replace both
5140 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
5141 mips-specific for now.
5143 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5145 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
5146 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
5147 * stdlib/tst-strtod.c: Add test for the bug.
5149 * posix/tst-nice.c (do_test): Remove invalid of return value.
5150 Don't run test if initial level != 0.
5152 2003-03-19 Amos Waterland <apw@us.ibm.com>
5154 * posix/tst-nice.c: New file.
5155 * posix/Makefile (tests): Add tst-nice.
5157 2003-03-18 Roland McGrath <roland@redhat.com>
5159 * abilist: New directory of libfoo.abilist files maintained using
5160 scripts/merge-abilist.awk and "make update-abi" rules.
5161 * Makefile (distribute): Add abilist/*.abilist.
5162 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
5163 Depend on check-abi.
5165 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
5166 * configure: Regenerated.
5168 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
5170 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5172 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
5175 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
5177 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
5179 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5181 * Versions.def: Add GLIBC_2.3.3 for libpthread.
5183 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5185 * sysdeps/generic/libc-start.c [!SHARED &&
5186 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
5188 2003-03-17 Roland McGrath <roland@redhat.com>
5190 * include/ctype.h: Revert last change.
5192 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5194 * argp/tst-argp1.c: Use test-skeleton.c.
5195 * locale/tst-C-locale.c: Likewise.
5197 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
5199 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5200 * sysdeps/mips/mips64/n64/Implies: New file.
5201 * sysdeps/mips/mips64/n64/Makefile: New file.
5202 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5203 * sysdeps/mips/mips64/n32/Implies: New file.
5204 * sysdeps/mips/mips64/n32/Makefile: New file.
5205 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5206 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5207 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5208 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5209 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5210 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5211 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5212 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5213 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5214 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5215 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5216 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5217 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5218 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5220 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5221 lib64 for mips64/n64 and lib32 for mips64/n32.
5222 (ldd_rewrite_script): Needed for all mips64 configurations.
5223 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5224 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5225 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5227 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5230 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5231 asm/unistd.h into asm-unistd.h.
5232 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5233 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5235 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5236 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5239 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5240 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5241 long type for registers on n32.
5243 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5245 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5246 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5247 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5248 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5249 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5250 * sysdeps/unix/mips/brk.S: Likewise.
5251 * sysdeps/unix/mips/sysdep.S: Likewise.
5252 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5253 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5254 * sysdeps/mips/sys/ucontext.h: Likewise.
5255 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5256 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5257 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5258 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5259 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5260 * sysdeps/mips/mips64/setjmp.S: Likewise.
5261 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5262 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5265 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5267 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5268 not at function level.
5269 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5271 2003-03-15 Roland McGrath <roland@redhat.com>
5273 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5274 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5275 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5276 * nis/nis_table.c (__create_ib_request): Likewise.
5278 * posix/fnmatch_loop.c: Add casts for signedness.
5279 * nss/nss_files/files-hosts.c: Likewise.
5280 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5281 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5282 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5284 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5285 get errors into the log file.
5286 (libc_cv_broken_visibility_attribute): Likewise.
5287 (libc_cv_broken_alias_attribute): Likewise.
5288 (libc_cv_asm_weak_directive): Likewise.
5289 (libc_cv_need_minus_P): Likewise.
5290 (libc_cv_dot_text): Likewise.
5291 (libc_cv_asm_global_directive): Likewise.
5292 (libc_cv_asm_type_prefix): Likewise.
5293 * configure: Regenerated.
5295 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5296 * nscd/nscd.h: Update decl.
5298 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5299 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5300 * elf/dl-close.c (_dl_close): Likewise.
5301 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5302 * io/fts.c (fts_build): Likewise.
5303 * elf/cache.c (add_to_cache): Likewise.
5304 * locale/programs/locarchive.c (show_archive_content): Likewise.
5306 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5308 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5310 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5312 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5314 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5315 code for most parts.
5317 2003-03-15 Roland McGrath <roland@redhat.com>
5319 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5320 * sysdeps/unix/sysv/linux/system.c: ... here.
5321 (FORK): Don't #define if already #define'd.
5322 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5323 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5324 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5326 * dlfcn/tst-dlinfo.c: New file.
5327 * dlfcn/Makefile (tests): Add tst-dlinfo.
5328 ($(objpfx)tst-dlinfo): New target.
5330 * dlfcn/dlinfo.c: New file.
5331 * dlfcn/Makefile (libdl-routines): Add it.
5332 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5333 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5334 [__USE_GNU] (RTLD_DI_*): New enum constants.
5335 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5336 * elf/dl-load.c (cache_rpath): New inline function.
5337 (_dl_map_object): Use it.
5338 (_dl_rtld_di_serinfo): New function.
5339 * sysdeps/generic/ldsodefs.h: Declare it.
5340 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5342 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5343 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5344 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5345 (__libc_start_main): Just call the generic one for most of the work.
5347 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5348 static function by that name instead of BP_SYM (__libc_start_main).
5349 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5350 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5351 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5353 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5354 Use this macro for extra AT_* cases.
5355 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5356 New macro, guts from ...
5357 (__aux_init_cache): ... here, function removed.
5358 (DL_PLATFORM_INIT): Don't define this.
5360 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5361 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5363 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5365 2003-03-14 Roland McGrath <roland@redhat.com>
5367 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5369 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5371 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5373 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5374 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5376 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5378 * sysdeps/mips/fpu/bits/mathdef.h: New.
5379 (__NO_LONG_DOUBLE_MATH): Define for o32.
5381 * sysdeps/mips/sys/asm.h: Formatting changes.
5382 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5383 (CPADD): Define for all of them.
5384 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5385 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5386 NARGSAVE): Define per ABI spec.
5387 (END): Don't redefine.
5388 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5389 LONG_SRAV): Remove duplicate definitions.
5390 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5391 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5392 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5393 (PTR_LA): Define for all 3 ABIs.
5395 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5396 (elf_machine_matches_host): Prevent linking of o32 and n32
5398 (elf_machine_dynamic): Document assumption on $gp.
5399 (STRINGXP, STRINGXV, STRINGV_): New macros.
5400 (elf_machine_load_address): Use them to stringize PTR_LA and
5402 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5403 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5404 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5405 (__dl_runtime_resolve): Cast the symtab initializer to the
5407 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5408 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5409 Handle 64-bit R_MIPS_REL composite relocation and accept
5410 R_MIPS_64 relocations to shift addend size to 64 bits.
5411 Document assumption regarding local GOT entries. Document
5412 backward-compatibility departing from the ABI behavior in
5413 applying relocations that reference section symbols, no longer
5414 used. Support relocations to mis-aligned offsets.
5415 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5417 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5419 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5420 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5421 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5422 restore_rt functions. Use them.
5424 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5425 .set mips2 on new abis.
5427 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5429 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5430 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5431 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5432 * sysdeps/posix/pathconf.c: Likewise.
5433 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5434 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5435 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5437 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5440 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5442 * include/gmp.h: Include/gmp-mparam.h.
5443 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5446 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5447 ELF_MACHINE_NO_RELA is set.
5448 * elf/rtld.c (dl_main): No prelink support for REL-only.
5450 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5451 FLAG_MIPS64_LIBN64): Define.
5452 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5454 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5455 * sysdeps/mips/memset.S: Likewise.
5456 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5457 depending on the ABI.
5459 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5460 Don't .set mips2 on new abi.
5461 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5463 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5465 2003-03-13 Roland McGrath <roland@redhat.com>
5467 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5468 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5470 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5472 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5474 * stdlib/fpioconst.c: Likewise.
5475 * stdlib/strtod.c: Likewise.
5477 * sysdeps/mips/add_n.S: Use L macro for local labels.
5478 * sysdeps/mips/addmul_1.S: Likewise.
5479 * sysdeps/mips/lshift.S: Likewise.
5480 * sysdeps/mips/memcpy.S: Likewise.
5481 * sysdeps/mips/memset.S: Likewise.
5482 * sysdeps/mips/mul_1.S: Likewise.
5483 * sysdeps/mips/rshift.S: Likewise.
5484 * sysdeps/mips/sub_n.S: Likewise.
5485 * sysdeps/mips/submul_1.S: Likewise.
5486 * sysdeps/mips/mips64/add_n.S: Likewise.
5487 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5488 * sysdeps/mips/mips64/lshift.S: Likewise.
5489 * sysdeps/mips/mips64/mul_1.S: Likewise.
5490 * sysdeps/mips/mips64/rshift.S: Likewise.
5491 * sysdeps/mips/mips64/sub_n.S: Likewise.
5492 * sysdeps/mips/mips64/submul_1.S: Likewise.
5493 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5494 conventions. Define END as in sys/asm.h.
5495 * sysdeps/unix/mips/sysdep.S: Likewise.
5496 * sysdeps/unix/mips/wait.S: Likewise.
5497 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5499 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5500 Cast shifted values that may be too narrow to mp_limb_t.
5501 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5503 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5505 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5506 (__mpn_extract_long_double): Likewise.
5507 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5508 (__mpn_construct_long_double): Likewise.
5509 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5510 (__mpn_extract_long_double): Likewise.
5511 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5512 (__mpn_construct_long_double): Likewise.
5514 2003-03-13 Roland McGrath <roland@redhat.com>
5516 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5517 entries in the map file match too.
5519 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5521 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5522 label .Lthread_start since current binutils don't allow branches
5523 to globally visible symbols.
5525 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5527 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5528 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5529 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5530 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5531 clobbered by the syscall.
5532 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5533 ASM_ARGS_6): Change constraints from r to index of corresponding
5535 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5536 ptid and ctid to match kernel.
5537 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5539 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5541 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5542 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5543 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5545 2003-03-11 Roland McGrath <roland@redhat.com>
5547 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5548 Check SYM_MAP rather than SYM as definedness check.
5549 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5550 Don't handle R_PPC64_REL24 reloc.
5551 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5553 * sysdeps/powerpc/powerpc64/dl-machine.h
5554 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5555 block, so we cover all the TPREL16* flavors without 6 ||s.
5556 [USE_TLS] (elf_machine_tprel): New function.
5557 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5558 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5559 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5561 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5563 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5564 instead of jalr to invoke subroutine so restoring the $gp register
5567 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5569 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5570 to __NR_pread if not defined.
5571 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5573 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5575 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5576 * sysdeps/unix/sysv/linux/kernel-features.h
5577 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5580 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5582 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5583 allocate space even for the trailing '/'.
5584 Reported by John Reiser <jreiser@BitWagon.com>.
5586 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5587 ASM_CLOBBERS_6): Define.
5588 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5589 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5590 to match IA-32 order.
5591 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5593 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5596 Copy extra params for NPTL to registers used in clone syscall.
5598 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5600 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5601 call names for pread and pwrite.
5603 2003-03-10 Roland McGrath <roland@redhat.com>
5605 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5606 * dlfcn/dladdr1.c: New file.
5607 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5608 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5609 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5610 a const ElfNN_Sym ** to fill in.
5611 * include/dlfcn.h: Update decl. Include <link.h>.
5612 * dlfcn/dladdr.c (dladdr): Update caller.
5613 * malloc/mtrace.c (tr_where): Likewise.
5614 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5615 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5616 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5617 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5619 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5621 * sysdeps/unix/Makefile (compile-syscall): New variable.
5622 Pass -g0 to compiler for assembling syscall stubs from stdin.
5624 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5625 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5626 Define these to do nothing.
5628 * configure.in: New check for -g on .S files.
5629 * configure: Regenerated.
5630 * config.make.in (have-cpp-asm-debuginfo): New variable.
5631 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5632 * Makeconfig (ASFLAGS): New variable, if undefined and
5633 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5634 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5636 2003-03-09 Roland McGrath <roland@redhat.com>
5638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5639 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5641 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5643 * po/fi.po: Update from translation team.
5644 * po/ca.po: Likewise.
5645 * po/da.po: Likewise.
5647 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5649 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5651 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5653 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5655 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5657 2003-03-07 Roland McGrath <roland@redhat.com>
5659 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5660 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5662 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5664 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5665 stubs, we have INLINE_SYSCALL.
5666 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5669 2003-03-06 Roland McGrath <roland@redhat.com>
5671 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5672 permanent extent and add a comment about testing its implicit teardown.
5674 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5676 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5678 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5680 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5681 reversed __builtin_expect expectation.
5683 2003-03-05 Roland McGrath <roland@redhat.com>
5685 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5686 * libio/swscanf.c: Likewise.
5687 * libio/swprintf.c: Likewise.
5689 2003-03-04 Roland McGrath <roland@redhat.com>
5691 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5692 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5693 R_PPC64_JMP_SLOT as well as TLS cases.
5694 (BIT_INSERT): Move parenthesis where it ought to have been.
5695 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5697 * posix/confstr.c (confstr): Correct STRING_LEN values for
5698 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5699 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5701 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5703 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5705 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5707 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5710 * po/sv.po: Update from translation team.
5712 2003-03-04 Andreas Jaeger <aj@suse.de>
5713 Ulrich Drepper <drepper@redhat.com>
5715 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5717 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5719 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5721 * po/tr.po: Update from translation team.
5723 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5724 are holes between the segments. Only call mprotect to set
5725 proection to PROT_NONE if there are some.
5727 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5730 * include/sched.h (__clone2): Use ... instead of adding all the
5733 2003-03-03 Roland McGrath <roland@redhat.com>
5735 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5737 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5738 PI_STATIC_AND_HIDDEN.
5740 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5742 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5744 * include/sched.h: Update clone2 prototype.
5746 2003-03-03 Andreas Jaeger <aj@suse.de>
5748 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5749 (llrint): Use it to correct return type.
5752 (llround): Likewise.
5754 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5756 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5759 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5760 if ccs parameter isn't valid. Reported by Andreas Schwab.
5762 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5764 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5765 for system call numbers > 255.
5766 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5767 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5768 INTERNAL_SYSCALL): Likewise.
5769 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5770 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5771 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5772 INTERNAL_SYSCALL): Likewise.
5774 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5776 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5777 array if it is the initial dtv.
5779 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5781 * po/es.po: Update from translation team.
5782 * po/fr.po: Likewise.
5783 * po/gl.po: Likewise.
5784 * po/sk.po: Likewise.
5785 * po/sv.po: Likewise.
5787 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5788 * misc/sys/mman.h: Add prototype for remap_file_pages.
5789 * sysdeps/generic/remap_file_pages.c: New file.
5790 * misc/Makefile (routines): Add remap_file_pages.
5791 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5793 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5795 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5796 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5797 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5798 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5799 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5800 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5801 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5802 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5804 2003-03-03 Roland McGrath <roland@redhat.com>
5806 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5807 * sysdeps/ia64/dl-machine.h: Likewise.
5808 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5810 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5812 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5813 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5814 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5815 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5816 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5817 * Versions.def (libc): Add GLIBC_2.3.3 set.
5819 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5820 * sysdeps/ia64/dl-machine.h: Update decl.
5822 2003-03-03 Andreas Jaeger <aj@suse.de>
5824 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5826 2003-03-02 Roland McGrath <roland@redhat.com>
5828 * scripts/abilist.awk: Reject data items with apparent 0 size.
5830 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5831 after foo.* as if it were a duplicate.
5833 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5835 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5837 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5839 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5840 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5841 if not already defined. Use SYSDEP_GETRES to allow other files to
5842 provide alternative implementations.
5843 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5844 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5845 if not already defined. Use SYSDEP_GETTIME to allow other files to
5846 provide alternative implementations.
5847 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5848 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5849 if not already defined. Use SYSDEP_GETTIME to allow other files to
5850 provide alternative implementations.
5851 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5852 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5853 other files to provide alternative implementations. Rearrange
5854 tests for invalid parameters.
5855 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5856 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5857 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5858 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5859 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5860 _POSIX_MONOTONIC_CLOCK.
5862 2003-03-02 Roland McGrath <roland@redhat.com>
5864 * scripts/merge-abilist.awk: More checks for bogus input.
5865 Uniquify duplicate config names.
5867 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5869 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5870 from dl_reloc_overflow, make global.
5871 (__process_machine_rela): Update callers.
5872 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5873 Add attribute_hidden to __process_machine_rela decl.
5874 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5876 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5879 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5880 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5881 (elf_machine_rela): Clean up.
5883 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5885 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5886 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5887 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5888 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5889 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5890 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5893 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5894 macros out of [SHARED].
5895 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5897 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5898 Clean up R_PPC64_* macro definition comments.
5900 * configure.in: In "running configure fragment for" message,
5901 omit $srcdir from the name if we prepended it.
5902 * configure: Regenerated.
5904 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5905 From Jakub Jelinek <jakub@redhat.com>.
5907 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5908 which duplicated the O_DIRECT defn.
5910 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5912 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5915 2003-03-01 Andreas Schwab <schwab@suse.de>
5917 * resolv/Makefile (tests): Don't depend on
5918 $(objpfx)mtrace-tst-leaks when cross compiling.
5920 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5921 __libc_stack_end through GOT since it is a global symbol.
5923 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5925 * argp/argp.h: Fix a typo.
5926 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5928 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5930 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5932 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5934 (get_subexp): Likewise.
5936 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5938 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5940 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5942 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5944 2003-02-27 Roland McGrath <roland@redhat.com>
5946 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5947 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5948 repeat it and avoids the test for the common case.
5949 Clean up and fix calculations for TLS relocs.
5951 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5952 * sysdeps/powerpc/dl-tls.h: ... here.
5953 (TLS_TP_OFFSET): New macro.
5955 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5957 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5959 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5960 code generation changes in recent gcc.
5962 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5964 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5965 Rename argument to avoid symbol conflict.
5967 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5968 [__USE_GNU] (O_DIRECT): New macro.
5970 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5972 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5975 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5977 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5978 initializer anymore now that res_thread_freeres is more careful.
5980 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5981 except the PKTINFO. Reset interface in PKTINFO.
5982 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5984 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5986 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5987 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5989 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5990 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5991 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5992 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5994 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5995 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5997 2003-02-25 Andreas Jaeger <aj@suse.de>
5999 * manual/memory.texi (Malloc Tunable Parameters): Clarify
6000 behaviour of M_MMAP_THRESHOLD.
6002 2003-02-25 Roland McGrath <roland@redhat.com>
6004 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
6005 zero, inidicating _res was not initialized yet.
6007 2003-02-24 Ulrich Drepper <drepper@redhat.com>
6009 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
6012 2003-02-24 Roland McGrath <roland@redhat.com>
6014 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
6016 2003-02-23 Roland McGrath <roland@redhat.com>
6018 * sysdeps/posix/pause.c: New file.
6019 * sysdeps/unix/common/pause.c: File removed.
6021 2003-02-23 Ulrich Drepper <drepper@redhat.com>
6023 * sysdeps/generic/bits/confname.h: Remove #ifs.
6025 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
6026 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
6028 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
6031 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6033 * sysdeps/generic/dl-sysdep.c: Avoid warning.
6035 2003-02-22 Roland McGrath <roland@redhat.com>
6037 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
6038 * resolv/Makefile (tests): Add tst-leaks.
6039 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
6040 (tst-leaks-ENV): New variable.
6041 ($(objpfx)mtrace-tst-leaks): New target.
6042 (tests): Depend on it.
6044 * include/libc-internal.h: Declare __libc_thread_freeres.
6046 * Makerules: Fix last change to use $($(subdir)-version) when set.
6048 * Makerules (install-lib-nosubdir): Depend on installed
6049 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
6050 regardless of the libfoo.so target's dependencies.
6052 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
6053 Use that in $(MAKE) calls.
6055 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6057 * catgets/gencat.c (read_input_file): Collision between
6058 auto-assigned numbers and user-defined nubmers is not fatal.
6060 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
6061 * catgets/Makefile: Add rules to run test2.msg test.
6062 * catgets/test2.msg: New file.
6064 * catgets/gencat.c (main): Return 1 if messages have been printed.
6066 * iconv/iconv_prog.c (main): Unify messages.
6068 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
6069 when shifting retval.
6070 * stdlib/tst-strtod.c (main): Add strtold test case.
6071 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6073 2003-02-21 Roland McGrath <roland@redhat.com>
6075 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
6076 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
6077 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
6079 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
6080 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
6081 (res_thread_freeres): New function, on __libc_thread_subfreeres and
6084 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
6085 * malloc/thread-freeres.c: New file.
6086 * malloc/Makefile (aux): Add it.
6087 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
6088 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
6089 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
6091 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
6092 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
6094 2003-02-21 Roland McGrath <roland@frob.com>
6096 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
6098 * iconvdata/Makefile (tests): Add bug-iconv3 only if
6099 [$(have-thread-library) = yes].
6101 2003-02-21 Ulrich Drepper <drepper@redhat.com>
6103 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
6105 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
6106 not chechk for errors (unless testing for 32bit variant).
6107 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
6108 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
6109 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
6111 2003-02-21 Jakub Jelinek <jakub@redhat.com>
6113 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
6114 Check for signed overflow, not unsigned.
6116 * sysdeps/sparc/sparc64/elf/configure.in: New file.
6117 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
6118 Use -fcall-used-g6, not -fcall-used-g7.
6120 2003-02-21 Andreas Jaeger <aj@suse.de>
6122 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
6125 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
6126 clear whole mxcsr but only exceptions.
6128 2003-02-21 Roland McGrath <roland@redhat.com>
6130 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
6131 for libfoo.so that need $(make-link) rules.
6133 2003-02-21 Roland McGrath <roland@frob.com>
6135 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
6136 to match existing struct stat layout in mig protocols.
6138 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6140 * version.h (VERSION): Bump to 2.3.2.
6142 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
6143 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
6145 * sysdeps/generic/Dist: Add sysdep-cancel.h.
6146 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
6147 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
6148 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
6149 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
6150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
6152 * Makefile (distribute): Add include/stubs-prologue.h,
6153 include/gnu/stubs.h, scripts/merge-abilist.awk, and
6154 scripts/extract-abilist.awk.
6156 2003-02-20 Roland McGrath <roland@redhat.com>
6158 * math/Makefile (distribute): Don't add generated files.
6160 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6162 * math/Makefile: Rearrange variable definitions slightly to get
6163 definition in the right order.
6165 2003-02-20 Roland McGrath <roland@redhat.com>
6167 * Makerules: Clean up conditional around include of tls.make.
6168 * Make-dist: Export generating=t to prevent using that.
6169 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
6171 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6173 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
6174 around in search if port IPPORT_RESERVED/2 has been test.
6176 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
6178 * posix/regcomp.c: Remove inclusions.
6179 * posix/regexec.c: Likewise.
6180 * posix/regex_internal.c: Likewise.
6181 * posix/regex_internal.h: Add inclusions here.
6182 * posix/regex.c: Only include sys/types.h before regex.h. Include
6183 regex_internal.h here. Include regex_internal.c before regcomp.c
6184 and regexec.c (might expose more opportunities to the C compiler).
6186 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
6188 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
6189 [!_LIBC] (__wcrtomb): New definition.
6190 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
6191 HAVE_LOCALE_H as well.
6193 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6195 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
6196 patch to check for system call errors.
6198 2002-07-24 Philip Blundell <philb@gnu.org>
6200 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6203 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6205 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6206 * sysdeps/unix/sysv/linux/kernel-features.h
6207 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6211 interprocedure branches.
6212 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6213 * sysdeps/powerpc/nofpu/Dist: ...here.
6214 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6216 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6217 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6218 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6220 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6222 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6224 2003-02-20 Philip Blundell <philb@gnu.org>
6226 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6227 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6228 INTERNAL_SYSCALL_ERRNO.
6230 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6232 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6233 for __ASSUME_32BITUIDS.
6235 2003-02-20 Andreas Schwab <schwab@suse.de>
6237 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6238 POSIX_MADV_* constants.
6240 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6242 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6243 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6244 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6245 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6247 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6249 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6251 2003-02-16 Roland McGrath <roland@redhat.com>
6253 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6255 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6257 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6258 decimal input digits.
6259 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6261 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6263 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6264 invalid file descriptors and missing access permissions.
6266 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6268 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6271 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6272 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6273 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6276 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6277 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6279 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6280 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6281 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6282 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6283 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6285 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6287 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6288 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6289 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6290 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6291 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6292 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6294 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6296 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6299 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6300 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6301 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6302 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6304 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6306 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6308 2003-02-15 Roland McGrath <roland@frob.com>
6310 * sysdeps/mach/hurd/tls.h: New file.
6311 * sysdeps/mach/hurd/i386/tls.h: New file.
6313 * mach/errsystems.awk: Include <errno.h> in generated output.
6315 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6316 use target mach-before-compile instead of generated.
6317 (mach-before-compile): New target.
6318 * Makerules: Disable use of tls.make if $(generating) is set.
6319 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6320 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6321 mach-shortcuts.h so mach/ generation happens before hurd/.
6323 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6325 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6326 of demorm correctly if low word is zero.
6327 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6328 * math/libm-test.inc (nextafter_test): New test, but disabled due
6331 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6332 counter and only call __exit_thread if this is not the last thread.
6334 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6336 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6337 subtracting map->l_tls_offset.
6339 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6341 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6342 _CS_GNU_LIBPTHREAD_VERSION.
6343 * posix/conststr.c: Handle these new values.
6344 * posix/getconf.c: Likewise.
6346 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6347 masking of version index.
6348 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6350 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6352 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6353 correctly. Reported by Thorsten Kukuk.
6355 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6357 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6358 _BSD_SOURCE to compiler.
6359 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6360 Patches by Alan Modra.
6362 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6364 * io/ftwtest.c: Get current working directory before and after the
6365 nftw call and make sure they match.
6367 2003-02-08 Jim Meyering <jim@meyering.net>
6369 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6370 the current directory, not just when DIR contains a slash.
6371 Reported by Manoj Srivastava.
6373 2003-02-07 Jim Meyering <jim@meyering.net>
6375 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6376 Include autoconf-recommended block of dirent/NAMELEN-related
6377 definitions and includes. Use NAMELEN throughout, rather than
6379 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6380 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6381 (stpcpy): Declare, if necessary.
6382 (mempcpy): Define, if necessary.
6383 [!_LIBC] (__stpcpy, __mempcpy): Define.
6384 [!_LIBC] (LXSTAT, XSTAT): Define.
6385 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6386 (find_object): Don't use c99-style struct initializer.
6387 Tweak wording in a couple comments.
6389 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6391 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6393 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6394 after the trapa instruction.
6395 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6397 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6398 (NEED_SYSCALL_INST_PAD): Define.
6399 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6400 avoid to use definition for the kernel.
6401 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6402 Save and restore the frame pointer.
6403 (SYSCALL_INST_PAD): Define.
6404 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6405 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6406 after trapa instruction.
6407 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6408 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6410 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6412 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6413 so that it can have aliases.
6414 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6416 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6418 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6419 (profile_fixup): Likewise.
6420 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6422 2002-11-24 Robert Love <rml@tech9.net>
6424 * posix/sched.h: Second parameter of sched_setaffinity and
6425 sched_getaffinity is `unsigned int', not `unsigned long'.
6426 * sysdeps/generic/sched_setaffinity.c: Likewise.
6427 * sysdeps/generic/sched_getaffinity.c: Likewise.
6429 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6431 * debug/catchsegv.sh: Fix typo in error messsage.
6432 Reported by John Levon <levon@movementarian.org>.
6434 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6435 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6436 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6437 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6439 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6440 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6442 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6443 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6445 2003-02-05 Jim Meyering <jim@meyering.net>
6447 Fix a heap-corrupting bug.
6448 * io/ftw.c: Include <limits.h>.
6449 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6450 (process_entry): Allocate enough space to hold the resulting
6451 file name. Don't presume that 2*dirbufsize is enough.
6452 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6453 it is guaranteed to be defined.
6455 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6457 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6458 * iconvdata/bug-iconv3.c: New file.
6460 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6462 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6464 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6466 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6468 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6470 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6472 * sysdeps/i386/i686/memmove.S: New file.
6474 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6477 Include kernel-features.h
6478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6483 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6485 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6487 2003-01-25 Jim Meyering <jim@meyering.net>
6489 * io/ftw.c (object_compare): Compare inode numbers before device
6490 numbers, since the former are much more likely to differ.
6492 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6494 * time/tzfile.c (__tzfile_compute): Change return value type to
6495 void. Adjust return statements.
6496 * include/time.h (__tzfile_compute): Adjust prototype.
6498 2003-02-01 Jim Meyering <jim@meyering.net>
6500 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6503 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6506 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6508 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6511 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6513 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6515 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6517 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6519 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6521 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6522 back to 2.4.19 for powerpc64.
6523 * sysdeps/unix/sysv/linux/kernel-features.h
6524 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6525 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6527 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6529 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6530 platforms with strange alignment requirements on wchar_t.
6532 2003-01-31 Andreas Schwab <schwab@suse.de>
6534 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6535 aliases, already added by make-syscalls.sh.
6536 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6537 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6538 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6539 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6540 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6541 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6542 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6543 * sysdeps/unix/inet/syscalls.list: Likewise.
6544 * sysdeps/unix/syscalls.list: Likewise.
6546 2003-01-31 Andreas Schwab <schwab@suse.de>
6548 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6551 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6553 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6554 not l to load tls from stack.
6556 2003-01-30 Roland McGrath <roland@redhat.com>
6558 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6559 null argument before all else.
6560 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6562 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6564 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6565 Move to RESOLVE protected part of the header.
6566 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6569 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6571 * stdio-common/Makefile (tests): Add bug15.
6572 (bug15-ENV): Define.
6573 * stdio-common/bug15.c: New file.
6575 2002-10-07 Wolfram Gloger <wg@malloc.de>
6577 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6578 to foreign sbrk()'s if arena is contiguous. Bug report from
6579 Bruno Haible <bruno@clisp.org>.
6581 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6583 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6585 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6587 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6590 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6592 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6594 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6596 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6598 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6600 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6601 (allocate_static_tls): ...here. Add __attribute_noinline__.
6602 Don't return on failure.
6603 (_dl_reloc_bad_type): Add __attribute_noinline__.
6604 * elf/do-rel.h (elf_dynamic_do_rel): Add
6605 __attribute__((always_inline)).
6606 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6607 elf_machine_rel_relative, elf_machine_rela_relative,
6608 elf_machine_lazy_rel): Add prototypes with
6609 __attribute__((always_inline)).
6611 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6613 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6615 2003-01-29 Roland McGrath <roland@redhat.com>
6617 * configure.in: Barf if configured in $srcdir.
6619 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6622 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6624 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6626 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6627 clone parameters to match the order used on ia32.
6628 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6630 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6632 * elf/elf.h: Add new s390 relocs.
6633 * elf/tls-macros.h: Add s390 versions.
6634 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6635 * sysdeps/s390/dl-tls.h: New file.
6636 * sysdeps/s390/libc-tls.c: New file.
6637 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6638 relocs for class PLT.
6639 (elf_machine_rela): Handle TLS relocs.
6640 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6641 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6642 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6643 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6644 CLONE_CHILD_*TID flags.
6645 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6646 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6648 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6649 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6650 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6651 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6652 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6654 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6655 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6656 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6658 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6659 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6660 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6661 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6664 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6666 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6667 from __libc_pause. Implement using sigsuspend.
6668 (__libc_pause): Call do_pause to do the real work.
6670 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6671 sig_or_mask parameter is is_sig != 0.
6673 2003-01-21 Philip Blundell <philb@gnu.org>
6675 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6677 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6679 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6681 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6683 * stdio-common/bug14.c: Use official name for the locale.
6685 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6686 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6687 instead of __libc_cleanup_region_end.
6689 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6690 as first parameter to __libc_cleanup_region_start.
6692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6693 (__fe_nomask_env): Use __prctl not prctl.
6694 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6697 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6699 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6701 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6702 wrap-around in test.
6704 2003-01-26 Andreas Schwab <schwab@suse.de>
6706 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6707 compatibility symbols. Remove INTDEF for __divdi3.
6708 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6709 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6710 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6712 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6714 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6716 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6717 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6718 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6719 for the first half of the header. Include tls.h.
6720 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6722 (elf_machine_rela): Handle TLS relocs.
6723 * sysdeps/sparc/dl-tls.h: New file.
6725 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6728 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6729 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6730 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6731 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6732 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6733 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6734 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6735 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6736 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6737 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6738 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6739 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6740 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6741 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6742 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6743 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6744 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6745 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6746 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6747 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6749 2003-01-24 Andreas Schwab <schwab@suse.de>
6751 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6752 elements, and process them backwards.
6753 * elf/Makefile ($(objpfx)tst-array4): New target.
6754 ($(objpfx)tst-array4.out): Likewise.
6755 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6756 * elf/tst-array4.c: New file.
6757 * elf/tst-array4.exp: Likewise.
6759 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6763 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6765 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6766 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6767 cancellation handling and handle both __NR_pread64 and __NR_pread.
6768 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6769 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6770 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6771 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6772 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6773 case, use register names consistently.
6775 2003-01-27 Wolfram Gloger <wg@malloc.de>
6777 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6778 pointer, not of the computed chunk. Bug report from Carlos
6779 O'Donell <carlos@baldric.uwo.ca>.
6781 2003-01-25 Andreas Schwab <schwab@suse.de>
6783 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6784 addressing to save GOT entries.
6786 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6788 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6789 inline_syscall1, inline_syscall2, inline_syscall3,
6790 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6791 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6792 __attribute__((unused)) to ChEcK.
6794 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6796 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6797 Fix inline assembler constraints.
6798 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6801 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6804 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6806 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6807 compute the cosine, not the sine, even if x > 0.8.
6809 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6811 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6812 _nss_nis_setspent. Work around the different prototypes.
6813 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6814 internal_nis_endrpcent.
6815 (internal_nis_endrpcent): Change return type to void. Change callers.
6816 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6817 _nss_nis_setpwent. Work around the different prototypes.
6818 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6819 of the function to...
6820 (internal_nis_endprotoent): ... here. New function.
6821 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6822 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6823 _nss_nis_setnetent. Work around the different prototypes.
6824 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6825 of the function to...
6826 (internal_nis_endnetgrent): ... here. New function.
6827 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6829 2003-01-19 Jim Meyering <jim@meyering.net>
6831 * time/strftime.c: (widen): Merge nearly-identical definitions.
6832 (nl_get_alt_digit) [! defined my_strftime]: Define.
6833 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6834 _nl_get_alt_digit and _nl_get_walt_digit.
6836 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6838 * time/strftime.c (my_strftime): Handle very large width
6839 specifications for numeric values correctly. Improve checks for
6841 * time/Makefile (tests): Add tst-strftime.
6842 * time/tst-strftime.c: New file.
6844 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6846 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6847 _nss_nis_sethostent. Work around the different prototypes.
6848 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6849 _nss_nis_setgrent. Work around the different prototypes.
6850 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6851 function. Split out from _nss_nis_endetherent.
6852 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6853 duplicating the code.
6854 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6855 of _nss_nis_setaliasent.
6856 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6857 internal_nis_endservent code, don't duplicate it.
6859 * inet/rexec.c (rexec_af): Protect socket operations with
6860 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6861 * inet/rcmd.c (rcmd_af): Likewise.
6863 2003-01-17 Roland McGrath <roland@redhat.com>
6865 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6866 Add test of value 0.80190127184058835.
6868 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6870 2003-01-17 Richard Henderson <rth@redhat.com>
6872 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6873 relocs for class PLT.
6874 * sysdeps/alpha/libc-tls.c: New file.
6875 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6876 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6878 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6880 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6881 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6884 2003-01-17 Andreas Jaeger <aj@suse.de>
6886 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6888 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6895 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6896 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6899 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6901 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6902 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6905 * sysdeps/generic/sysconf.c: Unconditionally implement
6906 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6907 * sysdeps/posix/sysconf.c: Likewise.
6909 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6911 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6912 set *err to the returned error, not to REG_ESPACE unconditionally.
6913 (build_word_op): Likewise.
6914 * posix/Makefile (tests): Add bug-regex16.
6915 * posix/bug-regex16.c: New test.
6917 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6919 * elf/dl-load.c (_dl_map_object_from_fd): Use
6920 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6921 been already initialized.
6923 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6925 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6927 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6929 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6930 allocated too. Reported by Al Viro <aviro@redhat.com>.
6932 2003-01-16 Roland McGrath <roland@redhat.com>
6934 Tweak merged .abilist file format to merge duplicate symbols in
6935 different sets into multi-version stanzas with new "| SET regexp..."
6936 header continuation lines.
6937 * scripts/merge-abilist.awk: Rewritten for new format.
6938 * scripts/extract-abilist.awk: Likewise.
6940 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6942 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6943 necessary with gcc 3.2+.
6944 (nscd_init): Don't use error() to print message, use dbg_log.
6946 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6947 expected size into state.
6948 (UNPACK_BYTES): Do the reverse.
6949 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6950 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6951 Reported by Al Viro <aviro@redhat.com>.
6953 * stdio-common/Makefile (tests): Add bug14.
6954 * stdio-common/bug14.c: New file.
6956 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6957 string reset the byte counter after mbrtowc reported it is not a
6958 partial character. Reported by Al Viro <aviro@redhat.com>.
6960 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6963 sysdep-cancel.h, not sysdep.h.
6965 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6967 * nscd/connections.c (nscd_run): Protect accept call with
6970 2003-01-15 Andreas Schwab <schwab@suse.de>
6972 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6973 (common-generated): Add s-proto-bp.d.
6974 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6976 * sysdeps/unix/s-proto-bp.S: New file.
6977 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6978 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6979 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6981 2003-01-15 Roland McGrath <roland@redhat.com>
6983 * Makerules: Use -include for tls.make, suppresses warning.
6984 Move gen-as-const-headers rules up so before-compile is set in time.
6985 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6987 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6989 * nscd/nscd.c (main): Make code to close all file descriptors
6990 faster and more robust.
6992 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6993 request with one writev call. Protect all read calls with
6995 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6996 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6998 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6999 Protect writev calls with TEMP_FAILURE_RETRY.
7000 * nscd/grpcache.c: Likewise.
7001 * nscd/pwdcache.c: Likewise.
7003 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
7004 IPv6 address in debug output.
7006 2003-01-14 Roland McGrath <roland@redhat.com>
7008 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
7009 $(objpfx) directories, and get rid of vpath directives. The previous
7010 arrangement resulted in files being written to the source directories
7011 when run in a clean build. Find all .abilist files in $(..)abilist/.
7012 (update-abi-%): Likewise.
7013 (generated): Don't add .symlist files, they'll be intermediates.
7015 * sysdeps/generic/init-first.c: Add a comment.
7017 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
7019 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
7020 #includes and expressions.
7022 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
7023 config list when it already contains cpu-.*-os.* without / part.
7025 * Makerules (sed-remove-dotdot): New variable.
7026 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
7027 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
7028 (check-abi-config): New variable, append /tls or /notls to the tuple.
7029 (check-abi-%): Use that for -v config value.
7030 Find .abilist files in abilist/libfoo.abilist, not in subdir.
7031 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
7033 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7035 * manual/install.texi: Correct description of header preparation for
7036 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
7038 2003-01-14 Guido Guenther <agx@sigxcpu.org>
7040 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
7041 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7042 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
7044 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7047 (INTERNAL_SYSCALL): Make use of ERR parameter.
7048 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7049 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7050 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
7053 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7055 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
7057 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
7059 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
7060 Fix entry for bit 31.
7062 * iconvdata/Makefile: Add rules to build IBM866NAV.
7063 * iconvdata/ibm866nav.c: New file.
7064 * iconvdata/tst-tables.sh: Add IBM866NAV.
7065 * iconvdata/gconv-modules: Add entries for IBM866NAV.
7067 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7069 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
7070 to test void* parameters.
7072 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
7073 source pointer before dereferencing.
7074 (__STRING_SMALLL_GET32): Likewise.
7075 (__memset_gc): Add missing parenthesis around macro arguments.
7076 Patch by Denis Zaitsev <zzz@cd-club.ru>.
7078 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
7079 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
7081 2003-01-14 Jakub Jelinek <jakub@redhat.com>
7083 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
7086 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7088 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
7089 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
7091 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
7093 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7095 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
7097 (PSEUDO): ... to here.
7098 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
7100 (PSEUDO): ... to here.
7102 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7104 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
7105 dirent64 instead of struct dirent for dirent. Call readdir64
7108 * locale/programs/locfile.c (siblings_uncached): Use struct
7109 dirent64 instead of struct dirent for other_dentry. Call
7110 readdir64 instead of readdir.
7112 * elf/ldconfig.c (direntry): Change type to struct dirent64.
7113 (search_dir): Use readdir64 instead of readdir.
7114 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
7116 2003-01-12 Roland McGrath <roland@redhat.com>
7118 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
7119 not strtol. The former is usable in ld.so, the latter not.
7121 * include/fcntl.h: Declare __libc_creat.
7123 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
7124 libhurduser-link.so-no-z-defs): New variables.
7126 * malloc/malloc.c: Revert last change.
7127 * malloc/malloc.h (_int_*): Move these decls to ...
7128 * include/malloc.h: ... here. Add attribute_hidden.
7129 (_int_valloc): Declare it too.
7131 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7133 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
7134 search for removed searchlist. Reported by Roland McGrath.
7136 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
7137 given as start file.
7139 * io/ftw.c (ftw_startup): Use correct name in check for symlink
7140 without existing target. Patch by Jim Meyering.
7142 * Makerules (build-shlib-helper): Don't use -z defs linker option
7143 if no-z-defs is defined either.
7145 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7147 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
7150 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7152 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
7153 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7155 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7157 * io/ftwtest-sh: Add test case for relative path with /. at the end.
7159 2003-01-12 Jim Meyering <jim@meyering.net>
7161 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
7162 use the basename if we've already chdir'd into its parent directory.
7164 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7166 * io/ftw.c (process_entry): Use relative path when using chdir()
7167 to change directory after call to ftw_dir.
7168 * io/ftwtest-sh: Add test for relative path argument to nftw()
7169 with FTW_CHDIR option.
7171 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7173 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
7175 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
7177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7178 (INTERNAL_SYSCALL): Make use of ERR parameter.
7179 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7180 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7181 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7184 2002-01-09 Richard Henderson <rth@redhat.com>
7186 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
7187 DTPREL64 and TPREL64 without loadbase applied.
7189 2002-01-09 Richard Henderson <rth@redhat.com>
7191 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
7194 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
7195 * sysdeps/unix/alpha/sysdep.h: ... here.
7196 (PSEUDO_LOADGP): Remove.
7197 (PSEUDO_PROLOGUE): Load GP in non-pic case.
7198 (SYSCALL_ERROR_LABEL): New.
7199 (PSEUDO): Use it in error branch.
7200 (PSEUDO_END): Add $syscall_error label.
7202 2003-01-12 Andreas Jaeger <aj@suse.de>
7204 * math/bits/mathcalls.h: Round is a const function.
7206 2003-01-11 Jim Meyering <jim@meyering.net>
7208 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7209 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7210 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7211 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7212 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7213 [!_LIBC] (internal_function, dirent64, MAX): Define.
7214 (__set_errno): Define if not already defined.
7215 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7216 the basename, not the entire file name.
7217 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7218 the basename, not the entire file name.
7220 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7222 * string/tester.c (test_strcpy): Disable last added strcpy until
7225 2003-01-11 Philip Blundell <philb@gnu.org>
7227 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7229 2003-01-11 Andreas Schwab <schwab@suse.de>
7231 * Makerules: Add vpath for %.dynsym and %.so so that the
7232 implicit rule chaining for check-abi works.
7234 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7236 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7239 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7241 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7242 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7244 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7245 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7246 Ensure libc.so in DT_NEEDED.
7247 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7248 CHECK_STATIC_TLS before l_tls_offset use.
7249 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7251 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7252 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7253 Allocate TLS_PRE_TCB_SIZE bytes below result.
7254 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7255 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7256 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7257 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7258 bytes below result and add tcb_offset to memsz.
7259 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7260 * sysdeps/ia64/dl-machine.h: Include tls.h.
7261 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7263 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7264 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7265 * sysdeps/ia64/libc-tls.c: New file.
7267 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7269 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7270 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7271 Fix type. Move definition out of #if.
7272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7280 ftruncate64, pread64, pwrite64, truncate64 entries.
7281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7282 (INLINE_SYSCALL): New version that supports function call like
7283 syscalls. Add __builtin_expect.
7284 (LOADARGS_n): Add argument size safety checks.
7285 (INTERNAL_SYSCALL): New Macro.
7286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7287 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7288 redefinition of elf_fpreg_t and elf_fpregset_t.
7290 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7292 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7293 simplify test for unloading. If loader of a DSO is unloaded do not
7294 use its scope anymore. Fall back to own scope and adjust opencounts.
7295 Fix several comments.
7296 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7297 the l_searchlist, not only for l_initfini.
7299 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7300 dependencies if objects cannot be removed. Remove object with the
7301 definition as not unloadable if necessary.
7303 * elf/reldep6.c: Create relocation dependency before closing the first
7306 2003-01-10 Guido Günther <agx@sigxcpu.org>
7308 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7309 * sysdeps/unix/mips/brk.S: Likewise.
7310 * sysdeps/unix/mips/pipe.S: Likewise.
7312 2003-01-10 Andreas Schwab <schwab@suse.de>
7314 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7316 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7317 are known to have the vfork syscall.
7319 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7321 * sysdeps/unix/sysv/linux/kernel-features.h
7322 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7323 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7324 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7326 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7328 * elf/Makefile: Add rules to build and run reldep9 test.
7329 * elf/reldep9.c: New file.
7330 * elf/reldep9mod1.c: New file.
7331 * elf/reldep9mod2.c: New file.
7332 * elf/reldep9mod3.c: New file.
7334 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7336 * elf/Makefile: Add rules to build and run nodelete2 test.
7337 * elf/nodelete2.c: New file.
7338 * elf/nodel2mod1.c: New file.
7339 * elf/nodel2mod2.c: New file.
7340 * elf/nodel2mod3.c: New file.
7342 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7344 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7345 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7346 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7348 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7349 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7350 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7351 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7352 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7354 2003-01-09 Andreas Schwab <schwab@suse.de>
7356 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7358 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7360 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7361 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7363 (INTERNAL_SYSCALL_DECL): Define.
7365 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7367 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7368 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7370 (INTERNAL_SYSCALL_DECL): Define.
7371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7372 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7373 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7374 (INLINE_SYSCALL): Adjust.
7375 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7376 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7377 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7378 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7379 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7380 add err argument to INTERNAL_SYSCALL* macros.
7381 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7382 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7383 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7384 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7386 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7387 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7388 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7390 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7392 Unify symbols in user namespace exported by libc.so and libc.a.
7393 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7394 argp_fmtstream_free, and argp_fmtstream_printf.
7395 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7396 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7397 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7398 argp_fmtstream_point.
7399 * gmon/gmon.c: Don't define write_profiling.
7400 * libio/genops.c: Don't define _cleanup.
7402 * intl/explodename.c (_nl_find_language.c): Mark as static.
7403 * intl/loadinfo.h: Remove _nl_find_language prototype.
7405 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7406 * libio/libioP.h: Remove declaration.
7408 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7409 * libio/libioP.h: Remove declaration.
7411 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7412 * sysdeps/generic/framestate.c: Define STATIC before including
7415 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7417 2003-01-06 Philip Blundell <philb@gnu.org>
7419 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7420 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7422 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7424 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7425 (SYSCALL_ERROR): New.
7426 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7428 (INTERNAL_SYSCALL): Define.
7429 (INLINE_SYSCALL): Use it.
7430 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7431 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7432 SYSCALL_ERROR in place of __syscall_error.
7434 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7436 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7437 __bswap_32, __bswap_64): Put x into temporary variable
7439 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7441 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7442 __bswap_32, __bswap_64): Put x into temporary variable
7444 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7446 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7449 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7451 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7454 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7456 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7457 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7459 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7461 * math/libm-test.inc (significand_test): New function.
7464 2003-01-06 Roland McGrath <roland@redhat.com>
7466 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7468 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7469 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7470 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7472 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7474 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7476 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7477 return significand and not the exponent.
7478 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7480 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7481 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7483 * malloc/malloc.c: Mark all _int_* functions as static.
7485 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7487 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7488 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7490 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7492 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7494 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7498 ftruncate64, truncate64, pread64 and pwrite64 entries.
7499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7500 (INLINE_SYSCALL): Add __builtin_expect.
7501 (LOADARGS_n): Add argument size safety checks.
7502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7509 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7511 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7512 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7513 (LIBC_CANCEL_HANDLED): Add.
7515 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7516 (inline_syscall_r0_constraint): Rename to...
7517 (inline_syscall_r0_out_constraint): ... this. Add =.
7518 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7520 2003-01-06 Andreas Schwab <schwab@suse.de>
7522 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7523 sure this is always inlined.
7524 (elf_machine_rela): Likewise.
7526 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7528 2003-01-04 Roland McGrath <roland@redhat.com>
7530 * Makeconfig (+mkdep): Add -MP flag.
7531 Suggested by Art Haas <ahaas@airmail.net>.
7533 2003-01-05 Andreas Schwab <schwab@suse.de>
7535 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7537 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7539 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7540 SYSCALL_ERROR_HANDLER.
7541 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7542 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7543 Add support for cancellation handling.
7544 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7545 SYSCALL_ERROR_HANDLER.
7546 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7547 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7548 Add support for cancellation handling.
7549 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7551 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7554 __syscall_pread64 and __syscall_pwrite64 cancelable.
7555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7556 (INTERNAL_SYSCALL): New macro.
7557 (LOADARGS_0, LOADARGS_1): Fix.
7559 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7561 * Makerules (build-shlip-helper): Unless told otherwise, add
7562 -Wl,-z,defs to linker command line.
7563 * rt/Makefile (librt.so): Link with ld.so.
7564 * dlfcn/Makefile (libdl.so): Likewise.
7566 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7568 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7569 cancellation handling.
7570 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7571 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7573 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7575 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7576 order of parameters passed to kill.
7578 2003-01-04 Andreas Schwab <schwab@suse.de>
7580 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7582 2002-01-03 Paul Eggert <eggert@twinsun.com>
7584 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7585 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7586 when compiling Bison 1.875's `bitset bset = obstack_alloc
7587 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7589 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7591 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7593 Correct reference counter in case SIGQUIT handler installation failed.
7595 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7597 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7598 Define using _Pragma(weak ...).
7600 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7602 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7603 reorder declarations.
7605 2003-01-03 Art Haas <ahaas@airmail.net>
7607 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7608 initializer syntax to C99.
7609 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7610 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7611 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7612 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7613 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7614 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7615 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7616 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7617 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7618 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7619 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7620 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7621 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7622 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7623 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7624 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7625 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7626 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7627 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7628 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7629 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7630 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7631 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7632 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7633 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7634 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7635 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7636 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7637 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7638 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7639 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7640 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7641 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7642 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7643 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7644 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7645 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7646 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7647 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7648 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7649 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7650 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7651 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7652 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7653 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7654 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7655 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7656 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7657 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7659 2003-01-03 Richard Henderson <rth@redhat.com>
7661 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7662 (inline_syscall_r0_constraint): New.
7663 (inline_syscall[0-6]): Use them.
7665 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7667 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7668 Add rtld_hidden_proto.
7669 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7670 (_dl_allocate_tls): Likewise. Remove INTDEF.
7672 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7674 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7675 Morita <toshiyasu.morita@hsa.hitachi.com>.
7676 * sysdeps/sh/memcpy.S: Likewise.
7678 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7680 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7681 any, but unify the test.
7683 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7685 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7686 sigaction): Protect weak_alias and libc_hidden_weak with
7687 #ifndef LIBC_SIGACTION.
7688 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7689 sigaction): Likewise.
7690 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7691 sigaction): Likewise.
7692 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7693 sigaction): Likewise.
7694 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7695 sigaction): Likewise.
7696 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7697 sigaction): Likewise.
7698 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7699 sigaction): Likewise.
7700 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7701 sigaction): Likewise. Remove SIGCANCEL handling here.
7702 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7705 2003-01-02 Art Haas <ahaas@airmail.net>
7707 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7709 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7711 * posix/getconf.c: Update copyright year.
7712 * nss/getent.c: Likewise.
7713 * nscd/nscd_nischeck.c: Likewise.
7714 * iconv/iconvconfig.c: Likewise.
7715 * iconv/iconv_prog.c: Likewise.
7716 * elf/ldconfig.c: Likewise.
7717 * catgets/gencat.c: Likewise.
7718 * csu/version.c: Likewise.
7719 * elf/ldd.bash.in: Likewise.
7720 * elf/sprof.c (print_version): Likewise.
7721 * locale/programs/locale.c: Likewise.
7722 * locale/programs/localedef.c: Likewise.
7723 * nscd/nscd.c (print_version): Likewise.
7724 * debug/xtrace.sh: Likewise.
7725 * malloc/memusage.sh: Likewise.
7726 * malloc/mtrace.pl: Likewise.
7728 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7730 * io/sys/stat.h: Include time.h with __need_timespec even if
7731 __USE_MISC is defined but __USE_XOPEN is not.
7733 2003-01-01 Andreas Jaeger <aj@suse.de>
7735 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7736 type to avoid strict aliasing problem.
7737 (_nss_dns_gethostbyname2_r): Likewise.
7738 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7739 (_nss_dns_getnetbyname_r): Likewise.
7740 * resolv/gethnamaddr.c (_gethtent): Likewise.
7741 (gethostbyname2): Likewise.
7743 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7745 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7746 to avoid using the exported symbols. Define aliases with the
7747 original names separately.
7749 * include/time.h: Add libc_hidden_proto for __strftime_l.
7750 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7751 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7753 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7754 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7756 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7759 * csu/Makefile (routines): Add dso_handle.
7760 * csu/dso_handle.c: New file.
7762 2002-12-31 Roland McGrath <roland@redhat.com>
7764 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7765 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7766 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7767 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7769 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7771 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7774 2002-12-31 Andreas Jaeger <aj@suse.de>
7776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7778 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7779 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7780 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7782 * sysdeps/unix/sysv/linux/kernel_stat.h
7783 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7785 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7786 __unused[1-3] since they're needed by some platforms. Handle
7787 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7789 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7790 for structs stat and stat64.
7791 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7792 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7793 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7794 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7796 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7798 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7799 nsec resolution changes.
7800 (xstat64_conv): Likewise.
7801 (xstat32_conv): Likewise.
7803 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7806 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7807 structs stat and stat64.
7809 * time/time.h (__timespec_defined): Define for __USE_MISC.
7811 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7813 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7814 and __libc_current_sigrtmax.
7816 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7818 * include/errno.h (__errno_location): Add prototype.
7819 Use libc_hidden_proto unconditionally.
7820 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7822 * include/resolv.h (__res_state): Likewise.
7824 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7825 * include/sys/socket.h (accept): Add libc_hidden_proto.
7826 * include/errno.h (__errno_location): Likewise.
7827 * include/netdb.h (__h_errno_location): Likewise.
7828 * include/resolv.h (__res_state): Likewise.
7829 * include/unistd.h (__lseek): Likewise.
7830 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7831 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7832 * sysdeps/generic/res-state.c (__res_state): Likewise.
7833 * sysdeps/generic/accept.c (accept): Likewise.
7834 * sysdeps/generic/lseek.c (__lseek): Likewise.
7835 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7836 __libc_current_sigrtmax): Likewise.
7837 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7838 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7839 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7840 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7841 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7842 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7843 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7844 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7845 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7847 (__GI_accept): New alias to accept.
7848 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7849 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7850 New alias to llseek.
7851 (__GI_accept): New alias to accept.
7852 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7854 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7856 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7858 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7859 strong_alias (name, __GI_name).
7860 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7861 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7862 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7863 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7864 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7865 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7866 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7867 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7868 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7869 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7870 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7871 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7872 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7873 * sysdeps/unix/arm/fork.S : Likewise.
7874 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7875 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7876 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7877 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7878 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7879 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7880 * sysdeps/unix/i386/fork.S : Likewise.
7881 * sysdeps/unix/mips/fork.S : Likewise.
7882 * sysdeps/unix/sparc/fork.S : Likewise.
7883 * sysdeps/unix/sparc/vfork.S : Likewise.
7884 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7885 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7886 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7887 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7888 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7889 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7890 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7891 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7892 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7893 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7894 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7895 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7896 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7897 * sysdeps/unix/fork.S : Likewise.
7898 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7899 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7901 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7904 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7906 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7907 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7908 * sysdeps/mach/hurd/fork.c: Likewise.
7909 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7910 * sysdeps/unix/fork.S: Add __GI___fork alias.
7911 * sysdeps/unix/arm/fork.S: Likewise.
7912 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7913 * sysdeps/unix/i386/fork.S: Likewise.
7914 * sysdeps/unix/mips/fork.S: Likewise.
7915 * sysdeps/unix/sparc/fork.S: Likewise.
7916 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7917 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7918 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7919 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7920 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7921 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7922 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7923 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7924 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7925 * sysdeps/unix/sparc/vfork.S: Likewise.
7926 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7927 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7928 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7929 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7930 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7931 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7932 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7933 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7935 * include/time.h: Add libc_hidden_proto for __nanosleep.
7936 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7937 * sysdeps/mach/nanosleep.c: Likewise.
7938 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7939 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7941 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7942 _IO_list_unlock, and _IO_list_resetlock.
7943 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7944 _IO_list_unlock, and _IO_list_resetlock.
7946 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7947 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7948 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7949 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7951 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7952 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7953 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7954 __GI___longjmp alias.
7956 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7957 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7958 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7959 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7960 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7961 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7962 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7963 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7964 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7965 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7966 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7967 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7968 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7969 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7970 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7971 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7972 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7973 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7974 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7975 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7976 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7978 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7980 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7982 2002-12-30 Roland McGrath <roland@redhat.com>
7984 * Rules (generated): Target removed.
7985 * mach/Makefile (generated): Define it here instead.
7987 * math/Makefile (generated): Add m_*l and m_*f variants too.
7989 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7991 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7992 the to-be-deleted objects right away instead of later separately.
7993 The latter fails because the scope data structures of the DSO
7994 might already be gone.
7996 * elf/Makefile: Add rules to build and run reldep8 test.
7997 * elf/reldep8.c: New file.
7998 * elf/reldep8mod1.c: New file.
7999 * elf/reldep8mod2.c: New file.
8000 * elf/reldep8mod3.c: New file.
8001 Contributed by Jakub Jelinek.
8003 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
8005 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8006 checking of return value ENOSYS from getdents64.
8008 2002-12-28 Andreas Schwab <schwab@suse.de>
8010 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
8011 ($(common-objpfx)s-%.d): Generalized from
8012 $(common-objpfx)s-proto.d rule.
8013 (common-generated): Add s-proto-cancel.d.
8014 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
8015 cancellable syscalls.
8016 * sysdeps/unix/s-proto-cancel.S: New file.
8018 2002-12-29 Roland McGrath <roland@redhat.com>
8020 * resolv/res_libc.c: Move _res defn magic after res_init defn
8021 so _res macro is in effect for that code.
8023 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
8024 pattern for prepending $(..) so it doesn't affect $(foo).
8026 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
8028 2002-12-29 Jakub Jelinek <jakub@redhat.com>
8030 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
8033 2002-12-28 Ulrich Drepper <drepper@redhat.com>
8035 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
8037 2002-12-28 Andreas Jaeger <aj@suse.de>
8039 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
8041 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
8043 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8045 * inet/herrno.c (__h_errno_location): Remove.
8046 * inet/Makefile (routines): Add herrno-loc.
8047 * resolv/res_libc.c (__res_state): Remove.
8048 * resolv/Makefile (routines): Add res-state.
8049 * sysdeps/generic/herrno-loc.c: New file.
8050 * sysdeps/generic/res-state.c: New file.
8052 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8054 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
8055 Only define if USE_DL_SYSINFO is defined.
8057 2002-12-22 Jakub Jelinek <jakub@redhat.com>
8059 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
8060 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
8061 Define. Patch by Richard Henderson and Jes Sorensen.
8062 (PSEUDO): Remove unnecessary ;;.
8063 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
8064 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
8065 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
8066 if not initializing thread pointer.
8067 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
8068 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
8069 make it weak also if NONTLS_INIT_TP.
8070 * sysdeps/unix/common/pause.c: Handle cancellation.
8071 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
8072 (LOADSYSCALL): Remove.
8073 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8074 (SYSCALL_ERROR_HANDLER): Use it.
8075 (PSEUDO): Don't jump around error handler.
8076 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
8077 jump around error handler.
8078 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
8079 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
8080 to __syscall_error_handler on failure.
8081 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
8082 (LOADSYSCALL): Remove.
8083 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8084 (SYSCALL_ERROR_HANDLER): Use it.
8085 (PSEUDO): Don't jump around error handler.
8086 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
8087 jump around error handler.
8088 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
8089 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
8090 to __syscall_error_handler on failure.
8092 2002-12-27 Roland McGrath <roland@redhat.com>
8094 * scripts/gen-as-const.awk: New file.
8095 * Makefile (distribute): Add it.
8096 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
8097 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
8099 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
8101 2002-12-27 Andreas Schwab <schwab@suse.de>
8103 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
8105 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8107 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
8110 2002-12-27 Andreas Schwab <schwab@suse.de>
8112 * Makerules ($(common-objpfx)%.make): Filter through
8113 $(sed-remove-objpfx).
8115 2002-12-23 Roland McGrath <roland@redhat.com>
8117 * scripts/abilist.awk: Produce a more compact format, divided into
8118 stanzas for each version set, the set name listed only once.
8119 * scripts/extract-abilist.awk: New file.
8120 * scripts/merge-abilist.awk: New file.
8121 * Makerules (check-abi-%, update-abi-%): New pattern rules.
8122 (update-abi, check-abi): New targets.
8123 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
8125 2002-12-19 Roland McGrath <roland@redhat.com>
8127 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
8129 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
8132 2002-12-21 Andreas Schwab <schwab@suse.de>
8134 * elf/check-textrel.c (handle_file): Swap p_type.
8136 2002-12-21 Andreas Schwab <schwab@suse.de>
8138 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
8139 (INLINE_SYSCALL): Use it.
8140 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8141 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8143 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
8144 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
8146 2002-12-20 Art Haas <ahaas@airmail.net>
8148 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
8151 2002-12-21 Philip Blundell <philb@gnu.org>
8153 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
8154 top as seventh arg to __libc_start_main.
8155 Reported by paulnash@wildseed.com.
8157 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
8159 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
8160 compatibility cruft when new enough kernel is assumed.
8162 2002-12-20 Jakub Jelinek <jakub@redhat.com>
8164 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
8165 instead of INLINE_SYSCALL.
8167 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8169 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
8172 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
8173 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
8174 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
8175 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8176 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8177 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8178 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8179 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8180 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
8181 Patch by William Lee Irwin <wli@holomorphy.com>.
8183 2002-12-20 Andreas Schwab <schwab@suse.de>
8185 * locale/programs/ld-measurement.c (measurement_output): Fix
8188 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8190 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
8191 Redefine _IO_flockifle and _IO_funlockfile as inlines.
8193 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
8194 builds add "tls" in the search path.
8195 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
8196 (path_hwcap): Recognize "tls".
8198 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8200 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8201 __waitpid instead of waitpid.
8203 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8205 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8206 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8207 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8209 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8210 information for system calls.
8212 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8215 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8217 2002-12-19 Roland McGrath <roland@redhat.com>
8219 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8220 * iconvdata/ibm922.h: Likewise.
8221 * iconvdata/ibm930.h: Likewise.
8222 * iconvdata/ibm932.h: Likewise.
8223 * iconvdata/ibm933.h: Likewise.
8224 * iconvdata/ibm935.h: Likewise.
8225 * iconvdata/ibm937.h: Likewise.
8226 * iconvdata/ibm939.h: Likewise.
8227 * iconvdata/ibm943.h: Likewise.
8228 * iconvdata/isiri-3342.h: Likewise.
8230 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8232 * test-skeleton.c (main): Make sure correct value is seen as
8233 argv[0] after adjustment of argv, and argc.
8235 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8236 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8238 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8240 * nscd/connections.c (nscd_run): Shut up warning.
8241 * tst-ungetc.c (assert): Undefined before redefining.
8243 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8245 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8248 2002-12-17 Art Haas <ahaas@airmail.net>
8250 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8251 * iconvdata/cp775.h: Likewise.
8252 * iconvdata/ibm1046.h: Likewise.
8253 * iconvdata/ibm1124.h: Likewise.
8254 * iconvdata/ibm1129.h: Likewise.
8255 * iconvdata/ibm1132.h: Likewise.
8256 * iconvdata/ibm1133.h: Likewise.
8257 * iconvdata/ibm1160.h: Likewise.
8258 * iconvdata/ibm1161.h: Likewise.
8259 * iconvdata/ibm1162.h: Likewise.
8260 * iconvdata/ibm1163.h: Likewise.
8261 * iconvdata/ibm1164.h: Likewise.
8263 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8265 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8266 __ASSUME_CLONE_THREAD_FLAGS is defined.
8267 * sysdeps/unix/sysv/linux/kernel-features.h
8268 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8270 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8272 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8274 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8276 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8278 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8280 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8282 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8284 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8285 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8286 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8289 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8291 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8293 [libc: GLIBC_PRIVATE]: ...here.
8294 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8296 [libc: GLIBC_PRIVATE]: ...here.
8298 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8300 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8301 Use it instead of directly int $0x80.
8302 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8303 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8304 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8305 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8306 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8307 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8309 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8311 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8313 * elf/elf.h (AT_SYSINFO): New define.
8314 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8317 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8319 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8321 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8323 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8325 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8327 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8329 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8331 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8332 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8333 available, otherwise __libc_maybe_call.
8334 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8335 cancellation handling.
8336 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8338 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8340 * posix/regcomp.c (free_workarea_compile): Free the new member
8342 (analyze): Initialize ORG_INDICES.
8343 (duplicate_node_closure): Search for a existing node, which is
8344 duplicated from the node ORG_DEST and satisfies the constraint
8345 CONSTRAINT. And use it to avoid inifimite loop.
8346 (search_duplicated_node): New function.
8347 (duplicate_node): Store the index of the original node.
8348 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8350 * posix/regex_internal.h (re_dfa_t): Add new members.
8352 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8354 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8356 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8358 * sysdeps/posix/system.c (do_system): Add support for installation
8359 of cancellation handlers.
8360 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8362 * stdlib/Makefile (tests): Add tst-system.
8363 * stdlib/tst-system.c: New file.
8365 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8366 CENABLE]: Don't lose content of %ebx.
8368 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8370 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8371 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8373 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8375 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8376 fails to return a function pointer don't use it.
8378 2002-12-16 Art Haas <ahaas@airmail.net>
8380 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8381 * iconvdata/iso-ir-165.c: Likewise.
8382 * iconvdata/jis0208.c: Likewise.
8383 * iconvdata/jis0212.c: Likewise.
8385 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8387 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8388 epoll_ctl, and epoll_wait.
8389 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8390 epoll_create, epoll_ctl, and epoll_wait.
8391 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8392 Davide Libenzi <davidel@xmailserver.org>.
8393 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8394 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8397 2002-12-16 Art Haas <ahaas@airmail.net>
8399 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8401 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8402 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8403 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8405 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8407 * stdio-common/Makefile (routines): Remove lockfile. Add
8408 flockfile, ftrylockfile, and funlockfile.
8409 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8410 * sysdeps/generic/flockfile.c: New file.
8411 * sysdeps/generic/ftrylockfile.c: New file.
8412 * sysdeps/generic/funlockfile.c: New file.
8414 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8416 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8417 macros instead of doing the calls directly.
8418 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8419 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8422 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8424 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8425 * sysdeps/ieee754/bits/nan.h: Likewise.
8427 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8428 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8430 2002-12-16 Roland McGrath <roland@redhat.com>
8432 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8433 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8434 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8436 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8437 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8439 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8440 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8441 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8442 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8443 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8444 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8445 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8446 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8448 2002-12-13 Paul Eggert <eggert@twinsun.com>
8450 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8451 is now u_int, not int.
8452 (struct XDR.x_handy): Now u_int, not int.
8453 * sunrpc/xdr_mem.c: Include <limits.h>.
8454 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8455 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8456 x_handy is now unsigned, not signed.
8457 Do not decrement x_handy if no change is made.
8458 (xdrmem_setpos): Check for int overflow.
8459 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8460 (xdr_sizeof): Remove cast that is now unnecessary, now that
8461 x_handy is unsigned.
8463 2002-12-15 Art Haas <ahaas@airmail.net>
8465 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8466 * iconvdata/gap.awk: Likewise.
8467 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8468 * iconvdata/gen-8bit-gap.sh: Likewise.
8469 * locale/C-address.c: Likewise.
8470 * locale/C-collate.c: Likewise.
8471 * locale/C-ctype.c: Likewise.
8472 * locale/C-identification.c: Likewise.
8473 * locale/C-measurement.c: Likewise.
8474 * locale/C-messages.c: Likewise.
8475 * locale/C-monetary.c: Likewise.
8476 * locale/C-name.c: Likewise.
8477 * locale/C-numeric.c: Likewise.
8478 * locale/C-paper.c: Likewise.
8479 * locale/C-telephone.c: Likewise.
8480 * locale/C-time.c: Likewise.
8481 * nscd/connections.c: Likewise.
8482 * nscd/grpcache.c: Likewise.
8483 * nscd/hstcache.c: Likewise.
8484 * nscd/pwdcache.c: Likewise.
8485 * stdio-common/vfprintf.c: Likewise.
8486 * stdlib/random.c: Likewise.
8487 * sysdeps/generic/siglist.c: Likewise.
8488 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8489 * sysdeps/ieee754/bits/nan.h: Likewise.
8490 * sysdeps/posix/sprofil.c: Likewise.
8491 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8492 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8493 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8495 2002-12-15 Roland McGrath <roland@redhat.com>
8497 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8499 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8500 <tls.h> here, no need for it.
8501 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8503 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8504 parameter, not varargs parameter.
8506 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8507 argument so it's not an unused variable.
8509 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8510 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8513 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8515 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8517 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8518 original __libc_fcntl code. Just renamed.
8520 2002-12-15 Andreas Schwab <schwab@suse.de>
8522 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8524 2002-12-14 Olaf Hering <olh@suse.de>
8526 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8527 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8529 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8531 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8533 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8534 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8536 * sysdeps/unix/sysv/linux/open64.c: New file.
8538 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8539 * sysdeps/posix/open64.c: Likewise.
8540 * sysdeps/posix/sigpause.c: Likewise.
8541 * sysdeps/posix/sigwait.c: Likewise.
8542 * sysdeps/posix/system.c: Likewise.
8543 * sysdeps/posix/waitid.c: Likewise.
8544 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8545 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8546 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8547 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8548 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8549 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8550 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8551 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8552 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8553 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8554 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8555 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8556 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8557 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8558 * sysdeps/unix/sysv/linux/send.S: Likewise.
8559 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8560 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8561 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8562 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8563 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8564 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8565 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8566 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8567 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8568 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8569 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8570 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8572 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8574 * sysdeps/generic/sysdep-cancel.h: New file.
8575 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8577 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8578 recvmsg, send, sendmsg, sendto): Make cancelable.
8579 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8580 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8581 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8582 sendto, osf_select): Likewise.
8583 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8584 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8585 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8586 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8588 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8589 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8590 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8591 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8593 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8594 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8595 sendto, select): Likewise.
8596 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8597 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8599 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8600 select, fcntl): Likewise.
8601 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8602 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8603 read, readv, select, sigsuspend, write, writev): Likewise.
8605 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8607 * dirent/bug-readdir1.c: Include unistd.h.
8609 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8611 * locale/programs/locale.c: Include locarchive.h.
8612 (ARCHIVE_NAME): Define.
8613 (write_archive_locales): New function.
8614 (write_locales): Use it. Ensure the same locale is not printed
8615 multiple times in verbose mode.
8616 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8617 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8619 (struct nameent): New type.
8620 (nameentcmp): New function.
8622 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8624 * posix/regex_internal.c (re_string_context_at): Guard wide char
8625 code with #ifdef RE_ENABLE_I18N.
8627 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8629 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8631 2002-12-13 Roland McGrath <roland@redhat.com>
8633 * posix/bug-regex15.c: New file.
8634 * posix/Makefile (tests): Add it.
8636 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8637 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8639 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8641 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8643 * misc/syslog.c (log_cleanup): Don't use parameter in
8644 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8645 pass NULL instead of a pointer to syslog_lock.
8647 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8649 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8650 linker map for all iconv modules.
8651 (distribute): Add gconv.map.
8652 * iconvdata/gconv.map: New file.
8654 * elf/Makefile: Also check all iconv modules for text relocations.
8656 * stdlib/Makefile: Remove code to automatically import GMP.
8658 * elf/Makefile (tests): Add rules to build and run check-textrel.
8659 * elf/check-textrel.c: New file.
8661 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8664 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8666 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8669 2002-04-30 Bruno Haible <bruno@clisp.org>
8671 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8672 the encoding if it already has slashes.
8673 Reported by Perry Rapp <prapp@erols.com>.
8675 2002-12-11 Roland McGrath <roland@redhat.com>
8677 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8678 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8679 Turn off PIC for compiling this file.
8681 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8683 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8684 definitions. Not needed.
8685 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8686 pthread routines directly.
8687 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8689 (arena_get2): Don't look at return value of mutex_lock.
8691 2002-12-11 Roland McGrath <roland@redhat.com>
8693 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8694 elf-init.o instead of compiling a PIC version.
8696 2002-12-11 Bruno Haible <bruno@clisp.org>
8698 * intl/gettext.h: Renamed to ...
8699 * intl/gmo.h: ... here.
8700 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8701 * intl/gettextP.h: Update.
8702 * intl/loadmsgcat.c: Update.
8704 * intl/gettextP.h (PARAMS): Make more portable.
8705 (attribute_hidden): Define as empty macro if not already defined.
8706 * intl/hash-string.h (PARAMS): Make more portable.
8707 * intl/loadinfo.h (PARAMS): Likewise.
8708 * intl/plural-exp.h (PARAMS): Likewise.
8709 (attribute_hidden): Move definition near the definition of
8712 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8713 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8715 2002-07-13 Bruno Haible <bruno@clisp.org>
8717 * intl/dcigettext.c (freea): New macro.
8718 (FREE_BLOCKS): Free also the registered blocks.
8719 (DCIGETTEXT): Free the 'search' variable.
8720 Reported by Andreas Fischer <a.fischer@asentics.de>.
8722 2002-04-27 Bruno Haible <bruno@clisp.org>
8724 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8725 * intl/dcigettext.c: Likewise.
8726 * intl/dcgettext.c: Likewise.
8727 * intl/dgettext.c: Likewise.
8728 * intl/gettext.c: Likewise.
8729 * intl/dcngettext.c: Likewise.
8730 * intl/dngettext.c: Likewise.
8731 * intl/ngettext.c: Likewise.
8732 * intl/textdomain.c: Likewise.
8733 * intl/bindtextdom.c: Likewise.
8734 * intl/plural-exp.h: Likewise.
8736 2002-01-02 Bruno Haible <bruno@clisp.org>
8738 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8740 2001-04-30 Bruno Haible <bruno@clisp.org>
8742 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8743 default macro definitions. Needed for mingw32.
8745 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8747 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8748 __builtin_constant_p to macro parameter.
8750 * sysdeps/generic/sigpause.c: Define all functions as weak.
8751 * sysdeps/posix/sigpause.c: Likewise.
8753 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8756 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8758 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8759 Explicitly align the array to sizeof (void *).
8760 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8762 * include/libc-symbols.h: Fix a comment typo.
8764 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8765 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8767 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8769 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8770 (__libc_sigsuspend): Likewise.
8771 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8772 (__libc_sigsuspend): Likewise.
8773 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8774 (creat): New weak alias.
8776 2002-12-10 Roland McGrath <roland@redhat.com>
8778 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8779 contributes a manual chapter.
8780 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8783 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8784 and move contents to ...
8785 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8786 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8787 it instead of duplicating its contents.
8788 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8790 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8792 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8794 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8796 (EXTRA_LD_ENVVARS): Use it.
8797 (DL_OSVERSION_INIT): Define.
8798 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8800 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8802 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8804 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8806 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8807 call. It is not allowed to destroy pthread mutexes which are
8808 still in use even though it is safe for our implementations. If
8809 somebody still uses the descriptor it is a bug.
8811 2002-12-09 Richard Henderson <rth@redhat.com>
8813 * csu/abi-note.S: Use .p2align, not .align.
8815 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8817 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8818 __libc_select aliases.
8820 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8823 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8825 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8827 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8829 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8831 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8833 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8834 __libc___xpg_sigpause aliases.
8836 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8838 * misc/error.c: Remove use of USE_IN_LIBIO.
8840 2002-12-08 Roland McGrath <roland@redhat.com>
8842 * elf/Makefile (tests): Uncomment tst-array[123].
8843 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8844 * csu/elf-init.c: New file.
8845 * csu/Makefile (routines, static-only-routines): Add elf-init.
8846 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8847 and __libc_csu_fini in place of _fini.
8848 * sysdeps/arm/elf/start.S: Likewise.
8849 * sysdeps/cris/elf/start.S: Likewise.
8850 * sysdeps/hppa/elf/start.S: Likewise.
8851 * sysdeps/i386/elf/start.S: Likewise.
8852 * sysdeps/ia64/elf/start.S: Likewise.
8853 * sysdeps/m68k/elf/start.S: Likewise.
8854 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8855 * sysdeps/mips/elf/start.S: Likewise.
8856 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8857 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8858 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8859 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8860 * sysdeps/sh/elf/start.S: Likewise.
8861 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8862 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8863 * sysdeps/x86_64/elf/start.S: Likewise.
8865 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8866 struct containing function ptr and value, free it.
8867 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8868 It's not safe to let the new thread use the SIGEV pointer.
8870 2001-10-20 Paul Eggert <eggert@twinsun.com>
8872 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8873 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8874 Use strerror_r that is only a macro, even if it is not a function.
8875 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8876 (private_strerror): Use prototypes, not old-style function definition.
8877 (print_errno_message): New function.
8878 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8880 (error_tail, error, error_at_line): Use it.
8882 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8884 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8886 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8888 * scripts/output-format.sed: Fix bug in one of the s expressions
8889 which used / for one too many things.
8891 * include/unistd.h: Declare __libc_close.
8893 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8895 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8897 2002-12-07 Roland McGrath <roland@redhat.com>
8899 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8900 from 2002-12-06, but remove unnecessary memset call without removing
8901 necessary copy of initialization image.
8903 * Makerules ($(common-objpfx)format.lds): New target.
8904 (common-generated): Add it.
8905 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8906 * scripts/output-format.sed: New file.
8907 * Makefile (distribute): Add it.
8909 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8911 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8912 Reported by Art Haas <ahaas@airmail.net>.
8914 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8916 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8918 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8920 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8922 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8924 * test-skeleton.c (timeout_handler): Allow expected signal to be
8927 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8929 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8931 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8933 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8934 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8935 Reported by Jeff Bailey <jbailey@nisa.net>.
8937 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8939 * sysdeps/generic/libc-tls.c: Undo last patch.
8941 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8943 * include/signal.h: Define raise with libc_hidden_proto.
8945 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8946 __execve instead of snprintf and execve.
8948 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8951 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8953 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8954 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8956 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8958 * misc/syslog.c (log_cleanup): New function.
8959 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8960 (closelog): Likewise.
8962 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8963 * elf/dl-iteratephdr.c: Likewise.
8964 * elf/dl-lookup.c: Likewise.
8965 * elf/dl-misc.c: Likewise.
8966 * elf/dl-open.c: Likewise.
8967 * elf/dl-support.c: Likewise.
8968 * elf/rtld.c: Likewise.
8969 * sysdeps/generic/ldsodefs.h: Likewise.
8970 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8971 * sysdeps/mach/bits/libc-lock.h: Likewise.
8972 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8974 2002-12-06 Roland McGrath <roland@redhat.com>
8976 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8978 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8979 (malloc_starter, memalign_starter, free_starter): Don't define these.
8980 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8981 Don't declare them either.
8982 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8983 __pthread_initialize, so no need to set hooks to *_starter.
8984 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8985 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8986 (__libc_malloc_pthread_startup): New function.
8987 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8989 * malloc/hooks.c (memalign_starter): New function.
8990 * malloc/malloc.c: Declare it.
8991 * malloc/arena.c (save_memalign_hook): New variable.
8992 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8994 * elf/dl-minimal.c (free): Clear the memory.
8995 (calloc): Just call malloc, knowing all memory it returns is cleared.
8997 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8998 malloc and memset; calloc can avoid the zeroing when redundant.
8999 (_dl_tls_setup): Likewise.
9000 * elf/dl-load.c (decompose_rpath): Likewise.
9001 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
9002 call, since memory from sbrk at startup is already zero.
9004 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
9005 error string for failure, null for success. Update callers.
9006 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
9007 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9009 2002-12-05 Jakub Jelinek <jakub@redhat.com>
9011 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
9013 (readahead): Change args to i:iii.
9014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
9015 Change args to i:iii.
9016 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
9019 2002-12-05 Roland McGrath <roland@redhat.com>
9021 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
9022 call all functions rather than none.
9023 Reported by Mark P. Mitchell <mark@codesourcery.com>.
9025 2002-12-04 Roland McGrath <roland@redhat.com>
9027 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
9028 on _nl_current_LC_* variables.
9030 2002-12-05 Ulrich Drepper <drepper@redhat.com>
9032 * dirent/bug-readdir1.c (main): Don't call closedir, just close
9033 the file descriptor. This is testing what the bug report was about.
9035 2002-12-04 Ulrich Drepper <drepper@redhat.com>
9037 * po/be.po: New file.
9039 * argp/Makefile (tests): Add tst-argp1.
9041 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
9042 Change type of _attribute to void*.
9043 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9044 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
9045 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
9046 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9047 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9049 2002-12-04 Roland McGrath <roland@redhat.com>
9051 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
9052 members to the end, so a libpthread compiled with !USE_TLS will still
9053 find other members properly.
9055 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
9056 operand for DEST memory. Fix dummy input operand to use SRC.
9057 Reported by Davin McCall <davmac@ozonline.com.au>.
9059 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
9060 alignment when initializing the DTV entry.
9062 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
9063 when TLS has not been set up, try to set it up if we can.
9064 * elf/tst-tls4.c: Revert last change.
9065 * elf/tst-tls5.c: Likewise.
9066 * elf/tst-tls6.c: Likewise.
9067 * elf/tst-tls7.c: Likewise.
9068 * elf/tst-tls8.c: Likewise.
9069 * elf/tst-tls9.c: Likewise.
9071 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
9072 * sysdeps/generic/ldsodefs.h: Declare it.
9073 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
9074 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
9075 function, broken out of __libc_setup_tls.
9076 (init_static_tls): Likewise.
9077 (__libc_setup_tls): Call them.
9078 (_dl_tls_setup): New function, uses new subroutines.
9080 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
9081 Clear the pointer when returning true.
9082 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
9083 first element of the slotinfo list too.
9085 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
9088 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
9089 (_dl_determine_tlsoffset): Likewise.
9091 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
9092 startup_error_tsd, made global.
9093 (dl_main): Update initialization.
9094 * elf/dl-tsd.c: Likewise.
9095 * sysdeps/generic/ldsodefs.h: Declare it.
9097 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9099 * manual/texinfo.tex: Update from latest upstream version.
9101 2002-12-03 Roland McGrath <roland@redhat.com>
9103 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
9104 area surplus in calculation for sbrk call.
9106 * iconvdata/cp1125.c: New file.
9107 * iconvdata/Makefile (distribute): Add it.
9108 (modules): Add CP1125.
9109 (gen-8bit-gap-modules): Add cp1125.
9110 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
9111 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
9113 2002-12-03 Andreas Jaeger <aj@suse.de>
9115 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
9117 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9119 * sysdeps/posix/system.c (do_system): Make signal handler
9120 installation thread safe.
9122 2002-12-02 Roland McGrath <roland@redhat.com>
9124 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
9125 caller from EXTRA to -.
9126 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9127 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9128 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9130 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
9132 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
9133 bits of RM are cleared.
9135 2002-12-02 Roland McGrath <roland@redhat.com>
9137 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
9138 TLS setup is required.
9139 * elf/tst-tls5.c: Likewise.
9140 * elf/tst-tls6.c: Likewise.
9141 * elf/tst-tls7.c: Likewise.
9142 * elf/tst-tls8.c: Likewise.
9143 * elf/tst-tls9.c: Likewise.
9145 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
9146 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
9147 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
9148 for being null before calling free_slotinfo.
9149 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
9150 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
9152 2002-11-30 Bruno Haible <bruno@clisp.org>
9154 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
9155 (struct __gconv_step): New field __btowc_fct.
9156 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
9157 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
9159 (__gconv_btwoc_ascii): New declaration.
9160 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9161 (__gconv_btwoc_ascii): New function.
9162 * iconv/gconv_builtin.h: Add BtowcFct argument to all
9163 BUILTIN_TRANSFORMATION invocations.
9164 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9165 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
9166 * iconv/gconv_builtin.c (map): New field btowc_fct.
9167 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
9169 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
9170 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
9171 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
9172 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
9173 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
9174 (gconv_init): Initialize __btowc_fct field.
9175 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
9176 * iconv/loop.c: Document ONEBYTE_BODY.
9177 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
9178 Undefine ONEBYTE_BODY at the end.
9179 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
9180 * iconvdata/8bit-gap.c (NONNUL): New macro.
9181 (BODY for FROM_LOOP): Use it.
9182 (ONEBYTE_BODY): New macro.
9183 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
9184 (NONNUL): New macro.
9185 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
9186 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
9187 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
9188 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
9189 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
9190 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
9191 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
9192 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
9193 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
9194 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
9195 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
9196 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
9197 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
9198 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
9199 * iconvdata/ibm932.c: Include <stdbool.h>.
9200 (TRUE, FALSE): Remove macros.
9201 (BODY for FROM_LOOP): Remove unused variable rp1.
9202 (ONEBYTE_BODY): New macro.
9203 (BODY for TO_LOOP): Use bool.
9204 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9205 * iconvdata/ibm943.c: Include <stdbool.h>.
9206 (TRUE, FALSE): Remove macros.
9207 (BODY for FROM_LOOP): Remove unused variable rp1.
9208 (ONEBYTE_BODY): New macro.
9209 (BODY for TO_LOOP): Use bool.
9210 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9211 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9212 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9213 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9214 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9215 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9216 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9217 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9218 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9219 * iconvdata/gbbig5.c: Tweak comment.
9221 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9223 * po/fi.po: Update from translation team.
9225 2002-12-01 Roland McGrath <roland@redhat.com>
9227 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9228 testing getdents64 return value.
9230 * scripts/versions.awk: Don't pass -n flag to sort command.
9232 * posix/bug-regex13.c: Include <string.h>.
9234 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9235 DL_SYSDEP_OSCHECK here.
9236 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9237 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9239 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9240 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9242 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9243 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9245 * include/link.h: Comment typo fix.
9247 2002-12-01 Roland McGrath <roland@frob.com>
9249 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9250 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9251 _POSIX_MEMORY_PROTECTION): Likewise.
9252 (_POSIX_POLL, _POSIX_SELECT): Removed.
9254 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9256 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9257 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9259 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9261 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9263 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9266 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9268 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9269 branch prediction buffers by using unpaired call/ret.
9271 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9273 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9274 first parameters constraint string.
9275 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9277 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9279 * posix/regcomp.c (parse_expression): Set the bit since the back
9280 reference is used in the regular expression.
9281 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9283 (re_node_set_init_copy): Likewise.
9284 * posix/regex_internal.h (state_array_t): New structure.
9285 (re_sub_match_last_t): Likewise.
9286 (re_sub_match_top_t): Likewise.
9287 (re_match_context_t): Add new members.
9288 (re_dfa_t): Likewise.
9289 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9290 to check the matching is really correct, and retry if failed.
9291 Move the routin pruning the impossible nodes from here, ...
9292 (prune_impossible_nodes): To this function.
9293 (check_matching): Invoke check_subexp_matching_top, and replace
9294 redundant checking with transit_state_bkref invocation.
9295 (proceed_next_node): Replace strncmp with memcmp. Reported by
9296 Paolo Bonzini <bonzini@gnu.org>.
9297 (update_cur_sifted_state): Remove search_subexp invocation.
9298 (search_subexp): Remove this function.
9299 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9301 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9302 Remove unused invocation of match_ctx_add_entry.
9303 (transit_state): Invoke check_subexp_matching_top.
9304 (check_subexp_matching_top): New function.
9305 (transit_state_bkref): Remove unused array.
9306 Merge transit_state_bkref_loop.
9307 (transit_state_bkref_loop): Use get_subexp instead of
9308 sift_states_backward. Use search_cur_bkref_entry for optimization.
9309 Merge this function to transit_state_bkref.
9310 (get_subexp): New function.
9311 (get_subexp_sub): Likewise.
9312 (find_subexp_node): Likewise.
9313 (check_arrival): Likewise.
9314 (check_arrival_expand_ecl): Likewise.
9315 (check_arrival_expand_ecl_sub): Likewise.
9316 (expand_bkref_cache): Likewise.
9317 (match_ctx_init): Initialize new members.
9318 (match_ctx_clean): New function.
9319 (match_ctx_free): Release new members.
9320 (match_ctx_free_subtops): New function.
9321 (match_ctx_add_entry): Fix indent.
9322 (search_cur_bkref_entry): New function.
9323 (match_ctx_add_subtop): Likewise.
9324 (match_ctx_add_sublast): Likewise.
9326 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9328 * iconv/Makefile (tests): Remove tst-iconv4.c
9329 * iconv/tst-iconv4.c: Moved to...
9330 * iconvdata/tst-iconv4.c: ...here. New file.
9331 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9333 2002-11-25 Roland McGrath <roland@redhat.com>
9335 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9336 Grok AF_LINK if defined.
9337 From Momchil Velikov <velco@fadata.bg>.
9339 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9340 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9341 Reported by Momchil Velikov <velco@fadata.bg>.
9343 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9344 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9345 (__ifreq): Count up NIFS that way too.
9346 Reported by Momchil Velikov <velco@fadata.bg>.
9348 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9350 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9351 and <fpu_control.h>.
9353 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9355 * elf/elf.h (EM_ST19): Fix typo.
9357 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9359 * include/errno.h (__set_errno): Define as errno = val
9362 2002-11-24 Roland McGrath <roland@redhat.com>
9364 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9365 * sysdeps/posix/writev.c: Likewise.
9366 From Momchil Velikov <velco@fadata.bg>.
9368 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9369 calling *GL(dl_error_catch_tsd) for a thread-local location.
9370 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9371 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9372 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9374 * libio/iofflush.c: Add libc_hidden_def.
9375 * libio/iofwrite.c: Likewise.
9376 * sysdeps/generic/sigtimedwait.c: Likewise.
9377 * sysdeps/generic/sigwaitinfo.c: Likewise.
9378 * sysdeps/posix/sigwait.c: Likewise.
9379 Reported by Momchil Velikov <velco@fadata.bg>.
9381 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9382 to match <arpa/inet.h> declaration.
9383 * inet/inet_netof.c (inet_netof): Likewise.
9384 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9385 Reported by Momchil Velikov <velco@fadata.bg>.
9387 * configure.in: Skip AUTOCONF check under --without-cvs.
9388 * configure: Regenerated.
9390 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9391 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9392 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9394 2002-11-24 Andreas Schwab <schwab@suse.de>
9396 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9399 2002-11-19 Jim Meyering <jim@meyering.net>
9401 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9403 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9405 2002-11-23 Roland McGrath <roland@redhat.com>
9407 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9408 Just produce hex output for datum sizes.
9410 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9411 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9413 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9415 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9416 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9417 and __unused3 fields.
9418 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9419 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9420 and __unused2 fields.
9421 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9422 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9423 __unused3, and __unused4 fields.
9425 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9426 obtain lowest address for profiling in __monstartup call.
9428 2002-11-21 Roland McGrath <roland@redhat.com>
9430 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9431 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9433 * locale/localeinfo.h (struct locale_data): Revert last change.
9435 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9436 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9438 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9439 __NR_pread64 if not defined.
9440 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9441 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9443 2002-11-21 Roland McGrath <roland@frob.com>
9445 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9446 __libc_multiple_libcs here. Call __setfpucw.
9448 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9450 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9452 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9453 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9454 CLONE_CHILD_*TID flags.
9456 2002-11-20 Andreas Jaeger <aj@suse.de>
9458 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9459 We pass struct ucontext on x86-64.
9461 (GET_FRAME): Adjust.
9462 (GET_STACK): Adjust.
9464 2002-11-20 Roland McGrath <roland@redhat.com>
9466 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9467 conditionalize [! DO_VERSIONING] #error.
9469 * scripts/abilist.awk: Grok function descriptor symbols.
9471 * intl/tst-gettext.c (main): Check return values from setlocale.
9472 Add necessary unsetenv's to make LANG=existing-locale check work.
9474 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9475 so aborted prior runs don't confuse things.
9477 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9478 Use uintptr_t instead of unsigned int for `word' member.
9479 (_NL_CURRENT_WORD): Cast to uint32_t.
9481 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9484 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9486 * elf/tls-macros.h: Add IA-64 definitions.
9487 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9489 * iconv/Makefile (tests): Add tst-iconv4.
9490 * iconv/tst-iconv4.c: New file.
9492 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9493 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9494 __GCONV_INCOMPLETE_INPUT.
9495 (ucs4le_internal_loop): Likewise.
9496 (ucs4le_internal_loop_unaligned): Likewise.
9497 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9498 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9499 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9501 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9504 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9505 * sysdeps/posix/getaddrinfo.c: Likewise.
9507 * include/alloca.h (extend_alloca): New define. Based on stack
9508 direction it'll try to append to the previouls allocated buffer.
9510 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9512 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9513 use the same service for AF_INET and AF_INET6.
9515 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9517 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9518 of stack space instead of 16k.
9520 2002-11-18 Wolfram Gloger <wg@malloc.de>
9523 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9524 nothing if not initialized. Bug report from Marcus Brinkmann
9525 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9527 2002-11-19 Roland McGrath <roland@redhat.com>
9529 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9532 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9533 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9534 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9535 * configure: Regenerated.
9537 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9539 * include/dlfcn.h: __libc_dlopen is now a macro calling
9540 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9541 (__libc_dlopen_mode): New prototype.
9542 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9543 new parameter. Store new parameter in mode field of structure passed
9545 (struct do_dlopen_args): Add new field mode.
9546 (do_dlopen): Pass mode from parameter structure to _dl_open.
9548 2002-11-11 Randolf Chung <tausq@debian.org>
9550 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9551 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9552 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9554 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9556 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9557 Set -mdisable-fpregs for this file.
9559 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9561 * sysdeps/unix/sysv/linux/configure.in:
9562 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9563 from gcc-3.0 era for backwards compatibility.
9564 * sysdeps/unix/sysv/linux/configure: Regenerate.
9566 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9567 Define mcontext_t as a sigcontext.
9569 2002-11-18 Roland McGrath <roland@redhat.com>
9571 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9572 Free memory in `last_result' if it was used.
9574 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9575 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9576 Do the parsing inline instead of copying strings and calling
9577 inet_network, and properly skip all alias names not matching the form.
9579 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9581 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9583 * manual/pattern.texi (Wordexp Example): Fix sample code.
9585 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9586 childs stack which will be loaded into the %esi register.
9588 2002-11-14 Paul Eggert <eggert@twinsun.com>
9590 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9591 overflow when skipping the question part and when unpacking aliases.
9593 2002-11-15 Roland McGrath <roland@redhat.com>
9595 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9596 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9597 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9599 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9601 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9602 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9604 2002-11-15 Roland McGrath <roland@redhat.com>
9606 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9607 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9608 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9609 (+make-include-of-dep): New canned sequence.
9611 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9612 From Dmitry V. Levin <ldv@altlinux.org>.
9614 2002-11-14 Roland McGrath <roland@redhat.com>
9616 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9617 * inet/herrno.c (__libc_h_errno): Likewise.
9618 * resolv/res_libc.c (__libc_res): Likewise.
9619 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9620 (__res_state) [! USE___THREAD]: Don't define as weak.
9621 * csu/Versions: Revert last change.
9622 * resolv/Versions: Revert last change.
9624 * Makerules ($(common-objpfx)%.make): New pattern rule.
9625 * tls.make.c: New file.
9626 * Makefile (distribute): Add it.
9628 * sysdeps/generic/errno.c [! USE___THREAD]
9629 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9630 with compat_symbol so they are not link-time visible.
9631 [! USE___THREAD] (__libc_errno): New alias for errno.
9632 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9633 Add __libc_errno here.
9634 * inet/herrno.c [USE___THREAD]: Use this conditional
9635 in place of [USE_TLS && HAVE___THREAD].
9636 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9637 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9639 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9640 * resolv/res_libc.c [! USE___THREAD]
9641 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9642 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9643 (__libc_res): Define as alias for _res.
9644 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9645 Add __libc_h_errno and __libc_res here.
9647 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9649 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9650 * resolv/Versions (h_errno, _res): Likewise.
9652 2002-11-14 Roland McGrath <roland@redhat.com>
9654 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9655 (%.symlist): Likewise.
9657 2002-11-13 Roland McGrath <roland@redhat.com>
9659 * scripts/abilist.awk: New file.
9660 * Makefile (distribute): Add it.
9661 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9662 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9663 [$(subdir) = elf] (tests): Depend on libc.symlist.
9664 (generated, common-generated): Add those files.
9666 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9667 * configure: Regenerated.
9668 * config.make.in (OBJDUMP): New variable, substituted by configure.
9670 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9671 (mallochook, reallochook): Set them up.
9672 (checkhdr): Check HDR->magic2 value.
9673 (freehook): Reset HDR->magic2.
9674 (memalignhook): New static function.
9675 (old_memalign_hook): New static variable.
9676 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9678 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9681 2002-11-13 Andreas Jaeger <aj@suse.de>
9683 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9685 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9687 2002-11-11 Paul Eggert <eggert@twinsun.com>
9689 * manual/crypt.texi (Cryptographic Functions): Mention that
9690 the MD5 one-way algorithm is compatible with BSD's.
9692 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9694 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9696 (re_string_reconstruct): Calculate the context by itself when the
9697 offset points out of the valid range.
9698 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9699 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9700 (IS_WIDE_WORD_CHAR): New macro.
9701 (IS_WIDE_NEWLINE): New macro.
9703 2002-11-12 Andreas Jaeger <aj@suse.de>
9705 * sysdeps/x86_64/strchr.S: Don't use one register for two
9706 purposes, this fixes a bug noticed by test-strchr.c.
9708 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9711 2002-11-12 Roland McGrath <roland@redhat.com>
9713 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9714 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9716 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9717 instead of <pt-machine.h>.
9718 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9720 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9722 2002-11-10 Roland McGrath <roland@redhat.com>
9724 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9725 Call fputs instead of fwprintf (simpler to follow in debugger).
9727 * crypt/md5-crypt.c: Doc fix.
9729 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9730 the beginning of generated target commands.
9732 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9733 dependencies for these in case implicit rule search skipped the
9734 nonexistent source directory.
9735 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9736 files with $(object-suffixes) as targets too.
9737 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9738 and a target for it using $(make-target-directory).
9740 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9742 2002-11-10 Roland McGrath <roland@frob.com>
9744 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9745 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9747 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9748 l_start == 0 and l_len == 1 as we do l_len == 0.
9750 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9752 * po/da.po: Update from translation team.
9754 2002-11-10 Roland McGrath <roland@redhat.com>
9756 * config.make.in (includedir): New variable, substituted by configure.
9757 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9758 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9760 2002-11-10 Andreas Jaeger <aj@suse.de>
9762 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9763 REG_OLDMASK and REG_CR2 to synch with kernel header.
9766 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9768 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9769 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9770 (__nss_setent): Likewise.
9771 (__nss_getent_r): Likewise.
9772 * inet/getnetgrent_r.c (innetgr): Likewise.
9773 (__internal_setnetgrent_reuse): Likewise.
9774 (internal_getnetgrent_r): Likewise.
9775 * inet/ether_hton.c (ether_hostton): Likewise.
9776 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9777 * sunrpc/netname.c (netname2user): Likewise.
9778 * sunrpc/publickey.c (getpublickey): Likewise.
9779 (getsecretkey): Likewise.
9781 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9783 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9784 error in range calculation.
9786 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9788 * string/test-strspn.c (do_test): Ensure zero termination.
9789 * string/test-strpbrk.c (do_test): Likewise.
9790 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9791 * string/test-strncpy.c (stupid_strncpy): Likewise.
9792 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9794 2002-10-08 Roland McGrath <roland@redhat.com>
9796 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9799 2002-09-22 H.J. Lu <hjl@gnu.org>
9801 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9802 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9803 only if __NR_mmap2 is defined.
9805 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9806 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9807 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9808 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9810 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9812 * posix/bug-regex13.c (tests): Add new test.
9814 * string/test-strchr.c (stupid_strchr): New function.
9815 (do_random_tests): Make sure the string is zero terminated.
9816 * string/test-strpbrk.c (stupid_strpbrk): New function.
9817 (do_random_tests): Make sure the string is zero terminated.
9818 * string/test-strcmp.c (stupid_strcmp): New function.
9819 (do_random_tests): Make sure the strings are zero terminated.
9820 * string/test-strspn.c (stupid_strspn): New function.
9821 (simple_strspn): Rename rej argument to acc.
9822 (do_random_tests): Make sure the string is zero terminated.
9823 * string/test-strcspn.c (stupid_strcspn): New function.
9824 * string/test-strncpy.c (stupid_strncpy): New function.
9825 * string/test-stpncpy.c (stupid_stpncpy): New function.
9826 * string/test-strncmp.c (stupid_strncmp): New function.
9827 (do_random_tests): Make sure the strings are zero terminated.
9828 * string/test-string.h (impl_t): Change test into long.
9829 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9831 2002-11-08 Roland McGrath <roland@redhat.com>
9833 * sysdeps/ia64/elf/configure.in: Add TLS check.
9834 From Ian Wienand <ianw@cse.unsw.edu.au>.
9835 * sysdeps/ia64/elf/configure: Regenerated.
9837 2002-11-07 Roland McGrath <roland@redhat.com>
9839 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9840 place of _IO_new_do_write.
9841 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9842 #undef before versioned_symbol use.
9844 2002-11-07 Richard Henderson <rth@redhat.com>
9846 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9847 * configure: Regenerated.
9848 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9849 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9850 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9851 _dl_fini via gp-relative relocations.
9852 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9854 * elf/tls-macros.h: Add alpha versions.
9855 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9856 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9857 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9858 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9859 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9860 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9861 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9862 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9863 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9864 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9865 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9866 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9867 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9868 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9869 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9870 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9871 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9872 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9874 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9875 Kill argument registers across the inline syscall.
9877 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9879 * linuxthreads/sysdeps/alpha/tls.h: New file.
9880 * sysdeps/alpha/dl-tls.h: New file.
9882 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9884 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9885 (gmon_initializer): New function.
9886 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9887 __gmon_start__ here. Call it from gmon_initializer() instead.
9889 2002-03-12 H.J. Lu <hjl@gnu.org>
9891 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9892 tst-array2, and tst-array3.
9893 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9894 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9895 ($(objpfx)tst-array1.out): New target.
9896 ($(objpfx)tst-array2): Likewise.
9897 ($(objpfx)tst-array2.out): Likewise.
9898 ($(objpfx)tst-array3.out): Likewise.
9899 * elf/tst-array1.c: New file.
9900 * elf/tst-array1.exp: Likewise.
9901 * elf/tst-array2.c: Likewise.
9902 * elf/tst-array2dep.c: Likewise.
9903 * elf/tst-array2.exp: Likewise.
9904 * elf/tst-array3.c: Likewise.
9906 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9908 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9909 Don't add L->l_addr to array entry values.
9911 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9913 * string/test-string.h: New file.
9914 * string/test-strlen.c: New file.
9915 * string/test-string.h: New file.
9916 * string/test-strcmp.c: New file.
9917 * string/test-strchr.c: New file.
9918 * string/test-strrchr.c: New file.
9919 * string/test-strcpy.c: New file.
9920 * string/test-stpcpy.c: New file.
9921 * string/test-strncpy.c: New file.
9922 * string/test-stpncpy.c: New file.
9923 * string/test-strpbrk.c: New file.
9924 * string/test-strcspn.c: New file.
9925 * string/test-strspn.c: New file.
9926 * string/test-strcat.c: New file.
9927 * string/test-strncmp.c: New file.
9928 * string/test-memchr.c: New file.
9929 * string/test-memcmp.c: New file.
9930 * string/test-memset.c: New file.
9931 * string/test-memcpy.c: New file.
9932 * string/test-mempcpy.c: New file.
9933 * string/test-memmove.c: New file.
9934 * string/Makefile (strop-tests): New variable.
9935 (tests): Add strop-tests.
9936 (distribute): Add test-string.h.
9938 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9940 * posix/regcomp.c: Use tabs instead of spaces.
9941 * posix/regexec.c: Likewise.
9942 * posix/regex_internal.h: Likewise.
9944 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9946 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9948 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9950 (regcomp): Don't set can_be_null here.
9951 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9952 (re_compile_internal): Clear can_be_null, set regs_allocated.
9954 * posix/regcomp.c (re_set_fastmap): New function.
9955 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9956 COMPLEX_BRACKET check.
9957 * posix/regexec.c (re_search_internal): Optimize searching with
9958 fastmap. Call re_string_reconstruct even if match_first is
9959 smaller than raw_mbs_idx.
9961 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9963 * posix/regcomp (free_dfa_content): Use free_state.
9964 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9965 pointers in case that realloc failed.
9966 (re_node_set_merge): Likewise.
9967 (register_state): Likewise.
9968 (create_newstate_common): Invoke memory release functions in case of
9970 (create_ci_newstate): Likewise.
9971 (create_cd_newstate): Likewise.
9972 (free_state): New function.
9973 * posix/regexec.c (re_search_internal): Invoke memory release
9974 functions in case of error conditions.
9975 (sift_states_backward): Likewise.
9976 (merge_state_array): Likewise.
9977 (add_epsilon_src_nodes): Likewise.
9978 (sub_epsilon_src_nodes): Likewise.
9979 (search_subexp): Likewise.
9980 (sift_states_bkref): Likewise.
9981 (transit_state_sb): Likewise.
9982 (transit_state_mb): Likewise.
9983 (transit_state_bkref_loop): Likewise.
9984 (group_nodes_into_DFAstates): Likewise.
9985 (push_fail_stack): Don't edit pointers in case that realloc failed.
9986 (extend_buffers): Likewise.
9987 (match_ctx_add_entry): Likewise.
9989 2002-11-06 Roland McGrath <roland@redhat.com>
9991 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9992 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9994 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9995 * configure: Regenerated.
9997 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9999 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
10000 If re_compile_internal failed free fastmap buffer.
10001 (free_dfa_content): Broken out of regfree function. Frees all dfa
10003 (regfree): Add free_dfa_content.
10004 (re_compile_internal): If any of the called functions fails free
10005 all dfa related memory.
10007 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10009 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
10010 warnings from the kernel headers.
10012 2002-11-05 Roland McGrath <roland@redhat.com>
10014 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
10015 From Johannes Stezenbach <js@convergence.de>.
10017 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
10018 #errlist-compat magic comment to give 123 as size.
10019 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
10020 (libc: GLIBC_2.2): ... here.
10021 (libc: GLIBC_2.3): Likewise.
10023 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10025 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
10026 which happens at the beginning so that we can unload modules in
10029 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10031 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
10032 under [__USE_MISC || _ASM].
10034 * elf/elf.h: Remove the obsolete SH TLS relocations.
10036 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10038 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
10040 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
10043 __NR_pread64 and __NR_pwrite64.
10044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10045 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
10047 Revert change to use INLINE_SYSCALL.
10048 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10049 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10050 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10051 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
10053 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10055 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
10056 Update clobber list and add a comment about the syscall ABI.
10058 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
10059 s_pwrite64, s_ftruncate, s_truncate): Re-add.
10061 2002-11-05 Jakub Jelinek <jakub@redhat.com>
10063 * iconv/gconv_dl.c (free_mem): Clear loaded.
10064 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
10067 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10069 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
10071 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
10072 as old code without locking. _IO_seekoff calls this function after
10073 locking the stream.
10074 * libio/ioseekpos.c: Likewise for _IO_seekpos.
10075 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
10076 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
10078 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
10079 of _IO_seekoff_internal.
10080 (_IO_rewind): Likewise.
10081 * libio/ioftell.c: Likewise.
10082 * libio/ftello.c: Likewise.
10083 * libio/ftello64.c: Likewise.
10084 * libio/iofgetpos.c: Likewise.
10085 * libio/iofgetpos64.c: Likewise.
10086 * libio/oldiofgetpos.c: Likewise.
10087 * libio/oldiofgetpos64.c: Likewise.
10088 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
10089 _IO_seekpos_internal.
10090 * libio/iofsetpos64.c: Likewise.
10091 * libio/oldiofsetpos.c: Likewise.
10092 * libio/oldiofsetpos64.c: Likewise.
10094 2002-11-04 Roland McGrath <roland@redhat.com>
10096 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
10097 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
10098 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
10099 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
10100 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10101 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10102 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10103 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
10104 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
10105 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
10107 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
10108 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
10109 Remove these, no longer used.
10111 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
10114 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
10115 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
10116 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
10117 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
10118 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
10121 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
10122 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10123 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
10125 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10126 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
10128 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10130 2002-11-03 Roland McGrath <roland@redhat.com>
10132 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
10133 `_dl_tls_static_used'.
10134 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
10135 (__libc_setup_tls): Initialize it. Let the initial value of
10136 _dl_tls_static_size indicate some surplus space in the computed value.
10137 * elf/dl-open.c (_dl_tls_static_size): New variable.
10138 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
10139 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
10140 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
10141 (CHECK_STATIC_TLS): Use it.
10142 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
10143 closed objects occupied a trailing contiguous chunk of static TLS area.
10145 2002-10-18 Bruno Haible <bruno@clisp.org>
10147 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
10149 2002-11-04 Ulrich Drepper <drepper@redhat.com>
10151 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
10152 _wide_data->_IO_read_end if adjustment can be made in the current
10155 * sysdeps/unix/sysv/linux/fexecve.c: New file.
10157 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
10158 wide oriented streams are used.
10160 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
10161 service hasn't been used [PR libc/4744].
10163 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
10164 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
10166 * manual/examples/dir.c: Don't include <stddef.h>.
10167 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
10168 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
10170 2002-11-02 H.J. Lu <hjl@gnu.org>
10172 * stdio-common/reg-printf.c: Include <stddef.h>.
10174 2002-11-03 Ulrich Drepper <drepper@redhat.com>
10176 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
10178 * po/ca.po: Update from translation team.
10179 * po/es.po: Likewise.
10181 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
10182 is defined write out memory map.
10183 * sysdeps/unix/sysv/linux/segfault.c: New file.
10185 2002-11-02 Roland McGrath <roland@redhat.com>
10187 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
10188 pointers that can alias.
10189 Reported by Daniel Jacobowitz <drow@mvista.com>.
10191 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
10193 2002-11-02 Roland McGrath <roland@redhat.com>
10195 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
10196 description to be clearer and to say that *RESULT is set to ENTRY.
10198 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10200 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10201 dests_ch arrays together. Alloca or malloc dest_states,
10202 dest_states_word and dest_states_nl arrays together. Free memory on
10205 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10207 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10208 and current_saltbits.
10210 2002-11-02 Roland McGrath <roland@redhat.com>
10212 * stdio-common/reg-printf.c: Include <stdlib.h>.
10214 2002-11-02 H.J. Lu <hjl@gnu.org>
10216 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10217 caller to EXTRA instead of execve.
10219 2002-11-01 Roland McGrath <roland@redhat.com>
10221 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10222 in place of [!(USE_TLS && HAVE___THREAD)].
10223 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10225 2002-10-31 Roger Sayle <roger@eyesopen.com>
10227 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10229 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10231 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10232 without defining FP_ROUNDMODE.
10234 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10236 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10237 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10239 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10240 (OLD_SIGLIST_SIZE): Define.
10241 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10242 (OLD_SIGLIST_SIZE): Define.
10243 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10245 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10247 * sysdeps/ia64/strncpy.S: Fix recovery code.
10249 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10251 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10253 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10255 * elf/dl-libc.c (free_mem): Likewise.
10256 * iconv/gconv_conf.c (free_mem): Likewise.
10257 * iconv/gconv_db.c (free_mem): Likewise.
10258 * iconv/gconv_dl.c (free_mem): Likewise.
10259 * iconv/gconv_cache.c (free_mem): Likewise.
10260 * intl/finddomain.c (free_mem): Likewise.
10261 * intl/dcigettext.c (free_mem): Likewise.
10262 * locale/setlocale.c (free_mem): Likewise.
10263 * misc/fstab.c (fstab_free): Likewise.
10264 * nss/nsswitch.c (free_mem): Likewise.
10265 * posix/regcomp.c (free_mem): Likewise.
10266 * resolv/gai_misc.c (free_res): Likewise.
10267 * stdlib/fmtmsg.c (free_mem): Likewise.
10268 * sunrpc/clnt_perr.c (free_mem): Likewise.
10269 * sysdeps/generic/setenv.c (free_mem): Likewise.
10270 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10271 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10272 * time/tzset.c (free_mem): Likewise.
10273 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10274 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10275 * malloc/set-freeres.c (__libc_freeres): Likewise.
10277 * login/getutent.c: Include stdlib.h instead of stddef.h.
10278 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10279 (__getutent): Allocate buffer the first time it is run.
10280 * login/getutid.c: Include stdlib.h instead of stddef.h.
10281 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10282 (__getutid): Allocate buffer the first time it is run.
10283 * login/getutline.c: Include stdlib.h instead of stddef.h.
10284 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10285 (__getutline): Allocate buffer the first time it is run.
10286 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10287 (mtrace): Allocate malloc_trace_buffer.
10288 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10289 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10290 * string/strerror.c: Include libintl.h and errno.h.
10291 (buf): New variable.
10292 (strerror): Only allocate buffer if actually needed (unknown error).
10293 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10296 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10298 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10299 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10301 (__libc_freeres): Free all pointers in that section.
10302 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10303 commands when creating .lds script.
10304 (LDSEDCMD-c.so): New variable.
10305 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10306 (rcmd_af): Use strdup to allocate ahostbuf.
10307 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10308 (rexec_af): Use strdup to allocate ahostbuf.
10309 * stdio-common/reg-printf.c (printf_funcs): Remove.
10310 (__printf_arginfo_table): Change into printf_arginfo_function **.
10311 Add libc_freeres_ptr.
10312 (__register_printf_function): Allocate __printf_arginfo_table
10313 and __printf_function_table the first time it is called.
10314 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10315 printf_arginfo_function **.
10316 (parse_one_spec): Add __builtin_expect.
10317 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10318 (free_mem): Remove.
10319 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10320 (free_mem): Remove.
10321 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10322 (string_space, map): Add libc_freeres_ptr.
10323 (free_mem): Remove.
10324 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10325 (free_mem): Remove.
10326 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10327 (free_mem): Remove.
10328 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10329 (buffer): Add libc_freeres_ptr.
10330 (free_mem): Remove for _LIBC.
10331 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10332 (free_mem): Remove.
10333 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10334 (free_mem): Remove.
10335 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10336 (free_mem): Remove.
10337 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10338 (free_mem): Remove.
10339 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10340 (free_mem): Remove.
10341 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10342 (free_mem): Remove.
10343 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10345 (free_mem): Remove.
10346 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10348 (free_mem): Remove.
10350 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10352 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10353 instead of duplicating the whole function in libc.
10355 2002-10-31 Roland McGrath <roland@redhat.com>
10357 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10358 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10360 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10362 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10363 32bit-predefine when creating .new32 list and -U for each
10364 32bit-predefine when creating .new64 list.
10365 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10367 2002-10-29 Andreas Schwab <schwab@suse.de>
10369 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10370 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10372 2002-10-25 Roland McGrath <roland@redhat.com>
10374 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10375 * sysdeps/unix/sysv/linux/configure: Regenerated.
10377 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10378 _dl_starting_up decl.
10380 2002-10-20 H.J. Lu <hjl@gnu.org>
10382 * sysdeps/unix/sysv/linux/configure.in: Don't check
10383 /lib/modules/`uname -r`/build/include for kernel headers if
10385 * sysdeps/unix/sysv/linux/configure: Regenerated.
10387 2002-10-25 Roland McGrath <roland@redhat.com>
10389 * math/math.h (M_LOG2El): Correct the value.
10390 From Stephen L Moshier <steve@moshier.net>.
10392 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10393 conditional from __libc_multiple_libcs access. Remove kludge for weak
10394 symbol access with old compilers we no longer support.
10395 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10396 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10398 2002-10-25 Roland McGrath <roland@redhat.com>
10400 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10401 implement SV_RESETHAND by translating it to SA_RESETHAND.
10403 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10405 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10406 type on ELF64 platforms.
10408 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10410 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10412 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10414 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10416 * elf/dl-misc.c: Include <sysdep.h>.
10417 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10419 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10420 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10421 (INLINE_SYSCALL): Use that.
10422 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10423 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10424 (INLINE_SYSCALL): Use that.
10425 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10426 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10427 (INLINE_SYSCALL): Use that.
10428 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10430 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10431 (__INTERNAL_SYSCALL_STRING): Define.
10432 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10434 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10435 (__INTERNAL_SYSCALL_STRING): Define.
10436 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10437 __SYSCALL_STRING to inline_syscall*.
10438 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10440 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10441 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10444 2002-10-24 Roland McGrath <roland@redhat.com>
10446 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10447 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10448 * sysdeps/powerpc/elf/libc-start.c: Or here.
10449 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10450 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10451 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10452 * sysdeps/generic/libc-start.c: Or here.
10453 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10454 access with [! SHARED].
10455 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10457 * libio/bug-wfflush.c: New file.
10458 * libio/Makefile (tests): Add bug-wfflush.
10460 2002-10-23 Roland McGrath <roland@redhat.com>
10462 * stdio-common/tst-fphex.c: New file.
10463 * stdio-common/Makefile (tests): Add tst-fphex.
10464 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10465 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10466 chars always before the value digits.
10467 Reported by James Antill <james.antill@redhat.com>.
10469 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10471 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10472 (free_mem): New function.
10473 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10474 if not cross compiling.
10475 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10476 (bug-regex14-ENV): Set.
10477 (bug-regex14-mem): New target.
10478 * posix/bug-regex14.c: New file.
10480 2002-10-23 Roland McGrath <roland@redhat.com>
10482 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10483 target, so we don't touch it when the link fails.
10485 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10486 Check for the result overflowing off_t and fail with EOVERFLOW.
10487 * libio/ioftell.c (_IO_ftell): Likewise.
10488 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10490 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10491 use a temporary timeval on the stack for gettimeofday and copy it.
10492 * login/logout.c (logout): Likewise.
10493 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10495 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10496 Use __SWORD_TYPE instead of int for member types.
10497 (struct statfs64): Likewise.
10498 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10499 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10500 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10501 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10502 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10504 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10505 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10506 (ST_NODIRATIME): Restore fixed value of 2048.
10507 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10508 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10510 Rearranged <bits/types.h> definitions to reduce duplication.
10511 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10512 <bits/wordsize.h> and new header <bits/typesizes.h>.
10513 * posix/Makefile (headers): Add bits/typesizes.h here.
10514 * sysdeps/generic/bits/typesizes.h: New file.
10515 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10516 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10517 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10518 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10519 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10520 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10521 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10522 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10523 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10524 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10525 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10526 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10527 * signal/signal.h: Likewise.
10529 * streams/stropts.h: Include <bits/xtitypes.h>.
10530 * streams/Makefile (headers): Add bits/xtitypes.h here.
10531 * sysdeps/generic/bits/xtitypes.h: New file.
10532 * sysdeps/s390/bits/xtitypes.h: New file.
10533 * sysdeps/ia64/bits/xtitypes.h: New file.
10534 * sysdeps/x86_64/bits/xtitypes.h: New file.
10536 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10537 * sysdeps/generic/bits/ipctypes.h: New file.
10538 * sysdeps/mips/bits/ipctypes.h: New file.
10539 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10540 * sysdeps/gnu/bits/msq.h: Likewise.
10541 * sysvipc/sys/ipc.h: Likewise.
10543 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10545 * elf/dl-load.c (struct filebuf): For buf element to have the
10546 alignment of ElfXX_Ehdr since this is what will be stored in it.
10548 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10550 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10551 into pointer to locrec_offset.
10552 (add_locale_to_archive): Adjust callers. Free normalized_name right
10553 before returning, not immediately after add_locale, pass it to
10554 add_alias if not NULL instead of name. Rename second normalized_name
10555 occurence to nnormalized_codeset_name.
10557 * locale/programs/locarchive.c (enlarge_archive): Make sure
10558 string_size is always a multiple of 4.
10559 Reported by Andreas Schwab <schwab@suse.de>.
10561 2002-10-21 Andreas Schwab <schwab@suse.de>
10563 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10564 caller to EXTRA instead of execve, since the latter has a
10565 higher-priority implementation in linuxthreads.
10567 2002-10-21 Roland McGrath <roland@redhat.com>
10569 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10570 slotinfo list's len member to the proper size, not just 1.
10571 Initialize static_map.l_tls_initimage.
10573 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10574 dtv_slotinfo_list element containing new modules' l_tls_modid.
10576 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10577 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10578 * elf/Makefile (tests): Add tst-tls9.
10579 (tests-static): Add tst-tls9-static.
10580 (tst-tls9-static-ENV): New variable.
10581 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10583 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10584 modids used by partially loaded modules being closed can't be known.
10586 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10588 * posix/Makefile: Add a test case for the bug reported by Aharon
10589 Robbins <arnold@skeeve.com>.
10590 * posix/bug-regex13.c: New file.
10591 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10593 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10595 * csu/gmon-start.c: Pretty printing.
10597 2002-10-19 Art Haas <ahaas@neosoft.com>
10599 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10600 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10601 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10602 * configure: Regenerated.
10604 2002-10-19 Roland McGrath <roland@redhat.com>
10606 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10607 and then set $subdirs directly, because the new Autoconf breaks
10608 compatibility in every way imaginable and insists on whining
10609 about usage that worked since the dawn of time.
10610 * configure: Regenerated.
10612 * configure: Regenerated (using Autoconf 2.54).
10613 * sysdeps/alpha/elf/configure: Likewise.
10614 * sysdeps/generic/configure: Likewise.
10615 * sysdeps/i386/elf/configure: Likewise.
10616 * sysdeps/ia64/elf/configure: Likewise.
10617 * sysdeps/mach/hurd/configure: Likewise.
10618 * sysdeps/mach/configure: Likewise.
10619 * sysdeps/unix/configure: Likewise.
10620 * sysdeps/unix/common/configure: Likewise.
10621 * sysdeps/unix/sysv/aix/configure: Likewise.
10622 * sysdeps/unix/sysv/linux/configure: Likewise.
10623 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10624 * sysdeps/x86_64/elf/configure: Likewise.
10626 * config.make.in: Nix completely-soft nonsense.
10627 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10628 of machine directories instead of fpu subdirectory.
10629 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10630 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10631 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10632 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10633 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10634 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10635 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10636 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10637 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10638 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10639 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10640 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10641 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10642 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10643 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10644 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10645 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10646 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10647 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10648 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10649 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10650 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10651 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10652 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10653 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10654 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10655 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10656 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10657 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10658 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10659 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10660 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10661 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10662 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10663 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10664 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10665 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10666 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10667 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10668 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10670 2002-10-19 Bruno Haible <bruno@clisp.org>
10672 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10674 2002-10-18 Roland McGrath <roland@redhat.com>
10676 * io/Makefile (routines): Add lchmod.
10677 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10678 * sysdeps/generic/lchmod.c: New file.
10679 * sysdeps/mach/hurd/lchmod.c: New file.
10680 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10682 2002-10-18 Art Haas <ahaas@neosoft.com>
10684 * configure.in: Remove remaining AC_FD_CC macros, and replace
10685 AC_FD_MSG with AS_MESSAGE_FD.
10687 2002-10-18 Roland McGrath <roland@redhat.com>
10689 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10690 typos: VALUE -> FINALADDR.
10692 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10693 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10694 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10695 (inline_syscall6): Move these macros ...
10696 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10698 * configure.in (libc_link_dests, libc_link_sources): Remove these
10699 variables and the AC_LINK_FILES call.
10701 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10702 change to put new symbols here instead of in GLIBC_2.2.
10703 * sysdeps/powerpc/Subdirs: Move this file ...
10704 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10706 2002-10-07 Roland McGrath <roland@redhat.com>
10708 * sysdeps/generic/bits/time.h: Replaced with contents of the
10709 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10710 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10711 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10712 macros is ok even for architectures that don't now implement them.
10713 * sysdeps/mach/hurd/bits/time.h: File removed.
10714 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10715 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10716 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10717 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10718 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10720 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10722 * configure.in: Replace obsolete AC_OUTPUT syntax with
10723 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10725 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10726 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10728 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10729 * sysdeps/alpha/elf/configure.in: Likewise.
10730 * sysdeps/i386/elf/configure.in: Likewise.
10731 * sysdeps/mach/hurd/configure.in: Likewise.
10732 * sysdeps/x86_64/elf/configure.in: Likewise.
10734 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10736 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10737 * sysdeps/generic/configure.in: Likewise.
10738 * sysdeps/i386/elf/configure.in: Likewise.
10739 * sysdeps/ia64/elf/configure.in: Likewise.
10740 * sysdeps/mach/configure.in: Likewise.
10741 * sysdeps/mach/hurd/configure.in: Likewise.
10742 * sysdeps/unix/configure.in: Likewise.
10743 * sysdeps/unix/common/configure.in: Likewise.
10744 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10745 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10746 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10747 * sysdeps/x86_64/elf/configure.in: Likewise.
10749 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10750 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10751 that it's obvious when extra autoconf machinery is being dragged in.
10753 2002-10-18 Roland McGrath <roland@redhat.com>
10755 * configure.in: Remove bogus echo included in
10756 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10757 * configure: Regenerated.
10759 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10761 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10762 (statfs_filesize_max): New function.
10763 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10764 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10765 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10766 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10767 statfs_filesize_max.
10768 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10769 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10770 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10772 2002-10-17 Roland McGrath <roland@redhat.com>
10774 * configure.in (MIG): Just AC_SUBST it here.
10775 * configure: Regenerated.
10776 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10777 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10778 * sysdeps/mach/configure: Regenerated.
10780 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10781 and AC_PROVIDE([_AS_CR_PREPARE]).
10783 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10784 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10786 * elf/dl-support.c: Move _dl_tls_* variables to ...
10787 * sysdeps/generic/libc-tls.c: ... here.
10789 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10790 allow IDX to be one past the current last slotinfo entry.
10791 (_dl_close): Pass IMAP->l_init_called for that parameter.
10793 2002-10-07 Andreas Schwab <schwab@suse.de>
10795 * aclocal.m4: Fix for autoconf 2.53.
10796 * configure.in: Likewise. Require autoconf 2.53.
10798 2002-10-08 Richard Henderson <rth@redhat.com>
10800 * soft-fp/op-4.h: Handle carry correctly in
10801 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10802 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10803 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10805 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10807 * configure.in: Compute completely-soft.
10808 * config.make.in: Make completely-soft available to sub-makes.
10809 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10810 gcc-double-routines. Add sim-full.c. Add fenv_const and
10811 fe_nomask to libm-support.
10812 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10813 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10814 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10815 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10816 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10817 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10818 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10819 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10820 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10821 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10822 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10823 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10824 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10825 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10826 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10827 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10828 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10829 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10830 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10831 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10833 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10834 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10835 FP_HANDLE_EXCEPTIONS.
10836 Define FP_ROUNDMODE.
10837 Redefine FP_* macros to correspond to the FE_* bit positions.
10838 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10839 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10840 __sim_round_mode, __simulate_exceptions.
10841 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10842 * sysdeps/powerpc/bits/fenv.h: ...to here.
10844 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10846 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10847 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10848 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10849 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10852 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10854 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10855 __libc_res_nsend): New prototypes.
10856 * resolv/res_query.c (QUERYSIZE): Define.
10857 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10858 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10859 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10860 res_nsend, pass answerp.
10861 (res_nquery): Changed into wrapper around __libc_res_nquery.
10862 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10863 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10864 instead of the non-__libc_ variants, pass them answerp.
10865 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10866 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10867 Added answerp argument. Call __libc_res_nquery instead of
10868 res_nquery, pass answerp.
10869 (res_nquerydomain): Changed into wrapper around
10870 __libc_res_nquerydomain.
10871 * resolv/res_send.c: Include sys/ioctl.h.
10872 (MAXPACKET): Define.
10873 (send_vc): Change arguments. Reallocate answer buffer if it is
10875 (send_dg): Likewise.
10876 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10877 Reallocate answer buffer if it is too small and hooks are in use.
10878 Adjust calls to send_vc and send_dg.
10879 (res_nsend): Changed into wrapper around __libc_res_nsend.
10880 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10881 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10883 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10884 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10885 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10886 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10887 (gethostbyaddr): Similarly with __libc_res_nquery.
10888 * resolv/Versions (libresolv): Export __libc_res_nquery and
10889 __libc_res_nsearch at GLIBC_PRIVATE.
10891 2002-10-17 Roland McGrath <roland@redhat.com>
10893 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10894 * configure: Regenerated.
10896 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10897 before performing the reloc, not after.
10898 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10900 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10902 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10903 * locale/programs/linereader.c (lr_open): Likewise.
10904 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10905 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10907 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10909 * posix/bug-regex11.c: Add a test case for the bug reported by
10910 Paolo Bonzini <bonzini@gnu.org>.
10911 * posix/regexec.c (sift_states_bkref): Use correct destination of
10912 the back reference.
10914 2002-10-17 Roland McGrath <roland@redhat.com>
10916 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10917 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10918 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10919 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10920 Call it after performing TPOFF relocs.
10921 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10922 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10923 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10925 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10926 when closing a partially-initialized object.
10928 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10929 instead of _dl_fatal_printf when we see PT_TLS.
10931 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10932 instead of $(libof-$<).
10934 2002-10-16 Roland McGrath <roland@redhat.com>
10936 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10937 instead of += to append, to be sure $(lib) gets expanded at defn time.
10938 (libof-$(cpp-src)): New variable, define this instead.
10939 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10940 (lib): Don't use override.
10941 (CPPFLAGS-$(lib)): New variable, put -D's here.
10942 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10943 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10944 LIB found by $(libof-*) for basename, target, or source.
10945 * Makerules (CPPFLAGS-nonlib): New variable.
10946 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10947 * locale/Makefile (lib): Likewise.
10948 * sunrpc/Makefile (lib): Likewise.
10950 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10951 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10952 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10953 (statfs_link_max): New function, guts from fpathconf.c.
10954 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10955 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10956 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10957 to use the linux/pathconf.c code by #include rather than duplication.
10958 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10960 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10962 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10963 Use __libc_errno only for libc itself.
10965 2002-10-16 Andreas Jaeger <aj@suse.de>
10967 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10969 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10971 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10972 Use __libc_errno only for libc itself.
10974 2002-10-15 Roland McGrath <roland@redhat.com>
10975 Jakub Jelinek <jakub@redhat.com>
10977 * sysdeps/unix/sysv/linux/Makefile
10978 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10979 sparc/Makefile to produce a bi-arch file as needed.
10980 That's now parameterized by the variable $(64bit-predefine).
10981 Use LC_ALL=C for `comm' commands in that rule.
10982 No longer conditional on [$(no_syscall_list_h)].
10983 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10984 (64bit-predefine): New variable.
10985 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10986 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10987 * sysdeps/unix/sysv/linux/powerpc/Makefile
10988 (64bit-predefine): New variable.
10990 2002-10-15 Roland McGrath <roland@redhat.com>
10992 * sysdeps/unix/sysv/linux/Makefile
10993 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10995 * login/utmp-private.h: Declare __libc_utmp_lock.
10996 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10997 and call __libc_utmp_jump_table functions directly, instead of using
11000 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
11001 * sysdeps/unix/sysv/linux/configure: Regenerated.
11003 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
11004 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
11005 Use int32_t for ll_time.
11006 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
11007 Use int32_t instead of long int for ut_session.
11008 Use an anonymous struct with 32-bit fields for ut_tv.
11009 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
11010 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
11011 here as in utmp.h for `struct utmp'.
11012 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
11013 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
11014 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
11015 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
11016 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
11017 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
11019 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
11020 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
11021 All the following files were identical or equivalent to it.
11022 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
11023 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
11024 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
11025 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
11026 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
11027 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
11028 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
11029 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
11030 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
11031 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
11033 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
11034 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
11035 Other than the previously incorrect sign of msg_iovlen, this is a
11036 no-op on 32-bit platforms. On 64-bit platforms it makes this header
11037 match their layouts as well, so the following are now identical to it.
11038 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
11039 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
11040 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
11041 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
11042 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
11044 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11046 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
11047 Define for 2.4+ kernels.
11049 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
11050 are known to have the vfork syscall. Don't confuse the CPUs
11051 branch prediction unit by jumping to the return address.
11053 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
11054 support for reiserfs and xfs.
11056 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
11058 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
11060 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
11062 2002-10-16 Jakub Jelinek <jakub@redhat.com>
11064 * include/libc-symbols.h (attribute_tls_model_ie): Define.
11065 * include/errno.h (errno): Define to __libc_errno in libc.so.
11066 Add attribute_tls_model_ie.
11067 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
11068 Add attribute_tls_model_ie.
11069 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
11070 attribute_tls_model_ie.
11071 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
11073 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
11075 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
11076 attribute_tls_model_ie.
11077 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
11079 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
11080 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
11081 __libc_errno in USE___THREAD case.
11082 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11084 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
11085 __attribute__((tls_model (""))).
11086 * configure: Rebuilt.
11087 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
11089 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11091 * timezone/asia: Update from tzdata2002d.
11092 * timezone/australasia: Likewise.
11093 * timezone/iso3166.tab: Likewise.
11094 * timezone/southamerica: Likewise.
11095 * timezone/zone-tab: Likewise.
11097 2002-10-15 Roland McGrath <roland@redhat.com>
11099 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
11100 Adjust TCB pointer before calling free, so we get the whole block.
11102 2002-10-14 Roland McGrath <roland@redhat.com>
11104 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
11105 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
11106 extern using attribute_hidden instead of static, avoids warning.
11108 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11110 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
11111 * sysdeps/unix/sysv/linux/configure: Rebuilt.
11113 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11115 * po/sv.po: Update from translation team.
11117 2002-10-12 H.J. Lu <hjl@gnu.org>
11119 * sunrpc/thrsvc.c (PROCQUIT): New.
11120 (struct rpc_arg): New.
11121 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
11122 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
11123 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
11124 (main): Modified for struct rpc_arg *.
11126 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11128 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
11130 2002-10-14 Jakub Jelinek <jakub@redhat.com>
11132 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
11133 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
11134 in ld.so even if __thread is supported.
11136 2002-10-13 Jakub Jelinek <jakub@redhat.com>
11138 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
11139 Add hack to prevent the compiler from clobbering the signal context.
11140 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
11142 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
11145 2002-10-14 Andreas Jaeger <aj@suse.de>
11147 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
11148 Guido Guenther <agx@sigxcpu.org>.
11150 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11152 * po/sk.po: Update from translation team.
11154 2002-09-26 Roland McGrath <roland@redhat.com>
11156 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
11157 dynamic string tag.
11158 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
11159 DL_DST_LIB based on $(slibdir).
11161 2002-10-13 Roland McGrath <roland@frob.com>
11163 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
11165 * sysdeps/mach/hurd/getresuid.c: New file.
11166 * sysdeps/mach/hurd/getresgid.c: New file.
11167 * sysdeps/mach/hurd/setresuid.c: New file.
11168 * sysdeps/mach/hurd/setresgid.c: New file.
11170 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
11171 setresgid): Declare them.
11172 * NEWS: Mention it.
11174 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
11175 add libc_hidden_proto.
11176 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
11177 getresuid, getresgid, setresuid, setresgid here.
11178 * Versions.def (libc): Define GLIBC_2.3.2 set.
11179 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
11180 Add libc_hidden_def.
11181 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
11182 * sysdeps/generic/setresgid.c: New file.
11183 * sysdeps/generic/setresuid.c: New file.
11184 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11185 (sysdep_routines): Don't add getresuid and getresgid here.
11186 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
11187 (sysdep_routines): Don't add setresuid and setresgid here.
11188 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11189 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11190 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11191 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11192 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11193 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11194 * posix/Makefile (routines): Add them all here instead.
11195 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
11196 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
11197 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
11198 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
11199 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11200 [! __NR_setresuid]: Include generic file.
11201 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11202 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11203 [! __NR_setresuid]: Include generic file.
11204 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11205 Caller is - now, not EXTRA.
11206 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11207 (setresuid, setresgid, getresuid, getresgid): Likewise.
11208 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11209 Add these calls here.
11210 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11211 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11212 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11213 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11214 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11217 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11218 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11220 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11221 (sysdep_routines): Add setfsuid and setfsgid here.
11222 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11223 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11224 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11225 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11226 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11227 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11228 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11229 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11231 * hurd/errno.c: Renamed to ...
11232 * hurd/errno-loc.c: ... this.
11233 * hurd/Makefile (routines): errno -> errno-loc
11235 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11237 * po/de.po: Update from translation team.
11239 * MakeTAGS: Add -E flag to xgettext runs.
11241 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11243 * po/fr.po: Update from translation team.
11245 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11246 Optimize a bit for use in glibc.
11248 2002-10-12 Roland McGrath <roland@redhat.com>
11250 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11251 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11253 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11255 * po/sv.po: Update from translation team.
11257 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11259 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11261 (regfree): Likewise.
11262 (create_initial_state): Likewise.
11263 (analyze): Remove the substitutions which became useless.
11264 (calc_first): Likewise.
11265 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11266 epsilon destination.
11267 (duplicate_node_closure): New function.
11268 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11269 (calc_inveclosure): Likewise.
11270 (calc_eclosure): Likewise.
11271 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11272 direct invocation of duplicate_node.
11273 (parse): Don't use comma operator in the return to avoid compiler
11275 (parse_reg_exp): Likewise.
11276 (parse_branch): Likewise.
11277 (parse_expression): Likewise.
11278 (parse_sub_exp): Likewise.
11279 (parse_dup_op): Likewise.
11280 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11281 which became useless.
11282 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11283 (create_cd_newstate): Likewise.
11284 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11285 (re_token_t): Likewise.
11286 (re_dfa_t): Likewise.
11287 (re_node_set_remove): New macro.
11288 * posix/regexec.c (check_matching): Remove the handling
11290 (check_halt_node_context): Likewise.
11291 (proceed_next_node): Likewise.
11292 (pop_fail_stack): Fix the memory leak.
11293 (set_regs): Likewise.
11294 (free_fail_stack_return): New function.
11295 (sift_states_backward): Fix the memory leak. Remove the handling
11297 (update_cur_sifted_state): Append some if clause to avoid redundant
11299 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11301 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11302 (check_subexp_limits): Likewise.
11303 (search_subexp): Likewise.
11304 (sift_states_bkref): Likewise.
11305 (transit_state_mb): Likewise.
11306 (transit_state_bkref_loop): Likewise.
11307 (transit_state_bkref_loop): Likewise.
11308 (group_nodes_into_DFAstates): Likewise.
11309 (check_node_accept): Likewise.
11310 (sift_ctx_init): Add initializing.
11312 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11314 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11317 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11319 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11320 duplicated variable c.
11322 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11325 * sysdeps/unix/sysv/linux/i386/sysdep.h
11326 (INTERNAL_SYSCALL_ERROR_P): New define.
11327 (INTERNAL_SYSCALL_ERRNO): Likewise.
11329 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11330 Add hack to prevent the compiler from clobbering the signal context.
11332 2002-10-11 Roland McGrath <roland@redhat.com>
11334 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11337 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11338 * sysdeps/sh/dl-lookupcfg.h: File removed.
11339 * sysdeps/i386/dl-lookupcfg.h: File removed.
11341 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11342 missing labels and ; from last change.
11344 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11345 number literals, so they are doubles instead of ints.
11347 2002-10-09 Roland McGrath <roland@redhat.com>
11349 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11350 changed from [USE_TLS && HAVE___THREAD].
11352 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11353 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11354 * sysdeps/x86_64/dl-machine.h
11355 (elf_machine_type_class, elf_machine_rela): Likewise.
11356 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11359 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11360 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11361 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11363 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11364 instead of ___tls_get_addr.
11365 (___tls_get_addr_internal): Add attribute_hidden to decl.
11367 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11368 _dl_error_catch_tsd.
11369 * elf/rtld.c (startup_error_tsd): New function.
11370 (dl_main): Point _dl_error_catch_tsd at that.
11371 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11372 use new function pointer instead.
11373 * elf/dl-tsd.c: New file.
11374 * elf/Makefile (routines): Add it.
11376 2002-10-07 Roland McGrath <roland@redhat.com>
11378 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11379 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11380 take _dl_load_lock around calling __writev.
11382 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11383 (INLINE_SYSCALL): Use that.
11385 * sysdeps/generic/dl-sysdep.h: New file.
11386 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11387 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11388 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11389 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11390 access it directly.
11391 * elf/dl-minimal.c (__errno_location): Removed.
11392 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11393 Use GOTOFF access for errno.
11394 * sysdeps/unix/sysv/linux/i386/sysdep.h
11395 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11397 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11398 Use PC-relative access for errno.
11399 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11400 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11402 * include/tls.h: New file.
11403 (USE___THREAD): New macro.
11404 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11405 libc or libpthread.
11406 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11407 changed from [USE_TLS && HAVE___THREAD].
11408 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11409 * sysdeps/unix/i386/sysdep.S: Likewise.
11410 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11411 * include/errno.h: Likewise.
11412 * include/netdb.h: Likewise.
11413 * include/resolv.h: Likewise.
11415 * sysdeps/generic/errno.c: New file.
11416 * csu/Makefile (aux): New variable, list errno.
11417 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11418 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11419 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11420 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11421 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11422 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11423 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11424 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11425 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11426 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11427 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11428 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11429 * sysdeps/unix/alpha/sysdep.S: Likewise.
11430 * sysdeps/generic/start.c: Likewise.
11431 * sysdeps/unix/start.c: Likewise.
11432 * sysdeps/unix/arm/start.c: Likewise.
11433 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11434 * sysdeps/unix/sparc/start.c: Likewise.
11435 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11436 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11438 * manual/search.texi (Tree Search Function, Hash Search Function):
11439 Mention search.h clearly.
11441 2002-10-05 Roland McGrath <roland@redhat.com>
11443 * elf/dl-fxstat64.c: File removed.
11444 * elf/dl-xstat64.c: File removed.
11445 * elf/Makefile (rtld-routines): Remove them.
11446 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11447 Instead, use strong_alias instead of versioned_symbol in the
11448 !SHLIB_COMPAT case.
11449 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11450 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11452 * include/shlib-compat.h
11453 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11454 [! NOT_IN_libc] (IS_IN_libc): Define it.
11455 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11456 * elf/Makefile (CPPFLAGS-.os): Likewise.
11458 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11459 Return the status instead of calling exit.
11461 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11462 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11463 Remove superfluous rm command, whose @ plus make bugs hid
11464 all these commands from the make output.
11466 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11467 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11468 Use that file's contents instead of literal echo's for the prologue.
11469 * include/features.h: Include <gnu/stubs.h> unconditionally.
11470 * include/gnu/stubs.h: New file.
11472 2002-09-30 Roland McGrath <roland@redhat.com>
11474 * elf/rtld-Rules: New file.
11475 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11476 $(objpfx)rtld-libc.a): New targets.
11477 (generated): Add them.
11478 (reloc-link): Remove -o $@ from the variable.
11479 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11480 (distribute): Add rtld-Rules.
11481 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11482 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11483 (common-mostlyclean, common-clean): Clean up rtld-* files.
11484 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11486 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11488 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11489 If temp != NULL, copy dynamic entries which need relocation to temp
11490 array before relocating.
11491 (DL_RO_DYN_TEMP_CNT): Define.
11492 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11493 * elf/rtld.c (_dl_start): Likewise.
11494 (dl_main): Likewise. Add dyn_temp static variable.
11496 2002-10-11 Roland McGrath <roland@redhat.com>
11498 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11499 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11501 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11502 proper set of no-op insn prefixes.
11504 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11506 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11508 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11509 __pthread_kill_other_threads_np.
11511 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11513 2002-10-08 Roland McGrath <roland@redhat.com>
11515 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11516 just return &_nl_C_locobj instead of copying it.
11517 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11518 * locale/duplocale.c (__duplocale): Likewise.
11520 2002-10-07 Roland McGrath <roland@frob.com>
11522 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11523 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11524 * sysdeps/mach/configure: Regenerated.
11526 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11529 Add all necessary register outputs for syscall-clobbered registers.
11531 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11533 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11534 Itanium 2 (and Itanium).
11535 Fix unwind directives and make it fit in 80 columns.
11536 * sysdeps/ia64/memset.S: Likewise.
11537 * sysdeps/ia64/memcpy.S: Likewise.
11538 Move jump table to .rodata section.
11540 2002-10-03 Roland McGrath <roland@frob.com>
11542 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11545 2002-10-10 Andreas Jaeger <aj@suse.de>
11547 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11549 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11551 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11553 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11555 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11556 _dl_allocate_tls_init. Add rtld_hidden_proto.
11557 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11559 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11561 * version.h (VERSION): Bump to 2.3.1.
11563 * Make-dist: Add back one of the tar invocations removed before.
11565 * stdlib/Makefile (distribute): Add allocalim.h.
11567 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11568 (__libc_tsd_address): Use correct variable name.
11569 Patch by Stefan Jones <stefan.jones@multigig.com>.
11571 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11572 Reported by edwardsg@sgi.com [PR libc/4678].
11574 * Versions.def (libc): Add GLIBC_2.3.1.
11575 (libpthread): Add GLIBC_2.3.1.
11577 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11578 and __sigtimedwait.
11579 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11580 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11582 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11583 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11585 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11586 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11587 and make old name an alias.
11588 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11589 and make old name an alias.
11590 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11593 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11594 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11596 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11598 * sysdeps/posix/readv.c: Likewise
11599 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11600 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11601 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11603 * sysdeps/posix/writev.c: Likewise
11604 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11605 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11607 * include/sys/wait.h: Declare __waitid.
11608 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11609 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11611 * sysdeps/posix/waitid.c: Likewise.
11612 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11614 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11616 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11618 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11620 (__MAX_ALLOCA_CUTOFF): Define.
11621 Include allocalim.h.
11622 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11623 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11624 host_buffer depending on __libc_use_alloca.
11625 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11626 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11627 net_buffer depending on __libc_use_alloca.
11628 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11629 buf depending on __libc_use_alloca.
11630 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11631 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11632 instead of hardcoded constants.
11633 Pass proper size argument to alloca and compute end for wide char
11635 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11636 instead of hardcoded constants.
11637 * string/strcoll.c (strcoll): Likewise.
11638 * string/strxfrm.c (strxfrm): Likewise.
11639 * sysdeps/posix/readv.c (__readv): Likewise.
11640 * sysdeps/posix/writev.c (__writev): Likewise.
11641 * sysdeps/generic/allocalim.h: New file.
11643 2002-10-08 Roland McGrath <roland@redhat.com>
11645 * configure.in (aux_missing warning): Change "too old" to
11646 "incompatible versions", since for autoconf it's "too new" right now.
11647 * configure: Regenerated.
11649 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11650 one found doesn't work on our configure.in.
11651 * configure: Regenerated.
11652 * config.make.in (AUTOCONF): New substituted variable.
11653 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11654 (autoconf-it): ... here, use that instead of defining conditionally.
11655 Use $(AUTOCONF) instead of literal autoconf.
11656 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11657 with this condition.
11658 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11660 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11662 * Make-dist (dist): Cleanup a bit. We are not interested in the
11663 14 char filename limit anymore. Remove intermediate files and
11666 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11668 * po/sk.po: Update from translation team.
11669 * po/tr.po: Likewise.
11670 * po/gl.po: Likewise.
11672 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11674 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11676 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11678 * version.h (RELEASE): Change to stable.
11680 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11682 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11683 __syscall_exit_group): New prototypes.
11685 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11687 * glibc 2.3 released.
11690 See ChangeLog.13 for earlier changes.