1 2003-09-17 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
4 have to recognize octal and hexadecimal numbers as well. Simplify
5 function, signs are handled in strtol.
6 * posix/wordexp-test.c: Add tests for octal and hexadecimal
7 numbers in arithmetic expressions.
9 2003-09-17 Jakub Jelinek <jakub@redhat.com>
11 * elf/Makefile (distribute): Add tst-alignmod.c.
12 (tests): Add tst-align.
13 (modules-names): Add tst-alignmod.
14 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
15 $(stack-align-test-flags).
16 ($(objpfx)tst-align): Depend on libdl.
17 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
18 * elf/tst-align.c: New file.
19 * elf/tst-alignmod.c: New file.
20 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
21 * misc/tst-tsearch.c: Include tst-stack-align.h.
22 (stack_align_check): New array.
23 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
24 (main): Report error if stack was not enough aligned
25 in cmp_fn or walk_action.
26 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
27 * stdlib/tst-qsort.c: Include tst-stack-align.h.
28 (align_check): New var.
29 (compare): Use TEST_STACK_ALIGN () macro.
30 (main): Report error if stack was not enough aligned in compare.
31 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
32 unneeded -mpreferred-stack-boundary=4.
33 * sysdeps/x86_64/tst-stack-align.h: New file.
35 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
36 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
38 2003-09-17 Philip Blundell <philb@gnu.org>
40 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
42 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
44 * sysdeps/arm/sysdep.h (DO_RET): New.
46 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
47 required but not defined. Improve test of error code.
49 2003-09-17 Jakub Jelinek <jakub@redhat.com>
51 * sysdeps/i386/Makefile (stack-align-test-flags): Add
52 -malign-double -mpreferred-stack-boundary=4.
54 2003-09-17 Ulrich Drepper <drepper@redhat.com>
56 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
57 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
59 2003-09-15 Jakub Jelinek <jakub@redhat.com>
61 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
62 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
64 2003-09-17 Jakub Jelinek <jakub@redhat.com>
66 * Makeconfig (stack-align-test-flags): Set.
67 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
68 $(stack-align-test-flags).
69 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
70 (align_check): New var.
71 (comp): Use TEST_STACK_ALIGN macro.
72 (do_test): Fail if align_check != 1.
73 * sysdeps/generic/tst-stack-align.h: New file.
74 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
75 * sysdeps/i386/i686/tst-stack-align.h: New file.
77 2003-09-17 Ulrich Drepper <drepper@redhat.com>
79 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
80 stack which is aligned (mod 16).
82 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
83 Hans-Peter Nilsson <hp@axis.com>
85 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
86 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
88 2003-09-17 Jakub Jelinek <jakub@redhat.com>
90 * dirent/scandir.c: Include bits/libc-lock.h.
91 (struct scandir_cancel_struct): New type.
92 (cancel_handler): New function.
93 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
94 scandir_cancel_struct.
96 2003-09-16 Ulrich Drepper <drepper@redhat.com>
98 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
99 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
100 Add internal_statvfs.
101 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
102 instead of including "internal_statvfs.c".
103 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
104 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
105 Add code to avoid the stat calls on all the reported mount points
106 when we can determine mismatch in advance.
107 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
108 USBDEVFS_SUPER_MAGIC.
110 2003-09-16 Jakub Jelinek <jakub@redhat.com>
112 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
113 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
115 2003-09-16 Bruno Haible <bruno@clisp.org>
117 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
118 invoking msgfmt, not before.
120 2003-09-15 Jakub Jelinek <jakub@redhat.com>
122 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
123 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
125 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
126 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
127 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
128 * elf/dl-iteratephdr.c (cancel_handler): New function.
129 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
130 * elf/link.h (dl_iterate_phdr): Remove __THROW.
131 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
132 Add $(uses-callbacks).
133 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
134 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
135 $(exceptions) to $(uses-callbacks).
136 * Makeconfig (uses-callbacks): Set to $(exceptions).
137 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
139 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
142 2003-09-15 Andreas Schwab <schwab@suse.de>
144 * sysdeps/m68k/setjmp.c: Add hidden_def.
146 2003-09-14 Ulrich Drepper <drepper@redhat.com>
148 * libio/memstream.c (open_memstream): Don't allow wide char operations.
150 * dirent/dirent.h: Remove __THROW from scandir.
152 2003-09-14 Philip Blundell <philb@gnu.org>
154 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
157 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
159 * sysdeps/arm/memset.S: Rewrite.
161 2003-09-12 Jakub Jelinek <jakub@redhat.com>
163 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
164 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
165 __SLONGWORD_TYPE otherwise.
167 2003-09-14 Ulrich Drepper <drepper@redhat.com>
169 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
170 (CFLAGS-ftw64.c): Likewise.
172 2003-09-13 Ulrich Drepper <drepper@redhat.com>
174 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
175 (CFLAGS-nscd_getgr_r.c): Likewise.
176 (CFLAGS-nscd_gethst_r.c): Likewise.
178 2003-09-12 Ulrich Drepper <drepper@redhat.com>
180 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
183 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
184 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
185 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
186 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
187 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
188 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
190 * misc/Makefile (CFLAGS-err.c): Likewise.
191 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
192 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
193 CFLAGS-glob64.c): Likewise.
194 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
195 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
196 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
197 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
198 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
200 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
202 * libio/stdio.h: Remove __THROW from cuserid prototype.
204 * locale/loadarchive.c: Use only non-cancelable interfaces.
205 * resolv/herror.c (herror): Likewise.
207 * malloc/hooks.c: Before using IO stream mark stream so it uses
208 only non-cancelable interfaces.
209 * malloc/malloc.c: Likewise.
210 * posix/getopt.c: Likewise.
213 2003-09-11 Jakub Jelinek <jakub@redhat.com>
215 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
217 2003-09-12 Ulrich Drepper <drepper@redhat.com>
219 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
221 * misc/err.h: Remove __THROW from all prototypes.
223 * posix/getopt.h (__THROW): Define if not already defined. Add
224 __THROW to the getopt functions.
226 2003-09-11 Ulrich Drepper <drepper@redhat.com>
228 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
229 (CFLAGS-fts.c): Likewise.
230 * io/fcntl.h: Remove __THROW from lockf prototypes.
231 * io/fts.h: Remove most __THROW.
233 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
235 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
239 2003-09-11 Jakub Jelinek <jakub@redhat.com>
241 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
242 _IO_free_backup_area call.
244 2003-09-10 Chris Demetriou <cgd@broadcom.com>
246 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
248 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
249 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
250 Also, only assert off_t size is 4 for N32 and O32, and clean up
252 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
254 2003-09-10 Roland McGrath <roland@redhat.com>
256 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
257 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
258 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
259 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
260 Reported by Daniel Jacobowitz <drow@mvista.com>.
262 2003-09-10 Jakub Jelinek <jakub@redhat.com>
264 * string/Makefile (strop-tests): Add memccpy.
265 * string/test-memccpy.c: New test.
267 2003-09-09 Jakub Jelinek <jakub@redhat.com>
269 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
270 siginfo_t * argument before, change into struct ucontext *.
271 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
272 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
273 instead of structure.
274 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
277 2003-09-09 Ulrich Drepper <drepper@redhat.com>
279 * string/stratcliff.c (main): Check memccpy.
281 2003-04-11 Jes Sorensen <jes@wildopensource.com>
283 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
284 character is found during recovery, use correct register when
285 determining the position of the found character.
287 2003-04-01 Jes Sorensen <jes@wildopensource.com>
289 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
290 avoid segfaults when reading from unmapped pages. For aligned
291 reload and continue, for misaligned, roll back and use byte copy.
292 Save ar.ec on entry and restore on exit.
294 2003-09-09 Chris Demetriou <cgd@broadcom.com>
296 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
298 2003-09-08 Chris Demetriou <cgd@broadcom.com>
300 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
302 * sysdeps/mips/mips64/n64/Implies: Likewise.
304 2003-09-08 Roland McGrath <roland@frob.com>
306 * sysdeps/unix/sysv/linux/speed.c
307 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
308 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
309 * sysdeps/unix/sysv/linux/bits/termios.h
310 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
311 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
312 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
314 2003-09-08 Ulrich Drepper <drepper@redhat.com>
316 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
317 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
319 2003-09-08 Jakub Jelinek <jakub@redhat.com>
321 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
322 (__u_quad_t): Make unsigned long int if 64-bit.
323 (__SQUAD_TYPE): Make long int if 64-bit.
324 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
325 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
327 2003-09-08 Ulrich Drepper <drepper@redhat.com>
329 * Makefile (tests): Run check-c++-types.sh if possible.
330 * scripts/check-c++-types.h: New file.
331 * scripts/data/c++-types-i386-linux-gnu.data: New file.
333 2003-09-08 Andreas Jaeger <aj@suse.de>
335 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
336 Use struct sigcontext.
338 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
339 Use struct sigcontext.
341 (GET_FRAME): Likewise.
342 (GET_STACK): Likewise.
344 2003-09-08 Wolfram Gloger <wg@malloc.de>
346 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
347 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
348 (mALLOPt): Avoid requirement of C99.
350 2003-09-08 Ulrich Drepper <drepper@redhat.com>
352 * libio/bug-ftell.c: Include <sys/types.h>.
353 (main): Mark cp as const.
355 2003-09-07 Jakub Jelinek <jakub@redhat.com>
357 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
358 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
360 2003-09-05 Roland McGrath <roland@redhat.com>
362 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
364 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
365 (cfsetispeed): Set c_ispeed field.
366 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
367 to match corresponding speed.c code.
369 2003-09-06 Ulrich Drepper <drepper@redhat.com>
371 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
372 narrow character buffer.
373 * libio/Makefile: Add rules to build and run bug-ftell.
374 * libio/bug-ftell.c: New file.
376 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
378 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
379 matching the decimal point and possibly leading the thousands
380 separator. This caused the recognition of thousands separators to
383 2003-09-05 Ulrich Drepper <drepper@redhat.com>
385 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
386 write mode from read in backup buffer.
387 * libio/Makefile (tests): Add bug-ungetc2.
388 * libio/bug-ungetc2.c: New file.
390 2003-09-05 Roland McGrath <roland@redhat.com>
392 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
394 2003-09-04 Roland McGrath <roland@frob.com>
396 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
397 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
399 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
401 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
404 2003-09-05 Andreas Jaeger <aj@suse.de>
406 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
407 to make it conforming C.
408 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
410 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
411 prototype to use variable argument lists and get the possible one
413 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
414 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
416 2003-09-04 Ulrich Drepper <drepper@redhat.com>
418 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
420 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
421 Report correct value for vxfs.
422 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
424 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
427 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
428 over the place. It would be allowed to have these functions as
429 cancellation points but the cleanup would be ugly and a lot of
432 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
433 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
435 * include/fcntl.h (__fcntl_nocancel): Declare.
436 * sysdeps/unix/sysv/linux/fcntl.c: New file.
437 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
438 cancellation if absolutely needed.
439 (__fcntl_nocancel): Define.
441 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
442 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
444 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
447 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
450 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
451 unnecessary errno handling.
453 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
454 Initialize it in all cases. Change it to be a bit more like the
457 2003-09-04 Jakub Jelinek <jakub@redhat.com>
459 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
461 (_IO_file_open): Likewise. Use close_not_cancel.
463 2003-09-04 Ulrich Drepper <drepper@redhat.com>
465 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
466 * libio/fileops.c [_LIBC]: Remove close macro.
467 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
468 (_IO_new_file_open): Recognize 'c' flag in mode string.
469 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
470 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
472 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
473 * inet/rcmd.c: Likewise.
474 * inet/ruserpass.c: Likewise.
475 * intl/localealias.c: Likewise.
476 * malloc/mtrace.c: Likewise.
477 * misc/getpass.c: Likewise.
478 * misc/getttyent.c: Likewise.
479 * misc/mntent_r.c: Likewise.
480 * misc/getusershell.c: Likewise.
481 * nss/nsswitch.c: Likewise.
482 * resolv/res_hconf.c: Likewise.
483 * resolv/res_init.c: Likewise.
484 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
485 * time/getdate.c: Likewise.
486 * time/tzfile.c: Likewise.
487 * misc/fstab.h: Undo last change.
488 * misc/mntent.h: Likewise.
489 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
490 CFLAGS-fstab.c definition.
492 2003-09-04 Jakub Jelinek <jakub@redhat.com>
494 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
496 2003-09-03 Ulrich Drepper <drepper@redhat.com>
498 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
499 returning ERANGE if this wasn't intended.
501 2003-09-03 Jakub Jelinek <jakub@redhat.com>
503 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
504 function-like macros.
506 2003-09-03 Ulrich Drepper <drepper@redhat.com>
508 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
509 (CFLAGS-getgrent.c): Likewise.
510 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
511 (CFLAGS-getpwent.c): Likewise.
512 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
513 (CFLAGS-getspent.c): Likewise.
515 * inet/Makefile: Add -fexceptions to CFLAGS for the various
516 getXXent and getXXbyYY functions.
518 * locale/loadlocale.c: Use not-cancelable variants of open, close,
521 2003-09-02 Jakub Jelinek <jakub@redhat.com>
523 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
524 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
526 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
528 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
529 unused __syscall_ stubs.
530 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
532 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
533 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
534 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
535 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
536 unused __syscall_ stubs.
537 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
539 (__syscall_*): Remove unused __syscall_ stubs.
540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
541 (__syscall_*): Likewise.
542 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
544 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
545 Remove unused __syscall_ stubs.
546 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
547 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
548 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
549 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
550 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
551 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
552 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
553 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
554 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
555 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
556 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
557 __syscall_* prototypes.
558 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
559 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
560 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
561 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
562 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
563 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
564 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
565 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
566 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
567 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
568 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
569 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
570 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
571 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
572 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
573 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
574 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
575 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
576 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
577 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
578 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
579 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
580 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
581 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
582 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
583 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
584 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
585 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
586 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
587 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
588 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
589 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
590 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
591 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
592 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
593 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
594 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
595 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
596 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
597 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
598 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
599 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
600 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
601 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
602 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
603 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
604 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
605 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
606 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
607 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
608 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
609 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
610 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
611 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
612 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
613 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
614 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
615 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
616 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
617 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
618 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
619 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
620 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
621 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
622 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
623 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
624 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
625 * sysdeps/unix/sysv/linux/execve.c: Likewise.
626 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
627 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
628 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
629 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
630 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
631 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
632 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
633 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
634 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
635 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
636 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
637 * sysdeps/unix/sysv/linux/readv.c: Likewise.
638 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
639 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
640 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
641 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
642 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
643 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
644 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
645 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
646 * sysdeps/unix/sysv/linux/poll.c: Likewise.
647 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
648 * sysdeps/unix/sysv/linux/writev.c: Likewise.
649 * sysdeps/unix/sysv/linux/pread.c: Likewise.
650 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
651 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
652 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
653 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
654 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
655 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
656 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
657 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
658 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
659 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
661 2003-09-02 Jakub Jelinek <jakub@redhat.com>
663 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
664 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
665 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
667 2003-09-02 Ulrich Drepper <drepper@redhat.com>
669 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
671 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
672 open, close, and read.
674 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
677 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
679 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
680 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
681 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
683 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
685 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
686 (CFLAGS-fstatfs.c): Likewise.
687 (CFLAGS-statvfs.c): Likewise.
688 (CFLAGS-fstatvfs.c): Likewise.
690 2003-09-01 Ulrich Drepper <drepper@redhat.com>
692 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
693 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
695 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
696 (CFLAGS-pathconf.c): Likewise.
697 (CFLAGS-fpathconf.c): Likewise.
699 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
700 * misc/fstab.h: Remove all __THROW.
701 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
702 (CFLAGS-mntent_r.c): Likewise.
703 * misc/mntent.h: Remove most __THROW.
705 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
706 (CFLAGS-mkstemp64.c): Likewise.
708 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
709 around call to exec_comm.
710 * posix/wordexp.h: Remove __THROW from wordexp.
711 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
713 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
714 not-cancelable functions.
716 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
717 (CFLAGS-iofopen.c): Likewise.
718 (CFLAGS-iofopen64.c): Likewise.
720 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
722 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
723 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
725 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
726 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
728 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
730 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
731 NSS_STATUS_SUCCESS if entry was found.
732 (getspent_next_file): Store user in blacklist after entry
733 was found, use innetgr.
735 2003-09-01 Jakub Jelinek <jakub@redhat.com>
737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
740 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
741 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
744 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
746 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
747 posix_fallocate64 at GLIBC_2.3.3.
748 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
749 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
751 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
753 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
756 2003-08-31 Ulrich Drepper <drepper@redhat.com>
758 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
759 Code by Richard Henderson.
761 2003-08-31 Philip Blundell <philb@gnu.org>
763 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
764 posix_fallocate64 at GLIBC_2.3.3.
766 2003-08-31 Ulrich Drepper <drepper@redhat.com>
768 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
769 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
771 2003-08-30 Jakub Jelinek <jakub@redhat.com>
773 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
774 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
775 included multiple times.
776 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
777 ptid, tls, ctid arguments to the kernel.
778 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
779 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
780 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
781 (__libc_sigaction): Use INLINE_SYSCALL instead of
782 __syscall_rt_sigaction.
783 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
784 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
785 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
786 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
787 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
788 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
789 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
790 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
791 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
792 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
793 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
794 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
795 (__CLONE_SYSCALL_STRING): Define.
796 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
798 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
799 (__CLONE_SYSCALL_STRING): Define.
800 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
802 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
804 2003-08-30 Ulrich Drepper <drepper@redhat.com>
806 * sunrpc/rpc/clnt.h: Remove a few __THROW.
807 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
808 (CFLAGS-key_call.c): Likewise.
809 (CFLAGS-pmap_rmt.c): Likewise.
810 (CFLAGS-clnt_perr.c): Likewise.
811 * sunrpc/rpc/auth.h: Remove serveral __THROW.
813 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
814 (CFLAGS-gethstbynm_r.c): Likewise.
815 (CFLAGS-gethstbynm2_r.c): Likewise.
816 (CFLAGS-rcmd.c): Likewise.
817 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
819 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
820 (CFLAGS-argp-fmtstream.c): Likewise.
821 * argp/argp.h: Remove a number of __THROW.
823 * misc/sys/syslog.h (vsyslog): Remove __THROW.
825 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
826 * misc/getpass.c (getpass): Add cleanup handler to ensure the
827 stream is closed even if the thread is canceled.
828 (call_fclose): New function.
829 * posix/unistd.h: Remove __THROW from getpass prototype.
831 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
833 * signal/signal.h (psignal): Remove __THROW.
834 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
836 * misc/Makefile (CFLAGS-error.c): Define.
837 * misc/error.c (error): Disable cancellation handling around the
838 actual output. The message should in any case be printed.
839 (error_at_line): Likewise.
841 * misc/error.h: Protect parameter names with leading __.
843 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
845 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
847 2003-08-29 Jakub Jelinek <jakub@redhat.com>
849 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
852 2003-08-29 Ulrich Drepper <drepper@redhat.com>
854 * libio/stdio.h: Remove a few more __THROW.
856 2003-08-29 Jakub Jelinek <jakub@redhat.com>
858 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
859 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
860 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
861 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
862 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
863 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
864 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
865 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
866 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
867 putwchar.c and rewind.c with exceptions.
868 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
869 _IO_release_lock): Define.
870 * libio/fileops.c (_IO_new_file_underflow): Use it.
871 * libio/fputc.c (fputc): Likewise.
872 * libio/fputwc.c (fputwc): Likewise.
873 * libio/freopen64.c (freopen64):
874 * libio/freopen.c (freopen): Likewise.
875 * libio/fseek.c (fseek): Likewise.
876 * libio/fseeko64.c (fseeko64): Likewise.
877 * libio/fseeko.c (fseeko): Likewise.
878 * libio/ftello64.c (ftello64): Likewise.
879 * libio/ftello.c (ftello): Likewise.
880 * libio/fwide.c (fwide): Likewise.
881 * libio/getc.c (_IO_getc): Likewise.
882 * libio/getchar.c (getchar): Likewise.
883 * libio/getwc.c (_IO_getwc): Likewise.
884 * libio/getwchar.c (getwchar): Likewise.
885 * libio/iofclose.c (_IO_new_fclose):
886 * libio/iofflush.c (_IO_fflush): Likewise.
887 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
888 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
889 * libio/iofgets.c (_IO_fgets): Likewise.
890 * libio/iofgetws.c (fgetws): Likewise.
891 * libio/iofputs.c (_IO_fputs): Likewise.
892 * libio/iofputws.c (fputws): Likewise.
893 * libio/iofread.c (_IO_fread): Likewise.
894 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
895 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
896 * libio/ioftell.c (_IO_ftell): Likewise.
897 * libio/iofwrite.c (_IO_fwrite): Likewise.
898 * libio/iogetdelim.c (_IO_getdelim): Likewise.
899 * libio/iogets.c (_IO_gets): Likewise.
900 * libio/ioputs.c (_IO_puts): Likewise.
901 * libio/ioseekoff.c (_IO_seekoff): Likewise.
902 * libio/ioseekpos.c (_IO_seekpos): Likewise.
903 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
904 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
905 * libio/ioungetc.c (_IO_ungetc): Likewise.
906 * libio/ioungetwc.c (ungetwc): Likewise.
907 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
908 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
909 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
910 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
911 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
912 * libio/peekc.c (_IO_peekc_locked): Likewise.
913 * libio/putc.c (_IO_putc): Likewise.
914 * libio/putchar.c (putchar): Likewise.
915 * libio/putwc.c (putwc): Likewise.
916 * libio/putwchar.c (putwchar): Likewise.
917 * libio/rewind.c (rewind): Likewise.
918 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
920 2003-08-29 Ulrich Drepper <drepper@redhat.com>
922 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
925 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
926 Jakub Jelinek <jakub@redhat.com>
928 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
929 big endian arches. Don't read beyond end of fds_bits array.
931 2003-04-27 Bruno Haible <bruno@clisp.org>
933 * manual/message.texi (Advanced gettext functions): Add information
934 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
935 Add section about Lithuanian, reported by Ricardas Cepas
936 <rch@richard.eu.org>.
937 Add information about Croatian.
938 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
939 Remove remark about continuation lines that is not true for PO files.
940 Fix formula for Slovenian, reported by Roman Maurer
941 <roman.maurer@amis.net>.
943 2003-08-27 Ulrich Drepper <drepper@redhat.com>
945 * math/math_private.h: Declare __copysignf.
946 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
949 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
950 __signbit, and __signbitl inline functions.
952 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
953 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
955 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
956 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
958 2003-08-27 Jakub Jelinek <jakub@redhat.com>
960 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
962 2003-08-27 Ulrich Drepper <drepper@redhat.com>
964 * include/stdio.h: Add declarations for __builtin_fwrite and
965 __builtin_fwrite_unlocked.
967 2003-08-27 Jakub Jelinek <jakub@redhat.com>
969 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
970 fits into allocation. Add padding on 32-bit arches so that
971 dirp->data is enough aligned for struct dirent64.
972 Avoid clearing of the buffer, just clear DIR structure.
974 2003-08-26 Ulrich Drepper <drepper@redhat.com>
976 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
977 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
979 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
981 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
983 2003-08-26 Jakub Jelinek <jakub@redhat.com>
985 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
986 to match format string.
987 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
989 (__new_semctl): Shut up warning.
990 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
991 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
993 2003-08-26 Jakub Jelinek <jakub@redhat.com>
995 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
996 link file use the real file name, not the resolved name we got by
997 following the symlinks.
999 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1001 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
1002 if the object size is large enough.
1004 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1006 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1007 if it won't point to itself unless it is .so symlink for the linker.
1009 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1011 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
1012 use _mode if _IO_fwide_maybe_incompatible.
1013 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
1014 the compatibility test.
1016 2003-08-25 Jakub Jelinek <jakub@redhat.com>
1018 * elf/cache.c (save_cache): Don't write beyond end of file_entries
1020 Duplicate last old cache entry if the count would be odd.
1022 2003-08-25 Andreas Jaeger <aj@suse.de>
1024 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
1025 __LONG_LONG_PAIR to long.
1027 2003-08-25 Philip Blundell <philb@gnu.org>
1029 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
1030 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
1032 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
1034 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
1035 and use __libc_cleanup_region_end instead.
1037 2003-08-25 Ulrich Drepper <drepper@redhat.com>
1039 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
1041 2003-08-22 Ulrich Drepper <drepper@redhat.com>
1043 * io/fcntl.h (posix_fallocate): Change type of third parameter to
1045 (posix_fallocate64): Change type of third parameter to off64_t.
1046 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
1047 * sysdeps/posix/posix_fallocate.c: Likewise.
1048 * sysdeps/generic/posix_fallocate64.c: Likewise.
1049 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
1050 code for 32-bit platforms.
1051 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
1053 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
1054 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1055 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1057 2003-08-19 Ulrich Drepper <drepper@redhat.com>
1059 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
1060 the type, not to name.
1062 * stdio-common/test-vfprintf.c (main): Don't write temporary file
1063 into source directory.
1065 * malloc/malloc.c (_int_free): Add cheap test for some invalid
1068 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
1071 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1073 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
1076 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
1078 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
1079 (elf_machine_lazy_rel): Likewise.
1081 2003-08-18 Art Haas <ahaas@airmail.net>
1083 * malloc/malloc.h: Remove unneeded ';' where closing the C++
1086 2003-08-18 Ulrich Drepper <drepper@redhat.com>
1088 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
1089 loading big binaries where @gprel(sym) cannot be handled in 'add'
1090 but instead has to be used with 'movl'.
1092 2003-08-17 Juergen Kreileder <jk@blackdown.de>
1093 Andreas Jaeger <aj@suse.de>
1095 * sysdeps/x86_64/bits/byteswap.h: New file.
1097 2003-08-17 Andreas Jaeger <aj@suse.de>
1099 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
1101 2003-08-16 Jakub Jelinek <jakub@redhat.com>
1103 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
1104 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1105 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
1106 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1107 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
1108 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1109 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
1110 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1111 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
1112 ret_ERRVAL): Define.
1113 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
1114 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1115 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
1116 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1117 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
1119 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
1120 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1121 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
1123 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
1124 posix_fadvise64_64): Remove.
1125 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
1127 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1130 (posix_fadvise64): Likewise.
1131 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1132 (posix_fadvise64): Likewise.
1133 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1134 (posix_fadvise64): Likewise.
1135 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1137 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
1138 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
1139 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
1140 (__posix_fadvise64_l32): New function.
1141 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
1142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
1143 posix_fadvise64@@GLIBC_2.3.3.
1144 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1145 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1146 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
1148 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
1150 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1151 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
1153 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1155 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
1156 (elf_machine_matches_host): Remove weak extern stuff.
1157 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
1158 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
1159 stuff. Use GL(dl_hwcap) unconditionally.
1161 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1163 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
1164 __libc_start_main branch.
1166 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
1167 Andreas Jaeger <aj@suse.de>
1169 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
1170 instead of setting errno.
1171 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1173 2003-08-16 Andreas Jaeger <aj@suse.de>
1175 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
1176 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1178 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1180 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1182 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1183 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1184 description indicating the error value is returned, not -1.
1185 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1186 __ASSUME_FADVISE64_64_SYSCALL.
1187 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1188 posix_madvise in one file. Have posix_madvise defined with error
1190 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1192 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1193 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1194 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1195 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1196 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1197 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1200 * posix/Makefile (routines): Add posix_madvise.
1201 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1202 * sysdeps/generic/posix_madvise.c: New file.
1203 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1204 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1205 Add posix_fadvise64_64.
1207 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1209 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1210 3.0, not for !gcc or gcc < 3.0.
1212 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1214 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1215 Address passed to test_in_mod1 and test_in_mod2 without casting.
1216 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1217 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1218 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1219 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1221 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1223 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1224 Change quotes before using [].
1226 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1228 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1230 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1231 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1232 argument. Select one of 64 locks from address bits.
1233 (atomic_compare_and_exchange_val_acq,
1234 atomic_compare_and_exchange_bool_acq): Pass memory address to
1235 __sparc32_atomic_do_{,un}lock.
1237 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1239 * assert/assert.h (assert): Use !! in front of expression to allow
1242 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1243 Changed conversion of JIS X 0201 from using a table to calculating.
1244 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1245 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1247 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1248 * iconvdata/CP932.irreversible: New file.
1249 * iconvdata/EUC-JP-MS.irreversible: New file.
1250 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1252 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1254 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1256 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1257 text processing tools.
1259 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1260 element unless BROKEN_THREAD_SIGNALS is defined.
1261 (struct requestlist): Likewise.
1262 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1263 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1264 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1265 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1266 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1267 Pass current PID to __aio_sigqueue.
1268 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1269 call. Don't initialize caller_pid field of waitlist element.
1271 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1273 * libio/libioP.h (_IO_vtable_offset): Define.
1274 * libio/freopen.c (freopen): Use it.
1275 * libio/ioputs.c (_IO_puts): Likewise.
1276 * libio/freopen64.c (freopen64): Likewise.
1277 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1279 * libio/iofclose.c (_IO_new_fclose): Likewise.
1280 * libio/iofputs.c (_IO_fputs): Likewise.
1281 * libio/ioftell.c (_IO_ftell): Likewise.
1282 * libio/iofwrite.c (_IO_fwrite): Likewise.
1283 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1284 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1285 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1286 * stdio-common/vfscanf.c (ORIENT): Likewise.
1288 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1290 * assert/assert.h: Use __builtin_expect in assert and
1291 assert_perror definitions if possible.
1293 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1295 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1296 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1297 * elf/rtld.c (rtld_lock_default_lock_recursive,
1298 rtld_lock_default_unlock_recursive): New functions.
1299 (dl_main): Initialize _dl_rtld_lock_recursive and
1300 _dl_rtld_unlock_recursive.
1302 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1304 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1305 config_file directories instead of prepending.
1307 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1309 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1310 __ASSUME_CLONE_STOPPED.
1312 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1314 * sysdeps/generic/bits/libc-lock.h
1315 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1317 2003-08-01 Roland McGrath <roland@frob.com>
1319 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1321 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1323 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1324 instead of __SWORD_TYPE.
1325 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1326 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1327 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1329 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1331 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1333 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1335 * dlfcn/dlerror.c (once): New.
1336 (dlerror): Call __libc_once.
1337 (_dlerror_run): Remove once.
1339 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1340 Sync with 2.5.7 and 2.5.73 kernel changes.
1342 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1343 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1345 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1346 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1347 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1348 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1349 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1350 difference argument.
1351 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1353 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1354 %d format and cast expected value to int.
1355 * sysdeps/generic/libc-start.c (STATIC): Add
1356 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1357 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1358 to ieee_float_shape_type.
1359 (__sqrt): Avoid type punning.
1360 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1361 to ieee_float_shape_type.
1362 (__sqrtf): Avoid type punning.
1363 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1364 refsym if in dl-conflict.c.
1365 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1366 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1367 (__new_semctl): Shut up warning.
1368 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1369 (__new_semctl): Shut up warning.
1370 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1371 Change old into union of __old_shmid_ds and __old_shminfo structs.
1373 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1375 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1376 modtime computation.
1377 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1378 * sysdeps/posix/utimes.c (__utimes): Likewise.
1380 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1382 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1383 call dl_signal_error directly. If already relocated, call
1384 GL(dl_init_static_tls) directly, otherwise queue it for later.
1385 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1386 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1387 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1388 for all static TLS initializations delayed in _dl_allocate_static_tls.
1389 * elf/dl-support.c (_dl_init_static_tls): New variable.
1390 * include/link.h (struct link_map): Add l_need_tls_init.
1391 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1392 (_dl_nothread_init_static_tls): New prototype.
1393 (_dl_allocate_static_tls): Adjust prototype.
1395 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1397 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1399 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1400 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1401 reloc_addr is aligned.
1402 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1403 elf_machine_rela_relative): Adjust.
1404 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1405 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1406 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1407 elf_machine_rela_relative): Adjust.
1408 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1409 elf_machine_rela_relative): Adjust.
1410 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1411 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1412 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1413 elf_machine_rela_relative): Adjust.
1414 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1415 elf_machine_rela_relative): Adjust.
1416 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1417 elf_machine_rela_relative): Adjust.
1418 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1419 elf_machine_rela_relative): Adjust.
1420 * sysdeps/powerpc/powerpc64/dl-machine.h
1421 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1422 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1423 elf_machine_rela_relative): Adjust.
1424 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1425 elf_machine_rela_relative): Adjust.
1426 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1427 elf_machine_rela_relative): Adjust.
1428 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1429 elf_machine_rela_relative): Adjust.
1430 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1431 elf_machine_rela_relative): Adjust.
1432 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1433 elf_machine_rela_relative): Adjust.
1435 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1437 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1438 alignment of TCB used before the last change so that it matches
1439 ld's output for IE code.
1441 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1443 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1444 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1445 break strict-aliasing rules" warnings.
1447 2003-07-29 Roland McGrath <roland@redhat.com>
1449 * elf/Makefile: Revert accidental changes in last commit.
1450 * elf/dl-support.c: Likewise.
1452 * rt/tst-timer2.c: New file.
1453 * rt/Makefile (tests): Add it.
1455 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1457 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1459 2003-07-29 Roland McGrath <roland@redhat.com>
1461 * elf/Makefile (tests) [$(build-shared) = yes]:
1462 Depend on $(test-modules).
1463 * dlfcn/Makefile: Likewise.
1465 2003-07-28 Roland McGrath <roland@redhat.com>
1467 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1468 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1470 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1471 * elf/tst-tlsmod14a.c: Likewise.
1473 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1474 before <linux/sysctl.h>.
1476 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1478 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1479 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1480 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1481 * sysdeps/unix/syscalls.list: umask syscall never fails.
1483 2003-07-27 Andreas Jaeger <aj@suse.de>
1485 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1487 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1489 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1490 Include bits/a.out.h.
1491 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1493 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1494 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1495 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1496 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1497 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1498 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1499 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1500 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1502 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1504 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1505 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1506 aiocbp->aio_fildes does not match fildes.
1508 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1510 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1513 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1514 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1515 Fix calculation of offsets to take misalignment of first byte in
1517 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1518 l_tls_firstbyte_offset field.
1519 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1520 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1521 Take l_tls_firstbyte_offset information into account.
1522 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1523 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1524 * elf/Makefile: Add rules to build and run tst-tls14.
1525 * elf/tst-tls14.c: New file.
1526 * elf/tst-tlsmod14a.c: New file.
1527 * elf/tst-tlsmod14b.c: New file.
1529 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1531 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1532 (lio_listio): Use it.
1533 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1534 after few defines to avoid duplication.
1536 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1538 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1539 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1541 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1542 Add libc_hidden_def.
1543 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1544 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1545 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1546 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1547 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1548 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1549 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1551 * sysdeps/generic/unwind.inc: Removed.
1553 * include/resolv.h (__resp): Declare. Define to __libc_resp
1555 (_res): If USE___THREAD, define to (*__resp).
1556 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1557 even if USE___THREAD.
1558 (__resp): New __thread variable.
1559 (__libc_resp): New alias.
1560 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1561 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1562 * sysdeps/generic/res-state.c (__res_state): Return __resp
1565 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1567 * elf/dl-support.c (_dl_hwcap): New variable.
1568 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1570 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1571 and <dl-procinfo.h>.
1572 (__feclearexcept): Clear MXCSR if needed.
1573 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1575 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1576 that newer hardware needs more than these macros.
1578 * sysdeps/i386/setfpucw.c: New file.
1580 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1582 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1583 * elf/ldconfig.c: Include dl-procinfo.c.
1584 (PROCINFO_CLASS): Define.
1585 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1586 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1587 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1588 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1589 Define if not yet defined. Use it instead of EXTERN. Undefine
1590 at the end of the file.
1591 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1593 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1594 (PROCINFO_CLASS): Likewise.
1595 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1596 (PROCINFO_CLASS): Likewise.
1598 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1600 * elf/ldconfig.c (main): Issue a fatal error if relative path
1601 is used to build cache.
1603 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1605 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1607 2003-07-21 Art Haas <ahaas@airmail.net>
1609 * manual/charset.texi (Converting a Character): Fix example code so a
1610 valid pointer is returned.
1612 2003-07-22 Andreas Jaeger <aj@suse.de>
1614 * elf/readlib.c (process_file): Check that file is a shared
1617 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1618 will not optimize it away.
1619 (__DTOR_END__): Likewise.
1620 (__CTOR_END__): Likewise.
1622 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1623 that gcc will not optimize it away.
1624 (link_warning): Likewise.
1626 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1628 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1629 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1630 * wcsmbs/tst-wcpncpy.c: New file.
1632 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1634 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1636 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1637 stmxcsr and ldmxcsr.
1639 * Makerules (build-module-helper): Add -z defs unless explicitly said
1641 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1642 which has undefined symbols.
1643 * elf/Makefile: Likewise.
1645 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1646 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1647 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1648 * sysdeps/i386/fpu/fesetround.c: Likewise.
1649 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1651 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1653 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1654 if it won't point to itself.
1656 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1658 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1660 2003-07-20 Andreas Jaeger <aj@suse.de>
1662 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1663 STANDARD_TO_LOOP_ERR_HANDLER.
1664 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1666 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1668 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1670 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1672 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1673 Andreas Jaeger <aj@suse.de>
1675 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1676 256K, remove unneeded declaration of __getpagesize.
1678 2003-07-16 Andreas Schwab <schwab@suse.de>
1680 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1682 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1684 * io/test-utime.c (main): Make test yet more robust.
1686 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1688 More cancellation handling fixups.
1689 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1690 * sysdeps/generic/not-cancel.h: Likewise.
1691 * catgets/open_catalog.c: Use not-cancelable syscalls.
1692 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1693 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1694 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1695 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1696 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1697 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1698 * libio/iopopen.c: Use no-cancelable syscalls.
1699 * libio/stdio.h: Mark popen and pclose with __THROW again.
1700 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1701 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1702 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1703 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1704 CFLAGS-tempname.c): Add -fexceptions.
1705 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1706 * string/string.h: Mark strerror and strerror_r with _THROW again.
1707 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1708 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1709 #ifs since we now need all the code compiled.
1710 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1711 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1712 * sysdeps/unix/opendir.c: Likewise.
1714 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1715 Add rule for EUC-JP-MS dependency.
1716 * iconvdata/cp932.c: New file.
1717 * iconvdata/eucjp-ms.c: New file.
1718 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1719 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1721 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1726 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1728 * sysdeps/unix/sysv/linux/kernel-features.h
1729 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1732 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1734 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1736 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1737 __ASSUME_TGKILL for Alpha appropriately.
1739 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1741 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1742 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1744 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1747 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1748 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1750 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1751 second parameter == NULL.
1752 * sysdeps/unix/sysv/linux/utimes.c: New file.
1754 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1756 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1757 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1760 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1762 * time/sys/time.h: Namespace cleanup.
1763 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1764 __ASSUME_UTIMES for the architectures which always had the syscall.
1765 * sysdeps/unix/sysv/linux/futimes.c: New file.
1767 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1769 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1770 register across CENABLE and CDISABLE.
1772 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1774 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1775 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1776 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1777 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1778 int before assigning to max to avoid warnings.
1780 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1784 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1785 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1787 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1789 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1790 .data.rel.ro.local to "aw".
1792 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1794 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1795 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1796 (PIC-ccflag): Define.
1798 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1800 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1802 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1804 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1806 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1807 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1809 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1811 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1812 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1814 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1815 compilation with HAVE_AUX_SECURE defined.
1817 2003-07-05 Richard Henderson <rth@redhat.com>
1819 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1821 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1823 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1825 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1827 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1830 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1832 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1834 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1836 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1838 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1839 decl and use with #ifdef NEED_DL_SYSINFO.
1841 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1843 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1844 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1845 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1846 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1847 vsyscall DSO was added.
1849 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1850 depending on selected standard.
1851 (NGROUPS_MAX): Define to 8 if not defined.
1853 2003-07-02 Andreas Jaeger <aj@suse.de>
1855 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1857 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1859 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1860 * malloc/thread-m.h: Include <atomic.h>.
1861 (atomic_full_barrier): Provide default.
1862 (atomic_read_barrier): Likewise.
1863 (atomic_write_barrier): Likewise.
1864 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1866 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1868 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1870 2003-06-30 Richard Henderson <rth@redhat.com>
1872 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1873 Invert the sense of the return value.
1874 (__arch_exchange_16_int): Fix paste-o.
1875 (__arch_exchange_{32,64}_int): Fix think-o.
1877 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1879 2003-06-30 Richard Henderson <rth@redhat.com>
1881 * include/sys/resource.h (__getrusage): Mark hidden.
1882 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1883 * include/sys/wait.h (__wait4): Likewise.
1885 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1887 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1889 (xstat_conv): Rename to __xstat_conv and remove static inline.
1890 (xstat64_conv): Likewise.
1892 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1894 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1895 values which cannot be handled in one nanosleep call.
1897 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1899 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1900 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1902 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1904 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1906 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1909 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1911 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1912 Conditionalize function definitions that use struct kernel_stat.
1913 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1914 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1915 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1917 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1919 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1922 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1924 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1925 (getgrent_next_file): Don't store group name to early in blacklist.
1927 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1928 and use memcpy instead of strcpy.
1930 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1932 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1934 * nis/nss_compat/compat-initgroups.c: Likewise.
1935 * nis/nss_compat/compat-pwd.c: Likewise.
1936 * nis/nss_compat/compat-spwd.c: Likewise.
1938 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1940 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1941 functions, dlopen corresponding NSS module instead.
1943 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1945 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1946 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1947 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1948 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1950 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1952 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1954 2003-06-26 Roland McGrath <roland@frob.com>
1956 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1957 * sysdeps/mach/configure: Regenerated.
1958 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1959 (__times): Assume `creation_time' field is available.
1960 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1961 Don't append set-init.
1962 * sysdeps/mach/hurd/set-init.c: File removed.
1964 2003-06-26 Roland McGrath <roland@redhat.com>
1966 * elf/elf.h (AT_SECURE): New macro.
1967 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1968 set __libc_enable_secure.
1969 (_dl_show_auxv): Add AT_SECURE to name table.
1970 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1971 __libc_enable_secure and __libc_enable_secure_decided.
1972 * sysdeps/unix/sysv/linux/ldsodefs.h
1973 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1974 * sysdeps/unix/sysv/linux/kernel-features.h
1975 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1977 2003-06-26 Ulrich Drepper <drepper@redhat.com>
1979 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1980 boundary test to take rounding of nanoseconds into account.
1982 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1983 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1984 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1985 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1986 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1987 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1988 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1990 2003-06-26 Andreas Schwab <schwab@suse.de>
1992 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1993 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1994 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1996 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
1998 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1999 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
2000 dlopen corresponding NSS module instead.
2001 * nis/nss_compat/compat-pwd.c: Likewise.
2002 * nis/nss_compat/compat-spwd.c: Likewise.
2003 * nis/nss_compat/compat-initgroups.c: Disabled for now.
2004 * nss/Versions: Export __nss_lookup_function.
2006 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2008 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
2009 for the SH architecture.
2011 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
2013 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
2015 2003-06-25 Andreas Jaeger <aj@suse.de>
2017 * stdlib/tst-strtod.c (main): Declare constant long double as
2018 suggested by Jakub Jelinek and Andreas Schwab.
2020 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
2023 * stdio-common/tst-fphex.c: Fix format string.
2025 * posix/transbug.c: Include <string.h> for memset and strlen
2028 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
2030 * stdlib/tst-strtod.c (main): Pass long double value.
2032 * test-skeleton.c: Include <time.h> for nanosleep declaration.
2034 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2036 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
2039 2003-06-11 Jakub Jelinek <jakub@redhat.com>
2041 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
2042 * elf/dl-libc.c (struct dl_open_hook): New.
2043 (_dl_open_hook): New variable.
2044 (do_dlsym_private): New function.
2045 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
2046 and initialize it if found.
2047 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
2048 call dlopen_mode hook.
2049 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
2051 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
2054 2003-06-25 Ulrich Drepper <drepper@redhat.com>
2056 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
2057 result to long int so that extensions to long long int work.
2058 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2060 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2062 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
2063 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
2064 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
2066 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
2067 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
2068 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
2069 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
2071 2003-06-19 Jakub Jelinek <jakub@redhat.com>
2073 * test-skeleton.c (timeout_handler): If waitpid returned 0,
2074 retry once after a second. If killed == 0, assume
2075 WTERMSIG (status) == SIGKILL.
2077 2003-06-18 Roland McGrath <roland@redhat.com>
2079 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
2080 elements in the table instead of printing an empty name string.
2082 2003-06-05 Roland McGrath <roland@redhat.com>
2084 * elf/elf.h (PT_GNU_STACK): New macro.
2086 2003-06-24 Ulrich Drepper <drepper@redhat.com>
2088 * include/time.h: Define CLOCK_IDFIELD_SIZE.
2089 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
2090 * sysdeps/unix/clock_gettime.c: Likewise.
2091 * sysdeps/unix/clock_settime.c: Likewise.
2092 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
2093 clock id for thread CPU clocks.
2095 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
2096 for the fstatfs64 syscall.
2097 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
2098 the statfs64 syscall.
2100 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2101 __ASSUME_STATFS64 appropriately.
2103 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
2104 from statfs structure if it has been filled in.
2106 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
2108 (struct statfs64): Likewise.
2109 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
2110 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2112 2003-06-24 Richard Henderson <rth@redhat.com>
2114 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
2115 the 64-bit syscall name.
2117 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
2119 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
2120 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
2122 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
2123 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
2125 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2126 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
2129 * sysdeps/alpha/bits/atomic.h: New file.
2131 2003-06-24 Andreas Schwab <schwab@suse.de>
2133 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2135 2003-06-24 Andreas Jaeger <aj@suse.de>
2137 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
2138 redeclaration with 32-bit code.
2140 2003-05-19 Ed Connell <ed.connell@sas.com>
2142 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
2143 floating point mask.
2144 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
2146 2003-06-23 Ulrich Drepper <drepper@redhat.com>
2148 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
2149 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
2150 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
2152 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
2153 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
2154 instead of __libc_cleanup_region_*.
2156 2003-06-20 Richard Henderson <rth@redhat.com>
2158 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
2159 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
2161 2003-06-20 Richard Henderson <rth@redhat.com>
2163 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
2164 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
2166 (__ASSUME_TIMEVAL64): Set for alpha.
2167 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2168 adjtimex, osf_sigprocmask, old_adjtimex.
2169 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
2170 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
2171 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
2172 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2173 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2174 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2175 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2176 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2177 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2178 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2179 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2181 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2182 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2183 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2184 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2185 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2186 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2187 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2188 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2189 defer to __syscall_name; error for rt_sigaction.
2190 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2192 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2194 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2195 hasn't happened yet.
2197 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2198 Fix completely broken implementation. The second parameter is of
2199 type struct ucontext*.
2201 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2204 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2205 * sysdeps/generic/dl-hash.h: Likewise.
2207 * sysdeps/generic/memcmp.c: Remove inline from
2208 memcmp_common_alignment and memcmp_not_common_alignment definition.
2210 * intl/localealias.c (read_alias_file): Determine whether line is
2211 read incompletely early, before we modify the line.
2213 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2215 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2216 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2218 2003-06-17 Paul Mackerras <paulus@samba.org>
2220 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2225 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2227 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2229 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2231 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2233 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2234 takes care of enabling cancellation.
2236 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2237 cancelable. It's not correct to disable cancellation. Instead of
2240 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2241 and part of the incoming set, create a temporary set without this
2243 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2244 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2246 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2247 returning because seconds==0. Add __builtin_expect.
2249 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2251 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2253 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2256 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2258 * include/libc-symbols.h: Add static_link_warning macro.
2259 * grp/initgroups.c: Print linker warning if this function
2260 is called in a static linked binary.
2261 * nss/getXXbyYY.c: Likewise.
2262 * nss/getXXbyYY_r.c: Likewise.
2263 * nss/getXXent.c: Likewise.
2264 * nss/getXXent_r.c: Likewise.
2265 * sysdeps/posix/getaddrinfo.c: Likewise.
2267 2003-06-16 Bruno Haible <bruno@clisp.org>
2269 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2271 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2272 (IBM1047): Add alias IBM-1047.
2273 (GBK): Add aliases MS936, WINDOWS-936.
2275 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2277 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2278 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2279 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2281 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2283 * locale/iso-639.def: Update from current official ISO 639.
2285 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2287 2003-06-15 Andreas Jaeger <aj@suse.de>
2289 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2291 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2292 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2293 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2295 * math/tgmath.h (carg): Handle real arguments.
2301 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2302 (tests): Add test-tgmath-ret.
2303 * math/test-tgmath-ret.c: New file.
2305 * math/tgmath.h (ilogb): Return always an int.
2307 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2309 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2310 computation so that prelinking works.
2312 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2314 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2316 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2317 dynamic linker's map.
2319 Fix cancellation point handling wrt exception based cleanup.
2320 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2321 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2323 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2324 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2325 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2327 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2328 sigwait.c, and sigwaitinfo.c with exceptions.
2329 * stdlib/Makefile: Compile system.c with exceptions.
2330 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2331 * termios/Makefile: Compile tcdrain.c with exceptions.
2332 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2334 * sysdeps/generic/pselect.c: Likewise.
2335 * sysdeps/posix/sigpause.c: Likewise.
2336 * sysdeps/posix/system.c: Likewise.
2337 * sysdeps/posix/waitid.c: Likewise.
2338 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2339 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2340 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2341 INTERNAL_SYSCALL to not use push inside asm statement so that
2342 unwind info is correct around the syscall.
2343 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2344 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2346 2003-06-15 Andreas Jaeger <aj@suse.de>
2348 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2351 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2353 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2356 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2358 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2361 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2362 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2365 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2366 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2367 * inet/Makefile (routines): Add inet6_option.
2368 * inet/inet6_option.c: New file.
2369 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2370 inet6_option_init, inet6_option_append, inet6_option_alloc,
2371 inet6_option_next, and inet6_option_find.
2373 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2375 * inet/netinet/ip6.h (struct ip6_ext): Define.
2377 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2379 Fixing gcc 3.3 warnings, part II.
2380 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2381 * elf/dl-load.c (cache_rpath): Don't inline.
2382 * iconvdata/cns11642l2.h: Always inline all functions.
2383 * iconvdata/iso-ir-165.h: Likewise.
2384 * locale/Makefile (aux): Add coll-lookup.
2385 * locale/coll-lookup.c: New file.
2386 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2387 (collseq_table_lookup): Likewise.
2388 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2389 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2391 * posix/regcomp.c: Likewise.
2392 * posix/regexec.c: Likewise.
2393 * locale/programs/3level.h (*_get): Always inline.
2394 * locale/programs/locfile.h: Move definition of handle_copy to...
2395 * locale/programs/locfile.c: ...here.
2396 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2397 (obstack_int32_grow_fast): Likewise.
2398 (utf8_encode): Likewise.
2399 (find_element): Avoid aliasing problems.
2400 (insert_value): Likewise.
2401 (collate_read): Likewise.
2402 * nss/getent.c (print_hosts): Don't inline
2403 (print_networks): Likewise.
2404 (print_shadow): Likewise.
2405 (build_doc): Likewise.
2406 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2408 * posix/regcomp.c (re_set_fastmap): Always inline.
2409 (seek_collating_symbol_entry): Likewise.
2410 (lookup_collation_sequence_value): Likewise.
2411 (build_range_exp): Likewise.
2412 (build_collating_symbol): Likewise.
2413 * posix/regexec.c (acquire_init_state_context): Don't inline.
2414 (clean_state_log_if_need): Likewise.
2415 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2417 (evConsTime): Likewise.
2418 (evAddTime): Likewise.
2419 (evSubTime): Likewise.
2420 (evNowTime): Likewise.
2421 (evTimeSpec): Removed.
2422 (__libc_res_nsend): Avoid aliasing problem.
2423 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2424 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2425 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2427 (_dl_string_platform): Likewise.
2428 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2429 (wcwidth_table_lookup): Likewise.
2430 (wctrans_table_lookup): Likewise.
2432 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2434 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2436 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2438 2003-05-29 Jim Meyering <jim@meyering.net>
2440 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2441 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2442 Suggested by Daniel Yacob <locales@geez.org>.
2444 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2446 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2447 @got notation with @toc.
2448 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2451 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2453 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2454 if only PF_INET address is needed.
2456 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2459 * scripts/config.guess: Update from upstream version.
2460 * scripts/config.sub: Likewise.
2462 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2464 * locale/programs/ld-time.c (time_output): Also copy the era format,
2467 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2469 * posix/transbug.c (run_test): Return 1 for failure.
2470 (do_test): Compare only if run_test is successful.
2472 2003-06-12 Simon Josefsson <jas@extundo.com>
2474 * argp/argp.h [!__THROW]: Define if undefined.
2476 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2478 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2479 more than four parameters.
2480 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2482 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2484 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2485 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2486 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2488 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2490 2003-06-12 Roland McGrath <roland@redhat.com>
2492 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2494 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2496 * posix/regcomp.c (parse_expression): Deliver translation to
2497 build_word_op, and build_charclass.
2498 (build_charclass): Apply translation for character classes too.
2499 (build_word_op): Deliver translation to build_charclass.
2500 * posix/transbug.c: New file.
2501 * posix/Makefile (tests): Add transbug.
2503 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2505 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2506 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2507 'continue' before the others.
2509 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2511 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2512 function [PR libc/5045].
2514 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2517 * time/tzfile.c: Add a couple of __builtin_expect.
2519 Remove warnings gcc 3.3 shows.
2520 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2521 * elf/dl-load.c (fillin_rpath): Likewise.
2522 (add_path): Likewise.
2523 * elf/dl-version.c (find_needed): Always inline.
2524 * elf/do-lookup.c (FCT): Don't inline.
2525 * iconv/Makefile: Extend vpath to intl subdir.
2526 (iconvconfig-modules): Add hash-string.
2527 * iconv/gconv_charset.h (strip): Don't inline.
2528 (upstr): Always inline.
2529 Move __gconv_compare_alias prototype to...
2530 * iconv/gconv_int.h: ...here.
2531 * iconv/gconv_db.c: Don't include gconv_charset.h.
2532 * iconv/gconv_conf.c (add_alias): Don't inline.
2533 (insert_module): Likewise.
2534 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2535 (internal_ucs4_loop_unaligned): Likewise.
2536 (internal_ucs4_loop_single): Likewise.
2537 (ucs4_internal_loop): Likewise.
2538 (ucs4_internal_loop_unaligned): Likewise.
2539 (ucs4_internal_loop_single): Likewise.
2540 (internal_ucs4le_loop): Always inline.
2541 (internal_ucs4le_loop_unaligned): Likewise.
2542 (internal_ucs4le_loop_single): Likewise.
2543 (ucs4le_internal_loop): Likewise.
2544 (ucs4le_internal_loop_unaligned): Likewise.
2545 (ucs4le_internal_loop_single): Likewise.
2546 * iconv/loop.c: Always inline the defined functions.
2547 * iconvdata/cns11642.h: Likewise.
2548 * iconvdata/cns11642l1.h: Likewise.
2549 * iconvdata/euc-kr.c: Likewise.
2550 * iconvdata/gb2312.h: Likewise.
2551 * iconvdata/jis0201.h: Likewise.
2552 * iconvdata/jis0208.h: Likewise.
2553 * iconvdata/jis0212.h: Likewise.
2554 * iconvdata/jisx0213.h: Likewise.
2555 * iconvdata/ksc5601.h: Likewise.
2556 * iconvdata/utf-7.c (base64): Don't inline.
2557 * include/libc-symbols.h (symbol_set_first_element): Add cast
2558 (symbol_set_end_p): Likewise.
2559 * include/set-hooks (RUN_HOOK): Likewise.
2560 * inet/Makefile (aux): Add ifreq.
2561 * intl/Makefile (aux): Add some entries from routines. Add
2563 * intl/hash-string.c: New file.
2564 * intl/hash-string.h: Remove hash_string definition. Declare
2566 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2567 * iconv/iconvconfig.c (new_name): Likewise.
2568 * intl/dcigettext.c (_nl_find_msg): Likewise.
2569 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2570 * io/ftw.c (open_dir_stream): Always inline.
2571 (process_entry): Don't inline.
2572 * locale/findlocale.c: Include gconv_int.h.
2573 * locale/setlocale.c (new_composite_name): Don't inline.
2574 * locale/weight.h (findidx): Always inline.
2575 * locale/weightwc.h (findidx): Likewise.
2576 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2577 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2579 (lr_getc): Always inline.
2580 (lr_ungetc): Likewise.
2581 * nss/nss_files/files-parse.c (parse_list): Likewise.
2582 * stdio-common/Makefile (aux): Add printf-parsemb and
2584 * stdio-common/_itoa.h (_itoa_word): Always inline.
2585 (_fitoa_word, _fitoa): Don't define here, only declare.
2586 * stdio-common/_itoa.c (_iftoa_word): Add here.
2588 * stdio-common/_itowa.h (_itowa_word): Always inline.
2589 * stdio-common/printf-parse.h (read_int): Don't inline.
2590 (find_spec): Don't define.
2591 Declare __find_specmb and __find_specwc.
2592 (parse_one_spec): Don't define.
2593 Declare __parse_one_specmb and __parse_one_specwc.
2594 * stdio-common/printf-parsemb.c: New file.
2595 * stdio-common/printf-parsewc.c: New file.
2596 * stdio-common/vfprintf.c: Update calls to find_spec and
2597 parse_one_spec for new names.
2598 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2599 * stdlib/Makefile (aux): Add grouping and groupingwc.
2600 * stdlib/grouping.c: New file.
2601 * stdlib/groupingwc.c: New file.
2602 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2604 * stdlib/rpmatch.c (try): Don't inline.
2605 * stdlib/strtod.c (round_and_return): Don't line.
2606 (str_to_mpn): Likewise.
2607 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2608 Adjust for name change of correctly_grouped_prefix.
2609 * sysdeps/generic/strtol.c: Adjust for name change of
2610 correctly_grouped_prefix.
2611 * string/strxfrm.c (utf8_encode): Don't inline.
2612 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2613 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2614 * sysdeps/generic/ifreq.c: New file.
2615 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2616 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2617 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2618 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2619 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2620 (fde_split): Likewise.
2621 (fde_merge): Likewise.
2622 (end_fde_sort): Likewise.
2623 (init_object): Likewise.
2624 (binary_search_unencoded_fdes): Likewise.
2625 (binary_search_single_encoding_fdes): Likewise.
2626 (binary_search_mixed_encoding_fdes): Likewise.
2627 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2628 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2629 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2630 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2632 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2633 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2634 Export them. Prepend __ to name.
2635 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2636 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2637 conversion functions.
2638 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2639 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2640 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2641 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2642 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2643 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2644 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2645 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2646 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2647 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2648 to name. Change callers.
2649 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2650 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2652 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2653 * time/tzfile.c (decode): Always inline.
2654 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2655 Remove cast in tomb function call.
2656 * wcsmbs/wcsrtombs.c Likewise.
2657 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2660 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2662 * po/zh_CN.po: Update from translation team.
2664 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2666 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2667 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2669 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2671 * inet/Makefile (aux): Add check_pf.
2672 * include/ifaddrs.h: Add prototype for __check_pf.
2673 * sysdeps/generic/check_pf.c: New file.
2674 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2675 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2676 from no_netlink_support. Export.
2677 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2680 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2682 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2683 from getifaddr calls.
2685 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2687 * sysdeps/unix/sysv/linux/kernel-features.h
2688 (__ASSUME_SETRESGID_SYSCALL): Define.
2689 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2690 instead of __ASSUME_SETRESUID_SYSCALL.
2691 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2693 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2694 inline syscall if __NR_setresuid32 is defined.
2695 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2696 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2697 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2698 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2699 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2700 code handling non-existant setresgid32 syscall with
2701 #if __ASSUME_SETRESGID_SYSCALL == 0.
2703 2003-06-09 Andreas Schwab <schwab@suse.de>
2705 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2706 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2707 $(objpfx)rpc-proto.d.
2708 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2709 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2710 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2712 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2714 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2715 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2716 defined drop compatibility code.
2717 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2718 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2719 defined drop compatibility code.
2720 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2721 setresuid32 syscall directly if possible.
2722 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2723 setresgid32 syscall directly if possible.
2724 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2725 compliant. Don't change sgid.
2726 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2727 compliant. Don't change suid.
2729 * config.h.in: Add have-forced-unwind.
2730 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2732 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2734 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2735 returned status from child matches.
2737 * Makeconfig (gnulib): Add -lgcc_eh once again.
2739 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2741 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2743 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2744 %edx for first parameter. This means no pushl and therefore the
2745 unwind info isn't screwed up.
2747 2003-06-04 Richard Henderson <rth@redhat.com>
2749 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2750 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2751 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2752 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2753 entry sequence and explicit relocs. Add unwind info for sigreturn
2755 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2757 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2758 Annotate some parameters.
2759 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2761 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2763 * include/libc-symbols.h (symbol_set_declare): Use arrays
2764 of unspecified size.
2766 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2768 * config.make.in (ASFLAGS-config): New.
2769 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2770 * configure.in (libc_cv_as_noexecstack): New check.
2771 (ASFLAGS_config): Substitute.
2773 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2775 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2776 hypot, logb): Protect with #ifdef __FAST_MATH__.
2778 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2780 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2781 #ifdef __FAST_MATH__.
2783 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2785 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2786 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2787 * posix/globtest.sh: Adjust for this change.
2789 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2790 to get the actual PID value used in the records passed up.
2791 (getifaddrs): Don't initialize nh.pid here.
2793 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2795 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2798 * po/zh_CN.po: Update from translation team.
2800 * posix/getconf.c (main): Also recognize names without the
2803 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2805 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2807 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2808 ldexpf, ldexpl): Only define if __FAST_MATH__.
2810 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2812 Replace hard-coded offsets into struct sigcontext with generated file.
2813 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2814 * sysdeps/unix/sysv/linux/ia64/Makefile
2815 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2816 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2817 defining SC_* macros here.
2819 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2821 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2823 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2825 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2827 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2829 * test-skeleton.c (main): Request getopt to not reorder the
2832 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2834 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2837 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2839 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2841 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2843 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2845 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2846 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2847 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2849 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2851 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2854 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2856 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2858 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2861 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2863 * scripts/config.guess: Update from master copy.
2864 * scripts/config.sub: Likewise.
2866 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2868 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2869 SETUP_GP64 and friends.
2870 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2871 names in internal_syscall{6,7}.
2872 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2873 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2874 number of syscall arguments.
2875 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2876 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2877 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2879 2003-05-30 Andreas Jaeger <aj@suse.de>
2881 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2884 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2887 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2889 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2892 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2894 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2897 2003-05-11 Andreas Schwab <schwab@suse.de>
2899 * Makerules: Always use -MP together with -MD.
2900 (sed-remove-dotot): Substitute $(..) also at start of line.
2901 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2902 Generated defines with a single compiler call.
2903 Use $(sed-remove-dotdot).
2904 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2905 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2906 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2907 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2908 * sysdeps/unix/sysv/linux/mips/Makefile
2909 ($(objpfx)syscall-%.h): Likewise.
2911 2003-05-28 Roland McGrath <roland@redhat.com>
2913 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2915 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2917 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2919 2003-05-28 Roland McGrath <roland@redhat.com>
2921 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2922 rt_sigprocmask system call.
2923 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2924 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2926 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2928 * include/libc-symbols.h: Define hidden attribute for real also if
2929 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2931 * csu/Makefile: Add rules to build Scrt1.o.
2932 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2933 * sysdeps/x86_64/elf/start.S: Likewise.
2935 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2937 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2938 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2939 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2940 pa_short_int, pa_u_short_int and pa_float.
2942 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2944 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2945 _IO_str_init_static_internal.
2946 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2947 change size argument to _IO_size_t, don't limit sprintf to 64M.
2948 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2949 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2950 _IO_size_t, don't limit swprintf to 256M.
2951 (_IO_wstr_init_readonly): Remove.
2952 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2954 (_IO_wstr_init_readonly): Remove prototype.
2955 * libio/iovsprintf.c (_IO_vsprintf): Use
2956 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2957 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2958 * libio/memstream.c (open_memstream): Likewise.
2959 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2960 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2961 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2962 * stdio-common/tst-sprintf.c (main): Add new test.
2964 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2966 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2967 other implementation in respect of multiple uses of parameter with
2970 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2972 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2973 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2975 2003-05-22 Andreas Jaeger <aj@suse.de>
2977 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2979 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2980 * sysdeps/x86_64/strtok.S: Likewise.
2982 2003-05-20 Guido Guenther <agx@sigxcpu.org>
2984 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2985 to -60 and define SI_TKILL.
2987 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2989 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2990 (feexcp_mask_test): Likewise.
2992 2003-05-21 Ulrich Drepper <drepper@redhat.com>
2994 * locale/programs/locale.c (main): Fix typo in last patch.
2996 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2997 __init_array_start, __init_array_end, __fini_array_start, and
2998 __fini_array_end as hidden.
3000 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
3002 * locale/programs/locale.c (main): Report an error if setlocale()
3003 fails [PR libc/2254].
3005 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3007 * sysdeps/unix/sysv/linux/s390/system.c: New file.
3009 2003-05-21 Jakub Jelinek <jakub@redhat.com>
3011 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
3012 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3013 LOADARGS_6): Don't error if syscall argument is a string literal.
3014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
3015 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3016 LOADARGS_6): Likewise.
3018 2003-05-21 Andreas Jaeger <aj@suse.de>
3020 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
3021 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
3022 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
3024 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
3028 * configure.in: Test for asm cfi directives.
3030 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
3032 2003-05-17 Andreas Jaeger <aj@suse.de>
3034 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
3036 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
3038 2003-05-16 Ulrich Drepper <drepper@redhat.com>
3040 * rt/Makefile (tests): Add tst-clock_nanosleep.
3041 * rt/tst-clock_nanosleep.c: New file.
3042 * posix/Makefile (tests): Add tst-nanosleep.
3043 * posix/tst-nanosleep.c: New file.
3045 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
3047 * include/features.h (__USE_XOPEN2K): Define also for
3048 _POSIX_C_SOURCE>=200112L.
3050 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
3051 SI_TKILL code into SI_USER.
3052 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
3054 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
3056 2003-05-15 Jakub Jelinek <jakub@redhat.com>
3058 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
3059 Remove sym argument, always use refsym.
3060 (__process_machine_rela): Adjust callers.
3061 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
3063 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
3065 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3067 2003-05-15 Ulrich Drepper <drepper@redhat.com>
3069 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
3070 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
3071 print numeric values.
3073 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
3075 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
3077 2003-05-14 Andreas Schwab <schwab@suse.de>
3079 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
3081 2003-05-14 Jakub Jelinek <jakub@redhat.com>
3083 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
3084 even if no DT_NEEDED is present.
3086 2003-05-13 David Mosberger <davidm@hpl.hp.com>
3088 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
3089 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
3090 __sigjmp_save) so we can't keep the saved unat value in a scratch
3091 register (r16). Use loc2 instead.
3093 2003-05-13 Ulrich Drepper <drepper@redhat.com>
3095 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
3096 binaries it has to be relocatable.
3098 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
3100 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3102 * sysdeps/powerpc/bits/atomic.h
3103 (__arch_compare_and_exchange_bool_8_rel): Define.
3104 (__arch_compare_and_exchange_bool_16_rel): Define.
3105 (__ARCH_REL_INSTR): Define if not already defined.
3106 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
3107 (__arch_atomic_decrement_if_positive_32):
3108 Add "memory" to clobber list.
3109 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
3110 (__arch_compare_and_exchange_val_32_rel): Define.
3111 (__arch_atomic_exchange_32): Remove.
3112 (__arch_atomic_exchange_32_acq): Define.
3113 (__arch_atomic_exchange_32_rel): Define.
3114 (atomic_compare_and_exchange_val_rel): Define.
3115 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
3116 (atomic_exchange_rel): Define.
3117 * sysdeps/powerpc/powerpc32/bits/atomic.h
3118 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
3119 (__arch_compare_and_exchange_bool_32_rel): Define.
3120 (__arch_compare_and_exchange_bool_64_rel): Define.
3121 (__arch_compare_and_exchange_val_64_rel): Define.
3122 (__arch_atomic_exchange_64): Remove.
3123 (__arch_atomic_exchange_64_acq): Define.
3124 (__arch_atomic_exchange_64_rel): Define.
3125 * sysdeps/powerpc/powerpc64/bits/atomic.h
3126 (__arch_compare_and_exchange_bool_32_rel): Define.
3127 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
3128 (__arch_compare_and_exchange_bool_64_rel): Define.
3129 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
3130 (__arch_compare_and_exchange_val_64_rel): Define.
3131 (__arch_atomic_exchange_64): Remove.
3132 (__arch_atomic_exchange_64_acq): Define.
3133 (__arch_atomic_exchange_64_rel): Define.
3134 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
3135 (__arch_atomic_decrement_if_positive_64):
3136 Add "memory" to clobber list.
3137 [!UP](__ARCH_REL_INSTR): Define as lwsync.
3139 2003-05-11 Andreas Schwab <schwab@suse.de>
3141 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
3143 2003-05-11 Ulrich Drepper <drepper@redhat.com>
3145 * time/tst-strftime.c (do_test): Add tests for - flag.
3147 2003-05-11 Jim Meyering <jim@meyering.net>
3149 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
3150 the space-padded-by-default conversion specifiers, %e, %k, %l.
3152 2003-05-11 Andreas Schwab <schwab@suse.de>
3154 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
3156 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3158 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
3159 already defined and when really needed.
3160 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3162 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3164 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
3165 headers, add defines from kernel header, move it from here...
3166 * inet/netinet/igmp.h: ... to here.
3167 * inet/Makefile (headers): Add netinet/igmp.h.
3168 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
3169 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
3171 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3173 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
3174 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
3176 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3178 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3179 (remove __THROW from possible cancellation points).
3181 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3183 * posix/sched.h (CPU_SETSIZE): Define.
3185 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3187 * Makeconfig (gnulib): Remove -lgcc_eh again.
3189 * posix/sched.h: Change prototypes of sched_getaffinity and
3190 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3191 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3192 * sysdeps/generic/sched_setaffinity.c: Likewise.
3193 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3194 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3195 __CPU_CLR, and __CPU_ISSET.
3196 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3197 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3198 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3200 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3201 (atomic_exchange_rel): New #define.
3202 * sysdeps/ia64/bits/atomic.h: Likewise.
3203 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3205 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3206 * sysdeps/powerpc/bits/atomic.h: Likewise.
3207 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3208 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3209 * sysdeps/x86_64/bits/atomic.h: Likewise.
3210 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3212 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3214 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3216 * malloc/thread-m.h: Remove special handling of thread_atfork if
3217 HAVE_register_atfork_malloc is defined.
3219 2003-05-07 Andreas Jaeger <aj@suse.de>
3221 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3224 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3226 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3227 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3228 * libio/libioP.h: Declare _IO_old_init.
3229 * libio/genops.c (_IO_no_init): Split in two. New function
3232 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3234 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3236 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3238 * include/unistd.h: Declare __libc_enable_secure_decided.
3239 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3240 and AT_EGID. If all found, set __libc_enable_secure and
3241 __libc_enable_secure_decided.
3243 * sysdeps/generic/libc-start.c [!SHARED]: Call
3244 __libc_check_standard_fds after __libc_init_first.
3246 2003-05-05 Roland McGrath <roland@redhat.com>
3248 * Makerules (common-before-compile): New variable.
3249 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3250 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3251 to after all setting of before-compile.
3253 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3255 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3256 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3257 * sysdeps/powerpc/powerpc32/bits/atomic.h
3258 (__arch_compare_and_exchange_val_64_acq): Likewise.
3259 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3260 (__arch_compare_and_exchange_val_8_acq,
3261 __arch_compare_and_exchange_val_16_acq,
3262 __arch_compare_and_exchange_val_64_acq): Likewise.
3263 * sysdeps/sparc/sparc64/bits/atomic.h
3264 (__arch_compare_and_exchange_val_8_acq,
3265 __arch_compare_and_exchange_val_16_acq): Likewise.
3266 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3267 __arch_compare_and_exchange_val_16_acq,
3268 __arch_compare_and_exchange_val_64_acq): Likewise.
3269 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3270 (__arch_compare_and_exchange_val_64_acq): Likewise.
3271 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3273 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3275 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3276 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3277 Return long instead of int.
3278 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3279 0xfffff001u with -4095UL.
3281 2003-05-05 Andreas Jaeger <aj@suse.de>
3283 * sysdeps/x86_64/fpu_control.h: New from i386.
3285 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3286 Define if not defined.
3288 * sunrpc/Makefile (generated-dirs): New variable.
3289 * resolv/Makefile (generated): New variable.
3291 2003-05-04 Roland McGrath <roland@redhat.com>
3293 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3294 Depend on $(before-compile).
3296 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3297 pattern rule. The implicit rule could be ruled out when $(objpfx)
3298 didn't exist at the time of its consideration (ugh!).
3300 * Makerules (+make-deps): Fix target matching.
3301 Use $(sed-remove-dotdot).
3303 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3305 * nscd/nscd.c (main): Parse config file right after parsing
3306 parameters. Then, if get_stats is true, call receive_print_stats.
3307 Drop parameter from nscd_init call.
3308 (get_stats): New variable.
3309 (parse_opt): Set get_stats, don't call receive_print_stats here.
3310 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3312 * nscd/connections.c (stat_user, stat_uid): New variables.
3314 (nscd_init): Don't read configuration file here. Drop parameter.
3315 (handle_request): Cleanup handling of non-database lookup requests.
3316 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3317 Get UID of the specified user. Use xstrdup instead of strdup.
3318 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3320 * nscd/Makefile (nscd-modules): Add xstrdup.
3321 * nscd/nscd.conf: Document stat-user entry.
3323 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3325 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3328 2003-04-22 Roland McGrath <roland@redhat.com>
3330 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3331 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3332 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3333 * elf/dl-support.c: Update defn.
3334 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3335 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3336 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3337 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3338 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3339 set, set up a link_map for the preloaded, prelinked object.
3341 2003-05-03 Roland McGrath <roland@redhat.com>
3343 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3344 * stdio-common/Makefile: ... not here.
3346 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3347 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3349 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3351 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3353 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3355 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3356 comparing ftab elements.
3357 (_dl_unmap): Fix typo in test.
3358 (_dl_make_fptr): Fix typos introduced in last change.
3360 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3361 original patch. Use non-exported symbols. Mark translatable
3362 strings. Pretty printing.
3364 2003-05-02 Roland McGrath <roland@redhat.com>
3366 * Makerules (do-stamp): Do $(make-target-directory).
3368 2003-04-07 H.J. Lu <hjl@gnu.org>
3370 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3372 2003-04-03 H.J. Lu <hjl@gnu.org>
3374 * sysdeps/ia64/dl-fptr.c: Moved to ...
3375 * sysdeps/generic/dl-fptr.c: Here.
3377 * sysdeps/generic/dl-fptr.h: New.
3378 * sysdeps/ia64/dl-fptr.h: New.
3380 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3381 * sysdeps/generic/dl-symaddr.c: here.
3383 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3384 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3385 (ia64_fdesc): Likewise.
3386 (ia64_fdesc_table): Likewise.
3387 (__ia64_make_fptr): Likewise.
3388 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3389 with _dl_boot_fptr_table.
3390 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3392 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3394 2003-05-01 Roland McGrath <roland@redhat.com>
3396 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3397 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3399 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3400 Use $(make-target-directory).
3401 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3403 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3404 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3405 (compile-command.s, compile-command.c): Likewise.
3406 ($(objpfx)%.d): All such pattern rules removed.
3407 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3408 ($(common-objpfx)dummy.d): Target removed.
3409 (make-dummy-dep): Variable removed.
3410 (generate-md5): Likewise.
3411 (%.d: %.dt): New pattern rule.
3412 (+depfiles): Use $(wildcard) function to get just existing *.d files
3413 and .d files for existing *.dt files.
3414 (common-clean): Remove all *.d and *.dt files.
3415 (before-compile): Add $(objpfx). when it doesn't exist,
3416 regardless of $(no_deps).
3417 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3418 (rtld-depfiles): Use .os.d instead of .d names.
3419 Include existing *.d files and .d files for existing *.dt files.
3421 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3422 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3424 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3425 Do s-*.d includes only if we have some syscall routines in this subdir.
3427 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3428 @nobits. The former is accepted by gas on any ELF platform.
3430 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3432 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3434 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3436 2003-04-29 Andreas Schwab <schwab@suse.de>
3438 * string/test-strcat.c (do_one_test): Fix attribute name.
3440 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3442 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3443 uc_flags long for all ABIs.
3445 2003-04-30 Andreas Jaeger <aj@suse.de>
3447 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3448 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3449 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3450 Add bi-arch support.
3452 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3454 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3455 (__posix_memalign): Use __memalign_internal instead of memalign.
3457 2003-04-29 Roland McGrath <roland@redhat.com>
3459 * configure.in: Search for AUTOCONF unconditionally.
3460 Just don't complain about missing it under --without-cvs.
3462 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3463 give hidden for [SHARED] and weak for [! SHARED].
3464 (symbol_set_declare): Use that. Never need weak_extern these days.
3465 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3466 Depend on $(..)Makerules.
3468 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3470 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3471 variants of socket, bind, recvmsg, and sendto.
3473 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3475 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3476 * signal/sigaddset.c: Add libc_hidden_def.
3477 * signal/sigdelset.c: Likewise.
3479 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3481 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3482 to the end of the file.
3484 * configure.in: Change __oline__ to $LINENO.
3485 (HAVE_BUILTIN_REDIRECTION): New check.
3486 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3487 * include/libc-symbols.h (libc_hidden_builtin_proto,
3488 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3489 libc_hidden_builtin_ver): Define.
3490 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3491 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3492 strspn, strstr): Add libc_hidden_builtin_proto.
3493 * intl/plural.y: Include string.h.
3494 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3495 libc_hidden_builtin_def.
3496 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3497 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3498 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3499 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3500 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3501 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3502 * sysdeps/alpha/memchr.S (memchr): Likewise.
3503 * sysdeps/alpha/memset.S (memset): Likewise.
3504 * sysdeps/alpha/strcat.S (strcat): Likewise.
3505 * sysdeps/alpha/strchr.S (strchr): Likewise.
3506 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3507 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3508 * sysdeps/alpha/strlen.S (strlen): Likewise.
3509 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3510 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3511 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3512 * sysdeps/arm/memset.S (memset): Likewise.
3513 * sysdeps/arm/strlen.S (strlen): Likewise.
3514 * sysdeps/generic/memchr.c (memchr): Likewise.
3515 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3516 * sysdeps/generic/memmove.c (memmove): Likewise.
3517 * sysdeps/generic/memset.c (memset): Likewise.
3518 * sysdeps/generic/strcat.c (strcat): Likewise.
3519 * sysdeps/generic/strchr.c (strchr): Likewise.
3520 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3521 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3522 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3523 * sysdeps/generic/strlen.c (strlen): Likewise.
3524 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3525 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3526 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3527 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3528 * sysdeps/generic/strspn.c (strspn): Likewise.
3529 * sysdeps/generic/strstr.c (strstr): Likewise.
3530 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3531 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3532 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3533 * sysdeps/i386/i586/memset.S (memset): Likewise.
3534 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3535 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3536 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3537 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3538 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3539 * sysdeps/i386/i686/memset.S (memset): Likewise.
3540 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3541 * sysdeps/i386/memchr.S (memchr): Likewise.
3542 * sysdeps/i386/memset.c (memset): Likewise.
3543 * sysdeps/i386/strchr.S (strchr): Likewise.
3544 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3545 * sysdeps/i386/strlen.c (strlen): Likewise.
3546 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3547 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3548 * sysdeps/i386/strspn.S (strspn): Likewise.
3549 * sysdeps/ia64/memchr.S (memchr): Likewise.
3550 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3551 * sysdeps/ia64/memmove.S (memmove): Likewise.
3552 * sysdeps/ia64/memset.S (memset): Likewise.
3553 * sysdeps/ia64/strcat.S (strcat): Likewise.
3554 * sysdeps/ia64/strchr.S (strchr): Likewise.
3555 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3556 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3557 * sysdeps/ia64/strlen.S (strlen): Likewise.
3558 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3559 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3560 * sysdeps/m68k/memchr.S (memchr): Likewise.
3561 * sysdeps/m68k/strchr.S (strchr): Likewise.
3562 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3563 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3564 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3565 * sysdeps/mips/memset.S (memset): Likewise.
3566 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3567 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3568 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3569 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3570 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3571 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3572 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3573 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3574 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3575 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3576 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3577 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3578 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3579 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3580 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3581 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3582 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3583 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3584 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3585 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3586 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3587 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3588 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3589 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3590 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3591 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3592 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3593 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3594 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3595 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3596 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3597 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3598 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3599 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3600 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3601 * sysdeps/sh/memset.S (memset): Likewise.
3602 * sysdeps/sh/strlen.S (strlen): Likewise.
3603 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3604 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3605 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3606 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3607 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3608 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3609 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3610 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3611 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3612 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3613 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3614 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3615 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3616 * sysdeps/x86_64/memset.S (memset): Likewise.
3617 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3618 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3619 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3620 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3621 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3622 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3623 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3624 * string/string-inlines.c: Move...
3625 * sysdeps/generic/string-inlines.c: ...here.
3626 (__memcpy_g, __strchr_g): Remove.
3627 (__NO_INLINE__): Define before including <string.h>,
3628 undefine after. Include bits/string.h and bits/string2.h.
3629 * sysdeps/i386/i486/string-inlines.c: New file.
3630 * sysdeps/i386/string-inlines.c: New file.
3631 * sysdeps/i386/i486/Versions: Remove.
3632 All GLIBC_2.1.1 symbols moved...
3633 * sysdeps/i386/Versions (libc): ...here.
3635 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3637 * sysdeps/i386/fpu/Makefile: New file.
3638 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3639 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3640 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3641 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3644 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3646 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3647 * nscd/nscd_getpw_r.c: Likewise.
3648 * nscd/nscd_gethst_r.c: Likewise.
3650 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3652 * nscd/pwdcache.c: Initialize .version element in result.
3653 * nscd/grpcache.c: Likewise.
3654 * nscd/pwdcache.c: Likewise.
3656 2003-04-27 Andreas Schwab <schwab@suse.de>
3658 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3661 2003-04-27 Andreas Schwab <schwab@suse.de>
3663 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3665 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3667 * nscd/connections.c (client_queued): New variable.
3668 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3669 threads. Keep track of the number of delays caused because of busy
3671 * nscd/nscd.h: Declare client_queued.
3672 * nscd/nscd_stat.c: Transmit and print client_queued information.
3674 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3676 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3677 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3679 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3681 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3682 tracking of freed memory in static TLS block.
3683 * elf/Makefile: Add rules to build and run tst-tls13.
3684 * elf/tst-tls13.c: New file.
3685 * elf/tst-tlsmod13.c: New file.
3686 * elf/tst-tlsmod13a.c: New file.
3688 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3690 * elf/dl-reloc.c: Pretty printing.
3692 2003-04-26 Roland McGrath <roland@redhat.com>
3694 * Makerules ($(common-objpfx)shlib.lds): New target.
3695 (common-generated): Add it.
3696 (build-shlib, build-module): Use that instead of generating every time.
3697 ($(common-objpfx)libc.so): Depend on it.
3698 (lib%.so rule): Likewise.
3699 (build-module-helper-objlist): Remove %.lds.
3700 (LDSEDCMD-c.so): Variable removed.
3701 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3702 Depend on $(common-objpfx)shlib.lds.
3703 * dlfcn/Makefile ($(test-modules)): Likewise.
3705 2003-04-26 Roland McGrath <roland@frob.com>
3707 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3709 2003-04-26 Andreas Schwab <schwab@suse.de>
3711 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3713 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3715 * nscd/cache.c (cache_search): Keep track of how many chain links
3716 we searched and update table statistics.
3717 (cache_add): Keep track of how many values are in the table.
3718 (prune_cache): Likewise. Keep track of locking success.
3719 Print messages about removed entries in separate pass.
3720 * nscd/connections.c (handle_request): Don't print debug message here.
3721 The caller will do it. Keep track of locking success.
3722 (nscd_run): Print debug message. Also print PID of the client process.
3723 * nscd/nscd.c (start_time): New variable.
3724 (main): Remember start time.
3725 * nscd/nscd.h: Declare start_time.
3726 (struct database): Add more members for new statistics.
3727 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3730 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3732 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3734 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3735 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3736 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3738 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3739 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3740 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3741 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3744 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3746 * nss/getent.c: Implement alternative host database lookup via
3749 * include/ifaddrs.h: New file.
3750 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3752 * resolv/netdb.h: ...here.
3753 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3754 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3755 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3758 2003-04-24 Roland McGrath <roland@redhat.com>
3760 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3762 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3764 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3765 (_dl_allocate_static_tls): ... this function. No longer static.
3766 (CHECK_STATIC_TLS): Adjust.
3767 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3768 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3769 Add SYM_MAP argument.
3770 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3771 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3772 TLS relocs here. #ifdef out relocs which never appear in
3773 .gnu.conflict section from dl-conflict.c processing.
3774 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3775 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3777 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3778 out relocs which never appear in .gnu.conflict section from
3779 dl-conflict.c processing.
3780 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3781 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3782 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3783 Use r_type in RESOLVE macro.
3785 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3787 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3788 NULL. Remove code made redundant by this assumption.
3789 (__yp_unbind): Add call to free. Adjust all callers.
3791 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3794 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3795 user buffer if more groups are found than fit into it.
3797 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3800 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3802 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3803 not rc == errno. Use extend_alloca.
3805 * elf/tst-tls12.c (main): Fix declaration.
3806 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3807 * elf/tst-tlsmod7.c (dummy): Likewise.
3808 * elf/tst-tlsmod8.c (dummy): Likewise.
3809 * elf/tst-tlsmod9.c (dummy): Likewise.
3811 2003-04-22 Roland McGrath <roland@redhat.com>
3813 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3814 (open_not_cancel): Make last argument non-optional.
3815 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3816 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3817 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3819 * include/tls.h: Protect against multiple inclusion.
3821 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3823 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3824 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3825 open_socket. Not static anymore.
3826 (nscd_gethst_r): Use __nscd_open_socket.
3827 * nscd/nscd_getgr_r.c (open_socket): Removed.
3828 (nscd_getgr_r): Use __nscd_open_socket.
3829 * nscd/nscd_getpw_r.c (open_socket): Removed.
3830 (nscd_getpw_r): Use __nscd_open_socket.
3832 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3833 * nscd/connections.c (handle_request): Add cast to avoid warning.
3835 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3837 * signal/sigfillset.c: Moved to...
3838 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3839 do not set the corresponding bit.
3841 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3843 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3844 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3845 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3846 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3847 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3849 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3851 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3852 first syscall parameter to const char*.
3854 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3856 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3858 * configure.in: Add AC_PROG_CXX.
3859 * config.make.in (CXX): Define.
3861 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3862 __len to size_t to avoid warnings.
3864 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3866 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3868 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3870 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3872 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3873 UNREGISTER_ATFORK if d == NULL.
3875 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3876 * dirent/dirent.h: Likewise.
3877 * dlfcn/dlfcn.h: Likewise.
3878 * grp/grp.h: Likewise.
3879 * iconv/iconv.h: Likewise.
3880 * io/fcntl.h: Likewise.
3881 * io/ftw.h: Likewise.
3882 * libio/stdio.h: Likewise.
3883 * misc/sys/mman.h: Likewise.
3884 * misc/sys/select.h: Likewise.
3885 * misc/sys/syslog.h: Likewise.
3886 * misc/sys/uio.h: Likewise.
3887 * posix/spawn.h: Likewise.
3888 * posix/unistd.h: Likewise.
3889 * posix/sys/wait.h: Likewise.
3890 * pwd/pwd.h: Likewise.
3891 * resolv/netdb.h: Likewise.
3892 * rt/aio.h: Likewise.
3893 * shadow/shadow.h: Likewise.
3894 * signal/signal.h: Likewise.
3895 * socket/sys/socket.h: Likewise.
3896 * stdlib/stdlib.h: Likewise.
3897 * streams/stropts.h: Likewise.
3898 * string/string.h: Likewise.
3899 * sysdeps/gnu/utmpx.h: Likewise.
3900 * sysvipc/sys/msg.h: Likewise.
3901 * termios/termios.h: Likewise.
3902 * time/time.h: Likewise.
3903 * wcsmbs/wchar.h: Likewise.
3904 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3906 * misc/daemon.c: Likewise.
3907 * sysdeps/generic/backtracesymsfd.c: Likewise.
3908 * sysdeps/generic/check_fds.c: Likewise.
3909 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3910 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3911 * sysdeps/generic/not-cancel.h: New file.
3912 * csu/Makefile (distribute): Add not-cancel.h.
3913 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3914 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3915 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3916 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3918 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3919 errno and unlink first.
3921 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3923 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3925 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3926 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3928 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3930 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3932 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3933 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3936 * signal/Makefile (tests): Add tst-sigsimple.
3937 * signal/tst-sigsimple.c: New file.
3939 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3941 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3943 (tests): Add tst-tls1[0-2].
3944 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3945 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3946 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3947 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3948 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3949 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3950 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3951 * elf/tst-tls10.c: New test.
3952 * elf/tst-tls11.c: New test.
3953 * elf/tst-tls12.c: New test.
3954 * elf/tst-tls10.h: New file.
3955 * elf/tst-tlsmod7.c: New file.
3956 * elf/tst-tlsmod8.c: New file.
3957 * elf/tst-tlsmod9.c: New file.
3958 * elf/tst-tlsmod10.c: New file.
3959 * elf/tst-tlsmod11.c: New file.
3960 * elf/tst-tlsmod12.c: New file.
3962 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3964 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3965 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3966 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3968 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3970 * posix/regex.h: Include <sys/types.h>.
3972 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3973 The signal number must be checked.
3974 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3975 The signal number must be checked [PR libc/5004].
3977 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3978 don't do anything fancy.
3980 * sysdeps/generic/bits/libc-lock.h: Define
3981 __rtld_lock_define_initialized_recursive.
3983 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3984 contacting nscd if NOT_USENSCD_NAME > 0.
3985 * nss/nsswitch.c (__nss_disable_nscd): New function.
3986 * nss/nsswitch.h: Declare it.
3987 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3988 * nscd/nscd.c (main): Call __nss_disable_nscd.
3990 2003-04-16 Ulrich Drepper <drepper@redhat.com>
3992 * stdio-common/perror.c (perror): We don't need to set the offset
3993 to _IO_pos_bad, this is how streams are initialized.
3995 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3996 (time_output): If necessary, allocate new buffer for .name string if
3997 padding is required.
3999 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
4000 before copying. This might leave holes in the list. Adjust
4001 pointers if necessary.
4002 (netlink_receive): Allocate only one block.
4003 (free_netlink_handle): Adjust appropriately.
4004 (getifaddrs): Lots of cleanups.
4006 * string/test-strncpy.c (do_one_test): Mark start and stop as
4008 * string/test-memchr.c: Likewise.
4009 * string/test-memcmp.c: Likewise.
4010 * string/test-memcpy.c: Likewise.
4011 * string/test-memmove.c: Likewise.
4012 * string/test-memset.c: Likewise.
4013 * string/test-strcat.c: Likewise.
4014 * string/test-strchr.c: Likewise.
4015 * string/test-strcmp.c: Likewise.
4016 * string/test-strcpy.c: Likewise.
4017 * string/test-strlen.c: Likewise.
4018 * string/test-strncmp.c: Likewise.
4019 * string/test-strpbrk.c: Likewise.
4020 * string/test-strrchr.c: Likewise.
4021 * string/test-strspn.c: Likewise.
4023 2003-04-15 Roland McGrath <roland@redhat.com>
4025 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
4027 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
4028 INTUSE(__register_frame_info_bases).
4030 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4032 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
4033 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
4034 AT_SYSINFO_EH_FRAME. Adjust string width.
4035 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
4036 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
4037 Add _dl_sysinfo_eh_frame field.
4038 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
4039 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
4041 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
4042 if _dl_sysinfo_eh_frame is non-NULL.
4044 * Makeconfig (gnulib): Add -lgcc_eh.
4046 * config.h.in: Define HAVE_FORCED_UNWIND.
4048 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4050 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
4051 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
4053 2003-04-15 Jakub Jelinek <jakub@redhat.com>
4055 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
4056 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
4057 against local symbol in conflict processing.
4059 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
4061 * sysdeps/powerpc/bits/atomic.h
4062 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
4063 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
4065 (__arch_compare_and_exchange_val_32_acq): Define.
4066 (atomic_compare_and_exchange_val_acq): Define.
4068 2003-04-15 Ulrich Drepper <drepper@redhat.com>
4070 * include/atomic.h: Pretty printing.
4072 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4074 * stdio-common/vfscanf.c: Add casts to avoid warnings.
4076 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4078 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
4079 * sysdeps/x86_64/bits/atomic.h: Likewise.
4081 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4083 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
4084 POPARGS_1 to emit labels for the mov instructions.
4086 2003-04-14 Jakub Jelinek <jakub@redhat.com>
4088 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
4090 2003-04-14 Roland McGrath <roland@redhat.com>
4092 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
4095 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
4097 2003-04-14 Ulrich Drepper <drepper@redhat.com>
4099 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
4100 position. Reported by jreiser@BitWagon.com.
4102 2003-04-13 Ulrich Drepper <drepper@redhat.com>
4104 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
4105 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
4106 * sysdeps/generic/unwind-dw2.c: Likewise.
4107 * sysdeps/generic/unwind-pe.h: Likewise.
4109 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
4111 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
4112 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
4113 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
4114 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
4115 (mcontext_t): Make it match the 32-bit mips kernel in o32.
4116 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
4117 the mips and mips64 headers.
4118 (struct user): Port to n32/n64.
4120 2003-04-12 Ulrich Drepper <drepper@redhat.com>
4122 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
4125 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
4126 __ASSUME_VSYSCALL is defined don't add restorer.
4127 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4128 __ASSUME_VSYSCALL for 2.5.53.
4130 2003-04-11 Ulrich Drepper <drepper@redhat.com>
4132 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
4133 Remove HAVE_CANCELBUF code. Replace with code using the new
4134 initializers for unwind-based cleanup handling.
4135 * sysdeps/generic/unwind.h: Update from latest gcc version.
4136 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
4137 places to allow unwind data generation.
4138 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
4139 * sysdeps/x86_64/bits/setjmp.h: Likewise.
4140 * sysdeps/sh/bits/setjmp.h: Likewise.
4141 * sysdeps/powerpc/bits/setjmp.h: Likewise.
4142 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
4143 * sysdeps/alpha/bits/setjmp.h: Likewise.
4145 2003-04-11 Roland McGrath <roland@redhat.com>
4147 * csu/tst-empty.c: New file.
4148 * csu/Makefile (tests, tests-static): Add it.
4150 2003-04-11 Jakub Jelinek <jakub@redhat.com>
4152 * string/test-strcmp.c (do_random_tests): Test whether return value
4153 has been promoted to wordsize if the ABI requires caller to do so.
4154 * string/test-strncmp.c (do_random_tests): Likewise.
4155 * string/test-memcmp.c (do_random_tests): Likewise.
4157 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
4160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4161 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
4162 is not defined, but the prctl constants are.
4164 * string/tester.c (test_strcmp): Fix a typo.
4166 2003-04-09 Ulrich Drepper <drepper@redhat.com>
4168 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
4169 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
4171 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4173 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
4175 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
4177 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4179 * sysdeps/mips/mips64/memset.S: Likewise.
4180 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4181 Use t0 instead of t4 as temporary.
4183 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4185 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4186 feof_unlocked instead of feof.
4187 (add_dir): Ignore trailing whitespace.
4189 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4191 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4192 sum of SIZE1 and SIZE2 arguments.
4194 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4196 * iconv/iconv_prog.c (process_block): Don't print message about
4197 invalid input if the -c option is used.
4198 (main): Correctly append IGNORE string for -c option.
4200 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4202 * sysdeps/sh/bits/atomic.h: Moved to ...
4203 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4204 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4206 (atomic_bit_set, atomic_bit_test_set): Likewise.
4207 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4209 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4211 2003-04-06 Roland McGrath <roland@redhat.com>
4213 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4214 restoration as done for setcontext yesterday.
4216 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4218 * elf/rtld.c: Revert 2003-03-14 change.
4219 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4220 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4222 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4224 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4226 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4227 Always initialize *signgamp before returning an error.
4229 2003-04-05 Roland McGrath <roland@redhat.com>
4231 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4232 below the stack pointer even if switching to the same context we are
4235 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4237 * catgets/gencat.c (read_input_file): Make sure that \n is not
4238 alone on the line before testing for continuation.
4240 * math/test-tgmath.c (compile_test): Initialize c.
4242 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4244 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4245 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4246 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4248 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4249 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4250 structure on n32 as well.
4251 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4252 data types on n32 and n64.
4254 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4256 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4259 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4260 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4261 instead of __register_atfork.
4263 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4265 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4266 instead of malloc __printf_arginfo_table and __printf_function_table.
4267 Reported by John Reiser <jreiser@BitWagon.com>.
4269 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4271 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4272 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4274 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4277 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4279 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4282 2003-04-03 Roland McGrath <roland@redhat.com>
4284 * configure.in: Fix up use of compilation flags to match the build:
4285 For .s files, $ASFLAGS;
4286 For .S files, $CPPFLAGS $ASFLAGS;
4287 For .c files, $CFLAGS $CPPFLAGS;
4288 when linking, add $LDFLAGS.
4289 * configure: Regenerated.
4291 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4293 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4294 for atomic_compare_and_exchange_bool_acq failure.
4296 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4298 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4299 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4300 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4301 Remove declaration of pthread_atfork.
4303 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4305 * locale/iso-639.def: Add many more languages from the current ISO 639.
4307 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4308 * sysdeps/generic/semtimedop.c: New file.
4309 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4310 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4311 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4312 * sysvipc/Makefile (routines): Add semtimedop.
4313 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4314 * sysvipc/sys/sem.h: Declare semtimedop.
4316 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4318 * configure.in: Check for __register_frame_info in both
4320 * configure: Regenerated.
4322 2003-04-01 Roland McGrath <roland@redhat.com>
4324 * scripts/abilist.awk: Allow dots in soname suffix.
4326 * scripts/abilist.awk (emit): Fix bailout condition.
4328 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4330 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4333 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4334 register as input to asm.
4336 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4338 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4340 2003-04-01 Andreas Jaeger <aj@suse.de>
4342 * configure.in: Output as/ld as name if version is too old.
4344 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4346 * configure.in: Don't require an installed C library in the test
4347 for ".set" assembler support.
4349 2003-03-31 Roland McGrath <roland@redhat.com>
4351 * signal/tst-sigset.c: New file.
4352 * signal/Makefile (tests): Add it.
4354 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4356 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4357 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4358 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4359 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4360 (__SIGRTMAX): Adjust accordingly.
4361 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4362 second compatibility symbol set.
4363 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4365 2003-03-31 Andreas Schwab <schwab@suse.de>
4367 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4369 (atomic_decrement_and_test): Fix test.
4371 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4373 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4374 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4375 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4376 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4377 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4378 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4380 2003-03-30 Roland McGrath <roland@redhat.com>
4382 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4384 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4386 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4388 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4389 and remove a useless s/// command.
4391 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4393 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4394 directive into empty .prologue region to ensure that call-chain
4395 is terminated even for the first instruction.
4397 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4398 to terminate call-chain right from the get-go.
4400 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4401 stop bit between compare & branch.
4403 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4405 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4406 point correctly [PR libc/4993].
4408 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4409 netlink_open calls if netlink is known to not be available.
4411 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4413 * configure.in: Add mips64* support.
4414 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4415 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4416 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4417 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4418 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4419 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4420 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4421 * sysdeps/mips/Implies: Moved wordsize-32 to...
4422 * sysdeps/mips/mips32/Implies: New file.
4423 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4425 (ret, PSEUDO_END): Moved past END.
4426 (PSEUDO): Moved to...
4427 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4428 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4429 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4430 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4431 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4432 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4434 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4437 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4439 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4440 * inet/test-ifaddrs.c: Allow AF_PACKET.
4441 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4442 __ASSUME_NETLINK_SUPPORT.
4444 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4446 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4448 2003-03-26 H.J. Lu <hjl@gnu.org>
4450 * elf/vismod.h (getvarlocal1): Return const char **.
4451 (getvarinmod1): Likewise.
4452 (getvaritcpt1): Likewise.
4453 (getvarlocal2): Likewise.
4454 (getvarinmod2): Likewise.
4455 (getvaritcpt2): Likewise.
4456 (getvaritcpt3): Likewise.
4457 * elf/vismain.c (do_test): Adjusted.
4458 * elf/vismod1.c (getvarlocal1): Return address.
4459 (getvarinmod1): Likewise.
4460 (getvaritcpt1): Likewise.
4461 * elf/vismod2.c (getvarlocal2): Likewise.
4462 (getvarinmod2): Likewise.
4463 (getvaritcpt2): Likewise.
4464 * elf/vismod3.c (getvaritcpt3): Likewise.
4466 2003-03-28 Roland McGrath <roland@redhat.com>
4468 * elf/vismain.c (do_test): Print both addresses when they don't match.
4470 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4471 libname_regexp when parsing names, then produce output only
4472 for those matching the given regexps. In combine mode, save all
4473 stanzas for a final sorting by stanza header at the end.
4474 Emit a blank line between stanzas.
4476 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4477 emit a single output stream with lib name in stanza header lines.
4479 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4481 2003-03-27 Roland McGrath <roland@redhat.com>
4483 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4484 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4486 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4488 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4489 Return old value. Make asm output reg constraint earlyclobber.
4491 (__arch_compare_and_exchange_8_acq): ... this.
4492 (__arch_compare_and_exchange_val_16_acq):
4493 Return old value. Make asm output reg constraint earlyclobber.
4495 (__arch_compare_and_exchange_16_acq): ... this.
4496 (__arch_compare_and_exchange_val_32_acq):
4497 Return old value. Make asm output reg constraint earlyclobber.
4499 (__arch_compare_and_exchange_32_acq): ... this.
4500 (__arch_compare_and_exchange_val_64_acq):
4502 (__arch_compare_and_exchange_64_acq): ... this.
4503 (atomic_exchange_and_add): Use local variables and
4504 __arch_compare_and_exchange_val_64_acq.
4505 (atomic_add): Likewise.
4506 (atomic_add_negative, atomic_add_zero): Use local variables.
4508 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4510 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4512 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4514 * Makefile: Remove libmd5crypt goal.
4516 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4518 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4519 special handling of relocations against local symbols.
4521 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4523 * sysdeps/powerpc/bits/atomic.h
4524 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4525 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4526 Define PPC64 specific version.
4527 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4528 Change (mem) constraint to "b".
4529 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4530 Replace addi with add. Change (value) contraint to "r".
4531 Change (mem) constraint to "b".
4532 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4533 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4534 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4535 (__arch_atomic_decrement_if_positive_32): New macro.
4536 (atomic_decrement_if_positive): Use __arch* macros.
4538 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4540 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4542 2003-03-27 Roland McGrath <roland@redhat.com>
4544 * scripts/rpm2dynsym.sh: New file.
4545 * Makefile (distribute): Add it.
4547 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4549 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4550 ar.unat before returning. Add missing .mem.offset directives
4551 to ensure file gets assembled without warnings.
4552 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4554 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4556 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4557 Return -1 instead of 0 if clock_getres failed.
4559 2003-03-27 Roland McGrath <roland@redhat.com>
4561 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4562 header lines and write out foo.symlist files for each foo.so.NN listed.
4564 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4565 This symbol is exported, and we don't want to hide it.
4566 Add libc_hidden_proto instead.
4567 (_IO_file_jumps): Add libc_hidden_proto.
4568 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4570 * libio/fileops.c (_IO_file_jumps): Likewise.
4571 * libio/stdfiles.c: Don't use INTUSE on them.
4572 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4573 * libio/iofopen.c (__fopen_internal): Likewise.
4574 * libio/freopen.c (freopen): Likewise.
4575 * libio/freopen64.c (freopen64): Likewise.
4576 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4578 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4579 Ignore exit status from diff.
4580 * configure.in (enable_check_abi): Document possible value "warn".
4581 Change default to no for now.
4582 * configure: Regenerated.
4584 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4585 macro calls and a #include <stub-tag.h> at the end.
4586 * Makerules ($(objpfx)stubs): Tweak sed commands.
4588 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4589 caller column for *xattr syscalls, since they are in sysdeps/generic.
4591 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4592 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4594 2003-03-26 Roland McGrath <roland@redhat.com>
4596 * Makerules (check-abi-config): Use /thread instead of /tls when
4597 use-thread and not just use-tls is set.
4599 * Makerules (update-abi): Put quotes around $(update-abi-config).
4601 * elf/Makefile (check-abi): Depend on check-abi-ld.
4602 (update-abi): Depend on update-abi-ld.
4604 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4606 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4607 do not check for errors (unless testing for 32bit variant).
4608 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4610 2003-03-27 Philip Blundell <philb@gnu.org>
4612 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4613 unconditional mov. Remove nop.
4615 * sysdeps/unix/sysv/linux/kernel-features.h
4616 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4617 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4618 when __ASSUME_VFORK_SYSCALL is defined.
4619 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4620 __ASSUME_MMAP2_SYSCALL.
4621 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4622 __ASSUME_REALTIME_SIGNALS.
4624 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4626 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4627 only if DL_NO_COPY_RELOCS is not defined.
4628 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4630 2003-03-26 Roland McGrath <roland@redhat.com>
4632 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4633 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4634 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4635 (sysdep_routines): Add stub-syscalls.
4636 ($(objpfx)stub-syscalls.c): New target.
4637 (generated): Add stub-syscalls.c.
4639 * tls.make.c: Also define use-tls according to USE_TLS macro.
4641 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4643 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4644 no-op padding element.
4645 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4646 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4647 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4648 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4650 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4652 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4653 condition check for the return value of getgroups32.
4655 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4657 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4659 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4660 PSEUDO_END_NOERRNO): Define.
4661 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4662 Define to PSEUDO_END.
4664 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4666 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4668 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4670 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4671 * iconvdata/bug-iconv4.c: New file.
4672 * iconvdata/Makefile (tests): Add bug-iconv4.
4674 2003-03-25 H.J. Lu <hjl@gnu.org>
4676 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4678 (_dl_lookup_versioned_symbol): Likewise.
4680 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4682 * csu/tst-atomic.c (do_test): Add some new
4683 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4684 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4685 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4686 Prefix local variable so that it doesn't clash with the one
4687 in atomic_exchange_and_add.
4688 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4690 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4691 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4692 value into register.
4693 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4694 Cast newval to long.
4695 * sysdeps/x86_64/bits/atomic.h
4696 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4698 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4699 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4700 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4701 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4703 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4705 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4706 bit from backtrace addresses.
4708 2003-03-21 Andreas Schwab <schwab@suse.de>
4710 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4713 2003-03-25 Roland McGrath <roland@redhat.com>
4715 * config.make.in (enable-check-abi): New variable from configure.
4716 * configure.in (enable_check_abi): New substituted variable,
4717 controlled by --{enable,disable}-check-abi (default yes).
4718 * configure: Regenerated.
4719 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4720 on check-abi dependency.
4722 2003-03-26 Andreas Schwab <schwab@suse.de>
4724 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4725 * include/atomic.h: Likewise.
4727 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4729 2003-03-25 Roland McGrath <roland@redhat.com>
4731 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4732 (__arch_atomic_exchange_64): New macro.
4733 (atomic_exchange): Use them.
4734 (__arch_atomic_exchange_and_add_32): New macro.
4735 (__arch_atomic_exchange_and_add_64): New macro.
4736 (atomic_exchange_and_add): Use them.
4737 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4739 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4741 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4743 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4745 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4746 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4747 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4748 to decide whether to add padding.
4749 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4750 to decide whether to add padding.
4751 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4752 old_kernel_sigaction): Likewise.
4754 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4756 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4757 atomic_add_zero were supposed to do.
4758 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4761 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4762 This matches the new timer implementation.
4763 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4765 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4767 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4768 timer info for what the kernel provides these days.
4769 (struct sigevent): Add _tid field.
4770 Define SIGEV_THREAD_ID.
4771 Remove struct __pthread_attr_s forward declaration.
4772 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4773 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4774 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4775 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4777 * Versions.def (librt): Add GLIBC_2.3.3.
4779 * abilist/libpthread.abilist: Update for nptl.
4781 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4783 * inet/netinet/in.h: Add IPPROTO_SCTP.
4785 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4787 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4789 2003-03-24 Philip Blundell <philb@gnu.org>
4791 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4792 Remove a1 from clobber list.
4794 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4796 * timezone/antarctica: Update from tzdata2003a.
4797 * timezone/asia: Likewise.
4798 * timezone/australasia: Likewise.
4799 * timezone/europe: Likewise.
4800 * timezone/iso3166.tab: Likewise.
4801 * timezone/northamerica: Likewise.
4802 * timezone/southamerica: Likewise.
4803 * timezone/zone.tab: Likewise.
4805 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4807 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4809 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4811 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4812 unwanted expansion by definining to ret. Patch by Ian Wienand.
4814 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4815 the parameter description to denote no error checking. Generate
4816 appropriate pseudo asm code.
4817 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4818 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4819 getpgrp, and getppid with 'E'.
4820 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4821 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4822 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4823 * sysdeps/unix/sysdep.h: Likewise.
4824 * sysdeps/unix/alpha/sysdep.h: Likewise.
4825 * sysdeps/unix/sparc/sysdep.h: Likewise.
4826 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4827 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4828 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4829 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4830 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4831 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4832 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4833 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4834 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4835 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4836 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4838 2003-03-23 Roland McGrath <roland@redhat.com>
4840 * Makeconfig (+includes): Don't use $(last-includes).
4842 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4844 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4845 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4847 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4849 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4850 * sysdeps/arm/libm-test-ulps: Update.
4851 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4852 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4853 * sysdeps/mips/fpu/libm-test-ulps: Update.
4854 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4855 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4856 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4857 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4858 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4859 * sysdeps/s390/fpu/libm-test-ulps: Update.
4860 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4862 2003-03-22 Roland McGrath <roland@redhat.com>
4864 * include/atomic.h: Put parens around all macro arguments.
4865 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4866 (atomic_compare_and_exchange_val_acq): Use it.
4867 (atomic_compare_and_exchange_bool_acq): Likewise.
4868 (atomic_increment_and_test): Invert sense of test.
4869 (atomic_decrement_and_test): Likewise.
4870 * csu/tst-atomic.c: Update those tests to match.
4872 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4874 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4875 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4876 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4877 __oldval variable in the macro, since it might be macro argument.
4878 (atomic_decrement_if_positive): Initialize __memp, remove setting
4879 of non-existent variable.
4880 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4881 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4882 using atomic_compare_and_exchange_val_acq.
4883 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4884 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4886 (__arch_compare_and_exchange_bool_8_acq): ... this.
4887 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4888 (__arch_compare_and_exchange_bool_16_acq): ... this.
4889 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4891 (__arch_compare_and_exchange_bool_32_acq): ... this.
4892 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4894 (__arch_compare_and_exchange_bool_64_acq): ... this.
4895 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4896 variables types instead of assuming int.
4897 Change prefix of local variables to __arch.
4898 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4900 (atomic_compare_and_exchange_val_acq,
4901 atomic_compare_and_exchange_bool_acq): Define.
4903 * csu/tst-atomic.c: New test.
4904 * csu/tst-atomic-long.c: New test.
4905 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4907 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4909 * sysdeps/s390/Versions: Add trailing newline.
4911 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4912 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4914 2003-03-22 Andreas Schwab <schwab@suse.de>
4916 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4918 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4919 * sysdeps/m68k/m68020/atomicity.h: Removed.
4921 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4923 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4924 data structures and macros. Protect from multiple inclusion.
4926 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4929 2003-03-21 Andreas Jaeger <aj@suse.de>
4931 * sysdeps/i386/fpu/libm-test-ulps: Update.
4933 * math/libm-test.inc (tgamma_test): Recompute some constants with
4934 36 digits precision.
4935 (lgamma_test): Likewise.
4936 (ccos_test): Likewise.
4937 (ccosh_test): Likewise.
4938 (clog10_test): Likewise.
4939 (csin_test): Likewise.
4940 (csinh_test): Likewise.
4941 (ctan_test): Likewise.
4942 (ctanh_test): Likewise.
4944 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4946 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4948 2003-03-21 Roland McGrath <roland@redhat.com>
4950 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4951 constraint to permit non-constant BIT argument.
4952 (atomic_bit_test_set): Likewise.
4953 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4954 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4955 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4956 or "r" constraint otherwise.
4958 * configure.in: Move AC_PROG_CC and other program-finding before all
4960 * configure: Regenerated.
4962 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4964 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4965 unaligned copying of 8-15 bytes. From Chris Demetriou
4966 <cgd@broadcom.com>. Fix label names.
4967 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4968 change as to memcpy.S.
4969 * sysdeps/mips/memcpy.S: Formatting changes.
4970 * sysdeps/mips/memset.S: Likewise.
4972 2003-03-21 Roland McGrath <roland@redhat.com>
4974 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4976 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4978 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4979 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4981 2003-03-21 Roland McGrath <roland@redhat.com>
4983 * sysdeps/i386/i486/bits/atomic.h
4984 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4985 version of the macro to avoid compile-time warnings.
4986 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4987 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4988 (atomic_increment, atomic_decrement): Likewise.
4990 2003-03-21 Ulrich Drepper <drepper@redhat.com>
4992 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4993 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4995 2003-03-21 Roland McGrath <roland@redhat.com>
4997 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4999 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5001 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
5002 atomic_compare_and_exchange_val_rel,
5003 atomic_compare_and_exchange_bool_acq, and
5004 atomic_compare_and_exchange_bool_rel instead of
5005 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
5006 * sysdeps/i386/i486/bits/atomic.h: Define
5007 __arch_compare_and_exchange_val_*_acq instead of
5008 __arch_compare_and_exchange_*_acq.
5009 * sysdeps/x86_64/bits/atomic.h: Likewise.
5010 * sysdeps/ia64/bits/atomic.h: Define
5011 __arch_compare_and_exchange_bool_*_acq instead of
5012 __arch_compare_and_exchange_*_acq.
5013 * sysdeps/powerpc/bits/atomic.h: Likewise.
5014 * sysdeps/s390/bits/atomic.h: Likewise.
5015 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
5016 * malloc/set-freeres.c: Likewise.
5017 * nscd/cache.c: Likewise.
5018 * stdlib/cxa_finalize.c: Likewise.
5019 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5021 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5023 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
5024 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
5025 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
5027 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
5028 into high and low halves on n64.
5029 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5030 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5031 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5033 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5035 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
5036 correct atomic_compare_and_exchange_acq semantics.
5038 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5040 * sysdeps/mips/ieee754.h: Remove excess #endif.
5042 2003-03-20 Roland McGrath <roland@redhat.com>
5044 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
5045 variable. Remove superfluous memory clobber.
5047 * include/atomic.h: Syntax braino fix.
5049 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
5050 in decimal. Don't bail if niced at start. Just check that nice call
5051 bumps the total at all.
5053 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5055 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
5056 including pc, gp, sp and fp, as long long.
5057 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
5058 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
5059 Add gp argument, and set gp in the jmpbuf to it.
5060 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
5062 2003-03-20 Ulrich Drepper <drepper@redhat.com>
5064 * include/atomic.h: Define atomic_exchange and
5065 atomic_decrement_if_positive if not already defined. Add some
5067 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
5068 * sysdeps/x86_64/bits/atomic.h: Likewise.
5069 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
5070 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
5071 atomic_exchange, atomic_exchange_and_add, and
5072 atomic_decrement_if_positive
5074 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
5076 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
5077 with a single instruction.
5079 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
5081 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
5083 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
5084 Word before comparing with gotsym. Take reloc_addr argument as
5085 void*. Remove the code added for the compiler to drop any
5086 alignment assumptions.
5088 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5090 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
5091 * include/atomic.h: New file.
5092 * sysdeps/i386/i486/bits/atomic.h: New file.
5093 * sysdeps/x86_64/bits/atomic.h: New file.
5094 * sysdeps/s390/bits/atomic.h: New file.
5095 * sysdeps/sh/bits/atomic.h: New file.
5096 * sysdeps/ia64/bits/atomic.h: New file.
5097 * sysdeps/powerpc/bits/atomic.h: New file.
5098 * sysdeps/generic/bits/atomic.h: New file.
5099 * sysdeps/i386/i486/atomicity.h: Removed.
5100 * sysdeps/x86_64/atomicity.h: Removed.
5101 * sysdeps/s390/s390-32/atomicity.h: Removed.
5102 * sysdeps/s390/s390-64/atomicity.h: Removed.
5103 * sysdeps/ia64/atomicity.h: Removed.
5104 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
5105 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
5106 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
5107 use of macros from atomicity.h to new names and semantics.
5108 * gmon_mcount.c: Likewise.
5109 * malloc/set-freeres.c: Likewise.
5110 * nscd/cache.c: Likewise.
5111 * stdlib/cxa_finalize.c: Likewise.
5112 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5114 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5116 * sysdeps/mips/ieee754.h: New file, suitable to replace both
5117 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
5118 mips-specific for now.
5120 2003-03-19 Ulrich Drepper <drepper@redhat.com>
5122 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
5123 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
5124 * stdlib/tst-strtod.c: Add test for the bug.
5126 * posix/tst-nice.c (do_test): Remove invalid of return value.
5127 Don't run test if initial level != 0.
5129 2003-03-19 Amos Waterland <apw@us.ibm.com>
5131 * posix/tst-nice.c: New file.
5132 * posix/Makefile (tests): Add tst-nice.
5134 2003-03-18 Roland McGrath <roland@redhat.com>
5136 * abilist: New directory of libfoo.abilist files maintained using
5137 scripts/merge-abilist.awk and "make update-abi" rules.
5138 * Makefile (distribute): Add abilist/*.abilist.
5139 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
5140 Depend on check-abi.
5142 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
5143 * configure: Regenerated.
5145 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
5147 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5149 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
5152 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
5154 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
5156 2003-03-18 Ulrich Drepper <drepper@redhat.com>
5158 * Versions.def: Add GLIBC_2.3.3 for libpthread.
5160 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5162 * sysdeps/generic/libc-start.c [!SHARED &&
5163 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
5165 2003-03-17 Roland McGrath <roland@redhat.com>
5167 * include/ctype.h: Revert last change.
5169 2003-03-17 Ulrich Drepper <drepper@redhat.com>
5171 * argp/tst-argp1.c: Use test-skeleton.c.
5172 * locale/tst-C-locale.c: Likewise.
5174 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
5176 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5177 * sysdeps/mips/mips64/n64/Implies: New file.
5178 * sysdeps/mips/mips64/n64/Makefile: New file.
5179 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5180 * sysdeps/mips/mips64/n32/Implies: New file.
5181 * sysdeps/mips/mips64/n32/Makefile: New file.
5182 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5183 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5184 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5185 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5186 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5187 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5188 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5189 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5190 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5191 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5192 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5193 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5194 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5195 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5197 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5198 lib64 for mips64/n64 and lib32 for mips64/n32.
5199 (ldd_rewrite_script): Needed for all mips64 configurations.
5200 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5201 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5202 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5204 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5207 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5208 asm/unistd.h into asm-unistd.h.
5209 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5210 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5212 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5213 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5216 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5217 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5218 long type for registers on n32.
5220 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5222 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5223 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5224 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5225 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5226 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5227 * sysdeps/unix/mips/brk.S: Likewise.
5228 * sysdeps/unix/mips/sysdep.S: Likewise.
5229 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5230 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5231 * sysdeps/mips/sys/ucontext.h: Likewise.
5232 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5233 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5234 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5235 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5236 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5237 * sysdeps/mips/mips64/setjmp.S: Likewise.
5238 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5239 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5242 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5244 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5245 not at function level.
5246 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5248 2003-03-15 Roland McGrath <roland@redhat.com>
5250 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5251 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5252 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5253 * nis/nis_table.c (__create_ib_request): Likewise.
5255 * posix/fnmatch_loop.c: Add casts for signedness.
5256 * nss/nss_files/files-hosts.c: Likewise.
5257 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5258 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5259 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5261 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5262 get errors into the log file.
5263 (libc_cv_broken_visibility_attribute): Likewise.
5264 (libc_cv_broken_alias_attribute): Likewise.
5265 (libc_cv_asm_weak_directive): Likewise.
5266 (libc_cv_need_minus_P): Likewise.
5267 (libc_cv_dot_text): Likewise.
5268 (libc_cv_asm_global_directive): Likewise.
5269 (libc_cv_asm_type_prefix): Likewise.
5270 * configure: Regenerated.
5272 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5273 * nscd/nscd.h: Update decl.
5275 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5276 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5277 * elf/dl-close.c (_dl_close): Likewise.
5278 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5279 * io/fts.c (fts_build): Likewise.
5280 * elf/cache.c (add_to_cache): Likewise.
5281 * locale/programs/locarchive.c (show_archive_content): Likewise.
5283 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5285 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5287 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5289 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5291 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5292 code for most parts.
5294 2003-03-15 Roland McGrath <roland@redhat.com>
5296 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5297 * sysdeps/unix/sysv/linux/system.c: ... here.
5298 (FORK): Don't #define if already #define'd.
5299 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5300 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5301 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5303 * dlfcn/tst-dlinfo.c: New file.
5304 * dlfcn/Makefile (tests): Add tst-dlinfo.
5305 ($(objpfx)tst-dlinfo): New target.
5307 * dlfcn/dlinfo.c: New file.
5308 * dlfcn/Makefile (libdl-routines): Add it.
5309 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5310 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5311 [__USE_GNU] (RTLD_DI_*): New enum constants.
5312 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5313 * elf/dl-load.c (cache_rpath): New inline function.
5314 (_dl_map_object): Use it.
5315 (_dl_rtld_di_serinfo): New function.
5316 * sysdeps/generic/ldsodefs.h: Declare it.
5317 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5319 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5320 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5321 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5322 (__libc_start_main): Just call the generic one for most of the work.
5324 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5325 static function by that name instead of BP_SYM (__libc_start_main).
5326 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5327 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5328 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5330 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5331 Use this macro for extra AT_* cases.
5332 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5333 New macro, guts from ...
5334 (__aux_init_cache): ... here, function removed.
5335 (DL_PLATFORM_INIT): Don't define this.
5337 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5338 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5340 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5342 2003-03-14 Roland McGrath <roland@redhat.com>
5344 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5346 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5348 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5350 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5351 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5353 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5355 * sysdeps/mips/fpu/bits/mathdef.h: New.
5356 (__NO_LONG_DOUBLE_MATH): Define for o32.
5358 * sysdeps/mips/sys/asm.h: Formatting changes.
5359 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5360 (CPADD): Define for all of them.
5361 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5362 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5363 NARGSAVE): Define per ABI spec.
5364 (END): Don't redefine.
5365 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5366 LONG_SRAV): Remove duplicate definitions.
5367 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5368 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5369 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5370 (PTR_LA): Define for all 3 ABIs.
5372 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5373 (elf_machine_matches_host): Prevent linking of o32 and n32
5375 (elf_machine_dynamic): Document assumption on $gp.
5376 (STRINGXP, STRINGXV, STRINGV_): New macros.
5377 (elf_machine_load_address): Use them to stringize PTR_LA and
5379 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5380 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5381 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5382 (__dl_runtime_resolve): Cast the symtab initializer to the
5384 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5385 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5386 Handle 64-bit R_MIPS_REL composite relocation and accept
5387 R_MIPS_64 relocations to shift addend size to 64 bits.
5388 Document assumption regarding local GOT entries. Document
5389 backward-compatibility departing from the ABI behavior in
5390 applying relocations that reference section symbols, no longer
5391 used. Support relocations to mis-aligned offsets.
5392 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5394 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5396 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5397 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5398 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5399 restore_rt functions. Use them.
5401 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5402 .set mips2 on new abis.
5404 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5406 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5407 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5408 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5409 * sysdeps/posix/pathconf.c: Likewise.
5410 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5411 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5412 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5414 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5417 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5419 * include/gmp.h: Include/gmp-mparam.h.
5420 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5423 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5424 ELF_MACHINE_NO_RELA is set.
5425 * elf/rtld.c (dl_main): No prelink support for REL-only.
5427 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5428 FLAG_MIPS64_LIBN64): Define.
5429 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5431 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5432 * sysdeps/mips/memset.S: Likewise.
5433 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5434 depending on the ABI.
5436 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5437 Don't .set mips2 on new abi.
5438 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5440 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5442 2003-03-13 Roland McGrath <roland@redhat.com>
5444 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5445 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5447 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5449 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5451 * stdlib/fpioconst.c: Likewise.
5452 * stdlib/strtod.c: Likewise.
5454 * sysdeps/mips/add_n.S: Use L macro for local labels.
5455 * sysdeps/mips/addmul_1.S: Likewise.
5456 * sysdeps/mips/lshift.S: Likewise.
5457 * sysdeps/mips/memcpy.S: Likewise.
5458 * sysdeps/mips/memset.S: Likewise.
5459 * sysdeps/mips/mul_1.S: Likewise.
5460 * sysdeps/mips/rshift.S: Likewise.
5461 * sysdeps/mips/sub_n.S: Likewise.
5462 * sysdeps/mips/submul_1.S: Likewise.
5463 * sysdeps/mips/mips64/add_n.S: Likewise.
5464 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5465 * sysdeps/mips/mips64/lshift.S: Likewise.
5466 * sysdeps/mips/mips64/mul_1.S: Likewise.
5467 * sysdeps/mips/mips64/rshift.S: Likewise.
5468 * sysdeps/mips/mips64/sub_n.S: Likewise.
5469 * sysdeps/mips/mips64/submul_1.S: Likewise.
5470 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5471 conventions. Define END as in sys/asm.h.
5472 * sysdeps/unix/mips/sysdep.S: Likewise.
5473 * sysdeps/unix/mips/wait.S: Likewise.
5474 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5476 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5477 Cast shifted values that may be too narrow to mp_limb_t.
5478 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5480 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5482 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5483 (__mpn_extract_long_double): Likewise.
5484 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5485 (__mpn_construct_long_double): Likewise.
5486 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5487 (__mpn_extract_long_double): Likewise.
5488 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5489 (__mpn_construct_long_double): Likewise.
5491 2003-03-13 Roland McGrath <roland@redhat.com>
5493 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5494 entries in the map file match too.
5496 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5498 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5499 label .Lthread_start since current binutils don't allow branches
5500 to globally visible symbols.
5502 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5504 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5505 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5506 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5507 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5508 clobbered by the syscall.
5509 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5510 ASM_ARGS_6): Change constraints from r to index of corresponding
5512 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5513 ptid and ctid to match kernel.
5514 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5516 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5518 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5519 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5520 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5522 2003-03-11 Roland McGrath <roland@redhat.com>
5524 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5525 Check SYM_MAP rather than SYM as definedness check.
5526 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5527 Don't handle R_PPC64_REL24 reloc.
5528 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5530 * sysdeps/powerpc/powerpc64/dl-machine.h
5531 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5532 block, so we cover all the TPREL16* flavors without 6 ||s.
5533 [USE_TLS] (elf_machine_tprel): New function.
5534 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5535 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5536 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5538 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5540 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5541 instead of jalr to invoke subroutine so restoring the $gp register
5544 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5546 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5547 to __NR_pread if not defined.
5548 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5550 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5552 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5553 * sysdeps/unix/sysv/linux/kernel-features.h
5554 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5557 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5559 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5560 allocate space even for the trailing '/'.
5561 Reported by John Reiser <jreiser@BitWagon.com>.
5563 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5564 ASM_CLOBBERS_6): Define.
5565 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5566 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5567 to match IA-32 order.
5568 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5570 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5573 Copy extra params for NPTL to registers used in clone syscall.
5575 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5577 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5578 call names for pread and pwrite.
5580 2003-03-10 Roland McGrath <roland@redhat.com>
5582 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5583 * dlfcn/dladdr1.c: New file.
5584 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5585 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5586 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5587 a const ElfNN_Sym ** to fill in.
5588 * include/dlfcn.h: Update decl. Include <link.h>.
5589 * dlfcn/dladdr.c (dladdr): Update caller.
5590 * malloc/mtrace.c (tr_where): Likewise.
5591 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5592 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5593 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5594 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5596 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5598 * sysdeps/unix/Makefile (compile-syscall): New variable.
5599 Pass -g0 to compiler for assembling syscall stubs from stdin.
5601 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5602 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5603 Define these to do nothing.
5605 * configure.in: New check for -g on .S files.
5606 * configure: Regenerated.
5607 * config.make.in (have-cpp-asm-debuginfo): New variable.
5608 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5609 * Makeconfig (ASFLAGS): New variable, if undefined and
5610 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5611 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5613 2003-03-09 Roland McGrath <roland@redhat.com>
5615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5616 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5618 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5620 * po/fi.po: Update from translation team.
5621 * po/ca.po: Likewise.
5622 * po/da.po: Likewise.
5624 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5626 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5628 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5630 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5632 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5634 2003-03-07 Roland McGrath <roland@redhat.com>
5636 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5637 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5639 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5641 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5642 stubs, we have INLINE_SYSCALL.
5643 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5646 2003-03-06 Roland McGrath <roland@redhat.com>
5648 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5649 permanent extent and add a comment about testing its implicit teardown.
5651 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5653 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5655 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5657 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5658 reversed __builtin_expect expectation.
5660 2003-03-05 Roland McGrath <roland@redhat.com>
5662 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5663 * libio/swscanf.c: Likewise.
5664 * libio/swprintf.c: Likewise.
5666 2003-03-04 Roland McGrath <roland@redhat.com>
5668 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5669 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5670 R_PPC64_JMP_SLOT as well as TLS cases.
5671 (BIT_INSERT): Move parenthesis where it ought to have been.
5672 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5674 * posix/confstr.c (confstr): Correct STRING_LEN values for
5675 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5676 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5678 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5680 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5682 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5684 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5687 * po/sv.po: Update from translation team.
5689 2003-03-04 Andreas Jaeger <aj@suse.de>
5690 Ulrich Drepper <drepper@redhat.com>
5692 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5694 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5696 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5698 * po/tr.po: Update from translation team.
5700 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5701 are holes between the segments. Only call mprotect to set
5702 proection to PROT_NONE if there are some.
5704 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5707 * include/sched.h (__clone2): Use ... instead of adding all the
5710 2003-03-03 Roland McGrath <roland@redhat.com>
5712 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5714 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5715 PI_STATIC_AND_HIDDEN.
5717 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5719 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5721 * include/sched.h: Update clone2 prototype.
5723 2003-03-03 Andreas Jaeger <aj@suse.de>
5725 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5726 (llrint): Use it to correct return type.
5729 (llround): Likewise.
5731 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5733 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5736 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5737 if ccs parameter isn't valid. Reported by Andreas Schwab.
5739 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5741 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5742 for system call numbers > 255.
5743 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5744 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5745 INTERNAL_SYSCALL): Likewise.
5746 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5747 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5748 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5749 INTERNAL_SYSCALL): Likewise.
5751 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5753 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5754 array if it is the initial dtv.
5756 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5758 * po/es.po: Update from translation team.
5759 * po/fr.po: Likewise.
5760 * po/gl.po: Likewise.
5761 * po/sk.po: Likewise.
5762 * po/sv.po: Likewise.
5764 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5765 * misc/sys/mman.h: Add prototype for remap_file_pages.
5766 * sysdeps/generic/remap_file_pages.c: New file.
5767 * misc/Makefile (routines): Add remap_file_pages.
5768 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5770 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5772 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5773 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5774 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5775 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5776 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5777 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5778 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5779 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5781 2003-03-03 Roland McGrath <roland@redhat.com>
5783 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5784 * sysdeps/ia64/dl-machine.h: Likewise.
5785 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5787 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5789 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5790 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5791 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5792 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5793 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5794 * Versions.def (libc): Add GLIBC_2.3.3 set.
5796 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5797 * sysdeps/ia64/dl-machine.h: Update decl.
5799 2003-03-03 Andreas Jaeger <aj@suse.de>
5801 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5803 2003-03-02 Roland McGrath <roland@redhat.com>
5805 * scripts/abilist.awk: Reject data items with apparent 0 size.
5807 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5808 after foo.* as if it were a duplicate.
5810 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5812 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5814 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5816 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5817 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5818 if not already defined. Use SYSDEP_GETRES to allow other files to
5819 provide alternative implementations.
5820 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5821 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5822 if not already defined. Use SYSDEP_GETTIME to allow other files to
5823 provide alternative implementations.
5824 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5825 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5826 if not already defined. Use SYSDEP_GETTIME to allow other files to
5827 provide alternative implementations.
5828 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5829 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5830 other files to provide alternative implementations. Rearrange
5831 tests for invalid parameters.
5832 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5833 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5834 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5835 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5836 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5837 _POSIX_MONOTONIC_CLOCK.
5839 2003-03-02 Roland McGrath <roland@redhat.com>
5841 * scripts/merge-abilist.awk: More checks for bogus input.
5842 Uniquify duplicate config names.
5844 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5846 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5847 from dl_reloc_overflow, make global.
5848 (__process_machine_rela): Update callers.
5849 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5850 Add attribute_hidden to __process_machine_rela decl.
5851 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5853 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5856 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5857 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5858 (elf_machine_rela): Clean up.
5860 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5862 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5863 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5864 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5865 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5866 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5867 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5870 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5871 macros out of [SHARED].
5872 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5874 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5875 Clean up R_PPC64_* macro definition comments.
5877 * configure.in: In "running configure fragment for" message,
5878 omit $srcdir from the name if we prepended it.
5879 * configure: Regenerated.
5881 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5882 From Jakub Jelinek <jakub@redhat.com>.
5884 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5885 which duplicated the O_DIRECT defn.
5887 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5889 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5892 2003-03-01 Andreas Schwab <schwab@suse.de>
5894 * resolv/Makefile (tests): Don't depend on
5895 $(objpfx)mtrace-tst-leaks when cross compiling.
5897 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5898 __libc_stack_end through GOT since it is a global symbol.
5900 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5902 * argp/argp.h: Fix a typo.
5903 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5905 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5907 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5909 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5911 (get_subexp): Likewise.
5913 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5915 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5917 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5919 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5921 2003-02-27 Roland McGrath <roland@redhat.com>
5923 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5924 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5925 repeat it and avoids the test for the common case.
5926 Clean up and fix calculations for TLS relocs.
5928 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5929 * sysdeps/powerpc/dl-tls.h: ... here.
5930 (TLS_TP_OFFSET): New macro.
5932 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5934 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5936 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5937 code generation changes in recent gcc.
5939 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5941 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5942 Rename argument to avoid symbol conflict.
5944 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5945 [__USE_GNU] (O_DIRECT): New macro.
5947 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5949 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5952 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5954 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5955 initializer anymore now that res_thread_freeres is more careful.
5957 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5958 except the PKTINFO. Reset interface in PKTINFO.
5959 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5961 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5963 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5964 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5966 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5967 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5968 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5969 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5971 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5972 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5974 2003-02-25 Andreas Jaeger <aj@suse.de>
5976 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5977 behaviour of M_MMAP_THRESHOLD.
5979 2003-02-25 Roland McGrath <roland@redhat.com>
5981 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5982 zero, inidicating _res was not initialized yet.
5984 2003-02-24 Ulrich Drepper <drepper@redhat.com>
5986 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5989 2003-02-24 Roland McGrath <roland@redhat.com>
5991 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5993 2003-02-23 Roland McGrath <roland@redhat.com>
5995 * sysdeps/posix/pause.c: New file.
5996 * sysdeps/unix/common/pause.c: File removed.
5998 2003-02-23 Ulrich Drepper <drepper@redhat.com>
6000 * sysdeps/generic/bits/confname.h: Remove #ifs.
6002 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
6003 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
6005 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
6008 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6010 * sysdeps/generic/dl-sysdep.c: Avoid warning.
6012 2003-02-22 Roland McGrath <roland@redhat.com>
6014 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
6015 * resolv/Makefile (tests): Add tst-leaks.
6016 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
6017 (tst-leaks-ENV): New variable.
6018 ($(objpfx)mtrace-tst-leaks): New target.
6019 (tests): Depend on it.
6021 * include/libc-internal.h: Declare __libc_thread_freeres.
6023 * Makerules: Fix last change to use $($(subdir)-version) when set.
6025 * Makerules (install-lib-nosubdir): Depend on installed
6026 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
6027 regardless of the libfoo.so target's dependencies.
6029 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
6030 Use that in $(MAKE) calls.
6032 2003-02-22 Ulrich Drepper <drepper@redhat.com>
6034 * catgets/gencat.c (read_input_file): Collision between
6035 auto-assigned numbers and user-defined nubmers is not fatal.
6037 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
6038 * catgets/Makefile: Add rules to run test2.msg test.
6039 * catgets/test2.msg: New file.
6041 * catgets/gencat.c (main): Return 1 if messages have been printed.
6043 * iconv/iconv_prog.c (main): Unify messages.
6045 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
6046 when shifting retval.
6047 * stdlib/tst-strtod.c (main): Add strtold test case.
6048 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6050 2003-02-21 Roland McGrath <roland@redhat.com>
6052 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
6053 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
6054 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
6056 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
6057 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
6058 (res_thread_freeres): New function, on __libc_thread_subfreeres and
6061 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
6062 * malloc/thread-freeres.c: New file.
6063 * malloc/Makefile (aux): Add it.
6064 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
6065 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
6066 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
6068 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
6069 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
6071 2003-02-21 Roland McGrath <roland@frob.com>
6073 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
6075 * iconvdata/Makefile (tests): Add bug-iconv3 only if
6076 [$(have-thread-library) = yes].
6078 2003-02-21 Ulrich Drepper <drepper@redhat.com>
6080 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
6082 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
6083 not chechk for errors (unless testing for 32bit variant).
6084 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
6085 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
6086 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
6088 2003-02-21 Jakub Jelinek <jakub@redhat.com>
6090 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
6091 Check for signed overflow, not unsigned.
6093 * sysdeps/sparc/sparc64/elf/configure.in: New file.
6094 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
6095 Use -fcall-used-g6, not -fcall-used-g7.
6097 2003-02-21 Andreas Jaeger <aj@suse.de>
6099 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
6102 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
6103 clear whole mxcsr but only exceptions.
6105 2003-02-21 Roland McGrath <roland@redhat.com>
6107 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
6108 for libfoo.so that need $(make-link) rules.
6110 2003-02-21 Roland McGrath <roland@frob.com>
6112 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
6113 to match existing struct stat layout in mig protocols.
6115 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6117 * version.h (VERSION): Bump to 2.3.2.
6119 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
6120 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
6122 * sysdeps/generic/Dist: Add sysdep-cancel.h.
6123 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
6124 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
6125 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
6126 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
6127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
6129 * Makefile (distribute): Add include/stubs-prologue.h,
6130 include/gnu/stubs.h, scripts/merge-abilist.awk, and
6131 scripts/extract-abilist.awk.
6133 2003-02-20 Roland McGrath <roland@redhat.com>
6135 * math/Makefile (distribute): Don't add generated files.
6137 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6139 * math/Makefile: Rearrange variable definitions slightly to get
6140 definition in the right order.
6142 2003-02-20 Roland McGrath <roland@redhat.com>
6144 * Makerules: Clean up conditional around include of tls.make.
6145 * Make-dist: Export generating=t to prevent using that.
6146 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
6148 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6150 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
6151 around in search if port IPPORT_RESERVED/2 has been test.
6153 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
6155 * posix/regcomp.c: Remove inclusions.
6156 * posix/regexec.c: Likewise.
6157 * posix/regex_internal.c: Likewise.
6158 * posix/regex_internal.h: Add inclusions here.
6159 * posix/regex.c: Only include sys/types.h before regex.h. Include
6160 regex_internal.h here. Include regex_internal.c before regcomp.c
6161 and regexec.c (might expose more opportunities to the C compiler).
6163 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
6165 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
6166 [!_LIBC] (__wcrtomb): New definition.
6167 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
6168 HAVE_LOCALE_H as well.
6170 2003-02-20 Ulrich Drepper <drepper@redhat.com>
6172 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
6173 patch to check for system call errors.
6175 2002-07-24 Philip Blundell <philb@gnu.org>
6177 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6180 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6182 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6183 * sysdeps/unix/sysv/linux/kernel-features.h
6184 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6188 interprocedure branches.
6189 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6190 * sysdeps/powerpc/nofpu/Dist: ...here.
6191 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6193 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6194 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6195 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6197 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6199 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6201 2003-02-20 Philip Blundell <philb@gnu.org>
6203 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6204 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6205 INTERNAL_SYSCALL_ERRNO.
6207 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6209 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6210 for __ASSUME_32BITUIDS.
6212 2003-02-20 Andreas Schwab <schwab@suse.de>
6214 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6215 POSIX_MADV_* constants.
6217 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6219 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6220 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6221 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6222 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6224 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6226 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6228 2003-02-16 Roland McGrath <roland@redhat.com>
6230 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6232 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6234 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6235 decimal input digits.
6236 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6238 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6240 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6241 invalid file descriptors and missing access permissions.
6243 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6245 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6248 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6249 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6250 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6253 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6254 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6256 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6257 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6258 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6259 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6260 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6262 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6264 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6265 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6266 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6267 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6268 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6269 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6271 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6273 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6276 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6277 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6278 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6279 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6281 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6283 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6285 2003-02-15 Roland McGrath <roland@frob.com>
6287 * sysdeps/mach/hurd/tls.h: New file.
6288 * sysdeps/mach/hurd/i386/tls.h: New file.
6290 * mach/errsystems.awk: Include <errno.h> in generated output.
6292 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6293 use target mach-before-compile instead of generated.
6294 (mach-before-compile): New target.
6295 * Makerules: Disable use of tls.make if $(generating) is set.
6296 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6297 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6298 mach-shortcuts.h so mach/ generation happens before hurd/.
6300 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6302 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6303 of demorm correctly if low word is zero.
6304 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6305 * math/libm-test.inc (nextafter_test): New test, but disabled due
6308 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6309 counter and only call __exit_thread if this is not the last thread.
6311 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6313 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6314 subtracting map->l_tls_offset.
6316 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6318 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6319 _CS_GNU_LIBPTHREAD_VERSION.
6320 * posix/conststr.c: Handle these new values.
6321 * posix/getconf.c: Likewise.
6323 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6324 masking of version index.
6325 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6327 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6329 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6330 correctly. Reported by Thorsten Kukuk.
6332 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6334 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6335 _BSD_SOURCE to compiler.
6336 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6337 Patches by Alan Modra.
6339 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6341 * io/ftwtest.c: Get current working directory before and after the
6342 nftw call and make sure they match.
6344 2003-02-08 Jim Meyering <jim@meyering.net>
6346 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6347 the current directory, not just when DIR contains a slash.
6348 Reported by Manoj Srivastava.
6350 2003-02-07 Jim Meyering <jim@meyering.net>
6352 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6353 Include autoconf-recommended block of dirent/NAMELEN-related
6354 definitions and includes. Use NAMELEN throughout, rather than
6356 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6357 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6358 (stpcpy): Declare, if necessary.
6359 (mempcpy): Define, if necessary.
6360 [!_LIBC] (__stpcpy, __mempcpy): Define.
6361 [!_LIBC] (LXSTAT, XSTAT): Define.
6362 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6363 (find_object): Don't use c99-style struct initializer.
6364 Tweak wording in a couple comments.
6366 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6368 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6370 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6371 after the trapa instruction.
6372 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6374 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6375 (NEED_SYSCALL_INST_PAD): Define.
6376 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6377 avoid to use definition for the kernel.
6378 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6379 Save and restore the frame pointer.
6380 (SYSCALL_INST_PAD): Define.
6381 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6382 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6383 after trapa instruction.
6384 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6385 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6387 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6389 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6390 so that it can have aliases.
6391 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6393 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6395 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6396 (profile_fixup): Likewise.
6397 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6399 2002-11-24 Robert Love <rml@tech9.net>
6401 * posix/sched.h: Second parameter of sched_setaffinity and
6402 sched_getaffinity is `unsigned int', not `unsigned long'.
6403 * sysdeps/generic/sched_setaffinity.c: Likewise.
6404 * sysdeps/generic/sched_getaffinity.c: Likewise.
6406 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6408 * debug/catchsegv.sh: Fix typo in error messsage.
6409 Reported by John Levon <levon@movementarian.org>.
6411 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6412 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6413 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6414 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6416 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6417 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6419 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6420 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6422 2003-02-05 Jim Meyering <jim@meyering.net>
6424 Fix a heap-corrupting bug.
6425 * io/ftw.c: Include <limits.h>.
6426 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6427 (process_entry): Allocate enough space to hold the resulting
6428 file name. Don't presume that 2*dirbufsize is enough.
6429 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6430 it is guaranteed to be defined.
6432 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6434 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6435 * iconvdata/bug-iconv3.c: New file.
6437 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6439 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6441 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6443 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6445 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6447 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6449 * sysdeps/i386/i686/memmove.S: New file.
6451 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6454 Include kernel-features.h
6455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6460 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6462 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6464 2003-01-25 Jim Meyering <jim@meyering.net>
6466 * io/ftw.c (object_compare): Compare inode numbers before device
6467 numbers, since the former are much more likely to differ.
6469 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6471 * time/tzfile.c (__tzfile_compute): Change return value type to
6472 void. Adjust return statements.
6473 * include/time.h (__tzfile_compute): Adjust prototype.
6475 2003-02-01 Jim Meyering <jim@meyering.net>
6477 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6480 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6483 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6485 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6488 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6490 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6492 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6494 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6496 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6498 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6499 back to 2.4.19 for powerpc64.
6500 * sysdeps/unix/sysv/linux/kernel-features.h
6501 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6502 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6504 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6506 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6507 platforms with strange alignment requirements on wchar_t.
6509 2003-01-31 Andreas Schwab <schwab@suse.de>
6511 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6512 aliases, already added by make-syscalls.sh.
6513 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6514 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6515 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6516 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6517 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6518 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6519 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6520 * sysdeps/unix/inet/syscalls.list: Likewise.
6521 * sysdeps/unix/syscalls.list: Likewise.
6523 2003-01-31 Andreas Schwab <schwab@suse.de>
6525 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6528 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6530 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6531 not l to load tls from stack.
6533 2003-01-30 Roland McGrath <roland@redhat.com>
6535 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6536 null argument before all else.
6537 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6539 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6541 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6542 Move to RESOLVE protected part of the header.
6543 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6546 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6548 * stdio-common/Makefile (tests): Add bug15.
6549 (bug15-ENV): Define.
6550 * stdio-common/bug15.c: New file.
6552 2002-10-07 Wolfram Gloger <wg@malloc.de>
6554 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6555 to foreign sbrk()'s if arena is contiguous. Bug report from
6556 Bruno Haible <bruno@clisp.org>.
6558 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6560 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6562 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6564 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6567 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6569 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6571 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6573 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6575 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6577 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6578 (allocate_static_tls): ...here. Add __attribute_noinline__.
6579 Don't return on failure.
6580 (_dl_reloc_bad_type): Add __attribute_noinline__.
6581 * elf/do-rel.h (elf_dynamic_do_rel): Add
6582 __attribute__((always_inline)).
6583 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6584 elf_machine_rel_relative, elf_machine_rela_relative,
6585 elf_machine_lazy_rel): Add prototypes with
6586 __attribute__((always_inline)).
6588 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6590 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6592 2003-01-29 Roland McGrath <roland@redhat.com>
6594 * configure.in: Barf if configured in $srcdir.
6596 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6599 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6601 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6603 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6604 clone parameters to match the order used on ia32.
6605 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6607 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6609 * elf/elf.h: Add new s390 relocs.
6610 * elf/tls-macros.h: Add s390 versions.
6611 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6612 * sysdeps/s390/dl-tls.h: New file.
6613 * sysdeps/s390/libc-tls.c: New file.
6614 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6615 relocs for class PLT.
6616 (elf_machine_rela): Handle TLS relocs.
6617 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6618 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6619 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6620 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6621 CLONE_CHILD_*TID flags.
6622 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6623 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6625 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6626 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6627 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6628 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6629 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6631 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6632 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6633 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6635 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6636 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6637 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6638 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6641 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6643 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6644 from __libc_pause. Implement using sigsuspend.
6645 (__libc_pause): Call do_pause to do the real work.
6647 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6648 sig_or_mask parameter is is_sig != 0.
6650 2003-01-21 Philip Blundell <philb@gnu.org>
6652 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6654 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6656 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6658 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6660 * stdio-common/bug14.c: Use official name for the locale.
6662 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6663 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6664 instead of __libc_cleanup_region_end.
6666 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6667 as first parameter to __libc_cleanup_region_start.
6669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6670 (__fe_nomask_env): Use __prctl not prctl.
6671 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6674 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6676 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6678 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6679 wrap-around in test.
6681 2003-01-26 Andreas Schwab <schwab@suse.de>
6683 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6684 compatibility symbols. Remove INTDEF for __divdi3.
6685 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6686 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6687 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6689 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6691 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6693 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6694 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6695 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6696 for the first half of the header. Include tls.h.
6697 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6699 (elf_machine_rela): Handle TLS relocs.
6700 * sysdeps/sparc/dl-tls.h: New file.
6702 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6705 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6706 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6707 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6708 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6709 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6710 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6711 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6712 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6713 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6714 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6715 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6716 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6717 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6718 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6719 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6720 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6721 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6722 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6723 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6724 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6726 2003-01-24 Andreas Schwab <schwab@suse.de>
6728 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6729 elements, and process them backwards.
6730 * elf/Makefile ($(objpfx)tst-array4): New target.
6731 ($(objpfx)tst-array4.out): Likewise.
6732 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6733 * elf/tst-array4.c: New file.
6734 * elf/tst-array4.exp: Likewise.
6736 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6740 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6742 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6743 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6744 cancellation handling and handle both __NR_pread64 and __NR_pread.
6745 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6746 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6747 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6748 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6749 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6750 case, use register names consistently.
6752 2003-01-27 Wolfram Gloger <wg@malloc.de>
6754 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6755 pointer, not of the computed chunk. Bug report from Carlos
6756 O'Donell <carlos@baldric.uwo.ca>.
6758 2003-01-25 Andreas Schwab <schwab@suse.de>
6760 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6761 addressing to save GOT entries.
6763 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6765 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6766 inline_syscall1, inline_syscall2, inline_syscall3,
6767 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6768 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6769 __attribute__((unused)) to ChEcK.
6771 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6773 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6774 Fix inline assembler constraints.
6775 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6778 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6781 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6783 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6784 compute the cosine, not the sine, even if x > 0.8.
6786 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6788 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6789 _nss_nis_setspent. Work around the different prototypes.
6790 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6791 internal_nis_endrpcent.
6792 (internal_nis_endrpcent): Change return type to void. Change callers.
6793 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6794 _nss_nis_setpwent. Work around the different prototypes.
6795 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6796 of the function to...
6797 (internal_nis_endprotoent): ... here. New function.
6798 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6799 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6800 _nss_nis_setnetent. Work around the different prototypes.
6801 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6802 of the function to...
6803 (internal_nis_endnetgrent): ... here. New function.
6804 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6806 2003-01-19 Jim Meyering <jim@meyering.net>
6808 * time/strftime.c: (widen): Merge nearly-identical definitions.
6809 (nl_get_alt_digit) [! defined my_strftime]: Define.
6810 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6811 _nl_get_alt_digit and _nl_get_walt_digit.
6813 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6815 * time/strftime.c (my_strftime): Handle very large width
6816 specifications for numeric values correctly. Improve checks for
6818 * time/Makefile (tests): Add tst-strftime.
6819 * time/tst-strftime.c: New file.
6821 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6823 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6824 _nss_nis_sethostent. Work around the different prototypes.
6825 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6826 _nss_nis_setgrent. Work around the different prototypes.
6827 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6828 function. Split out from _nss_nis_endetherent.
6829 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6830 duplicating the code.
6831 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6832 of _nss_nis_setaliasent.
6833 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6834 internal_nis_endservent code, don't duplicate it.
6836 * inet/rexec.c (rexec_af): Protect socket operations with
6837 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6838 * inet/rcmd.c (rcmd_af): Likewise.
6840 2003-01-17 Roland McGrath <roland@redhat.com>
6842 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6843 Add test of value 0.80190127184058835.
6845 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6847 2003-01-17 Richard Henderson <rth@redhat.com>
6849 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6850 relocs for class PLT.
6851 * sysdeps/alpha/libc-tls.c: New file.
6852 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6853 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6855 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6857 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6858 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6861 2003-01-17 Andreas Jaeger <aj@suse.de>
6863 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6865 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6872 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6873 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6876 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6878 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6879 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6882 * sysdeps/generic/sysconf.c: Unconditionally implement
6883 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6884 * sysdeps/posix/sysconf.c: Likewise.
6886 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6888 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6889 set *err to the returned error, not to REG_ESPACE unconditionally.
6890 (build_word_op): Likewise.
6891 * posix/Makefile (tests): Add bug-regex16.
6892 * posix/bug-regex16.c: New test.
6894 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6896 * elf/dl-load.c (_dl_map_object_from_fd): Use
6897 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6898 been already initialized.
6900 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6902 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6904 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6906 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6907 allocated too. Reported by Al Viro <aviro@redhat.com>.
6909 2003-01-16 Roland McGrath <roland@redhat.com>
6911 Tweak merged .abilist file format to merge duplicate symbols in
6912 different sets into multi-version stanzas with new "| SET regexp..."
6913 header continuation lines.
6914 * scripts/merge-abilist.awk: Rewritten for new format.
6915 * scripts/extract-abilist.awk: Likewise.
6917 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6919 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6920 necessary with gcc 3.2+.
6921 (nscd_init): Don't use error() to print message, use dbg_log.
6923 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6924 expected size into state.
6925 (UNPACK_BYTES): Do the reverse.
6926 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6927 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6928 Reported by Al Viro <aviro@redhat.com>.
6930 * stdio-common/Makefile (tests): Add bug14.
6931 * stdio-common/bug14.c: New file.
6933 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6934 string reset the byte counter after mbrtowc reported it is not a
6935 partial character. Reported by Al Viro <aviro@redhat.com>.
6937 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6940 sysdep-cancel.h, not sysdep.h.
6942 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6944 * nscd/connections.c (nscd_run): Protect accept call with
6947 2003-01-15 Andreas Schwab <schwab@suse.de>
6949 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6950 (common-generated): Add s-proto-bp.d.
6951 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6953 * sysdeps/unix/s-proto-bp.S: New file.
6954 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6955 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6956 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6958 2003-01-15 Roland McGrath <roland@redhat.com>
6960 * Makerules: Use -include for tls.make, suppresses warning.
6961 Move gen-as-const-headers rules up so before-compile is set in time.
6962 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6964 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6966 * nscd/nscd.c (main): Make code to close all file descriptors
6967 faster and more robust.
6969 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6970 request with one writev call. Protect all read calls with
6972 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6973 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6975 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6976 Protect writev calls with TEMP_FAILURE_RETRY.
6977 * nscd/grpcache.c: Likewise.
6978 * nscd/pwdcache.c: Likewise.
6980 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6981 IPv6 address in debug output.
6983 2003-01-14 Roland McGrath <roland@redhat.com>
6985 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6986 $(objpfx) directories, and get rid of vpath directives. The previous
6987 arrangement resulted in files being written to the source directories
6988 when run in a clean build. Find all .abilist files in $(..)abilist/.
6989 (update-abi-%): Likewise.
6990 (generated): Don't add .symlist files, they'll be intermediates.
6992 * sysdeps/generic/init-first.c: Add a comment.
6994 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6996 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6997 #includes and expressions.
6999 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
7000 config list when it already contains cpu-.*-os.* without / part.
7002 * Makerules (sed-remove-dotdot): New variable.
7003 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
7004 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
7005 (check-abi-config): New variable, append /tls or /notls to the tuple.
7006 (check-abi-%): Use that for -v config value.
7007 Find .abilist files in abilist/libfoo.abilist, not in subdir.
7008 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
7010 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7012 * manual/install.texi: Correct description of header preparation for
7013 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
7015 2003-01-14 Guido Guenther <agx@sigxcpu.org>
7017 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
7018 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7019 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
7021 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7024 (INTERNAL_SYSCALL): Make use of ERR parameter.
7025 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7026 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7027 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
7030 2003-01-14 Ulrich Drepper <drepper@redhat.com>
7032 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
7034 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
7036 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
7037 Fix entry for bit 31.
7039 * iconvdata/Makefile: Add rules to build IBM866NAV.
7040 * iconvdata/ibm866nav.c: New file.
7041 * iconvdata/tst-tables.sh: Add IBM866NAV.
7042 * iconvdata/gconv-modules: Add entries for IBM866NAV.
7044 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7046 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
7047 to test void* parameters.
7049 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
7050 source pointer before dereferencing.
7051 (__STRING_SMALLL_GET32): Likewise.
7052 (__memset_gc): Add missing parenthesis around macro arguments.
7053 Patch by Denis Zaitsev <zzz@cd-club.ru>.
7055 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
7056 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
7058 2003-01-14 Jakub Jelinek <jakub@redhat.com>
7060 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
7063 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7065 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
7066 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
7068 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
7070 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
7072 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
7074 (PSEUDO): ... to here.
7075 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
7077 (PSEUDO): ... to here.
7079 2003-01-13 Ulrich Drepper <drepper@redhat.com>
7081 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
7082 dirent64 instead of struct dirent for dirent. Call readdir64
7085 * locale/programs/locfile.c (siblings_uncached): Use struct
7086 dirent64 instead of struct dirent for other_dentry. Call
7087 readdir64 instead of readdir.
7089 * elf/ldconfig.c (direntry): Change type to struct dirent64.
7090 (search_dir): Use readdir64 instead of readdir.
7091 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
7093 2003-01-12 Roland McGrath <roland@redhat.com>
7095 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
7096 not strtol. The former is usable in ld.so, the latter not.
7098 * include/fcntl.h: Declare __libc_creat.
7100 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
7101 libhurduser-link.so-no-z-defs): New variables.
7103 * malloc/malloc.c: Revert last change.
7104 * malloc/malloc.h (_int_*): Move these decls to ...
7105 * include/malloc.h: ... here. Add attribute_hidden.
7106 (_int_valloc): Declare it too.
7108 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7110 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
7111 search for removed searchlist. Reported by Roland McGrath.
7113 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
7114 given as start file.
7116 * io/ftw.c (ftw_startup): Use correct name in check for symlink
7117 without existing target. Patch by Jim Meyering.
7119 * Makerules (build-shlib-helper): Don't use -z defs linker option
7120 if no-z-defs is defined either.
7122 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7124 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
7127 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
7129 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
7130 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7132 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7134 * io/ftwtest-sh: Add test case for relative path with /. at the end.
7136 2003-01-12 Jim Meyering <jim@meyering.net>
7138 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
7139 use the basename if we've already chdir'd into its parent directory.
7141 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7143 * io/ftw.c (process_entry): Use relative path when using chdir()
7144 to change directory after call to ftw_dir.
7145 * io/ftwtest-sh: Add test for relative path argument to nftw()
7146 with FTW_CHDIR option.
7148 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7150 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
7152 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
7154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7155 (INTERNAL_SYSCALL): Make use of ERR parameter.
7156 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
7157 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
7158 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
7159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
7161 2002-01-09 Richard Henderson <rth@redhat.com>
7163 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
7164 DTPREL64 and TPREL64 without loadbase applied.
7166 2002-01-09 Richard Henderson <rth@redhat.com>
7168 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
7171 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
7172 * sysdeps/unix/alpha/sysdep.h: ... here.
7173 (PSEUDO_LOADGP): Remove.
7174 (PSEUDO_PROLOGUE): Load GP in non-pic case.
7175 (SYSCALL_ERROR_LABEL): New.
7176 (PSEUDO): Use it in error branch.
7177 (PSEUDO_END): Add $syscall_error label.
7179 2003-01-12 Andreas Jaeger <aj@suse.de>
7181 * math/bits/mathcalls.h: Round is a const function.
7183 2003-01-11 Jim Meyering <jim@meyering.net>
7185 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7186 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7187 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7188 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7189 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7190 [!_LIBC] (internal_function, dirent64, MAX): Define.
7191 (__set_errno): Define if not already defined.
7192 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7193 the basename, not the entire file name.
7194 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7195 the basename, not the entire file name.
7197 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7199 * string/tester.c (test_strcpy): Disable last added strcpy until
7202 2003-01-11 Philip Blundell <philb@gnu.org>
7204 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7206 2003-01-11 Andreas Schwab <schwab@suse.de>
7208 * Makerules: Add vpath for %.dynsym and %.so so that the
7209 implicit rule chaining for check-abi works.
7211 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7213 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7216 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7218 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7219 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7221 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7222 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7223 Ensure libc.so in DT_NEEDED.
7224 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7225 CHECK_STATIC_TLS before l_tls_offset use.
7226 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7228 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7229 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7230 Allocate TLS_PRE_TCB_SIZE bytes below result.
7231 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7232 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7233 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7234 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7235 bytes below result and add tcb_offset to memsz.
7236 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7237 * sysdeps/ia64/dl-machine.h: Include tls.h.
7238 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7240 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7241 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7242 * sysdeps/ia64/libc-tls.c: New file.
7244 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7246 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7247 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7248 Fix type. Move definition out of #if.
7249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7257 ftruncate64, pread64, pwrite64, truncate64 entries.
7258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7259 (INLINE_SYSCALL): New version that supports function call like
7260 syscalls. Add __builtin_expect.
7261 (LOADARGS_n): Add argument size safety checks.
7262 (INTERNAL_SYSCALL): New Macro.
7263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7264 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7265 redefinition of elf_fpreg_t and elf_fpregset_t.
7267 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7269 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7270 simplify test for unloading. If loader of a DSO is unloaded do not
7271 use its scope anymore. Fall back to own scope and adjust opencounts.
7272 Fix several comments.
7273 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7274 the l_searchlist, not only for l_initfini.
7276 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7277 dependencies if objects cannot be removed. Remove object with the
7278 definition as not unloadable if necessary.
7280 * elf/reldep6.c: Create relocation dependency before closing the first
7283 2003-01-10 Guido Günther <agx@sigxcpu.org>
7285 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7286 * sysdeps/unix/mips/brk.S: Likewise.
7287 * sysdeps/unix/mips/pipe.S: Likewise.
7289 2003-01-10 Andreas Schwab <schwab@suse.de>
7291 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7293 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7294 are known to have the vfork syscall.
7296 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7298 * sysdeps/unix/sysv/linux/kernel-features.h
7299 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7300 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7301 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7303 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7305 * elf/Makefile: Add rules to build and run reldep9 test.
7306 * elf/reldep9.c: New file.
7307 * elf/reldep9mod1.c: New file.
7308 * elf/reldep9mod2.c: New file.
7309 * elf/reldep9mod3.c: New file.
7311 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7313 * elf/Makefile: Add rules to build and run nodelete2 test.
7314 * elf/nodelete2.c: New file.
7315 * elf/nodel2mod1.c: New file.
7316 * elf/nodel2mod2.c: New file.
7317 * elf/nodel2mod3.c: New file.
7319 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7321 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7322 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7323 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7325 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7326 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7327 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7328 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7329 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7331 2003-01-09 Andreas Schwab <schwab@suse.de>
7333 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7335 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7337 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7338 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7340 (INTERNAL_SYSCALL_DECL): Define.
7342 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7344 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7345 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7347 (INTERNAL_SYSCALL_DECL): Define.
7348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7349 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7350 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7351 (INLINE_SYSCALL): Adjust.
7352 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7353 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7354 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7355 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7356 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7357 add err argument to INTERNAL_SYSCALL* macros.
7358 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7359 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7360 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7361 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7363 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7364 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7365 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7367 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7369 Unify symbols in user namespace exported by libc.so and libc.a.
7370 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7371 argp_fmtstream_free, and argp_fmtstream_printf.
7372 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7373 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7374 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7375 argp_fmtstream_point.
7376 * gmon/gmon.c: Don't define write_profiling.
7377 * libio/genops.c: Don't define _cleanup.
7379 * intl/explodename.c (_nl_find_language.c): Mark as static.
7380 * intl/loadinfo.h: Remove _nl_find_language prototype.
7382 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7383 * libio/libioP.h: Remove declaration.
7385 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7386 * libio/libioP.h: Remove declaration.
7388 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7389 * sysdeps/generic/framestate.c: Define STATIC before including
7392 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7394 2003-01-06 Philip Blundell <philb@gnu.org>
7396 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7397 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7399 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7401 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7402 (SYSCALL_ERROR): New.
7403 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7405 (INTERNAL_SYSCALL): Define.
7406 (INLINE_SYSCALL): Use it.
7407 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7408 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7409 SYSCALL_ERROR in place of __syscall_error.
7411 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7413 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7414 __bswap_32, __bswap_64): Put x into temporary variable
7416 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7418 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7419 __bswap_32, __bswap_64): Put x into temporary variable
7421 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7423 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7426 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7428 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7431 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7433 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7434 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7436 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7438 * math/libm-test.inc (significand_test): New function.
7441 2003-01-06 Roland McGrath <roland@redhat.com>
7443 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7445 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7446 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7447 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7449 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7451 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7453 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7454 return significand and not the exponent.
7455 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7457 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7458 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7460 * malloc/malloc.c: Mark all _int_* functions as static.
7462 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7464 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7465 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7467 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7469 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7471 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7472 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7475 ftruncate64, truncate64, pread64 and pwrite64 entries.
7476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7477 (INLINE_SYSCALL): Add __builtin_expect.
7478 (LOADARGS_n): Add argument size safety checks.
7479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7486 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7488 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7489 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7490 (LIBC_CANCEL_HANDLED): Add.
7492 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7493 (inline_syscall_r0_constraint): Rename to...
7494 (inline_syscall_r0_out_constraint): ... this. Add =.
7495 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7497 2003-01-06 Andreas Schwab <schwab@suse.de>
7499 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7500 sure this is always inlined.
7501 (elf_machine_rela): Likewise.
7503 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7505 2003-01-04 Roland McGrath <roland@redhat.com>
7507 * Makeconfig (+mkdep): Add -MP flag.
7508 Suggested by Art Haas <ahaas@airmail.net>.
7510 2003-01-05 Andreas Schwab <schwab@suse.de>
7512 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7514 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7516 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7517 SYSCALL_ERROR_HANDLER.
7518 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7519 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7520 Add support for cancellation handling.
7521 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7522 SYSCALL_ERROR_HANDLER.
7523 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7524 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7525 Add support for cancellation handling.
7526 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7528 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7531 __syscall_pread64 and __syscall_pwrite64 cancelable.
7532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7533 (INTERNAL_SYSCALL): New macro.
7534 (LOADARGS_0, LOADARGS_1): Fix.
7536 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7538 * Makerules (build-shlip-helper): Unless told otherwise, add
7539 -Wl,-z,defs to linker command line.
7540 * rt/Makefile (librt.so): Link with ld.so.
7541 * dlfcn/Makefile (libdl.so): Likewise.
7543 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7545 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7546 cancellation handling.
7547 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7548 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7550 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7552 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7553 order of parameters passed to kill.
7555 2003-01-04 Andreas Schwab <schwab@suse.de>
7557 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7559 2002-01-03 Paul Eggert <eggert@twinsun.com>
7561 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7562 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7563 when compiling Bison 1.875's `bitset bset = obstack_alloc
7564 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7566 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7568 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7570 Correct reference counter in case SIGQUIT handler installation failed.
7572 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7574 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7575 Define using _Pragma(weak ...).
7577 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7579 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7580 reorder declarations.
7582 2003-01-03 Art Haas <ahaas@airmail.net>
7584 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7585 initializer syntax to C99.
7586 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7587 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7588 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7589 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7590 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7591 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7592 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7593 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7594 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7595 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7596 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7597 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7598 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7599 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7600 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7601 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7602 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7603 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7604 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7605 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7606 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7607 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7608 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7609 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7610 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7611 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7612 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7613 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7614 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7615 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7616 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7617 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7618 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7619 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7620 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7621 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7622 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7623 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7624 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7625 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7626 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7627 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7628 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7629 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7630 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7631 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7632 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7633 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7634 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7636 2003-01-03 Richard Henderson <rth@redhat.com>
7638 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7639 (inline_syscall_r0_constraint): New.
7640 (inline_syscall[0-6]): Use them.
7642 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7644 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7645 Add rtld_hidden_proto.
7646 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7647 (_dl_allocate_tls): Likewise. Remove INTDEF.
7649 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7651 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7652 Morita <toshiyasu.morita@hsa.hitachi.com>.
7653 * sysdeps/sh/memcpy.S: Likewise.
7655 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7657 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7658 any, but unify the test.
7660 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7662 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7663 sigaction): Protect weak_alias and libc_hidden_weak with
7664 #ifndef LIBC_SIGACTION.
7665 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7666 sigaction): Likewise.
7667 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7668 sigaction): Likewise.
7669 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7670 sigaction): Likewise.
7671 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7672 sigaction): Likewise.
7673 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7674 sigaction): Likewise.
7675 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7676 sigaction): Likewise.
7677 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7678 sigaction): Likewise. Remove SIGCANCEL handling here.
7679 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7682 2003-01-02 Art Haas <ahaas@airmail.net>
7684 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7686 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7688 * posix/getconf.c: Update copyright year.
7689 * nss/getent.c: Likewise.
7690 * nscd/nscd_nischeck.c: Likewise.
7691 * iconv/iconvconfig.c: Likewise.
7692 * iconv/iconv_prog.c: Likewise.
7693 * elf/ldconfig.c: Likewise.
7694 * catgets/gencat.c: Likewise.
7695 * csu/version.c: Likewise.
7696 * elf/ldd.bash.in: Likewise.
7697 * elf/sprof.c (print_version): Likewise.
7698 * locale/programs/locale.c: Likewise.
7699 * locale/programs/localedef.c: Likewise.
7700 * nscd/nscd.c (print_version): Likewise.
7701 * debug/xtrace.sh: Likewise.
7702 * malloc/memusage.sh: Likewise.
7703 * malloc/mtrace.pl: Likewise.
7705 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7707 * io/sys/stat.h: Include time.h with __need_timespec even if
7708 __USE_MISC is defined but __USE_XOPEN is not.
7710 2003-01-01 Andreas Jaeger <aj@suse.de>
7712 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7713 type to avoid strict aliasing problem.
7714 (_nss_dns_gethostbyname2_r): Likewise.
7715 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7716 (_nss_dns_getnetbyname_r): Likewise.
7717 * resolv/gethnamaddr.c (_gethtent): Likewise.
7718 (gethostbyname2): Likewise.
7720 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7722 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7723 to avoid using the exported symbols. Define aliases with the
7724 original names separately.
7726 * include/time.h: Add libc_hidden_proto for __strftime_l.
7727 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7728 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7730 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7731 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7733 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7736 * csu/Makefile (routines): Add dso_handle.
7737 * csu/dso_handle.c: New file.
7739 2002-12-31 Roland McGrath <roland@redhat.com>
7741 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7742 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7743 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7744 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7746 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7748 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7751 2002-12-31 Andreas Jaeger <aj@suse.de>
7753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7755 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7756 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7757 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7759 * sysdeps/unix/sysv/linux/kernel_stat.h
7760 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7762 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7763 __unused[1-3] since they're needed by some platforms. Handle
7764 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7766 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7767 for structs stat and stat64.
7768 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7769 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7770 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7771 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7773 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7775 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7776 nsec resolution changes.
7777 (xstat64_conv): Likewise.
7778 (xstat32_conv): Likewise.
7780 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7783 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7784 structs stat and stat64.
7786 * time/time.h (__timespec_defined): Define for __USE_MISC.
7788 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7790 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7791 and __libc_current_sigrtmax.
7793 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7795 * include/errno.h (__errno_location): Add prototype.
7796 Use libc_hidden_proto unconditionally.
7797 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7799 * include/resolv.h (__res_state): Likewise.
7801 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7802 * include/sys/socket.h (accept): Add libc_hidden_proto.
7803 * include/errno.h (__errno_location): Likewise.
7804 * include/netdb.h (__h_errno_location): Likewise.
7805 * include/resolv.h (__res_state): Likewise.
7806 * include/unistd.h (__lseek): Likewise.
7807 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7808 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7809 * sysdeps/generic/res-state.c (__res_state): Likewise.
7810 * sysdeps/generic/accept.c (accept): Likewise.
7811 * sysdeps/generic/lseek.c (__lseek): Likewise.
7812 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7813 __libc_current_sigrtmax): Likewise.
7814 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7815 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7816 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7817 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7818 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7819 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7820 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7821 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7822 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7824 (__GI_accept): New alias to accept.
7825 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7826 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7827 New alias to llseek.
7828 (__GI_accept): New alias to accept.
7829 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7831 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7833 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7835 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7836 strong_alias (name, __GI_name).
7837 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7838 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7839 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7840 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7841 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7842 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7843 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7844 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7845 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7846 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7847 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7848 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7849 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7850 * sysdeps/unix/arm/fork.S : Likewise.
7851 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7852 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7853 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7854 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7855 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7856 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7857 * sysdeps/unix/i386/fork.S : Likewise.
7858 * sysdeps/unix/mips/fork.S : Likewise.
7859 * sysdeps/unix/sparc/fork.S : Likewise.
7860 * sysdeps/unix/sparc/vfork.S : Likewise.
7861 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7862 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7863 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7864 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7865 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7866 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7867 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7868 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7869 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7870 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7871 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7872 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7873 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7874 * sysdeps/unix/fork.S : Likewise.
7875 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7876 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7878 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7881 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7883 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7884 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7885 * sysdeps/mach/hurd/fork.c: Likewise.
7886 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7887 * sysdeps/unix/fork.S: Add __GI___fork alias.
7888 * sysdeps/unix/arm/fork.S: Likewise.
7889 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7890 * sysdeps/unix/i386/fork.S: Likewise.
7891 * sysdeps/unix/mips/fork.S: Likewise.
7892 * sysdeps/unix/sparc/fork.S: Likewise.
7893 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7894 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7895 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7896 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7897 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7898 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7899 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7900 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7901 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7902 * sysdeps/unix/sparc/vfork.S: Likewise.
7903 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7904 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7905 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7906 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7907 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7908 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7909 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7910 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7912 * include/time.h: Add libc_hidden_proto for __nanosleep.
7913 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7914 * sysdeps/mach/nanosleep.c: Likewise.
7915 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7916 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7918 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7919 _IO_list_unlock, and _IO_list_resetlock.
7920 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7921 _IO_list_unlock, and _IO_list_resetlock.
7923 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7924 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7925 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7926 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7928 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7929 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7930 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7931 __GI___longjmp alias.
7933 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7934 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7935 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7936 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7937 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7938 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7939 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7940 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7941 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7942 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7943 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7944 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7945 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7946 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7947 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7948 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7949 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7950 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7951 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7952 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7953 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7955 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7957 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7959 2002-12-30 Roland McGrath <roland@redhat.com>
7961 * Rules (generated): Target removed.
7962 * mach/Makefile (generated): Define it here instead.
7964 * math/Makefile (generated): Add m_*l and m_*f variants too.
7966 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7968 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7969 the to-be-deleted objects right away instead of later separately.
7970 The latter fails because the scope data structures of the DSO
7971 might already be gone.
7973 * elf/Makefile: Add rules to build and run reldep8 test.
7974 * elf/reldep8.c: New file.
7975 * elf/reldep8mod1.c: New file.
7976 * elf/reldep8mod2.c: New file.
7977 * elf/reldep8mod3.c: New file.
7978 Contributed by Jakub Jelinek.
7980 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
7982 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7983 checking of return value ENOSYS from getdents64.
7985 2002-12-28 Andreas Schwab <schwab@suse.de>
7987 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7988 ($(common-objpfx)s-%.d): Generalized from
7989 $(common-objpfx)s-proto.d rule.
7990 (common-generated): Add s-proto-cancel.d.
7991 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7992 cancellable syscalls.
7993 * sysdeps/unix/s-proto-cancel.S: New file.
7995 2002-12-29 Roland McGrath <roland@redhat.com>
7997 * resolv/res_libc.c: Move _res defn magic after res_init defn
7998 so _res macro is in effect for that code.
8000 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
8001 pattern for prepending $(..) so it doesn't affect $(foo).
8003 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
8005 2002-12-29 Jakub Jelinek <jakub@redhat.com>
8007 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
8010 2002-12-28 Ulrich Drepper <drepper@redhat.com>
8012 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
8014 2002-12-28 Andreas Jaeger <aj@suse.de>
8016 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
8018 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
8020 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8022 * inet/herrno.c (__h_errno_location): Remove.
8023 * inet/Makefile (routines): Add herrno-loc.
8024 * resolv/res_libc.c (__res_state): Remove.
8025 * resolv/Makefile (routines): Add res-state.
8026 * sysdeps/generic/herrno-loc.c: New file.
8027 * sysdeps/generic/res-state.c: New file.
8029 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8031 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
8032 Only define if USE_DL_SYSINFO is defined.
8034 2002-12-22 Jakub Jelinek <jakub@redhat.com>
8036 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
8037 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
8038 Define. Patch by Richard Henderson and Jes Sorensen.
8039 (PSEUDO): Remove unnecessary ;;.
8040 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
8041 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
8042 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
8043 if not initializing thread pointer.
8044 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
8045 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
8046 make it weak also if NONTLS_INIT_TP.
8047 * sysdeps/unix/common/pause.c: Handle cancellation.
8048 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
8049 (LOADSYSCALL): Remove.
8050 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8051 (SYSCALL_ERROR_HANDLER): Use it.
8052 (PSEUDO): Don't jump around error handler.
8053 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
8054 jump around error handler.
8055 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
8056 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
8057 to __syscall_error_handler on failure.
8058 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
8059 (LOADSYSCALL): Remove.
8060 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
8061 (SYSCALL_ERROR_HANDLER): Use it.
8062 (PSEUDO): Don't jump around error handler.
8063 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
8064 jump around error handler.
8065 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
8066 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
8067 to __syscall_error_handler on failure.
8069 2002-12-27 Roland McGrath <roland@redhat.com>
8071 * scripts/gen-as-const.awk: New file.
8072 * Makefile (distribute): Add it.
8073 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
8074 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
8076 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
8078 2002-12-27 Andreas Schwab <schwab@suse.de>
8080 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
8082 2002-12-27 Jakub Jelinek <jakub@redhat.com>
8084 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
8087 2002-12-27 Andreas Schwab <schwab@suse.de>
8089 * Makerules ($(common-objpfx)%.make): Filter through
8090 $(sed-remove-objpfx).
8092 2002-12-23 Roland McGrath <roland@redhat.com>
8094 * scripts/abilist.awk: Produce a more compact format, divided into
8095 stanzas for each version set, the set name listed only once.
8096 * scripts/extract-abilist.awk: New file.
8097 * scripts/merge-abilist.awk: New file.
8098 * Makerules (check-abi-%, update-abi-%): New pattern rules.
8099 (update-abi, check-abi): New targets.
8100 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
8102 2002-12-19 Roland McGrath <roland@redhat.com>
8104 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
8106 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
8109 2002-12-21 Andreas Schwab <schwab@suse.de>
8111 * elf/check-textrel.c (handle_file): Swap p_type.
8113 2002-12-21 Andreas Schwab <schwab@suse.de>
8115 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
8116 (INLINE_SYSCALL): Use it.
8117 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
8118 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8120 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
8121 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
8123 2002-12-20 Art Haas <ahaas@airmail.net>
8125 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
8128 2002-12-21 Philip Blundell <philb@gnu.org>
8130 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
8131 top as seventh arg to __libc_start_main.
8132 Reported by paulnash@wildseed.com.
8134 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
8136 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
8137 compatibility cruft when new enough kernel is assumed.
8139 2002-12-20 Jakub Jelinek <jakub@redhat.com>
8141 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
8142 instead of INLINE_SYSCALL.
8144 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8146 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
8149 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
8150 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
8151 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
8152 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8153 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8154 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8155 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8156 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8157 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
8158 Patch by William Lee Irwin <wli@holomorphy.com>.
8160 2002-12-20 Andreas Schwab <schwab@suse.de>
8162 * locale/programs/ld-measurement.c (measurement_output): Fix
8165 2002-12-20 Ulrich Drepper <drepper@redhat.com>
8167 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
8168 Redefine _IO_flockifle and _IO_funlockfile as inlines.
8170 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
8171 builds add "tls" in the search path.
8172 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
8173 (path_hwcap): Recognize "tls".
8175 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8177 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8178 __waitpid instead of waitpid.
8180 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8182 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8183 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8184 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8186 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8187 information for system calls.
8189 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8192 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8194 2002-12-19 Roland McGrath <roland@redhat.com>
8196 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8197 * iconvdata/ibm922.h: Likewise.
8198 * iconvdata/ibm930.h: Likewise.
8199 * iconvdata/ibm932.h: Likewise.
8200 * iconvdata/ibm933.h: Likewise.
8201 * iconvdata/ibm935.h: Likewise.
8202 * iconvdata/ibm937.h: Likewise.
8203 * iconvdata/ibm939.h: Likewise.
8204 * iconvdata/ibm943.h: Likewise.
8205 * iconvdata/isiri-3342.h: Likewise.
8207 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8209 * test-skeleton.c (main): Make sure correct value is seen as
8210 argv[0] after adjustment of argv, and argc.
8212 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8213 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8215 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8217 * nscd/connections.c (nscd_run): Shut up warning.
8218 * tst-ungetc.c (assert): Undefined before redefining.
8220 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8222 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8225 2002-12-17 Art Haas <ahaas@airmail.net>
8227 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8228 * iconvdata/cp775.h: Likewise.
8229 * iconvdata/ibm1046.h: Likewise.
8230 * iconvdata/ibm1124.h: Likewise.
8231 * iconvdata/ibm1129.h: Likewise.
8232 * iconvdata/ibm1132.h: Likewise.
8233 * iconvdata/ibm1133.h: Likewise.
8234 * iconvdata/ibm1160.h: Likewise.
8235 * iconvdata/ibm1161.h: Likewise.
8236 * iconvdata/ibm1162.h: Likewise.
8237 * iconvdata/ibm1163.h: Likewise.
8238 * iconvdata/ibm1164.h: Likewise.
8240 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8242 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8243 __ASSUME_CLONE_THREAD_FLAGS is defined.
8244 * sysdeps/unix/sysv/linux/kernel-features.h
8245 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8247 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8249 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8251 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8253 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8255 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8257 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8259 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8261 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8262 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8263 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8266 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8268 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8270 [libc: GLIBC_PRIVATE]: ...here.
8271 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8273 [libc: GLIBC_PRIVATE]: ...here.
8275 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8277 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8278 Use it instead of directly int $0x80.
8279 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8280 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8281 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8282 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8283 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8284 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8286 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8288 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8290 * elf/elf.h (AT_SYSINFO): New define.
8291 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8294 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8296 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8298 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8300 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8302 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8304 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8306 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8308 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8309 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8310 available, otherwise __libc_maybe_call.
8311 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8312 cancellation handling.
8313 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8315 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8317 * posix/regcomp.c (free_workarea_compile): Free the new member
8319 (analyze): Initialize ORG_INDICES.
8320 (duplicate_node_closure): Search for a existing node, which is
8321 duplicated from the node ORG_DEST and satisfies the constraint
8322 CONSTRAINT. And use it to avoid inifimite loop.
8323 (search_duplicated_node): New function.
8324 (duplicate_node): Store the index of the original node.
8325 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8327 * posix/regex_internal.h (re_dfa_t): Add new members.
8329 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8331 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8333 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8335 * sysdeps/posix/system.c (do_system): Add support for installation
8336 of cancellation handlers.
8337 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8339 * stdlib/Makefile (tests): Add tst-system.
8340 * stdlib/tst-system.c: New file.
8342 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8343 CENABLE]: Don't lose content of %ebx.
8345 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8347 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8348 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8350 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8352 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8353 fails to return a function pointer don't use it.
8355 2002-12-16 Art Haas <ahaas@airmail.net>
8357 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8358 * iconvdata/iso-ir-165.c: Likewise.
8359 * iconvdata/jis0208.c: Likewise.
8360 * iconvdata/jis0212.c: Likewise.
8362 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8364 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8365 epoll_ctl, and epoll_wait.
8366 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8367 epoll_create, epoll_ctl, and epoll_wait.
8368 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8369 Davide Libenzi <davidel@xmailserver.org>.
8370 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8371 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8374 2002-12-16 Art Haas <ahaas@airmail.net>
8376 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8378 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8379 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8380 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8382 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8384 * stdio-common/Makefile (routines): Remove lockfile. Add
8385 flockfile, ftrylockfile, and funlockfile.
8386 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8387 * sysdeps/generic/flockfile.c: New file.
8388 * sysdeps/generic/ftrylockfile.c: New file.
8389 * sysdeps/generic/funlockfile.c: New file.
8391 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8393 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8394 macros instead of doing the calls directly.
8395 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8396 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8399 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8401 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8402 * sysdeps/ieee754/bits/nan.h: Likewise.
8404 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8405 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8407 2002-12-16 Roland McGrath <roland@redhat.com>
8409 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8410 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8411 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8413 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8414 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8416 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8417 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8418 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8419 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8420 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8421 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8422 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8423 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8425 2002-12-13 Paul Eggert <eggert@twinsun.com>
8427 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8428 is now u_int, not int.
8429 (struct XDR.x_handy): Now u_int, not int.
8430 * sunrpc/xdr_mem.c: Include <limits.h>.
8431 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8432 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8433 x_handy is now unsigned, not signed.
8434 Do not decrement x_handy if no change is made.
8435 (xdrmem_setpos): Check for int overflow.
8436 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8437 (xdr_sizeof): Remove cast that is now unnecessary, now that
8438 x_handy is unsigned.
8440 2002-12-15 Art Haas <ahaas@airmail.net>
8442 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8443 * iconvdata/gap.awk: Likewise.
8444 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8445 * iconvdata/gen-8bit-gap.sh: Likewise.
8446 * locale/C-address.c: Likewise.
8447 * locale/C-collate.c: Likewise.
8448 * locale/C-ctype.c: Likewise.
8449 * locale/C-identification.c: Likewise.
8450 * locale/C-measurement.c: Likewise.
8451 * locale/C-messages.c: Likewise.
8452 * locale/C-monetary.c: Likewise.
8453 * locale/C-name.c: Likewise.
8454 * locale/C-numeric.c: Likewise.
8455 * locale/C-paper.c: Likewise.
8456 * locale/C-telephone.c: Likewise.
8457 * locale/C-time.c: Likewise.
8458 * nscd/connections.c: Likewise.
8459 * nscd/grpcache.c: Likewise.
8460 * nscd/hstcache.c: Likewise.
8461 * nscd/pwdcache.c: Likewise.
8462 * stdio-common/vfprintf.c: Likewise.
8463 * stdlib/random.c: Likewise.
8464 * sysdeps/generic/siglist.c: Likewise.
8465 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8466 * sysdeps/ieee754/bits/nan.h: Likewise.
8467 * sysdeps/posix/sprofil.c: Likewise.
8468 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8469 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8470 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8472 2002-12-15 Roland McGrath <roland@redhat.com>
8474 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8476 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8477 <tls.h> here, no need for it.
8478 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8480 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8481 parameter, not varargs parameter.
8483 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8484 argument so it's not an unused variable.
8486 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8487 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8490 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8492 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8494 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8495 original __libc_fcntl code. Just renamed.
8497 2002-12-15 Andreas Schwab <schwab@suse.de>
8499 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8501 2002-12-14 Olaf Hering <olh@suse.de>
8503 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8504 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8506 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8508 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8510 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8511 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8513 * sysdeps/unix/sysv/linux/open64.c: New file.
8515 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8516 * sysdeps/posix/open64.c: Likewise.
8517 * sysdeps/posix/sigpause.c: Likewise.
8518 * sysdeps/posix/sigwait.c: Likewise.
8519 * sysdeps/posix/system.c: Likewise.
8520 * sysdeps/posix/waitid.c: Likewise.
8521 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8522 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8523 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8524 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8525 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8526 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8527 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8528 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8529 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8530 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8531 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8532 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8533 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8534 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8535 * sysdeps/unix/sysv/linux/send.S: Likewise.
8536 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8537 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8538 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8539 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8540 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8541 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8542 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8543 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8544 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8545 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8546 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8547 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8549 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8551 * sysdeps/generic/sysdep-cancel.h: New file.
8552 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8554 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8555 recvmsg, send, sendmsg, sendto): Make cancelable.
8556 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8557 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8558 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8559 sendto, osf_select): Likewise.
8560 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8561 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8562 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8563 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8565 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8566 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8567 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8568 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8570 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8571 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8572 sendto, select): Likewise.
8573 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8574 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8576 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8577 select, fcntl): Likewise.
8578 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8579 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8580 read, readv, select, sigsuspend, write, writev): Likewise.
8582 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8584 * dirent/bug-readdir1.c: Include unistd.h.
8586 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8588 * locale/programs/locale.c: Include locarchive.h.
8589 (ARCHIVE_NAME): Define.
8590 (write_archive_locales): New function.
8591 (write_locales): Use it. Ensure the same locale is not printed
8592 multiple times in verbose mode.
8593 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8594 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8596 (struct nameent): New type.
8597 (nameentcmp): New function.
8599 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8601 * posix/regex_internal.c (re_string_context_at): Guard wide char
8602 code with #ifdef RE_ENABLE_I18N.
8604 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8606 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8608 2002-12-13 Roland McGrath <roland@redhat.com>
8610 * posix/bug-regex15.c: New file.
8611 * posix/Makefile (tests): Add it.
8613 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8614 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8616 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8618 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8620 * misc/syslog.c (log_cleanup): Don't use parameter in
8621 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8622 pass NULL instead of a pointer to syslog_lock.
8624 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8626 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8627 linker map for all iconv modules.
8628 (distribute): Add gconv.map.
8629 * iconvdata/gconv.map: New file.
8631 * elf/Makefile: Also check all iconv modules for text relocations.
8633 * stdlib/Makefile: Remove code to automatically import GMP.
8635 * elf/Makefile (tests): Add rules to build and run check-textrel.
8636 * elf/check-textrel.c: New file.
8638 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8641 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8643 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8646 2002-04-30 Bruno Haible <bruno@clisp.org>
8648 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8649 the encoding if it already has slashes.
8650 Reported by Perry Rapp <prapp@erols.com>.
8652 2002-12-11 Roland McGrath <roland@redhat.com>
8654 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8655 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8656 Turn off PIC for compiling this file.
8658 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8660 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8661 definitions. Not needed.
8662 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8663 pthread routines directly.
8664 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8666 (arena_get2): Don't look at return value of mutex_lock.
8668 2002-12-11 Roland McGrath <roland@redhat.com>
8670 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8671 elf-init.o instead of compiling a PIC version.
8673 2002-12-11 Bruno Haible <bruno@clisp.org>
8675 * intl/gettext.h: Renamed to ...
8676 * intl/gmo.h: ... here.
8677 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8678 * intl/gettextP.h: Update.
8679 * intl/loadmsgcat.c: Update.
8681 * intl/gettextP.h (PARAMS): Make more portable.
8682 (attribute_hidden): Define as empty macro if not already defined.
8683 * intl/hash-string.h (PARAMS): Make more portable.
8684 * intl/loadinfo.h (PARAMS): Likewise.
8685 * intl/plural-exp.h (PARAMS): Likewise.
8686 (attribute_hidden): Move definition near the definition of
8689 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8690 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8692 2002-07-13 Bruno Haible <bruno@clisp.org>
8694 * intl/dcigettext.c (freea): New macro.
8695 (FREE_BLOCKS): Free also the registered blocks.
8696 (DCIGETTEXT): Free the 'search' variable.
8697 Reported by Andreas Fischer <a.fischer@asentics.de>.
8699 2002-04-27 Bruno Haible <bruno@clisp.org>
8701 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8702 * intl/dcigettext.c: Likewise.
8703 * intl/dcgettext.c: Likewise.
8704 * intl/dgettext.c: Likewise.
8705 * intl/gettext.c: Likewise.
8706 * intl/dcngettext.c: Likewise.
8707 * intl/dngettext.c: Likewise.
8708 * intl/ngettext.c: Likewise.
8709 * intl/textdomain.c: Likewise.
8710 * intl/bindtextdom.c: Likewise.
8711 * intl/plural-exp.h: Likewise.
8713 2002-01-02 Bruno Haible <bruno@clisp.org>
8715 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8717 2001-04-30 Bruno Haible <bruno@clisp.org>
8719 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8720 default macro definitions. Needed for mingw32.
8722 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8724 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8725 __builtin_constant_p to macro parameter.
8727 * sysdeps/generic/sigpause.c: Define all functions as weak.
8728 * sysdeps/posix/sigpause.c: Likewise.
8730 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8733 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8735 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8736 Explicitly align the array to sizeof (void *).
8737 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8739 * include/libc-symbols.h: Fix a comment typo.
8741 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8742 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8744 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8746 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8747 (__libc_sigsuspend): Likewise.
8748 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8749 (__libc_sigsuspend): Likewise.
8750 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8751 (creat): New weak alias.
8753 2002-12-10 Roland McGrath <roland@redhat.com>
8755 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8756 contributes a manual chapter.
8757 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8760 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8761 and move contents to ...
8762 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8763 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8764 it instead of duplicating its contents.
8765 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8767 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8769 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8771 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8773 (EXTRA_LD_ENVVARS): Use it.
8774 (DL_OSVERSION_INIT): Define.
8775 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8777 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8779 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8781 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8783 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8784 call. It is not allowed to destroy pthread mutexes which are
8785 still in use even though it is safe for our implementations. If
8786 somebody still uses the descriptor it is a bug.
8788 2002-12-09 Richard Henderson <rth@redhat.com>
8790 * csu/abi-note.S: Use .p2align, not .align.
8792 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8794 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8795 __libc_select aliases.
8797 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8800 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8802 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8804 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8806 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8808 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8810 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8811 __libc___xpg_sigpause aliases.
8813 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8815 * misc/error.c: Remove use of USE_IN_LIBIO.
8817 2002-12-08 Roland McGrath <roland@redhat.com>
8819 * elf/Makefile (tests): Uncomment tst-array[123].
8820 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8821 * csu/elf-init.c: New file.
8822 * csu/Makefile (routines, static-only-routines): Add elf-init.
8823 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8824 and __libc_csu_fini in place of _fini.
8825 * sysdeps/arm/elf/start.S: Likewise.
8826 * sysdeps/cris/elf/start.S: Likewise.
8827 * sysdeps/hppa/elf/start.S: Likewise.
8828 * sysdeps/i386/elf/start.S: Likewise.
8829 * sysdeps/ia64/elf/start.S: Likewise.
8830 * sysdeps/m68k/elf/start.S: Likewise.
8831 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8832 * sysdeps/mips/elf/start.S: Likewise.
8833 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8834 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8835 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8836 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8837 * sysdeps/sh/elf/start.S: Likewise.
8838 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8839 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8840 * sysdeps/x86_64/elf/start.S: Likewise.
8842 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8843 struct containing function ptr and value, free it.
8844 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8845 It's not safe to let the new thread use the SIGEV pointer.
8847 2001-10-20 Paul Eggert <eggert@twinsun.com>
8849 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8850 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8851 Use strerror_r that is only a macro, even if it is not a function.
8852 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8853 (private_strerror): Use prototypes, not old-style function definition.
8854 (print_errno_message): New function.
8855 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8857 (error_tail, error, error_at_line): Use it.
8859 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8861 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8863 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8865 * scripts/output-format.sed: Fix bug in one of the s expressions
8866 which used / for one too many things.
8868 * include/unistd.h: Declare __libc_close.
8870 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8872 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8874 2002-12-07 Roland McGrath <roland@redhat.com>
8876 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8877 from 2002-12-06, but remove unnecessary memset call without removing
8878 necessary copy of initialization image.
8880 * Makerules ($(common-objpfx)format.lds): New target.
8881 (common-generated): Add it.
8882 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8883 * scripts/output-format.sed: New file.
8884 * Makefile (distribute): Add it.
8886 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8888 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8889 Reported by Art Haas <ahaas@airmail.net>.
8891 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8893 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8895 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8897 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8899 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8901 * test-skeleton.c (timeout_handler): Allow expected signal to be
8904 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8906 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8908 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8910 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8911 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8912 Reported by Jeff Bailey <jbailey@nisa.net>.
8914 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8916 * sysdeps/generic/libc-tls.c: Undo last patch.
8918 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8920 * include/signal.h: Define raise with libc_hidden_proto.
8922 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8923 __execve instead of snprintf and execve.
8925 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8928 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8930 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8931 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8933 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8935 * misc/syslog.c (log_cleanup): New function.
8936 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8937 (closelog): Likewise.
8939 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8940 * elf/dl-iteratephdr.c: Likewise.
8941 * elf/dl-lookup.c: Likewise.
8942 * elf/dl-misc.c: Likewise.
8943 * elf/dl-open.c: Likewise.
8944 * elf/dl-support.c: Likewise.
8945 * elf/rtld.c: Likewise.
8946 * sysdeps/generic/ldsodefs.h: Likewise.
8947 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8948 * sysdeps/mach/bits/libc-lock.h: Likewise.
8949 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8951 2002-12-06 Roland McGrath <roland@redhat.com>
8953 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8955 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8956 (malloc_starter, memalign_starter, free_starter): Don't define these.
8957 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8958 Don't declare them either.
8959 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8960 __pthread_initialize, so no need to set hooks to *_starter.
8961 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8962 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8963 (__libc_malloc_pthread_startup): New function.
8964 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8966 * malloc/hooks.c (memalign_starter): New function.
8967 * malloc/malloc.c: Declare it.
8968 * malloc/arena.c (save_memalign_hook): New variable.
8969 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8971 * elf/dl-minimal.c (free): Clear the memory.
8972 (calloc): Just call malloc, knowing all memory it returns is cleared.
8974 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8975 malloc and memset; calloc can avoid the zeroing when redundant.
8976 (_dl_tls_setup): Likewise.
8977 * elf/dl-load.c (decompose_rpath): Likewise.
8978 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8979 call, since memory from sbrk at startup is already zero.
8981 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8982 error string for failure, null for success. Update callers.
8983 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8984 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8986 2002-12-05 Jakub Jelinek <jakub@redhat.com>
8988 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8990 (readahead): Change args to i:iii.
8991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8992 Change args to i:iii.
8993 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8996 2002-12-05 Roland McGrath <roland@redhat.com>
8998 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8999 call all functions rather than none.
9000 Reported by Mark P. Mitchell <mark@codesourcery.com>.
9002 2002-12-04 Roland McGrath <roland@redhat.com>
9004 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
9005 on _nl_current_LC_* variables.
9007 2002-12-05 Ulrich Drepper <drepper@redhat.com>
9009 * dirent/bug-readdir1.c (main): Don't call closedir, just close
9010 the file descriptor. This is testing what the bug report was about.
9012 2002-12-04 Ulrich Drepper <drepper@redhat.com>
9014 * po/be.po: New file.
9016 * argp/Makefile (tests): Add tst-argp1.
9018 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
9019 Change type of _attribute to void*.
9020 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9021 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
9022 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
9023 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9024 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9026 2002-12-04 Roland McGrath <roland@redhat.com>
9028 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
9029 members to the end, so a libpthread compiled with !USE_TLS will still
9030 find other members properly.
9032 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
9033 operand for DEST memory. Fix dummy input operand to use SRC.
9034 Reported by Davin McCall <davmac@ozonline.com.au>.
9036 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
9037 alignment when initializing the DTV entry.
9039 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
9040 when TLS has not been set up, try to set it up if we can.
9041 * elf/tst-tls4.c: Revert last change.
9042 * elf/tst-tls5.c: Likewise.
9043 * elf/tst-tls6.c: Likewise.
9044 * elf/tst-tls7.c: Likewise.
9045 * elf/tst-tls8.c: Likewise.
9046 * elf/tst-tls9.c: Likewise.
9048 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
9049 * sysdeps/generic/ldsodefs.h: Declare it.
9050 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
9051 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
9052 function, broken out of __libc_setup_tls.
9053 (init_static_tls): Likewise.
9054 (__libc_setup_tls): Call them.
9055 (_dl_tls_setup): New function, uses new subroutines.
9057 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
9058 Clear the pointer when returning true.
9059 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
9060 first element of the slotinfo list too.
9062 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
9065 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
9066 (_dl_determine_tlsoffset): Likewise.
9068 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
9069 startup_error_tsd, made global.
9070 (dl_main): Update initialization.
9071 * elf/dl-tsd.c: Likewise.
9072 * sysdeps/generic/ldsodefs.h: Declare it.
9074 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9076 * manual/texinfo.tex: Update from latest upstream version.
9078 2002-12-03 Roland McGrath <roland@redhat.com>
9080 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
9081 area surplus in calculation for sbrk call.
9083 * iconvdata/cp1125.c: New file.
9084 * iconvdata/Makefile (distribute): Add it.
9085 (modules): Add CP1125.
9086 (gen-8bit-gap-modules): Add cp1125.
9087 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
9088 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
9090 2002-12-03 Andreas Jaeger <aj@suse.de>
9092 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
9094 2002-12-03 Ulrich Drepper <drepper@redhat.com>
9096 * sysdeps/posix/system.c (do_system): Make signal handler
9097 installation thread safe.
9099 2002-12-02 Roland McGrath <roland@redhat.com>
9101 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
9102 caller from EXTRA to -.
9103 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9104 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9105 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9107 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
9109 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
9110 bits of RM are cleared.
9112 2002-12-02 Roland McGrath <roland@redhat.com>
9114 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
9115 TLS setup is required.
9116 * elf/tst-tls5.c: Likewise.
9117 * elf/tst-tls6.c: Likewise.
9118 * elf/tst-tls7.c: Likewise.
9119 * elf/tst-tls8.c: Likewise.
9120 * elf/tst-tls9.c: Likewise.
9122 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
9123 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
9124 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
9125 for being null before calling free_slotinfo.
9126 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
9127 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
9129 2002-11-30 Bruno Haible <bruno@clisp.org>
9131 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
9132 (struct __gconv_step): New field __btowc_fct.
9133 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
9134 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
9136 (__gconv_btwoc_ascii): New declaration.
9137 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9138 (__gconv_btwoc_ascii): New function.
9139 * iconv/gconv_builtin.h: Add BtowcFct argument to all
9140 BUILTIN_TRANSFORMATION invocations.
9141 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
9142 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
9143 * iconv/gconv_builtin.c (map): New field btowc_fct.
9144 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
9146 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
9147 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
9148 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
9149 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
9150 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
9151 (gconv_init): Initialize __btowc_fct field.
9152 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
9153 * iconv/loop.c: Document ONEBYTE_BODY.
9154 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
9155 Undefine ONEBYTE_BODY at the end.
9156 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
9157 * iconvdata/8bit-gap.c (NONNUL): New macro.
9158 (BODY for FROM_LOOP): Use it.
9159 (ONEBYTE_BODY): New macro.
9160 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
9161 (NONNUL): New macro.
9162 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
9163 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
9164 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
9165 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
9166 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
9167 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
9168 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
9169 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
9170 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
9171 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
9172 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
9173 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
9174 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
9175 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
9176 * iconvdata/ibm932.c: Include <stdbool.h>.
9177 (TRUE, FALSE): Remove macros.
9178 (BODY for FROM_LOOP): Remove unused variable rp1.
9179 (ONEBYTE_BODY): New macro.
9180 (BODY for TO_LOOP): Use bool.
9181 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9182 * iconvdata/ibm943.c: Include <stdbool.h>.
9183 (TRUE, FALSE): Remove macros.
9184 (BODY for FROM_LOOP): Remove unused variable rp1.
9185 (ONEBYTE_BODY): New macro.
9186 (BODY for TO_LOOP): Use bool.
9187 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9188 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9189 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9190 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9191 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9192 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9193 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9194 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9195 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9196 * iconvdata/gbbig5.c: Tweak comment.
9198 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9200 * po/fi.po: Update from translation team.
9202 2002-12-01 Roland McGrath <roland@redhat.com>
9204 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9205 testing getdents64 return value.
9207 * scripts/versions.awk: Don't pass -n flag to sort command.
9209 * posix/bug-regex13.c: Include <string.h>.
9211 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9212 DL_SYSDEP_OSCHECK here.
9213 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9214 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9216 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9217 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9219 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9220 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9222 * include/link.h: Comment typo fix.
9224 2002-12-01 Roland McGrath <roland@frob.com>
9226 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9227 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9228 _POSIX_MEMORY_PROTECTION): Likewise.
9229 (_POSIX_POLL, _POSIX_SELECT): Removed.
9231 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9233 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9234 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9236 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9238 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9240 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9243 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9245 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9246 branch prediction buffers by using unpaired call/ret.
9248 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9250 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9251 first parameters constraint string.
9252 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9254 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9256 * posix/regcomp.c (parse_expression): Set the bit since the back
9257 reference is used in the regular expression.
9258 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9260 (re_node_set_init_copy): Likewise.
9261 * posix/regex_internal.h (state_array_t): New structure.
9262 (re_sub_match_last_t): Likewise.
9263 (re_sub_match_top_t): Likewise.
9264 (re_match_context_t): Add new members.
9265 (re_dfa_t): Likewise.
9266 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9267 to check the matching is really correct, and retry if failed.
9268 Move the routin pruning the impossible nodes from here, ...
9269 (prune_impossible_nodes): To this function.
9270 (check_matching): Invoke check_subexp_matching_top, and replace
9271 redundant checking with transit_state_bkref invocation.
9272 (proceed_next_node): Replace strncmp with memcmp. Reported by
9273 Paolo Bonzini <bonzini@gnu.org>.
9274 (update_cur_sifted_state): Remove search_subexp invocation.
9275 (search_subexp): Remove this function.
9276 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9278 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9279 Remove unused invocation of match_ctx_add_entry.
9280 (transit_state): Invoke check_subexp_matching_top.
9281 (check_subexp_matching_top): New function.
9282 (transit_state_bkref): Remove unused array.
9283 Merge transit_state_bkref_loop.
9284 (transit_state_bkref_loop): Use get_subexp instead of
9285 sift_states_backward. Use search_cur_bkref_entry for optimization.
9286 Merge this function to transit_state_bkref.
9287 (get_subexp): New function.
9288 (get_subexp_sub): Likewise.
9289 (find_subexp_node): Likewise.
9290 (check_arrival): Likewise.
9291 (check_arrival_expand_ecl): Likewise.
9292 (check_arrival_expand_ecl_sub): Likewise.
9293 (expand_bkref_cache): Likewise.
9294 (match_ctx_init): Initialize new members.
9295 (match_ctx_clean): New function.
9296 (match_ctx_free): Release new members.
9297 (match_ctx_free_subtops): New function.
9298 (match_ctx_add_entry): Fix indent.
9299 (search_cur_bkref_entry): New function.
9300 (match_ctx_add_subtop): Likewise.
9301 (match_ctx_add_sublast): Likewise.
9303 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9305 * iconv/Makefile (tests): Remove tst-iconv4.c
9306 * iconv/tst-iconv4.c: Moved to...
9307 * iconvdata/tst-iconv4.c: ...here. New file.
9308 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9310 2002-11-25 Roland McGrath <roland@redhat.com>
9312 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9313 Grok AF_LINK if defined.
9314 From Momchil Velikov <velco@fadata.bg>.
9316 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9317 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9318 Reported by Momchil Velikov <velco@fadata.bg>.
9320 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9321 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9322 (__ifreq): Count up NIFS that way too.
9323 Reported by Momchil Velikov <velco@fadata.bg>.
9325 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9327 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9328 and <fpu_control.h>.
9330 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9332 * elf/elf.h (EM_ST19): Fix typo.
9334 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9336 * include/errno.h (__set_errno): Define as errno = val
9339 2002-11-24 Roland McGrath <roland@redhat.com>
9341 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9342 * sysdeps/posix/writev.c: Likewise.
9343 From Momchil Velikov <velco@fadata.bg>.
9345 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9346 calling *GL(dl_error_catch_tsd) for a thread-local location.
9347 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9348 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9349 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9351 * libio/iofflush.c: Add libc_hidden_def.
9352 * libio/iofwrite.c: Likewise.
9353 * sysdeps/generic/sigtimedwait.c: Likewise.
9354 * sysdeps/generic/sigwaitinfo.c: Likewise.
9355 * sysdeps/posix/sigwait.c: Likewise.
9356 Reported by Momchil Velikov <velco@fadata.bg>.
9358 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9359 to match <arpa/inet.h> declaration.
9360 * inet/inet_netof.c (inet_netof): Likewise.
9361 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9362 Reported by Momchil Velikov <velco@fadata.bg>.
9364 * configure.in: Skip AUTOCONF check under --without-cvs.
9365 * configure: Regenerated.
9367 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9368 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9369 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9371 2002-11-24 Andreas Schwab <schwab@suse.de>
9373 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9376 2002-11-19 Jim Meyering <jim@meyering.net>
9378 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9380 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9382 2002-11-23 Roland McGrath <roland@redhat.com>
9384 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9385 Just produce hex output for datum sizes.
9387 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9388 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9390 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9392 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9393 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9394 and __unused3 fields.
9395 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9396 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9397 and __unused2 fields.
9398 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9399 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9400 __unused3, and __unused4 fields.
9402 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9403 obtain lowest address for profiling in __monstartup call.
9405 2002-11-21 Roland McGrath <roland@redhat.com>
9407 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9408 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9410 * locale/localeinfo.h (struct locale_data): Revert last change.
9412 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9413 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9415 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9416 __NR_pread64 if not defined.
9417 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9418 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9420 2002-11-21 Roland McGrath <roland@frob.com>
9422 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9423 __libc_multiple_libcs here. Call __setfpucw.
9425 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9427 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9429 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9430 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9431 CLONE_CHILD_*TID flags.
9433 2002-11-20 Andreas Jaeger <aj@suse.de>
9435 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9436 We pass struct ucontext on x86-64.
9438 (GET_FRAME): Adjust.
9439 (GET_STACK): Adjust.
9441 2002-11-20 Roland McGrath <roland@redhat.com>
9443 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9444 conditionalize [! DO_VERSIONING] #error.
9446 * scripts/abilist.awk: Grok function descriptor symbols.
9448 * intl/tst-gettext.c (main): Check return values from setlocale.
9449 Add necessary unsetenv's to make LANG=existing-locale check work.
9451 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9452 so aborted prior runs don't confuse things.
9454 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9455 Use uintptr_t instead of unsigned int for `word' member.
9456 (_NL_CURRENT_WORD): Cast to uint32_t.
9458 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9461 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9463 * elf/tls-macros.h: Add IA-64 definitions.
9464 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9466 * iconv/Makefile (tests): Add tst-iconv4.
9467 * iconv/tst-iconv4.c: New file.
9469 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9470 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9471 __GCONV_INCOMPLETE_INPUT.
9472 (ucs4le_internal_loop): Likewise.
9473 (ucs4le_internal_loop_unaligned): Likewise.
9474 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9475 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9476 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9478 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9481 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9482 * sysdeps/posix/getaddrinfo.c: Likewise.
9484 * include/alloca.h (extend_alloca): New define. Based on stack
9485 direction it'll try to append to the previouls allocated buffer.
9487 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9489 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9490 use the same service for AF_INET and AF_INET6.
9492 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9494 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9495 of stack space instead of 16k.
9497 2002-11-18 Wolfram Gloger <wg@malloc.de>
9500 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9501 nothing if not initialized. Bug report from Marcus Brinkmann
9502 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9504 2002-11-19 Roland McGrath <roland@redhat.com>
9506 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9509 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9510 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9511 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9512 * configure: Regenerated.
9514 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9516 * include/dlfcn.h: __libc_dlopen is now a macro calling
9517 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9518 (__libc_dlopen_mode): New prototype.
9519 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9520 new parameter. Store new parameter in mode field of structure passed
9522 (struct do_dlopen_args): Add new field mode.
9523 (do_dlopen): Pass mode from parameter structure to _dl_open.
9525 2002-11-11 Randolf Chung <tausq@debian.org>
9527 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9528 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9529 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9531 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9533 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9534 Set -mdisable-fpregs for this file.
9536 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9538 * sysdeps/unix/sysv/linux/configure.in:
9539 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9540 from gcc-3.0 era for backwards compatibility.
9541 * sysdeps/unix/sysv/linux/configure: Regenerate.
9543 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9544 Define mcontext_t as a sigcontext.
9546 2002-11-18 Roland McGrath <roland@redhat.com>
9548 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9549 Free memory in `last_result' if it was used.
9551 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9552 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9553 Do the parsing inline instead of copying strings and calling
9554 inet_network, and properly skip all alias names not matching the form.
9556 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9558 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9560 * manual/pattern.texi (Wordexp Example): Fix sample code.
9562 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9563 childs stack which will be loaded into the %esi register.
9565 2002-11-14 Paul Eggert <eggert@twinsun.com>
9567 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9568 overflow when skipping the question part and when unpacking aliases.
9570 2002-11-15 Roland McGrath <roland@redhat.com>
9572 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9573 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9574 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9576 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9578 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9579 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9581 2002-11-15 Roland McGrath <roland@redhat.com>
9583 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9584 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9585 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9586 (+make-include-of-dep): New canned sequence.
9588 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9589 From Dmitry V. Levin <ldv@altlinux.org>.
9591 2002-11-14 Roland McGrath <roland@redhat.com>
9593 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9594 * inet/herrno.c (__libc_h_errno): Likewise.
9595 * resolv/res_libc.c (__libc_res): Likewise.
9596 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9597 (__res_state) [! USE___THREAD]: Don't define as weak.
9598 * csu/Versions: Revert last change.
9599 * resolv/Versions: Revert last change.
9601 * Makerules ($(common-objpfx)%.make): New pattern rule.
9602 * tls.make.c: New file.
9603 * Makefile (distribute): Add it.
9605 * sysdeps/generic/errno.c [! USE___THREAD]
9606 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9607 with compat_symbol so they are not link-time visible.
9608 [! USE___THREAD] (__libc_errno): New alias for errno.
9609 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9610 Add __libc_errno here.
9611 * inet/herrno.c [USE___THREAD]: Use this conditional
9612 in place of [USE_TLS && HAVE___THREAD].
9613 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9614 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9616 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9617 * resolv/res_libc.c [! USE___THREAD]
9618 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9619 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9620 (__libc_res): Define as alias for _res.
9621 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9622 Add __libc_h_errno and __libc_res here.
9624 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9626 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9627 * resolv/Versions (h_errno, _res): Likewise.
9629 2002-11-14 Roland McGrath <roland@redhat.com>
9631 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9632 (%.symlist): Likewise.
9634 2002-11-13 Roland McGrath <roland@redhat.com>
9636 * scripts/abilist.awk: New file.
9637 * Makefile (distribute): Add it.
9638 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9639 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9640 [$(subdir) = elf] (tests): Depend on libc.symlist.
9641 (generated, common-generated): Add those files.
9643 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9644 * configure: Regenerated.
9645 * config.make.in (OBJDUMP): New variable, substituted by configure.
9647 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9648 (mallochook, reallochook): Set them up.
9649 (checkhdr): Check HDR->magic2 value.
9650 (freehook): Reset HDR->magic2.
9651 (memalignhook): New static function.
9652 (old_memalign_hook): New static variable.
9653 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9655 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9658 2002-11-13 Andreas Jaeger <aj@suse.de>
9660 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9662 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9664 2002-11-11 Paul Eggert <eggert@twinsun.com>
9666 * manual/crypt.texi (Cryptographic Functions): Mention that
9667 the MD5 one-way algorithm is compatible with BSD's.
9669 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9671 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9673 (re_string_reconstruct): Calculate the context by itself when the
9674 offset points out of the valid range.
9675 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9676 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9677 (IS_WIDE_WORD_CHAR): New macro.
9678 (IS_WIDE_NEWLINE): New macro.
9680 2002-11-12 Andreas Jaeger <aj@suse.de>
9682 * sysdeps/x86_64/strchr.S: Don't use one register for two
9683 purposes, this fixes a bug noticed by test-strchr.c.
9685 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9688 2002-11-12 Roland McGrath <roland@redhat.com>
9690 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9691 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9693 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9694 instead of <pt-machine.h>.
9695 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9697 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9699 2002-11-10 Roland McGrath <roland@redhat.com>
9701 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9702 Call fputs instead of fwprintf (simpler to follow in debugger).
9704 * crypt/md5-crypt.c: Doc fix.
9706 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9707 the beginning of generated target commands.
9709 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9710 dependencies for these in case implicit rule search skipped the
9711 nonexistent source directory.
9712 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9713 files with $(object-suffixes) as targets too.
9714 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9715 and a target for it using $(make-target-directory).
9717 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9719 2002-11-10 Roland McGrath <roland@frob.com>
9721 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9722 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9724 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9725 l_start == 0 and l_len == 1 as we do l_len == 0.
9727 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9729 * po/da.po: Update from translation team.
9731 2002-11-10 Roland McGrath <roland@redhat.com>
9733 * config.make.in (includedir): New variable, substituted by configure.
9734 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9735 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9737 2002-11-10 Andreas Jaeger <aj@suse.de>
9739 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9740 REG_OLDMASK and REG_CR2 to synch with kernel header.
9743 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9745 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9746 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9747 (__nss_setent): Likewise.
9748 (__nss_getent_r): Likewise.
9749 * inet/getnetgrent_r.c (innetgr): Likewise.
9750 (__internal_setnetgrent_reuse): Likewise.
9751 (internal_getnetgrent_r): Likewise.
9752 * inet/ether_hton.c (ether_hostton): Likewise.
9753 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9754 * sunrpc/netname.c (netname2user): Likewise.
9755 * sunrpc/publickey.c (getpublickey): Likewise.
9756 (getsecretkey): Likewise.
9758 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9760 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9761 error in range calculation.
9763 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9765 * string/test-strspn.c (do_test): Ensure zero termination.
9766 * string/test-strpbrk.c (do_test): Likewise.
9767 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9768 * string/test-strncpy.c (stupid_strncpy): Likewise.
9769 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9771 2002-10-08 Roland McGrath <roland@redhat.com>
9773 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9776 2002-09-22 H.J. Lu <hjl@gnu.org>
9778 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9779 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9780 only if __NR_mmap2 is defined.
9782 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9783 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9784 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9785 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9787 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9789 * posix/bug-regex13.c (tests): Add new test.
9791 * string/test-strchr.c (stupid_strchr): New function.
9792 (do_random_tests): Make sure the string is zero terminated.
9793 * string/test-strpbrk.c (stupid_strpbrk): New function.
9794 (do_random_tests): Make sure the string is zero terminated.
9795 * string/test-strcmp.c (stupid_strcmp): New function.
9796 (do_random_tests): Make sure the strings are zero terminated.
9797 * string/test-strspn.c (stupid_strspn): New function.
9798 (simple_strspn): Rename rej argument to acc.
9799 (do_random_tests): Make sure the string is zero terminated.
9800 * string/test-strcspn.c (stupid_strcspn): New function.
9801 * string/test-strncpy.c (stupid_strncpy): New function.
9802 * string/test-stpncpy.c (stupid_stpncpy): New function.
9803 * string/test-strncmp.c (stupid_strncmp): New function.
9804 (do_random_tests): Make sure the strings are zero terminated.
9805 * string/test-string.h (impl_t): Change test into long.
9806 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9808 2002-11-08 Roland McGrath <roland@redhat.com>
9810 * sysdeps/ia64/elf/configure.in: Add TLS check.
9811 From Ian Wienand <ianw@cse.unsw.edu.au>.
9812 * sysdeps/ia64/elf/configure: Regenerated.
9814 2002-11-07 Roland McGrath <roland@redhat.com>
9816 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9817 place of _IO_new_do_write.
9818 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9819 #undef before versioned_symbol use.
9821 2002-11-07 Richard Henderson <rth@redhat.com>
9823 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9824 * configure: Regenerated.
9825 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9826 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9827 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9828 _dl_fini via gp-relative relocations.
9829 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9831 * elf/tls-macros.h: Add alpha versions.
9832 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9833 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9834 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9835 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9836 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9837 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9838 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9839 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9840 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9841 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9842 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9843 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9844 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9845 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9846 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9847 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9848 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9849 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9851 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9852 Kill argument registers across the inline syscall.
9854 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9856 * linuxthreads/sysdeps/alpha/tls.h: New file.
9857 * sysdeps/alpha/dl-tls.h: New file.
9859 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9861 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9862 (gmon_initializer): New function.
9863 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9864 __gmon_start__ here. Call it from gmon_initializer() instead.
9866 2002-03-12 H.J. Lu <hjl@gnu.org>
9868 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9869 tst-array2, and tst-array3.
9870 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9871 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9872 ($(objpfx)tst-array1.out): New target.
9873 ($(objpfx)tst-array2): Likewise.
9874 ($(objpfx)tst-array2.out): Likewise.
9875 ($(objpfx)tst-array3.out): Likewise.
9876 * elf/tst-array1.c: New file.
9877 * elf/tst-array1.exp: Likewise.
9878 * elf/tst-array2.c: Likewise.
9879 * elf/tst-array2dep.c: Likewise.
9880 * elf/tst-array2.exp: Likewise.
9881 * elf/tst-array3.c: Likewise.
9883 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9885 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9886 Don't add L->l_addr to array entry values.
9888 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9890 * string/test-string.h: New file.
9891 * string/test-strlen.c: New file.
9892 * string/test-string.h: New file.
9893 * string/test-strcmp.c: New file.
9894 * string/test-strchr.c: New file.
9895 * string/test-strrchr.c: New file.
9896 * string/test-strcpy.c: New file.
9897 * string/test-stpcpy.c: New file.
9898 * string/test-strncpy.c: New file.
9899 * string/test-stpncpy.c: New file.
9900 * string/test-strpbrk.c: New file.
9901 * string/test-strcspn.c: New file.
9902 * string/test-strspn.c: New file.
9903 * string/test-strcat.c: New file.
9904 * string/test-strncmp.c: New file.
9905 * string/test-memchr.c: New file.
9906 * string/test-memcmp.c: New file.
9907 * string/test-memset.c: New file.
9908 * string/test-memcpy.c: New file.
9909 * string/test-mempcpy.c: New file.
9910 * string/test-memmove.c: New file.
9911 * string/Makefile (strop-tests): New variable.
9912 (tests): Add strop-tests.
9913 (distribute): Add test-string.h.
9915 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9917 * posix/regcomp.c: Use tabs instead of spaces.
9918 * posix/regexec.c: Likewise.
9919 * posix/regex_internal.h: Likewise.
9921 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9923 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9925 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9927 (regcomp): Don't set can_be_null here.
9928 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9929 (re_compile_internal): Clear can_be_null, set regs_allocated.
9931 * posix/regcomp.c (re_set_fastmap): New function.
9932 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9933 COMPLEX_BRACKET check.
9934 * posix/regexec.c (re_search_internal): Optimize searching with
9935 fastmap. Call re_string_reconstruct even if match_first is
9936 smaller than raw_mbs_idx.
9938 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9940 * posix/regcomp (free_dfa_content): Use free_state.
9941 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9942 pointers in case that realloc failed.
9943 (re_node_set_merge): Likewise.
9944 (register_state): Likewise.
9945 (create_newstate_common): Invoke memory release functions in case of
9947 (create_ci_newstate): Likewise.
9948 (create_cd_newstate): Likewise.
9949 (free_state): New function.
9950 * posix/regexec.c (re_search_internal): Invoke memory release
9951 functions in case of error conditions.
9952 (sift_states_backward): Likewise.
9953 (merge_state_array): Likewise.
9954 (add_epsilon_src_nodes): Likewise.
9955 (sub_epsilon_src_nodes): Likewise.
9956 (search_subexp): Likewise.
9957 (sift_states_bkref): Likewise.
9958 (transit_state_sb): Likewise.
9959 (transit_state_mb): Likewise.
9960 (transit_state_bkref_loop): Likewise.
9961 (group_nodes_into_DFAstates): Likewise.
9962 (push_fail_stack): Don't edit pointers in case that realloc failed.
9963 (extend_buffers): Likewise.
9964 (match_ctx_add_entry): Likewise.
9966 2002-11-06 Roland McGrath <roland@redhat.com>
9968 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9969 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9971 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9972 * configure: Regenerated.
9974 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9976 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9977 If re_compile_internal failed free fastmap buffer.
9978 (free_dfa_content): Broken out of regfree function. Frees all dfa
9980 (regfree): Add free_dfa_content.
9981 (re_compile_internal): If any of the called functions fails free
9982 all dfa related memory.
9984 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9986 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9987 warnings from the kernel headers.
9989 2002-11-05 Roland McGrath <roland@redhat.com>
9991 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9992 From Johannes Stezenbach <js@convergence.de>.
9994 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9995 #errlist-compat magic comment to give 123 as size.
9996 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9997 (libc: GLIBC_2.2): ... here.
9998 (libc: GLIBC_2.3): Likewise.
10000 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10002 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
10003 which happens at the beginning so that we can unload modules in
10006 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10008 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
10009 under [__USE_MISC || _ASM].
10011 * elf/elf.h: Remove the obsolete SH TLS relocations.
10013 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10015 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
10017 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
10020 __NR_pread64 and __NR_pwrite64.
10021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10022 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
10024 Revert change to use INLINE_SYSCALL.
10025 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10026 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10027 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10028 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
10030 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
10033 Update clobber list and add a comment about the syscall ABI.
10035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
10036 s_pwrite64, s_ftruncate, s_truncate): Re-add.
10038 2002-11-05 Jakub Jelinek <jakub@redhat.com>
10040 * iconv/gconv_dl.c (free_mem): Clear loaded.
10041 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
10044 2002-11-05 Ulrich Drepper <drepper@redhat.com>
10046 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
10048 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
10049 as old code without locking. _IO_seekoff calls this function after
10050 locking the stream.
10051 * libio/ioseekpos.c: Likewise for _IO_seekpos.
10052 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
10053 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
10055 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
10056 of _IO_seekoff_internal.
10057 (_IO_rewind): Likewise.
10058 * libio/ioftell.c: Likewise.
10059 * libio/ftello.c: Likewise.
10060 * libio/ftello64.c: Likewise.
10061 * libio/iofgetpos.c: Likewise.
10062 * libio/iofgetpos64.c: Likewise.
10063 * libio/oldiofgetpos.c: Likewise.
10064 * libio/oldiofgetpos64.c: Likewise.
10065 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
10066 _IO_seekpos_internal.
10067 * libio/iofsetpos64.c: Likewise.
10068 * libio/oldiofsetpos.c: Likewise.
10069 * libio/oldiofsetpos64.c: Likewise.
10071 2002-11-04 Roland McGrath <roland@redhat.com>
10073 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
10074 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
10075 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
10076 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
10077 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10078 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10079 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10080 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
10081 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
10082 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
10083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
10084 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
10085 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
10086 Remove these, no longer used.
10088 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
10091 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
10092 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
10093 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
10094 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
10095 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
10098 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
10099 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10100 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
10102 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10103 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
10105 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10107 2002-11-03 Roland McGrath <roland@redhat.com>
10109 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
10110 `_dl_tls_static_used'.
10111 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
10112 (__libc_setup_tls): Initialize it. Let the initial value of
10113 _dl_tls_static_size indicate some surplus space in the computed value.
10114 * elf/dl-open.c (_dl_tls_static_size): New variable.
10115 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
10116 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
10117 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
10118 (CHECK_STATIC_TLS): Use it.
10119 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
10120 closed objects occupied a trailing contiguous chunk of static TLS area.
10122 2002-10-18 Bruno Haible <bruno@clisp.org>
10124 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
10126 2002-11-04 Ulrich Drepper <drepper@redhat.com>
10128 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
10129 _wide_data->_IO_read_end if adjustment can be made in the current
10132 * sysdeps/unix/sysv/linux/fexecve.c: New file.
10134 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
10135 wide oriented streams are used.
10137 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
10138 service hasn't been used [PR libc/4744].
10140 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
10141 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
10143 * manual/examples/dir.c: Don't include <stddef.h>.
10144 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
10145 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
10147 2002-11-02 H.J. Lu <hjl@gnu.org>
10149 * stdio-common/reg-printf.c: Include <stddef.h>.
10151 2002-11-03 Ulrich Drepper <drepper@redhat.com>
10153 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
10155 * po/ca.po: Update from translation team.
10156 * po/es.po: Likewise.
10158 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
10159 is defined write out memory map.
10160 * sysdeps/unix/sysv/linux/segfault.c: New file.
10162 2002-11-02 Roland McGrath <roland@redhat.com>
10164 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
10165 pointers that can alias.
10166 Reported by Daniel Jacobowitz <drow@mvista.com>.
10168 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
10170 2002-11-02 Roland McGrath <roland@redhat.com>
10172 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
10173 description to be clearer and to say that *RESULT is set to ENTRY.
10175 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10177 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10178 dests_ch arrays together. Alloca or malloc dest_states,
10179 dest_states_word and dest_states_nl arrays together. Free memory on
10182 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10184 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10185 and current_saltbits.
10187 2002-11-02 Roland McGrath <roland@redhat.com>
10189 * stdio-common/reg-printf.c: Include <stdlib.h>.
10191 2002-11-02 H.J. Lu <hjl@gnu.org>
10193 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10194 caller to EXTRA instead of execve.
10196 2002-11-01 Roland McGrath <roland@redhat.com>
10198 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10199 in place of [!(USE_TLS && HAVE___THREAD)].
10200 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10202 2002-10-31 Roger Sayle <roger@eyesopen.com>
10204 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10206 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10208 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10209 without defining FP_ROUNDMODE.
10211 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10213 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10214 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10216 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10217 (OLD_SIGLIST_SIZE): Define.
10218 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10219 (OLD_SIGLIST_SIZE): Define.
10220 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10222 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10224 * sysdeps/ia64/strncpy.S: Fix recovery code.
10226 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10228 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10230 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10232 * elf/dl-libc.c (free_mem): Likewise.
10233 * iconv/gconv_conf.c (free_mem): Likewise.
10234 * iconv/gconv_db.c (free_mem): Likewise.
10235 * iconv/gconv_dl.c (free_mem): Likewise.
10236 * iconv/gconv_cache.c (free_mem): Likewise.
10237 * intl/finddomain.c (free_mem): Likewise.
10238 * intl/dcigettext.c (free_mem): Likewise.
10239 * locale/setlocale.c (free_mem): Likewise.
10240 * misc/fstab.c (fstab_free): Likewise.
10241 * nss/nsswitch.c (free_mem): Likewise.
10242 * posix/regcomp.c (free_mem): Likewise.
10243 * resolv/gai_misc.c (free_res): Likewise.
10244 * stdlib/fmtmsg.c (free_mem): Likewise.
10245 * sunrpc/clnt_perr.c (free_mem): Likewise.
10246 * sysdeps/generic/setenv.c (free_mem): Likewise.
10247 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10248 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10249 * time/tzset.c (free_mem): Likewise.
10250 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10251 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10252 * malloc/set-freeres.c (__libc_freeres): Likewise.
10254 * login/getutent.c: Include stdlib.h instead of stddef.h.
10255 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10256 (__getutent): Allocate buffer the first time it is run.
10257 * login/getutid.c: Include stdlib.h instead of stddef.h.
10258 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10259 (__getutid): Allocate buffer the first time it is run.
10260 * login/getutline.c: Include stdlib.h instead of stddef.h.
10261 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10262 (__getutline): Allocate buffer the first time it is run.
10263 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10264 (mtrace): Allocate malloc_trace_buffer.
10265 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10266 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10267 * string/strerror.c: Include libintl.h and errno.h.
10268 (buf): New variable.
10269 (strerror): Only allocate buffer if actually needed (unknown error).
10270 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10273 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10275 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10276 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10278 (__libc_freeres): Free all pointers in that section.
10279 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10280 commands when creating .lds script.
10281 (LDSEDCMD-c.so): New variable.
10282 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10283 (rcmd_af): Use strdup to allocate ahostbuf.
10284 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10285 (rexec_af): Use strdup to allocate ahostbuf.
10286 * stdio-common/reg-printf.c (printf_funcs): Remove.
10287 (__printf_arginfo_table): Change into printf_arginfo_function **.
10288 Add libc_freeres_ptr.
10289 (__register_printf_function): Allocate __printf_arginfo_table
10290 and __printf_function_table the first time it is called.
10291 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10292 printf_arginfo_function **.
10293 (parse_one_spec): Add __builtin_expect.
10294 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10295 (free_mem): Remove.
10296 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10297 (free_mem): Remove.
10298 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10299 (string_space, map): Add libc_freeres_ptr.
10300 (free_mem): Remove.
10301 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10302 (free_mem): Remove.
10303 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10304 (free_mem): Remove.
10305 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10306 (buffer): Add libc_freeres_ptr.
10307 (free_mem): Remove for _LIBC.
10308 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10309 (free_mem): Remove.
10310 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10311 (free_mem): Remove.
10312 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10313 (free_mem): Remove.
10314 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10315 (free_mem): Remove.
10316 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10317 (free_mem): Remove.
10318 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10319 (free_mem): Remove.
10320 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10322 (free_mem): Remove.
10323 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10325 (free_mem): Remove.
10327 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10329 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10330 instead of duplicating the whole function in libc.
10332 2002-10-31 Roland McGrath <roland@redhat.com>
10334 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10335 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10337 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10339 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10340 32bit-predefine when creating .new32 list and -U for each
10341 32bit-predefine when creating .new64 list.
10342 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10344 2002-10-29 Andreas Schwab <schwab@suse.de>
10346 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10347 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10349 2002-10-25 Roland McGrath <roland@redhat.com>
10351 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10352 * sysdeps/unix/sysv/linux/configure: Regenerated.
10354 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10355 _dl_starting_up decl.
10357 2002-10-20 H.J. Lu <hjl@gnu.org>
10359 * sysdeps/unix/sysv/linux/configure.in: Don't check
10360 /lib/modules/`uname -r`/build/include for kernel headers if
10362 * sysdeps/unix/sysv/linux/configure: Regenerated.
10364 2002-10-25 Roland McGrath <roland@redhat.com>
10366 * math/math.h (M_LOG2El): Correct the value.
10367 From Stephen L Moshier <steve@moshier.net>.
10369 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10370 conditional from __libc_multiple_libcs access. Remove kludge for weak
10371 symbol access with old compilers we no longer support.
10372 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10373 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10375 2002-10-25 Roland McGrath <roland@redhat.com>
10377 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10378 implement SV_RESETHAND by translating it to SA_RESETHAND.
10380 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10382 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10383 type on ELF64 platforms.
10385 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10387 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10389 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10391 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10393 * elf/dl-misc.c: Include <sysdep.h>.
10394 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10396 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10397 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10398 (INLINE_SYSCALL): Use that.
10399 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10400 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10401 (INLINE_SYSCALL): Use that.
10402 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10403 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10404 (INLINE_SYSCALL): Use that.
10405 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10407 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10408 (__INTERNAL_SYSCALL_STRING): Define.
10409 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10411 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10412 (__INTERNAL_SYSCALL_STRING): Define.
10413 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10414 __SYSCALL_STRING to inline_syscall*.
10415 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10417 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10418 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10421 2002-10-24 Roland McGrath <roland@redhat.com>
10423 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10424 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10425 * sysdeps/powerpc/elf/libc-start.c: Or here.
10426 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10427 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10428 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10429 * sysdeps/generic/libc-start.c: Or here.
10430 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10431 access with [! SHARED].
10432 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10434 * libio/bug-wfflush.c: New file.
10435 * libio/Makefile (tests): Add bug-wfflush.
10437 2002-10-23 Roland McGrath <roland@redhat.com>
10439 * stdio-common/tst-fphex.c: New file.
10440 * stdio-common/Makefile (tests): Add tst-fphex.
10441 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10442 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10443 chars always before the value digits.
10444 Reported by James Antill <james.antill@redhat.com>.
10446 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10448 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10449 (free_mem): New function.
10450 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10451 if not cross compiling.
10452 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10453 (bug-regex14-ENV): Set.
10454 (bug-regex14-mem): New target.
10455 * posix/bug-regex14.c: New file.
10457 2002-10-23 Roland McGrath <roland@redhat.com>
10459 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10460 target, so we don't touch it when the link fails.
10462 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10463 Check for the result overflowing off_t and fail with EOVERFLOW.
10464 * libio/ioftell.c (_IO_ftell): Likewise.
10465 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10467 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10468 use a temporary timeval on the stack for gettimeofday and copy it.
10469 * login/logout.c (logout): Likewise.
10470 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10472 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10473 Use __SWORD_TYPE instead of int for member types.
10474 (struct statfs64): Likewise.
10475 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10476 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10477 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10478 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10479 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10481 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10482 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10483 (ST_NODIRATIME): Restore fixed value of 2048.
10484 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10485 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10487 Rearranged <bits/types.h> definitions to reduce duplication.
10488 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10489 <bits/wordsize.h> and new header <bits/typesizes.h>.
10490 * posix/Makefile (headers): Add bits/typesizes.h here.
10491 * sysdeps/generic/bits/typesizes.h: New file.
10492 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10493 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10494 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10495 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10496 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10497 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10498 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10499 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10500 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10501 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10502 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10503 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10504 * signal/signal.h: Likewise.
10506 * streams/stropts.h: Include <bits/xtitypes.h>.
10507 * streams/Makefile (headers): Add bits/xtitypes.h here.
10508 * sysdeps/generic/bits/xtitypes.h: New file.
10509 * sysdeps/s390/bits/xtitypes.h: New file.
10510 * sysdeps/ia64/bits/xtitypes.h: New file.
10511 * sysdeps/x86_64/bits/xtitypes.h: New file.
10513 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10514 * sysdeps/generic/bits/ipctypes.h: New file.
10515 * sysdeps/mips/bits/ipctypes.h: New file.
10516 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10517 * sysdeps/gnu/bits/msq.h: Likewise.
10518 * sysvipc/sys/ipc.h: Likewise.
10520 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10522 * elf/dl-load.c (struct filebuf): For buf element to have the
10523 alignment of ElfXX_Ehdr since this is what will be stored in it.
10525 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10527 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10528 into pointer to locrec_offset.
10529 (add_locale_to_archive): Adjust callers. Free normalized_name right
10530 before returning, not immediately after add_locale, pass it to
10531 add_alias if not NULL instead of name. Rename second normalized_name
10532 occurence to nnormalized_codeset_name.
10534 * locale/programs/locarchive.c (enlarge_archive): Make sure
10535 string_size is always a multiple of 4.
10536 Reported by Andreas Schwab <schwab@suse.de>.
10538 2002-10-21 Andreas Schwab <schwab@suse.de>
10540 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10541 caller to EXTRA instead of execve, since the latter has a
10542 higher-priority implementation in linuxthreads.
10544 2002-10-21 Roland McGrath <roland@redhat.com>
10546 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10547 slotinfo list's len member to the proper size, not just 1.
10548 Initialize static_map.l_tls_initimage.
10550 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10551 dtv_slotinfo_list element containing new modules' l_tls_modid.
10553 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10554 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10555 * elf/Makefile (tests): Add tst-tls9.
10556 (tests-static): Add tst-tls9-static.
10557 (tst-tls9-static-ENV): New variable.
10558 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10560 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10561 modids used by partially loaded modules being closed can't be known.
10563 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10565 * posix/Makefile: Add a test case for the bug reported by Aharon
10566 Robbins <arnold@skeeve.com>.
10567 * posix/bug-regex13.c: New file.
10568 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10570 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10572 * csu/gmon-start.c: Pretty printing.
10574 2002-10-19 Art Haas <ahaas@neosoft.com>
10576 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10577 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10578 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10579 * configure: Regenerated.
10581 2002-10-19 Roland McGrath <roland@redhat.com>
10583 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10584 and then set $subdirs directly, because the new Autoconf breaks
10585 compatibility in every way imaginable and insists on whining
10586 about usage that worked since the dawn of time.
10587 * configure: Regenerated.
10589 * configure: Regenerated (using Autoconf 2.54).
10590 * sysdeps/alpha/elf/configure: Likewise.
10591 * sysdeps/generic/configure: Likewise.
10592 * sysdeps/i386/elf/configure: Likewise.
10593 * sysdeps/ia64/elf/configure: Likewise.
10594 * sysdeps/mach/hurd/configure: Likewise.
10595 * sysdeps/mach/configure: Likewise.
10596 * sysdeps/unix/configure: Likewise.
10597 * sysdeps/unix/common/configure: Likewise.
10598 * sysdeps/unix/sysv/aix/configure: Likewise.
10599 * sysdeps/unix/sysv/linux/configure: Likewise.
10600 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10601 * sysdeps/x86_64/elf/configure: Likewise.
10603 * config.make.in: Nix completely-soft nonsense.
10604 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10605 of machine directories instead of fpu subdirectory.
10606 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10607 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10608 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10609 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10610 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10611 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10612 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10613 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10614 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10615 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10616 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10617 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10618 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10619 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10620 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10621 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10622 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10623 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10624 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10625 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10626 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10627 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10628 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10629 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10630 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10631 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10632 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10633 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10634 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10635 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10636 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10637 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10638 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10639 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10640 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10641 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10642 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10643 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10644 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10645 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10647 2002-10-19 Bruno Haible <bruno@clisp.org>
10649 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10651 2002-10-18 Roland McGrath <roland@redhat.com>
10653 * io/Makefile (routines): Add lchmod.
10654 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10655 * sysdeps/generic/lchmod.c: New file.
10656 * sysdeps/mach/hurd/lchmod.c: New file.
10657 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10659 2002-10-18 Art Haas <ahaas@neosoft.com>
10661 * configure.in: Remove remaining AC_FD_CC macros, and replace
10662 AC_FD_MSG with AS_MESSAGE_FD.
10664 2002-10-18 Roland McGrath <roland@redhat.com>
10666 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10667 typos: VALUE -> FINALADDR.
10669 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10670 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10671 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10672 (inline_syscall6): Move these macros ...
10673 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10675 * configure.in (libc_link_dests, libc_link_sources): Remove these
10676 variables and the AC_LINK_FILES call.
10678 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10679 change to put new symbols here instead of in GLIBC_2.2.
10680 * sysdeps/powerpc/Subdirs: Move this file ...
10681 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10683 2002-10-07 Roland McGrath <roland@redhat.com>
10685 * sysdeps/generic/bits/time.h: Replaced with contents of the
10686 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10687 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10688 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10689 macros is ok even for architectures that don't now implement them.
10690 * sysdeps/mach/hurd/bits/time.h: File removed.
10691 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10692 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10693 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10694 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10695 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10697 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10699 * configure.in: Replace obsolete AC_OUTPUT syntax with
10700 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10702 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10703 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10705 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10706 * sysdeps/alpha/elf/configure.in: Likewise.
10707 * sysdeps/i386/elf/configure.in: Likewise.
10708 * sysdeps/mach/hurd/configure.in: Likewise.
10709 * sysdeps/x86_64/elf/configure.in: Likewise.
10711 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10713 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10714 * sysdeps/generic/configure.in: Likewise.
10715 * sysdeps/i386/elf/configure.in: Likewise.
10716 * sysdeps/ia64/elf/configure.in: Likewise.
10717 * sysdeps/mach/configure.in: Likewise.
10718 * sysdeps/mach/hurd/configure.in: Likewise.
10719 * sysdeps/unix/configure.in: Likewise.
10720 * sysdeps/unix/common/configure.in: Likewise.
10721 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10722 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10723 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10724 * sysdeps/x86_64/elf/configure.in: Likewise.
10726 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10727 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10728 that it's obvious when extra autoconf machinery is being dragged in.
10730 2002-10-18 Roland McGrath <roland@redhat.com>
10732 * configure.in: Remove bogus echo included in
10733 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10734 * configure: Regenerated.
10736 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10738 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10739 (statfs_filesize_max): New function.
10740 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10741 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10742 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10743 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10744 statfs_filesize_max.
10745 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10746 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10747 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10749 2002-10-17 Roland McGrath <roland@redhat.com>
10751 * configure.in (MIG): Just AC_SUBST it here.
10752 * configure: Regenerated.
10753 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10754 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10755 * sysdeps/mach/configure: Regenerated.
10757 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10758 and AC_PROVIDE([_AS_CR_PREPARE]).
10760 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10761 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10763 * elf/dl-support.c: Move _dl_tls_* variables to ...
10764 * sysdeps/generic/libc-tls.c: ... here.
10766 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10767 allow IDX to be one past the current last slotinfo entry.
10768 (_dl_close): Pass IMAP->l_init_called for that parameter.
10770 2002-10-07 Andreas Schwab <schwab@suse.de>
10772 * aclocal.m4: Fix for autoconf 2.53.
10773 * configure.in: Likewise. Require autoconf 2.53.
10775 2002-10-08 Richard Henderson <rth@redhat.com>
10777 * soft-fp/op-4.h: Handle carry correctly in
10778 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10779 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10780 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10782 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10784 * configure.in: Compute completely-soft.
10785 * config.make.in: Make completely-soft available to sub-makes.
10786 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10787 gcc-double-routines. Add sim-full.c. Add fenv_const and
10788 fe_nomask to libm-support.
10789 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10790 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10791 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10792 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10793 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10794 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10795 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10796 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10797 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10798 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10799 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10800 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10801 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10802 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10803 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10804 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10805 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10806 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10807 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10808 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10810 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10811 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10812 FP_HANDLE_EXCEPTIONS.
10813 Define FP_ROUNDMODE.
10814 Redefine FP_* macros to correspond to the FE_* bit positions.
10815 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10816 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10817 __sim_round_mode, __simulate_exceptions.
10818 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10819 * sysdeps/powerpc/bits/fenv.h: ...to here.
10821 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10823 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10824 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10825 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10826 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10829 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10831 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10832 __libc_res_nsend): New prototypes.
10833 * resolv/res_query.c (QUERYSIZE): Define.
10834 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10835 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10836 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10837 res_nsend, pass answerp.
10838 (res_nquery): Changed into wrapper around __libc_res_nquery.
10839 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10840 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10841 instead of the non-__libc_ variants, pass them answerp.
10842 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10843 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10844 Added answerp argument. Call __libc_res_nquery instead of
10845 res_nquery, pass answerp.
10846 (res_nquerydomain): Changed into wrapper around
10847 __libc_res_nquerydomain.
10848 * resolv/res_send.c: Include sys/ioctl.h.
10849 (MAXPACKET): Define.
10850 (send_vc): Change arguments. Reallocate answer buffer if it is
10852 (send_dg): Likewise.
10853 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10854 Reallocate answer buffer if it is too small and hooks are in use.
10855 Adjust calls to send_vc and send_dg.
10856 (res_nsend): Changed into wrapper around __libc_res_nsend.
10857 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10858 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10860 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10861 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10862 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10863 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10864 (gethostbyaddr): Similarly with __libc_res_nquery.
10865 * resolv/Versions (libresolv): Export __libc_res_nquery and
10866 __libc_res_nsearch at GLIBC_PRIVATE.
10868 2002-10-17 Roland McGrath <roland@redhat.com>
10870 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10871 * configure: Regenerated.
10873 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10874 before performing the reloc, not after.
10875 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10877 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10879 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10880 * locale/programs/linereader.c (lr_open): Likewise.
10881 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10882 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10884 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10886 * posix/bug-regex11.c: Add a test case for the bug reported by
10887 Paolo Bonzini <bonzini@gnu.org>.
10888 * posix/regexec.c (sift_states_bkref): Use correct destination of
10889 the back reference.
10891 2002-10-17 Roland McGrath <roland@redhat.com>
10893 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10894 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10895 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10896 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10897 Call it after performing TPOFF relocs.
10898 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10899 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10900 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10902 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10903 when closing a partially-initialized object.
10905 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10906 instead of _dl_fatal_printf when we see PT_TLS.
10908 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10909 instead of $(libof-$<).
10911 2002-10-16 Roland McGrath <roland@redhat.com>
10913 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10914 instead of += to append, to be sure $(lib) gets expanded at defn time.
10915 (libof-$(cpp-src)): New variable, define this instead.
10916 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10917 (lib): Don't use override.
10918 (CPPFLAGS-$(lib)): New variable, put -D's here.
10919 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10920 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10921 LIB found by $(libof-*) for basename, target, or source.
10922 * Makerules (CPPFLAGS-nonlib): New variable.
10923 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10924 * locale/Makefile (lib): Likewise.
10925 * sunrpc/Makefile (lib): Likewise.
10927 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10928 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10929 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10930 (statfs_link_max): New function, guts from fpathconf.c.
10931 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10932 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10933 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10934 to use the linux/pathconf.c code by #include rather than duplication.
10935 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10937 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10939 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10940 Use __libc_errno only for libc itself.
10942 2002-10-16 Andreas Jaeger <aj@suse.de>
10944 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10946 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10948 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10949 Use __libc_errno only for libc itself.
10951 2002-10-15 Roland McGrath <roland@redhat.com>
10952 Jakub Jelinek <jakub@redhat.com>
10954 * sysdeps/unix/sysv/linux/Makefile
10955 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10956 sparc/Makefile to produce a bi-arch file as needed.
10957 That's now parameterized by the variable $(64bit-predefine).
10958 Use LC_ALL=C for `comm' commands in that rule.
10959 No longer conditional on [$(no_syscall_list_h)].
10960 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10961 (64bit-predefine): New variable.
10962 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10963 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10964 * sysdeps/unix/sysv/linux/powerpc/Makefile
10965 (64bit-predefine): New variable.
10967 2002-10-15 Roland McGrath <roland@redhat.com>
10969 * sysdeps/unix/sysv/linux/Makefile
10970 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10972 * login/utmp-private.h: Declare __libc_utmp_lock.
10973 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10974 and call __libc_utmp_jump_table functions directly, instead of using
10977 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10978 * sysdeps/unix/sysv/linux/configure: Regenerated.
10980 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10981 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10982 Use int32_t for ll_time.
10983 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10984 Use int32_t instead of long int for ut_session.
10985 Use an anonymous struct with 32-bit fields for ut_tv.
10986 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10987 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10988 here as in utmp.h for `struct utmp'.
10989 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10990 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10991 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10992 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10993 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10994 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10996 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10997 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10998 All the following files were identical or equivalent to it.
10999 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
11000 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
11001 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
11002 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
11003 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
11004 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
11005 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
11006 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
11007 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
11008 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
11010 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
11011 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
11012 Other than the previously incorrect sign of msg_iovlen, this is a
11013 no-op on 32-bit platforms. On 64-bit platforms it makes this header
11014 match their layouts as well, so the following are now identical to it.
11015 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
11016 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
11017 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
11018 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
11019 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
11021 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11023 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
11024 Define for 2.4+ kernels.
11026 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
11027 are known to have the vfork syscall. Don't confuse the CPUs
11028 branch prediction unit by jumping to the return address.
11030 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
11031 support for reiserfs and xfs.
11033 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
11035 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
11037 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
11039 2002-10-16 Jakub Jelinek <jakub@redhat.com>
11041 * include/libc-symbols.h (attribute_tls_model_ie): Define.
11042 * include/errno.h (errno): Define to __libc_errno in libc.so.
11043 Add attribute_tls_model_ie.
11044 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
11045 Add attribute_tls_model_ie.
11046 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
11047 attribute_tls_model_ie.
11048 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
11050 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
11052 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
11053 attribute_tls_model_ie.
11054 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
11056 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
11057 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
11058 __libc_errno in USE___THREAD case.
11059 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11061 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
11062 __attribute__((tls_model (""))).
11063 * configure: Rebuilt.
11064 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
11066 2002-10-15 Ulrich Drepper <drepper@redhat.com>
11068 * timezone/asia: Update from tzdata2002d.
11069 * timezone/australasia: Likewise.
11070 * timezone/iso3166.tab: Likewise.
11071 * timezone/southamerica: Likewise.
11072 * timezone/zone-tab: Likewise.
11074 2002-10-15 Roland McGrath <roland@redhat.com>
11076 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
11077 Adjust TCB pointer before calling free, so we get the whole block.
11079 2002-10-14 Roland McGrath <roland@redhat.com>
11081 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
11082 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
11083 extern using attribute_hidden instead of static, avoids warning.
11085 2002-10-09 Jakub Jelinek <jakub@redhat.com>
11087 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
11088 * sysdeps/unix/sysv/linux/configure: Rebuilt.
11090 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11092 * po/sv.po: Update from translation team.
11094 2002-10-12 H.J. Lu <hjl@gnu.org>
11096 * sunrpc/thrsvc.c (PROCQUIT): New.
11097 (struct rpc_arg): New.
11098 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
11099 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
11100 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
11101 (main): Modified for struct rpc_arg *.
11103 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11105 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
11107 2002-10-14 Jakub Jelinek <jakub@redhat.com>
11109 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
11110 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
11111 in ld.so even if __thread is supported.
11113 2002-10-13 Jakub Jelinek <jakub@redhat.com>
11115 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
11116 Add hack to prevent the compiler from clobbering the signal context.
11117 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
11119 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
11122 2002-10-14 Andreas Jaeger <aj@suse.de>
11124 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
11125 Guido Guenther <agx@sigxcpu.org>.
11127 2002-10-14 Ulrich Drepper <drepper@redhat.com>
11129 * po/sk.po: Update from translation team.
11131 2002-09-26 Roland McGrath <roland@redhat.com>
11133 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
11134 dynamic string tag.
11135 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
11136 DL_DST_LIB based on $(slibdir).
11138 2002-10-13 Roland McGrath <roland@frob.com>
11140 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
11142 * sysdeps/mach/hurd/getresuid.c: New file.
11143 * sysdeps/mach/hurd/getresgid.c: New file.
11144 * sysdeps/mach/hurd/setresuid.c: New file.
11145 * sysdeps/mach/hurd/setresgid.c: New file.
11147 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
11148 setresgid): Declare them.
11149 * NEWS: Mention it.
11151 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
11152 add libc_hidden_proto.
11153 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
11154 getresuid, getresgid, setresuid, setresgid here.
11155 * Versions.def (libc): Define GLIBC_2.3.2 set.
11156 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
11157 Add libc_hidden_def.
11158 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
11159 * sysdeps/generic/setresgid.c: New file.
11160 * sysdeps/generic/setresuid.c: New file.
11161 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11162 (sysdep_routines): Don't add getresuid and getresgid here.
11163 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
11164 (sysdep_routines): Don't add setresuid and setresgid here.
11165 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11166 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11167 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11168 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11169 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11170 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11171 * posix/Makefile (routines): Add them all here instead.
11172 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
11173 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
11174 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
11175 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
11176 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11177 [! __NR_setresuid]: Include generic file.
11178 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11179 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11180 [! __NR_setresuid]: Include generic file.
11181 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11182 Caller is - now, not EXTRA.
11183 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11184 (setresuid, setresgid, getresuid, getresgid): Likewise.
11185 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11186 Add these calls here.
11187 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11188 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11189 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11190 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11191 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11193 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11194 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11195 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11197 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11198 (sysdep_routines): Add setfsuid and setfsgid here.
11199 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11200 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11201 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11202 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11203 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11204 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11205 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11206 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11208 * hurd/errno.c: Renamed to ...
11209 * hurd/errno-loc.c: ... this.
11210 * hurd/Makefile (routines): errno -> errno-loc
11212 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11214 * po/de.po: Update from translation team.
11216 * MakeTAGS: Add -E flag to xgettext runs.
11218 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11220 * po/fr.po: Update from translation team.
11222 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11223 Optimize a bit for use in glibc.
11225 2002-10-12 Roland McGrath <roland@redhat.com>
11227 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11228 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11230 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11232 * po/sv.po: Update from translation team.
11234 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11236 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11238 (regfree): Likewise.
11239 (create_initial_state): Likewise.
11240 (analyze): Remove the substitutions which became useless.
11241 (calc_first): Likewise.
11242 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11243 epsilon destination.
11244 (duplicate_node_closure): New function.
11245 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11246 (calc_inveclosure): Likewise.
11247 (calc_eclosure): Likewise.
11248 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11249 direct invocation of duplicate_node.
11250 (parse): Don't use comma operator in the return to avoid compiler
11252 (parse_reg_exp): Likewise.
11253 (parse_branch): Likewise.
11254 (parse_expression): Likewise.
11255 (parse_sub_exp): Likewise.
11256 (parse_dup_op): Likewise.
11257 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11258 which became useless.
11259 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11260 (create_cd_newstate): Likewise.
11261 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11262 (re_token_t): Likewise.
11263 (re_dfa_t): Likewise.
11264 (re_node_set_remove): New macro.
11265 * posix/regexec.c (check_matching): Remove the handling
11267 (check_halt_node_context): Likewise.
11268 (proceed_next_node): Likewise.
11269 (pop_fail_stack): Fix the memory leak.
11270 (set_regs): Likewise.
11271 (free_fail_stack_return): New function.
11272 (sift_states_backward): Fix the memory leak. Remove the handling
11274 (update_cur_sifted_state): Append some if clause to avoid redundant
11276 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11278 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11279 (check_subexp_limits): Likewise.
11280 (search_subexp): Likewise.
11281 (sift_states_bkref): Likewise.
11282 (transit_state_mb): Likewise.
11283 (transit_state_bkref_loop): Likewise.
11284 (transit_state_bkref_loop): Likewise.
11285 (group_nodes_into_DFAstates): Likewise.
11286 (check_node_accept): Likewise.
11287 (sift_ctx_init): Add initializing.
11289 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11291 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11294 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11296 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11297 duplicated variable c.
11299 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11302 * sysdeps/unix/sysv/linux/i386/sysdep.h
11303 (INTERNAL_SYSCALL_ERROR_P): New define.
11304 (INTERNAL_SYSCALL_ERRNO): Likewise.
11306 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11307 Add hack to prevent the compiler from clobbering the signal context.
11309 2002-10-11 Roland McGrath <roland@redhat.com>
11311 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11314 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11315 * sysdeps/sh/dl-lookupcfg.h: File removed.
11316 * sysdeps/i386/dl-lookupcfg.h: File removed.
11318 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11319 missing labels and ; from last change.
11321 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11322 number literals, so they are doubles instead of ints.
11324 2002-10-09 Roland McGrath <roland@redhat.com>
11326 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11327 changed from [USE_TLS && HAVE___THREAD].
11329 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11330 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11331 * sysdeps/x86_64/dl-machine.h
11332 (elf_machine_type_class, elf_machine_rela): Likewise.
11333 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11336 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11337 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11338 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11340 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11341 instead of ___tls_get_addr.
11342 (___tls_get_addr_internal): Add attribute_hidden to decl.
11344 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11345 _dl_error_catch_tsd.
11346 * elf/rtld.c (startup_error_tsd): New function.
11347 (dl_main): Point _dl_error_catch_tsd at that.
11348 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11349 use new function pointer instead.
11350 * elf/dl-tsd.c: New file.
11351 * elf/Makefile (routines): Add it.
11353 2002-10-07 Roland McGrath <roland@redhat.com>
11355 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11356 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11357 take _dl_load_lock around calling __writev.
11359 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11360 (INLINE_SYSCALL): Use that.
11362 * sysdeps/generic/dl-sysdep.h: New file.
11363 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11364 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11365 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11366 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11367 access it directly.
11368 * elf/dl-minimal.c (__errno_location): Removed.
11369 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11370 Use GOTOFF access for errno.
11371 * sysdeps/unix/sysv/linux/i386/sysdep.h
11372 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11374 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11375 Use PC-relative access for errno.
11376 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11377 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11379 * include/tls.h: New file.
11380 (USE___THREAD): New macro.
11381 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11382 libc or libpthread.
11383 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11384 changed from [USE_TLS && HAVE___THREAD].
11385 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11386 * sysdeps/unix/i386/sysdep.S: Likewise.
11387 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11388 * include/errno.h: Likewise.
11389 * include/netdb.h: Likewise.
11390 * include/resolv.h: Likewise.
11392 * sysdeps/generic/errno.c: New file.
11393 * csu/Makefile (aux): New variable, list errno.
11394 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11395 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11396 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11397 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11398 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11399 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11400 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11401 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11402 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11403 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11404 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11405 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11406 * sysdeps/unix/alpha/sysdep.S: Likewise.
11407 * sysdeps/generic/start.c: Likewise.
11408 * sysdeps/unix/start.c: Likewise.
11409 * sysdeps/unix/arm/start.c: Likewise.
11410 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11411 * sysdeps/unix/sparc/start.c: Likewise.
11412 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11413 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11415 * manual/search.texi (Tree Search Function, Hash Search Function):
11416 Mention search.h clearly.
11418 2002-10-05 Roland McGrath <roland@redhat.com>
11420 * elf/dl-fxstat64.c: File removed.
11421 * elf/dl-xstat64.c: File removed.
11422 * elf/Makefile (rtld-routines): Remove them.
11423 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11424 Instead, use strong_alias instead of versioned_symbol in the
11425 !SHLIB_COMPAT case.
11426 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11427 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11429 * include/shlib-compat.h
11430 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11431 [! NOT_IN_libc] (IS_IN_libc): Define it.
11432 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11433 * elf/Makefile (CPPFLAGS-.os): Likewise.
11435 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11436 Return the status instead of calling exit.
11438 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11439 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11440 Remove superfluous rm command, whose @ plus make bugs hid
11441 all these commands from the make output.
11443 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11444 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11445 Use that file's contents instead of literal echo's for the prologue.
11446 * include/features.h: Include <gnu/stubs.h> unconditionally.
11447 * include/gnu/stubs.h: New file.
11449 2002-09-30 Roland McGrath <roland@redhat.com>
11451 * elf/rtld-Rules: New file.
11452 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11453 $(objpfx)rtld-libc.a): New targets.
11454 (generated): Add them.
11455 (reloc-link): Remove -o $@ from the variable.
11456 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11457 (distribute): Add rtld-Rules.
11458 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11459 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11460 (common-mostlyclean, common-clean): Clean up rtld-* files.
11461 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11463 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11465 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11466 If temp != NULL, copy dynamic entries which need relocation to temp
11467 array before relocating.
11468 (DL_RO_DYN_TEMP_CNT): Define.
11469 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11470 * elf/rtld.c (_dl_start): Likewise.
11471 (dl_main): Likewise. Add dyn_temp static variable.
11473 2002-10-11 Roland McGrath <roland@redhat.com>
11475 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11476 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11478 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11479 proper set of no-op insn prefixes.
11481 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11483 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11485 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11486 __pthread_kill_other_threads_np.
11488 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11490 2002-10-08 Roland McGrath <roland@redhat.com>
11492 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11493 just return &_nl_C_locobj instead of copying it.
11494 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11495 * locale/duplocale.c (__duplocale): Likewise.
11497 2002-10-07 Roland McGrath <roland@frob.com>
11499 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11500 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11501 * sysdeps/mach/configure: Regenerated.
11503 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11506 Add all necessary register outputs for syscall-clobbered registers.
11508 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11510 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11511 Itanium 2 (and Itanium).
11512 Fix unwind directives and make it fit in 80 columns.
11513 * sysdeps/ia64/memset.S: Likewise.
11514 * sysdeps/ia64/memcpy.S: Likewise.
11515 Move jump table to .rodata section.
11517 2002-10-03 Roland McGrath <roland@frob.com>
11519 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11522 2002-10-10 Andreas Jaeger <aj@suse.de>
11524 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11526 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11528 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11530 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11532 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11533 _dl_allocate_tls_init. Add rtld_hidden_proto.
11534 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11536 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11538 * version.h (VERSION): Bump to 2.3.1.
11540 * Make-dist: Add back one of the tar invocations removed before.
11542 * stdlib/Makefile (distribute): Add allocalim.h.
11544 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11545 (__libc_tsd_address): Use correct variable name.
11546 Patch by Stefan Jones <stefan.jones@multigig.com>.
11548 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11549 Reported by edwardsg@sgi.com [PR libc/4678].
11551 * Versions.def (libc): Add GLIBC_2.3.1.
11552 (libpthread): Add GLIBC_2.3.1.
11554 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11555 and __sigtimedwait.
11556 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11557 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11559 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11560 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11562 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11563 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11564 and make old name an alias.
11565 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11566 and make old name an alias.
11567 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11570 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11571 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11573 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11575 * sysdeps/posix/readv.c: Likewise
11576 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11577 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11578 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11580 * sysdeps/posix/writev.c: Likewise
11581 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11582 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11584 * include/sys/wait.h: Declare __waitid.
11585 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11586 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11588 * sysdeps/posix/waitid.c: Likewise.
11589 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11591 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11593 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11595 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11597 (__MAX_ALLOCA_CUTOFF): Define.
11598 Include allocalim.h.
11599 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11600 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11601 host_buffer depending on __libc_use_alloca.
11602 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11603 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11604 net_buffer depending on __libc_use_alloca.
11605 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11606 buf depending on __libc_use_alloca.
11607 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11608 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11609 instead of hardcoded constants.
11610 Pass proper size argument to alloca and compute end for wide char
11612 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11613 instead of hardcoded constants.
11614 * string/strcoll.c (strcoll): Likewise.
11615 * string/strxfrm.c (strxfrm): Likewise.
11616 * sysdeps/posix/readv.c (__readv): Likewise.
11617 * sysdeps/posix/writev.c (__writev): Likewise.
11618 * sysdeps/generic/allocalim.h: New file.
11620 2002-10-08 Roland McGrath <roland@redhat.com>
11622 * configure.in (aux_missing warning): Change "too old" to
11623 "incompatible versions", since for autoconf it's "too new" right now.
11624 * configure: Regenerated.
11626 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11627 one found doesn't work on our configure.in.
11628 * configure: Regenerated.
11629 * config.make.in (AUTOCONF): New substituted variable.
11630 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11631 (autoconf-it): ... here, use that instead of defining conditionally.
11632 Use $(AUTOCONF) instead of literal autoconf.
11633 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11634 with this condition.
11635 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11637 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11639 * Make-dist (dist): Cleanup a bit. We are not interested in the
11640 14 char filename limit anymore. Remove intermediate files and
11643 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11645 * po/sk.po: Update from translation team.
11646 * po/tr.po: Likewise.
11647 * po/gl.po: Likewise.
11649 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11651 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11653 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11655 * version.h (RELEASE): Change to stable.
11657 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11659 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11660 __syscall_exit_group): New prototypes.
11662 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11664 * glibc 2.3 released.
11667 See ChangeLog.13 for earlier changes.