1 2003-09-12 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
6 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
7 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
8 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
9 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
10 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
11 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
13 * misc/Makefile (CFLAGS-err.c): Likewise.
14 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
15 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
16 CFLAGS-glob64.c): Likewise.
17 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
18 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
19 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
20 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
21 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
23 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
25 * libio/stdio.h: Remove __THROW from cuserid prototype.
27 * locale/loadarchive.c: Use only non-cancelable interfaces.
28 * resolv/herror.c (herror): Likewise.
30 * malloc/hooks.c: Before using IO stream mark stream so it uses
31 only non-cancelable interfaces.
32 * malloc/malloc.c: Likewise.
33 * posix/getopt.c: Likewise.
36 2003-09-11 Jakub Jelinek <jakub@redhat.com>
38 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
40 2003-09-12 Ulrich Drepper <drepper@redhat.com>
42 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
44 * misc/err.h: Remove __THROW from all prototypes.
46 * posix/getopt.h (__THROW): Define if not already defined. Add
47 __THROW to the getopt functions.
49 2003-09-11 Ulrich Drepper <drepper@redhat.com>
51 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
52 (CFLAGS-fts.c): Likewise.
53 * io/fcntl.h: Remove __THROW from lockf prototypes.
54 * io/fts.h: Remove most __THROW.
56 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
58 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
62 2003-09-11 Jakub Jelinek <jakub@redhat.com>
64 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
65 _IO_free_backup_area call.
67 2003-09-10 Chris Demetriou <cgd@broadcom.com>
69 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
71 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
72 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
73 Also, only assert off_t size is 4 for N32 and O32, and clean up
75 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
77 2003-09-10 Roland McGrath <roland@redhat.com>
79 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
80 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
81 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
82 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
83 Reported by Daniel Jacobowitz <drow@mvista.com>.
85 2003-09-10 Jakub Jelinek <jakub@redhat.com>
87 * string/Makefile (strop-tests): Add memccpy.
88 * string/test-memccpy.c: New test.
90 2003-09-09 Jakub Jelinek <jakub@redhat.com>
92 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
93 siginfo_t * argument before, change into struct ucontext *.
94 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
95 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
97 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
100 2003-09-09 Ulrich Drepper <drepper@redhat.com>
102 * string/stratcliff.c (main): Check memccpy.
104 2003-04-11 Jes Sorensen <jes@wildopensource.com>
106 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
107 character is found during recovery, use correct register when
108 determining the position of the found character.
110 2003-04-01 Jes Sorensen <jes@wildopensource.com>
112 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
113 avoid segfaults when reading from unmapped pages. For aligned
114 reload and continue, for misaligned, roll back and use byte copy.
115 Save ar.ec on entry and restore on exit.
117 2003-09-09 Chris Demetriou <cgd@broadcom.com>
119 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
121 2003-09-08 Chris Demetriou <cgd@broadcom.com>
123 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
125 * sysdeps/mips/mips64/n64/Implies: Likewise.
127 2003-09-08 Roland McGrath <roland@frob.com>
129 * sysdeps/unix/sysv/linux/speed.c
130 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
131 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
132 * sysdeps/unix/sysv/linux/bits/termios.h
133 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
134 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
135 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
137 2003-09-08 Ulrich Drepper <drepper@redhat.com>
139 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
140 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
142 2003-09-08 Jakub Jelinek <jakub@redhat.com>
144 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
145 (__u_quad_t): Make unsigned long int if 64-bit.
146 (__SQUAD_TYPE): Make long int if 64-bit.
147 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
148 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
150 2003-09-08 Ulrich Drepper <drepper@redhat.com>
152 * Makefile (tests): Run check-c++-types.sh if possible.
153 * scripts/check-c++-types.h: New file.
154 * scripts/data/c++-types-i386-linux-gnu.data: New file.
156 2003-09-08 Andreas Jaeger <aj@suse.de>
158 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
159 Use struct sigcontext.
161 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
162 Use struct sigcontext.
164 (GET_FRAME): Likewise.
165 (GET_STACK): Likewise.
167 2003-09-08 Wolfram Gloger <wg@malloc.de>
169 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
170 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
171 (mALLOPt): Avoid requirement of C99.
173 2003-09-08 Ulrich Drepper <drepper@redhat.com>
175 * libio/bug-ftell.c: Include <sys/types.h>.
176 (main): Mark cp as const.
178 2003-09-07 Jakub Jelinek <jakub@redhat.com>
180 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
181 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
183 2003-09-05 Roland McGrath <roland@redhat.com>
185 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
187 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
188 (cfsetispeed): Set c_ispeed field.
189 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
190 to match corresponding speed.c code.
192 2003-09-06 Ulrich Drepper <drepper@redhat.com>
194 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
195 narrow character buffer.
196 * libio/Makefile: Add rules to build and run bug-ftell.
197 * libio/bug-ftell.c: New file.
199 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
201 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
202 matching the decimal point and possibly leading the thousands
203 separator. This caused the recognition of thousands separators to
206 2003-09-05 Ulrich Drepper <drepper@redhat.com>
208 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
209 write mode from read in backup buffer.
210 * libio/Makefile (tests): Add bug-ungetc2.
211 * libio/bug-ungetc2.c: New file.
213 2003-09-05 Roland McGrath <roland@redhat.com>
215 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
217 2003-09-04 Roland McGrath <roland@frob.com>
219 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
220 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
222 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
224 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
227 2003-09-05 Andreas Jaeger <aj@suse.de>
229 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
230 to make it conforming C.
231 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
233 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
234 prototype to use variable argument lists and get the possible one
236 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
237 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
239 2003-09-04 Ulrich Drepper <drepper@redhat.com>
241 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
243 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
244 Report correct value for vxfs.
245 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
247 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
250 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
251 over the place. It would be allowed to have these functions as
252 cancellation points but the cleanup would be ugly and a lot of
255 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
256 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
258 * include/fcntl.h (__fcntl_nocancel): Declare.
259 * sysdeps/unix/sysv/linux/fcntl.c: New file.
260 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
261 cancellation if absolutely needed.
262 (__fcntl_nocancel): Define.
264 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
265 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
267 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
270 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
273 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
274 unnecessary errno handling.
276 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
277 Initialize it in all cases. Change it to be a bit more like the
280 2003-09-04 Jakub Jelinek <jakub@redhat.com>
282 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
284 (_IO_file_open): Likewise. Use close_not_cancel.
286 2003-09-04 Ulrich Drepper <drepper@redhat.com>
288 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
289 * libio/fileops.c [_LIBC]: Remove close macro.
290 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
291 (_IO_new_file_open): Recognize 'c' flag in mode string.
292 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
293 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
295 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
296 * inet/rcmd.c: Likewise.
297 * inet/ruserpass.c: Likewise.
298 * intl/localealias.c: Likewise.
299 * malloc/mtrace.c: Likewise.
300 * misc/getpass.c: Likewise.
301 * misc/getttyent.c: Likewise.
302 * misc/mntent_r.c: Likewise.
303 * misc/getusershell.c: Likewise.
304 * nss/nsswitch.c: Likewise.
305 * resolv/res_hconf.c: Likewise.
306 * resolv/res_init.c: Likewise.
307 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
308 * time/getdate.c: Likewise.
309 * time/tzfile.c: Likewise.
310 * misc/fstab.h: Undo last change.
311 * misc/mntent.h: Likewise.
312 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
313 CFLAGS-fstab.c definition.
315 2003-09-04 Jakub Jelinek <jakub@redhat.com>
317 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
319 2003-09-03 Ulrich Drepper <drepper@redhat.com>
321 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
322 returning ERANGE if this wasn't intended.
324 2003-09-03 Jakub Jelinek <jakub@redhat.com>
326 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
327 function-like macros.
329 2003-09-03 Ulrich Drepper <drepper@redhat.com>
331 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
332 (CFLAGS-getgrent.c): Likewise.
333 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
334 (CFLAGS-getpwent.c): Likewise.
335 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
336 (CFLAGS-getspent.c): Likewise.
338 * inet/Makefile: Add -fexceptions to CFLAGS for the various
339 getXXent and getXXbyYY functions.
341 * locale/loadlocale.c: Use not-cancelable variants of open, close,
344 2003-09-02 Jakub Jelinek <jakub@redhat.com>
346 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
347 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
349 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
351 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
352 unused __syscall_ stubs.
353 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
355 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
356 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
357 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
358 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
359 unused __syscall_ stubs.
360 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
361 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
362 (__syscall_*): Remove unused __syscall_ stubs.
363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
364 (__syscall_*): Likewise.
365 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
367 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
368 Remove unused __syscall_ stubs.
369 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
370 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
371 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
372 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
373 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
374 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
375 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
376 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
377 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
378 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
379 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
380 __syscall_* prototypes.
381 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
382 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
383 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
384 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
385 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
386 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
387 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
388 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
389 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
390 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
391 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
392 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
393 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
394 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
395 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
396 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
397 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
398 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
399 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
400 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
401 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
402 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
403 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
404 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
405 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
406 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
407 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
408 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
409 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
410 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
411 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
412 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
413 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
414 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
415 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
416 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
417 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
418 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
419 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
420 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
421 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
422 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
423 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
424 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
425 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
426 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
427 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
428 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
429 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
430 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
431 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
432 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
433 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
434 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
435 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
436 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
437 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
438 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
439 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
440 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
441 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
442 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
443 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
444 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
445 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
446 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
447 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
448 * sysdeps/unix/sysv/linux/execve.c: Likewise.
449 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
450 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
451 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
452 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
453 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
454 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
455 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
456 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
457 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
458 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
459 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
460 * sysdeps/unix/sysv/linux/readv.c: Likewise.
461 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
462 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
463 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
464 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
465 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
466 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
467 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
468 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
469 * sysdeps/unix/sysv/linux/poll.c: Likewise.
470 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
471 * sysdeps/unix/sysv/linux/writev.c: Likewise.
472 * sysdeps/unix/sysv/linux/pread.c: Likewise.
473 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
474 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
475 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
476 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
477 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
478 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
479 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
480 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
481 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
482 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
484 2003-09-02 Jakub Jelinek <jakub@redhat.com>
486 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
487 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
488 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
490 2003-09-02 Ulrich Drepper <drepper@redhat.com>
492 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
494 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
495 open, close, and read.
497 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
500 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
502 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
503 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
504 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
506 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
508 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
509 (CFLAGS-fstatfs.c): Likewise.
510 (CFLAGS-statvfs.c): Likewise.
511 (CFLAGS-fstatvfs.c): Likewise.
513 2003-09-01 Ulrich Drepper <drepper@redhat.com>
515 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
516 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
518 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
519 (CFLAGS-pathconf.c): Likewise.
520 (CFLAGS-fpathconf.c): Likewise.
522 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
523 * misc/fstab.h: Remove all __THROW.
524 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
525 (CFLAGS-mntent_r.c): Likewise.
526 * misc/mntent.h: Remove most __THROW.
528 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
529 (CFLAGS-mkstemp64.c): Likewise.
531 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
532 around call to exec_comm.
533 * posix/wordexp.h: Remove __THROW from wordexp.
534 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
536 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
537 not-cancelable functions.
539 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
540 (CFLAGS-iofopen.c): Likewise.
541 (CFLAGS-iofopen64.c): Likewise.
543 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
545 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
546 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
548 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
549 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
551 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
553 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
554 NSS_STATUS_SUCCESS if entry was found.
555 (getspent_next_file): Store user in blacklist after entry
556 was found, use innetgr.
558 2003-09-01 Jakub Jelinek <jakub@redhat.com>
560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
563 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
564 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
567 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
569 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
570 posix_fallocate64 at GLIBC_2.3.3.
571 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
572 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
574 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
576 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
579 2003-08-31 Ulrich Drepper <drepper@redhat.com>
581 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
582 Code by Richard Henderson.
584 2003-08-31 Philip Blundell <philb@gnu.org>
586 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
587 posix_fallocate64 at GLIBC_2.3.3.
589 2003-08-31 Ulrich Drepper <drepper@redhat.com>
591 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
592 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
594 2003-08-30 Jakub Jelinek <jakub@redhat.com>
596 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
597 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
598 included multiple times.
599 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
600 ptid, tls, ctid arguments to the kernel.
601 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
602 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
603 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
604 (__libc_sigaction): Use INLINE_SYSCALL instead of
605 __syscall_rt_sigaction.
606 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
607 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
608 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
609 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
610 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
611 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
612 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
613 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
614 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
615 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
616 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
617 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
618 (__CLONE_SYSCALL_STRING): Define.
619 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
621 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
622 (__CLONE_SYSCALL_STRING): Define.
623 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
625 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
627 2003-08-30 Ulrich Drepper <drepper@redhat.com>
629 * sunrpc/rpc/clnt.h: Remove a few __THROW.
630 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
631 (CFLAGS-key_call.c): Likewise.
632 (CFLAGS-pmap_rmt.c): Likewise.
633 (CFLAGS-clnt_perr.c): Likewise.
634 * sunrpc/rpc/auth.h: Remove serveral __THROW.
636 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
637 (CFLAGS-gethstbynm_r.c): Likewise.
638 (CFLAGS-gethstbynm2_r.c): Likewise.
639 (CFLAGS-rcmd.c): Likewise.
640 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
642 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
643 (CFLAGS-argp-fmtstream.c): Likewise.
644 * argp/argp.h: Remove a number of __THROW.
646 * misc/sys/syslog.h (vsyslog): Remove __THROW.
648 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
649 * misc/getpass.c (getpass): Add cleanup handler to ensure the
650 stream is closed even if the thread is canceled.
651 (call_fclose): New function.
652 * posix/unistd.h: Remove __THROW from getpass prototype.
654 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
656 * signal/signal.h (psignal): Remove __THROW.
657 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
659 * misc/Makefile (CFLAGS-error.c): Define.
660 * misc/error.c (error): Disable cancellation handling around the
661 actual output. The message should in any case be printed.
662 (error_at_line): Likewise.
664 * misc/error.h: Protect parameter names with leading __.
666 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
668 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
670 2003-08-29 Jakub Jelinek <jakub@redhat.com>
672 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
675 2003-08-29 Ulrich Drepper <drepper@redhat.com>
677 * libio/stdio.h: Remove a few more __THROW.
679 2003-08-29 Jakub Jelinek <jakub@redhat.com>
681 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
682 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
683 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
684 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
685 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
686 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
687 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
688 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
689 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
690 putwchar.c and rewind.c with exceptions.
691 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
692 _IO_release_lock): Define.
693 * libio/fileops.c (_IO_new_file_underflow): Use it.
694 * libio/fputc.c (fputc): Likewise.
695 * libio/fputwc.c (fputwc): Likewise.
696 * libio/freopen64.c (freopen64):
697 * libio/freopen.c (freopen): Likewise.
698 * libio/fseek.c (fseek): Likewise.
699 * libio/fseeko64.c (fseeko64): Likewise.
700 * libio/fseeko.c (fseeko): Likewise.
701 * libio/ftello64.c (ftello64): Likewise.
702 * libio/ftello.c (ftello): Likewise.
703 * libio/fwide.c (fwide): Likewise.
704 * libio/getc.c (_IO_getc): Likewise.
705 * libio/getchar.c (getchar): Likewise.
706 * libio/getwc.c (_IO_getwc): Likewise.
707 * libio/getwchar.c (getwchar): Likewise.
708 * libio/iofclose.c (_IO_new_fclose):
709 * libio/iofflush.c (_IO_fflush): Likewise.
710 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
711 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
712 * libio/iofgets.c (_IO_fgets): Likewise.
713 * libio/iofgetws.c (fgetws): Likewise.
714 * libio/iofputs.c (_IO_fputs): Likewise.
715 * libio/iofputws.c (fputws): Likewise.
716 * libio/iofread.c (_IO_fread): Likewise.
717 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
718 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
719 * libio/ioftell.c (_IO_ftell): Likewise.
720 * libio/iofwrite.c (_IO_fwrite): Likewise.
721 * libio/iogetdelim.c (_IO_getdelim): Likewise.
722 * libio/iogets.c (_IO_gets): Likewise.
723 * libio/ioputs.c (_IO_puts): Likewise.
724 * libio/ioseekoff.c (_IO_seekoff): Likewise.
725 * libio/ioseekpos.c (_IO_seekpos): Likewise.
726 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
727 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
728 * libio/ioungetc.c (_IO_ungetc): Likewise.
729 * libio/ioungetwc.c (ungetwc): Likewise.
730 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
731 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
732 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
733 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
734 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
735 * libio/peekc.c (_IO_peekc_locked): Likewise.
736 * libio/putc.c (_IO_putc): Likewise.
737 * libio/putchar.c (putchar): Likewise.
738 * libio/putwc.c (putwc): Likewise.
739 * libio/putwchar.c (putwchar): Likewise.
740 * libio/rewind.c (rewind): Likewise.
741 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
743 2003-08-29 Ulrich Drepper <drepper@redhat.com>
745 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
748 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
749 Jakub Jelinek <jakub@redhat.com>
751 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
752 big endian arches. Don't read beyond end of fds_bits array.
754 2003-04-27 Bruno Haible <bruno@clisp.org>
756 * manual/message.texi (Advanced gettext functions): Add information
757 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
758 Add section about Lithuanian, reported by Ricardas Cepas
759 <rch@richard.eu.org>.
760 Add information about Croatian.
761 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
762 Remove remark about continuation lines that is not true for PO files.
763 Fix formula for Slovenian, reported by Roman Maurer
764 <roman.maurer@amis.net>.
766 2003-08-27 Ulrich Drepper <drepper@redhat.com>
768 * math/math_private.h: Declare __copysignf.
769 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
772 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
773 __signbit, and __signbitl inline functions.
775 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
776 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
778 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
779 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
781 2003-08-27 Jakub Jelinek <jakub@redhat.com>
783 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
785 2003-08-27 Ulrich Drepper <drepper@redhat.com>
787 * include/stdio.h: Add declarations for __builtin_fwrite and
788 __builtin_fwrite_unlocked.
790 2003-08-27 Jakub Jelinek <jakub@redhat.com>
792 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
793 fits into allocation. Add padding on 32-bit arches so that
794 dirp->data is enough aligned for struct dirent64.
795 Avoid clearing of the buffer, just clear DIR structure.
797 2003-08-26 Ulrich Drepper <drepper@redhat.com>
799 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
800 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
802 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
804 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
806 2003-08-26 Jakub Jelinek <jakub@redhat.com>
808 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
809 to match format string.
810 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
812 (__new_semctl): Shut up warning.
813 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
814 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
816 2003-08-26 Jakub Jelinek <jakub@redhat.com>
818 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
819 link file use the real file name, not the resolved name we got by
820 following the symlinks.
822 2003-08-25 Ulrich Drepper <drepper@redhat.com>
824 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
825 if the object size is large enough.
827 2003-08-25 Jakub Jelinek <jakub@redhat.com>
829 * elf/ldconfig.c (search_dir): Treat symlink as regular file
830 if it won't point to itself unless it is .so symlink for the linker.
832 2003-08-25 Ulrich Drepper <drepper@redhat.com>
834 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
835 use _mode if _IO_fwide_maybe_incompatible.
836 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
837 the compatibility test.
839 2003-08-25 Jakub Jelinek <jakub@redhat.com>
841 * elf/cache.c (save_cache): Don't write beyond end of file_entries
843 Duplicate last old cache entry if the count would be odd.
845 2003-08-25 Andreas Jaeger <aj@suse.de>
847 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
848 __LONG_LONG_PAIR to long.
850 2003-08-25 Philip Blundell <philb@gnu.org>
852 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
853 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
855 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
857 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
858 and use __libc_cleanup_region_end instead.
860 2003-08-25 Ulrich Drepper <drepper@redhat.com>
862 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
864 2003-08-22 Ulrich Drepper <drepper@redhat.com>
866 * io/fcntl.h (posix_fallocate): Change type of third parameter to
868 (posix_fallocate64): Change type of third parameter to off64_t.
869 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
870 * sysdeps/posix/posix_fallocate.c: Likewise.
871 * sysdeps/generic/posix_fallocate64.c: Likewise.
872 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
873 code for 32-bit platforms.
874 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
877 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
878 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
880 2003-08-19 Ulrich Drepper <drepper@redhat.com>
882 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
883 the type, not to name.
885 * stdio-common/test-vfprintf.c (main): Don't write temporary file
886 into source directory.
888 * malloc/malloc.c (_int_free): Add cheap test for some invalid
891 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
894 2003-08-18 Ulrich Drepper <drepper@redhat.com>
896 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
899 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
901 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
902 (elf_machine_lazy_rel): Likewise.
904 2003-08-18 Art Haas <ahaas@airmail.net>
906 * malloc/malloc.h: Remove unneeded ';' where closing the C++
909 2003-08-18 Ulrich Drepper <drepper@redhat.com>
911 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
912 loading big binaries where @gprel(sym) cannot be handled in 'add'
913 but instead has to be used with 'movl'.
915 2003-08-17 Juergen Kreileder <jk@blackdown.de>
916 Andreas Jaeger <aj@suse.de>
918 * sysdeps/x86_64/bits/byteswap.h: New file.
920 2003-08-17 Andreas Jaeger <aj@suse.de>
922 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
924 2003-08-16 Jakub Jelinek <jakub@redhat.com>
926 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
927 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
928 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
929 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
930 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
931 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
932 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
933 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
934 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
936 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
937 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
938 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
939 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
940 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
942 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
943 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
944 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
946 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
947 posix_fadvise64_64): Remove.
948 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
950 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
953 (posix_fadvise64): Likewise.
954 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
955 (posix_fadvise64): Likewise.
956 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
957 (posix_fadvise64): Likewise.
958 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
960 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
961 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
962 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
963 (__posix_fadvise64_l32): New function.
964 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
966 posix_fadvise64@@GLIBC_2.3.3.
967 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
968 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
969 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
971 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
973 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
974 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
976 2003-08-15 Jakub Jelinek <jakub@redhat.com>
978 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
979 (elf_machine_matches_host): Remove weak extern stuff.
980 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
981 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
982 stuff. Use GL(dl_hwcap) unconditionally.
984 2003-08-16 Alan Modra <amodra@bigpond.net.au>
986 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
987 __libc_start_main branch.
989 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
990 Andreas Jaeger <aj@suse.de>
992 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
993 instead of setting errno.
994 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
996 2003-08-16 Andreas Jaeger <aj@suse.de>
998 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
999 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1001 2003-08-15 Ulrich Drepper <drepper@redhat.com>
1003 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1005 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1006 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1007 description indicating the error value is returned, not -1.
1008 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1009 __ASSUME_FADVISE64_64_SYSCALL.
1010 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1011 posix_madvise in one file. Have posix_madvise defined with error
1013 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
1015 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1016 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1017 PSEUDO_END_ERRVAL, and ret_ERRVAL.
1018 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1019 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1020 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1023 * posix/Makefile (routines): Add posix_madvise.
1024 * sysdeps/generic/madvise.c: Don't define posix_madvise.
1025 * sysdeps/generic/posix_madvise.c: New file.
1026 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1027 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1028 Add posix_fadvise64_64.
1030 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1032 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1033 3.0, not for !gcc or gcc < 3.0.
1035 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1037 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1038 Address passed to test_in_mod1 and test_in_mod2 without casting.
1039 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1040 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1041 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1042 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1044 2003-08-15 Jakub Jelinek <jakub@redhat.com>
1046 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1047 Change quotes before using [].
1049 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1051 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1053 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
1054 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1055 argument. Select one of 64 locks from address bits.
1056 (atomic_compare_and_exchange_val_acq,
1057 atomic_compare_and_exchange_bool_acq): Pass memory address to
1058 __sparc32_atomic_do_{,un}lock.
1060 2003-08-14 Ulrich Drepper <drepper@redhat.com>
1062 * assert/assert.h (assert): Use !! in front of expression to allow
1065 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1066 Changed conversion of JIS X 0201 from using a table to calculating.
1067 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1068 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
1070 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1071 * iconvdata/CP932.irreversible: New file.
1072 * iconvdata/EUC-JP-MS.irreversible: New file.
1073 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1075 2003-08-13 Ulrich Drepper <drepper@redhat.com>
1077 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1079 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1080 text processing tools.
1082 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1083 element unless BROKEN_THREAD_SIGNALS is defined.
1084 (struct requestlist): Likewise.
1085 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1086 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1087 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1088 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1089 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
1090 Pass current PID to __aio_sigqueue.
1091 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1092 call. Don't initialize caller_pid field of waitlist element.
1094 2003-08-12 Jakub Jelinek <jakub@redhat.com>
1096 * libio/libioP.h (_IO_vtable_offset): Define.
1097 * libio/freopen.c (freopen): Use it.
1098 * libio/ioputs.c (_IO_puts): Likewise.
1099 * libio/freopen64.c (freopen64): Likewise.
1100 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1102 * libio/iofclose.c (_IO_new_fclose): Likewise.
1103 * libio/iofputs.c (_IO_fputs): Likewise.
1104 * libio/ioftell.c (_IO_ftell): Likewise.
1105 * libio/iofwrite.c (_IO_fwrite): Likewise.
1106 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1107 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1108 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1109 * stdio-common/vfscanf.c (ORIENT): Likewise.
1111 2003-08-11 Ulrich Drepper <drepper@redhat.com>
1113 * assert/assert.h: Use __builtin_expect in assert and
1114 assert_perror definitions if possible.
1116 2003-08-07 Jakub Jelinek <jakub@redhat.com>
1118 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1119 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1120 * elf/rtld.c (rtld_lock_default_lock_recursive,
1121 rtld_lock_default_unlock_recursive): New functions.
1122 (dl_main): Initialize _dl_rtld_lock_recursive and
1123 _dl_rtld_unlock_recursive.
1125 2003-08-05 Jakub Jelinek <jakub@redhat.com>
1127 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1128 config_file directories instead of prepending.
1130 2003-08-02 Ulrich Drepper <drepper@redhat.com>
1132 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1133 __ASSUME_CLONE_STOPPED.
1135 2003-08-01 Ulrich Drepper <drepper@redhat.com>
1137 * sysdeps/generic/bits/libc-lock.h
1138 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1140 2003-08-01 Roland McGrath <roland@frob.com>
1142 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1144 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1146 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1147 instead of __SWORD_TYPE.
1148 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1149 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1150 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1152 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1154 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1156 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1158 * dlfcn/dlerror.c (once): New.
1159 (dlerror): Call __libc_once.
1160 (_dlerror_run): Remove once.
1162 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1163 Sync with 2.5.7 and 2.5.73 kernel changes.
1165 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1166 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1168 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1169 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1170 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1171 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1172 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1173 difference argument.
1174 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1176 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1177 %d format and cast expected value to int.
1178 * sysdeps/generic/libc-start.c (STATIC): Add
1179 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1180 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1181 to ieee_float_shape_type.
1182 (__sqrt): Avoid type punning.
1183 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1184 to ieee_float_shape_type.
1185 (__sqrtf): Avoid type punning.
1186 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1187 refsym if in dl-conflict.c.
1188 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1189 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1190 (__new_semctl): Shut up warning.
1191 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1192 (__new_semctl): Shut up warning.
1193 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1194 Change old into union of __old_shmid_ds and __old_shminfo structs.
1196 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1198 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1199 modtime computation.
1200 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1201 * sysdeps/posix/utimes.c (__utimes): Likewise.
1203 2003-07-30 Jakub Jelinek <jakub@redhat.com>
1205 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1206 call dl_signal_error directly. If already relocated, call
1207 GL(dl_init_static_tls) directly, otherwise queue it for later.
1208 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1209 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1210 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1211 for all static TLS initializations delayed in _dl_allocate_static_tls.
1212 * elf/dl-support.c (_dl_init_static_tls): New variable.
1213 * include/link.h (struct link_map): Add l_need_tls_init.
1214 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1215 (_dl_nothread_init_static_tls): New prototype.
1216 (_dl_allocate_static_tls): Adjust prototype.
1218 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1220 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
1222 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1223 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1224 reloc_addr is aligned.
1225 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1226 elf_machine_rela_relative): Adjust.
1227 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1228 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1229 * sysdeps/cris/dl-machine.h (elf_machine_rela,
1230 elf_machine_rela_relative): Adjust.
1231 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1232 elf_machine_rela_relative): Adjust.
1233 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1234 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1235 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1236 elf_machine_rela_relative): Adjust.
1237 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1238 elf_machine_rela_relative): Adjust.
1239 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1240 elf_machine_rela_relative): Adjust.
1241 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1242 elf_machine_rela_relative): Adjust.
1243 * sysdeps/powerpc/powerpc64/dl-machine.h
1244 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1245 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1246 elf_machine_rela_relative): Adjust.
1247 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1248 elf_machine_rela_relative): Adjust.
1249 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1250 elf_machine_rela_relative): Adjust.
1251 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1252 elf_machine_rela_relative): Adjust.
1253 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1254 elf_machine_rela_relative): Adjust.
1255 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1256 elf_machine_rela_relative): Adjust.
1258 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1260 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1261 alignment of TCB used before the last change so that it matches
1262 ld's output for IE code.
1264 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1266 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1267 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1268 break strict-aliasing rules" warnings.
1270 2003-07-29 Roland McGrath <roland@redhat.com>
1272 * elf/Makefile: Revert accidental changes in last commit.
1273 * elf/dl-support.c: Likewise.
1275 * rt/tst-timer2.c: New file.
1276 * rt/Makefile (tests): Add it.
1278 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1280 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1282 2003-07-29 Roland McGrath <roland@redhat.com>
1284 * elf/Makefile (tests) [$(build-shared) = yes]:
1285 Depend on $(test-modules).
1286 * dlfcn/Makefile: Likewise.
1288 2003-07-28 Roland McGrath <roland@redhat.com>
1290 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1291 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1293 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1294 * elf/tst-tlsmod14a.c: Likewise.
1296 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1297 before <linux/sysctl.h>.
1299 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1301 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1302 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1303 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1304 * sysdeps/unix/syscalls.list: umask syscall never fails.
1306 2003-07-27 Andreas Jaeger <aj@suse.de>
1308 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1310 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1312 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1313 Include bits/a.out.h.
1314 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1316 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1317 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1318 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1319 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1320 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1321 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1322 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1323 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1325 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1327 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1328 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1329 aiocbp->aio_fildes does not match fildes.
1331 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1333 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1336 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1337 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1338 Fix calculation of offsets to take misalignment of first byte in
1340 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1341 l_tls_firstbyte_offset field.
1342 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1343 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1344 Take l_tls_firstbyte_offset information into account.
1345 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1346 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1347 * elf/Makefile: Add rules to build and run tst-tls14.
1348 * elf/tst-tls14.c: New file.
1349 * elf/tst-tlsmod14a.c: New file.
1350 * elf/tst-tlsmod14b.c: New file.
1352 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1354 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1355 (lio_listio): Use it.
1356 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1357 after few defines to avoid duplication.
1359 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1361 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1362 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1364 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1365 Add libc_hidden_def.
1366 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1367 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1368 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1369 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1370 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1371 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1372 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1374 * sysdeps/generic/unwind.inc: Removed.
1376 * include/resolv.h (__resp): Declare. Define to __libc_resp
1378 (_res): If USE___THREAD, define to (*__resp).
1379 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1380 even if USE___THREAD.
1381 (__resp): New __thread variable.
1382 (__libc_resp): New alias.
1383 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1384 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1385 * sysdeps/generic/res-state.c (__res_state): Return __resp
1388 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1390 * elf/dl-support.c (_dl_hwcap): New variable.
1391 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1393 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1394 and <dl-procinfo.h>.
1395 (__feclearexcept): Clear MXCSR if needed.
1396 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1398 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1399 that newer hardware needs more than these macros.
1401 * sysdeps/i386/setfpucw.c: New file.
1403 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1405 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1406 * elf/ldconfig.c: Include dl-procinfo.c.
1407 (PROCINFO_CLASS): Define.
1408 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1409 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1410 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1411 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1412 Define if not yet defined. Use it instead of EXTERN. Undefine
1413 at the end of the file.
1414 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1416 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1417 (PROCINFO_CLASS): Likewise.
1418 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1419 (PROCINFO_CLASS): Likewise.
1421 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1423 * elf/ldconfig.c (main): Issue a fatal error if relative path
1424 is used to build cache.
1426 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1428 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1430 2003-07-21 Art Haas <ahaas@airmail.net>
1432 * manual/charset.texi (Converting a Character): Fix example code so a
1433 valid pointer is returned.
1435 2003-07-22 Andreas Jaeger <aj@suse.de>
1437 * elf/readlib.c (process_file): Check that file is a shared
1440 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1441 will not optimize it away.
1442 (__DTOR_END__): Likewise.
1443 (__CTOR_END__): Likewise.
1445 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1446 that gcc will not optimize it away.
1447 (link_warning): Likewise.
1449 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1451 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1452 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1453 * wcsmbs/tst-wcpncpy.c: New file.
1455 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1457 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1459 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1460 stmxcsr and ldmxcsr.
1462 * Makerules (build-module-helper): Add -z defs unless explicitly said
1464 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1465 which has undefined symbols.
1466 * elf/Makefile: Likewise.
1468 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1469 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1470 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1471 * sysdeps/i386/fpu/fesetround.c: Likewise.
1472 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1474 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1476 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1477 if it won't point to itself.
1479 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1481 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1483 2003-07-20 Andreas Jaeger <aj@suse.de>
1485 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1486 STANDARD_TO_LOOP_ERR_HANDLER.
1487 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1489 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1491 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1493 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1495 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1496 Andreas Jaeger <aj@suse.de>
1498 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1499 256K, remove unneeded declaration of __getpagesize.
1501 2003-07-16 Andreas Schwab <schwab@suse.de>
1503 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1505 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1507 * io/test-utime.c (main): Make test yet more robust.
1509 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1511 More cancellation handling fixups.
1512 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1513 * sysdeps/generic/not-cancel.h: Likewise.
1514 * catgets/open_catalog.c: Use not-cancelable syscalls.
1515 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1516 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1517 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1518 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1519 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1520 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1521 * libio/iopopen.c: Use no-cancelable syscalls.
1522 * libio/stdio.h: Mark popen and pclose with __THROW again.
1523 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1524 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1525 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1526 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1527 CFLAGS-tempname.c): Add -fexceptions.
1528 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1529 * string/string.h: Mark strerror and strerror_r with _THROW again.
1530 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1531 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1532 #ifs since we now need all the code compiled.
1533 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1534 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1535 * sysdeps/unix/opendir.c: Likewise.
1537 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1538 Add rule for EUC-JP-MS dependency.
1539 * iconvdata/cp932.c: New file.
1540 * iconvdata/eucjp-ms.c: New file.
1541 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1542 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1544 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1549 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1551 * sysdeps/unix/sysv/linux/kernel-features.h
1552 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1555 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1557 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1559 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1560 __ASSUME_TGKILL for Alpha appropriately.
1562 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1564 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1565 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1567 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1570 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1571 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1573 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1574 second parameter == NULL.
1575 * sysdeps/unix/sysv/linux/utimes.c: New file.
1577 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1579 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1580 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1583 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1585 * time/sys/time.h: Namespace cleanup.
1586 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1587 __ASSUME_UTIMES for the architectures which always had the syscall.
1588 * sysdeps/unix/sysv/linux/futimes.c: New file.
1590 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1592 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1593 register across CENABLE and CDISABLE.
1595 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1597 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1598 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1599 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1600 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1601 int before assigning to max to avoid warnings.
1603 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1607 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1608 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1610 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1612 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1613 .data.rel.ro.local to "aw".
1615 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1617 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1618 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1619 (PIC-ccflag): Define.
1621 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1623 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1625 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1627 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1629 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1630 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1632 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1634 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1635 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1637 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1638 compilation with HAVE_AUX_SECURE defined.
1640 2003-07-05 Richard Henderson <rth@redhat.com>
1642 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1644 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1646 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1648 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1650 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1653 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1655 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1657 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1659 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1661 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1662 decl and use with #ifdef NEED_DL_SYSINFO.
1664 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1666 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1667 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1668 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1669 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1670 vsyscall DSO was added.
1672 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1673 depending on selected standard.
1674 (NGROUPS_MAX): Define to 8 if not defined.
1676 2003-07-02 Andreas Jaeger <aj@suse.de>
1678 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1680 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1682 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1683 * malloc/thread-m.h: Include <atomic.h>.
1684 (atomic_full_barrier): Provide default.
1685 (atomic_read_barrier): Likewise.
1686 (atomic_write_barrier): Likewise.
1687 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1689 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1691 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1693 2003-06-30 Richard Henderson <rth@redhat.com>
1695 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1696 Invert the sense of the return value.
1697 (__arch_exchange_16_int): Fix paste-o.
1698 (__arch_exchange_{32,64}_int): Fix think-o.
1700 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1702 2003-06-30 Richard Henderson <rth@redhat.com>
1704 * include/sys/resource.h (__getrusage): Mark hidden.
1705 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1706 * include/sys/wait.h (__wait4): Likewise.
1708 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1710 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1712 (xstat_conv): Rename to __xstat_conv and remove static inline.
1713 (xstat64_conv): Likewise.
1715 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1717 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1718 values which cannot be handled in one nanosleep call.
1720 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1722 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1723 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1725 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1727 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1729 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1732 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1734 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1735 Conditionalize function definitions that use struct kernel_stat.
1736 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1737 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1738 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1740 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1742 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1745 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1747 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1748 (getgrent_next_file): Don't store group name to early in blacklist.
1750 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1751 and use memcpy instead of strcpy.
1753 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1755 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1757 * nis/nss_compat/compat-initgroups.c: Likewise.
1758 * nis/nss_compat/compat-pwd.c: Likewise.
1759 * nis/nss_compat/compat-spwd.c: Likewise.
1761 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1763 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1764 functions, dlopen corresponding NSS module instead.
1766 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1768 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1769 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1770 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1771 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1773 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1775 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1777 2003-06-26 Roland McGrath <roland@frob.com>
1779 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1780 * sysdeps/mach/configure: Regenerated.
1781 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1782 (__times): Assume `creation_time' field is available.
1783 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1784 Don't append set-init.
1785 * sysdeps/mach/hurd/set-init.c: File removed.
1787 2003-06-26 Roland McGrath <roland@redhat.com>
1789 * elf/elf.h (AT_SECURE): New macro.
1790 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1791 set __libc_enable_secure.
1792 (_dl_show_auxv): Add AT_SECURE to name table.
1793 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1794 __libc_enable_secure and __libc_enable_secure_decided.
1795 * sysdeps/unix/sysv/linux/ldsodefs.h
1796 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1797 * sysdeps/unix/sysv/linux/kernel-features.h
1798 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1800 2003-06-26 Ulrich Drepper <drepper@redhat.com>
1802 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1803 boundary test to take rounding of nanoseconds into account.
1805 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1806 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1807 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1808 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1809 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1810 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1811 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1813 2003-06-26 Andreas Schwab <schwab@suse.de>
1815 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1816 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1817 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1819 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
1821 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1822 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1823 dlopen corresponding NSS module instead.
1824 * nis/nss_compat/compat-pwd.c: Likewise.
1825 * nis/nss_compat/compat-spwd.c: Likewise.
1826 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1827 * nss/Versions: Export __nss_lookup_function.
1829 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1831 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1832 for the SH architecture.
1834 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
1836 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1838 2003-06-25 Andreas Jaeger <aj@suse.de>
1840 * stdlib/tst-strtod.c (main): Declare constant long double as
1841 suggested by Jakub Jelinek and Andreas Schwab.
1843 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1846 * stdio-common/tst-fphex.c: Fix format string.
1848 * posix/transbug.c: Include <string.h> for memset and strlen
1851 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1853 * stdlib/tst-strtod.c (main): Pass long double value.
1855 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1857 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1859 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1862 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1864 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1865 * elf/dl-libc.c (struct dl_open_hook): New.
1866 (_dl_open_hook): New variable.
1867 (do_dlsym_private): New function.
1868 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1869 and initialize it if found.
1870 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1871 call dlopen_mode hook.
1872 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1874 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1877 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1879 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1880 result to long int so that extensions to long long int work.
1881 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1883 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1885 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1886 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1887 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1889 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1890 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1891 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1892 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1894 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1896 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1897 retry once after a second. If killed == 0, assume
1898 WTERMSIG (status) == SIGKILL.
1900 2003-06-18 Roland McGrath <roland@redhat.com>
1902 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1903 elements in the table instead of printing an empty name string.
1905 2003-06-05 Roland McGrath <roland@redhat.com>
1907 * elf/elf.h (PT_GNU_STACK): New macro.
1909 2003-06-24 Ulrich Drepper <drepper@redhat.com>
1911 * include/time.h: Define CLOCK_IDFIELD_SIZE.
1912 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1913 * sysdeps/unix/clock_gettime.c: Likewise.
1914 * sysdeps/unix/clock_settime.c: Likewise.
1915 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1916 clock id for thread CPU clocks.
1918 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1919 for the fstatfs64 syscall.
1920 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1921 the statfs64 syscall.
1923 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1924 __ASSUME_STATFS64 appropriately.
1926 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1927 from statfs structure if it has been filled in.
1929 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1931 (struct statfs64): Likewise.
1932 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1933 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1935 2003-06-24 Richard Henderson <rth@redhat.com>
1937 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1938 the 64-bit syscall name.
1940 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1942 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1943 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
1945 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1946 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1948 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1949 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1952 * sysdeps/alpha/bits/atomic.h: New file.
1954 2003-06-24 Andreas Schwab <schwab@suse.de>
1956 * sysdeps/m68k/fpu/libm-test-ulps: Update.
1958 2003-06-24 Andreas Jaeger <aj@suse.de>
1960 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1961 redeclaration with 32-bit code.
1963 2003-05-19 Ed Connell <ed.connell@sas.com>
1965 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1966 floating point mask.
1967 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1969 2003-06-23 Ulrich Drepper <drepper@redhat.com>
1971 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1972 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1973 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1975 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1976 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
1977 instead of __libc_cleanup_region_*.
1979 2003-06-20 Richard Henderson <rth@redhat.com>
1981 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1982 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1984 2003-06-20 Richard Henderson <rth@redhat.com>
1986 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1987 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1989 (__ASSUME_TIMEVAL64): Set for alpha.
1990 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1991 adjtimex, osf_sigprocmask, old_adjtimex.
1992 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1993 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
1994 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1995 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1996 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1997 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1998 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1999 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2000 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2001 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2002 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2004 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2005 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2006 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2007 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2008 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2009 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2010 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2011 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2012 defer to __syscall_name; error for rt_sigaction.
2013 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2015 2003-06-18 Ulrich Drepper <drepper@redhat.com>
2017 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2018 hasn't happened yet.
2020 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2021 Fix completely broken implementation. The second parameter is of
2022 type struct ucontext*.
2024 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2027 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2028 * sysdeps/generic/dl-hash.h: Likewise.
2030 * sysdeps/generic/memcmp.c: Remove inline from
2031 memcmp_common_alignment and memcmp_not_common_alignment definition.
2033 * intl/localealias.c (read_alias_file): Determine whether line is
2034 read incompletely early, before we modify the line.
2036 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2038 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2039 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2041 2003-06-17 Paul Mackerras <paulus@samba.org>
2043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2048 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2050 2003-06-17 Jakub Jelinek <jakub@redhat.com>
2052 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2054 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2056 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2057 takes care of enabling cancellation.
2059 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2060 cancelable. It's not correct to disable cancellation. Instead of
2063 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2064 and part of the incoming set, create a temporary set without this
2066 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2067 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2069 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2070 returning because seconds==0. Add __builtin_expect.
2072 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2074 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2076 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2079 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
2081 * include/libc-symbols.h: Add static_link_warning macro.
2082 * grp/initgroups.c: Print linker warning if this function
2083 is called in a static linked binary.
2084 * nss/getXXbyYY.c: Likewise.
2085 * nss/getXXbyYY_r.c: Likewise.
2086 * nss/getXXent.c: Likewise.
2087 * nss/getXXent_r.c: Likewise.
2088 * sysdeps/posix/getaddrinfo.c: Likewise.
2090 2003-06-16 Bruno Haible <bruno@clisp.org>
2092 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2094 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2095 (IBM1047): Add alias IBM-1047.
2096 (GBK): Add aliases MS936, WINDOWS-936.
2098 2003-06-16 Jakub Jelinek <jakub@redhat.com>
2100 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2101 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2102 (__xstat64_conv): Change xstat_conv to __xstat_conv.
2104 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2106 * locale/iso-639.def: Update from current official ISO 639.
2108 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2110 2003-06-15 Andreas Jaeger <aj@suse.de>
2112 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2114 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2115 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2116 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2118 * math/tgmath.h (carg): Handle real arguments.
2124 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2125 (tests): Add test-tgmath-ret.
2126 * math/test-tgmath-ret.c: New file.
2128 * math/tgmath.h (ilogb): Return always an int.
2130 2003-06-16 Ulrich Drepper <drepper@redhat.com>
2132 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2133 computation so that prelinking works.
2135 2003-06-15 Ulrich Drepper <drepper@redhat.com>
2137 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2139 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2140 dynamic linker's map.
2142 Fix cancellation point handling wrt exception based cleanup.
2143 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2144 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2146 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2147 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2148 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2150 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2151 sigwait.c, and sigwaitinfo.c with exceptions.
2152 * stdlib/Makefile: Compile system.c with exceptions.
2153 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2154 * termios/Makefile: Compile tcdrain.c with exceptions.
2155 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2157 * sysdeps/generic/pselect.c: Likewise.
2158 * sysdeps/posix/sigpause.c: Likewise.
2159 * sysdeps/posix/system.c: Likewise.
2160 * sysdeps/posix/waitid.c: Likewise.
2161 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2162 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2163 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2164 INTERNAL_SYSCALL to not use push inside asm statement so that
2165 unwind info is correct around the syscall.
2166 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2167 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2169 2003-06-15 Andreas Jaeger <aj@suse.de>
2171 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2174 2003-06-15 Guido Guenther <agx@sigxcpu.org>
2176 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2179 2003-06-14 Ulrich Drepper <drepper@redhat.com>
2181 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2184 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2185 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2188 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2189 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2190 * inet/Makefile (routines): Add inet6_option.
2191 * inet/inet6_option.c: New file.
2192 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2193 inet6_option_init, inet6_option_append, inet6_option_alloc,
2194 inet6_option_next, and inet6_option_find.
2196 2003-06-13 Ulrich Drepper <drepper@redhat.com>
2198 * inet/netinet/ip6.h (struct ip6_ext): Define.
2200 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2202 Fixing gcc 3.3 warnings, part II.
2203 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2204 * elf/dl-load.c (cache_rpath): Don't inline.
2205 * iconvdata/cns11642l2.h: Always inline all functions.
2206 * iconvdata/iso-ir-165.h: Likewise.
2207 * locale/Makefile (aux): Add coll-lookup.
2208 * locale/coll-lookup.c: New file.
2209 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2210 (collseq_table_lookup): Likewise.
2211 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2212 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2214 * posix/regcomp.c: Likewise.
2215 * posix/regexec.c: Likewise.
2216 * locale/programs/3level.h (*_get): Always inline.
2217 * locale/programs/locfile.h: Move definition of handle_copy to...
2218 * locale/programs/locfile.c: ...here.
2219 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2220 (obstack_int32_grow_fast): Likewise.
2221 (utf8_encode): Likewise.
2222 (find_element): Avoid aliasing problems.
2223 (insert_value): Likewise.
2224 (collate_read): Likewise.
2225 * nss/getent.c (print_hosts): Don't inline
2226 (print_networks): Likewise.
2227 (print_shadow): Likewise.
2228 (build_doc): Likewise.
2229 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2231 * posix/regcomp.c (re_set_fastmap): Always inline.
2232 (seek_collating_symbol_entry): Likewise.
2233 (lookup_collation_sequence_value): Likewise.
2234 (build_range_exp): Likewise.
2235 (build_collating_symbol): Likewise.
2236 * posix/regexec.c (acquire_init_state_context): Don't inline.
2237 (clean_state_log_if_need): Likewise.
2238 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2240 (evConsTime): Likewise.
2241 (evAddTime): Likewise.
2242 (evSubTime): Likewise.
2243 (evNowTime): Likewise.
2244 (evTimeSpec): Removed.
2245 (__libc_res_nsend): Avoid aliasing problem.
2246 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2247 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2248 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2250 (_dl_string_platform): Likewise.
2251 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2252 (wcwidth_table_lookup): Likewise.
2253 (wctrans_table_lookup): Likewise.
2255 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2257 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2259 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2261 2003-05-29 Jim Meyering <jim@meyering.net>
2263 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2264 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2265 Suggested by Daniel Yacob <locales@geez.org>.
2267 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2269 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2270 @got notation with @toc.
2271 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2274 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2276 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2277 if only PF_INET address is needed.
2279 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2282 * scripts/config.guess: Update from upstream version.
2283 * scripts/config.sub: Likewise.
2285 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2287 * locale/programs/ld-time.c (time_output): Also copy the era format,
2290 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2292 * posix/transbug.c (run_test): Return 1 for failure.
2293 (do_test): Compare only if run_test is successful.
2295 2003-06-12 Simon Josefsson <jas@extundo.com>
2297 * argp/argp.h [!__THROW]: Define if undefined.
2299 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2301 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2302 more than four parameters.
2303 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2305 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2307 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2308 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2309 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2311 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2313 2003-06-12 Roland McGrath <roland@redhat.com>
2315 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2317 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2319 * posix/regcomp.c (parse_expression): Deliver translation to
2320 build_word_op, and build_charclass.
2321 (build_charclass): Apply translation for character classes too.
2322 (build_word_op): Deliver translation to build_charclass.
2323 * posix/transbug.c: New file.
2324 * posix/Makefile (tests): Add transbug.
2326 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2328 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2329 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2330 'continue' before the others.
2332 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2334 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2335 function [PR libc/5045].
2337 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2340 * time/tzfile.c: Add a couple of __builtin_expect.
2342 Remove warnings gcc 3.3 shows.
2343 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2344 * elf/dl-load.c (fillin_rpath): Likewise.
2345 (add_path): Likewise.
2346 * elf/dl-version.c (find_needed): Always inline.
2347 * elf/do-lookup.c (FCT): Don't inline.
2348 * iconv/Makefile: Extend vpath to intl subdir.
2349 (iconvconfig-modules): Add hash-string.
2350 * iconv/gconv_charset.h (strip): Don't inline.
2351 (upstr): Always inline.
2352 Move __gconv_compare_alias prototype to...
2353 * iconv/gconv_int.h: ...here.
2354 * iconv/gconv_db.c: Don't include gconv_charset.h.
2355 * iconv/gconv_conf.c (add_alias): Don't inline.
2356 (insert_module): Likewise.
2357 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2358 (internal_ucs4_loop_unaligned): Likewise.
2359 (internal_ucs4_loop_single): Likewise.
2360 (ucs4_internal_loop): Likewise.
2361 (ucs4_internal_loop_unaligned): Likewise.
2362 (ucs4_internal_loop_single): Likewise.
2363 (internal_ucs4le_loop): Always inline.
2364 (internal_ucs4le_loop_unaligned): Likewise.
2365 (internal_ucs4le_loop_single): Likewise.
2366 (ucs4le_internal_loop): Likewise.
2367 (ucs4le_internal_loop_unaligned): Likewise.
2368 (ucs4le_internal_loop_single): Likewise.
2369 * iconv/loop.c: Always inline the defined functions.
2370 * iconvdata/cns11642.h: Likewise.
2371 * iconvdata/cns11642l1.h: Likewise.
2372 * iconvdata/euc-kr.c: Likewise.
2373 * iconvdata/gb2312.h: Likewise.
2374 * iconvdata/jis0201.h: Likewise.
2375 * iconvdata/jis0208.h: Likewise.
2376 * iconvdata/jis0212.h: Likewise.
2377 * iconvdata/jisx0213.h: Likewise.
2378 * iconvdata/ksc5601.h: Likewise.
2379 * iconvdata/utf-7.c (base64): Don't inline.
2380 * include/libc-symbols.h (symbol_set_first_element): Add cast
2381 (symbol_set_end_p): Likewise.
2382 * include/set-hooks (RUN_HOOK): Likewise.
2383 * inet/Makefile (aux): Add ifreq.
2384 * intl/Makefile (aux): Add some entries from routines. Add
2386 * intl/hash-string.c: New file.
2387 * intl/hash-string.h: Remove hash_string definition. Declare
2389 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2390 * iconv/iconvconfig.c (new_name): Likewise.
2391 * intl/dcigettext.c (_nl_find_msg): Likewise.
2392 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2393 * io/ftw.c (open_dir_stream): Always inline.
2394 (process_entry): Don't inline.
2395 * locale/findlocale.c: Include gconv_int.h.
2396 * locale/setlocale.c (new_composite_name): Don't inline.
2397 * locale/weight.h (findidx): Always inline.
2398 * locale/weightwc.h (findidx): Likewise.
2399 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2400 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2402 (lr_getc): Always inline.
2403 (lr_ungetc): Likewise.
2404 * nss/nss_files/files-parse.c (parse_list): Likewise.
2405 * stdio-common/Makefile (aux): Add printf-parsemb and
2407 * stdio-common/_itoa.h (_itoa_word): Always inline.
2408 (_fitoa_word, _fitoa): Don't define here, only declare.
2409 * stdio-common/_itoa.c (_iftoa_word): Add here.
2411 * stdio-common/_itowa.h (_itowa_word): Always inline.
2412 * stdio-common/printf-parse.h (read_int): Don't inline.
2413 (find_spec): Don't define.
2414 Declare __find_specmb and __find_specwc.
2415 (parse_one_spec): Don't define.
2416 Declare __parse_one_specmb and __parse_one_specwc.
2417 * stdio-common/printf-parsemb.c: New file.
2418 * stdio-common/printf-parsewc.c: New file.
2419 * stdio-common/vfprintf.c: Update calls to find_spec and
2420 parse_one_spec for new names.
2421 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2422 * stdlib/Makefile (aux): Add grouping and groupingwc.
2423 * stdlib/grouping.c: New file.
2424 * stdlib/groupingwc.c: New file.
2425 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2427 * stdlib/rpmatch.c (try): Don't inline.
2428 * stdlib/strtod.c (round_and_return): Don't line.
2429 (str_to_mpn): Likewise.
2430 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2431 Adjust for name change of correctly_grouped_prefix.
2432 * sysdeps/generic/strtol.c: Adjust for name change of
2433 correctly_grouped_prefix.
2434 * string/strxfrm.c (utf8_encode): Don't inline.
2435 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2436 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2437 * sysdeps/generic/ifreq.c: New file.
2438 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2439 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2440 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2441 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2442 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2443 (fde_split): Likewise.
2444 (fde_merge): Likewise.
2445 (end_fde_sort): Likewise.
2446 (init_object): Likewise.
2447 (binary_search_unencoded_fdes): Likewise.
2448 (binary_search_single_encoding_fdes): Likewise.
2449 (binary_search_mixed_encoding_fdes): Likewise.
2450 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2451 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2452 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2453 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2455 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2456 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2457 Export them. Prepend __ to name.
2458 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2459 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2460 conversion functions.
2461 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2462 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2463 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2464 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2465 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2466 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2467 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2468 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2469 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2470 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2471 to name. Change callers.
2472 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2473 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2475 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2476 * time/tzfile.c (decode): Always inline.
2477 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2478 Remove cast in tomb function call.
2479 * wcsmbs/wcsrtombs.c Likewise.
2480 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2483 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2485 * po/zh_CN.po: Update from translation team.
2487 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2489 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2490 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2492 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2494 * inet/Makefile (aux): Add check_pf.
2495 * include/ifaddrs.h: Add prototype for __check_pf.
2496 * sysdeps/generic/check_pf.c: New file.
2497 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2498 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2499 from no_netlink_support. Export.
2500 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2503 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2505 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2506 from getifaddr calls.
2508 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2510 * sysdeps/unix/sysv/linux/kernel-features.h
2511 (__ASSUME_SETRESGID_SYSCALL): Define.
2512 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2513 instead of __ASSUME_SETRESUID_SYSCALL.
2514 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2516 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2517 inline syscall if __NR_setresuid32 is defined.
2518 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2519 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2520 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2521 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2522 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2523 code handling non-existant setresgid32 syscall with
2524 #if __ASSUME_SETRESGID_SYSCALL == 0.
2526 2003-06-09 Andreas Schwab <schwab@suse.de>
2528 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2529 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2530 $(objpfx)rpc-proto.d.
2531 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2532 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2533 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2535 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2537 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2538 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2539 defined drop compatibility code.
2540 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2541 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2542 defined drop compatibility code.
2543 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2544 setresuid32 syscall directly if possible.
2545 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2546 setresgid32 syscall directly if possible.
2547 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2548 compliant. Don't change sgid.
2549 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2550 compliant. Don't change suid.
2552 * config.h.in: Add have-forced-unwind.
2553 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2555 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2557 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2558 returned status from child matches.
2560 * Makeconfig (gnulib): Add -lgcc_eh once again.
2562 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2564 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2566 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2567 %edx for first parameter. This means no pushl and therefore the
2568 unwind info isn't screwed up.
2570 2003-06-04 Richard Henderson <rth@redhat.com>
2572 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2573 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2574 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2575 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2576 entry sequence and explicit relocs. Add unwind info for sigreturn
2578 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2580 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2581 Annotate some parameters.
2582 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2584 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2586 * include/libc-symbols.h (symbol_set_declare): Use arrays
2587 of unspecified size.
2589 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2591 * config.make.in (ASFLAGS-config): New.
2592 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2593 * configure.in (libc_cv_as_noexecstack): New check.
2594 (ASFLAGS_config): Substitute.
2596 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2598 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2599 hypot, logb): Protect with #ifdef __FAST_MATH__.
2601 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2603 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2604 #ifdef __FAST_MATH__.
2606 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2608 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2609 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2610 * posix/globtest.sh: Adjust for this change.
2612 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2613 to get the actual PID value used in the records passed up.
2614 (getifaddrs): Don't initialize nh.pid here.
2616 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2618 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2621 * po/zh_CN.po: Update from translation team.
2623 * posix/getconf.c (main): Also recognize names without the
2626 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2628 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2630 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2631 ldexpf, ldexpl): Only define if __FAST_MATH__.
2633 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2635 Replace hard-coded offsets into struct sigcontext with generated file.
2636 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2637 * sysdeps/unix/sysv/linux/ia64/Makefile
2638 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2639 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2640 defining SC_* macros here.
2642 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2644 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2646 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2648 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2650 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2652 * test-skeleton.c (main): Request getopt to not reorder the
2655 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2657 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2660 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2662 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2664 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2666 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2668 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2669 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2670 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2672 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2674 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2677 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2679 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2681 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2684 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2686 * scripts/config.guess: Update from master copy.
2687 * scripts/config.sub: Likewise.
2689 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2691 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2692 SETUP_GP64 and friends.
2693 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2694 names in internal_syscall{6,7}.
2695 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2696 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2697 number of syscall arguments.
2698 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2699 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2700 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2702 2003-05-30 Andreas Jaeger <aj@suse.de>
2704 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2707 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2710 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2712 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2715 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2717 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2720 2003-05-11 Andreas Schwab <schwab@suse.de>
2722 * Makerules: Always use -MP together with -MD.
2723 (sed-remove-dotot): Substitute $(..) also at start of line.
2724 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2725 Generated defines with a single compiler call.
2726 Use $(sed-remove-dotdot).
2727 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2728 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2729 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2730 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2731 * sysdeps/unix/sysv/linux/mips/Makefile
2732 ($(objpfx)syscall-%.h): Likewise.
2734 2003-05-28 Roland McGrath <roland@redhat.com>
2736 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2738 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2740 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2742 2003-05-28 Roland McGrath <roland@redhat.com>
2744 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2745 rt_sigprocmask system call.
2746 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2747 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2749 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2751 * include/libc-symbols.h: Define hidden attribute for real also if
2752 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2754 * csu/Makefile: Add rules to build Scrt1.o.
2755 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2756 * sysdeps/x86_64/elf/start.S: Likewise.
2758 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2760 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2761 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2762 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2763 pa_short_int, pa_u_short_int and pa_float.
2765 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2767 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2768 _IO_str_init_static_internal.
2769 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2770 change size argument to _IO_size_t, don't limit sprintf to 64M.
2771 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2772 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2773 _IO_size_t, don't limit swprintf to 256M.
2774 (_IO_wstr_init_readonly): Remove.
2775 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2777 (_IO_wstr_init_readonly): Remove prototype.
2778 * libio/iovsprintf.c (_IO_vsprintf): Use
2779 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2780 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2781 * libio/memstream.c (open_memstream): Likewise.
2782 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2783 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2784 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2785 * stdio-common/tst-sprintf.c (main): Add new test.
2787 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2789 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2790 other implementation in respect of multiple uses of parameter with
2793 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2795 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2796 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2798 2003-05-22 Andreas Jaeger <aj@suse.de>
2800 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2802 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2803 * sysdeps/x86_64/strtok.S: Likewise.
2805 2003-05-20 Guido Guenther <agx@sigxcpu.org>
2807 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2808 to -60 and define SI_TKILL.
2810 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2812 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2813 (feexcp_mask_test): Likewise.
2815 2003-05-21 Ulrich Drepper <drepper@redhat.com>
2817 * locale/programs/locale.c (main): Fix typo in last patch.
2819 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2820 __init_array_start, __init_array_end, __fini_array_start, and
2821 __fini_array_end as hidden.
2823 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
2825 * locale/programs/locale.c (main): Report an error if setlocale()
2826 fails [PR libc/2254].
2828 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2830 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2832 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2835 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2836 LOADARGS_6): Don't error if syscall argument is a string literal.
2837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2838 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2839 LOADARGS_6): Likewise.
2841 2003-05-21 Andreas Jaeger <aj@suse.de>
2843 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2844 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2845 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2847 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2851 * configure.in: Test for asm cfi directives.
2853 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2855 2003-05-17 Andreas Jaeger <aj@suse.de>
2857 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2859 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2861 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2863 * rt/Makefile (tests): Add tst-clock_nanosleep.
2864 * rt/tst-clock_nanosleep.c: New file.
2865 * posix/Makefile (tests): Add tst-nanosleep.
2866 * posix/tst-nanosleep.c: New file.
2868 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2870 * include/features.h (__USE_XOPEN2K): Define also for
2871 _POSIX_C_SOURCE>=200112L.
2873 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2874 SI_TKILL code into SI_USER.
2875 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2877 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2879 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2881 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2882 Remove sym argument, always use refsym.
2883 (__process_machine_rela): Adjust callers.
2884 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2886 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2888 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2890 2003-05-15 Ulrich Drepper <drepper@redhat.com>
2892 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2893 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2894 print numeric values.
2896 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
2898 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2900 2003-05-14 Andreas Schwab <schwab@suse.de>
2902 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2904 2003-05-14 Jakub Jelinek <jakub@redhat.com>
2906 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2907 even if no DT_NEEDED is present.
2909 2003-05-13 David Mosberger <davidm@hpl.hp.com>
2911 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2912 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2913 __sigjmp_save) so we can't keep the saved unat value in a scratch
2914 register (r16). Use loc2 instead.
2916 2003-05-13 Ulrich Drepper <drepper@redhat.com>
2918 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2919 binaries it has to be relocatable.
2921 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2923 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
2925 * sysdeps/powerpc/bits/atomic.h
2926 (__arch_compare_and_exchange_bool_8_rel): Define.
2927 (__arch_compare_and_exchange_bool_16_rel): Define.
2928 (__ARCH_REL_INSTR): Define if not already defined.
2929 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2930 (__arch_atomic_decrement_if_positive_32):
2931 Add "memory" to clobber list.
2932 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2933 (__arch_compare_and_exchange_val_32_rel): Define.
2934 (__arch_atomic_exchange_32): Remove.
2935 (__arch_atomic_exchange_32_acq): Define.
2936 (__arch_atomic_exchange_32_rel): Define.
2937 (atomic_compare_and_exchange_val_rel): Define.
2938 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2939 (atomic_exchange_rel): Define.
2940 * sysdeps/powerpc/powerpc32/bits/atomic.h
2941 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2942 (__arch_compare_and_exchange_bool_32_rel): Define.
2943 (__arch_compare_and_exchange_bool_64_rel): Define.
2944 (__arch_compare_and_exchange_val_64_rel): Define.
2945 (__arch_atomic_exchange_64): Remove.
2946 (__arch_atomic_exchange_64_acq): Define.
2947 (__arch_atomic_exchange_64_rel): Define.
2948 * sysdeps/powerpc/powerpc64/bits/atomic.h
2949 (__arch_compare_and_exchange_bool_32_rel): Define.
2950 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2951 (__arch_compare_and_exchange_bool_64_rel): Define.
2952 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2953 (__arch_compare_and_exchange_val_64_rel): Define.
2954 (__arch_atomic_exchange_64): Remove.
2955 (__arch_atomic_exchange_64_acq): Define.
2956 (__arch_atomic_exchange_64_rel): Define.
2957 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2958 (__arch_atomic_decrement_if_positive_64):
2959 Add "memory" to clobber list.
2960 [!UP](__ARCH_REL_INSTR): Define as lwsync.
2962 2003-05-11 Andreas Schwab <schwab@suse.de>
2964 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2966 2003-05-11 Ulrich Drepper <drepper@redhat.com>
2968 * time/tst-strftime.c (do_test): Add tests for - flag.
2970 2003-05-11 Jim Meyering <jim@meyering.net>
2972 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2973 the space-padded-by-default conversion specifiers, %e, %k, %l.
2975 2003-05-11 Andreas Schwab <schwab@suse.de>
2977 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2979 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2981 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2982 already defined and when really needed.
2983 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2985 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2987 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2988 headers, add defines from kernel header, move it from here...
2989 * inet/netinet/igmp.h: ... to here.
2990 * inet/Makefile (headers): Add netinet/igmp.h.
2991 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2992 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2994 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2996 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2997 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2999 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
3001 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3002 (remove __THROW from possible cancellation points).
3004 2003-05-10 Ulrich Drepper <drepper@redhat.com>
3006 * posix/sched.h (CPU_SETSIZE): Define.
3008 2003-05-09 Ulrich Drepper <drepper@redhat.com>
3010 * Makeconfig (gnulib): Remove -lgcc_eh again.
3012 * posix/sched.h: Change prototypes of sched_getaffinity and
3013 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3014 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3015 * sysdeps/generic/sched_setaffinity.c: Likewise.
3016 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3017 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3018 __CPU_CLR, and __CPU_ISSET.
3019 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3020 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3021 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3023 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3024 (atomic_exchange_rel): New #define.
3025 * sysdeps/ia64/bits/atomic.h: Likewise.
3026 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3028 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3029 * sysdeps/powerpc/bits/atomic.h: Likewise.
3030 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3031 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3032 * sysdeps/x86_64/bits/atomic.h: Likewise.
3033 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3035 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3037 2003-05-08 Ulrich Drepper <drepper@redhat.com>
3039 * malloc/thread-m.h: Remove special handling of thread_atfork if
3040 HAVE_register_atfork_malloc is defined.
3042 2003-05-07 Andreas Jaeger <aj@suse.de>
3044 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3047 2003-05-06 Ulrich Drepper <drepper@redhat.com>
3049 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3050 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3051 * libio/libioP.h: Declare _IO_old_init.
3052 * libio/genops.c (_IO_no_init): Split in two. New function
3055 2003-05-05 Ulrich Drepper <drepper@redhat.com>
3057 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3059 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3061 * include/unistd.h: Declare __libc_enable_secure_decided.
3062 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3063 and AT_EGID. If all found, set __libc_enable_secure and
3064 __libc_enable_secure_decided.
3066 * sysdeps/generic/libc-start.c [!SHARED]: Call
3067 __libc_check_standard_fds after __libc_init_first.
3069 2003-05-05 Roland McGrath <roland@redhat.com>
3071 * Makerules (common-before-compile): New variable.
3072 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3073 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
3074 to after all setting of before-compile.
3076 2003-05-05 Jakub Jelinek <jakub@redhat.com>
3078 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3079 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3080 * sysdeps/powerpc/powerpc32/bits/atomic.h
3081 (__arch_compare_and_exchange_val_64_acq): Likewise.
3082 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3083 (__arch_compare_and_exchange_val_8_acq,
3084 __arch_compare_and_exchange_val_16_acq,
3085 __arch_compare_and_exchange_val_64_acq): Likewise.
3086 * sysdeps/sparc/sparc64/bits/atomic.h
3087 (__arch_compare_and_exchange_val_8_acq,
3088 __arch_compare_and_exchange_val_16_acq): Likewise.
3089 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3090 __arch_compare_and_exchange_val_16_acq,
3091 __arch_compare_and_exchange_val_64_acq): Likewise.
3092 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3093 (__arch_compare_and_exchange_val_64_acq): Likewise.
3094 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3096 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3098 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3099 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3100 Return long instead of int.
3101 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3102 0xfffff001u with -4095UL.
3104 2003-05-05 Andreas Jaeger <aj@suse.de>
3106 * sysdeps/x86_64/fpu_control.h: New from i386.
3108 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3109 Define if not defined.
3111 * sunrpc/Makefile (generated-dirs): New variable.
3112 * resolv/Makefile (generated): New variable.
3114 2003-05-04 Roland McGrath <roland@redhat.com>
3116 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3117 Depend on $(before-compile).
3119 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3120 pattern rule. The implicit rule could be ruled out when $(objpfx)
3121 didn't exist at the time of its consideration (ugh!).
3123 * Makerules (+make-deps): Fix target matching.
3124 Use $(sed-remove-dotdot).
3126 2003-05-03 Ulrich Drepper <drepper@redhat.com>
3128 * nscd/nscd.c (main): Parse config file right after parsing
3129 parameters. Then, if get_stats is true, call receive_print_stats.
3130 Drop parameter from nscd_init call.
3131 (get_stats): New variable.
3132 (parse_opt): Set get_stats, don't call receive_print_stats here.
3133 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
3135 * nscd/connections.c (stat_user, stat_uid): New variables.
3137 (nscd_init): Don't read configuration file here. Drop parameter.
3138 (handle_request): Cleanup handling of non-database lookup requests.
3139 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3140 Get UID of the specified user. Use xstrdup instead of strdup.
3141 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
3143 * nscd/Makefile (nscd-modules): Add xstrdup.
3144 * nscd/nscd.conf: Document stat-user entry.
3146 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
3148 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3151 2003-04-22 Roland McGrath <roland@redhat.com>
3153 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3154 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3155 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3156 * elf/dl-support.c: Update defn.
3157 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3158 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3159 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3160 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3161 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3162 set, set up a link_map for the preloaded, prelinked object.
3164 2003-05-03 Roland McGrath <roland@redhat.com>
3166 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3167 * stdio-common/Makefile: ... not here.
3169 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3170 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3172 2003-05-02 Ulrich Drepper <drepper@redhat.com>
3174 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3176 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3178 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3179 comparing ftab elements.
3180 (_dl_unmap): Fix typo in test.
3181 (_dl_make_fptr): Fix typos introduced in last change.
3183 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3184 original patch. Use non-exported symbols. Mark translatable
3185 strings. Pretty printing.
3187 2003-05-02 Roland McGrath <roland@redhat.com>
3189 * Makerules (do-stamp): Do $(make-target-directory).
3191 2003-04-07 H.J. Lu <hjl@gnu.org>
3193 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3195 2003-04-03 H.J. Lu <hjl@gnu.org>
3197 * sysdeps/ia64/dl-fptr.c: Moved to ...
3198 * sysdeps/generic/dl-fptr.c: Here.
3200 * sysdeps/generic/dl-fptr.h: New.
3201 * sysdeps/ia64/dl-fptr.h: New.
3203 * sysdeps/ia64/dl-symaddr.c: Moved to ...
3204 * sysdeps/generic/dl-symaddr.c: here.
3206 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3207 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3208 (ia64_fdesc): Likewise.
3209 (ia64_fdesc_table): Likewise.
3210 (__ia64_make_fptr): Likewise.
3211 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3212 with _dl_boot_fptr_table.
3213 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3215 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3217 2003-05-01 Roland McGrath <roland@redhat.com>
3219 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3220 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3222 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3223 Use $(make-target-directory).
3224 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3226 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3227 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
3228 (compile-command.s, compile-command.c): Likewise.
3229 ($(objpfx)%.d): All such pattern rules removed.
3230 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3231 ($(common-objpfx)dummy.d): Target removed.
3232 (make-dummy-dep): Variable removed.
3233 (generate-md5): Likewise.
3234 (%.d: %.dt): New pattern rule.
3235 (+depfiles): Use $(wildcard) function to get just existing *.d files
3236 and .d files for existing *.dt files.
3237 (common-clean): Remove all *.d and *.dt files.
3238 (before-compile): Add $(objpfx). when it doesn't exist,
3239 regardless of $(no_deps).
3240 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3241 (rtld-depfiles): Use .os.d instead of .d names.
3242 Include existing *.d files and .d files for existing *.dt files.
3244 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3245 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3247 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3248 Do s-*.d includes only if we have some syscall routines in this subdir.
3250 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3251 @nobits. The former is accepted by gas on any ELF platform.
3253 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3255 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3257 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3259 2003-04-29 Andreas Schwab <schwab@suse.de>
3261 * string/test-strcat.c (do_one_test): Fix attribute name.
3263 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3265 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3266 uc_flags long for all ABIs.
3268 2003-04-30 Andreas Jaeger <aj@suse.de>
3270 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3271 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3272 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3273 Add bi-arch support.
3275 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3277 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3278 (__posix_memalign): Use __memalign_internal instead of memalign.
3280 2003-04-29 Roland McGrath <roland@redhat.com>
3282 * configure.in: Search for AUTOCONF unconditionally.
3283 Just don't complain about missing it under --without-cvs.
3285 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3286 give hidden for [SHARED] and weak for [! SHARED].
3287 (symbol_set_declare): Use that. Never need weak_extern these days.
3288 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3289 Depend on $(..)Makerules.
3291 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3293 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3294 variants of socket, bind, recvmsg, and sendto.
3296 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3298 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3299 * signal/sigaddset.c: Add libc_hidden_def.
3300 * signal/sigdelset.c: Likewise.
3302 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3304 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3305 to the end of the file.
3307 * configure.in: Change __oline__ to $LINENO.
3308 (HAVE_BUILTIN_REDIRECTION): New check.
3309 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3310 * include/libc-symbols.h (libc_hidden_builtin_proto,
3311 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3312 libc_hidden_builtin_ver): Define.
3313 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3314 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3315 strspn, strstr): Add libc_hidden_builtin_proto.
3316 * intl/plural.y: Include string.h.
3317 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3318 libc_hidden_builtin_def.
3319 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3320 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3321 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3322 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3323 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3324 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3325 * sysdeps/alpha/memchr.S (memchr): Likewise.
3326 * sysdeps/alpha/memset.S (memset): Likewise.
3327 * sysdeps/alpha/strcat.S (strcat): Likewise.
3328 * sysdeps/alpha/strchr.S (strchr): Likewise.
3329 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3330 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3331 * sysdeps/alpha/strlen.S (strlen): Likewise.
3332 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3333 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3334 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3335 * sysdeps/arm/memset.S (memset): Likewise.
3336 * sysdeps/arm/strlen.S (strlen): Likewise.
3337 * sysdeps/generic/memchr.c (memchr): Likewise.
3338 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3339 * sysdeps/generic/memmove.c (memmove): Likewise.
3340 * sysdeps/generic/memset.c (memset): Likewise.
3341 * sysdeps/generic/strcat.c (strcat): Likewise.
3342 * sysdeps/generic/strchr.c (strchr): Likewise.
3343 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3344 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3345 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3346 * sysdeps/generic/strlen.c (strlen): Likewise.
3347 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3348 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3349 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3350 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3351 * sysdeps/generic/strspn.c (strspn): Likewise.
3352 * sysdeps/generic/strstr.c (strstr): Likewise.
3353 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3354 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3355 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3356 * sysdeps/i386/i586/memset.S (memset): Likewise.
3357 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3358 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3359 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3360 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3361 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3362 * sysdeps/i386/i686/memset.S (memset): Likewise.
3363 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3364 * sysdeps/i386/memchr.S (memchr): Likewise.
3365 * sysdeps/i386/memset.c (memset): Likewise.
3366 * sysdeps/i386/strchr.S (strchr): Likewise.
3367 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3368 * sysdeps/i386/strlen.c (strlen): Likewise.
3369 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3370 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3371 * sysdeps/i386/strspn.S (strspn): Likewise.
3372 * sysdeps/ia64/memchr.S (memchr): Likewise.
3373 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3374 * sysdeps/ia64/memmove.S (memmove): Likewise.
3375 * sysdeps/ia64/memset.S (memset): Likewise.
3376 * sysdeps/ia64/strcat.S (strcat): Likewise.
3377 * sysdeps/ia64/strchr.S (strchr): Likewise.
3378 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3379 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3380 * sysdeps/ia64/strlen.S (strlen): Likewise.
3381 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3382 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3383 * sysdeps/m68k/memchr.S (memchr): Likewise.
3384 * sysdeps/m68k/strchr.S (strchr): Likewise.
3385 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3386 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3387 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3388 * sysdeps/mips/memset.S (memset): Likewise.
3389 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3390 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3391 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3392 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3393 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3394 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3395 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3396 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3397 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3398 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3399 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3400 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3401 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3402 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3403 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3404 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3405 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3406 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3407 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3408 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3409 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3410 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3411 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3412 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3413 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3414 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3415 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3416 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3417 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3418 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3419 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3420 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3421 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3422 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3423 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3424 * sysdeps/sh/memset.S (memset): Likewise.
3425 * sysdeps/sh/strlen.S (strlen): Likewise.
3426 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3427 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3428 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3429 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3430 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3431 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3432 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3433 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3434 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3435 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3436 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3437 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3438 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3439 * sysdeps/x86_64/memset.S (memset): Likewise.
3440 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3441 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3442 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3443 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3444 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3445 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3446 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3447 * string/string-inlines.c: Move...
3448 * sysdeps/generic/string-inlines.c: ...here.
3449 (__memcpy_g, __strchr_g): Remove.
3450 (__NO_INLINE__): Define before including <string.h>,
3451 undefine after. Include bits/string.h and bits/string2.h.
3452 * sysdeps/i386/i486/string-inlines.c: New file.
3453 * sysdeps/i386/string-inlines.c: New file.
3454 * sysdeps/i386/i486/Versions: Remove.
3455 All GLIBC_2.1.1 symbols moved...
3456 * sysdeps/i386/Versions (libc): ...here.
3458 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3460 * sysdeps/i386/fpu/Makefile: New file.
3461 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3462 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3463 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3464 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3467 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3469 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3470 * nscd/nscd_getpw_r.c: Likewise.
3471 * nscd/nscd_gethst_r.c: Likewise.
3473 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3475 * nscd/pwdcache.c: Initialize .version element in result.
3476 * nscd/grpcache.c: Likewise.
3477 * nscd/pwdcache.c: Likewise.
3479 2003-04-27 Andreas Schwab <schwab@suse.de>
3481 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3484 2003-04-27 Andreas Schwab <schwab@suse.de>
3486 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3488 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3490 * nscd/connections.c (client_queued): New variable.
3491 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3492 threads. Keep track of the number of delays caused because of busy
3494 * nscd/nscd.h: Declare client_queued.
3495 * nscd/nscd_stat.c: Transmit and print client_queued information.
3497 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3499 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3500 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3502 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3504 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3505 tracking of freed memory in static TLS block.
3506 * elf/Makefile: Add rules to build and run tst-tls13.
3507 * elf/tst-tls13.c: New file.
3508 * elf/tst-tlsmod13.c: New file.
3509 * elf/tst-tlsmod13a.c: New file.
3511 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3513 * elf/dl-reloc.c: Pretty printing.
3515 2003-04-26 Roland McGrath <roland@redhat.com>
3517 * Makerules ($(common-objpfx)shlib.lds): New target.
3518 (common-generated): Add it.
3519 (build-shlib, build-module): Use that instead of generating every time.
3520 ($(common-objpfx)libc.so): Depend on it.
3521 (lib%.so rule): Likewise.
3522 (build-module-helper-objlist): Remove %.lds.
3523 (LDSEDCMD-c.so): Variable removed.
3524 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3525 Depend on $(common-objpfx)shlib.lds.
3526 * dlfcn/Makefile ($(test-modules)): Likewise.
3528 2003-04-26 Roland McGrath <roland@frob.com>
3530 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3532 2003-04-26 Andreas Schwab <schwab@suse.de>
3534 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3536 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3538 * nscd/cache.c (cache_search): Keep track of how many chain links
3539 we searched and update table statistics.
3540 (cache_add): Keep track of how many values are in the table.
3541 (prune_cache): Likewise. Keep track of locking success.
3542 Print messages about removed entries in separate pass.
3543 * nscd/connections.c (handle_request): Don't print debug message here.
3544 The caller will do it. Keep track of locking success.
3545 (nscd_run): Print debug message. Also print PID of the client process.
3546 * nscd/nscd.c (start_time): New variable.
3547 (main): Remember start time.
3548 * nscd/nscd.h: Declare start_time.
3549 (struct database): Add more members for new statistics.
3550 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3553 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3555 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3557 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3558 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3559 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3561 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3562 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3563 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3564 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3567 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3569 * nss/getent.c: Implement alternative host database lookup via
3572 * include/ifaddrs.h: New file.
3573 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3575 * resolv/netdb.h: ...here.
3576 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3577 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3578 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3581 2003-04-24 Roland McGrath <roland@redhat.com>
3583 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3585 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3587 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3588 (_dl_allocate_static_tls): ... this function. No longer static.
3589 (CHECK_STATIC_TLS): Adjust.
3590 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3591 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3592 Add SYM_MAP argument.
3593 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3594 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3595 TLS relocs here. #ifdef out relocs which never appear in
3596 .gnu.conflict section from dl-conflict.c processing.
3597 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3598 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3600 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3601 out relocs which never appear in .gnu.conflict section from
3602 dl-conflict.c processing.
3603 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3604 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3605 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3606 Use r_type in RESOLVE macro.
3608 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3610 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3611 NULL. Remove code made redundant by this assumption.
3612 (__yp_unbind): Add call to free. Adjust all callers.
3614 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3617 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3618 user buffer if more groups are found than fit into it.
3620 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3623 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3625 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3626 not rc == errno. Use extend_alloca.
3628 * elf/tst-tls12.c (main): Fix declaration.
3629 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3630 * elf/tst-tlsmod7.c (dummy): Likewise.
3631 * elf/tst-tlsmod8.c (dummy): Likewise.
3632 * elf/tst-tlsmod9.c (dummy): Likewise.
3634 2003-04-22 Roland McGrath <roland@redhat.com>
3636 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3637 (open_not_cancel): Make last argument non-optional.
3638 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3639 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3640 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3642 * include/tls.h: Protect against multiple inclusion.
3644 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3646 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3647 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3648 open_socket. Not static anymore.
3649 (nscd_gethst_r): Use __nscd_open_socket.
3650 * nscd/nscd_getgr_r.c (open_socket): Removed.
3651 (nscd_getgr_r): Use __nscd_open_socket.
3652 * nscd/nscd_getpw_r.c (open_socket): Removed.
3653 (nscd_getpw_r): Use __nscd_open_socket.
3655 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3656 * nscd/connections.c (handle_request): Add cast to avoid warning.
3658 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3660 * signal/sigfillset.c: Moved to...
3661 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3662 do not set the corresponding bit.
3664 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3666 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3667 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3668 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3669 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3670 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3672 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3674 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3675 first syscall parameter to const char*.
3677 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3679 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3681 * configure.in: Add AC_PROG_CXX.
3682 * config.make.in (CXX): Define.
3684 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3685 __len to size_t to avoid warnings.
3687 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3689 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3691 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3693 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3695 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3696 UNREGISTER_ATFORK if d == NULL.
3698 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3699 * dirent/dirent.h: Likewise.
3700 * dlfcn/dlfcn.h: Likewise.
3701 * grp/grp.h: Likewise.
3702 * iconv/iconv.h: Likewise.
3703 * io/fcntl.h: Likewise.
3704 * io/ftw.h: Likewise.
3705 * libio/stdio.h: Likewise.
3706 * misc/sys/mman.h: Likewise.
3707 * misc/sys/select.h: Likewise.
3708 * misc/sys/syslog.h: Likewise.
3709 * misc/sys/uio.h: Likewise.
3710 * posix/spawn.h: Likewise.
3711 * posix/unistd.h: Likewise.
3712 * posix/sys/wait.h: Likewise.
3713 * pwd/pwd.h: Likewise.
3714 * resolv/netdb.h: Likewise.
3715 * rt/aio.h: Likewise.
3716 * shadow/shadow.h: Likewise.
3717 * signal/signal.h: Likewise.
3718 * socket/sys/socket.h: Likewise.
3719 * stdlib/stdlib.h: Likewise.
3720 * streams/stropts.h: Likewise.
3721 * string/string.h: Likewise.
3722 * sysdeps/gnu/utmpx.h: Likewise.
3723 * sysvipc/sys/msg.h: Likewise.
3724 * termios/termios.h: Likewise.
3725 * time/time.h: Likewise.
3726 * wcsmbs/wchar.h: Likewise.
3727 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3729 * misc/daemon.c: Likewise.
3730 * sysdeps/generic/backtracesymsfd.c: Likewise.
3731 * sysdeps/generic/check_fds.c: Likewise.
3732 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3733 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3734 * sysdeps/generic/not-cancel.h: New file.
3735 * csu/Makefile (distribute): Add not-cancel.h.
3736 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3737 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3738 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3739 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3741 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3742 errno and unlink first.
3744 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3746 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3748 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3749 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3751 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3753 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3755 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3756 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3759 * signal/Makefile (tests): Add tst-sigsimple.
3760 * signal/tst-sigsimple.c: New file.
3762 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3764 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3766 (tests): Add tst-tls1[0-2].
3767 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3768 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3769 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3770 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3771 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3772 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3773 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3774 * elf/tst-tls10.c: New test.
3775 * elf/tst-tls11.c: New test.
3776 * elf/tst-tls12.c: New test.
3777 * elf/tst-tls10.h: New file.
3778 * elf/tst-tlsmod7.c: New file.
3779 * elf/tst-tlsmod8.c: New file.
3780 * elf/tst-tlsmod9.c: New file.
3781 * elf/tst-tlsmod10.c: New file.
3782 * elf/tst-tlsmod11.c: New file.
3783 * elf/tst-tlsmod12.c: New file.
3785 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3787 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3788 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3789 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3791 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3793 * posix/regex.h: Include <sys/types.h>.
3795 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3796 The signal number must be checked.
3797 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3798 The signal number must be checked [PR libc/5004].
3800 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3801 don't do anything fancy.
3803 * sysdeps/generic/bits/libc-lock.h: Define
3804 __rtld_lock_define_initialized_recursive.
3806 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3807 contacting nscd if NOT_USENSCD_NAME > 0.
3808 * nss/nsswitch.c (__nss_disable_nscd): New function.
3809 * nss/nsswitch.h: Declare it.
3810 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3811 * nscd/nscd.c (main): Call __nss_disable_nscd.
3813 2003-04-16 Ulrich Drepper <drepper@redhat.com>
3815 * stdio-common/perror.c (perror): We don't need to set the offset
3816 to _IO_pos_bad, this is how streams are initialized.
3818 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3819 (time_output): If necessary, allocate new buffer for .name string if
3820 padding is required.
3822 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3823 before copying. This might leave holes in the list. Adjust
3824 pointers if necessary.
3825 (netlink_receive): Allocate only one block.
3826 (free_netlink_handle): Adjust appropriately.
3827 (getifaddrs): Lots of cleanups.
3829 * string/test-strncpy.c (do_one_test): Mark start and stop as
3831 * string/test-memchr.c: Likewise.
3832 * string/test-memcmp.c: Likewise.
3833 * string/test-memcpy.c: Likewise.
3834 * string/test-memmove.c: Likewise.
3835 * string/test-memset.c: Likewise.
3836 * string/test-strcat.c: Likewise.
3837 * string/test-strchr.c: Likewise.
3838 * string/test-strcmp.c: Likewise.
3839 * string/test-strcpy.c: Likewise.
3840 * string/test-strlen.c: Likewise.
3841 * string/test-strncmp.c: Likewise.
3842 * string/test-strpbrk.c: Likewise.
3843 * string/test-strrchr.c: Likewise.
3844 * string/test-strspn.c: Likewise.
3846 2003-04-15 Roland McGrath <roland@redhat.com>
3848 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3850 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3851 INTUSE(__register_frame_info_bases).
3853 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3855 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3856 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3857 AT_SYSINFO_EH_FRAME. Adjust string width.
3858 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3859 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3860 Add _dl_sysinfo_eh_frame field.
3861 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3862 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3864 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3865 if _dl_sysinfo_eh_frame is non-NULL.
3867 * Makeconfig (gnulib): Add -lgcc_eh.
3869 * config.h.in: Define HAVE_FORCED_UNWIND.
3871 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3873 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3874 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3876 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3878 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3879 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3880 against local symbol in conflict processing.
3882 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3884 * sysdeps/powerpc/bits/atomic.h
3885 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3886 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3888 (__arch_compare_and_exchange_val_32_acq): Define.
3889 (atomic_compare_and_exchange_val_acq): Define.
3891 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3893 * include/atomic.h: Pretty printing.
3895 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3897 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3899 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3901 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3902 * sysdeps/x86_64/bits/atomic.h: Likewise.
3904 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3906 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3907 POPARGS_1 to emit labels for the mov instructions.
3909 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3911 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3913 2003-04-14 Roland McGrath <roland@redhat.com>
3915 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3918 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3920 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3922 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3923 position. Reported by jreiser@BitWagon.com.
3925 2003-04-13 Ulrich Drepper <drepper@redhat.com>
3927 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3928 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3929 * sysdeps/generic/unwind-dw2.c: Likewise.
3930 * sysdeps/generic/unwind-pe.h: Likewise.
3932 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
3934 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3935 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3936 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3937 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3938 (mcontext_t): Make it match the 32-bit mips kernel in o32.
3939 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3940 the mips and mips64 headers.
3941 (struct user): Port to n32/n64.
3943 2003-04-12 Ulrich Drepper <drepper@redhat.com>
3945 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3948 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3949 __ASSUME_VSYSCALL is defined don't add restorer.
3950 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3951 __ASSUME_VSYSCALL for 2.5.53.
3953 2003-04-11 Ulrich Drepper <drepper@redhat.com>
3955 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3956 Remove HAVE_CANCELBUF code. Replace with code using the new
3957 initializers for unwind-based cleanup handling.
3958 * sysdeps/generic/unwind.h: Update from latest gcc version.
3959 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3960 places to allow unwind data generation.
3961 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3962 * sysdeps/x86_64/bits/setjmp.h: Likewise.
3963 * sysdeps/sh/bits/setjmp.h: Likewise.
3964 * sysdeps/powerpc/bits/setjmp.h: Likewise.
3965 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3966 * sysdeps/alpha/bits/setjmp.h: Likewise.
3968 2003-04-11 Roland McGrath <roland@redhat.com>
3970 * csu/tst-empty.c: New file.
3971 * csu/Makefile (tests, tests-static): Add it.
3973 2003-04-11 Jakub Jelinek <jakub@redhat.com>
3975 * string/test-strcmp.c (do_random_tests): Test whether return value
3976 has been promoted to wordsize if the ABI requires caller to do so.
3977 * string/test-strncmp.c (do_random_tests): Likewise.
3978 * string/test-memcmp.c (do_random_tests): Likewise.
3980 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3984 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3985 is not defined, but the prctl constants are.
3987 * string/tester.c (test_strcmp): Fix a typo.
3989 2003-04-09 Ulrich Drepper <drepper@redhat.com>
3991 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3992 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3994 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3996 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3998 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
4000 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
4002 * sysdeps/mips/mips64/memset.S: Likewise.
4003 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
4004 Use t0 instead of t4 as temporary.
4006 2003-04-07 Ulrich Drepper <drepper@redhat.com>
4008 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
4009 feof_unlocked instead of feof.
4010 (add_dir): Ignore trailing whitespace.
4012 2003-04-07 Jakub Jelinek <jakub@redhat.com>
4014 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
4015 sum of SIZE1 and SIZE2 arguments.
4017 2003-04-06 Ulrich Drepper <drepper@redhat.com>
4019 * iconv/iconv_prog.c (process_block): Don't print message about
4020 invalid input if the -c option is used.
4021 (main): Correctly append IGNORE string for -c option.
4023 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4025 * sysdeps/sh/bits/atomic.h: Moved to ...
4026 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
4027 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
4029 (atomic_bit_set, atomic_bit_test_set): Likewise.
4030 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
4032 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4034 2003-04-06 Roland McGrath <roland@redhat.com>
4036 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
4037 restoration as done for setcontext yesterday.
4039 2003-04-06 Jakub Jelinek <jakub@redhat.com>
4041 * elf/rtld.c: Revert 2003-03-14 change.
4042 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
4043 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
4045 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4047 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
4049 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4050 Always initialize *signgamp before returning an error.
4052 2003-04-05 Roland McGrath <roland@redhat.com>
4054 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
4055 below the stack pointer even if switching to the same context we are
4058 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4060 * catgets/gencat.c (read_input_file): Make sure that \n is not
4061 alone on the line before testing for continuation.
4063 * math/test-tgmath.c (compile_test): Initialize c.
4065 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
4067 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
4068 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
4069 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
4071 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
4072 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
4073 structure on n32 as well.
4074 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
4075 data types on n32 and n64.
4077 2003-04-05 Ulrich Drepper <drepper@redhat.com>
4079 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
4082 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
4083 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
4084 instead of __register_atfork.
4086 2003-04-05 Jakub Jelinek <jakub@redhat.com>
4088 * stdio-common/reg-printf.c (__register_printf_function): Calloc
4089 instead of malloc __printf_arginfo_table and __printf_function_table.
4090 Reported by John Reiser <jreiser@BitWagon.com>.
4092 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
4094 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
4095 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
4097 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
4100 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
4102 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
4105 2003-04-03 Roland McGrath <roland@redhat.com>
4107 * configure.in: Fix up use of compilation flags to match the build:
4108 For .s files, $ASFLAGS;
4109 For .S files, $CPPFLAGS $ASFLAGS;
4110 For .c files, $CFLAGS $CPPFLAGS;
4111 when linking, add $LDFLAGS.
4112 * configure: Regenerated.
4114 2003-04-03 Jakub Jelinek <jakub@redhat.com>
4116 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
4117 for atomic_compare_and_exchange_bool_acq failure.
4119 2003-04-03 Ulrich Drepper <drepper@redhat.com>
4121 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
4122 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
4123 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
4124 Remove declaration of pthread_atfork.
4126 2003-04-02 Ulrich Drepper <drepper@redhat.com>
4128 * locale/iso-639.def: Add many more languages from the current ISO 639.
4130 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
4131 * sysdeps/generic/semtimedop.c: New file.
4132 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
4133 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
4134 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4135 * sysvipc/Makefile (routines): Add semtimedop.
4136 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
4137 * sysvipc/sys/sem.h: Declare semtimedop.
4139 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
4141 * configure.in: Check for __register_frame_info in both
4143 * configure: Regenerated.
4145 2003-04-01 Roland McGrath <roland@redhat.com>
4147 * scripts/abilist.awk: Allow dots in soname suffix.
4149 * scripts/abilist.awk (emit): Fix bailout condition.
4151 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4153 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
4156 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
4157 register as input to asm.
4159 2003-04-01 Jakub Jelinek <jakub@redhat.com>
4161 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
4163 2003-04-01 Andreas Jaeger <aj@suse.de>
4165 * configure.in: Output as/ld as name if version is too old.
4167 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
4169 * configure.in: Don't require an installed C library in the test
4170 for ".set" assembler support.
4172 2003-03-31 Roland McGrath <roland@redhat.com>
4174 * signal/tst-sigset.c: New file.
4175 * signal/Makefile (tests): Add it.
4177 2003-03-31 Ulrich Drepper <drepper@redhat.com>
4179 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
4180 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
4181 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
4182 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
4183 (__SIGRTMAX): Adjust accordingly.
4184 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
4185 second compatibility symbol set.
4186 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
4188 2003-03-31 Andreas Schwab <schwab@suse.de>
4190 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
4192 (atomic_decrement_and_test): Fix test.
4194 2003-03-31 Jakub Jelinek <jakub@redhat.com>
4196 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
4197 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
4198 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
4199 * sysdeps/sparc/sparc32/atomicity.h: Removed.
4200 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
4201 * sysdeps/sparc/sparc64/atomicity.h: Removed.
4203 2003-03-30 Roland McGrath <roland@redhat.com>
4205 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
4207 * intl/po2test.sed: Anchor substitution regexps to fix last change.
4209 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
4211 * intl/po2test.sed: Unify the transformations for msgid and msgstr
4212 and remove a useless s/// command.
4214 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4216 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
4217 directive into empty .prologue region to ensure that call-chain
4218 is terminated even for the first instruction.
4220 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
4221 to terminate call-chain right from the get-go.
4223 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
4224 stop bit between compare & branch.
4226 2003-03-29 Ulrich Drepper <drepper@redhat.com>
4228 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
4229 point correctly [PR libc/4993].
4231 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4232 netlink_open calls if netlink is known to not be available.
4234 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4236 * configure.in: Add mips64* support.
4237 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4238 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4239 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4240 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4241 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4242 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4243 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4244 * sysdeps/mips/Implies: Moved wordsize-32 to...
4245 * sysdeps/mips/mips32/Implies: New file.
4246 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4248 (ret, PSEUDO_END): Moved past END.
4249 (PSEUDO): Moved to...
4250 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4251 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4252 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4253 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4254 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4255 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4257 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4260 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4262 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4263 * inet/test-ifaddrs.c: Allow AF_PACKET.
4264 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4265 __ASSUME_NETLINK_SUPPORT.
4267 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4269 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4271 2003-03-26 H.J. Lu <hjl@gnu.org>
4273 * elf/vismod.h (getvarlocal1): Return const char **.
4274 (getvarinmod1): Likewise.
4275 (getvaritcpt1): Likewise.
4276 (getvarlocal2): Likewise.
4277 (getvarinmod2): Likewise.
4278 (getvaritcpt2): Likewise.
4279 (getvaritcpt3): Likewise.
4280 * elf/vismain.c (do_test): Adjusted.
4281 * elf/vismod1.c (getvarlocal1): Return address.
4282 (getvarinmod1): Likewise.
4283 (getvaritcpt1): Likewise.
4284 * elf/vismod2.c (getvarlocal2): Likewise.
4285 (getvarinmod2): Likewise.
4286 (getvaritcpt2): Likewise.
4287 * elf/vismod3.c (getvaritcpt3): Likewise.
4289 2003-03-28 Roland McGrath <roland@redhat.com>
4291 * elf/vismain.c (do_test): Print both addresses when they don't match.
4293 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4294 libname_regexp when parsing names, then produce output only
4295 for those matching the given regexps. In combine mode, save all
4296 stanzas for a final sorting by stanza header at the end.
4297 Emit a blank line between stanzas.
4299 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4300 emit a single output stream with lib name in stanza header lines.
4302 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4304 2003-03-27 Roland McGrath <roland@redhat.com>
4306 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4307 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4309 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4311 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4312 Return old value. Make asm output reg constraint earlyclobber.
4314 (__arch_compare_and_exchange_8_acq): ... this.
4315 (__arch_compare_and_exchange_val_16_acq):
4316 Return old value. Make asm output reg constraint earlyclobber.
4318 (__arch_compare_and_exchange_16_acq): ... this.
4319 (__arch_compare_and_exchange_val_32_acq):
4320 Return old value. Make asm output reg constraint earlyclobber.
4322 (__arch_compare_and_exchange_32_acq): ... this.
4323 (__arch_compare_and_exchange_val_64_acq):
4325 (__arch_compare_and_exchange_64_acq): ... this.
4326 (atomic_exchange_and_add): Use local variables and
4327 __arch_compare_and_exchange_val_64_acq.
4328 (atomic_add): Likewise.
4329 (atomic_add_negative, atomic_add_zero): Use local variables.
4331 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4333 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4335 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4337 * Makefile: Remove libmd5crypt goal.
4339 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4341 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4342 special handling of relocations against local symbols.
4344 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4346 * sysdeps/powerpc/bits/atomic.h
4347 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4348 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4349 Define PPC64 specific version.
4350 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4351 Change (mem) constraint to "b".
4352 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4353 Replace addi with add. Change (value) contraint to "r".
4354 Change (mem) constraint to "b".
4355 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4356 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4357 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4358 (__arch_atomic_decrement_if_positive_32): New macro.
4359 (atomic_decrement_if_positive): Use __arch* macros.
4361 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4363 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4365 2003-03-27 Roland McGrath <roland@redhat.com>
4367 * scripts/rpm2dynsym.sh: New file.
4368 * Makefile (distribute): Add it.
4370 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4372 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4373 ar.unat before returning. Add missing .mem.offset directives
4374 to ensure file gets assembled without warnings.
4375 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4377 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4379 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4380 Return -1 instead of 0 if clock_getres failed.
4382 2003-03-27 Roland McGrath <roland@redhat.com>
4384 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4385 header lines and write out foo.symlist files for each foo.so.NN listed.
4387 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4388 This symbol is exported, and we don't want to hide it.
4389 Add libc_hidden_proto instead.
4390 (_IO_file_jumps): Add libc_hidden_proto.
4391 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4393 * libio/fileops.c (_IO_file_jumps): Likewise.
4394 * libio/stdfiles.c: Don't use INTUSE on them.
4395 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4396 * libio/iofopen.c (__fopen_internal): Likewise.
4397 * libio/freopen.c (freopen): Likewise.
4398 * libio/freopen64.c (freopen64): Likewise.
4399 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4401 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4402 Ignore exit status from diff.
4403 * configure.in (enable_check_abi): Document possible value "warn".
4404 Change default to no for now.
4405 * configure: Regenerated.
4407 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4408 macro calls and a #include <stub-tag.h> at the end.
4409 * Makerules ($(objpfx)stubs): Tweak sed commands.
4411 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4412 caller column for *xattr syscalls, since they are in sysdeps/generic.
4414 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4415 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4417 2003-03-26 Roland McGrath <roland@redhat.com>
4419 * Makerules (check-abi-config): Use /thread instead of /tls when
4420 use-thread and not just use-tls is set.
4422 * Makerules (update-abi): Put quotes around $(update-abi-config).
4424 * elf/Makefile (check-abi): Depend on check-abi-ld.
4425 (update-abi): Depend on update-abi-ld.
4427 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4429 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4430 do not check for errors (unless testing for 32bit variant).
4431 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4433 2003-03-27 Philip Blundell <philb@gnu.org>
4435 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4436 unconditional mov. Remove nop.
4438 * sysdeps/unix/sysv/linux/kernel-features.h
4439 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4440 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4441 when __ASSUME_VFORK_SYSCALL is defined.
4442 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4443 __ASSUME_MMAP2_SYSCALL.
4444 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4445 __ASSUME_REALTIME_SIGNALS.
4447 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4449 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4450 only if DL_NO_COPY_RELOCS is not defined.
4451 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4453 2003-03-26 Roland McGrath <roland@redhat.com>
4455 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4456 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4457 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4458 (sysdep_routines): Add stub-syscalls.
4459 ($(objpfx)stub-syscalls.c): New target.
4460 (generated): Add stub-syscalls.c.
4462 * tls.make.c: Also define use-tls according to USE_TLS macro.
4464 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4466 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4467 no-op padding element.
4468 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4469 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4470 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4471 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4473 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4475 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4476 condition check for the return value of getgroups32.
4478 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4480 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4482 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4483 PSEUDO_END_NOERRNO): Define.
4484 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4485 Define to PSEUDO_END.
4487 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4489 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4491 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4493 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4494 * iconvdata/bug-iconv4.c: New file.
4495 * iconvdata/Makefile (tests): Add bug-iconv4.
4497 2003-03-25 H.J. Lu <hjl@gnu.org>
4499 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4501 (_dl_lookup_versioned_symbol): Likewise.
4503 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4505 * csu/tst-atomic.c (do_test): Add some new
4506 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4507 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4508 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4509 Prefix local variable so that it doesn't clash with the one
4510 in atomic_exchange_and_add.
4511 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4513 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4514 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4515 value into register.
4516 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4517 Cast newval to long.
4518 * sysdeps/x86_64/bits/atomic.h
4519 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4521 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4522 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4523 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4524 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4526 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4528 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4529 bit from backtrace addresses.
4531 2003-03-21 Andreas Schwab <schwab@suse.de>
4533 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4536 2003-03-25 Roland McGrath <roland@redhat.com>
4538 * config.make.in (enable-check-abi): New variable from configure.
4539 * configure.in (enable_check_abi): New substituted variable,
4540 controlled by --{enable,disable}-check-abi (default yes).
4541 * configure: Regenerated.
4542 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4543 on check-abi dependency.
4545 2003-03-26 Andreas Schwab <schwab@suse.de>
4547 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4548 * include/atomic.h: Likewise.
4550 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4552 2003-03-25 Roland McGrath <roland@redhat.com>
4554 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4555 (__arch_atomic_exchange_64): New macro.
4556 (atomic_exchange): Use them.
4557 (__arch_atomic_exchange_and_add_32): New macro.
4558 (__arch_atomic_exchange_and_add_64): New macro.
4559 (atomic_exchange_and_add): Use them.
4560 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4562 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4564 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4566 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4568 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4569 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4570 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4571 to decide whether to add padding.
4572 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4573 to decide whether to add padding.
4574 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4575 old_kernel_sigaction): Likewise.
4577 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4579 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4580 atomic_add_zero were supposed to do.
4581 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4584 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4585 This matches the new timer implementation.
4586 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4588 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4590 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4591 timer info for what the kernel provides these days.
4592 (struct sigevent): Add _tid field.
4593 Define SIGEV_THREAD_ID.
4594 Remove struct __pthread_attr_s forward declaration.
4595 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4596 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4597 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4598 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4600 * Versions.def (librt): Add GLIBC_2.3.3.
4602 * abilist/libpthread.abilist: Update for nptl.
4604 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4606 * inet/netinet/in.h: Add IPPROTO_SCTP.
4608 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4610 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4612 2003-03-24 Philip Blundell <philb@gnu.org>
4614 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4615 Remove a1 from clobber list.
4617 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4619 * timezone/antarctica: Update from tzdata2003a.
4620 * timezone/asia: Likewise.
4621 * timezone/australasia: Likewise.
4622 * timezone/europe: Likewise.
4623 * timezone/iso3166.tab: Likewise.
4624 * timezone/northamerica: Likewise.
4625 * timezone/southamerica: Likewise.
4626 * timezone/zone.tab: Likewise.
4628 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4630 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4632 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4634 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4635 unwanted expansion by definining to ret. Patch by Ian Wienand.
4637 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4638 the parameter description to denote no error checking. Generate
4639 appropriate pseudo asm code.
4640 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4641 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4642 getpgrp, and getppid with 'E'.
4643 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4644 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4645 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4646 * sysdeps/unix/sysdep.h: Likewise.
4647 * sysdeps/unix/alpha/sysdep.h: Likewise.
4648 * sysdeps/unix/sparc/sysdep.h: Likewise.
4649 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4650 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4651 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4652 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4653 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4654 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4655 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4656 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4657 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4658 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4659 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4661 2003-03-23 Roland McGrath <roland@redhat.com>
4663 * Makeconfig (+includes): Don't use $(last-includes).
4665 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4667 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4668 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4670 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4672 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4673 * sysdeps/arm/libm-test-ulps: Update.
4674 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4675 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4676 * sysdeps/mips/fpu/libm-test-ulps: Update.
4677 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4678 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4679 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4680 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4681 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4682 * sysdeps/s390/fpu/libm-test-ulps: Update.
4683 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4685 2003-03-22 Roland McGrath <roland@redhat.com>
4687 * include/atomic.h: Put parens around all macro arguments.
4688 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4689 (atomic_compare_and_exchange_val_acq): Use it.
4690 (atomic_compare_and_exchange_bool_acq): Likewise.
4691 (atomic_increment_and_test): Invert sense of test.
4692 (atomic_decrement_and_test): Likewise.
4693 * csu/tst-atomic.c: Update those tests to match.
4695 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4697 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4698 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4699 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4700 __oldval variable in the macro, since it might be macro argument.
4701 (atomic_decrement_if_positive): Initialize __memp, remove setting
4702 of non-existent variable.
4703 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4704 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4705 using atomic_compare_and_exchange_val_acq.
4706 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4707 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4709 (__arch_compare_and_exchange_bool_8_acq): ... this.
4710 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4711 (__arch_compare_and_exchange_bool_16_acq): ... this.
4712 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4714 (__arch_compare_and_exchange_bool_32_acq): ... this.
4715 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4717 (__arch_compare_and_exchange_bool_64_acq): ... this.
4718 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4719 variables types instead of assuming int.
4720 Change prefix of local variables to __arch.
4721 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4723 (atomic_compare_and_exchange_val_acq,
4724 atomic_compare_and_exchange_bool_acq): Define.
4726 * csu/tst-atomic.c: New test.
4727 * csu/tst-atomic-long.c: New test.
4728 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4730 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4732 * sysdeps/s390/Versions: Add trailing newline.
4734 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4735 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4737 2003-03-22 Andreas Schwab <schwab@suse.de>
4739 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4741 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4742 * sysdeps/m68k/m68020/atomicity.h: Removed.
4744 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4746 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4747 data structures and macros. Protect from multiple inclusion.
4749 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4752 2003-03-21 Andreas Jaeger <aj@suse.de>
4754 * sysdeps/i386/fpu/libm-test-ulps: Update.
4756 * math/libm-test.inc (tgamma_test): Recompute some constants with
4757 36 digits precision.
4758 (lgamma_test): Likewise.
4759 (ccos_test): Likewise.
4760 (ccosh_test): Likewise.
4761 (clog10_test): Likewise.
4762 (csin_test): Likewise.
4763 (csinh_test): Likewise.
4764 (ctan_test): Likewise.
4765 (ctanh_test): Likewise.
4767 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4769 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4771 2003-03-21 Roland McGrath <roland@redhat.com>
4773 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4774 constraint to permit non-constant BIT argument.
4775 (atomic_bit_test_set): Likewise.
4776 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4777 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4778 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4779 or "r" constraint otherwise.
4781 * configure.in: Move AC_PROG_CC and other program-finding before all
4783 * configure: Regenerated.
4785 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4787 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4788 unaligned copying of 8-15 bytes. From Chris Demetriou
4789 <cgd@broadcom.com>. Fix label names.
4790 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4791 change as to memcpy.S.
4792 * sysdeps/mips/memcpy.S: Formatting changes.
4793 * sysdeps/mips/memset.S: Likewise.
4795 2003-03-21 Roland McGrath <roland@redhat.com>
4797 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4799 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4801 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4802 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4804 2003-03-21 Roland McGrath <roland@redhat.com>
4806 * sysdeps/i386/i486/bits/atomic.h
4807 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4808 version of the macro to avoid compile-time warnings.
4809 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4810 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4811 (atomic_increment, atomic_decrement): Likewise.
4813 2003-03-21 Ulrich Drepper <drepper@redhat.com>
4815 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4816 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4818 2003-03-21 Roland McGrath <roland@redhat.com>
4820 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4822 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4824 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4825 atomic_compare_and_exchange_val_rel,
4826 atomic_compare_and_exchange_bool_acq, and
4827 atomic_compare_and_exchange_bool_rel instead of
4828 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4829 * sysdeps/i386/i486/bits/atomic.h: Define
4830 __arch_compare_and_exchange_val_*_acq instead of
4831 __arch_compare_and_exchange_*_acq.
4832 * sysdeps/x86_64/bits/atomic.h: Likewise.
4833 * sysdeps/ia64/bits/atomic.h: Define
4834 __arch_compare_and_exchange_bool_*_acq instead of
4835 __arch_compare_and_exchange_*_acq.
4836 * sysdeps/powerpc/bits/atomic.h: Likewise.
4837 * sysdeps/s390/bits/atomic.h: Likewise.
4838 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4839 * malloc/set-freeres.c: Likewise.
4840 * nscd/cache.c: Likewise.
4841 * stdlib/cxa_finalize.c: Likewise.
4842 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4844 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4846 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4847 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4848 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4850 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4851 into high and low halves on n64.
4852 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4853 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4854 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4856 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4858 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4859 correct atomic_compare_and_exchange_acq semantics.
4861 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4863 * sysdeps/mips/ieee754.h: Remove excess #endif.
4865 2003-03-20 Roland McGrath <roland@redhat.com>
4867 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4868 variable. Remove superfluous memory clobber.
4870 * include/atomic.h: Syntax braino fix.
4872 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4873 in decimal. Don't bail if niced at start. Just check that nice call
4874 bumps the total at all.
4876 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4878 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4879 including pc, gp, sp and fp, as long long.
4880 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4881 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4882 Add gp argument, and set gp in the jmpbuf to it.
4883 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4885 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4887 * include/atomic.h: Define atomic_exchange and
4888 atomic_decrement_if_positive if not already defined. Add some
4890 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4891 * sysdeps/x86_64/bits/atomic.h: Likewise.
4892 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4893 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4894 atomic_exchange, atomic_exchange_and_add, and
4895 atomic_decrement_if_positive
4897 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4899 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4900 with a single instruction.
4902 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4904 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4906 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4907 Word before comparing with gotsym. Take reloc_addr argument as
4908 void*. Remove the code added for the compiler to drop any
4909 alignment assumptions.
4911 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4913 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4914 * include/atomic.h: New file.
4915 * sysdeps/i386/i486/bits/atomic.h: New file.
4916 * sysdeps/x86_64/bits/atomic.h: New file.
4917 * sysdeps/s390/bits/atomic.h: New file.
4918 * sysdeps/sh/bits/atomic.h: New file.
4919 * sysdeps/ia64/bits/atomic.h: New file.
4920 * sysdeps/powerpc/bits/atomic.h: New file.
4921 * sysdeps/generic/bits/atomic.h: New file.
4922 * sysdeps/i386/i486/atomicity.h: Removed.
4923 * sysdeps/x86_64/atomicity.h: Removed.
4924 * sysdeps/s390/s390-32/atomicity.h: Removed.
4925 * sysdeps/s390/s390-64/atomicity.h: Removed.
4926 * sysdeps/ia64/atomicity.h: Removed.
4927 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4928 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4929 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
4930 use of macros from atomicity.h to new names and semantics.
4931 * gmon_mcount.c: Likewise.
4932 * malloc/set-freeres.c: Likewise.
4933 * nscd/cache.c: Likewise.
4934 * stdlib/cxa_finalize.c: Likewise.
4935 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4937 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4939 * sysdeps/mips/ieee754.h: New file, suitable to replace both
4940 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4941 mips-specific for now.
4943 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4945 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
4946 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
4947 * stdlib/tst-strtod.c: Add test for the bug.
4949 * posix/tst-nice.c (do_test): Remove invalid of return value.
4950 Don't run test if initial level != 0.
4952 2003-03-19 Amos Waterland <apw@us.ibm.com>
4954 * posix/tst-nice.c: New file.
4955 * posix/Makefile (tests): Add tst-nice.
4957 2003-03-18 Roland McGrath <roland@redhat.com>
4959 * abilist: New directory of libfoo.abilist files maintained using
4960 scripts/merge-abilist.awk and "make update-abi" rules.
4961 * Makefile (distribute): Add abilist/*.abilist.
4962 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4963 Depend on check-abi.
4965 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4966 * configure: Regenerated.
4968 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4970 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4972 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4975 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
4977 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4979 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4981 * Versions.def: Add GLIBC_2.3.3 for libpthread.
4983 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4985 * sysdeps/generic/libc-start.c [!SHARED &&
4986 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4988 2003-03-17 Roland McGrath <roland@redhat.com>
4990 * include/ctype.h: Revert last change.
4992 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4994 * argp/tst-argp1.c: Use test-skeleton.c.
4995 * locale/tst-C-locale.c: Likewise.
4997 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
4999 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
5000 * sysdeps/mips/mips64/n64/Implies: New file.
5001 * sysdeps/mips/mips64/n64/Makefile: New file.
5002 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
5003 * sysdeps/mips/mips64/n32/Implies: New file.
5004 * sysdeps/mips/mips64/n32/Makefile: New file.
5005 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
5006 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
5007 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
5008 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
5009 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
5010 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
5011 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
5012 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
5013 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
5014 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
5015 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
5016 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
5017 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
5018 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
5020 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
5021 lib64 for mips64/n64 and lib32 for mips64/n32.
5022 (ldd_rewrite_script): Needed for all mips64 configurations.
5023 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5024 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
5025 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
5027 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
5030 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
5031 asm/unistd.h into asm-unistd.h.
5032 * sysdeps/unix/sysv/linux/mips/configure: Generated.
5033 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
5035 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
5036 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
5039 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
5040 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
5041 long type for registers on n32.
5043 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
5045 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
5046 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
5047 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
5048 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
5049 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
5050 * sysdeps/unix/mips/brk.S: Likewise.
5051 * sysdeps/unix/mips/sysdep.S: Likewise.
5052 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5053 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
5054 * sysdeps/mips/sys/ucontext.h: Likewise.
5055 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
5056 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
5057 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
5058 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5059 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
5060 * sysdeps/mips/mips64/setjmp.S: Likewise.
5061 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
5062 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
5065 2003-03-16 Ulrich Drepper <drepper@redhat.com>
5067 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
5068 not at function level.
5069 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
5071 2003-03-15 Roland McGrath <roland@redhat.com>
5073 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
5074 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
5075 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
5076 * nis/nis_table.c (__create_ib_request): Likewise.
5078 * posix/fnmatch_loop.c: Add casts for signedness.
5079 * nss/nss_files/files-hosts.c: Likewise.
5080 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5081 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
5082 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
5084 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
5085 get errors into the log file.
5086 (libc_cv_broken_visibility_attribute): Likewise.
5087 (libc_cv_broken_alias_attribute): Likewise.
5088 (libc_cv_asm_weak_directive): Likewise.
5089 (libc_cv_need_minus_P): Likewise.
5090 (libc_cv_dot_text): Likewise.
5091 (libc_cv_asm_global_directive): Likewise.
5092 (libc_cv_asm_type_prefix): Likewise.
5093 * configure: Regenerated.
5095 * nscd/cache.c (cache_search): Give first arg type `request_type'.
5096 * nscd/nscd.h: Update decl.
5098 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
5099 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5100 * elf/dl-close.c (_dl_close): Likewise.
5101 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
5102 * io/fts.c (fts_build): Likewise.
5103 * elf/cache.c (add_to_cache): Likewise.
5104 * locale/programs/locarchive.c (show_archive_content): Likewise.
5106 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
5108 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
5110 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
5112 2003-03-15 Ulrich Drepper <drepper@redhat.com>
5114 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
5115 code for most parts.
5117 2003-03-15 Roland McGrath <roland@redhat.com>
5119 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
5120 * sysdeps/unix/sysv/linux/system.c: ... here.
5121 (FORK): Don't #define if already #define'd.
5122 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
5123 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
5124 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
5126 * dlfcn/tst-dlinfo.c: New file.
5127 * dlfcn/Makefile (tests): Add tst-dlinfo.
5128 ($(objpfx)tst-dlinfo): New target.
5130 * dlfcn/dlinfo.c: New file.
5131 * dlfcn/Makefile (libdl-routines): Add it.
5132 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
5133 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
5134 [__USE_GNU] (RTLD_DI_*): New enum constants.
5135 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
5136 * elf/dl-load.c (cache_rpath): New inline function.
5137 (_dl_map_object): Use it.
5138 (_dl_rtld_di_serinfo): New function.
5139 * sysdeps/generic/ldsodefs.h: Declare it.
5140 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
5142 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
5143 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
5144 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
5145 (__libc_start_main): Just call the generic one for most of the work.
5147 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
5148 static function by that name instead of BP_SYM (__libc_start_main).
5149 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
5150 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
5151 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
5153 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
5154 Use this macro for extra AT_* cases.
5155 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
5156 New macro, guts from ...
5157 (__aux_init_cache): ... here, function removed.
5158 (DL_PLATFORM_INIT): Don't define this.
5160 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
5161 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
5163 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
5165 2003-03-14 Roland McGrath <roland@redhat.com>
5167 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
5169 2003-03-14 Jakub Jelinek <jakub@redhat.com>
5171 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
5173 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5174 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
5176 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5178 * sysdeps/mips/fpu/bits/mathdef.h: New.
5179 (__NO_LONG_DOUBLE_MATH): Define for o32.
5181 * sysdeps/mips/sys/asm.h: Formatting changes.
5182 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
5183 (CPADD): Define for all of them.
5184 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
5185 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
5186 NARGSAVE): Define per ABI spec.
5187 (END): Don't redefine.
5188 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
5189 LONG_SRAV): Remove duplicate definitions.
5190 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
5191 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
5192 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
5193 (PTR_LA): Define for all 3 ABIs.
5195 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
5196 (elf_machine_matches_host): Prevent linking of o32 and n32
5198 (elf_machine_dynamic): Document assumption on $gp.
5199 (STRINGXP, STRINGXV, STRINGV_): New macros.
5200 (elf_machine_load_address): Use them to stringize PTR_LA and
5202 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
5203 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
5204 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
5205 (__dl_runtime_resolve): Cast the symtab initializer to the
5207 (RTLD_START): Use it. Adjust it for all 3 ABIs.
5208 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
5209 Handle 64-bit R_MIPS_REL composite relocation and accept
5210 R_MIPS_64 relocations to shift addend size to 64 bits.
5211 Document assumption regarding local GOT entries. Document
5212 backward-compatibility departing from the ABI behavior in
5213 applying relocations that reference section symbols, no longer
5214 used. Support relocations to mis-aligned offsets.
5215 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
5217 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
5219 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
5220 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
5221 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
5222 restore_rt functions. Use them.
5224 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
5225 .set mips2 on new abis.
5227 2003-03-13 Ulrich Drepper <drepper@redhat.com>
5229 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
5230 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5231 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5232 * sysdeps/posix/pathconf.c: Likewise.
5233 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5234 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5235 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5237 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5240 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5242 * include/gmp.h: Include/gmp-mparam.h.
5243 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5246 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5247 ELF_MACHINE_NO_RELA is set.
5248 * elf/rtld.c (dl_main): No prelink support for REL-only.
5250 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5251 FLAG_MIPS64_LIBN64): Define.
5252 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5254 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5255 * sysdeps/mips/memset.S: Likewise.
5256 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5257 depending on the ABI.
5259 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5260 Don't .set mips2 on new abi.
5261 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5263 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5265 2003-03-13 Roland McGrath <roland@redhat.com>
5267 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5268 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5270 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5272 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5274 * stdlib/fpioconst.c: Likewise.
5275 * stdlib/strtod.c: Likewise.
5277 * sysdeps/mips/add_n.S: Use L macro for local labels.
5278 * sysdeps/mips/addmul_1.S: Likewise.
5279 * sysdeps/mips/lshift.S: Likewise.
5280 * sysdeps/mips/memcpy.S: Likewise.
5281 * sysdeps/mips/memset.S: Likewise.
5282 * sysdeps/mips/mul_1.S: Likewise.
5283 * sysdeps/mips/rshift.S: Likewise.
5284 * sysdeps/mips/sub_n.S: Likewise.
5285 * sysdeps/mips/submul_1.S: Likewise.
5286 * sysdeps/mips/mips64/add_n.S: Likewise.
5287 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5288 * sysdeps/mips/mips64/lshift.S: Likewise.
5289 * sysdeps/mips/mips64/mul_1.S: Likewise.
5290 * sysdeps/mips/mips64/rshift.S: Likewise.
5291 * sysdeps/mips/mips64/sub_n.S: Likewise.
5292 * sysdeps/mips/mips64/submul_1.S: Likewise.
5293 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5294 conventions. Define END as in sys/asm.h.
5295 * sysdeps/unix/mips/sysdep.S: Likewise.
5296 * sysdeps/unix/mips/wait.S: Likewise.
5297 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5299 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5300 Cast shifted values that may be too narrow to mp_limb_t.
5301 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5303 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5305 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5306 (__mpn_extract_long_double): Likewise.
5307 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5308 (__mpn_construct_long_double): Likewise.
5309 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5310 (__mpn_extract_long_double): Likewise.
5311 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5312 (__mpn_construct_long_double): Likewise.
5314 2003-03-13 Roland McGrath <roland@redhat.com>
5316 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5317 entries in the map file match too.
5319 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5321 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5322 label .Lthread_start since current binutils don't allow branches
5323 to globally visible symbols.
5325 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5327 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5328 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5329 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5330 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5331 clobbered by the syscall.
5332 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5333 ASM_ARGS_6): Change constraints from r to index of corresponding
5335 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5336 ptid and ctid to match kernel.
5337 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5339 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5341 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5342 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5343 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5345 2003-03-11 Roland McGrath <roland@redhat.com>
5347 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5348 Check SYM_MAP rather than SYM as definedness check.
5349 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5350 Don't handle R_PPC64_REL24 reloc.
5351 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5353 * sysdeps/powerpc/powerpc64/dl-machine.h
5354 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5355 block, so we cover all the TPREL16* flavors without 6 ||s.
5356 [USE_TLS] (elf_machine_tprel): New function.
5357 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5358 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5359 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5361 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5363 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5364 instead of jalr to invoke subroutine so restoring the $gp register
5367 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5369 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5370 to __NR_pread if not defined.
5371 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5373 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5375 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5376 * sysdeps/unix/sysv/linux/kernel-features.h
5377 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5380 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5382 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5383 allocate space even for the trailing '/'.
5384 Reported by John Reiser <jreiser@BitWagon.com>.
5386 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5387 ASM_CLOBBERS_6): Define.
5388 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5389 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5390 to match IA-32 order.
5391 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5393 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5396 Copy extra params for NPTL to registers used in clone syscall.
5398 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5400 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5401 call names for pread and pwrite.
5403 2003-03-10 Roland McGrath <roland@redhat.com>
5405 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5406 * dlfcn/dladdr1.c: New file.
5407 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5408 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5409 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5410 a const ElfNN_Sym ** to fill in.
5411 * include/dlfcn.h: Update decl. Include <link.h>.
5412 * dlfcn/dladdr.c (dladdr): Update caller.
5413 * malloc/mtrace.c (tr_where): Likewise.
5414 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5415 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5416 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5417 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5419 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5421 * sysdeps/unix/Makefile (compile-syscall): New variable.
5422 Pass -g0 to compiler for assembling syscall stubs from stdin.
5424 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5425 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5426 Define these to do nothing.
5428 * configure.in: New check for -g on .S files.
5429 * configure: Regenerated.
5430 * config.make.in (have-cpp-asm-debuginfo): New variable.
5431 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5432 * Makeconfig (ASFLAGS): New variable, if undefined and
5433 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5434 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5436 2003-03-09 Roland McGrath <roland@redhat.com>
5438 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5439 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5441 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5443 * po/fi.po: Update from translation team.
5444 * po/ca.po: Likewise.
5445 * po/da.po: Likewise.
5447 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5449 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5451 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5453 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5455 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5457 2003-03-07 Roland McGrath <roland@redhat.com>
5459 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5460 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5462 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5464 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5465 stubs, we have INLINE_SYSCALL.
5466 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5469 2003-03-06 Roland McGrath <roland@redhat.com>
5471 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5472 permanent extent and add a comment about testing its implicit teardown.
5474 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5476 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5478 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5480 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5481 reversed __builtin_expect expectation.
5483 2003-03-05 Roland McGrath <roland@redhat.com>
5485 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5486 * libio/swscanf.c: Likewise.
5487 * libio/swprintf.c: Likewise.
5489 2003-03-04 Roland McGrath <roland@redhat.com>
5491 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5492 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5493 R_PPC64_JMP_SLOT as well as TLS cases.
5494 (BIT_INSERT): Move parenthesis where it ought to have been.
5495 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5497 * posix/confstr.c (confstr): Correct STRING_LEN values for
5498 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5499 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5501 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5503 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5505 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5507 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5510 * po/sv.po: Update from translation team.
5512 2003-03-04 Andreas Jaeger <aj@suse.de>
5513 Ulrich Drepper <drepper@redhat.com>
5515 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5517 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5519 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5521 * po/tr.po: Update from translation team.
5523 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5524 are holes between the segments. Only call mprotect to set
5525 proection to PROT_NONE if there are some.
5527 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5530 * include/sched.h (__clone2): Use ... instead of adding all the
5533 2003-03-03 Roland McGrath <roland@redhat.com>
5535 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5537 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5538 PI_STATIC_AND_HIDDEN.
5540 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5542 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5544 * include/sched.h: Update clone2 prototype.
5546 2003-03-03 Andreas Jaeger <aj@suse.de>
5548 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5549 (llrint): Use it to correct return type.
5552 (llround): Likewise.
5554 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5556 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5559 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5560 if ccs parameter isn't valid. Reported by Andreas Schwab.
5562 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5564 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5565 for system call numbers > 255.
5566 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5567 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5568 INTERNAL_SYSCALL): Likewise.
5569 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5570 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5571 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5572 INTERNAL_SYSCALL): Likewise.
5574 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5576 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5577 array if it is the initial dtv.
5579 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5581 * po/es.po: Update from translation team.
5582 * po/fr.po: Likewise.
5583 * po/gl.po: Likewise.
5584 * po/sk.po: Likewise.
5585 * po/sv.po: Likewise.
5587 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5588 * misc/sys/mman.h: Add prototype for remap_file_pages.
5589 * sysdeps/generic/remap_file_pages.c: New file.
5590 * misc/Makefile (routines): Add remap_file_pages.
5591 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5593 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5595 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5596 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5597 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5598 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5599 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5600 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5601 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5602 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5604 2003-03-03 Roland McGrath <roland@redhat.com>
5606 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5607 * sysdeps/ia64/dl-machine.h: Likewise.
5608 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5610 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5612 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5613 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5614 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5615 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5616 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5617 * Versions.def (libc): Add GLIBC_2.3.3 set.
5619 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5620 * sysdeps/ia64/dl-machine.h: Update decl.
5622 2003-03-03 Andreas Jaeger <aj@suse.de>
5624 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5626 2003-03-02 Roland McGrath <roland@redhat.com>
5628 * scripts/abilist.awk: Reject data items with apparent 0 size.
5630 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5631 after foo.* as if it were a duplicate.
5633 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5635 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5637 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5639 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5640 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5641 if not already defined. Use SYSDEP_GETRES to allow other files to
5642 provide alternative implementations.
5643 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5644 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5645 if not already defined. Use SYSDEP_GETTIME to allow other files to
5646 provide alternative implementations.
5647 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5648 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5649 if not already defined. Use SYSDEP_GETTIME to allow other files to
5650 provide alternative implementations.
5651 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5652 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5653 other files to provide alternative implementations. Rearrange
5654 tests for invalid parameters.
5655 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5656 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5657 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5658 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5659 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5660 _POSIX_MONOTONIC_CLOCK.
5662 2003-03-02 Roland McGrath <roland@redhat.com>
5664 * scripts/merge-abilist.awk: More checks for bogus input.
5665 Uniquify duplicate config names.
5667 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5669 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5670 from dl_reloc_overflow, make global.
5671 (__process_machine_rela): Update callers.
5672 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5673 Add attribute_hidden to __process_machine_rela decl.
5674 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5676 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5679 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5680 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5681 (elf_machine_rela): Clean up.
5683 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5685 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5686 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5687 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5688 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5689 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5690 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5693 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5694 macros out of [SHARED].
5695 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5697 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5698 Clean up R_PPC64_* macro definition comments.
5700 * configure.in: In "running configure fragment for" message,
5701 omit $srcdir from the name if we prepended it.
5702 * configure: Regenerated.
5704 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5705 From Jakub Jelinek <jakub@redhat.com>.
5707 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5708 which duplicated the O_DIRECT defn.
5710 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5712 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5715 2003-03-01 Andreas Schwab <schwab@suse.de>
5717 * resolv/Makefile (tests): Don't depend on
5718 $(objpfx)mtrace-tst-leaks when cross compiling.
5720 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5721 __libc_stack_end through GOT since it is a global symbol.
5723 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5725 * argp/argp.h: Fix a typo.
5726 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5728 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5730 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5732 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5734 (get_subexp): Likewise.
5736 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5738 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5740 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5742 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5744 2003-02-27 Roland McGrath <roland@redhat.com>
5746 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5747 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5748 repeat it and avoids the test for the common case.
5749 Clean up and fix calculations for TLS relocs.
5751 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5752 * sysdeps/powerpc/dl-tls.h: ... here.
5753 (TLS_TP_OFFSET): New macro.
5755 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5757 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5759 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5760 code generation changes in recent gcc.
5762 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5764 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5765 Rename argument to avoid symbol conflict.
5767 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5768 [__USE_GNU] (O_DIRECT): New macro.
5770 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5772 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5775 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5777 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5778 initializer anymore now that res_thread_freeres is more careful.
5780 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5781 except the PKTINFO. Reset interface in PKTINFO.
5782 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5784 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5786 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5787 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5789 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5790 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5791 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5792 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5794 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5795 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5797 2003-02-25 Andreas Jaeger <aj@suse.de>
5799 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5800 behaviour of M_MMAP_THRESHOLD.
5802 2003-02-25 Roland McGrath <roland@redhat.com>
5804 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5805 zero, inidicating _res was not initialized yet.
5807 2003-02-24 Ulrich Drepper <drepper@redhat.com>
5809 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5812 2003-02-24 Roland McGrath <roland@redhat.com>
5814 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5816 2003-02-23 Roland McGrath <roland@redhat.com>
5818 * sysdeps/posix/pause.c: New file.
5819 * sysdeps/unix/common/pause.c: File removed.
5821 2003-02-23 Ulrich Drepper <drepper@redhat.com>
5823 * sysdeps/generic/bits/confname.h: Remove #ifs.
5825 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5826 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5828 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5831 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5833 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5835 2003-02-22 Roland McGrath <roland@redhat.com>
5837 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5838 * resolv/Makefile (tests): Add tst-leaks.
5839 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5840 (tst-leaks-ENV): New variable.
5841 ($(objpfx)mtrace-tst-leaks): New target.
5842 (tests): Depend on it.
5844 * include/libc-internal.h: Declare __libc_thread_freeres.
5846 * Makerules: Fix last change to use $($(subdir)-version) when set.
5848 * Makerules (install-lib-nosubdir): Depend on installed
5849 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5850 regardless of the libfoo.so target's dependencies.
5852 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5853 Use that in $(MAKE) calls.
5855 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5857 * catgets/gencat.c (read_input_file): Collision between
5858 auto-assigned numbers and user-defined nubmers is not fatal.
5860 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5861 * catgets/Makefile: Add rules to run test2.msg test.
5862 * catgets/test2.msg: New file.
5864 * catgets/gencat.c (main): Return 1 if messages have been printed.
5866 * iconv/iconv_prog.c (main): Unify messages.
5868 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5869 when shifting retval.
5870 * stdlib/tst-strtod.c (main): Add strtold test case.
5871 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5873 2003-02-21 Roland McGrath <roland@redhat.com>
5875 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5876 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5877 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5879 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5880 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5881 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5884 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5885 * malloc/thread-freeres.c: New file.
5886 * malloc/Makefile (aux): Add it.
5887 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5888 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5889 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5891 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5892 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5894 2003-02-21 Roland McGrath <roland@frob.com>
5896 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5898 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5899 [$(have-thread-library) = yes].
5901 2003-02-21 Ulrich Drepper <drepper@redhat.com>
5903 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5905 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5906 not chechk for errors (unless testing for 32bit variant).
5907 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5908 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5909 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5911 2003-02-21 Jakub Jelinek <jakub@redhat.com>
5913 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5914 Check for signed overflow, not unsigned.
5916 * sysdeps/sparc/sparc64/elf/configure.in: New file.
5917 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5918 Use -fcall-used-g6, not -fcall-used-g7.
5920 2003-02-21 Andreas Jaeger <aj@suse.de>
5922 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5925 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5926 clear whole mxcsr but only exceptions.
5928 2003-02-21 Roland McGrath <roland@redhat.com>
5930 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5931 for libfoo.so that need $(make-link) rules.
5933 2003-02-21 Roland McGrath <roland@frob.com>
5935 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5936 to match existing struct stat layout in mig protocols.
5938 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5940 * version.h (VERSION): Bump to 2.3.2.
5942 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5943 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5945 * sysdeps/generic/Dist: Add sysdep-cancel.h.
5946 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5947 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5948 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5949 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5952 * Makefile (distribute): Add include/stubs-prologue.h,
5953 include/gnu/stubs.h, scripts/merge-abilist.awk, and
5954 scripts/extract-abilist.awk.
5956 2003-02-20 Roland McGrath <roland@redhat.com>
5958 * math/Makefile (distribute): Don't add generated files.
5960 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5962 * math/Makefile: Rearrange variable definitions slightly to get
5963 definition in the right order.
5965 2003-02-20 Roland McGrath <roland@redhat.com>
5967 * Makerules: Clean up conditional around include of tls.make.
5968 * Make-dist: Export generating=t to prevent using that.
5969 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5971 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5973 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
5974 around in search if port IPPORT_RESERVED/2 has been test.
5976 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
5978 * posix/regcomp.c: Remove inclusions.
5979 * posix/regexec.c: Likewise.
5980 * posix/regex_internal.c: Likewise.
5981 * posix/regex_internal.h: Add inclusions here.
5982 * posix/regex.c: Only include sys/types.h before regex.h. Include
5983 regex_internal.h here. Include regex_internal.c before regcomp.c
5984 and regexec.c (might expose more opportunities to the C compiler).
5986 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5988 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5989 [!_LIBC] (__wcrtomb): New definition.
5990 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5991 HAVE_LOCALE_H as well.
5993 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5995 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5996 patch to check for system call errors.
5998 2002-07-24 Philip Blundell <philb@gnu.org>
6000 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
6003 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6005 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
6006 * sysdeps/unix/sysv/linux/kernel-features.h
6007 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
6008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
6010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
6011 interprocedure branches.
6012 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
6013 * sysdeps/powerpc/nofpu/Dist: ...here.
6014 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
6015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
6016 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
6017 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
6018 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
6020 2003-02-18 Alan Modra <amodra@bigpond.net.au>
6022 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
6024 2003-02-20 Philip Blundell <philb@gnu.org>
6026 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
6027 missing arguments to INTERNAL_SYSCALL_ERROR_P and
6028 INTERNAL_SYSCALL_ERRNO.
6030 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6032 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
6033 for __ASSUME_32BITUIDS.
6035 2003-02-20 Andreas Schwab <schwab@suse.de>
6037 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
6038 POSIX_MADV_* constants.
6040 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6042 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
6043 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
6044 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
6045 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
6047 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
6049 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
6051 2003-02-16 Roland McGrath <roland@redhat.com>
6053 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
6055 2003-02-19 Ulrich Drepper <drepper@redhat.com>
6057 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
6058 decimal input digits.
6059 * stdlib/tst-strtod.c (main): Add test for strtof bug.
6061 2003-02-18 Ulrich Drepper <drepper@redhat.com>
6063 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
6064 invalid file descriptors and missing access permissions.
6066 2003-02-17 Ulrich Drepper <drepper@redhat.com>
6068 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
6071 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
6072 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
6073 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
6076 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6077 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6079 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
6080 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
6081 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6082 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
6083 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6085 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6087 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
6088 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
6089 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
6090 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
6091 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
6092 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
6094 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
6095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
6096 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
6097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
6099 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
6100 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
6101 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
6102 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
6104 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
6106 * nss/getent.c (print_hosts): Print all IP addresses of one host.
6108 2003-02-15 Roland McGrath <roland@frob.com>
6110 * sysdeps/mach/hurd/tls.h: New file.
6111 * sysdeps/mach/hurd/i386/tls.h: New file.
6113 * mach/errsystems.awk: Include <errno.h> in generated output.
6115 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
6116 use target mach-before-compile instead of generated.
6117 (mach-before-compile): New target.
6118 * Makerules: Disable use of tls.make if $(generating) is set.
6119 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
6120 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
6121 mach-shortcuts.h so mach/ generation happens before hurd/.
6123 2003-02-14 Ulrich Drepper <drepper@redhat.com>
6125 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
6126 of demorm correctly if low word is zero.
6127 Reported by Fred J. Tydeman <tydeman@tybor.com>.
6128 * math/libm-test.inc (nextafter_test): New test, but disabled due
6131 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
6132 counter and only call __exit_thread if this is not the last thread.
6134 2003-02-13 Jakub Jelinek <jakub@redhat.com>
6136 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
6137 subtracting map->l_tls_offset.
6139 2003-02-12 Ulrich Drepper <drepper@redhat.com>
6141 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
6142 _CS_GNU_LIBPTHREAD_VERSION.
6143 * posix/conststr.c: Handle these new values.
6144 * posix/getconf.c: Likewise.
6146 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
6147 masking of version index.
6148 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6150 2003-02-11 Ulrich Drepper <drepper@redhat.com>
6152 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
6153 correctly. Reported by Thorsten Kukuk.
6155 2003-02-10 Ulrich Drepper <drepper@redhat.com>
6157 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
6158 _BSD_SOURCE to compiler.
6159 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
6160 Patches by Alan Modra.
6162 2003-02-08 Ulrich Drepper <drepper@redhat.com>
6164 * io/ftwtest.c: Get current working directory before and after the
6165 nftw call and make sure they match.
6167 2003-02-08 Jim Meyering <jim@meyering.net>
6169 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
6170 the current directory, not just when DIR contains a slash.
6171 Reported by Manoj Srivastava.
6173 2003-02-07 Jim Meyering <jim@meyering.net>
6175 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
6176 Include autoconf-recommended block of dirent/NAMELEN-related
6177 definitions and includes. Use NAMELEN throughout, rather than
6179 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
6180 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
6181 (stpcpy): Declare, if necessary.
6182 (mempcpy): Define, if necessary.
6183 [!_LIBC] (__stpcpy, __mempcpy): Define.
6184 [!_LIBC] (LXSTAT, XSTAT): Define.
6185 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
6186 (find_object): Don't use c99-style struct initializer.
6187 Tweak wording in a couple comments.
6189 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6191 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
6193 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
6194 after the trapa instruction.
6195 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
6197 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
6198 (NEED_SYSCALL_INST_PAD): Define.
6199 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
6200 avoid to use definition for the kernel.
6201 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6202 Save and restore the frame pointer.
6203 (SYSCALL_INST_PAD): Define.
6204 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6205 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
6206 after trapa instruction.
6207 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6208 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6210 2003-02-07 Jakub Jelinek <jakub@redhat.com>
6212 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
6213 so that it can have aliases.
6214 * inet/herrno.c (h_errno): Put it into .bss not .data section.
6216 2003-02-07 Ulrich Drepper <drepper@redhat.com>
6218 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
6219 (profile_fixup): Likewise.
6220 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
6222 2002-11-24 Robert Love <rml@tech9.net>
6224 * posix/sched.h: Second parameter of sched_setaffinity and
6225 sched_getaffinity is `unsigned int', not `unsigned long'.
6226 * sysdeps/generic/sched_setaffinity.c: Likewise.
6227 * sysdeps/generic/sched_getaffinity.c: Likewise.
6229 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6231 * debug/catchsegv.sh: Fix typo in error messsage.
6232 Reported by John Levon <levon@movementarian.org>.
6234 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6235 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6236 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6237 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6239 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6240 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6242 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6243 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6245 2003-02-05 Jim Meyering <jim@meyering.net>
6247 Fix a heap-corrupting bug.
6248 * io/ftw.c: Include <limits.h>.
6249 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6250 (process_entry): Allocate enough space to hold the resulting
6251 file name. Don't presume that 2*dirbufsize is enough.
6252 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6253 it is guaranteed to be defined.
6255 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6257 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6258 * iconvdata/bug-iconv3.c: New file.
6260 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6262 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6264 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6266 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6268 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6270 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6272 * sysdeps/i386/i686/memmove.S: New file.
6274 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6277 Include kernel-features.h
6278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6283 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6285 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6287 2003-01-25 Jim Meyering <jim@meyering.net>
6289 * io/ftw.c (object_compare): Compare inode numbers before device
6290 numbers, since the former are much more likely to differ.
6292 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6294 * time/tzfile.c (__tzfile_compute): Change return value type to
6295 void. Adjust return statements.
6296 * include/time.h (__tzfile_compute): Adjust prototype.
6298 2003-02-01 Jim Meyering <jim@meyering.net>
6300 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6303 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6306 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6308 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6311 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6313 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6315 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6316 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6317 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6319 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6321 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6322 back to 2.4.19 for powerpc64.
6323 * sysdeps/unix/sysv/linux/kernel-features.h
6324 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6325 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6327 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6329 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6330 platforms with strange alignment requirements on wchar_t.
6332 2003-01-31 Andreas Schwab <schwab@suse.de>
6334 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6335 aliases, already added by make-syscalls.sh.
6336 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6337 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6338 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6339 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6340 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6341 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6342 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6343 * sysdeps/unix/inet/syscalls.list: Likewise.
6344 * sysdeps/unix/syscalls.list: Likewise.
6346 2003-01-31 Andreas Schwab <schwab@suse.de>
6348 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6351 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6353 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6354 not l to load tls from stack.
6356 2003-01-30 Roland McGrath <roland@redhat.com>
6358 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6359 null argument before all else.
6360 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6362 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6364 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6365 Move to RESOLVE protected part of the header.
6366 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6369 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6371 * stdio-common/Makefile (tests): Add bug15.
6372 (bug15-ENV): Define.
6373 * stdio-common/bug15.c: New file.
6375 2002-10-07 Wolfram Gloger <wg@malloc.de>
6377 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6378 to foreign sbrk()'s if arena is contiguous. Bug report from
6379 Bruno Haible <bruno@clisp.org>.
6381 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6383 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6385 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6387 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6390 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6392 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6394 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6396 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6398 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6400 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6401 (allocate_static_tls): ...here. Add __attribute_noinline__.
6402 Don't return on failure.
6403 (_dl_reloc_bad_type): Add __attribute_noinline__.
6404 * elf/do-rel.h (elf_dynamic_do_rel): Add
6405 __attribute__((always_inline)).
6406 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6407 elf_machine_rel_relative, elf_machine_rela_relative,
6408 elf_machine_lazy_rel): Add prototypes with
6409 __attribute__((always_inline)).
6411 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6413 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6415 2003-01-29 Roland McGrath <roland@redhat.com>
6417 * configure.in: Barf if configured in $srcdir.
6419 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6422 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6424 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6426 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6427 clone parameters to match the order used on ia32.
6428 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6430 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6432 * elf/elf.h: Add new s390 relocs.
6433 * elf/tls-macros.h: Add s390 versions.
6434 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6435 * sysdeps/s390/dl-tls.h: New file.
6436 * sysdeps/s390/libc-tls.c: New file.
6437 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6438 relocs for class PLT.
6439 (elf_machine_rela): Handle TLS relocs.
6440 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6441 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6442 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6443 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6444 CLONE_CHILD_*TID flags.
6445 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6446 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6448 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6449 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6450 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6451 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6452 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6454 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6455 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6456 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6458 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6459 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6460 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6461 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6464 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6466 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6467 from __libc_pause. Implement using sigsuspend.
6468 (__libc_pause): Call do_pause to do the real work.
6470 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6471 sig_or_mask parameter is is_sig != 0.
6473 2003-01-21 Philip Blundell <philb@gnu.org>
6475 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6477 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6479 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6481 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6483 * stdio-common/bug14.c: Use official name for the locale.
6485 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6486 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6487 instead of __libc_cleanup_region_end.
6489 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6490 as first parameter to __libc_cleanup_region_start.
6492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6493 (__fe_nomask_env): Use __prctl not prctl.
6494 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6497 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6499 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6501 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6502 wrap-around in test.
6504 2003-01-26 Andreas Schwab <schwab@suse.de>
6506 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6507 compatibility symbols. Remove INTDEF for __divdi3.
6508 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6509 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6510 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6512 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6514 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6516 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6517 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6518 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6519 for the first half of the header. Include tls.h.
6520 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6522 (elf_machine_rela): Handle TLS relocs.
6523 * sysdeps/sparc/dl-tls.h: New file.
6525 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6528 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6529 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6530 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6531 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6532 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6533 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6534 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6535 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6536 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6537 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6538 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6539 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6540 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6541 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6542 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6543 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6544 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6545 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6546 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6547 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6549 2003-01-24 Andreas Schwab <schwab@suse.de>
6551 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6552 elements, and process them backwards.
6553 * elf/Makefile ($(objpfx)tst-array4): New target.
6554 ($(objpfx)tst-array4.out): Likewise.
6555 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6556 * elf/tst-array4.c: New file.
6557 * elf/tst-array4.exp: Likewise.
6559 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6563 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6565 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6566 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6567 cancellation handling and handle both __NR_pread64 and __NR_pread.
6568 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6569 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6570 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6571 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6572 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6573 case, use register names consistently.
6575 2003-01-27 Wolfram Gloger <wg@malloc.de>
6577 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6578 pointer, not of the computed chunk. Bug report from Carlos
6579 O'Donell <carlos@baldric.uwo.ca>.
6581 2003-01-25 Andreas Schwab <schwab@suse.de>
6583 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6584 addressing to save GOT entries.
6586 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6588 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6589 inline_syscall1, inline_syscall2, inline_syscall3,
6590 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6591 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6592 __attribute__((unused)) to ChEcK.
6594 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6596 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6597 Fix inline assembler constraints.
6598 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6601 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6604 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6606 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6607 compute the cosine, not the sine, even if x > 0.8.
6609 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6611 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6612 _nss_nis_setspent. Work around the different prototypes.
6613 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6614 internal_nis_endrpcent.
6615 (internal_nis_endrpcent): Change return type to void. Change callers.
6616 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6617 _nss_nis_setpwent. Work around the different prototypes.
6618 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6619 of the function to...
6620 (internal_nis_endprotoent): ... here. New function.
6621 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6622 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6623 _nss_nis_setnetent. Work around the different prototypes.
6624 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6625 of the function to...
6626 (internal_nis_endnetgrent): ... here. New function.
6627 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6629 2003-01-19 Jim Meyering <jim@meyering.net>
6631 * time/strftime.c: (widen): Merge nearly-identical definitions.
6632 (nl_get_alt_digit) [! defined my_strftime]: Define.
6633 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6634 _nl_get_alt_digit and _nl_get_walt_digit.
6636 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6638 * time/strftime.c (my_strftime): Handle very large width
6639 specifications for numeric values correctly. Improve checks for
6641 * time/Makefile (tests): Add tst-strftime.
6642 * time/tst-strftime.c: New file.
6644 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6646 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6647 _nss_nis_sethostent. Work around the different prototypes.
6648 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6649 _nss_nis_setgrent. Work around the different prototypes.
6650 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6651 function. Split out from _nss_nis_endetherent.
6652 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6653 duplicating the code.
6654 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6655 of _nss_nis_setaliasent.
6656 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6657 internal_nis_endservent code, don't duplicate it.
6659 * inet/rexec.c (rexec_af): Protect socket operations with
6660 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6661 * inet/rcmd.c (rcmd_af): Likewise.
6663 2003-01-17 Roland McGrath <roland@redhat.com>
6665 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6666 Add test of value 0.80190127184058835.
6668 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6670 2003-01-17 Richard Henderson <rth@redhat.com>
6672 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6673 relocs for class PLT.
6674 * sysdeps/alpha/libc-tls.c: New file.
6675 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6676 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6678 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6680 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6681 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6684 2003-01-17 Andreas Jaeger <aj@suse.de>
6686 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6688 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6695 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6696 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6699 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6701 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6702 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6705 * sysdeps/generic/sysconf.c: Unconditionally implement
6706 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6707 * sysdeps/posix/sysconf.c: Likewise.
6709 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6711 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6712 set *err to the returned error, not to REG_ESPACE unconditionally.
6713 (build_word_op): Likewise.
6714 * posix/Makefile (tests): Add bug-regex16.
6715 * posix/bug-regex16.c: New test.
6717 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6719 * elf/dl-load.c (_dl_map_object_from_fd): Use
6720 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6721 been already initialized.
6723 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6725 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6727 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6729 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6730 allocated too. Reported by Al Viro <aviro@redhat.com>.
6732 2003-01-16 Roland McGrath <roland@redhat.com>
6734 Tweak merged .abilist file format to merge duplicate symbols in
6735 different sets into multi-version stanzas with new "| SET regexp..."
6736 header continuation lines.
6737 * scripts/merge-abilist.awk: Rewritten for new format.
6738 * scripts/extract-abilist.awk: Likewise.
6740 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6742 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6743 necessary with gcc 3.2+.
6744 (nscd_init): Don't use error() to print message, use dbg_log.
6746 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6747 expected size into state.
6748 (UNPACK_BYTES): Do the reverse.
6749 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6750 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6751 Reported by Al Viro <aviro@redhat.com>.
6753 * stdio-common/Makefile (tests): Add bug14.
6754 * stdio-common/bug14.c: New file.
6756 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6757 string reset the byte counter after mbrtowc reported it is not a
6758 partial character. Reported by Al Viro <aviro@redhat.com>.
6760 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6763 sysdep-cancel.h, not sysdep.h.
6765 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6767 * nscd/connections.c (nscd_run): Protect accept call with
6770 2003-01-15 Andreas Schwab <schwab@suse.de>
6772 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6773 (common-generated): Add s-proto-bp.d.
6774 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6776 * sysdeps/unix/s-proto-bp.S: New file.
6777 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6778 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6779 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6781 2003-01-15 Roland McGrath <roland@redhat.com>
6783 * Makerules: Use -include for tls.make, suppresses warning.
6784 Move gen-as-const-headers rules up so before-compile is set in time.
6785 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6787 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6789 * nscd/nscd.c (main): Make code to close all file descriptors
6790 faster and more robust.
6792 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6793 request with one writev call. Protect all read calls with
6795 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6796 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6798 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6799 Protect writev calls with TEMP_FAILURE_RETRY.
6800 * nscd/grpcache.c: Likewise.
6801 * nscd/pwdcache.c: Likewise.
6803 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6804 IPv6 address in debug output.
6806 2003-01-14 Roland McGrath <roland@redhat.com>
6808 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6809 $(objpfx) directories, and get rid of vpath directives. The previous
6810 arrangement resulted in files being written to the source directories
6811 when run in a clean build. Find all .abilist files in $(..)abilist/.
6812 (update-abi-%): Likewise.
6813 (generated): Don't add .symlist files, they'll be intermediates.
6815 * sysdeps/generic/init-first.c: Add a comment.
6817 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6819 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6820 #includes and expressions.
6822 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6823 config list when it already contains cpu-.*-os.* without / part.
6825 * Makerules (sed-remove-dotdot): New variable.
6826 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6827 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6828 (check-abi-config): New variable, append /tls or /notls to the tuple.
6829 (check-abi-%): Use that for -v config value.
6830 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6831 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6833 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6835 * manual/install.texi: Correct description of header preparation for
6836 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6838 2003-01-14 Guido Guenther <agx@sigxcpu.org>
6840 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6841 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6842 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6844 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6847 (INTERNAL_SYSCALL): Make use of ERR parameter.
6848 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6849 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6850 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6853 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6855 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6857 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6859 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6860 Fix entry for bit 31.
6862 * iconvdata/Makefile: Add rules to build IBM866NAV.
6863 * iconvdata/ibm866nav.c: New file.
6864 * iconvdata/tst-tables.sh: Add IBM866NAV.
6865 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6867 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6869 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6870 to test void* parameters.
6872 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6873 source pointer before dereferencing.
6874 (__STRING_SMALLL_GET32): Likewise.
6875 (__memset_gc): Add missing parenthesis around macro arguments.
6876 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6878 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6879 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6881 2003-01-14 Jakub Jelinek <jakub@redhat.com>
6883 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6886 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6888 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6889 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6891 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6893 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6895 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6897 (PSEUDO): ... to here.
6898 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6900 (PSEUDO): ... to here.
6902 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6904 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6905 dirent64 instead of struct dirent for dirent. Call readdir64
6908 * locale/programs/locfile.c (siblings_uncached): Use struct
6909 dirent64 instead of struct dirent for other_dentry. Call
6910 readdir64 instead of readdir.
6912 * elf/ldconfig.c (direntry): Change type to struct dirent64.
6913 (search_dir): Use readdir64 instead of readdir.
6914 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6916 2003-01-12 Roland McGrath <roland@redhat.com>
6918 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6919 not strtol. The former is usable in ld.so, the latter not.
6921 * include/fcntl.h: Declare __libc_creat.
6923 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6924 libhurduser-link.so-no-z-defs): New variables.
6926 * malloc/malloc.c: Revert last change.
6927 * malloc/malloc.h (_int_*): Move these decls to ...
6928 * include/malloc.h: ... here. Add attribute_hidden.
6929 (_int_valloc): Declare it too.
6931 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6933 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
6934 search for removed searchlist. Reported by Roland McGrath.
6936 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6937 given as start file.
6939 * io/ftw.c (ftw_startup): Use correct name in check for symlink
6940 without existing target. Patch by Jim Meyering.
6942 * Makerules (build-shlib-helper): Don't use -z defs linker option
6943 if no-z-defs is defined either.
6945 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6947 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6950 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6952 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6953 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6955 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6957 * io/ftwtest-sh: Add test case for relative path with /. at the end.
6959 2003-01-12 Jim Meyering <jim@meyering.net>
6961 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6962 use the basename if we've already chdir'd into its parent directory.
6964 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6966 * io/ftw.c (process_entry): Use relative path when using chdir()
6967 to change directory after call to ftw_dir.
6968 * io/ftwtest-sh: Add test for relative path argument to nftw()
6969 with FTW_CHDIR option.
6971 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6973 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6975 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6978 (INTERNAL_SYSCALL): Make use of ERR parameter.
6979 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6980 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6981 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6984 2002-01-09 Richard Henderson <rth@redhat.com>
6986 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6987 DTPREL64 and TPREL64 without loadbase applied.
6989 2002-01-09 Richard Henderson <rth@redhat.com>
6991 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6994 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6995 * sysdeps/unix/alpha/sysdep.h: ... here.
6996 (PSEUDO_LOADGP): Remove.
6997 (PSEUDO_PROLOGUE): Load GP in non-pic case.
6998 (SYSCALL_ERROR_LABEL): New.
6999 (PSEUDO): Use it in error branch.
7000 (PSEUDO_END): Add $syscall_error label.
7002 2003-01-12 Andreas Jaeger <aj@suse.de>
7004 * math/bits/mathcalls.h: Round is a const function.
7006 2003-01-11 Jim Meyering <jim@meyering.net>
7008 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
7009 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
7010 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
7011 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
7012 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
7013 [!_LIBC] (internal_function, dirent64, MAX): Define.
7014 (__set_errno): Define if not already defined.
7015 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
7016 the basename, not the entire file name.
7017 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
7018 the basename, not the entire file name.
7020 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7022 * string/tester.c (test_strcpy): Disable last added strcpy until
7025 2003-01-11 Philip Blundell <philb@gnu.org>
7027 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
7029 2003-01-11 Andreas Schwab <schwab@suse.de>
7031 * Makerules: Add vpath for %.dynsym and %.so so that the
7032 implicit rule chaining for check-abi works.
7034 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7036 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7039 2003-01-11 Jakub Jelinek <jakub@redhat.com>
7041 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
7042 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
7044 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
7045 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
7046 Ensure libc.so in DT_NEEDED.
7047 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
7048 CHECK_STATIC_TLS before l_tls_offset use.
7049 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7051 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7052 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
7053 Allocate TLS_PRE_TCB_SIZE bytes below result.
7054 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
7055 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
7056 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
7057 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
7058 bytes below result and add tcb_offset to memsz.
7059 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
7060 * sysdeps/ia64/dl-machine.h: Include tls.h.
7061 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
7063 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
7064 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
7065 * sysdeps/ia64/libc-tls.c: New file.
7067 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
7069 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
7070 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
7071 Fix type. Move definition out of #if.
7072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
7073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
7074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
7075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
7076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
7077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
7079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
7080 ftruncate64, pread64, pwrite64, truncate64 entries.
7081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7082 (INLINE_SYSCALL): New version that supports function call like
7083 syscalls. Add __builtin_expect.
7084 (LOADARGS_n): Add argument size safety checks.
7085 (INTERNAL_SYSCALL): New Macro.
7086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
7087 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
7088 redefinition of elf_fpreg_t and elf_fpregset_t.
7090 2003-01-12 Ulrich Drepper <drepper@redhat.com>
7092 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
7093 simplify test for unloading. If loader of a DSO is unloaded do not
7094 use its scope anymore. Fall back to own scope and adjust opencounts.
7095 Fix several comments.
7096 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
7097 the l_searchlist, not only for l_initfini.
7099 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
7100 dependencies if objects cannot be removed. Remove object with the
7101 definition as not unloadable if necessary.
7103 * elf/reldep6.c: Create relocation dependency before closing the first
7106 2003-01-10 Guido Günther <agx@sigxcpu.org>
7108 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
7109 * sysdeps/unix/mips/brk.S: Likewise.
7110 * sysdeps/unix/mips/pipe.S: Likewise.
7112 2003-01-10 Andreas Schwab <schwab@suse.de>
7114 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
7116 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
7117 are known to have the vfork syscall.
7119 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
7121 * sysdeps/unix/sysv/linux/kernel-features.h
7122 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
7123 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
7124 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
7126 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7128 * elf/Makefile: Add rules to build and run reldep9 test.
7129 * elf/reldep9.c: New file.
7130 * elf/reldep9mod1.c: New file.
7131 * elf/reldep9mod2.c: New file.
7132 * elf/reldep9mod3.c: New file.
7134 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7136 * elf/Makefile: Add rules to build and run nodelete2 test.
7137 * elf/nodelete2.c: New file.
7138 * elf/nodel2mod1.c: New file.
7139 * elf/nodel2mod2.c: New file.
7140 * elf/nodel2mod3.c: New file.
7142 2003-01-09 Jakub Jelinek <jakub@redhat.com>
7144 * posix/test-vfork.c (noop): Add __attribute_noinline__.
7145 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
7146 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
7148 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
7149 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
7150 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
7151 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
7152 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
7154 2003-01-09 Andreas Schwab <schwab@suse.de>
7156 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
7158 2003-01-08 Ulrich Drepper <drepper@redhat.com>
7160 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
7161 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7163 (INTERNAL_SYSCALL_DECL): Define.
7165 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7167 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
7168 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
7170 (INTERNAL_SYSCALL_DECL): Define.
7171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7172 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7173 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7174 (INLINE_SYSCALL): Adjust.
7175 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7176 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7177 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7178 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7179 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
7180 add err argument to INTERNAL_SYSCALL* macros.
7181 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7182 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
7183 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
7184 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
7186 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
7187 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
7188 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
7190 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7192 Unify symbols in user namespace exported by libc.so and libc.a.
7193 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
7194 argp_fmtstream_free, and argp_fmtstream_printf.
7195 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
7196 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
7197 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
7198 argp_fmtstream_point.
7199 * gmon/gmon.c: Don't define write_profiling.
7200 * libio/genops.c: Don't define _cleanup.
7202 * intl/explodename.c (_nl_find_language.c): Mark as static.
7203 * intl/loadinfo.h: Remove _nl_find_language prototype.
7205 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
7206 * libio/libioP.h: Remove declaration.
7208 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
7209 * libio/libioP.h: Remove declaration.
7211 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
7212 * sysdeps/generic/framestate.c: Define STATIC before including
7215 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
7217 2003-01-06 Philip Blundell <philb@gnu.org>
7219 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
7220 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
7222 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
7224 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
7225 (SYSCALL_ERROR): New.
7226 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
7228 (INTERNAL_SYSCALL): Define.
7229 (INLINE_SYSCALL): Use it.
7230 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7231 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7232 SYSCALL_ERROR in place of __syscall_error.
7234 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7236 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7237 __bswap_32, __bswap_64): Put x into temporary variable
7239 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7241 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7242 __bswap_32, __bswap_64): Put x into temporary variable
7244 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7246 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7249 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7251 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7254 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7256 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7257 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7259 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7261 * math/libm-test.inc (significand_test): New function.
7264 2003-01-06 Roland McGrath <roland@redhat.com>
7266 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7268 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7269 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7270 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7272 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7274 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7276 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7277 return significand and not the exponent.
7278 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7280 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7281 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7283 * malloc/malloc.c: Mark all _int_* functions as static.
7285 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7287 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7288 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7290 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7292 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7294 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7298 ftruncate64, truncate64, pread64 and pwrite64 entries.
7299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7300 (INLINE_SYSCALL): Add __builtin_expect.
7301 (LOADARGS_n): Add argument size safety checks.
7302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7309 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7311 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7312 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7313 (LIBC_CANCEL_HANDLED): Add.
7315 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7316 (inline_syscall_r0_constraint): Rename to...
7317 (inline_syscall_r0_out_constraint): ... this. Add =.
7318 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7320 2003-01-06 Andreas Schwab <schwab@suse.de>
7322 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7323 sure this is always inlined.
7324 (elf_machine_rela): Likewise.
7326 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7328 2003-01-04 Roland McGrath <roland@redhat.com>
7330 * Makeconfig (+mkdep): Add -MP flag.
7331 Suggested by Art Haas <ahaas@airmail.net>.
7333 2003-01-05 Andreas Schwab <schwab@suse.de>
7335 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7337 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7339 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7340 SYSCALL_ERROR_HANDLER.
7341 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7342 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7343 Add support for cancellation handling.
7344 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7345 SYSCALL_ERROR_HANDLER.
7346 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7347 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7348 Add support for cancellation handling.
7349 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7351 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7354 __syscall_pread64 and __syscall_pwrite64 cancelable.
7355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7356 (INTERNAL_SYSCALL): New macro.
7357 (LOADARGS_0, LOADARGS_1): Fix.
7359 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7361 * Makerules (build-shlip-helper): Unless told otherwise, add
7362 -Wl,-z,defs to linker command line.
7363 * rt/Makefile (librt.so): Link with ld.so.
7364 * dlfcn/Makefile (libdl.so): Likewise.
7366 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7368 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7369 cancellation handling.
7370 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7371 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7373 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7375 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7376 order of parameters passed to kill.
7378 2003-01-04 Andreas Schwab <schwab@suse.de>
7380 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7382 2002-01-03 Paul Eggert <eggert@twinsun.com>
7384 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7385 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7386 when compiling Bison 1.875's `bitset bset = obstack_alloc
7387 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7389 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7391 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7393 Correct reference counter in case SIGQUIT handler installation failed.
7395 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7397 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7398 Define using _Pragma(weak ...).
7400 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7402 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7403 reorder declarations.
7405 2003-01-03 Art Haas <ahaas@airmail.net>
7407 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7408 initializer syntax to C99.
7409 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7410 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7411 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7412 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7413 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7414 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7415 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7416 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7417 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7418 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7419 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7420 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7421 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7422 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7423 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7424 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7425 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7426 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7427 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7428 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7429 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7430 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7431 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7432 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7433 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7434 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7435 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7436 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7437 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7438 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7439 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7440 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7441 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7442 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7443 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7444 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7445 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7446 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7447 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7448 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7449 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7450 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7451 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7452 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7453 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7454 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7455 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7456 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7457 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7459 2003-01-03 Richard Henderson <rth@redhat.com>
7461 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7462 (inline_syscall_r0_constraint): New.
7463 (inline_syscall[0-6]): Use them.
7465 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7467 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7468 Add rtld_hidden_proto.
7469 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7470 (_dl_allocate_tls): Likewise. Remove INTDEF.
7472 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7474 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7475 Morita <toshiyasu.morita@hsa.hitachi.com>.
7476 * sysdeps/sh/memcpy.S: Likewise.
7478 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7480 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7481 any, but unify the test.
7483 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7485 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7486 sigaction): Protect weak_alias and libc_hidden_weak with
7487 #ifndef LIBC_SIGACTION.
7488 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7489 sigaction): Likewise.
7490 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7491 sigaction): Likewise.
7492 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7493 sigaction): Likewise.
7494 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7495 sigaction): Likewise.
7496 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7497 sigaction): Likewise.
7498 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7499 sigaction): Likewise.
7500 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7501 sigaction): Likewise. Remove SIGCANCEL handling here.
7502 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7505 2003-01-02 Art Haas <ahaas@airmail.net>
7507 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7509 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7511 * posix/getconf.c: Update copyright year.
7512 * nss/getent.c: Likewise.
7513 * nscd/nscd_nischeck.c: Likewise.
7514 * iconv/iconvconfig.c: Likewise.
7515 * iconv/iconv_prog.c: Likewise.
7516 * elf/ldconfig.c: Likewise.
7517 * catgets/gencat.c: Likewise.
7518 * csu/version.c: Likewise.
7519 * elf/ldd.bash.in: Likewise.
7520 * elf/sprof.c (print_version): Likewise.
7521 * locale/programs/locale.c: Likewise.
7522 * locale/programs/localedef.c: Likewise.
7523 * nscd/nscd.c (print_version): Likewise.
7524 * debug/xtrace.sh: Likewise.
7525 * malloc/memusage.sh: Likewise.
7526 * malloc/mtrace.pl: Likewise.
7528 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7530 * io/sys/stat.h: Include time.h with __need_timespec even if
7531 __USE_MISC is defined but __USE_XOPEN is not.
7533 2003-01-01 Andreas Jaeger <aj@suse.de>
7535 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7536 type to avoid strict aliasing problem.
7537 (_nss_dns_gethostbyname2_r): Likewise.
7538 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7539 (_nss_dns_getnetbyname_r): Likewise.
7540 * resolv/gethnamaddr.c (_gethtent): Likewise.
7541 (gethostbyname2): Likewise.
7543 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7545 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7546 to avoid using the exported symbols. Define aliases with the
7547 original names separately.
7549 * include/time.h: Add libc_hidden_proto for __strftime_l.
7550 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7551 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7553 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7554 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7556 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7559 * csu/Makefile (routines): Add dso_handle.
7560 * csu/dso_handle.c: New file.
7562 2002-12-31 Roland McGrath <roland@redhat.com>
7564 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7565 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7566 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7567 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7569 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7571 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7574 2002-12-31 Andreas Jaeger <aj@suse.de>
7576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7578 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7579 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7580 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7582 * sysdeps/unix/sysv/linux/kernel_stat.h
7583 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7585 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7586 __unused[1-3] since they're needed by some platforms. Handle
7587 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7589 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7590 for structs stat and stat64.
7591 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7592 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7593 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7594 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7596 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7598 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7599 nsec resolution changes.
7600 (xstat64_conv): Likewise.
7601 (xstat32_conv): Likewise.
7603 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7606 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7607 structs stat and stat64.
7609 * time/time.h (__timespec_defined): Define for __USE_MISC.
7611 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7613 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7614 and __libc_current_sigrtmax.
7616 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7618 * include/errno.h (__errno_location): Add prototype.
7619 Use libc_hidden_proto unconditionally.
7620 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7622 * include/resolv.h (__res_state): Likewise.
7624 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7625 * include/sys/socket.h (accept): Add libc_hidden_proto.
7626 * include/errno.h (__errno_location): Likewise.
7627 * include/netdb.h (__h_errno_location): Likewise.
7628 * include/resolv.h (__res_state): Likewise.
7629 * include/unistd.h (__lseek): Likewise.
7630 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7631 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7632 * sysdeps/generic/res-state.c (__res_state): Likewise.
7633 * sysdeps/generic/accept.c (accept): Likewise.
7634 * sysdeps/generic/lseek.c (__lseek): Likewise.
7635 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7636 __libc_current_sigrtmax): Likewise.
7637 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7638 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7639 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7640 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7641 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7642 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7643 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7644 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7645 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7647 (__GI_accept): New alias to accept.
7648 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7649 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7650 New alias to llseek.
7651 (__GI_accept): New alias to accept.
7652 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7654 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7656 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7658 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7659 strong_alias (name, __GI_name).
7660 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7661 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7662 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7663 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7664 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7665 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7666 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7667 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7668 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7669 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7670 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7671 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7672 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7673 * sysdeps/unix/arm/fork.S : Likewise.
7674 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7675 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7676 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7677 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7678 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7679 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7680 * sysdeps/unix/i386/fork.S : Likewise.
7681 * sysdeps/unix/mips/fork.S : Likewise.
7682 * sysdeps/unix/sparc/fork.S : Likewise.
7683 * sysdeps/unix/sparc/vfork.S : Likewise.
7684 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7685 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7686 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7687 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7688 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7689 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7690 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7691 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7692 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7693 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7694 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7695 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7696 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7697 * sysdeps/unix/fork.S : Likewise.
7698 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7699 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7701 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7704 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7706 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7707 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7708 * sysdeps/mach/hurd/fork.c: Likewise.
7709 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7710 * sysdeps/unix/fork.S: Add __GI___fork alias.
7711 * sysdeps/unix/arm/fork.S: Likewise.
7712 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7713 * sysdeps/unix/i386/fork.S: Likewise.
7714 * sysdeps/unix/mips/fork.S: Likewise.
7715 * sysdeps/unix/sparc/fork.S: Likewise.
7716 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7717 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7718 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7719 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7720 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7721 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7722 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7723 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7724 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7725 * sysdeps/unix/sparc/vfork.S: Likewise.
7726 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7727 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7728 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7729 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7730 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7731 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7732 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7733 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7735 * include/time.h: Add libc_hidden_proto for __nanosleep.
7736 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7737 * sysdeps/mach/nanosleep.c: Likewise.
7738 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7739 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7741 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7742 _IO_list_unlock, and _IO_list_resetlock.
7743 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7744 _IO_list_unlock, and _IO_list_resetlock.
7746 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7747 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7748 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7749 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7751 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7752 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7753 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7754 __GI___longjmp alias.
7756 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7757 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7758 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7759 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7760 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7761 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7762 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7763 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7764 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7765 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7766 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7767 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7768 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7769 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7770 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7771 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7772 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7773 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7774 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7775 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7776 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7778 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7780 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7782 2002-12-30 Roland McGrath <roland@redhat.com>
7784 * Rules (generated): Target removed.
7785 * mach/Makefile (generated): Define it here instead.
7787 * math/Makefile (generated): Add m_*l and m_*f variants too.
7789 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7791 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7792 the to-be-deleted objects right away instead of later separately.
7793 The latter fails because the scope data structures of the DSO
7794 might already be gone.
7796 * elf/Makefile: Add rules to build and run reldep8 test.
7797 * elf/reldep8.c: New file.
7798 * elf/reldep8mod1.c: New file.
7799 * elf/reldep8mod2.c: New file.
7800 * elf/reldep8mod3.c: New file.
7801 Contributed by Jakub Jelinek.
7803 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
7805 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7806 checking of return value ENOSYS from getdents64.
7808 2002-12-28 Andreas Schwab <schwab@suse.de>
7810 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7811 ($(common-objpfx)s-%.d): Generalized from
7812 $(common-objpfx)s-proto.d rule.
7813 (common-generated): Add s-proto-cancel.d.
7814 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7815 cancellable syscalls.
7816 * sysdeps/unix/s-proto-cancel.S: New file.
7818 2002-12-29 Roland McGrath <roland@redhat.com>
7820 * resolv/res_libc.c: Move _res defn magic after res_init defn
7821 so _res macro is in effect for that code.
7823 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
7824 pattern for prepending $(..) so it doesn't affect $(foo).
7826 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7828 2002-12-29 Jakub Jelinek <jakub@redhat.com>
7830 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7833 2002-12-28 Ulrich Drepper <drepper@redhat.com>
7835 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7837 2002-12-28 Andreas Jaeger <aj@suse.de>
7839 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7841 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7843 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7845 * inet/herrno.c (__h_errno_location): Remove.
7846 * inet/Makefile (routines): Add herrno-loc.
7847 * resolv/res_libc.c (__res_state): Remove.
7848 * resolv/Makefile (routines): Add res-state.
7849 * sysdeps/generic/herrno-loc.c: New file.
7850 * sysdeps/generic/res-state.c: New file.
7852 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7854 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7855 Only define if USE_DL_SYSINFO is defined.
7857 2002-12-22 Jakub Jelinek <jakub@redhat.com>
7859 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7860 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7861 Define. Patch by Richard Henderson and Jes Sorensen.
7862 (PSEUDO): Remove unnecessary ;;.
7863 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7864 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7865 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7866 if not initializing thread pointer.
7867 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7868 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7869 make it weak also if NONTLS_INIT_TP.
7870 * sysdeps/unix/common/pause.c: Handle cancellation.
7871 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7872 (LOADSYSCALL): Remove.
7873 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7874 (SYSCALL_ERROR_HANDLER): Use it.
7875 (PSEUDO): Don't jump around error handler.
7876 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7877 jump around error handler.
7878 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7879 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7880 to __syscall_error_handler on failure.
7881 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7882 (LOADSYSCALL): Remove.
7883 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7884 (SYSCALL_ERROR_HANDLER): Use it.
7885 (PSEUDO): Don't jump around error handler.
7886 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7887 jump around error handler.
7888 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7889 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7890 to __syscall_error_handler on failure.
7892 2002-12-27 Roland McGrath <roland@redhat.com>
7894 * scripts/gen-as-const.awk: New file.
7895 * Makefile (distribute): Add it.
7896 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7897 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7899 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7901 2002-12-27 Andreas Schwab <schwab@suse.de>
7903 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
7905 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7907 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
7910 2002-12-27 Andreas Schwab <schwab@suse.de>
7912 * Makerules ($(common-objpfx)%.make): Filter through
7913 $(sed-remove-objpfx).
7915 2002-12-23 Roland McGrath <roland@redhat.com>
7917 * scripts/abilist.awk: Produce a more compact format, divided into
7918 stanzas for each version set, the set name listed only once.
7919 * scripts/extract-abilist.awk: New file.
7920 * scripts/merge-abilist.awk: New file.
7921 * Makerules (check-abi-%, update-abi-%): New pattern rules.
7922 (update-abi, check-abi): New targets.
7923 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
7925 2002-12-19 Roland McGrath <roland@redhat.com>
7927 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
7929 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
7932 2002-12-21 Andreas Schwab <schwab@suse.de>
7934 * elf/check-textrel.c (handle_file): Swap p_type.
7936 2002-12-21 Andreas Schwab <schwab@suse.de>
7938 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
7939 (INLINE_SYSCALL): Use it.
7940 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7941 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7943 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
7944 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
7946 2002-12-20 Art Haas <ahaas@airmail.net>
7948 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
7951 2002-12-21 Philip Blundell <philb@gnu.org>
7953 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
7954 top as seventh arg to __libc_start_main.
7955 Reported by paulnash@wildseed.com.
7957 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
7959 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
7960 compatibility cruft when new enough kernel is assumed.
7962 2002-12-20 Jakub Jelinek <jakub@redhat.com>
7964 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
7965 instead of INLINE_SYSCALL.
7967 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7969 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
7972 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
7973 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7974 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
7975 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7976 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7977 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7978 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7979 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7980 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7981 Patch by William Lee Irwin <wli@holomorphy.com>.
7983 2002-12-20 Andreas Schwab <schwab@suse.de>
7985 * locale/programs/ld-measurement.c (measurement_output): Fix
7988 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7990 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
7991 Redefine _IO_flockifle and _IO_funlockfile as inlines.
7993 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
7994 builds add "tls" in the search path.
7995 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
7996 (path_hwcap): Recognize "tls".
7998 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8000 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
8001 __waitpid instead of waitpid.
8003 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
8005 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
8006 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
8007 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
8009 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
8010 information for system calls.
8012 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
8015 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
8017 2002-12-19 Roland McGrath <roland@redhat.com>
8019 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
8020 * iconvdata/ibm922.h: Likewise.
8021 * iconvdata/ibm930.h: Likewise.
8022 * iconvdata/ibm932.h: Likewise.
8023 * iconvdata/ibm933.h: Likewise.
8024 * iconvdata/ibm935.h: Likewise.
8025 * iconvdata/ibm937.h: Likewise.
8026 * iconvdata/ibm939.h: Likewise.
8027 * iconvdata/ibm943.h: Likewise.
8028 * iconvdata/isiri-3342.h: Likewise.
8030 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8032 * test-skeleton.c (main): Make sure correct value is seen as
8033 argv[0] after adjustment of argv, and argc.
8035 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
8036 RTLD_CORRECT_DYNAMIC_WEAK is defined.
8038 2002-12-19 Jakub Jelinek <jakub@redhat.com>
8040 * nscd/connections.c (nscd_run): Shut up warning.
8041 * tst-ungetc.c (assert): Undefined before redefining.
8043 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8045 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
8048 2002-12-17 Art Haas <ahaas@airmail.net>
8050 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
8051 * iconvdata/cp775.h: Likewise.
8052 * iconvdata/ibm1046.h: Likewise.
8053 * iconvdata/ibm1124.h: Likewise.
8054 * iconvdata/ibm1129.h: Likewise.
8055 * iconvdata/ibm1132.h: Likewise.
8056 * iconvdata/ibm1133.h: Likewise.
8057 * iconvdata/ibm1160.h: Likewise.
8058 * iconvdata/ibm1161.h: Likewise.
8059 * iconvdata/ibm1162.h: Likewise.
8060 * iconvdata/ibm1163.h: Likewise.
8061 * iconvdata/ibm1164.h: Likewise.
8063 2002-12-19 Ulrich Drepper <drepper@redhat.com>
8065 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
8066 __ASSUME_CLONE_THREAD_FLAGS is defined.
8067 * sysdeps/unix/sysv/linux/kernel-features.h
8068 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
8070 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8072 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
8074 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8076 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
8078 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8080 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
8082 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
8084 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8085 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
8086 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
8089 2002-12-18 Jakub Jelinek <jakub@redhat.com>
8091 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
8093 [libc: GLIBC_PRIVATE]: ...here.
8094 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
8096 [libc: GLIBC_PRIVATE]: ...here.
8098 2002-12-18 Ulrich Drepper <drepper@redhat.com>
8100 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
8101 Use it instead of directly int $0x80.
8102 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
8103 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
8104 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8105 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8106 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8107 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8109 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8111 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
8113 * elf/elf.h (AT_SYSINFO): New define.
8114 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
8117 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8119 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
8121 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
8123 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
8125 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
8127 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
8129 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
8131 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
8132 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
8133 available, otherwise __libc_maybe_call.
8134 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
8135 cancellation handling.
8136 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
8138 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8140 * posix/regcomp.c (free_workarea_compile): Free the new member
8142 (analyze): Initialize ORG_INDICES.
8143 (duplicate_node_closure): Search for a existing node, which is
8144 duplicated from the node ORG_DEST and satisfies the constraint
8145 CONSTRAINT. And use it to avoid inifimite loop.
8146 (search_duplicated_node): New function.
8147 (duplicate_node): Store the index of the original node.
8148 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
8150 * posix/regex_internal.h (re_dfa_t): Add new members.
8152 2002-12-17 Ulrich Drepper <drepper@redhat.com>
8154 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
8156 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8158 * sysdeps/posix/system.c (do_system): Add support for installation
8159 of cancellation handlers.
8160 * sysdeps/unix/sysv/linux/i386/system.c: New file.
8162 * stdlib/Makefile (tests): Add tst-system.
8163 * stdlib/tst-system.c: New file.
8165 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
8166 CENABLE]: Don't lose content of %ebx.
8168 2002-12-17 Jakub Jelinek <jakub@redhat.com>
8170 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
8171 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
8173 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8175 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
8176 fails to return a function pointer don't use it.
8178 2002-12-16 Art Haas <ahaas@airmail.net>
8180 * io/ftw.c: Convert GCC extension initializer syntax to C99.
8181 * iconvdata/iso-ir-165.c: Likewise.
8182 * iconvdata/jis0208.c: Likewise.
8183 * iconvdata/jis0212.c: Likewise.
8185 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8187 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
8188 epoll_ctl, and epoll_wait.
8189 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
8190 epoll_create, epoll_ctl, and epoll_wait.
8191 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
8192 Davide Libenzi <davidel@xmailserver.org>.
8193 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
8194 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8197 2002-12-16 Art Haas <ahaas@airmail.net>
8199 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
8201 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
8202 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
8203 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
8205 2002-12-16 Ulrich Drepper <drepper@redhat.com>
8207 * stdio-common/Makefile (routines): Remove lockfile. Add
8208 flockfile, ftrylockfile, and funlockfile.
8209 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
8210 * sysdeps/generic/flockfile.c: New file.
8211 * sysdeps/generic/ftrylockfile.c: New file.
8212 * sysdeps/generic/funlockfile.c: New file.
8214 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8216 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
8217 macros instead of doing the calls directly.
8218 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
8219 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
8222 2002-12-16 Jakub Jelinek <jakub@redhat.com>
8224 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
8225 * sysdeps/ieee754/bits/nan.h: Likewise.
8227 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
8228 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
8230 2002-12-16 Roland McGrath <roland@redhat.com>
8232 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8233 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8234 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8236 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8237 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8239 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8240 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8241 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8242 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8243 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8244 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8245 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8246 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8248 2002-12-13 Paul Eggert <eggert@twinsun.com>
8250 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8251 is now u_int, not int.
8252 (struct XDR.x_handy): Now u_int, not int.
8253 * sunrpc/xdr_mem.c: Include <limits.h>.
8254 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8255 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8256 x_handy is now unsigned, not signed.
8257 Do not decrement x_handy if no change is made.
8258 (xdrmem_setpos): Check for int overflow.
8259 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8260 (xdr_sizeof): Remove cast that is now unnecessary, now that
8261 x_handy is unsigned.
8263 2002-12-15 Art Haas <ahaas@airmail.net>
8265 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8266 * iconvdata/gap.awk: Likewise.
8267 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8268 * iconvdata/gen-8bit-gap.sh: Likewise.
8269 * locale/C-address.c: Likewise.
8270 * locale/C-collate.c: Likewise.
8271 * locale/C-ctype.c: Likewise.
8272 * locale/C-identification.c: Likewise.
8273 * locale/C-measurement.c: Likewise.
8274 * locale/C-messages.c: Likewise.
8275 * locale/C-monetary.c: Likewise.
8276 * locale/C-name.c: Likewise.
8277 * locale/C-numeric.c: Likewise.
8278 * locale/C-paper.c: Likewise.
8279 * locale/C-telephone.c: Likewise.
8280 * locale/C-time.c: Likewise.
8281 * nscd/connections.c: Likewise.
8282 * nscd/grpcache.c: Likewise.
8283 * nscd/hstcache.c: Likewise.
8284 * nscd/pwdcache.c: Likewise.
8285 * stdio-common/vfprintf.c: Likewise.
8286 * stdlib/random.c: Likewise.
8287 * sysdeps/generic/siglist.c: Likewise.
8288 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8289 * sysdeps/ieee754/bits/nan.h: Likewise.
8290 * sysdeps/posix/sprofil.c: Likewise.
8291 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8292 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8293 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8295 2002-12-15 Roland McGrath <roland@redhat.com>
8297 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8299 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8300 <tls.h> here, no need for it.
8301 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8303 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8304 parameter, not varargs parameter.
8306 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8307 argument so it's not an unused variable.
8309 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8310 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8313 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8315 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8317 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8318 original __libc_fcntl code. Just renamed.
8320 2002-12-15 Andreas Schwab <schwab@suse.de>
8322 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8324 2002-12-14 Olaf Hering <olh@suse.de>
8326 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8327 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8329 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8331 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8333 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8334 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8336 * sysdeps/unix/sysv/linux/open64.c: New file.
8338 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8339 * sysdeps/posix/open64.c: Likewise.
8340 * sysdeps/posix/sigpause.c: Likewise.
8341 * sysdeps/posix/sigwait.c: Likewise.
8342 * sysdeps/posix/system.c: Likewise.
8343 * sysdeps/posix/waitid.c: Likewise.
8344 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8345 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8346 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8347 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8348 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8349 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8350 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8351 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8352 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8353 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8354 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8355 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8356 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8357 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8358 * sysdeps/unix/sysv/linux/send.S: Likewise.
8359 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8360 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8361 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8362 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8363 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8364 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8365 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8366 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8367 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8368 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8369 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8370 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8372 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8374 * sysdeps/generic/sysdep-cancel.h: New file.
8375 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8377 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8378 recvmsg, send, sendmsg, sendto): Make cancelable.
8379 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8380 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8381 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8382 sendto, osf_select): Likewise.
8383 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8384 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8385 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8386 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8388 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8389 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8390 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8391 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8393 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8394 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8395 sendto, select): Likewise.
8396 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8397 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8399 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8400 select, fcntl): Likewise.
8401 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8402 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8403 read, readv, select, sigsuspend, write, writev): Likewise.
8405 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8407 * dirent/bug-readdir1.c: Include unistd.h.
8409 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8411 * locale/programs/locale.c: Include locarchive.h.
8412 (ARCHIVE_NAME): Define.
8413 (write_archive_locales): New function.
8414 (write_locales): Use it. Ensure the same locale is not printed
8415 multiple times in verbose mode.
8416 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8417 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8419 (struct nameent): New type.
8420 (nameentcmp): New function.
8422 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8424 * posix/regex_internal.c (re_string_context_at): Guard wide char
8425 code with #ifdef RE_ENABLE_I18N.
8427 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8429 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8431 2002-12-13 Roland McGrath <roland@redhat.com>
8433 * posix/bug-regex15.c: New file.
8434 * posix/Makefile (tests): Add it.
8436 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8437 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8439 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8441 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8443 * misc/syslog.c (log_cleanup): Don't use parameter in
8444 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8445 pass NULL instead of a pointer to syslog_lock.
8447 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8449 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8450 linker map for all iconv modules.
8451 (distribute): Add gconv.map.
8452 * iconvdata/gconv.map: New file.
8454 * elf/Makefile: Also check all iconv modules for text relocations.
8456 * stdlib/Makefile: Remove code to automatically import GMP.
8458 * elf/Makefile (tests): Add rules to build and run check-textrel.
8459 * elf/check-textrel.c: New file.
8461 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8464 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8466 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8469 2002-04-30 Bruno Haible <bruno@clisp.org>
8471 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8472 the encoding if it already has slashes.
8473 Reported by Perry Rapp <prapp@erols.com>.
8475 2002-12-11 Roland McGrath <roland@redhat.com>
8477 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8478 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8479 Turn off PIC for compiling this file.
8481 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8483 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8484 definitions. Not needed.
8485 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8486 pthread routines directly.
8487 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8489 (arena_get2): Don't look at return value of mutex_lock.
8491 2002-12-11 Roland McGrath <roland@redhat.com>
8493 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8494 elf-init.o instead of compiling a PIC version.
8496 2002-12-11 Bruno Haible <bruno@clisp.org>
8498 * intl/gettext.h: Renamed to ...
8499 * intl/gmo.h: ... here.
8500 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8501 * intl/gettextP.h: Update.
8502 * intl/loadmsgcat.c: Update.
8504 * intl/gettextP.h (PARAMS): Make more portable.
8505 (attribute_hidden): Define as empty macro if not already defined.
8506 * intl/hash-string.h (PARAMS): Make more portable.
8507 * intl/loadinfo.h (PARAMS): Likewise.
8508 * intl/plural-exp.h (PARAMS): Likewise.
8509 (attribute_hidden): Move definition near the definition of
8512 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8513 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8515 2002-07-13 Bruno Haible <bruno@clisp.org>
8517 * intl/dcigettext.c (freea): New macro.
8518 (FREE_BLOCKS): Free also the registered blocks.
8519 (DCIGETTEXT): Free the 'search' variable.
8520 Reported by Andreas Fischer <a.fischer@asentics.de>.
8522 2002-04-27 Bruno Haible <bruno@clisp.org>
8524 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8525 * intl/dcigettext.c: Likewise.
8526 * intl/dcgettext.c: Likewise.
8527 * intl/dgettext.c: Likewise.
8528 * intl/gettext.c: Likewise.
8529 * intl/dcngettext.c: Likewise.
8530 * intl/dngettext.c: Likewise.
8531 * intl/ngettext.c: Likewise.
8532 * intl/textdomain.c: Likewise.
8533 * intl/bindtextdom.c: Likewise.
8534 * intl/plural-exp.h: Likewise.
8536 2002-01-02 Bruno Haible <bruno@clisp.org>
8538 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8540 2001-04-30 Bruno Haible <bruno@clisp.org>
8542 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8543 default macro definitions. Needed for mingw32.
8545 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8547 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8548 __builtin_constant_p to macro parameter.
8550 * sysdeps/generic/sigpause.c: Define all functions as weak.
8551 * sysdeps/posix/sigpause.c: Likewise.
8553 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8556 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8558 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8559 Explicitly align the array to sizeof (void *).
8560 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8562 * include/libc-symbols.h: Fix a comment typo.
8564 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8565 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8567 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8569 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8570 (__libc_sigsuspend): Likewise.
8571 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8572 (__libc_sigsuspend): Likewise.
8573 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8574 (creat): New weak alias.
8576 2002-12-10 Roland McGrath <roland@redhat.com>
8578 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8579 contributes a manual chapter.
8580 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8583 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8584 and move contents to ...
8585 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8586 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8587 it instead of duplicating its contents.
8588 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8590 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8592 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8594 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8596 (EXTRA_LD_ENVVARS): Use it.
8597 (DL_OSVERSION_INIT): Define.
8598 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8600 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8602 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8604 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8606 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8607 call. It is not allowed to destroy pthread mutexes which are
8608 still in use even though it is safe for our implementations. If
8609 somebody still uses the descriptor it is a bug.
8611 2002-12-09 Richard Henderson <rth@redhat.com>
8613 * csu/abi-note.S: Use .p2align, not .align.
8615 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8617 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8618 __libc_select aliases.
8620 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8623 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8625 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8627 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8629 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8631 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8633 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8634 __libc___xpg_sigpause aliases.
8636 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8638 * misc/error.c: Remove use of USE_IN_LIBIO.
8640 2002-12-08 Roland McGrath <roland@redhat.com>
8642 * elf/Makefile (tests): Uncomment tst-array[123].
8643 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8644 * csu/elf-init.c: New file.
8645 * csu/Makefile (routines, static-only-routines): Add elf-init.
8646 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8647 and __libc_csu_fini in place of _fini.
8648 * sysdeps/arm/elf/start.S: Likewise.
8649 * sysdeps/cris/elf/start.S: Likewise.
8650 * sysdeps/hppa/elf/start.S: Likewise.
8651 * sysdeps/i386/elf/start.S: Likewise.
8652 * sysdeps/ia64/elf/start.S: Likewise.
8653 * sysdeps/m68k/elf/start.S: Likewise.
8654 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8655 * sysdeps/mips/elf/start.S: Likewise.
8656 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8657 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8658 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8659 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8660 * sysdeps/sh/elf/start.S: Likewise.
8661 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8662 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8663 * sysdeps/x86_64/elf/start.S: Likewise.
8665 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8666 struct containing function ptr and value, free it.
8667 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8668 It's not safe to let the new thread use the SIGEV pointer.
8670 2001-10-20 Paul Eggert <eggert@twinsun.com>
8672 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8673 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8674 Use strerror_r that is only a macro, even if it is not a function.
8675 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8676 (private_strerror): Use prototypes, not old-style function definition.
8677 (print_errno_message): New function.
8678 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8680 (error_tail, error, error_at_line): Use it.
8682 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8684 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8686 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8688 * scripts/output-format.sed: Fix bug in one of the s expressions
8689 which used / for one too many things.
8691 * include/unistd.h: Declare __libc_close.
8693 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8695 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8697 2002-12-07 Roland McGrath <roland@redhat.com>
8699 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8700 from 2002-12-06, but remove unnecessary memset call without removing
8701 necessary copy of initialization image.
8703 * Makerules ($(common-objpfx)format.lds): New target.
8704 (common-generated): Add it.
8705 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8706 * scripts/output-format.sed: New file.
8707 * Makefile (distribute): Add it.
8709 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8711 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8712 Reported by Art Haas <ahaas@airmail.net>.
8714 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8716 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8718 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8720 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8722 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8724 * test-skeleton.c (timeout_handler): Allow expected signal to be
8727 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8729 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8731 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8733 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8734 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8735 Reported by Jeff Bailey <jbailey@nisa.net>.
8737 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8739 * sysdeps/generic/libc-tls.c: Undo last patch.
8741 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8743 * include/signal.h: Define raise with libc_hidden_proto.
8745 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8746 __execve instead of snprintf and execve.
8748 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8751 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8753 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8754 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8756 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8758 * misc/syslog.c (log_cleanup): New function.
8759 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8760 (closelog): Likewise.
8762 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8763 * elf/dl-iteratephdr.c: Likewise.
8764 * elf/dl-lookup.c: Likewise.
8765 * elf/dl-misc.c: Likewise.
8766 * elf/dl-open.c: Likewise.
8767 * elf/dl-support.c: Likewise.
8768 * elf/rtld.c: Likewise.
8769 * sysdeps/generic/ldsodefs.h: Likewise.
8770 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8771 * sysdeps/mach/bits/libc-lock.h: Likewise.
8772 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8774 2002-12-06 Roland McGrath <roland@redhat.com>
8776 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8778 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8779 (malloc_starter, memalign_starter, free_starter): Don't define these.
8780 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8781 Don't declare them either.
8782 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8783 __pthread_initialize, so no need to set hooks to *_starter.
8784 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8785 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8786 (__libc_malloc_pthread_startup): New function.
8787 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8789 * malloc/hooks.c (memalign_starter): New function.
8790 * malloc/malloc.c: Declare it.
8791 * malloc/arena.c (save_memalign_hook): New variable.
8792 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8794 * elf/dl-minimal.c (free): Clear the memory.
8795 (calloc): Just call malloc, knowing all memory it returns is cleared.
8797 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8798 malloc and memset; calloc can avoid the zeroing when redundant.
8799 (_dl_tls_setup): Likewise.
8800 * elf/dl-load.c (decompose_rpath): Likewise.
8801 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8802 call, since memory from sbrk at startup is already zero.
8804 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8805 error string for failure, null for success. Update callers.
8806 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8807 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8809 2002-12-05 Jakub Jelinek <jakub@redhat.com>
8811 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8813 (readahead): Change args to i:iii.
8814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8815 Change args to i:iii.
8816 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8819 2002-12-05 Roland McGrath <roland@redhat.com>
8821 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8822 call all functions rather than none.
8823 Reported by Mark P. Mitchell <mark@codesourcery.com>.
8825 2002-12-04 Roland McGrath <roland@redhat.com>
8827 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8828 on _nl_current_LC_* variables.
8830 2002-12-05 Ulrich Drepper <drepper@redhat.com>
8832 * dirent/bug-readdir1.c (main): Don't call closedir, just close
8833 the file descriptor. This is testing what the bug report was about.
8835 2002-12-04 Ulrich Drepper <drepper@redhat.com>
8837 * po/be.po: New file.
8839 * argp/Makefile (tests): Add tst-argp1.
8841 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8842 Change type of _attribute to void*.
8843 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8844 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8845 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8846 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8847 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8849 2002-12-04 Roland McGrath <roland@redhat.com>
8851 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8852 members to the end, so a libpthread compiled with !USE_TLS will still
8853 find other members properly.
8855 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8856 operand for DEST memory. Fix dummy input operand to use SRC.
8857 Reported by Davin McCall <davmac@ozonline.com.au>.
8859 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8860 alignment when initializing the DTV entry.
8862 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8863 when TLS has not been set up, try to set it up if we can.
8864 * elf/tst-tls4.c: Revert last change.
8865 * elf/tst-tls5.c: Likewise.
8866 * elf/tst-tls6.c: Likewise.
8867 * elf/tst-tls7.c: Likewise.
8868 * elf/tst-tls8.c: Likewise.
8869 * elf/tst-tls9.c: Likewise.
8871 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8872 * sysdeps/generic/ldsodefs.h: Declare it.
8873 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8874 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8875 function, broken out of __libc_setup_tls.
8876 (init_static_tls): Likewise.
8877 (__libc_setup_tls): Call them.
8878 (_dl_tls_setup): New function, uses new subroutines.
8880 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8881 Clear the pointer when returning true.
8882 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8883 first element of the slotinfo list too.
8885 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8888 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8889 (_dl_determine_tlsoffset): Likewise.
8891 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8892 startup_error_tsd, made global.
8893 (dl_main): Update initialization.
8894 * elf/dl-tsd.c: Likewise.
8895 * sysdeps/generic/ldsodefs.h: Declare it.
8897 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8899 * manual/texinfo.tex: Update from latest upstream version.
8901 2002-12-03 Roland McGrath <roland@redhat.com>
8903 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
8904 area surplus in calculation for sbrk call.
8906 * iconvdata/cp1125.c: New file.
8907 * iconvdata/Makefile (distribute): Add it.
8908 (modules): Add CP1125.
8909 (gen-8bit-gap-modules): Add cp1125.
8910 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
8911 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
8913 2002-12-03 Andreas Jaeger <aj@suse.de>
8915 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8917 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8919 * sysdeps/posix/system.c (do_system): Make signal handler
8920 installation thread safe.
8922 2002-12-02 Roland McGrath <roland@redhat.com>
8924 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
8925 caller from EXTRA to -.
8926 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8927 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8928 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8930 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
8932 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
8933 bits of RM are cleared.
8935 2002-12-02 Roland McGrath <roland@redhat.com>
8937 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
8938 TLS setup is required.
8939 * elf/tst-tls5.c: Likewise.
8940 * elf/tst-tls6.c: Likewise.
8941 * elf/tst-tls7.c: Likewise.
8942 * elf/tst-tls8.c: Likewise.
8943 * elf/tst-tls9.c: Likewise.
8945 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
8946 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
8947 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
8948 for being null before calling free_slotinfo.
8949 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
8950 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
8952 2002-11-30 Bruno Haible <bruno@clisp.org>
8954 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
8955 (struct __gconv_step): New field __btowc_fct.
8956 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
8957 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
8959 (__gconv_btwoc_ascii): New declaration.
8960 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8961 (__gconv_btwoc_ascii): New function.
8962 * iconv/gconv_builtin.h: Add BtowcFct argument to all
8963 BUILTIN_TRANSFORMATION invocations.
8964 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8965 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
8966 * iconv/gconv_builtin.c (map): New field btowc_fct.
8967 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
8969 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
8970 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
8971 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
8972 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
8973 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
8974 (gconv_init): Initialize __btowc_fct field.
8975 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
8976 * iconv/loop.c: Document ONEBYTE_BODY.
8977 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
8978 Undefine ONEBYTE_BODY at the end.
8979 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
8980 * iconvdata/8bit-gap.c (NONNUL): New macro.
8981 (BODY for FROM_LOOP): Use it.
8982 (ONEBYTE_BODY): New macro.
8983 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
8984 (NONNUL): New macro.
8985 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
8986 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
8987 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
8988 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
8989 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
8990 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
8991 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
8992 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
8993 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
8994 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
8995 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
8996 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
8997 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
8998 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
8999 * iconvdata/ibm932.c: Include <stdbool.h>.
9000 (TRUE, FALSE): Remove macros.
9001 (BODY for FROM_LOOP): Remove unused variable rp1.
9002 (ONEBYTE_BODY): New macro.
9003 (BODY for TO_LOOP): Use bool.
9004 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
9005 * iconvdata/ibm943.c: Include <stdbool.h>.
9006 (TRUE, FALSE): Remove macros.
9007 (BODY for FROM_LOOP): Remove unused variable rp1.
9008 (ONEBYTE_BODY): New macro.
9009 (BODY for TO_LOOP): Use bool.
9010 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
9011 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
9012 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
9013 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
9014 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
9015 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
9016 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
9017 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
9018 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
9019 * iconvdata/gbbig5.c: Tweak comment.
9021 2002-12-02 Ulrich Drepper <drepper@redhat.com>
9023 * po/fi.po: Update from translation team.
9025 2002-12-01 Roland McGrath <roland@redhat.com>
9027 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
9028 testing getdents64 return value.
9030 * scripts/versions.awk: Don't pass -n flag to sort command.
9032 * posix/bug-regex13.c: Include <string.h>.
9034 * sysdeps/generic/libc-start.c (__libc_start_main): Do
9035 DL_SYSDEP_OSCHECK here.
9036 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
9037 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
9039 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
9040 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
9042 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
9043 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
9045 * include/link.h: Comment typo fix.
9047 2002-12-01 Roland McGrath <roland@frob.com>
9049 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
9050 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
9051 _POSIX_MEMORY_PROTECTION): Likewise.
9052 (_POSIX_POLL, _POSIX_SELECT): Removed.
9054 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9056 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
9057 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
9059 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9061 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
9063 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
9066 2002-11-28 Ulrich Drepper <drepper@redhat.com>
9068 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
9069 branch prediction buffers by using unpaired call/ret.
9071 2002-11-27 Ulrich Drepper <drepper@redhat.com>
9073 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
9074 first parameters constraint string.
9075 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
9077 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
9079 * posix/regcomp.c (parse_expression): Set the bit since the back
9080 reference is used in the regular expression.
9081 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
9083 (re_node_set_init_copy): Likewise.
9084 * posix/regex_internal.h (state_array_t): New structure.
9085 (re_sub_match_last_t): Likewise.
9086 (re_sub_match_top_t): Likewise.
9087 (re_match_context_t): Add new members.
9088 (re_dfa_t): Likewise.
9089 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
9090 to check the matching is really correct, and retry if failed.
9091 Move the routin pruning the impossible nodes from here, ...
9092 (prune_impossible_nodes): To this function.
9093 (check_matching): Invoke check_subexp_matching_top, and replace
9094 redundant checking with transit_state_bkref invocation.
9095 (proceed_next_node): Replace strncmp with memcmp. Reported by
9096 Paolo Bonzini <bonzini@gnu.org>.
9097 (update_cur_sifted_state): Remove search_subexp invocation.
9098 (search_subexp): Remove this function.
9099 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
9101 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
9102 Remove unused invocation of match_ctx_add_entry.
9103 (transit_state): Invoke check_subexp_matching_top.
9104 (check_subexp_matching_top): New function.
9105 (transit_state_bkref): Remove unused array.
9106 Merge transit_state_bkref_loop.
9107 (transit_state_bkref_loop): Use get_subexp instead of
9108 sift_states_backward. Use search_cur_bkref_entry for optimization.
9109 Merge this function to transit_state_bkref.
9110 (get_subexp): New function.
9111 (get_subexp_sub): Likewise.
9112 (find_subexp_node): Likewise.
9113 (check_arrival): Likewise.
9114 (check_arrival_expand_ecl): Likewise.
9115 (check_arrival_expand_ecl_sub): Likewise.
9116 (expand_bkref_cache): Likewise.
9117 (match_ctx_init): Initialize new members.
9118 (match_ctx_clean): New function.
9119 (match_ctx_free): Release new members.
9120 (match_ctx_free_subtops): New function.
9121 (match_ctx_add_entry): Fix indent.
9122 (search_cur_bkref_entry): New function.
9123 (match_ctx_add_subtop): Likewise.
9124 (match_ctx_add_sublast): Likewise.
9126 2002-11-25 Ulrich Drepper <drepper@redhat.com>
9128 * iconv/Makefile (tests): Remove tst-iconv4.c
9129 * iconv/tst-iconv4.c: Moved to...
9130 * iconvdata/tst-iconv4.c: ...here. New file.
9131 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
9133 2002-11-25 Roland McGrath <roland@redhat.com>
9135 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
9136 Grok AF_LINK if defined.
9137 From Momchil Velikov <velco@fadata.bg>.
9139 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
9140 brdaddr, or dstaddr, just set those pointers to null and don't fail.
9141 Reported by Momchil Velikov <velco@fadata.bg>.
9143 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
9144 is > sizeof IFR->ifa_addr, advance past the whole longer length.
9145 (__ifreq): Count up NIFS that way too.
9146 Reported by Momchil Velikov <velco@fadata.bg>.
9148 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
9150 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
9151 and <fpu_control.h>.
9153 2002-11-24 Ulrich Drepper <drepper@redhat.com>
9155 * elf/elf.h (EM_ST19): Fix typo.
9157 2002-11-25 Jakub Jelinek <jakub@redhat.com>
9159 * include/errno.h (__set_errno): Define as errno = val
9162 2002-11-24 Roland McGrath <roland@redhat.com>
9164 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
9165 * sysdeps/posix/writev.c: Likewise.
9166 From Momchil Velikov <velco@fadata.bg>.
9168 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
9169 calling *GL(dl_error_catch_tsd) for a thread-local location.
9170 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
9171 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
9172 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
9174 * libio/iofflush.c: Add libc_hidden_def.
9175 * libio/iofwrite.c: Likewise.
9176 * sysdeps/generic/sigtimedwait.c: Likewise.
9177 * sysdeps/generic/sigwaitinfo.c: Likewise.
9178 * sysdeps/posix/sigwait.c: Likewise.
9179 Reported by Momchil Velikov <velco@fadata.bg>.
9181 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
9182 to match <arpa/inet.h> declaration.
9183 * inet/inet_netof.c (inet_netof): Likewise.
9184 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
9185 Reported by Momchil Velikov <velco@fadata.bg>.
9187 * configure.in: Skip AUTOCONF check under --without-cvs.
9188 * configure: Regenerated.
9190 * posix/Makefile (headers): Add bits/pthreadtypes.h.
9191 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
9192 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
9194 2002-11-24 Andreas Schwab <schwab@suse.de>
9196 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
9199 2002-11-19 Jim Meyering <jim@meyering.net>
9201 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
9203 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
9205 2002-11-23 Roland McGrath <roland@redhat.com>
9207 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
9208 Just produce hex output for datum sizes.
9210 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
9211 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9213 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
9215 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
9216 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9217 and __unused3 fields.
9218 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
9219 [__WORDSIZE == 32]: Only PPC32 requires __unused1
9220 and __unused2 fields.
9221 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
9222 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
9223 __unused3, and __unused4 fields.
9225 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
9226 obtain lowest address for profiling in __monstartup call.
9228 2002-11-21 Roland McGrath <roland@redhat.com>
9230 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9231 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9233 * locale/localeinfo.h (struct locale_data): Revert last change.
9235 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9236 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9238 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9239 __NR_pread64 if not defined.
9240 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9241 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9243 2002-11-21 Roland McGrath <roland@frob.com>
9245 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9246 __libc_multiple_libcs here. Call __setfpucw.
9248 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9250 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9252 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9253 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9254 CLONE_CHILD_*TID flags.
9256 2002-11-20 Andreas Jaeger <aj@suse.de>
9258 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9259 We pass struct ucontext on x86-64.
9261 (GET_FRAME): Adjust.
9262 (GET_STACK): Adjust.
9264 2002-11-20 Roland McGrath <roland@redhat.com>
9266 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9267 conditionalize [! DO_VERSIONING] #error.
9269 * scripts/abilist.awk: Grok function descriptor symbols.
9271 * intl/tst-gettext.c (main): Check return values from setlocale.
9272 Add necessary unsetenv's to make LANG=existing-locale check work.
9274 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9275 so aborted prior runs don't confuse things.
9277 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9278 Use uintptr_t instead of unsigned int for `word' member.
9279 (_NL_CURRENT_WORD): Cast to uint32_t.
9281 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9284 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9286 * elf/tls-macros.h: Add IA-64 definitions.
9287 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9289 * iconv/Makefile (tests): Add tst-iconv4.
9290 * iconv/tst-iconv4.c: New file.
9292 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9293 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9294 __GCONV_INCOMPLETE_INPUT.
9295 (ucs4le_internal_loop): Likewise.
9296 (ucs4le_internal_loop_unaligned): Likewise.
9297 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9298 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9299 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9301 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9304 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9305 * sysdeps/posix/getaddrinfo.c: Likewise.
9307 * include/alloca.h (extend_alloca): New define. Based on stack
9308 direction it'll try to append to the previouls allocated buffer.
9310 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9312 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9313 use the same service for AF_INET and AF_INET6.
9315 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9317 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9318 of stack space instead of 16k.
9320 2002-11-18 Wolfram Gloger <wg@malloc.de>
9323 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9324 nothing if not initialized. Bug report from Marcus Brinkmann
9325 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9327 2002-11-19 Roland McGrath <roland@redhat.com>
9329 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9332 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9333 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9334 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9335 * configure: Regenerated.
9337 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9339 * include/dlfcn.h: __libc_dlopen is now a macro calling
9340 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9341 (__libc_dlopen_mode): New prototype.
9342 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9343 new parameter. Store new parameter in mode field of structure passed
9345 (struct do_dlopen_args): Add new field mode.
9346 (do_dlopen): Pass mode from parameter structure to _dl_open.
9348 2002-11-11 Randolf Chung <tausq@debian.org>
9350 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9351 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9352 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9354 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9356 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9357 Set -mdisable-fpregs for this file.
9359 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9361 * sysdeps/unix/sysv/linux/configure.in:
9362 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9363 from gcc-3.0 era for backwards compatibility.
9364 * sysdeps/unix/sysv/linux/configure: Regenerate.
9366 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9367 Define mcontext_t as a sigcontext.
9369 2002-11-18 Roland McGrath <roland@redhat.com>
9371 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9372 Free memory in `last_result' if it was used.
9374 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9375 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9376 Do the parsing inline instead of copying strings and calling
9377 inet_network, and properly skip all alias names not matching the form.
9379 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9381 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9383 * manual/pattern.texi (Wordexp Example): Fix sample code.
9385 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9386 childs stack which will be loaded into the %esi register.
9388 2002-11-14 Paul Eggert <eggert@twinsun.com>
9390 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9391 overflow when skipping the question part and when unpacking aliases.
9393 2002-11-15 Roland McGrath <roland@redhat.com>
9395 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9396 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9397 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9399 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9401 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9402 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9404 2002-11-15 Roland McGrath <roland@redhat.com>
9406 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9407 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9408 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9409 (+make-include-of-dep): New canned sequence.
9411 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9412 From Dmitry V. Levin <ldv@altlinux.org>.
9414 2002-11-14 Roland McGrath <roland@redhat.com>
9416 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9417 * inet/herrno.c (__libc_h_errno): Likewise.
9418 * resolv/res_libc.c (__libc_res): Likewise.
9419 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9420 (__res_state) [! USE___THREAD]: Don't define as weak.
9421 * csu/Versions: Revert last change.
9422 * resolv/Versions: Revert last change.
9424 * Makerules ($(common-objpfx)%.make): New pattern rule.
9425 * tls.make.c: New file.
9426 * Makefile (distribute): Add it.
9428 * sysdeps/generic/errno.c [! USE___THREAD]
9429 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9430 with compat_symbol so they are not link-time visible.
9431 [! USE___THREAD] (__libc_errno): New alias for errno.
9432 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9433 Add __libc_errno here.
9434 * inet/herrno.c [USE___THREAD]: Use this conditional
9435 in place of [USE_TLS && HAVE___THREAD].
9436 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9437 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9439 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9440 * resolv/res_libc.c [! USE___THREAD]
9441 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9442 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9443 (__libc_res): Define as alias for _res.
9444 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9445 Add __libc_h_errno and __libc_res here.
9447 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9449 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9450 * resolv/Versions (h_errno, _res): Likewise.
9452 2002-11-14 Roland McGrath <roland@redhat.com>
9454 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9455 (%.symlist): Likewise.
9457 2002-11-13 Roland McGrath <roland@redhat.com>
9459 * scripts/abilist.awk: New file.
9460 * Makefile (distribute): Add it.
9461 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9462 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9463 [$(subdir) = elf] (tests): Depend on libc.symlist.
9464 (generated, common-generated): Add those files.
9466 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9467 * configure: Regenerated.
9468 * config.make.in (OBJDUMP): New variable, substituted by configure.
9470 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9471 (mallochook, reallochook): Set them up.
9472 (checkhdr): Check HDR->magic2 value.
9473 (freehook): Reset HDR->magic2.
9474 (memalignhook): New static function.
9475 (old_memalign_hook): New static variable.
9476 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9478 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9481 2002-11-13 Andreas Jaeger <aj@suse.de>
9483 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9485 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9487 2002-11-11 Paul Eggert <eggert@twinsun.com>
9489 * manual/crypt.texi (Cryptographic Functions): Mention that
9490 the MD5 one-way algorithm is compatible with BSD's.
9492 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9494 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9496 (re_string_reconstruct): Calculate the context by itself when the
9497 offset points out of the valid range.
9498 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9499 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9500 (IS_WIDE_WORD_CHAR): New macro.
9501 (IS_WIDE_NEWLINE): New macro.
9503 2002-11-12 Andreas Jaeger <aj@suse.de>
9505 * sysdeps/x86_64/strchr.S: Don't use one register for two
9506 purposes, this fixes a bug noticed by test-strchr.c.
9508 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9511 2002-11-12 Roland McGrath <roland@redhat.com>
9513 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9514 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9516 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9517 instead of <pt-machine.h>.
9518 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9520 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9522 2002-11-10 Roland McGrath <roland@redhat.com>
9524 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9525 Call fputs instead of fwprintf (simpler to follow in debugger).
9527 * crypt/md5-crypt.c: Doc fix.
9529 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9530 the beginning of generated target commands.
9532 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9533 dependencies for these in case implicit rule search skipped the
9534 nonexistent source directory.
9535 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9536 files with $(object-suffixes) as targets too.
9537 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9538 and a target for it using $(make-target-directory).
9540 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9542 2002-11-10 Roland McGrath <roland@frob.com>
9544 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9545 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9547 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9548 l_start == 0 and l_len == 1 as we do l_len == 0.
9550 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9552 * po/da.po: Update from translation team.
9554 2002-11-10 Roland McGrath <roland@redhat.com>
9556 * config.make.in (includedir): New variable, substituted by configure.
9557 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9558 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9560 2002-11-10 Andreas Jaeger <aj@suse.de>
9562 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9563 REG_OLDMASK and REG_CR2 to synch with kernel header.
9566 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9568 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9569 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9570 (__nss_setent): Likewise.
9571 (__nss_getent_r): Likewise.
9572 * inet/getnetgrent_r.c (innetgr): Likewise.
9573 (__internal_setnetgrent_reuse): Likewise.
9574 (internal_getnetgrent_r): Likewise.
9575 * inet/ether_hton.c (ether_hostton): Likewise.
9576 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9577 * sunrpc/netname.c (netname2user): Likewise.
9578 * sunrpc/publickey.c (getpublickey): Likewise.
9579 (getsecretkey): Likewise.
9581 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9583 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9584 error in range calculation.
9586 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9588 * string/test-strspn.c (do_test): Ensure zero termination.
9589 * string/test-strpbrk.c (do_test): Likewise.
9590 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9591 * string/test-strncpy.c (stupid_strncpy): Likewise.
9592 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9594 2002-10-08 Roland McGrath <roland@redhat.com>
9596 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9599 2002-09-22 H.J. Lu <hjl@gnu.org>
9601 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9602 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9603 only if __NR_mmap2 is defined.
9605 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9606 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9607 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9608 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9610 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9612 * posix/bug-regex13.c (tests): Add new test.
9614 * string/test-strchr.c (stupid_strchr): New function.
9615 (do_random_tests): Make sure the string is zero terminated.
9616 * string/test-strpbrk.c (stupid_strpbrk): New function.
9617 (do_random_tests): Make sure the string is zero terminated.
9618 * string/test-strcmp.c (stupid_strcmp): New function.
9619 (do_random_tests): Make sure the strings are zero terminated.
9620 * string/test-strspn.c (stupid_strspn): New function.
9621 (simple_strspn): Rename rej argument to acc.
9622 (do_random_tests): Make sure the string is zero terminated.
9623 * string/test-strcspn.c (stupid_strcspn): New function.
9624 * string/test-strncpy.c (stupid_strncpy): New function.
9625 * string/test-stpncpy.c (stupid_stpncpy): New function.
9626 * string/test-strncmp.c (stupid_strncmp): New function.
9627 (do_random_tests): Make sure the strings are zero terminated.
9628 * string/test-string.h (impl_t): Change test into long.
9629 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9631 2002-11-08 Roland McGrath <roland@redhat.com>
9633 * sysdeps/ia64/elf/configure.in: Add TLS check.
9634 From Ian Wienand <ianw@cse.unsw.edu.au>.
9635 * sysdeps/ia64/elf/configure: Regenerated.
9637 2002-11-07 Roland McGrath <roland@redhat.com>
9639 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9640 place of _IO_new_do_write.
9641 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9642 #undef before versioned_symbol use.
9644 2002-11-07 Richard Henderson <rth@redhat.com>
9646 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9647 * configure: Regenerated.
9648 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9649 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9650 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9651 _dl_fini via gp-relative relocations.
9652 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9654 * elf/tls-macros.h: Add alpha versions.
9655 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9656 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9657 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9658 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9659 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9660 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9661 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9662 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9663 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9664 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9665 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9666 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9667 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9668 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9669 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9670 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9671 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9672 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9674 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9675 Kill argument registers across the inline syscall.
9677 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9679 * linuxthreads/sysdeps/alpha/tls.h: New file.
9680 * sysdeps/alpha/dl-tls.h: New file.
9682 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9684 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9685 (gmon_initializer): New function.
9686 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9687 __gmon_start__ here. Call it from gmon_initializer() instead.
9689 2002-03-12 H.J. Lu <hjl@gnu.org>
9691 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9692 tst-array2, and tst-array3.
9693 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9694 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9695 ($(objpfx)tst-array1.out): New target.
9696 ($(objpfx)tst-array2): Likewise.
9697 ($(objpfx)tst-array2.out): Likewise.
9698 ($(objpfx)tst-array3.out): Likewise.
9699 * elf/tst-array1.c: New file.
9700 * elf/tst-array1.exp: Likewise.
9701 * elf/tst-array2.c: Likewise.
9702 * elf/tst-array2dep.c: Likewise.
9703 * elf/tst-array2.exp: Likewise.
9704 * elf/tst-array3.c: Likewise.
9706 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9708 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9709 Don't add L->l_addr to array entry values.
9711 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9713 * string/test-string.h: New file.
9714 * string/test-strlen.c: New file.
9715 * string/test-string.h: New file.
9716 * string/test-strcmp.c: New file.
9717 * string/test-strchr.c: New file.
9718 * string/test-strrchr.c: New file.
9719 * string/test-strcpy.c: New file.
9720 * string/test-stpcpy.c: New file.
9721 * string/test-strncpy.c: New file.
9722 * string/test-stpncpy.c: New file.
9723 * string/test-strpbrk.c: New file.
9724 * string/test-strcspn.c: New file.
9725 * string/test-strspn.c: New file.
9726 * string/test-strcat.c: New file.
9727 * string/test-strncmp.c: New file.
9728 * string/test-memchr.c: New file.
9729 * string/test-memcmp.c: New file.
9730 * string/test-memset.c: New file.
9731 * string/test-memcpy.c: New file.
9732 * string/test-mempcpy.c: New file.
9733 * string/test-memmove.c: New file.
9734 * string/Makefile (strop-tests): New variable.
9735 (tests): Add strop-tests.
9736 (distribute): Add test-string.h.
9738 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9740 * posix/regcomp.c: Use tabs instead of spaces.
9741 * posix/regexec.c: Likewise.
9742 * posix/regex_internal.h: Likewise.
9744 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9746 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9748 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9750 (regcomp): Don't set can_be_null here.
9751 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9752 (re_compile_internal): Clear can_be_null, set regs_allocated.
9754 * posix/regcomp.c (re_set_fastmap): New function.
9755 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9756 COMPLEX_BRACKET check.
9757 * posix/regexec.c (re_search_internal): Optimize searching with
9758 fastmap. Call re_string_reconstruct even if match_first is
9759 smaller than raw_mbs_idx.
9761 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9763 * posix/regcomp (free_dfa_content): Use free_state.
9764 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9765 pointers in case that realloc failed.
9766 (re_node_set_merge): Likewise.
9767 (register_state): Likewise.
9768 (create_newstate_common): Invoke memory release functions in case of
9770 (create_ci_newstate): Likewise.
9771 (create_cd_newstate): Likewise.
9772 (free_state): New function.
9773 * posix/regexec.c (re_search_internal): Invoke memory release
9774 functions in case of error conditions.
9775 (sift_states_backward): Likewise.
9776 (merge_state_array): Likewise.
9777 (add_epsilon_src_nodes): Likewise.
9778 (sub_epsilon_src_nodes): Likewise.
9779 (search_subexp): Likewise.
9780 (sift_states_bkref): Likewise.
9781 (transit_state_sb): Likewise.
9782 (transit_state_mb): Likewise.
9783 (transit_state_bkref_loop): Likewise.
9784 (group_nodes_into_DFAstates): Likewise.
9785 (push_fail_stack): Don't edit pointers in case that realloc failed.
9786 (extend_buffers): Likewise.
9787 (match_ctx_add_entry): Likewise.
9789 2002-11-06 Roland McGrath <roland@redhat.com>
9791 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9792 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9794 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9795 * configure: Regenerated.
9797 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9799 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9800 If re_compile_internal failed free fastmap buffer.
9801 (free_dfa_content): Broken out of regfree function. Frees all dfa
9803 (regfree): Add free_dfa_content.
9804 (re_compile_internal): If any of the called functions fails free
9805 all dfa related memory.
9807 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9809 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9810 warnings from the kernel headers.
9812 2002-11-05 Roland McGrath <roland@redhat.com>
9814 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9815 From Johannes Stezenbach <js@convergence.de>.
9817 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9818 #errlist-compat magic comment to give 123 as size.
9819 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9820 (libc: GLIBC_2.2): ... here.
9821 (libc: GLIBC_2.3): Likewise.
9823 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9825 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9826 which happens at the beginning so that we can unload modules in
9829 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9831 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9832 under [__USE_MISC || _ASM].
9834 * elf/elf.h: Remove the obsolete SH TLS relocations.
9836 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9838 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9840 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9843 __NR_pread64 and __NR_pwrite64.
9844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9845 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9847 Revert change to use INLINE_SYSCALL.
9848 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9849 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9850 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9851 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9853 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9856 Update clobber list and add a comment about the syscall ABI.
9858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9859 s_pwrite64, s_ftruncate, s_truncate): Re-add.
9861 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9863 * iconv/gconv_dl.c (free_mem): Clear loaded.
9864 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9867 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9869 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9871 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9872 as old code without locking. _IO_seekoff calls this function after
9874 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9875 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9876 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9878 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9879 of _IO_seekoff_internal.
9880 (_IO_rewind): Likewise.
9881 * libio/ioftell.c: Likewise.
9882 * libio/ftello.c: Likewise.
9883 * libio/ftello64.c: Likewise.
9884 * libio/iofgetpos.c: Likewise.
9885 * libio/iofgetpos64.c: Likewise.
9886 * libio/oldiofgetpos.c: Likewise.
9887 * libio/oldiofgetpos64.c: Likewise.
9888 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9889 _IO_seekpos_internal.
9890 * libio/iofsetpos64.c: Likewise.
9891 * libio/oldiofsetpos.c: Likewise.
9892 * libio/oldiofsetpos64.c: Likewise.
9894 2002-11-04 Roland McGrath <roland@redhat.com>
9896 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9897 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9898 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9899 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9900 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9901 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9902 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9903 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
9904 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
9905 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
9907 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
9908 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
9909 Remove these, no longer used.
9911 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9913 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
9914 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
9915 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
9916 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
9917 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
9918 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
9921 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
9922 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9923 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
9925 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9926 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
9928 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9930 2002-11-03 Roland McGrath <roland@redhat.com>
9932 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
9933 `_dl_tls_static_used'.
9934 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
9935 (__libc_setup_tls): Initialize it. Let the initial value of
9936 _dl_tls_static_size indicate some surplus space in the computed value.
9937 * elf/dl-open.c (_dl_tls_static_size): New variable.
9938 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
9939 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
9940 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
9941 (CHECK_STATIC_TLS): Use it.
9942 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
9943 closed objects occupied a trailing contiguous chunk of static TLS area.
9945 2002-10-18 Bruno Haible <bruno@clisp.org>
9947 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
9949 2002-11-04 Ulrich Drepper <drepper@redhat.com>
9951 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
9952 _wide_data->_IO_read_end if adjustment can be made in the current
9955 * sysdeps/unix/sysv/linux/fexecve.c: New file.
9957 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
9958 wide oriented streams are used.
9960 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
9961 service hasn't been used [PR libc/4744].
9963 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
9964 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
9966 * manual/examples/dir.c: Don't include <stddef.h>.
9967 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
9968 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
9970 2002-11-02 H.J. Lu <hjl@gnu.org>
9972 * stdio-common/reg-printf.c: Include <stddef.h>.
9974 2002-11-03 Ulrich Drepper <drepper@redhat.com>
9976 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
9978 * po/ca.po: Update from translation team.
9979 * po/es.po: Likewise.
9981 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
9982 is defined write out memory map.
9983 * sysdeps/unix/sysv/linux/segfault.c: New file.
9985 2002-11-02 Roland McGrath <roland@redhat.com>
9987 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
9988 pointers that can alias.
9989 Reported by Daniel Jacobowitz <drow@mvista.com>.
9991 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
9993 2002-11-02 Roland McGrath <roland@redhat.com>
9995 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
9996 description to be clearer and to say that *RESULT is set to ENTRY.
9998 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10000 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
10001 dests_ch arrays together. Alloca or malloc dest_states,
10002 dest_states_word and dest_states_nl arrays together. Free memory on
10005 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
10007 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
10008 and current_saltbits.
10010 2002-11-02 Roland McGrath <roland@redhat.com>
10012 * stdio-common/reg-printf.c: Include <stdlib.h>.
10014 2002-11-02 H.J. Lu <hjl@gnu.org>
10016 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
10017 caller to EXTRA instead of execve.
10019 2002-11-01 Roland McGrath <roland@redhat.com>
10021 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
10022 in place of [!(USE_TLS && HAVE___THREAD)].
10023 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
10025 2002-10-31 Roger Sayle <roger@eyesopen.com>
10027 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
10029 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10031 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
10032 without defining FP_ROUNDMODE.
10034 2002-10-29 Jakub Jelinek <jakub@redhat.com>
10036 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
10037 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
10039 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10040 (OLD_SIGLIST_SIZE): Define.
10041 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
10042 (OLD_SIGLIST_SIZE): Define.
10043 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
10045 2002-11-01 Jakub Jelinek <jakub@redhat.com>
10047 * sysdeps/ia64/strncpy.S: Fix recovery code.
10049 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10051 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
10053 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
10055 * elf/dl-libc.c (free_mem): Likewise.
10056 * iconv/gconv_conf.c (free_mem): Likewise.
10057 * iconv/gconv_db.c (free_mem): Likewise.
10058 * iconv/gconv_dl.c (free_mem): Likewise.
10059 * iconv/gconv_cache.c (free_mem): Likewise.
10060 * intl/finddomain.c (free_mem): Likewise.
10061 * intl/dcigettext.c (free_mem): Likewise.
10062 * locale/setlocale.c (free_mem): Likewise.
10063 * misc/fstab.c (fstab_free): Likewise.
10064 * nss/nsswitch.c (free_mem): Likewise.
10065 * posix/regcomp.c (free_mem): Likewise.
10066 * resolv/gai_misc.c (free_res): Likewise.
10067 * stdlib/fmtmsg.c (free_mem): Likewise.
10068 * sunrpc/clnt_perr.c (free_mem): Likewise.
10069 * sysdeps/generic/setenv.c (free_mem): Likewise.
10070 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
10071 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
10072 * time/tzset.c (free_mem): Likewise.
10073 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
10074 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
10075 * malloc/set-freeres.c (__libc_freeres): Likewise.
10077 * login/getutent.c: Include stdlib.h instead of stddef.h.
10078 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10079 (__getutent): Allocate buffer the first time it is run.
10080 * login/getutid.c: Include stdlib.h instead of stddef.h.
10081 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10082 (__getutid): Allocate buffer the first time it is run.
10083 * login/getutline.c: Include stdlib.h instead of stddef.h.
10084 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
10085 (__getutline): Allocate buffer the first time it is run.
10086 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
10087 (mtrace): Allocate malloc_trace_buffer.
10088 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
10089 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
10090 * string/strerror.c: Include libintl.h and errno.h.
10091 (buf): New variable.
10092 (strerror): Only allocate buffer if actually needed (unknown error).
10093 * time/tzfile.c (transitions): Add libc_freeres_ptr.
10096 2002-10-25 Jakub Jelinek <jakub@redhat.com>
10098 * include/libc-symbols.h (libc_freeres_ptr): New macro.
10099 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
10101 (__libc_freeres): Free all pointers in that section.
10102 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
10103 commands when creating .lds script.
10104 (LDSEDCMD-c.so): New variable.
10105 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10106 (rcmd_af): Use strdup to allocate ahostbuf.
10107 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
10108 (rexec_af): Use strdup to allocate ahostbuf.
10109 * stdio-common/reg-printf.c (printf_funcs): Remove.
10110 (__printf_arginfo_table): Change into printf_arginfo_function **.
10111 Add libc_freeres_ptr.
10112 (__register_printf_function): Allocate __printf_arginfo_table
10113 and __printf_function_table the first time it is called.
10114 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
10115 printf_arginfo_function **.
10116 (parse_one_spec): Add __builtin_expect.
10117 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
10118 (free_mem): Remove.
10119 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
10120 (free_mem): Remove.
10121 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
10122 (string_space, map): Add libc_freeres_ptr.
10123 (free_mem): Remove.
10124 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
10125 (free_mem): Remove.
10126 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
10127 (free_mem): Remove.
10128 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
10129 (buffer): Add libc_freeres_ptr.
10130 (free_mem): Remove for _LIBC.
10131 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
10132 (free_mem): Remove.
10133 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
10134 (free_mem): Remove.
10135 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
10136 (free_mem): Remove.
10137 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
10138 (free_mem): Remove.
10139 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
10140 (free_mem): Remove.
10141 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
10142 (free_mem): Remove.
10143 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
10145 (free_mem): Remove.
10146 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
10148 (free_mem): Remove.
10150 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10152 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
10153 instead of duplicating the whole function in libc.
10155 2002-10-31 Roland McGrath <roland@redhat.com>
10157 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
10158 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
10160 2002-10-30 Jakub Jelinek <jakub@redhat.com>
10162 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
10163 32bit-predefine when creating .new32 list and -U for each
10164 32bit-predefine when creating .new64 list.
10165 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
10167 2002-10-29 Andreas Schwab <schwab@suse.de>
10169 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
10170 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
10172 2002-10-25 Roland McGrath <roland@redhat.com>
10174 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
10175 * sysdeps/unix/sysv/linux/configure: Regenerated.
10177 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
10178 _dl_starting_up decl.
10180 2002-10-20 H.J. Lu <hjl@gnu.org>
10182 * sysdeps/unix/sysv/linux/configure.in: Don't check
10183 /lib/modules/`uname -r`/build/include for kernel headers if
10185 * sysdeps/unix/sysv/linux/configure: Regenerated.
10187 2002-10-25 Roland McGrath <roland@redhat.com>
10189 * math/math.h (M_LOG2El): Correct the value.
10190 From Stephen L Moshier <steve@moshier.net>.
10192 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
10193 conditional from __libc_multiple_libcs access. Remove kludge for weak
10194 symbol access with old compilers we no longer support.
10195 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10196 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
10198 2002-10-25 Roland McGrath <roland@redhat.com>
10200 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
10201 implement SV_RESETHAND by translating it to SA_RESETHAND.
10203 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
10205 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
10206 type on ELF64 platforms.
10208 2002-10-24 Ulrich Drepper <drepper@redhat.com>
10210 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10212 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
10214 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10216 * elf/dl-misc.c: Include <sysdep.h>.
10217 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
10219 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
10220 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10221 (INLINE_SYSCALL): Use that.
10222 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
10223 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10224 (INLINE_SYSCALL): Use that.
10225 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
10226 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
10227 (INLINE_SYSCALL): Use that.
10228 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
10230 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10231 (__INTERNAL_SYSCALL_STRING): Define.
10232 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10234 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10235 (__INTERNAL_SYSCALL_STRING): Define.
10236 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10237 __SYSCALL_STRING to inline_syscall*.
10238 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10240 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10241 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10244 2002-10-24 Roland McGrath <roland@redhat.com>
10246 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10247 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10248 * sysdeps/powerpc/elf/libc-start.c: Or here.
10249 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10250 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10251 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10252 * sysdeps/generic/libc-start.c: Or here.
10253 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10254 access with [! SHARED].
10255 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10257 * libio/bug-wfflush.c: New file.
10258 * libio/Makefile (tests): Add bug-wfflush.
10260 2002-10-23 Roland McGrath <roland@redhat.com>
10262 * stdio-common/tst-fphex.c: New file.
10263 * stdio-common/Makefile (tests): Add tst-fphex.
10264 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10265 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10266 chars always before the value digits.
10267 Reported by James Antill <james.antill@redhat.com>.
10269 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10271 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10272 (free_mem): New function.
10273 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10274 if not cross compiling.
10275 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10276 (bug-regex14-ENV): Set.
10277 (bug-regex14-mem): New target.
10278 * posix/bug-regex14.c: New file.
10280 2002-10-23 Roland McGrath <roland@redhat.com>
10282 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10283 target, so we don't touch it when the link fails.
10285 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10286 Check for the result overflowing off_t and fail with EOVERFLOW.
10287 * libio/ioftell.c (_IO_ftell): Likewise.
10288 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10290 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10291 use a temporary timeval on the stack for gettimeofday and copy it.
10292 * login/logout.c (logout): Likewise.
10293 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10295 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10296 Use __SWORD_TYPE instead of int for member types.
10297 (struct statfs64): Likewise.
10298 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10299 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10300 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10301 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10302 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10304 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10305 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10306 (ST_NODIRATIME): Restore fixed value of 2048.
10307 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10308 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10310 Rearranged <bits/types.h> definitions to reduce duplication.
10311 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10312 <bits/wordsize.h> and new header <bits/typesizes.h>.
10313 * posix/Makefile (headers): Add bits/typesizes.h here.
10314 * sysdeps/generic/bits/typesizes.h: New file.
10315 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10316 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10317 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10318 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10319 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10320 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10321 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10322 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10323 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10324 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10325 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10326 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10327 * signal/signal.h: Likewise.
10329 * streams/stropts.h: Include <bits/xtitypes.h>.
10330 * streams/Makefile (headers): Add bits/xtitypes.h here.
10331 * sysdeps/generic/bits/xtitypes.h: New file.
10332 * sysdeps/s390/bits/xtitypes.h: New file.
10333 * sysdeps/ia64/bits/xtitypes.h: New file.
10334 * sysdeps/x86_64/bits/xtitypes.h: New file.
10336 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10337 * sysdeps/generic/bits/ipctypes.h: New file.
10338 * sysdeps/mips/bits/ipctypes.h: New file.
10339 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10340 * sysdeps/gnu/bits/msq.h: Likewise.
10341 * sysvipc/sys/ipc.h: Likewise.
10343 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10345 * elf/dl-load.c (struct filebuf): For buf element to have the
10346 alignment of ElfXX_Ehdr since this is what will be stored in it.
10348 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10350 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10351 into pointer to locrec_offset.
10352 (add_locale_to_archive): Adjust callers. Free normalized_name right
10353 before returning, not immediately after add_locale, pass it to
10354 add_alias if not NULL instead of name. Rename second normalized_name
10355 occurence to nnormalized_codeset_name.
10357 * locale/programs/locarchive.c (enlarge_archive): Make sure
10358 string_size is always a multiple of 4.
10359 Reported by Andreas Schwab <schwab@suse.de>.
10361 2002-10-21 Andreas Schwab <schwab@suse.de>
10363 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10364 caller to EXTRA instead of execve, since the latter has a
10365 higher-priority implementation in linuxthreads.
10367 2002-10-21 Roland McGrath <roland@redhat.com>
10369 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10370 slotinfo list's len member to the proper size, not just 1.
10371 Initialize static_map.l_tls_initimage.
10373 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10374 dtv_slotinfo_list element containing new modules' l_tls_modid.
10376 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10377 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10378 * elf/Makefile (tests): Add tst-tls9.
10379 (tests-static): Add tst-tls9-static.
10380 (tst-tls9-static-ENV): New variable.
10381 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10383 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10384 modids used by partially loaded modules being closed can't be known.
10386 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10388 * posix/Makefile: Add a test case for the bug reported by Aharon
10389 Robbins <arnold@skeeve.com>.
10390 * posix/bug-regex13.c: New file.
10391 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10393 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10395 * csu/gmon-start.c: Pretty printing.
10397 2002-10-19 Art Haas <ahaas@neosoft.com>
10399 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10400 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10401 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10402 * configure: Regenerated.
10404 2002-10-19 Roland McGrath <roland@redhat.com>
10406 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10407 and then set $subdirs directly, because the new Autoconf breaks
10408 compatibility in every way imaginable and insists on whining
10409 about usage that worked since the dawn of time.
10410 * configure: Regenerated.
10412 * configure: Regenerated (using Autoconf 2.54).
10413 * sysdeps/alpha/elf/configure: Likewise.
10414 * sysdeps/generic/configure: Likewise.
10415 * sysdeps/i386/elf/configure: Likewise.
10416 * sysdeps/ia64/elf/configure: Likewise.
10417 * sysdeps/mach/hurd/configure: Likewise.
10418 * sysdeps/mach/configure: Likewise.
10419 * sysdeps/unix/configure: Likewise.
10420 * sysdeps/unix/common/configure: Likewise.
10421 * sysdeps/unix/sysv/aix/configure: Likewise.
10422 * sysdeps/unix/sysv/linux/configure: Likewise.
10423 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10424 * sysdeps/x86_64/elf/configure: Likewise.
10426 * config.make.in: Nix completely-soft nonsense.
10427 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10428 of machine directories instead of fpu subdirectory.
10429 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10430 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10431 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10432 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10433 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10434 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10435 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10436 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10437 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10438 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10439 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10440 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10441 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10442 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10443 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10444 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10445 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10446 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10447 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10448 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10449 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10450 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10451 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10452 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10453 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10454 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10455 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10456 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10457 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10458 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10459 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10460 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10461 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10462 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10463 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10464 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10465 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10466 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10467 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10468 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10470 2002-10-19 Bruno Haible <bruno@clisp.org>
10472 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10474 2002-10-18 Roland McGrath <roland@redhat.com>
10476 * io/Makefile (routines): Add lchmod.
10477 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10478 * sysdeps/generic/lchmod.c: New file.
10479 * sysdeps/mach/hurd/lchmod.c: New file.
10480 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10482 2002-10-18 Art Haas <ahaas@neosoft.com>
10484 * configure.in: Remove remaining AC_FD_CC macros, and replace
10485 AC_FD_MSG with AS_MESSAGE_FD.
10487 2002-10-18 Roland McGrath <roland@redhat.com>
10489 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10490 typos: VALUE -> FINALADDR.
10492 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10493 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10494 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10495 (inline_syscall6): Move these macros ...
10496 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10498 * configure.in (libc_link_dests, libc_link_sources): Remove these
10499 variables and the AC_LINK_FILES call.
10501 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10502 change to put new symbols here instead of in GLIBC_2.2.
10503 * sysdeps/powerpc/Subdirs: Move this file ...
10504 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10506 2002-10-07 Roland McGrath <roland@redhat.com>
10508 * sysdeps/generic/bits/time.h: Replaced with contents of the
10509 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10510 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10511 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10512 macros is ok even for architectures that don't now implement them.
10513 * sysdeps/mach/hurd/bits/time.h: File removed.
10514 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10515 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10516 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10517 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10518 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10520 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10522 * configure.in: Replace obsolete AC_OUTPUT syntax with
10523 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10525 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10526 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10528 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10529 * sysdeps/alpha/elf/configure.in: Likewise.
10530 * sysdeps/i386/elf/configure.in: Likewise.
10531 * sysdeps/mach/hurd/configure.in: Likewise.
10532 * sysdeps/x86_64/elf/configure.in: Likewise.
10534 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10536 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10537 * sysdeps/generic/configure.in: Likewise.
10538 * sysdeps/i386/elf/configure.in: Likewise.
10539 * sysdeps/ia64/elf/configure.in: Likewise.
10540 * sysdeps/mach/configure.in: Likewise.
10541 * sysdeps/mach/hurd/configure.in: Likewise.
10542 * sysdeps/unix/configure.in: Likewise.
10543 * sysdeps/unix/common/configure.in: Likewise.
10544 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10545 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10546 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10547 * sysdeps/x86_64/elf/configure.in: Likewise.
10549 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10550 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10551 that it's obvious when extra autoconf machinery is being dragged in.
10553 2002-10-18 Roland McGrath <roland@redhat.com>
10555 * configure.in: Remove bogus echo included in
10556 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10557 * configure: Regenerated.
10559 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10561 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10562 (statfs_filesize_max): New function.
10563 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10564 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10565 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10566 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10567 statfs_filesize_max.
10568 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10569 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10570 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10572 2002-10-17 Roland McGrath <roland@redhat.com>
10574 * configure.in (MIG): Just AC_SUBST it here.
10575 * configure: Regenerated.
10576 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10577 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10578 * sysdeps/mach/configure: Regenerated.
10580 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10581 and AC_PROVIDE([_AS_CR_PREPARE]).
10583 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10584 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10586 * elf/dl-support.c: Move _dl_tls_* variables to ...
10587 * sysdeps/generic/libc-tls.c: ... here.
10589 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10590 allow IDX to be one past the current last slotinfo entry.
10591 (_dl_close): Pass IMAP->l_init_called for that parameter.
10593 2002-10-07 Andreas Schwab <schwab@suse.de>
10595 * aclocal.m4: Fix for autoconf 2.53.
10596 * configure.in: Likewise. Require autoconf 2.53.
10598 2002-10-08 Richard Henderson <rth@redhat.com>
10600 * soft-fp/op-4.h: Handle carry correctly in
10601 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10602 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10603 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10605 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10607 * configure.in: Compute completely-soft.
10608 * config.make.in: Make completely-soft available to sub-makes.
10609 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10610 gcc-double-routines. Add sim-full.c. Add fenv_const and
10611 fe_nomask to libm-support.
10612 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10613 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10614 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10615 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10616 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10617 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10618 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10619 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10620 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10621 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10622 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10623 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10624 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10625 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10626 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10627 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10628 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10629 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10630 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10631 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10633 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10634 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10635 FP_HANDLE_EXCEPTIONS.
10636 Define FP_ROUNDMODE.
10637 Redefine FP_* macros to correspond to the FE_* bit positions.
10638 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10639 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10640 __sim_round_mode, __simulate_exceptions.
10641 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10642 * sysdeps/powerpc/bits/fenv.h: ...to here.
10644 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10646 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10647 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10648 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10649 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10652 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10654 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10655 __libc_res_nsend): New prototypes.
10656 * resolv/res_query.c (QUERYSIZE): Define.
10657 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10658 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10659 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10660 res_nsend, pass answerp.
10661 (res_nquery): Changed into wrapper around __libc_res_nquery.
10662 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10663 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10664 instead of the non-__libc_ variants, pass them answerp.
10665 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10666 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10667 Added answerp argument. Call __libc_res_nquery instead of
10668 res_nquery, pass answerp.
10669 (res_nquerydomain): Changed into wrapper around
10670 __libc_res_nquerydomain.
10671 * resolv/res_send.c: Include sys/ioctl.h.
10672 (MAXPACKET): Define.
10673 (send_vc): Change arguments. Reallocate answer buffer if it is
10675 (send_dg): Likewise.
10676 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10677 Reallocate answer buffer if it is too small and hooks are in use.
10678 Adjust calls to send_vc and send_dg.
10679 (res_nsend): Changed into wrapper around __libc_res_nsend.
10680 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10681 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10683 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10684 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10685 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10686 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10687 (gethostbyaddr): Similarly with __libc_res_nquery.
10688 * resolv/Versions (libresolv): Export __libc_res_nquery and
10689 __libc_res_nsearch at GLIBC_PRIVATE.
10691 2002-10-17 Roland McGrath <roland@redhat.com>
10693 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10694 * configure: Regenerated.
10696 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10697 before performing the reloc, not after.
10698 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10700 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10702 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10703 * locale/programs/linereader.c (lr_open): Likewise.
10704 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10705 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10707 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10709 * posix/bug-regex11.c: Add a test case for the bug reported by
10710 Paolo Bonzini <bonzini@gnu.org>.
10711 * posix/regexec.c (sift_states_bkref): Use correct destination of
10712 the back reference.
10714 2002-10-17 Roland McGrath <roland@redhat.com>
10716 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10717 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10718 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10719 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10720 Call it after performing TPOFF relocs.
10721 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10722 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10723 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10725 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10726 when closing a partially-initialized object.
10728 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10729 instead of _dl_fatal_printf when we see PT_TLS.
10731 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10732 instead of $(libof-$<).
10734 2002-10-16 Roland McGrath <roland@redhat.com>
10736 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10737 instead of += to append, to be sure $(lib) gets expanded at defn time.
10738 (libof-$(cpp-src)): New variable, define this instead.
10739 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10740 (lib): Don't use override.
10741 (CPPFLAGS-$(lib)): New variable, put -D's here.
10742 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10743 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10744 LIB found by $(libof-*) for basename, target, or source.
10745 * Makerules (CPPFLAGS-nonlib): New variable.
10746 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10747 * locale/Makefile (lib): Likewise.
10748 * sunrpc/Makefile (lib): Likewise.
10750 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10751 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10752 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10753 (statfs_link_max): New function, guts from fpathconf.c.
10754 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10755 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10756 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10757 to use the linux/pathconf.c code by #include rather than duplication.
10758 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10760 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10762 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10763 Use __libc_errno only for libc itself.
10765 2002-10-16 Andreas Jaeger <aj@suse.de>
10767 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10769 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10771 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10772 Use __libc_errno only for libc itself.
10774 2002-10-15 Roland McGrath <roland@redhat.com>
10775 Jakub Jelinek <jakub@redhat.com>
10777 * sysdeps/unix/sysv/linux/Makefile
10778 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10779 sparc/Makefile to produce a bi-arch file as needed.
10780 That's now parameterized by the variable $(64bit-predefine).
10781 Use LC_ALL=C for `comm' commands in that rule.
10782 No longer conditional on [$(no_syscall_list_h)].
10783 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10784 (64bit-predefine): New variable.
10785 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10786 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10787 * sysdeps/unix/sysv/linux/powerpc/Makefile
10788 (64bit-predefine): New variable.
10790 2002-10-15 Roland McGrath <roland@redhat.com>
10792 * sysdeps/unix/sysv/linux/Makefile
10793 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10795 * login/utmp-private.h: Declare __libc_utmp_lock.
10796 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10797 and call __libc_utmp_jump_table functions directly, instead of using
10800 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10801 * sysdeps/unix/sysv/linux/configure: Regenerated.
10803 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10804 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10805 Use int32_t for ll_time.
10806 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10807 Use int32_t instead of long int for ut_session.
10808 Use an anonymous struct with 32-bit fields for ut_tv.
10809 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10810 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10811 here as in utmp.h for `struct utmp'.
10812 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10813 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10814 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10815 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10816 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10817 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10819 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10820 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10821 All the following files were identical or equivalent to it.
10822 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
10823 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
10824 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
10825 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10826 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10827 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10828 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10829 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10830 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10831 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10833 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10834 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10835 Other than the previously incorrect sign of msg_iovlen, this is a
10836 no-op on 32-bit platforms. On 64-bit platforms it makes this header
10837 match their layouts as well, so the following are now identical to it.
10838 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10839 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10840 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10841 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10842 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10844 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10846 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10847 Define for 2.4+ kernels.
10849 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10850 are known to have the vfork syscall. Don't confuse the CPUs
10851 branch prediction unit by jumping to the return address.
10853 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10854 support for reiserfs and xfs.
10856 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10858 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10860 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10862 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10864 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10865 * include/errno.h (errno): Define to __libc_errno in libc.so.
10866 Add attribute_tls_model_ie.
10867 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10868 Add attribute_tls_model_ie.
10869 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10870 attribute_tls_model_ie.
10871 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10873 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10875 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10876 attribute_tls_model_ie.
10877 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10879 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10880 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10881 __libc_errno in USE___THREAD case.
10882 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10884 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10885 __attribute__((tls_model (""))).
10886 * configure: Rebuilt.
10887 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10889 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10891 * timezone/asia: Update from tzdata2002d.
10892 * timezone/australasia: Likewise.
10893 * timezone/iso3166.tab: Likewise.
10894 * timezone/southamerica: Likewise.
10895 * timezone/zone-tab: Likewise.
10897 2002-10-15 Roland McGrath <roland@redhat.com>
10899 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10900 Adjust TCB pointer before calling free, so we get the whole block.
10902 2002-10-14 Roland McGrath <roland@redhat.com>
10904 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
10905 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
10906 extern using attribute_hidden instead of static, avoids warning.
10908 2002-10-09 Jakub Jelinek <jakub@redhat.com>
10910 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
10911 * sysdeps/unix/sysv/linux/configure: Rebuilt.
10913 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10915 * po/sv.po: Update from translation team.
10917 2002-10-12 H.J. Lu <hjl@gnu.org>
10919 * sunrpc/thrsvc.c (PROCQUIT): New.
10920 (struct rpc_arg): New.
10921 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
10922 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
10923 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
10924 (main): Modified for struct rpc_arg *.
10926 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10928 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
10930 2002-10-14 Jakub Jelinek <jakub@redhat.com>
10932 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
10933 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
10934 in ld.so even if __thread is supported.
10936 2002-10-13 Jakub Jelinek <jakub@redhat.com>
10938 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
10939 Add hack to prevent the compiler from clobbering the signal context.
10940 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
10942 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
10945 2002-10-14 Andreas Jaeger <aj@suse.de>
10947 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
10948 Guido Guenther <agx@sigxcpu.org>.
10950 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10952 * po/sk.po: Update from translation team.
10954 2002-09-26 Roland McGrath <roland@redhat.com>
10956 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
10957 dynamic string tag.
10958 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
10959 DL_DST_LIB based on $(slibdir).
10961 2002-10-13 Roland McGrath <roland@frob.com>
10963 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
10965 * sysdeps/mach/hurd/getresuid.c: New file.
10966 * sysdeps/mach/hurd/getresgid.c: New file.
10967 * sysdeps/mach/hurd/setresuid.c: New file.
10968 * sysdeps/mach/hurd/setresgid.c: New file.
10970 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
10971 setresgid): Declare them.
10972 * NEWS: Mention it.
10974 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
10975 add libc_hidden_proto.
10976 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
10977 getresuid, getresgid, setresuid, setresgid here.
10978 * Versions.def (libc): Define GLIBC_2.3.2 set.
10979 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
10980 Add libc_hidden_def.
10981 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
10982 * sysdeps/generic/setresgid.c: New file.
10983 * sysdeps/generic/setresuid.c: New file.
10984 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10985 (sysdep_routines): Don't add getresuid and getresgid here.
10986 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
10987 (sysdep_routines): Don't add setresuid and setresgid here.
10988 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10989 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10990 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10991 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10992 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10993 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10994 * posix/Makefile (routines): Add them all here instead.
10995 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
10996 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
10997 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
10998 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
10999 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
11000 [! __NR_setresuid]: Include generic file.
11001 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
11002 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
11003 [! __NR_setresuid]: Include generic file.
11004 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
11005 Caller is - now, not EXTRA.
11006 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
11007 (setresuid, setresgid, getresuid, getresgid): Likewise.
11008 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
11009 Add these calls here.
11010 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
11011 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11012 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11013 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11014 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11017 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11018 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11020 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11021 (sysdep_routines): Add setfsuid and setfsgid here.
11022 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
11023 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
11024 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
11025 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
11026 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11027 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
11028 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11029 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11031 * hurd/errno.c: Renamed to ...
11032 * hurd/errno-loc.c: ... this.
11033 * hurd/Makefile (routines): errno -> errno-loc
11035 2002-10-13 Ulrich Drepper <drepper@redhat.com>
11037 * po/de.po: Update from translation team.
11039 * MakeTAGS: Add -E flag to xgettext runs.
11041 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11043 * po/fr.po: Update from translation team.
11045 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
11046 Optimize a bit for use in glibc.
11048 2002-10-12 Roland McGrath <roland@redhat.com>
11050 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
11051 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
11053 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11055 * po/sv.po: Update from translation team.
11057 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
11059 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
11061 (regfree): Likewise.
11062 (create_initial_state): Likewise.
11063 (analyze): Remove the substitutions which became useless.
11064 (calc_first): Likewise.
11065 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
11066 epsilon destination.
11067 (duplicate_node_closure): New function.
11068 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
11069 (calc_inveclosure): Likewise.
11070 (calc_eclosure): Likewise.
11071 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
11072 direct invocation of duplicate_node.
11073 (parse): Don't use comma operator in the return to avoid compiler
11075 (parse_reg_exp): Likewise.
11076 (parse_branch): Likewise.
11077 (parse_expression): Likewise.
11078 (parse_sub_exp): Likewise.
11079 (parse_dup_op): Likewise.
11080 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
11081 which became useless.
11082 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
11083 (create_cd_newstate): Likewise.
11084 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
11085 (re_token_t): Likewise.
11086 (re_dfa_t): Likewise.
11087 (re_node_set_remove): New macro.
11088 * posix/regexec.c (check_matching): Remove the handling
11090 (check_halt_node_context): Likewise.
11091 (proceed_next_node): Likewise.
11092 (pop_fail_stack): Fix the memory leak.
11093 (set_regs): Likewise.
11094 (free_fail_stack_return): New function.
11095 (sift_states_backward): Fix the memory leak. Remove the handling
11097 (update_cur_sifted_state): Append some if clause to avoid redundant
11099 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
11101 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
11102 (check_subexp_limits): Likewise.
11103 (search_subexp): Likewise.
11104 (sift_states_bkref): Likewise.
11105 (transit_state_mb): Likewise.
11106 (transit_state_bkref_loop): Likewise.
11107 (transit_state_bkref_loop): Likewise.
11108 (group_nodes_into_DFAstates): Likewise.
11109 (check_node_accept): Likewise.
11110 (sift_ctx_init): Add initializing.
11112 2002-10-12 Ulrich Drepper <drepper@redhat.com>
11114 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
11117 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11119 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
11120 duplicated variable c.
11122 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
11125 * sysdeps/unix/sysv/linux/i386/sysdep.h
11126 (INTERNAL_SYSCALL_ERROR_P): New define.
11127 (INTERNAL_SYSCALL_ERRNO): Likewise.
11129 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
11130 Add hack to prevent the compiler from clobbering the signal context.
11132 2002-10-11 Roland McGrath <roland@redhat.com>
11134 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11137 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
11138 * sysdeps/sh/dl-lookupcfg.h: File removed.
11139 * sysdeps/i386/dl-lookupcfg.h: File removed.
11141 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
11142 missing labels and ; from last change.
11144 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
11145 number literals, so they are doubles instead of ints.
11147 2002-10-09 Roland McGrath <roland@redhat.com>
11149 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
11150 changed from [USE_TLS && HAVE___THREAD].
11152 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
11153 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
11154 * sysdeps/x86_64/dl-machine.h
11155 (elf_machine_type_class, elf_machine_rela): Likewise.
11156 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
11159 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
11160 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
11161 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
11163 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
11164 instead of ___tls_get_addr.
11165 (___tls_get_addr_internal): Add attribute_hidden to decl.
11167 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
11168 _dl_error_catch_tsd.
11169 * elf/rtld.c (startup_error_tsd): New function.
11170 (dl_main): Point _dl_error_catch_tsd at that.
11171 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
11172 use new function pointer instead.
11173 * elf/dl-tsd.c: New file.
11174 * elf/Makefile (routines): Add it.
11176 2002-10-07 Roland McGrath <roland@redhat.com>
11178 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
11179 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
11180 take _dl_load_lock around calling __writev.
11182 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
11183 (INLINE_SYSCALL): Use that.
11185 * sysdeps/generic/dl-sysdep.h: New file.
11186 * sysdeps/mach/hurd/dl-sysdep.h: New file.
11187 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
11188 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
11189 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
11190 access it directly.
11191 * elf/dl-minimal.c (__errno_location): Removed.
11192 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11193 Use GOTOFF access for errno.
11194 * sysdeps/unix/sysv/linux/i386/sysdep.h
11195 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11197 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
11198 Use PC-relative access for errno.
11199 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11200 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
11202 * include/tls.h: New file.
11203 (USE___THREAD): New macro.
11204 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
11205 libc or libpthread.
11206 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
11207 changed from [USE_TLS && HAVE___THREAD].
11208 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11209 * sysdeps/unix/i386/sysdep.S: Likewise.
11210 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11211 * include/errno.h: Likewise.
11212 * include/netdb.h: Likewise.
11213 * include/resolv.h: Likewise.
11215 * sysdeps/generic/errno.c: New file.
11216 * csu/Makefile (aux): New variable, list errno.
11217 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
11218 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
11219 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
11220 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11221 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11222 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
11223 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
11224 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
11225 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11226 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
11227 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
11228 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
11229 * sysdeps/unix/alpha/sysdep.S: Likewise.
11230 * sysdeps/generic/start.c: Likewise.
11231 * sysdeps/unix/start.c: Likewise.
11232 * sysdeps/unix/arm/start.c: Likewise.
11233 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11234 * sysdeps/unix/sparc/start.c: Likewise.
11235 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11236 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11238 * manual/search.texi (Tree Search Function, Hash Search Function):
11239 Mention search.h clearly.
11241 2002-10-05 Roland McGrath <roland@redhat.com>
11243 * elf/dl-fxstat64.c: File removed.
11244 * elf/dl-xstat64.c: File removed.
11245 * elf/Makefile (rtld-routines): Remove them.
11246 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11247 Instead, use strong_alias instead of versioned_symbol in the
11248 !SHLIB_COMPAT case.
11249 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11250 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11252 * include/shlib-compat.h
11253 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11254 [! NOT_IN_libc] (IS_IN_libc): Define it.
11255 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11256 * elf/Makefile (CPPFLAGS-.os): Likewise.
11258 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11259 Return the status instead of calling exit.
11261 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11262 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11263 Remove superfluous rm command, whose @ plus make bugs hid
11264 all these commands from the make output.
11266 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11267 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11268 Use that file's contents instead of literal echo's for the prologue.
11269 * include/features.h: Include <gnu/stubs.h> unconditionally.
11270 * include/gnu/stubs.h: New file.
11272 2002-09-30 Roland McGrath <roland@redhat.com>
11274 * elf/rtld-Rules: New file.
11275 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11276 $(objpfx)rtld-libc.a): New targets.
11277 (generated): Add them.
11278 (reloc-link): Remove -o $@ from the variable.
11279 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11280 (distribute): Add rtld-Rules.
11281 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11282 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11283 (common-mostlyclean, common-clean): Clean up rtld-* files.
11284 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11286 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11288 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11289 If temp != NULL, copy dynamic entries which need relocation to temp
11290 array before relocating.
11291 (DL_RO_DYN_TEMP_CNT): Define.
11292 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11293 * elf/rtld.c (_dl_start): Likewise.
11294 (dl_main): Likewise. Add dyn_temp static variable.
11296 2002-10-11 Roland McGrath <roland@redhat.com>
11298 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11299 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11301 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11302 proper set of no-op insn prefixes.
11304 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11306 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11308 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11309 __pthread_kill_other_threads_np.
11311 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11313 2002-10-08 Roland McGrath <roland@redhat.com>
11315 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11316 just return &_nl_C_locobj instead of copying it.
11317 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11318 * locale/duplocale.c (__duplocale): Likewise.
11320 2002-10-07 Roland McGrath <roland@frob.com>
11322 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11323 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11324 * sysdeps/mach/configure: Regenerated.
11326 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11329 Add all necessary register outputs for syscall-clobbered registers.
11331 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11333 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11334 Itanium 2 (and Itanium).
11335 Fix unwind directives and make it fit in 80 columns.
11336 * sysdeps/ia64/memset.S: Likewise.
11337 * sysdeps/ia64/memcpy.S: Likewise.
11338 Move jump table to .rodata section.
11340 2002-10-03 Roland McGrath <roland@frob.com>
11342 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11345 2002-10-10 Andreas Jaeger <aj@suse.de>
11347 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11349 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11351 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11353 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11355 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11356 _dl_allocate_tls_init. Add rtld_hidden_proto.
11357 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11359 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11361 * version.h (VERSION): Bump to 2.3.1.
11363 * Make-dist: Add back one of the tar invocations removed before.
11365 * stdlib/Makefile (distribute): Add allocalim.h.
11367 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11368 (__libc_tsd_address): Use correct variable name.
11369 Patch by Stefan Jones <stefan.jones@multigig.com>.
11371 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11372 Reported by edwardsg@sgi.com [PR libc/4678].
11374 * Versions.def (libc): Add GLIBC_2.3.1.
11375 (libpthread): Add GLIBC_2.3.1.
11377 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11378 and __sigtimedwait.
11379 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11380 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11382 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11383 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11385 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11386 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11387 and make old name an alias.
11388 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11389 and make old name an alias.
11390 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11393 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11394 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11396 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11398 * sysdeps/posix/readv.c: Likewise
11399 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11400 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11401 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11403 * sysdeps/posix/writev.c: Likewise
11404 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11405 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11407 * include/sys/wait.h: Declare __waitid.
11408 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11409 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11411 * sysdeps/posix/waitid.c: Likewise.
11412 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11414 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11416 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11418 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11420 (__MAX_ALLOCA_CUTOFF): Define.
11421 Include allocalim.h.
11422 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11423 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11424 host_buffer depending on __libc_use_alloca.
11425 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11426 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11427 net_buffer depending on __libc_use_alloca.
11428 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11429 buf depending on __libc_use_alloca.
11430 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11431 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11432 instead of hardcoded constants.
11433 Pass proper size argument to alloca and compute end for wide char
11435 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11436 instead of hardcoded constants.
11437 * string/strcoll.c (strcoll): Likewise.
11438 * string/strxfrm.c (strxfrm): Likewise.
11439 * sysdeps/posix/readv.c (__readv): Likewise.
11440 * sysdeps/posix/writev.c (__writev): Likewise.
11441 * sysdeps/generic/allocalim.h: New file.
11443 2002-10-08 Roland McGrath <roland@redhat.com>
11445 * configure.in (aux_missing warning): Change "too old" to
11446 "incompatible versions", since for autoconf it's "too new" right now.
11447 * configure: Regenerated.
11449 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11450 one found doesn't work on our configure.in.
11451 * configure: Regenerated.
11452 * config.make.in (AUTOCONF): New substituted variable.
11453 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11454 (autoconf-it): ... here, use that instead of defining conditionally.
11455 Use $(AUTOCONF) instead of literal autoconf.
11456 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11457 with this condition.
11458 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11460 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11462 * Make-dist (dist): Cleanup a bit. We are not interested in the
11463 14 char filename limit anymore. Remove intermediate files and
11466 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11468 * po/sk.po: Update from translation team.
11469 * po/tr.po: Likewise.
11470 * po/gl.po: Likewise.
11472 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11474 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11476 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11478 * version.h (RELEASE): Change to stable.
11480 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11482 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11483 __syscall_exit_group): New prototypes.
11485 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11487 * glibc 2.3 released.
11490 See ChangeLog.13 for earlier changes.