1 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
5 (_IO_file_open): Likewise. Use close_not_cancel.
7 2003-09-04 Ulrich Drepper <drepper@redhat.com>
9 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
10 * libio/fileops.c [_LIBC]: Remove close macro.
11 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
12 (_IO_new_file_open): Recognize 'c' flag in mode string.
13 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
14 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
16 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
17 * inet/rcmd.c: Likewise.
18 * inet/ruserpass.c: Likewise.
19 * intl/localealias.c: Likewise.
20 * malloc/mtrace.c: Likewise.
21 * misc/getpass.c: Likewise.
22 * misc/getttyent.c: Likewise.
23 * misc/mntent_r.c: Likewise.
24 * misc/getusershell.c: Likewise.
25 * nss/nsswitch.c: Likewise.
26 * resolv/res_hconf.c: Likewise.
27 * resolv/res_init.c: Likewise.
28 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29 * time/getdate.c: Likewise.
30 * time/tzfile.c: Likewise.
31 * misc/fstab.h: Undo last change.
32 * misc/mntent.h: Likewise.
33 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
34 CFLAGS-fstab.c definition.
36 2003-09-04 Jakub Jelinek <jakub@redhat.com>
38 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
40 2003-09-03 Ulrich Drepper <drepper@redhat.com>
42 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
43 returning ERANGE if this wasn't intended.
45 2003-09-03 Jakub Jelinek <jakub@redhat.com>
47 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
50 2003-09-03 Ulrich Drepper <drepper@redhat.com>
52 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
53 (CFLAGS-getgrent.c): Likewise.
54 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
55 (CFLAGS-getpwent.c): Likewise.
56 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
57 (CFLAGS-getspent.c): Likewise.
59 * inet/Makefile: Add -fexceptions to CFLAGS for the various
60 getXXent and getXXbyYY functions.
62 * locale/loadlocale.c: Use not-cancelable variants of open, close,
65 2003-09-02 Jakub Jelinek <jakub@redhat.com>
67 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
68 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
70 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
72 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
73 unused __syscall_ stubs.
74 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
76 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
77 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
78 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
79 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
80 unused __syscall_ stubs.
81 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
82 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
83 (__syscall_*): Remove unused __syscall_ stubs.
84 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
85 (__syscall_*): Likewise.
86 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
88 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
89 Remove unused __syscall_ stubs.
90 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
91 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
92 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
93 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
94 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
95 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
96 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
97 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
98 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
99 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
100 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
101 __syscall_* prototypes.
102 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
103 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
104 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
105 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
106 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
107 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
108 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
109 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
110 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
111 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
112 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
113 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
114 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
115 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
116 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
117 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
118 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
119 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
120 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
121 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
122 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
123 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
124 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
125 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
126 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
127 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
128 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
129 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
130 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
131 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
132 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
133 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
134 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
135 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
136 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
137 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
138 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
139 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
140 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
141 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
142 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
143 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
144 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
145 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
146 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
147 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
148 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
149 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
150 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
151 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
152 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
153 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
154 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
155 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
156 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
157 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
158 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
159 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
160 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
161 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
162 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
163 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
164 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
165 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
166 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
167 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
168 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
169 * sysdeps/unix/sysv/linux/execve.c: Likewise.
170 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
171 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
172 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
173 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
174 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
175 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
176 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
177 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
178 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
179 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
180 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
181 * sysdeps/unix/sysv/linux/readv.c: Likewise.
182 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
183 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
184 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
185 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
186 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
187 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
188 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
189 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
190 * sysdeps/unix/sysv/linux/poll.c: Likewise.
191 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
192 * sysdeps/unix/sysv/linux/writev.c: Likewise.
193 * sysdeps/unix/sysv/linux/pread.c: Likewise.
194 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
195 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
196 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
197 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
198 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
199 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
200 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
201 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
202 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
203 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
205 2003-09-02 Jakub Jelinek <jakub@redhat.com>
207 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
208 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
209 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
211 2003-09-02 Ulrich Drepper <drepper@redhat.com>
213 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
215 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
216 open, close, and read.
218 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
221 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
223 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
224 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
225 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
227 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
229 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
230 (CFLAGS-fstatfs.c): Likewise.
231 (CFLAGS-statvfs.c): Likewise.
232 (CFLAGS-fstatvfs.c): Likewise.
234 2003-09-01 Ulrich Drepper <drepper@redhat.com>
236 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
237 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
239 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
240 (CFLAGS-pathconf.c): Likewise.
241 (CFLAGS-fpathconf.c): Likewise.
243 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
244 * misc/fstab.h: Remove all __THROW.
245 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
246 (CFLAGS-mntent_r.c): Likewise.
247 * misc/mntent.h: Remove most __THROW.
249 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
250 (CFLAGS-mkstemp64.c): Likewise.
252 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
253 around call to exec_comm.
254 * posix/wordexp.h: Remove __THROW from wordexp.
255 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
257 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
258 not-cancelable functions.
260 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
261 (CFLAGS-iofopen.c): Likewise.
262 (CFLAGS-iofopen64.c): Likewise.
264 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
266 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
267 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
269 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
270 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
272 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
274 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
275 NSS_STATUS_SUCCESS if entry was found.
276 (getspent_next_file): Store user in blacklist after entry
277 was found, use innetgr.
279 2003-09-01 Jakub Jelinek <jakub@redhat.com>
281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
282 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
284 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
285 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
288 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
290 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
291 posix_fallocate64 at GLIBC_2.3.3.
292 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
293 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
295 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
297 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
300 2003-08-31 Ulrich Drepper <drepper@redhat.com>
302 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
303 Code by Richard Henderson.
305 2003-08-31 Philip Blundell <philb@gnu.org>
307 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
308 posix_fallocate64 at GLIBC_2.3.3.
310 2003-08-31 Ulrich Drepper <drepper@redhat.com>
312 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
313 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
315 2003-08-30 Jakub Jelinek <jakub@redhat.com>
317 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
318 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
319 included multiple times.
320 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
321 ptid, tls, ctid arguments to the kernel.
322 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
323 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
324 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
325 (__libc_sigaction): Use INLINE_SYSCALL instead of
326 __syscall_rt_sigaction.
327 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
328 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
329 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
330 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
331 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
332 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
333 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
334 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
335 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
336 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
337 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
338 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
339 (__CLONE_SYSCALL_STRING): Define.
340 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
342 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
343 (__CLONE_SYSCALL_STRING): Define.
344 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
346 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
348 2003-08-30 Ulrich Drepper <drepper@redhat.com>
350 * sunrpc/rpc/clnt.h: Remove a few __THROW.
351 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
352 (CFLAGS-key_call.c): Likewise.
353 (CFLAGS-pmap_rmt.c): Likewise.
354 (CFLAGS-clnt_perr.c): Likewise.
355 * sunrpc/rpc/auth.h: Remove serveral __THROW.
357 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
358 (CFLAGS-gethstbynm_r.c): Likewise.
359 (CFLAGS-gethstbynm2_r.c): Likewise.
360 (CFLAGS-rcmd.c): Likewise.
361 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
363 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
364 (CFLAGS-argp-fmtstream.c): Likewise.
365 * argp/argp.h: Remove a number of __THROW.
367 * misc/sys/syslog.h (vsyslog): Remove __THROW.
369 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
370 * misc/getpass.c (getpass): Add cleanup handler to ensure the
371 stream is closed even if the thread is canceled.
372 (call_fclose): New function.
373 * posix/unistd.h: Remove __THROW from getpass prototype.
375 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
377 * signal/signal.h (psignal): Remove __THROW.
378 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
380 * misc/Makefile (CFLAGS-error.c): Define.
381 * misc/error.c (error): Disable cancellation handling around the
382 actual output. The message should in any case be printed.
383 (error_at_line): Likewise.
385 * misc/error.h: Protect parameter names with leading __.
387 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
389 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
391 2003-08-29 Jakub Jelinek <jakub@redhat.com>
393 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
396 2003-08-29 Ulrich Drepper <drepper@redhat.com>
398 * libio/stdio.h: Remove a few more __THROW.
400 2003-08-29 Jakub Jelinek <jakub@redhat.com>
402 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
403 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
404 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
405 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
406 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
407 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
408 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
409 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
410 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
411 putwchar.c and rewind.c with exceptions.
412 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
413 _IO_release_lock): Define.
414 * libio/fileops.c (_IO_new_file_underflow): Use it.
415 * libio/fputc.c (fputc): Likewise.
416 * libio/fputwc.c (fputwc): Likewise.
417 * libio/freopen64.c (freopen64):
418 * libio/freopen.c (freopen): Likewise.
419 * libio/fseek.c (fseek): Likewise.
420 * libio/fseeko64.c (fseeko64): Likewise.
421 * libio/fseeko.c (fseeko): Likewise.
422 * libio/ftello64.c (ftello64): Likewise.
423 * libio/ftello.c (ftello): Likewise.
424 * libio/fwide.c (fwide): Likewise.
425 * libio/getc.c (_IO_getc): Likewise.
426 * libio/getchar.c (getchar): Likewise.
427 * libio/getwc.c (_IO_getwc): Likewise.
428 * libio/getwchar.c (getwchar): Likewise.
429 * libio/iofclose.c (_IO_new_fclose):
430 * libio/iofflush.c (_IO_fflush): Likewise.
431 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
432 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
433 * libio/iofgets.c (_IO_fgets): Likewise.
434 * libio/iofgetws.c (fgetws): Likewise.
435 * libio/iofputs.c (_IO_fputs): Likewise.
436 * libio/iofputws.c (fputws): Likewise.
437 * libio/iofread.c (_IO_fread): Likewise.
438 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
439 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
440 * libio/ioftell.c (_IO_ftell): Likewise.
441 * libio/iofwrite.c (_IO_fwrite): Likewise.
442 * libio/iogetdelim.c (_IO_getdelim): Likewise.
443 * libio/iogets.c (_IO_gets): Likewise.
444 * libio/ioputs.c (_IO_puts): Likewise.
445 * libio/ioseekoff.c (_IO_seekoff): Likewise.
446 * libio/ioseekpos.c (_IO_seekpos): Likewise.
447 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
448 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
449 * libio/ioungetc.c (_IO_ungetc): Likewise.
450 * libio/ioungetwc.c (ungetwc): Likewise.
451 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
452 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
453 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
454 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
455 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
456 * libio/peekc.c (_IO_peekc_locked): Likewise.
457 * libio/putc.c (_IO_putc): Likewise.
458 * libio/putchar.c (putchar): Likewise.
459 * libio/putwc.c (putwc): Likewise.
460 * libio/putwchar.c (putwchar): Likewise.
461 * libio/rewind.c (rewind): Likewise.
462 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
464 2003-08-29 Ulrich Drepper <drepper@redhat.com>
466 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
469 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
470 Jakub Jelinek <jakub@redhat.com>
472 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
473 big endian arches. Don't read beyond end of fds_bits array.
475 2003-04-27 Bruno Haible <bruno@clisp.org>
477 * manual/message.texi (Advanced gettext functions): Add information
478 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
479 Add section about Lithuanian, reported by Ricardas Cepas
480 <rch@richard.eu.org>.
481 Add information about Croatian.
482 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
483 Remove remark about continuation lines that is not true for PO files.
484 Fix formula for Slovenian, reported by Roman Maurer
485 <roman.maurer@amis.net>.
487 2003-08-27 Ulrich Drepper <drepper@redhat.com>
489 * math/math_private.h: Declare __copysignf.
490 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
493 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
494 __signbit, and __signbitl inline functions.
496 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
497 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
499 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
500 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
502 2003-08-27 Jakub Jelinek <jakub@redhat.com>
504 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
506 2003-08-27 Ulrich Drepper <drepper@redhat.com>
508 * include/stdio.h: Add declarations for __builtin_fwrite and
509 __builtin_fwrite_unlocked.
511 2003-08-27 Jakub Jelinek <jakub@redhat.com>
513 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
514 fits into allocation. Add padding on 32-bit arches so that
515 dirp->data is enough aligned for struct dirent64.
516 Avoid clearing of the buffer, just clear DIR structure.
518 2003-08-26 Ulrich Drepper <drepper@redhat.com>
520 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
521 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
523 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
525 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
527 2003-08-26 Jakub Jelinek <jakub@redhat.com>
529 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
530 to match format string.
531 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
533 (__new_semctl): Shut up warning.
534 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
535 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
537 2003-08-26 Jakub Jelinek <jakub@redhat.com>
539 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
540 link file use the real file name, not the resolved name we got by
541 following the symlinks.
543 2003-08-25 Ulrich Drepper <drepper@redhat.com>
545 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
546 if the object size is large enough.
548 2003-08-25 Jakub Jelinek <jakub@redhat.com>
550 * elf/ldconfig.c (search_dir): Treat symlink as regular file
551 if it won't point to itself unless it is .so symlink for the linker.
553 2003-08-25 Ulrich Drepper <drepper@redhat.com>
555 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
556 use _mode if _IO_fwide_maybe_incompatible.
557 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
558 the compatibility test.
560 2003-08-25 Jakub Jelinek <jakub@redhat.com>
562 * elf/cache.c (save_cache): Don't write beyond end of file_entries
564 Duplicate last old cache entry if the count would be odd.
566 2003-08-25 Andreas Jaeger <aj@suse.de>
568 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
569 __LONG_LONG_PAIR to long.
571 2003-08-25 Philip Blundell <philb@gnu.org>
573 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
574 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
576 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
578 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
579 and use __libc_cleanup_region_end instead.
581 2003-08-25 Ulrich Drepper <drepper@redhat.com>
583 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
585 2003-08-22 Ulrich Drepper <drepper@redhat.com>
587 * io/fcntl.h (posix_fallocate): Change type of third parameter to
589 (posix_fallocate64): Change type of third parameter to off64_t.
590 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
591 * sysdeps/posix/posix_fallocate.c: Likewise.
592 * sysdeps/generic/posix_fallocate64.c: Likewise.
593 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
594 code for 32-bit platforms.
595 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
598 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
599 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
601 2003-08-19 Ulrich Drepper <drepper@redhat.com>
603 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
604 the type, not to name.
606 * stdio-common/test-vfprintf.c (main): Don't write temporary file
607 into source directory.
609 * malloc/malloc.c (_int_free): Add cheap test for some invalid
612 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
615 2003-08-18 Ulrich Drepper <drepper@redhat.com>
617 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
620 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
622 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
623 (elf_machine_lazy_rel): Likewise.
625 2003-08-18 Art Haas <ahaas@airmail.net>
627 * malloc/malloc.h: Remove unneeded ';' where closing the C++
630 2003-08-18 Ulrich Drepper <drepper@redhat.com>
632 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
633 loading big binaries where @gprel(sym) cannot be handled in 'add'
634 but instead has to be used with 'movl'.
636 2003-08-17 Juergen Kreileder <jk@blackdown.de>
637 Andreas Jaeger <aj@suse.de>
639 * sysdeps/x86_64/bits/byteswap.h: New file.
641 2003-08-17 Andreas Jaeger <aj@suse.de>
643 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
645 2003-08-16 Jakub Jelinek <jakub@redhat.com>
647 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
648 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
649 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
650 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
651 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
652 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
653 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
654 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
655 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
657 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
658 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
659 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
660 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
661 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
663 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
664 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
665 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
667 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
668 posix_fadvise64_64): Remove.
669 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
671 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
674 (posix_fadvise64): Likewise.
675 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
676 (posix_fadvise64): Likewise.
677 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
678 (posix_fadvise64): Likewise.
679 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
681 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
682 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
683 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
684 (__posix_fadvise64_l32): New function.
685 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
687 posix_fadvise64@@GLIBC_2.3.3.
688 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
689 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
690 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
692 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
694 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
695 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
697 2003-08-15 Jakub Jelinek <jakub@redhat.com>
699 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
700 (elf_machine_matches_host): Remove weak extern stuff.
701 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
702 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
703 stuff. Use GL(dl_hwcap) unconditionally.
705 2003-08-16 Alan Modra <amodra@bigpond.net.au>
707 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
708 __libc_start_main branch.
710 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
711 Andreas Jaeger <aj@suse.de>
713 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
714 instead of setting errno.
715 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
717 2003-08-16 Andreas Jaeger <aj@suse.de>
719 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
720 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
722 2003-08-15 Ulrich Drepper <drepper@redhat.com>
724 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
726 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
727 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
728 description indicating the error value is returned, not -1.
729 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
730 __ASSUME_FADVISE64_64_SYSCALL.
731 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
732 posix_madvise in one file. Have posix_madvise defined with error
734 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
736 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
737 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
738 PSEUDO_END_ERRVAL, and ret_ERRVAL.
739 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
740 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
741 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
744 * posix/Makefile (routines): Add posix_madvise.
745 * sysdeps/generic/madvise.c: Don't define posix_madvise.
746 * sysdeps/generic/posix_madvise.c: New file.
747 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
748 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
749 Add posix_fadvise64_64.
751 2003-08-15 Jakub Jelinek <jakub@redhat.com>
753 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
754 3.0, not for !gcc or gcc < 3.0.
756 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
758 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
759 Address passed to test_in_mod1 and test_in_mod2 without casting.
760 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
761 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
762 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
763 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
765 2003-08-15 Jakub Jelinek <jakub@redhat.com>
767 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
768 Change quotes before using [].
770 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
772 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
774 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
775 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
776 argument. Select one of 64 locks from address bits.
777 (atomic_compare_and_exchange_val_acq,
778 atomic_compare_and_exchange_bool_acq): Pass memory address to
779 __sparc32_atomic_do_{,un}lock.
781 2003-08-14 Ulrich Drepper <drepper@redhat.com>
783 * assert/assert.h (assert): Use !! in front of expression to allow
786 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
787 Changed conversion of JIS X 0201 from using a table to calculating.
788 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
789 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
791 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
792 * iconvdata/CP932.irreversible: New file.
793 * iconvdata/EUC-JP-MS.irreversible: New file.
794 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
796 2003-08-13 Ulrich Drepper <drepper@redhat.com>
798 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
800 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
801 text processing tools.
803 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
804 element unless BROKEN_THREAD_SIGNALS is defined.
805 (struct requestlist): Likewise.
806 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
807 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
808 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
809 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
810 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
811 Pass current PID to __aio_sigqueue.
812 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
813 call. Don't initialize caller_pid field of waitlist element.
815 2003-08-12 Jakub Jelinek <jakub@redhat.com>
817 * libio/libioP.h (_IO_vtable_offset): Define.
818 * libio/freopen.c (freopen): Use it.
819 * libio/ioputs.c (_IO_puts): Likewise.
820 * libio/freopen64.c (freopen64): Likewise.
821 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
823 * libio/iofclose.c (_IO_new_fclose): Likewise.
824 * libio/iofputs.c (_IO_fputs): Likewise.
825 * libio/ioftell.c (_IO_ftell): Likewise.
826 * libio/iofwrite.c (_IO_fwrite): Likewise.
827 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
828 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
829 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
830 * stdio-common/vfscanf.c (ORIENT): Likewise.
832 2003-08-11 Ulrich Drepper <drepper@redhat.com>
834 * assert/assert.h: Use __builtin_expect in assert and
835 assert_perror definitions if possible.
837 2003-08-07 Jakub Jelinek <jakub@redhat.com>
839 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
840 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
841 * elf/rtld.c (rtld_lock_default_lock_recursive,
842 rtld_lock_default_unlock_recursive): New functions.
843 (dl_main): Initialize _dl_rtld_lock_recursive and
844 _dl_rtld_unlock_recursive.
846 2003-08-05 Jakub Jelinek <jakub@redhat.com>
848 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
849 config_file directories instead of prepending.
851 2003-08-02 Ulrich Drepper <drepper@redhat.com>
853 * sysdeps/unix/sysv/linux/kernel-features.h: Define
854 __ASSUME_CLONE_STOPPED.
856 2003-08-01 Ulrich Drepper <drepper@redhat.com>
858 * sysdeps/generic/bits/libc-lock.h
859 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
861 2003-08-01 Roland McGrath <roland@frob.com>
863 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
865 2003-07-31 Jakub Jelinek <jakub@redhat.com>
867 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
868 instead of __SWORD_TYPE.
869 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
870 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
871 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
873 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
875 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
877 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
879 * dlfcn/dlerror.c (once): New.
880 (dlerror): Call __libc_once.
881 (_dlerror_run): Remove once.
883 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
884 Sync with 2.5.7 and 2.5.73 kernel changes.
886 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
887 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
889 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
890 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
891 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
892 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
893 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
895 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
897 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
898 %d format and cast expected value to int.
899 * sysdeps/generic/libc-start.c (STATIC): Add
900 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
901 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
902 to ieee_float_shape_type.
903 (__sqrt): Avoid type punning.
904 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
905 to ieee_float_shape_type.
906 (__sqrtf): Avoid type punning.
907 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
908 refsym if in dl-conflict.c.
909 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
910 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
911 (__new_semctl): Shut up warning.
912 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
913 (__new_semctl): Shut up warning.
914 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
915 Change old into union of __old_shmid_ds and __old_shminfo structs.
917 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
919 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
921 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
922 * sysdeps/posix/utimes.c (__utimes): Likewise.
924 2003-07-30 Jakub Jelinek <jakub@redhat.com>
926 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
927 call dl_signal_error directly. If already relocated, call
928 GL(dl_init_static_tls) directly, otherwise queue it for later.
929 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
930 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
931 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
932 for all static TLS initializations delayed in _dl_allocate_static_tls.
933 * elf/dl-support.c (_dl_init_static_tls): New variable.
934 * include/link.h (struct link_map): Add l_need_tls_init.
935 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
936 (_dl_nothread_init_static_tls): New prototype.
937 (_dl_allocate_static_tls): Adjust prototype.
939 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
941 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
943 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
944 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
945 reloc_addr is aligned.
946 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
947 elf_machine_rela_relative): Adjust.
948 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
949 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
950 * sysdeps/cris/dl-machine.h (elf_machine_rela,
951 elf_machine_rela_relative): Adjust.
952 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
953 elf_machine_rela_relative): Adjust.
954 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
955 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
956 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
957 elf_machine_rela_relative): Adjust.
958 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
959 elf_machine_rela_relative): Adjust.
960 * sysdeps/mips/dl-machine.h (elf_machine_rela,
961 elf_machine_rela_relative): Adjust.
962 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
963 elf_machine_rela_relative): Adjust.
964 * sysdeps/powerpc/powerpc64/dl-machine.h
965 (elf_machine_rela_relative, elf_machine_rela): Adjust.
966 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
967 elf_machine_rela_relative): Adjust.
968 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
969 elf_machine_rela_relative): Adjust.
970 * sysdeps/sh/dl-machine.h (elf_machine_rela,
971 elf_machine_rela_relative): Adjust.
972 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
973 elf_machine_rela_relative): Adjust.
974 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
975 elf_machine_rela_relative): Adjust.
976 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
977 elf_machine_rela_relative): Adjust.
979 2003-07-29 Ulrich Drepper <drepper@redhat.com>
981 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
982 alignment of TCB used before the last change so that it matches
983 ld's output for IE code.
985 2003-07-29 Jakub Jelinek <jakub@redhat.com>
987 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
988 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
989 break strict-aliasing rules" warnings.
991 2003-07-29 Roland McGrath <roland@redhat.com>
993 * elf/Makefile: Revert accidental changes in last commit.
994 * elf/dl-support.c: Likewise.
996 * rt/tst-timer2.c: New file.
997 * rt/Makefile (tests): Add it.
999 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1001 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1003 2003-07-29 Roland McGrath <roland@redhat.com>
1005 * elf/Makefile (tests) [$(build-shared) = yes]:
1006 Depend on $(test-modules).
1007 * dlfcn/Makefile: Likewise.
1009 2003-07-28 Roland McGrath <roland@redhat.com>
1011 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1012 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1014 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1015 * elf/tst-tlsmod14a.c: Likewise.
1017 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1018 before <linux/sysctl.h>.
1020 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1022 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1023 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1024 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1025 * sysdeps/unix/syscalls.list: umask syscall never fails.
1027 2003-07-27 Andreas Jaeger <aj@suse.de>
1029 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1031 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1033 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1034 Include bits/a.out.h.
1035 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1037 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1038 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1039 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1040 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1041 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1042 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1043 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1044 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1046 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1048 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1049 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1050 aiocbp->aio_fildes does not match fildes.
1052 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1054 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1057 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1058 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1059 Fix calculation of offsets to take misalignment of first byte in
1061 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1062 l_tls_firstbyte_offset field.
1063 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1064 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1065 Take l_tls_firstbyte_offset information into account.
1066 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1067 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1068 * elf/Makefile: Add rules to build and run tst-tls14.
1069 * elf/tst-tls14.c: New file.
1070 * elf/tst-tlsmod14a.c: New file.
1071 * elf/tst-tlsmod14b.c: New file.
1073 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1075 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1076 (lio_listio): Use it.
1077 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1078 after few defines to avoid duplication.
1080 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1082 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1083 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1085 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1086 Add libc_hidden_def.
1087 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1088 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1089 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1090 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1091 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1092 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1093 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1095 * sysdeps/generic/unwind.inc: Removed.
1097 * include/resolv.h (__resp): Declare. Define to __libc_resp
1099 (_res): If USE___THREAD, define to (*__resp).
1100 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1101 even if USE___THREAD.
1102 (__resp): New __thread variable.
1103 (__libc_resp): New alias.
1104 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1105 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1106 * sysdeps/generic/res-state.c (__res_state): Return __resp
1109 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1111 * elf/dl-support.c (_dl_hwcap): New variable.
1112 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1114 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1115 and <dl-procinfo.h>.
1116 (__feclearexcept): Clear MXCSR if needed.
1117 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1119 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1120 that newer hardware needs more than these macros.
1122 * sysdeps/i386/setfpucw.c: New file.
1124 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1126 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1127 * elf/ldconfig.c: Include dl-procinfo.c.
1128 (PROCINFO_CLASS): Define.
1129 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1130 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1131 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1132 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1133 Define if not yet defined. Use it instead of EXTERN. Undefine
1134 at the end of the file.
1135 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1137 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1138 (PROCINFO_CLASS): Likewise.
1139 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1140 (PROCINFO_CLASS): Likewise.
1142 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1144 * elf/ldconfig.c (main): Issue a fatal error if relative path
1145 is used to build cache.
1147 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1149 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1151 2003-07-21 Art Haas <ahaas@airmail.net>
1153 * manual/charset.texi (Converting a Character): Fix example code so a
1154 valid pointer is returned.
1156 2003-07-22 Andreas Jaeger <aj@suse.de>
1158 * elf/readlib.c (process_file): Check that file is a shared
1161 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1162 will not optimize it away.
1163 (__DTOR_END__): Likewise.
1164 (__CTOR_END__): Likewise.
1166 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1167 that gcc will not optimize it away.
1168 (link_warning): Likewise.
1170 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1172 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1173 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1174 * wcsmbs/tst-wcpncpy.c: New file.
1176 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1178 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1180 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1181 stmxcsr and ldmxcsr.
1183 * Makerules (build-module-helper): Add -z defs unless explicitly said
1185 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1186 which has undefined symbols.
1187 * elf/Makefile: Likewise.
1189 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1190 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1191 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1192 * sysdeps/i386/fpu/fesetround.c: Likewise.
1193 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1195 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1197 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1198 if it won't point to itself.
1200 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1202 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1204 2003-07-20 Andreas Jaeger <aj@suse.de>
1206 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1207 STANDARD_TO_LOOP_ERR_HANDLER.
1208 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1210 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1212 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1214 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1216 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1217 Andreas Jaeger <aj@suse.de>
1219 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1220 256K, remove unneeded declaration of __getpagesize.
1222 2003-07-16 Andreas Schwab <schwab@suse.de>
1224 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1226 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1228 * io/test-utime.c (main): Make test yet more robust.
1230 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1232 More cancellation handling fixups.
1233 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1234 * sysdeps/generic/not-cancel.h: Likewise.
1235 * catgets/open_catalog.c: Use not-cancelable syscalls.
1236 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1237 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1238 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1239 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1240 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1241 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1242 * libio/iopopen.c: Use no-cancelable syscalls.
1243 * libio/stdio.h: Mark popen and pclose with __THROW again.
1244 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1245 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1246 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1247 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1248 CFLAGS-tempname.c): Add -fexceptions.
1249 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1250 * string/string.h: Mark strerror and strerror_r with _THROW again.
1251 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1252 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1253 #ifs since we now need all the code compiled.
1254 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1255 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1256 * sysdeps/unix/opendir.c: Likewise.
1258 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1259 Add rule for EUC-JP-MS dependency.
1260 * iconvdata/cp932.c: New file.
1261 * iconvdata/eucjp-ms.c: New file.
1262 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1263 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1265 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1270 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1272 * sysdeps/unix/sysv/linux/kernel-features.h
1273 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1276 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1278 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1280 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1281 __ASSUME_TGKILL for Alpha appropriately.
1283 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1285 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1286 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1288 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1291 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1292 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1294 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1295 second parameter == NULL.
1296 * sysdeps/unix/sysv/linux/utimes.c: New file.
1298 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1300 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1301 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1304 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1306 * time/sys/time.h: Namespace cleanup.
1307 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1308 __ASSUME_UTIMES for the architectures which always had the syscall.
1309 * sysdeps/unix/sysv/linux/futimes.c: New file.
1311 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1313 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1314 register across CENABLE and CDISABLE.
1316 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1318 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1319 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1320 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1321 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1322 int before assigning to max to avoid warnings.
1324 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1328 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1329 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1331 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1333 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1334 .data.rel.ro.local to "aw".
1336 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1338 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1339 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1340 (PIC-ccflag): Define.
1342 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1344 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1346 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1348 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1350 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1351 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1353 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1355 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1356 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1358 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1359 compilation with HAVE_AUX_SECURE defined.
1361 2003-07-05 Richard Henderson <rth@redhat.com>
1363 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1365 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1367 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1369 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1371 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1374 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1376 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1378 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1380 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1382 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1383 decl and use with #ifdef NEED_DL_SYSINFO.
1385 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1387 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1388 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1389 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1390 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1391 vsyscall DSO was added.
1393 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1394 depending on selected standard.
1395 (NGROUPS_MAX): Define to 8 if not defined.
1397 2003-07-02 Andreas Jaeger <aj@suse.de>
1399 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1401 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1403 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1404 * malloc/thread-m.h: Include <atomic.h>.
1405 (atomic_full_barrier): Provide default.
1406 (atomic_read_barrier): Likewise.
1407 (atomic_write_barrier): Likewise.
1408 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1410 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1412 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1414 2003-06-30 Richard Henderson <rth@redhat.com>
1416 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1417 Invert the sense of the return value.
1418 (__arch_exchange_16_int): Fix paste-o.
1419 (__arch_exchange_{32,64}_int): Fix think-o.
1421 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1423 2003-06-30 Richard Henderson <rth@redhat.com>
1425 * include/sys/resource.h (__getrusage): Mark hidden.
1426 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1427 * include/sys/wait.h (__wait4): Likewise.
1429 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1431 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1433 (xstat_conv): Rename to __xstat_conv and remove static inline.
1434 (xstat64_conv): Likewise.
1436 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1438 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1439 values which cannot be handled in one nanosleep call.
1441 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1443 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1444 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1446 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1448 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1450 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1453 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1455 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1456 Conditionalize function definitions that use struct kernel_stat.
1457 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1458 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1459 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1461 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1463 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1466 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1468 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1469 (getgrent_next_file): Don't store group name to early in blacklist.
1471 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1472 and use memcpy instead of strcpy.
1474 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1476 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1478 * nis/nss_compat/compat-initgroups.c: Likewise.
1479 * nis/nss_compat/compat-pwd.c: Likewise.
1480 * nis/nss_compat/compat-spwd.c: Likewise.
1482 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1484 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1485 functions, dlopen corresponding NSS module instead.
1487 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1489 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1490 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1491 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1492 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1494 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1496 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1498 2003-06-26 Roland McGrath <roland@frob.com>
1500 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1501 * sysdeps/mach/configure: Regenerated.
1502 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1503 (__times): Assume `creation_time' field is available.
1504 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1505 Don't append set-init.
1506 * sysdeps/mach/hurd/set-init.c: File removed.
1508 2003-06-26 Roland McGrath <roland@redhat.com>
1510 * elf/elf.h (AT_SECURE): New macro.
1511 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1512 set __libc_enable_secure.
1513 (_dl_show_auxv): Add AT_SECURE to name table.
1514 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1515 __libc_enable_secure and __libc_enable_secure_decided.
1516 * sysdeps/unix/sysv/linux/ldsodefs.h
1517 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1518 * sysdeps/unix/sysv/linux/kernel-features.h
1519 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1521 2003-06-26 Ulrich Drepper <drepper@redhat.com>
1523 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1524 boundary test to take rounding of nanoseconds into account.
1526 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1527 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1528 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1529 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1530 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1531 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1532 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1534 2003-06-26 Andreas Schwab <schwab@suse.de>
1536 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1537 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1538 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1540 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
1542 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1543 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1544 dlopen corresponding NSS module instead.
1545 * nis/nss_compat/compat-pwd.c: Likewise.
1546 * nis/nss_compat/compat-spwd.c: Likewise.
1547 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1548 * nss/Versions: Export __nss_lookup_function.
1550 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1552 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1553 for the SH architecture.
1555 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
1557 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1559 2003-06-25 Andreas Jaeger <aj@suse.de>
1561 * stdlib/tst-strtod.c (main): Declare constant long double as
1562 suggested by Jakub Jelinek and Andreas Schwab.
1564 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1567 * stdio-common/tst-fphex.c: Fix format string.
1569 * posix/transbug.c: Include <string.h> for memset and strlen
1572 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1574 * stdlib/tst-strtod.c (main): Pass long double value.
1576 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1578 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1580 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1583 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1585 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1586 * elf/dl-libc.c (struct dl_open_hook): New.
1587 (_dl_open_hook): New variable.
1588 (do_dlsym_private): New function.
1589 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1590 and initialize it if found.
1591 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1592 call dlopen_mode hook.
1593 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1595 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1598 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1600 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1601 result to long int so that extensions to long long int work.
1602 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1604 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1606 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1607 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1608 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1610 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1611 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1612 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1613 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1615 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1617 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1618 retry once after a second. If killed == 0, assume
1619 WTERMSIG (status) == SIGKILL.
1621 2003-06-18 Roland McGrath <roland@redhat.com>
1623 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1624 elements in the table instead of printing an empty name string.
1626 2003-06-05 Roland McGrath <roland@redhat.com>
1628 * elf/elf.h (PT_GNU_STACK): New macro.
1630 2003-06-24 Ulrich Drepper <drepper@redhat.com>
1632 * include/time.h: Define CLOCK_IDFIELD_SIZE.
1633 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1634 * sysdeps/unix/clock_gettime.c: Likewise.
1635 * sysdeps/unix/clock_settime.c: Likewise.
1636 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1637 clock id for thread CPU clocks.
1639 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1640 for the fstatfs64 syscall.
1641 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1642 the statfs64 syscall.
1644 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1645 __ASSUME_STATFS64 appropriately.
1647 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1648 from statfs structure if it has been filled in.
1650 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1652 (struct statfs64): Likewise.
1653 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1654 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1656 2003-06-24 Richard Henderson <rth@redhat.com>
1658 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1659 the 64-bit syscall name.
1661 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1663 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1664 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
1666 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1667 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1669 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1670 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1673 * sysdeps/alpha/bits/atomic.h: New file.
1675 2003-06-24 Andreas Schwab <schwab@suse.de>
1677 * sysdeps/m68k/fpu/libm-test-ulps: Update.
1679 2003-06-24 Andreas Jaeger <aj@suse.de>
1681 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1682 redeclaration with 32-bit code.
1684 2003-05-19 Ed Connell <ed.connell@sas.com>
1686 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1687 floating point mask.
1688 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1690 2003-06-23 Ulrich Drepper <drepper@redhat.com>
1692 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1693 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1694 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1696 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1697 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
1698 instead of __libc_cleanup_region_*.
1700 2003-06-20 Richard Henderson <rth@redhat.com>
1702 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1703 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1705 2003-06-20 Richard Henderson <rth@redhat.com>
1707 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1708 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1710 (__ASSUME_TIMEVAL64): Set for alpha.
1711 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1712 adjtimex, osf_sigprocmask, old_adjtimex.
1713 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1714 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
1715 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1716 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1717 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1718 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1719 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1720 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1721 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1722 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1723 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
1725 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1726 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
1727 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
1728 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
1729 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1730 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
1731 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
1732 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
1733 defer to __syscall_name; error for rt_sigaction.
1734 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
1736 2003-06-18 Ulrich Drepper <drepper@redhat.com>
1738 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
1739 hasn't happened yet.
1741 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1742 Fix completely broken implementation. The second parameter is of
1743 type struct ucontext*.
1745 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
1748 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
1749 * sysdeps/generic/dl-hash.h: Likewise.
1751 * sysdeps/generic/memcmp.c: Remove inline from
1752 memcmp_common_alignment and memcmp_not_common_alignment definition.
1754 * intl/localealias.c (read_alias_file): Determine whether line is
1755 read incompletely early, before we modify the line.
1757 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1759 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
1760 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
1762 2003-06-17 Paul Mackerras <paulus@samba.org>
1764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
1765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
1766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
1767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
1769 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
1771 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1773 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
1775 2003-06-17 Ulrich Drepper <drepper@redhat.com>
1777 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
1778 takes care of enabling cancellation.
1780 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
1781 cancelable. It's not correct to disable cancellation. Instead of
1784 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
1785 and part of the incoming set, create a temporary set without this
1787 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1788 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1790 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
1791 returning because seconds==0. Add __builtin_expect.
1793 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1795 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
1797 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
1800 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
1802 * include/libc-symbols.h: Add static_link_warning macro.
1803 * grp/initgroups.c: Print linker warning if this function
1804 is called in a static linked binary.
1805 * nss/getXXbyYY.c: Likewise.
1806 * nss/getXXbyYY_r.c: Likewise.
1807 * nss/getXXent.c: Likewise.
1808 * nss/getXXent_r.c: Likewise.
1809 * sysdeps/posix/getaddrinfo.c: Likewise.
1811 2003-06-16 Bruno Haible <bruno@clisp.org>
1813 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
1815 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
1816 (IBM1047): Add alias IBM-1047.
1817 (GBK): Add aliases MS936, WINDOWS-936.
1819 2003-06-16 Jakub Jelinek <jakub@redhat.com>
1821 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
1822 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
1823 (__xstat64_conv): Change xstat_conv to __xstat_conv.
1825 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1827 * locale/iso-639.def: Update from current official ISO 639.
1829 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
1831 2003-06-15 Andreas Jaeger <aj@suse.de>
1833 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
1835 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1836 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
1837 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
1839 * math/tgmath.h (carg): Handle real arguments.
1845 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
1846 (tests): Add test-tgmath-ret.
1847 * math/test-tgmath-ret.c: New file.
1849 * math/tgmath.h (ilogb): Return always an int.
1851 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1853 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
1854 computation so that prelinking works.
1856 2003-06-15 Ulrich Drepper <drepper@redhat.com>
1858 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
1860 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
1861 dynamic linker's map.
1863 Fix cancellation point handling wrt exception based cleanup.
1864 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
1865 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
1867 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
1868 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
1869 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
1871 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
1872 sigwait.c, and sigwaitinfo.c with exceptions.
1873 * stdlib/Makefile: Compile system.c with exceptions.
1874 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
1875 * termios/Makefile: Compile tcdrain.c with exceptions.
1876 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
1878 * sysdeps/generic/pselect.c: Likewise.
1879 * sysdeps/posix/sigpause.c: Likewise.
1880 * sysdeps/posix/system.c: Likewise.
1881 * sysdeps/posix/waitid.c: Likewise.
1882 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1883 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1884 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
1885 INTERNAL_SYSCALL to not use push inside asm statement so that
1886 unwind info is correct around the syscall.
1887 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
1888 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1890 2003-06-15 Andreas Jaeger <aj@suse.de>
1892 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1895 2003-06-15 Guido Guenther <agx@sigxcpu.org>
1897 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
1900 2003-06-14 Ulrich Drepper <drepper@redhat.com>
1902 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
1905 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
1906 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
1909 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
1910 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
1911 * inet/Makefile (routines): Add inet6_option.
1912 * inet/inet6_option.c: New file.
1913 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
1914 inet6_option_init, inet6_option_append, inet6_option_alloc,
1915 inet6_option_next, and inet6_option_find.
1917 2003-06-13 Ulrich Drepper <drepper@redhat.com>
1919 * inet/netinet/ip6.h (struct ip6_ext): Define.
1921 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
1923 Fixing gcc 3.3 warnings, part II.
1924 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
1925 * elf/dl-load.c (cache_rpath): Don't inline.
1926 * iconvdata/cns11642l2.h: Always inline all functions.
1927 * iconvdata/iso-ir-165.h: Likewise.
1928 * locale/Makefile (aux): Add coll-lookup.
1929 * locale/coll-lookup.c: New file.
1930 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
1931 (collseq_table_lookup): Likewise.
1932 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
1933 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
1935 * posix/regcomp.c: Likewise.
1936 * posix/regexec.c: Likewise.
1937 * locale/programs/3level.h (*_get): Always inline.
1938 * locale/programs/locfile.h: Move definition of handle_copy to...
1939 * locale/programs/locfile.c: ...here.
1940 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
1941 (obstack_int32_grow_fast): Likewise.
1942 (utf8_encode): Likewise.
1943 (find_element): Avoid aliasing problems.
1944 (insert_value): Likewise.
1945 (collate_read): Likewise.
1946 * nss/getent.c (print_hosts): Don't inline
1947 (print_networks): Likewise.
1948 (print_shadow): Likewise.
1949 (build_doc): Likewise.
1950 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
1952 * posix/regcomp.c (re_set_fastmap): Always inline.
1953 (seek_collating_symbol_entry): Likewise.
1954 (lookup_collation_sequence_value): Likewise.
1955 (build_range_exp): Likewise.
1956 (build_collating_symbol): Likewise.
1957 * posix/regexec.c (acquire_init_state_context): Don't inline.
1958 (clean_state_log_if_need): Likewise.
1959 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
1961 (evConsTime): Likewise.
1962 (evAddTime): Likewise.
1963 (evSubTime): Likewise.
1964 (evNowTime): Likewise.
1965 (evTimeSpec): Removed.
1966 (__libc_res_nsend): Avoid aliasing problem.
1967 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
1968 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
1969 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
1971 (_dl_string_platform): Likewise.
1972 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
1973 (wcwidth_table_lookup): Likewise.
1974 (wctrans_table_lookup): Likewise.
1976 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
1978 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1980 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
1982 2003-05-29 Jim Meyering <jim@meyering.net>
1984 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
1985 && HAVE_STRFTIME]: Use underlying_strftime for %r.
1986 Suggested by Daniel Yacob <locales@geez.org>.
1988 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
1990 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
1991 @got notation with @toc.
1992 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
1993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
1995 2003-06-12 Ulrich Drepper <drepper@redhat.com>
1997 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
1998 if only PF_INET address is needed.
2000 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2003 * scripts/config.guess: Update from upstream version.
2004 * scripts/config.sub: Likewise.
2006 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2008 * locale/programs/ld-time.c (time_output): Also copy the era format,
2011 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2013 * posix/transbug.c (run_test): Return 1 for failure.
2014 (do_test): Compare only if run_test is successful.
2016 2003-06-12 Simon Josefsson <jas@extundo.com>
2018 * argp/argp.h [!__THROW]: Define if undefined.
2020 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2022 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2023 more than four parameters.
2024 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2026 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2028 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2029 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2030 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2032 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2034 2003-06-12 Roland McGrath <roland@redhat.com>
2036 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2038 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2040 * posix/regcomp.c (parse_expression): Deliver translation to
2041 build_word_op, and build_charclass.
2042 (build_charclass): Apply translation for character classes too.
2043 (build_word_op): Deliver translation to build_charclass.
2044 * posix/transbug.c: New file.
2045 * posix/Makefile (tests): Add transbug.
2047 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2049 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2050 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2051 'continue' before the others.
2053 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2055 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2056 function [PR libc/5045].
2058 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2061 * time/tzfile.c: Add a couple of __builtin_expect.
2063 Remove warnings gcc 3.3 shows.
2064 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2065 * elf/dl-load.c (fillin_rpath): Likewise.
2066 (add_path): Likewise.
2067 * elf/dl-version.c (find_needed): Always inline.
2068 * elf/do-lookup.c (FCT): Don't inline.
2069 * iconv/Makefile: Extend vpath to intl subdir.
2070 (iconvconfig-modules): Add hash-string.
2071 * iconv/gconv_charset.h (strip): Don't inline.
2072 (upstr): Always inline.
2073 Move __gconv_compare_alias prototype to...
2074 * iconv/gconv_int.h: ...here.
2075 * iconv/gconv_db.c: Don't include gconv_charset.h.
2076 * iconv/gconv_conf.c (add_alias): Don't inline.
2077 (insert_module): Likewise.
2078 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2079 (internal_ucs4_loop_unaligned): Likewise.
2080 (internal_ucs4_loop_single): Likewise.
2081 (ucs4_internal_loop): Likewise.
2082 (ucs4_internal_loop_unaligned): Likewise.
2083 (ucs4_internal_loop_single): Likewise.
2084 (internal_ucs4le_loop): Always inline.
2085 (internal_ucs4le_loop_unaligned): Likewise.
2086 (internal_ucs4le_loop_single): Likewise.
2087 (ucs4le_internal_loop): Likewise.
2088 (ucs4le_internal_loop_unaligned): Likewise.
2089 (ucs4le_internal_loop_single): Likewise.
2090 * iconv/loop.c: Always inline the defined functions.
2091 * iconvdata/cns11642.h: Likewise.
2092 * iconvdata/cns11642l1.h: Likewise.
2093 * iconvdata/euc-kr.c: Likewise.
2094 * iconvdata/gb2312.h: Likewise.
2095 * iconvdata/jis0201.h: Likewise.
2096 * iconvdata/jis0208.h: Likewise.
2097 * iconvdata/jis0212.h: Likewise.
2098 * iconvdata/jisx0213.h: Likewise.
2099 * iconvdata/ksc5601.h: Likewise.
2100 * iconvdata/utf-7.c (base64): Don't inline.
2101 * include/libc-symbols.h (symbol_set_first_element): Add cast
2102 (symbol_set_end_p): Likewise.
2103 * include/set-hooks (RUN_HOOK): Likewise.
2104 * inet/Makefile (aux): Add ifreq.
2105 * intl/Makefile (aux): Add some entries from routines. Add
2107 * intl/hash-string.c: New file.
2108 * intl/hash-string.h: Remove hash_string definition. Declare
2110 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2111 * iconv/iconvconfig.c (new_name): Likewise.
2112 * intl/dcigettext.c (_nl_find_msg): Likewise.
2113 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2114 * io/ftw.c (open_dir_stream): Always inline.
2115 (process_entry): Don't inline.
2116 * locale/findlocale.c: Include gconv_int.h.
2117 * locale/setlocale.c (new_composite_name): Don't inline.
2118 * locale/weight.h (findidx): Always inline.
2119 * locale/weightwc.h (findidx): Likewise.
2120 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2121 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2123 (lr_getc): Always inline.
2124 (lr_ungetc): Likewise.
2125 * nss/nss_files/files-parse.c (parse_list): Likewise.
2126 * stdio-common/Makefile (aux): Add printf-parsemb and
2128 * stdio-common/_itoa.h (_itoa_word): Always inline.
2129 (_fitoa_word, _fitoa): Don't define here, only declare.
2130 * stdio-common/_itoa.c (_iftoa_word): Add here.
2132 * stdio-common/_itowa.h (_itowa_word): Always inline.
2133 * stdio-common/printf-parse.h (read_int): Don't inline.
2134 (find_spec): Don't define.
2135 Declare __find_specmb and __find_specwc.
2136 (parse_one_spec): Don't define.
2137 Declare __parse_one_specmb and __parse_one_specwc.
2138 * stdio-common/printf-parsemb.c: New file.
2139 * stdio-common/printf-parsewc.c: New file.
2140 * stdio-common/vfprintf.c: Update calls to find_spec and
2141 parse_one_spec for new names.
2142 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2143 * stdlib/Makefile (aux): Add grouping and groupingwc.
2144 * stdlib/grouping.c: New file.
2145 * stdlib/groupingwc.c: New file.
2146 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2148 * stdlib/rpmatch.c (try): Don't inline.
2149 * stdlib/strtod.c (round_and_return): Don't line.
2150 (str_to_mpn): Likewise.
2151 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2152 Adjust for name change of correctly_grouped_prefix.
2153 * sysdeps/generic/strtol.c: Adjust for name change of
2154 correctly_grouped_prefix.
2155 * string/strxfrm.c (utf8_encode): Don't inline.
2156 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2157 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2158 * sysdeps/generic/ifreq.c: New file.
2159 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2160 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2161 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2162 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2163 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2164 (fde_split): Likewise.
2165 (fde_merge): Likewise.
2166 (end_fde_sort): Likewise.
2167 (init_object): Likewise.
2168 (binary_search_unencoded_fdes): Likewise.
2169 (binary_search_single_encoding_fdes): Likewise.
2170 (binary_search_mixed_encoding_fdes): Likewise.
2171 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2172 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2173 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2174 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2176 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2177 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2178 Export them. Prepend __ to name.
2179 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2180 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2181 conversion functions.
2182 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2183 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2184 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2185 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2186 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2187 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2188 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2189 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2190 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2191 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2192 to name. Change callers.
2193 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2194 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2196 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2197 * time/tzfile.c (decode): Always inline.
2198 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2199 Remove cast in tomb function call.
2200 * wcsmbs/wcsrtombs.c Likewise.
2201 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2204 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2206 * po/zh_CN.po: Update from translation team.
2208 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2210 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2211 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2213 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2215 * inet/Makefile (aux): Add check_pf.
2216 * include/ifaddrs.h: Add prototype for __check_pf.
2217 * sysdeps/generic/check_pf.c: New file.
2218 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2219 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2220 from no_netlink_support. Export.
2221 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2224 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2226 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2227 from getifaddr calls.
2229 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2231 * sysdeps/unix/sysv/linux/kernel-features.h
2232 (__ASSUME_SETRESGID_SYSCALL): Define.
2233 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2234 instead of __ASSUME_SETRESUID_SYSCALL.
2235 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2237 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2238 inline syscall if __NR_setresuid32 is defined.
2239 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2240 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2241 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2242 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2243 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2244 code handling non-existant setresgid32 syscall with
2245 #if __ASSUME_SETRESGID_SYSCALL == 0.
2247 2003-06-09 Andreas Schwab <schwab@suse.de>
2249 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2250 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2251 $(objpfx)rpc-proto.d.
2252 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2253 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2254 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2256 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2258 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2259 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2260 defined drop compatibility code.
2261 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2262 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2263 defined drop compatibility code.
2264 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2265 setresuid32 syscall directly if possible.
2266 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2267 setresgid32 syscall directly if possible.
2268 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2269 compliant. Don't change sgid.
2270 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2271 compliant. Don't change suid.
2273 * config.h.in: Add have-forced-unwind.
2274 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2276 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2278 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2279 returned status from child matches.
2281 * Makeconfig (gnulib): Add -lgcc_eh once again.
2283 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2285 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2287 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2288 %edx for first parameter. This means no pushl and therefore the
2289 unwind info isn't screwed up.
2291 2003-06-04 Richard Henderson <rth@redhat.com>
2293 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2294 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2295 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2296 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2297 entry sequence and explicit relocs. Add unwind info for sigreturn
2299 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2301 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2302 Annotate some parameters.
2303 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2305 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2307 * include/libc-symbols.h (symbol_set_declare): Use arrays
2308 of unspecified size.
2310 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2312 * config.make.in (ASFLAGS-config): New.
2313 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2314 * configure.in (libc_cv_as_noexecstack): New check.
2315 (ASFLAGS_config): Substitute.
2317 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2319 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2320 hypot, logb): Protect with #ifdef __FAST_MATH__.
2322 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2324 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2325 #ifdef __FAST_MATH__.
2327 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2329 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2330 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2331 * posix/globtest.sh: Adjust for this change.
2333 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2334 to get the actual PID value used in the records passed up.
2335 (getifaddrs): Don't initialize nh.pid here.
2337 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2339 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2342 * po/zh_CN.po: Update from translation team.
2344 * posix/getconf.c (main): Also recognize names without the
2347 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2349 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2351 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2352 ldexpf, ldexpl): Only define if __FAST_MATH__.
2354 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2356 Replace hard-coded offsets into struct sigcontext with generated file.
2357 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2358 * sysdeps/unix/sysv/linux/ia64/Makefile
2359 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2360 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2361 defining SC_* macros here.
2363 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2365 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2367 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2369 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2371 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2373 * test-skeleton.c (main): Request getopt to not reorder the
2376 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2378 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2381 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2383 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2385 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2387 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2389 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2390 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2391 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2393 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2395 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2398 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2400 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2402 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2405 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2407 * scripts/config.guess: Update from master copy.
2408 * scripts/config.sub: Likewise.
2410 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2412 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2413 SETUP_GP64 and friends.
2414 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2415 names in internal_syscall{6,7}.
2416 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2417 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2418 number of syscall arguments.
2419 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2420 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2421 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2423 2003-05-30 Andreas Jaeger <aj@suse.de>
2425 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2428 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2431 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2433 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2436 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2438 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2441 2003-05-11 Andreas Schwab <schwab@suse.de>
2443 * Makerules: Always use -MP together with -MD.
2444 (sed-remove-dotot): Substitute $(..) also at start of line.
2445 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2446 Generated defines with a single compiler call.
2447 Use $(sed-remove-dotdot).
2448 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2449 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2450 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2451 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2452 * sysdeps/unix/sysv/linux/mips/Makefile
2453 ($(objpfx)syscall-%.h): Likewise.
2455 2003-05-28 Roland McGrath <roland@redhat.com>
2457 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2459 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2461 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2463 2003-05-28 Roland McGrath <roland@redhat.com>
2465 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2466 rt_sigprocmask system call.
2467 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2468 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2470 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2472 * include/libc-symbols.h: Define hidden attribute for real also if
2473 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2475 * csu/Makefile: Add rules to build Scrt1.o.
2476 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2477 * sysdeps/x86_64/elf/start.S: Likewise.
2479 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2481 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2482 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2483 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2484 pa_short_int, pa_u_short_int and pa_float.
2486 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2488 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2489 _IO_str_init_static_internal.
2490 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2491 change size argument to _IO_size_t, don't limit sprintf to 64M.
2492 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2493 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2494 _IO_size_t, don't limit swprintf to 256M.
2495 (_IO_wstr_init_readonly): Remove.
2496 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2498 (_IO_wstr_init_readonly): Remove prototype.
2499 * libio/iovsprintf.c (_IO_vsprintf): Use
2500 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2501 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2502 * libio/memstream.c (open_memstream): Likewise.
2503 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2504 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2505 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2506 * stdio-common/tst-sprintf.c (main): Add new test.
2508 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2510 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2511 other implementation in respect of multiple uses of parameter with
2514 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2516 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2517 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2519 2003-05-22 Andreas Jaeger <aj@suse.de>
2521 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2523 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2524 * sysdeps/x86_64/strtok.S: Likewise.
2526 2003-05-20 Guido Guenther <agx@sigxcpu.org>
2528 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2529 to -60 and define SI_TKILL.
2531 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2533 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2534 (feexcp_mask_test): Likewise.
2536 2003-05-21 Ulrich Drepper <drepper@redhat.com>
2538 * locale/programs/locale.c (main): Fix typo in last patch.
2540 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2541 __init_array_start, __init_array_end, __fini_array_start, and
2542 __fini_array_end as hidden.
2544 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
2546 * locale/programs/locale.c (main): Report an error if setlocale()
2547 fails [PR libc/2254].
2549 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2551 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2553 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2556 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2557 LOADARGS_6): Don't error if syscall argument is a string literal.
2558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2559 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2560 LOADARGS_6): Likewise.
2562 2003-05-21 Andreas Jaeger <aj@suse.de>
2564 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2565 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2566 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2568 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2572 * configure.in: Test for asm cfi directives.
2574 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2576 2003-05-17 Andreas Jaeger <aj@suse.de>
2578 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2580 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2582 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2584 * rt/Makefile (tests): Add tst-clock_nanosleep.
2585 * rt/tst-clock_nanosleep.c: New file.
2586 * posix/Makefile (tests): Add tst-nanosleep.
2587 * posix/tst-nanosleep.c: New file.
2589 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2591 * include/features.h (__USE_XOPEN2K): Define also for
2592 _POSIX_C_SOURCE>=200112L.
2594 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2595 SI_TKILL code into SI_USER.
2596 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2598 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2600 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2602 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2603 Remove sym argument, always use refsym.
2604 (__process_machine_rela): Adjust callers.
2605 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2607 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2609 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2611 2003-05-15 Ulrich Drepper <drepper@redhat.com>
2613 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2614 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2615 print numeric values.
2617 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
2619 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2621 2003-05-14 Andreas Schwab <schwab@suse.de>
2623 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2625 2003-05-14 Jakub Jelinek <jakub@redhat.com>
2627 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2628 even if no DT_NEEDED is present.
2630 2003-05-13 David Mosberger <davidm@hpl.hp.com>
2632 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2633 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2634 __sigjmp_save) so we can't keep the saved unat value in a scratch
2635 register (r16). Use loc2 instead.
2637 2003-05-13 Ulrich Drepper <drepper@redhat.com>
2639 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2640 binaries it has to be relocatable.
2642 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2644 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
2646 * sysdeps/powerpc/bits/atomic.h
2647 (__arch_compare_and_exchange_bool_8_rel): Define.
2648 (__arch_compare_and_exchange_bool_16_rel): Define.
2649 (__ARCH_REL_INSTR): Define if not already defined.
2650 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2651 (__arch_atomic_decrement_if_positive_32):
2652 Add "memory" to clobber list.
2653 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2654 (__arch_compare_and_exchange_val_32_rel): Define.
2655 (__arch_atomic_exchange_32): Remove.
2656 (__arch_atomic_exchange_32_acq): Define.
2657 (__arch_atomic_exchange_32_rel): Define.
2658 (atomic_compare_and_exchange_val_rel): Define.
2659 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2660 (atomic_exchange_rel): Define.
2661 * sysdeps/powerpc/powerpc32/bits/atomic.h
2662 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2663 (__arch_compare_and_exchange_bool_32_rel): Define.
2664 (__arch_compare_and_exchange_bool_64_rel): Define.
2665 (__arch_compare_and_exchange_val_64_rel): Define.
2666 (__arch_atomic_exchange_64): Remove.
2667 (__arch_atomic_exchange_64_acq): Define.
2668 (__arch_atomic_exchange_64_rel): Define.
2669 * sysdeps/powerpc/powerpc64/bits/atomic.h
2670 (__arch_compare_and_exchange_bool_32_rel): Define.
2671 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2672 (__arch_compare_and_exchange_bool_64_rel): Define.
2673 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2674 (__arch_compare_and_exchange_val_64_rel): Define.
2675 (__arch_atomic_exchange_64): Remove.
2676 (__arch_atomic_exchange_64_acq): Define.
2677 (__arch_atomic_exchange_64_rel): Define.
2678 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2679 (__arch_atomic_decrement_if_positive_64):
2680 Add "memory" to clobber list.
2681 [!UP](__ARCH_REL_INSTR): Define as lwsync.
2683 2003-05-11 Andreas Schwab <schwab@suse.de>
2685 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2687 2003-05-11 Ulrich Drepper <drepper@redhat.com>
2689 * time/tst-strftime.c (do_test): Add tests for - flag.
2691 2003-05-11 Jim Meyering <jim@meyering.net>
2693 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2694 the space-padded-by-default conversion specifiers, %e, %k, %l.
2696 2003-05-11 Andreas Schwab <schwab@suse.de>
2698 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2700 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2702 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2703 already defined and when really needed.
2704 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2706 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2708 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2709 headers, add defines from kernel header, move it from here...
2710 * inet/netinet/igmp.h: ... to here.
2711 * inet/Makefile (headers): Add netinet/igmp.h.
2712 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2713 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2715 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2717 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2718 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2720 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2722 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
2723 (remove __THROW from possible cancellation points).
2725 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2727 * posix/sched.h (CPU_SETSIZE): Define.
2729 2003-05-09 Ulrich Drepper <drepper@redhat.com>
2731 * Makeconfig (gnulib): Remove -lgcc_eh again.
2733 * posix/sched.h: Change prototypes of sched_getaffinity and
2734 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
2735 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
2736 * sysdeps/generic/sched_setaffinity.c: Likewise.
2737 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
2738 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
2739 __CPU_CLR, and __CPU_ISSET.
2740 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2741 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
2742 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
2744 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
2745 (atomic_exchange_rel): New #define.
2746 * sysdeps/ia64/bits/atomic.h: Likewise.
2747 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
2749 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
2750 * sysdeps/powerpc/bits/atomic.h: Likewise.
2751 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
2752 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
2753 * sysdeps/x86_64/bits/atomic.h: Likewise.
2754 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
2756 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
2758 2003-05-08 Ulrich Drepper <drepper@redhat.com>
2760 * malloc/thread-m.h: Remove special handling of thread_atfork if
2761 HAVE_register_atfork_malloc is defined.
2763 2003-05-07 Andreas Jaeger <aj@suse.de>
2765 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
2768 2003-05-06 Ulrich Drepper <drepper@redhat.com>
2770 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
2771 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2772 * libio/libioP.h: Declare _IO_old_init.
2773 * libio/genops.c (_IO_no_init): Split in two. New function
2776 2003-05-05 Ulrich Drepper <drepper@redhat.com>
2778 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
2780 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
2782 * include/unistd.h: Declare __libc_enable_secure_decided.
2783 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
2784 and AT_EGID. If all found, set __libc_enable_secure and
2785 __libc_enable_secure_decided.
2787 * sysdeps/generic/libc-start.c [!SHARED]: Call
2788 __libc_check_standard_fds after __libc_init_first.
2790 2003-05-05 Roland McGrath <roland@redhat.com>
2792 * Makerules (common-before-compile): New variable.
2793 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
2794 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
2795 to after all setting of before-compile.
2797 2003-05-05 Jakub Jelinek <jakub@redhat.com>
2799 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2800 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
2801 * sysdeps/powerpc/powerpc32/bits/atomic.h
2802 (__arch_compare_and_exchange_val_64_acq): Likewise.
2803 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2804 (__arch_compare_and_exchange_val_8_acq,
2805 __arch_compare_and_exchange_val_16_acq,
2806 __arch_compare_and_exchange_val_64_acq): Likewise.
2807 * sysdeps/sparc/sparc64/bits/atomic.h
2808 (__arch_compare_and_exchange_val_8_acq,
2809 __arch_compare_and_exchange_val_16_acq): Likewise.
2810 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2811 __arch_compare_and_exchange_val_16_acq,
2812 __arch_compare_and_exchange_val_64_acq): Likewise.
2813 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2814 (__arch_compare_and_exchange_val_64_acq): Likewise.
2815 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
2817 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
2819 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2820 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
2821 Return long instead of int.
2822 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
2823 0xfffff001u with -4095UL.
2825 2003-05-05 Andreas Jaeger <aj@suse.de>
2827 * sysdeps/x86_64/fpu_control.h: New from i386.
2829 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
2830 Define if not defined.
2832 * sunrpc/Makefile (generated-dirs): New variable.
2833 * resolv/Makefile (generated): New variable.
2835 2003-05-04 Roland McGrath <roland@redhat.com>
2837 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
2838 Depend on $(before-compile).
2840 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
2841 pattern rule. The implicit rule could be ruled out when $(objpfx)
2842 didn't exist at the time of its consideration (ugh!).
2844 * Makerules (+make-deps): Fix target matching.
2845 Use $(sed-remove-dotdot).
2847 2003-05-03 Ulrich Drepper <drepper@redhat.com>
2849 * nscd/nscd.c (main): Parse config file right after parsing
2850 parameters. Then, if get_stats is true, call receive_print_stats.
2851 Drop parameter from nscd_init call.
2852 (get_stats): New variable.
2853 (parse_opt): Set get_stats, don't call receive_print_stats here.
2854 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
2856 * nscd/connections.c (stat_user, stat_uid): New variables.
2858 (nscd_init): Don't read configuration file here. Drop parameter.
2859 (handle_request): Cleanup handling of non-database lookup requests.
2860 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
2861 Get UID of the specified user. Use xstrdup instead of strdup.
2862 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
2864 * nscd/Makefile (nscd-modules): Add xstrdup.
2865 * nscd/nscd.conf: Document stat-user entry.
2867 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
2869 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
2872 2003-04-22 Roland McGrath <roland@redhat.com>
2874 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
2875 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2876 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
2877 * elf/dl-support.c: Update defn.
2878 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
2879 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2880 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
2881 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
2882 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
2883 set, set up a link_map for the preloaded, prelinked object.
2885 2003-05-03 Roland McGrath <roland@redhat.com>
2887 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
2888 * stdio-common/Makefile: ... not here.
2890 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
2891 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
2893 2003-05-02 Ulrich Drepper <drepper@redhat.com>
2895 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
2897 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
2899 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
2900 comparing ftab elements.
2901 (_dl_unmap): Fix typo in test.
2902 (_dl_make_fptr): Fix typos introduced in last change.
2904 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
2905 original patch. Use non-exported symbols. Mark translatable
2906 strings. Pretty printing.
2908 2003-05-02 Roland McGrath <roland@redhat.com>
2910 * Makerules (do-stamp): Do $(make-target-directory).
2912 2003-04-07 H.J. Lu <hjl@gnu.org>
2914 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
2916 2003-04-03 H.J. Lu <hjl@gnu.org>
2918 * sysdeps/ia64/dl-fptr.c: Moved to ...
2919 * sysdeps/generic/dl-fptr.c: Here.
2921 * sysdeps/generic/dl-fptr.h: New.
2922 * sysdeps/ia64/dl-fptr.h: New.
2924 * sysdeps/ia64/dl-symaddr.c: Moved to ...
2925 * sysdeps/generic/dl-symaddr.c: here.
2927 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
2928 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
2929 (ia64_fdesc): Likewise.
2930 (ia64_fdesc_table): Likewise.
2931 (__ia64_make_fptr): Likewise.
2932 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
2933 with _dl_boot_fptr_table.
2934 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
2936 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
2938 2003-05-01 Roland McGrath <roland@redhat.com>
2940 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
2941 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2943 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2944 Use $(make-target-directory).
2945 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2947 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
2948 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
2949 (compile-command.s, compile-command.c): Likewise.
2950 ($(objpfx)%.d): All such pattern rules removed.
2951 ($(+sysdir_pfx)sysd-rules): Don't generate them.
2952 ($(common-objpfx)dummy.d): Target removed.
2953 (make-dummy-dep): Variable removed.
2954 (generate-md5): Likewise.
2955 (%.d: %.dt): New pattern rule.
2956 (+depfiles): Use $(wildcard) function to get just existing *.d files
2957 and .d files for existing *.dt files.
2958 (common-clean): Remove all *.d and *.dt files.
2959 (before-compile): Add $(objpfx). when it doesn't exist,
2960 regardless of $(no_deps).
2961 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
2962 (rtld-depfiles): Use .os.d instead of .d names.
2963 Include existing *.d files and .d files for existing *.dt files.
2965 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
2966 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
2968 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
2969 Do s-*.d includes only if we have some syscall routines in this subdir.
2971 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
2972 @nobits. The former is accepted by gas on any ELF platform.
2974 2003-05-01 Ulrich Drepper <drepper@redhat.com>
2976 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
2978 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
2980 2003-04-29 Andreas Schwab <schwab@suse.de>
2982 * string/test-strcat.c (do_one_test): Fix attribute name.
2984 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
2986 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
2987 uc_flags long for all ABIs.
2989 2003-04-30 Andreas Jaeger <aj@suse.de>
2991 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
2992 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
2993 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
2994 Add bi-arch support.
2996 2003-04-30 Ulrich Drepper <drepper@redhat.com>
2998 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
2999 (__posix_memalign): Use __memalign_internal instead of memalign.
3001 2003-04-29 Roland McGrath <roland@redhat.com>
3003 * configure.in: Search for AUTOCONF unconditionally.
3004 Just don't complain about missing it under --without-cvs.
3006 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3007 give hidden for [SHARED] and weak for [! SHARED].
3008 (symbol_set_declare): Use that. Never need weak_extern these days.
3009 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3010 Depend on $(..)Makerules.
3012 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3014 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3015 variants of socket, bind, recvmsg, and sendto.
3017 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3019 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3020 * signal/sigaddset.c: Add libc_hidden_def.
3021 * signal/sigdelset.c: Likewise.
3023 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3025 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3026 to the end of the file.
3028 * configure.in: Change __oline__ to $LINENO.
3029 (HAVE_BUILTIN_REDIRECTION): New check.
3030 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3031 * include/libc-symbols.h (libc_hidden_builtin_proto,
3032 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3033 libc_hidden_builtin_ver): Define.
3034 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3035 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3036 strspn, strstr): Add libc_hidden_builtin_proto.
3037 * intl/plural.y: Include string.h.
3038 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3039 libc_hidden_builtin_def.
3040 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3041 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3042 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3043 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3044 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3045 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3046 * sysdeps/alpha/memchr.S (memchr): Likewise.
3047 * sysdeps/alpha/memset.S (memset): Likewise.
3048 * sysdeps/alpha/strcat.S (strcat): Likewise.
3049 * sysdeps/alpha/strchr.S (strchr): Likewise.
3050 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3051 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3052 * sysdeps/alpha/strlen.S (strlen): Likewise.
3053 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3054 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3055 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3056 * sysdeps/arm/memset.S (memset): Likewise.
3057 * sysdeps/arm/strlen.S (strlen): Likewise.
3058 * sysdeps/generic/memchr.c (memchr): Likewise.
3059 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3060 * sysdeps/generic/memmove.c (memmove): Likewise.
3061 * sysdeps/generic/memset.c (memset): Likewise.
3062 * sysdeps/generic/strcat.c (strcat): Likewise.
3063 * sysdeps/generic/strchr.c (strchr): Likewise.
3064 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3065 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3066 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3067 * sysdeps/generic/strlen.c (strlen): Likewise.
3068 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3069 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3070 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3071 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3072 * sysdeps/generic/strspn.c (strspn): Likewise.
3073 * sysdeps/generic/strstr.c (strstr): Likewise.
3074 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3075 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3076 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3077 * sysdeps/i386/i586/memset.S (memset): Likewise.
3078 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3079 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3080 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3081 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3082 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3083 * sysdeps/i386/i686/memset.S (memset): Likewise.
3084 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3085 * sysdeps/i386/memchr.S (memchr): Likewise.
3086 * sysdeps/i386/memset.c (memset): Likewise.
3087 * sysdeps/i386/strchr.S (strchr): Likewise.
3088 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3089 * sysdeps/i386/strlen.c (strlen): Likewise.
3090 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3091 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3092 * sysdeps/i386/strspn.S (strspn): Likewise.
3093 * sysdeps/ia64/memchr.S (memchr): Likewise.
3094 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3095 * sysdeps/ia64/memmove.S (memmove): Likewise.
3096 * sysdeps/ia64/memset.S (memset): Likewise.
3097 * sysdeps/ia64/strcat.S (strcat): Likewise.
3098 * sysdeps/ia64/strchr.S (strchr): Likewise.
3099 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3100 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3101 * sysdeps/ia64/strlen.S (strlen): Likewise.
3102 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3103 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3104 * sysdeps/m68k/memchr.S (memchr): Likewise.
3105 * sysdeps/m68k/strchr.S (strchr): Likewise.
3106 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3107 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3108 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3109 * sysdeps/mips/memset.S (memset): Likewise.
3110 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3111 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3112 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3113 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3114 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3115 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3116 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3117 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3118 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3119 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3120 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3121 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3122 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3123 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3124 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3125 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3126 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3127 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3128 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3129 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3130 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3131 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3132 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3133 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3134 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3135 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3136 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3137 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3138 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3139 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3140 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3141 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3142 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3143 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3144 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3145 * sysdeps/sh/memset.S (memset): Likewise.
3146 * sysdeps/sh/strlen.S (strlen): Likewise.
3147 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3148 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3149 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3150 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3151 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3152 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3153 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3154 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3155 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3156 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3157 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3158 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3159 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3160 * sysdeps/x86_64/memset.S (memset): Likewise.
3161 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3162 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3163 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3164 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3165 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3166 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3167 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3168 * string/string-inlines.c: Move...
3169 * sysdeps/generic/string-inlines.c: ...here.
3170 (__memcpy_g, __strchr_g): Remove.
3171 (__NO_INLINE__): Define before including <string.h>,
3172 undefine after. Include bits/string.h and bits/string2.h.
3173 * sysdeps/i386/i486/string-inlines.c: New file.
3174 * sysdeps/i386/string-inlines.c: New file.
3175 * sysdeps/i386/i486/Versions: Remove.
3176 All GLIBC_2.1.1 symbols moved...
3177 * sysdeps/i386/Versions (libc): ...here.
3179 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3181 * sysdeps/i386/fpu/Makefile: New file.
3182 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3183 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3184 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3185 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3188 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3190 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3191 * nscd/nscd_getpw_r.c: Likewise.
3192 * nscd/nscd_gethst_r.c: Likewise.
3194 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3196 * nscd/pwdcache.c: Initialize .version element in result.
3197 * nscd/grpcache.c: Likewise.
3198 * nscd/pwdcache.c: Likewise.
3200 2003-04-27 Andreas Schwab <schwab@suse.de>
3202 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3205 2003-04-27 Andreas Schwab <schwab@suse.de>
3207 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3209 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3211 * nscd/connections.c (client_queued): New variable.
3212 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3213 threads. Keep track of the number of delays caused because of busy
3215 * nscd/nscd.h: Declare client_queued.
3216 * nscd/nscd_stat.c: Transmit and print client_queued information.
3218 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3220 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3221 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3223 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3225 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3226 tracking of freed memory in static TLS block.
3227 * elf/Makefile: Add rules to build and run tst-tls13.
3228 * elf/tst-tls13.c: New file.
3229 * elf/tst-tlsmod13.c: New file.
3230 * elf/tst-tlsmod13a.c: New file.
3232 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3234 * elf/dl-reloc.c: Pretty printing.
3236 2003-04-26 Roland McGrath <roland@redhat.com>
3238 * Makerules ($(common-objpfx)shlib.lds): New target.
3239 (common-generated): Add it.
3240 (build-shlib, build-module): Use that instead of generating every time.
3241 ($(common-objpfx)libc.so): Depend on it.
3242 (lib%.so rule): Likewise.
3243 (build-module-helper-objlist): Remove %.lds.
3244 (LDSEDCMD-c.so): Variable removed.
3245 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3246 Depend on $(common-objpfx)shlib.lds.
3247 * dlfcn/Makefile ($(test-modules)): Likewise.
3249 2003-04-26 Roland McGrath <roland@frob.com>
3251 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3253 2003-04-26 Andreas Schwab <schwab@suse.de>
3255 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3257 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3259 * nscd/cache.c (cache_search): Keep track of how many chain links
3260 we searched and update table statistics.
3261 (cache_add): Keep track of how many values are in the table.
3262 (prune_cache): Likewise. Keep track of locking success.
3263 Print messages about removed entries in separate pass.
3264 * nscd/connections.c (handle_request): Don't print debug message here.
3265 The caller will do it. Keep track of locking success.
3266 (nscd_run): Print debug message. Also print PID of the client process.
3267 * nscd/nscd.c (start_time): New variable.
3268 (main): Remember start time.
3269 * nscd/nscd.h: Declare start_time.
3270 (struct database): Add more members for new statistics.
3271 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3274 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3276 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3278 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3279 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3280 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3282 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3283 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3284 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3285 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3288 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3290 * nss/getent.c: Implement alternative host database lookup via
3293 * include/ifaddrs.h: New file.
3294 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3296 * resolv/netdb.h: ...here.
3297 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3298 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3299 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3302 2003-04-24 Roland McGrath <roland@redhat.com>
3304 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3306 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3308 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3309 (_dl_allocate_static_tls): ... this function. No longer static.
3310 (CHECK_STATIC_TLS): Adjust.
3311 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3312 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3313 Add SYM_MAP argument.
3314 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3315 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3316 TLS relocs here. #ifdef out relocs which never appear in
3317 .gnu.conflict section from dl-conflict.c processing.
3318 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3319 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3321 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3322 out relocs which never appear in .gnu.conflict section from
3323 dl-conflict.c processing.
3324 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3325 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3326 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3327 Use r_type in RESOLVE macro.
3329 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3331 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3332 NULL. Remove code made redundant by this assumption.
3333 (__yp_unbind): Add call to free. Adjust all callers.
3335 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3338 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3339 user buffer if more groups are found than fit into it.
3341 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3344 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3346 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3347 not rc == errno. Use extend_alloca.
3349 * elf/tst-tls12.c (main): Fix declaration.
3350 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3351 * elf/tst-tlsmod7.c (dummy): Likewise.
3352 * elf/tst-tlsmod8.c (dummy): Likewise.
3353 * elf/tst-tlsmod9.c (dummy): Likewise.
3355 2003-04-22 Roland McGrath <roland@redhat.com>
3357 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3358 (open_not_cancel): Make last argument non-optional.
3359 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3360 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3361 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3363 * include/tls.h: Protect against multiple inclusion.
3365 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3367 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3368 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3369 open_socket. Not static anymore.
3370 (nscd_gethst_r): Use __nscd_open_socket.
3371 * nscd/nscd_getgr_r.c (open_socket): Removed.
3372 (nscd_getgr_r): Use __nscd_open_socket.
3373 * nscd/nscd_getpw_r.c (open_socket): Removed.
3374 (nscd_getpw_r): Use __nscd_open_socket.
3376 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3377 * nscd/connections.c (handle_request): Add cast to avoid warning.
3379 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3381 * signal/sigfillset.c: Moved to...
3382 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3383 do not set the corresponding bit.
3385 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3387 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3388 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3389 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3390 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3391 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3393 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3395 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3396 first syscall parameter to const char*.
3398 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3400 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3402 * configure.in: Add AC_PROG_CXX.
3403 * config.make.in (CXX): Define.
3405 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3406 __len to size_t to avoid warnings.
3408 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3410 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3412 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3414 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3416 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3417 UNREGISTER_ATFORK if d == NULL.
3419 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3420 * dirent/dirent.h: Likewise.
3421 * dlfcn/dlfcn.h: Likewise.
3422 * grp/grp.h: Likewise.
3423 * iconv/iconv.h: Likewise.
3424 * io/fcntl.h: Likewise.
3425 * io/ftw.h: Likewise.
3426 * libio/stdio.h: Likewise.
3427 * misc/sys/mman.h: Likewise.
3428 * misc/sys/select.h: Likewise.
3429 * misc/sys/syslog.h: Likewise.
3430 * misc/sys/uio.h: Likewise.
3431 * posix/spawn.h: Likewise.
3432 * posix/unistd.h: Likewise.
3433 * posix/sys/wait.h: Likewise.
3434 * pwd/pwd.h: Likewise.
3435 * resolv/netdb.h: Likewise.
3436 * rt/aio.h: Likewise.
3437 * shadow/shadow.h: Likewise.
3438 * signal/signal.h: Likewise.
3439 * socket/sys/socket.h: Likewise.
3440 * stdlib/stdlib.h: Likewise.
3441 * streams/stropts.h: Likewise.
3442 * string/string.h: Likewise.
3443 * sysdeps/gnu/utmpx.h: Likewise.
3444 * sysvipc/sys/msg.h: Likewise.
3445 * termios/termios.h: Likewise.
3446 * time/time.h: Likewise.
3447 * wcsmbs/wchar.h: Likewise.
3448 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3450 * misc/daemon.c: Likewise.
3451 * sysdeps/generic/backtracesymsfd.c: Likewise.
3452 * sysdeps/generic/check_fds.c: Likewise.
3453 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3454 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3455 * sysdeps/generic/not-cancel.h: New file.
3456 * csu/Makefile (distribute): Add not-cancel.h.
3457 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3458 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3459 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3460 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3462 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3463 errno and unlink first.
3465 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3467 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3469 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3470 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3472 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3474 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3476 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3477 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3480 * signal/Makefile (tests): Add tst-sigsimple.
3481 * signal/tst-sigsimple.c: New file.
3483 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3485 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3487 (tests): Add tst-tls1[0-2].
3488 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3489 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3490 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3491 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3492 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3493 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3494 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3495 * elf/tst-tls10.c: New test.
3496 * elf/tst-tls11.c: New test.
3497 * elf/tst-tls12.c: New test.
3498 * elf/tst-tls10.h: New file.
3499 * elf/tst-tlsmod7.c: New file.
3500 * elf/tst-tlsmod8.c: New file.
3501 * elf/tst-tlsmod9.c: New file.
3502 * elf/tst-tlsmod10.c: New file.
3503 * elf/tst-tlsmod11.c: New file.
3504 * elf/tst-tlsmod12.c: New file.
3506 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3508 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3509 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3510 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3512 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3514 * posix/regex.h: Include <sys/types.h>.
3516 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3517 The signal number must be checked.
3518 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3519 The signal number must be checked [PR libc/5004].
3521 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3522 don't do anything fancy.
3524 * sysdeps/generic/bits/libc-lock.h: Define
3525 __rtld_lock_define_initialized_recursive.
3527 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3528 contacting nscd if NOT_USENSCD_NAME > 0.
3529 * nss/nsswitch.c (__nss_disable_nscd): New function.
3530 * nss/nsswitch.h: Declare it.
3531 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3532 * nscd/nscd.c (main): Call __nss_disable_nscd.
3534 2003-04-16 Ulrich Drepper <drepper@redhat.com>
3536 * stdio-common/perror.c (perror): We don't need to set the offset
3537 to _IO_pos_bad, this is how streams are initialized.
3539 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3540 (time_output): If necessary, allocate new buffer for .name string if
3541 padding is required.
3543 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3544 before copying. This might leave holes in the list. Adjust
3545 pointers if necessary.
3546 (netlink_receive): Allocate only one block.
3547 (free_netlink_handle): Adjust appropriately.
3548 (getifaddrs): Lots of cleanups.
3550 * string/test-strncpy.c (do_one_test): Mark start and stop as
3552 * string/test-memchr.c: Likewise.
3553 * string/test-memcmp.c: Likewise.
3554 * string/test-memcpy.c: Likewise.
3555 * string/test-memmove.c: Likewise.
3556 * string/test-memset.c: Likewise.
3557 * string/test-strcat.c: Likewise.
3558 * string/test-strchr.c: Likewise.
3559 * string/test-strcmp.c: Likewise.
3560 * string/test-strcpy.c: Likewise.
3561 * string/test-strlen.c: Likewise.
3562 * string/test-strncmp.c: Likewise.
3563 * string/test-strpbrk.c: Likewise.
3564 * string/test-strrchr.c: Likewise.
3565 * string/test-strspn.c: Likewise.
3567 2003-04-15 Roland McGrath <roland@redhat.com>
3569 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3571 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3572 INTUSE(__register_frame_info_bases).
3574 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3576 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3577 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3578 AT_SYSINFO_EH_FRAME. Adjust string width.
3579 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3580 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3581 Add _dl_sysinfo_eh_frame field.
3582 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3583 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3585 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3586 if _dl_sysinfo_eh_frame is non-NULL.
3588 * Makeconfig (gnulib): Add -lgcc_eh.
3590 * config.h.in: Define HAVE_FORCED_UNWIND.
3592 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3594 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3595 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3597 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3599 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3600 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3601 against local symbol in conflict processing.
3603 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3605 * sysdeps/powerpc/bits/atomic.h
3606 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3607 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3609 (__arch_compare_and_exchange_val_32_acq): Define.
3610 (atomic_compare_and_exchange_val_acq): Define.
3612 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3614 * include/atomic.h: Pretty printing.
3616 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3618 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3620 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3622 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3623 * sysdeps/x86_64/bits/atomic.h: Likewise.
3625 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3627 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3628 POPARGS_1 to emit labels for the mov instructions.
3630 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3632 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3634 2003-04-14 Roland McGrath <roland@redhat.com>
3636 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3639 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3641 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3643 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3644 position. Reported by jreiser@BitWagon.com.
3646 2003-04-13 Ulrich Drepper <drepper@redhat.com>
3648 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3649 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3650 * sysdeps/generic/unwind-dw2.c: Likewise.
3651 * sysdeps/generic/unwind-pe.h: Likewise.
3653 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
3655 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3656 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3657 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3658 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3659 (mcontext_t): Make it match the 32-bit mips kernel in o32.
3660 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3661 the mips and mips64 headers.
3662 (struct user): Port to n32/n64.
3664 2003-04-12 Ulrich Drepper <drepper@redhat.com>
3666 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3669 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3670 __ASSUME_VSYSCALL is defined don't add restorer.
3671 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3672 __ASSUME_VSYSCALL for 2.5.53.
3674 2003-04-11 Ulrich Drepper <drepper@redhat.com>
3676 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3677 Remove HAVE_CANCELBUF code. Replace with code using the new
3678 initializers for unwind-based cleanup handling.
3679 * sysdeps/generic/unwind.h: Update from latest gcc version.
3680 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3681 places to allow unwind data generation.
3682 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3683 * sysdeps/x86_64/bits/setjmp.h: Likewise.
3684 * sysdeps/sh/bits/setjmp.h: Likewise.
3685 * sysdeps/powerpc/bits/setjmp.h: Likewise.
3686 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3687 * sysdeps/alpha/bits/setjmp.h: Likewise.
3689 2003-04-11 Roland McGrath <roland@redhat.com>
3691 * csu/tst-empty.c: New file.
3692 * csu/Makefile (tests, tests-static): Add it.
3694 2003-04-11 Jakub Jelinek <jakub@redhat.com>
3696 * string/test-strcmp.c (do_random_tests): Test whether return value
3697 has been promoted to wordsize if the ABI requires caller to do so.
3698 * string/test-strncmp.c (do_random_tests): Likewise.
3699 * string/test-memcmp.c (do_random_tests): Likewise.
3701 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3705 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3706 is not defined, but the prctl constants are.
3708 * string/tester.c (test_strcmp): Fix a typo.
3710 2003-04-09 Ulrich Drepper <drepper@redhat.com>
3712 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3713 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3715 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3717 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3719 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3721 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
3723 * sysdeps/mips/mips64/memset.S: Likewise.
3724 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
3725 Use t0 instead of t4 as temporary.
3727 2003-04-07 Ulrich Drepper <drepper@redhat.com>
3729 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
3730 feof_unlocked instead of feof.
3731 (add_dir): Ignore trailing whitespace.
3733 2003-04-07 Jakub Jelinek <jakub@redhat.com>
3735 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
3736 sum of SIZE1 and SIZE2 arguments.
3738 2003-04-06 Ulrich Drepper <drepper@redhat.com>
3740 * iconv/iconv_prog.c (process_block): Don't print message about
3741 invalid input if the -c option is used.
3742 (main): Correctly append IGNORE string for -c option.
3744 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3746 * sysdeps/sh/bits/atomic.h: Moved to ...
3747 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
3748 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
3750 (atomic_bit_set, atomic_bit_test_set): Likewise.
3751 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
3753 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3755 2003-04-06 Roland McGrath <roland@redhat.com>
3757 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
3758 restoration as done for setcontext yesterday.
3760 2003-04-06 Jakub Jelinek <jakub@redhat.com>
3762 * elf/rtld.c: Revert 2003-03-14 change.
3763 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
3764 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
3766 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3768 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
3770 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3771 Always initialize *signgamp before returning an error.
3773 2003-04-05 Roland McGrath <roland@redhat.com>
3775 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
3776 below the stack pointer even if switching to the same context we are
3779 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3781 * catgets/gencat.c (read_input_file): Make sure that \n is not
3782 alone on the line before testing for continuation.
3784 * math/test-tgmath.c (compile_test): Initialize c.
3786 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
3788 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
3789 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
3790 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
3792 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
3793 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
3794 structure on n32 as well.
3795 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
3796 data types on n32 and n64.
3798 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3800 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
3803 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
3804 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
3805 instead of __register_atfork.
3807 2003-04-05 Jakub Jelinek <jakub@redhat.com>
3809 * stdio-common/reg-printf.c (__register_printf_function): Calloc
3810 instead of malloc __printf_arginfo_table and __printf_function_table.
3811 Reported by John Reiser <jreiser@BitWagon.com>.
3813 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
3815 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
3816 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
3818 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
3821 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
3823 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
3826 2003-04-03 Roland McGrath <roland@redhat.com>
3828 * configure.in: Fix up use of compilation flags to match the build:
3829 For .s files, $ASFLAGS;
3830 For .S files, $CPPFLAGS $ASFLAGS;
3831 For .c files, $CFLAGS $CPPFLAGS;
3832 when linking, add $LDFLAGS.
3833 * configure: Regenerated.
3835 2003-04-03 Jakub Jelinek <jakub@redhat.com>
3837 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
3838 for atomic_compare_and_exchange_bool_acq failure.
3840 2003-04-03 Ulrich Drepper <drepper@redhat.com>
3842 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
3843 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
3844 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
3845 Remove declaration of pthread_atfork.
3847 2003-04-02 Ulrich Drepper <drepper@redhat.com>
3849 * locale/iso-639.def: Add many more languages from the current ISO 639.
3851 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
3852 * sysdeps/generic/semtimedop.c: New file.
3853 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
3854 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
3855 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3856 * sysvipc/Makefile (routines): Add semtimedop.
3857 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
3858 * sysvipc/sys/sem.h: Declare semtimedop.
3860 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
3862 * configure.in: Check for __register_frame_info in both
3864 * configure: Regenerated.
3866 2003-04-01 Roland McGrath <roland@redhat.com>
3868 * scripts/abilist.awk: Allow dots in soname suffix.
3870 * scripts/abilist.awk (emit): Fix bailout condition.
3872 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3874 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
3877 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
3878 register as input to asm.
3880 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3882 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
3884 2003-04-01 Andreas Jaeger <aj@suse.de>
3886 * configure.in: Output as/ld as name if version is too old.
3888 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
3890 * configure.in: Don't require an installed C library in the test
3891 for ".set" assembler support.
3893 2003-03-31 Roland McGrath <roland@redhat.com>
3895 * signal/tst-sigset.c: New file.
3896 * signal/Makefile (tests): Add it.
3898 2003-03-31 Ulrich Drepper <drepper@redhat.com>
3900 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
3901 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
3902 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
3903 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
3904 (__SIGRTMAX): Adjust accordingly.
3905 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
3906 second compatibility symbol set.
3907 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
3909 2003-03-31 Andreas Schwab <schwab@suse.de>
3911 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
3913 (atomic_decrement_and_test): Fix test.
3915 2003-03-31 Jakub Jelinek <jakub@redhat.com>
3917 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
3918 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
3919 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
3920 * sysdeps/sparc/sparc32/atomicity.h: Removed.
3921 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
3922 * sysdeps/sparc/sparc64/atomicity.h: Removed.
3924 2003-03-30 Roland McGrath <roland@redhat.com>
3926 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
3928 * intl/po2test.sed: Anchor substitution regexps to fix last change.
3930 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
3932 * intl/po2test.sed: Unify the transformations for msgid and msgstr
3933 and remove a useless s/// command.
3935 2003-03-27 David Mosberger <davidm@hpl.hp.com>
3937 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
3938 directive into empty .prologue region to ensure that call-chain
3939 is terminated even for the first instruction.
3941 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
3942 to terminate call-chain right from the get-go.
3944 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
3945 stop bit between compare & branch.
3947 2003-03-29 Ulrich Drepper <drepper@redhat.com>
3949 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
3950 point correctly [PR libc/4993].
3952 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
3953 netlink_open calls if netlink is known to not be available.
3955 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
3957 * configure.in: Add mips64* support.
3958 * sysdeps/mips/bits/endian.h: Make it bi-endian.
3959 * sysdeps/mips/mipsel/bits/endian.h: Removed.
3960 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
3961 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
3962 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
3963 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
3964 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
3965 * sysdeps/mips/Implies: Moved wordsize-32 to...
3966 * sysdeps/mips/mips32/Implies: New file.
3967 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
3969 (ret, PSEUDO_END): Moved past END.
3970 (PSEUDO): Moved to...
3971 * sysdeps/unix/mips/mips32/sysdep.h: New file.
3972 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
3973 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
3974 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
3975 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
3976 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
3978 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
3981 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
3983 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
3984 * inet/test-ifaddrs.c: Allow AF_PACKET.
3985 * sysdeps/unix/sysv/linux/kernel-features.h: Add
3986 __ASSUME_NETLINK_SUPPORT.
3988 2003-03-28 Ulrich Drepper <drepper@redhat.com>
3990 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
3992 2003-03-26 H.J. Lu <hjl@gnu.org>
3994 * elf/vismod.h (getvarlocal1): Return const char **.
3995 (getvarinmod1): Likewise.
3996 (getvaritcpt1): Likewise.
3997 (getvarlocal2): Likewise.
3998 (getvarinmod2): Likewise.
3999 (getvaritcpt2): Likewise.
4000 (getvaritcpt3): Likewise.
4001 * elf/vismain.c (do_test): Adjusted.
4002 * elf/vismod1.c (getvarlocal1): Return address.
4003 (getvarinmod1): Likewise.
4004 (getvaritcpt1): Likewise.
4005 * elf/vismod2.c (getvarlocal2): Likewise.
4006 (getvarinmod2): Likewise.
4007 (getvaritcpt2): Likewise.
4008 * elf/vismod3.c (getvaritcpt3): Likewise.
4010 2003-03-28 Roland McGrath <roland@redhat.com>
4012 * elf/vismain.c (do_test): Print both addresses when they don't match.
4014 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4015 libname_regexp when parsing names, then produce output only
4016 for those matching the given regexps. In combine mode, save all
4017 stanzas for a final sorting by stanza header at the end.
4018 Emit a blank line between stanzas.
4020 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4021 emit a single output stream with lib name in stanza header lines.
4023 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4025 2003-03-27 Roland McGrath <roland@redhat.com>
4027 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4028 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4030 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4032 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4033 Return old value. Make asm output reg constraint earlyclobber.
4035 (__arch_compare_and_exchange_8_acq): ... this.
4036 (__arch_compare_and_exchange_val_16_acq):
4037 Return old value. Make asm output reg constraint earlyclobber.
4039 (__arch_compare_and_exchange_16_acq): ... this.
4040 (__arch_compare_and_exchange_val_32_acq):
4041 Return old value. Make asm output reg constraint earlyclobber.
4043 (__arch_compare_and_exchange_32_acq): ... this.
4044 (__arch_compare_and_exchange_val_64_acq):
4046 (__arch_compare_and_exchange_64_acq): ... this.
4047 (atomic_exchange_and_add): Use local variables and
4048 __arch_compare_and_exchange_val_64_acq.
4049 (atomic_add): Likewise.
4050 (atomic_add_negative, atomic_add_zero): Use local variables.
4052 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4054 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4056 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4058 * Makefile: Remove libmd5crypt goal.
4060 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4062 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4063 special handling of relocations against local symbols.
4065 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4067 * sysdeps/powerpc/bits/atomic.h
4068 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4069 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4070 Define PPC64 specific version.
4071 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4072 Change (mem) constraint to "b".
4073 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4074 Replace addi with add. Change (value) contraint to "r".
4075 Change (mem) constraint to "b".
4076 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4077 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4078 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4079 (__arch_atomic_decrement_if_positive_32): New macro.
4080 (atomic_decrement_if_positive): Use __arch* macros.
4082 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4084 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4086 2003-03-27 Roland McGrath <roland@redhat.com>
4088 * scripts/rpm2dynsym.sh: New file.
4089 * Makefile (distribute): Add it.
4091 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4093 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4094 ar.unat before returning. Add missing .mem.offset directives
4095 to ensure file gets assembled without warnings.
4096 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4098 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4100 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4101 Return -1 instead of 0 if clock_getres failed.
4103 2003-03-27 Roland McGrath <roland@redhat.com>
4105 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4106 header lines and write out foo.symlist files for each foo.so.NN listed.
4108 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4109 This symbol is exported, and we don't want to hide it.
4110 Add libc_hidden_proto instead.
4111 (_IO_file_jumps): Add libc_hidden_proto.
4112 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4114 * libio/fileops.c (_IO_file_jumps): Likewise.
4115 * libio/stdfiles.c: Don't use INTUSE on them.
4116 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4117 * libio/iofopen.c (__fopen_internal): Likewise.
4118 * libio/freopen.c (freopen): Likewise.
4119 * libio/freopen64.c (freopen64): Likewise.
4120 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4122 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4123 Ignore exit status from diff.
4124 * configure.in (enable_check_abi): Document possible value "warn".
4125 Change default to no for now.
4126 * configure: Regenerated.
4128 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4129 macro calls and a #include <stub-tag.h> at the end.
4130 * Makerules ($(objpfx)stubs): Tweak sed commands.
4132 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4133 caller column for *xattr syscalls, since they are in sysdeps/generic.
4135 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4136 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4138 2003-03-26 Roland McGrath <roland@redhat.com>
4140 * Makerules (check-abi-config): Use /thread instead of /tls when
4141 use-thread and not just use-tls is set.
4143 * Makerules (update-abi): Put quotes around $(update-abi-config).
4145 * elf/Makefile (check-abi): Depend on check-abi-ld.
4146 (update-abi): Depend on update-abi-ld.
4148 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4150 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4151 do not check for errors (unless testing for 32bit variant).
4152 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4154 2003-03-27 Philip Blundell <philb@gnu.org>
4156 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4157 unconditional mov. Remove nop.
4159 * sysdeps/unix/sysv/linux/kernel-features.h
4160 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4161 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4162 when __ASSUME_VFORK_SYSCALL is defined.
4163 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4164 __ASSUME_MMAP2_SYSCALL.
4165 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4166 __ASSUME_REALTIME_SIGNALS.
4168 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4170 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4171 only if DL_NO_COPY_RELOCS is not defined.
4172 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4174 2003-03-26 Roland McGrath <roland@redhat.com>
4176 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4177 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4178 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4179 (sysdep_routines): Add stub-syscalls.
4180 ($(objpfx)stub-syscalls.c): New target.
4181 (generated): Add stub-syscalls.c.
4183 * tls.make.c: Also define use-tls according to USE_TLS macro.
4185 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4187 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4188 no-op padding element.
4189 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4190 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4191 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4192 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4194 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4196 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4197 condition check for the return value of getgroups32.
4199 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4201 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4203 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4204 PSEUDO_END_NOERRNO): Define.
4205 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4206 Define to PSEUDO_END.
4208 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4210 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4212 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4214 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4215 * iconvdata/bug-iconv4.c: New file.
4216 * iconvdata/Makefile (tests): Add bug-iconv4.
4218 2003-03-25 H.J. Lu <hjl@gnu.org>
4220 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4222 (_dl_lookup_versioned_symbol): Likewise.
4224 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4226 * csu/tst-atomic.c (do_test): Add some new
4227 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4228 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4229 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4230 Prefix local variable so that it doesn't clash with the one
4231 in atomic_exchange_and_add.
4232 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4234 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4235 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4236 value into register.
4237 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4238 Cast newval to long.
4239 * sysdeps/x86_64/bits/atomic.h
4240 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4242 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4243 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4244 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4245 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4247 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4249 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4250 bit from backtrace addresses.
4252 2003-03-21 Andreas Schwab <schwab@suse.de>
4254 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4257 2003-03-25 Roland McGrath <roland@redhat.com>
4259 * config.make.in (enable-check-abi): New variable from configure.
4260 * configure.in (enable_check_abi): New substituted variable,
4261 controlled by --{enable,disable}-check-abi (default yes).
4262 * configure: Regenerated.
4263 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4264 on check-abi dependency.
4266 2003-03-26 Andreas Schwab <schwab@suse.de>
4268 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4269 * include/atomic.h: Likewise.
4271 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4273 2003-03-25 Roland McGrath <roland@redhat.com>
4275 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4276 (__arch_atomic_exchange_64): New macro.
4277 (atomic_exchange): Use them.
4278 (__arch_atomic_exchange_and_add_32): New macro.
4279 (__arch_atomic_exchange_and_add_64): New macro.
4280 (atomic_exchange_and_add): Use them.
4281 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4283 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4285 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4287 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4289 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4290 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4291 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4292 to decide whether to add padding.
4293 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4294 to decide whether to add padding.
4295 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4296 old_kernel_sigaction): Likewise.
4298 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4300 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4301 atomic_add_zero were supposed to do.
4302 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4305 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4306 This matches the new timer implementation.
4307 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4309 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4311 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4312 timer info for what the kernel provides these days.
4313 (struct sigevent): Add _tid field.
4314 Define SIGEV_THREAD_ID.
4315 Remove struct __pthread_attr_s forward declaration.
4316 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4317 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4318 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4319 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4321 * Versions.def (librt): Add GLIBC_2.3.3.
4323 * abilist/libpthread.abilist: Update for nptl.
4325 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4327 * inet/netinet/in.h: Add IPPROTO_SCTP.
4329 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4331 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4333 2003-03-24 Philip Blundell <philb@gnu.org>
4335 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4336 Remove a1 from clobber list.
4338 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4340 * timezone/antarctica: Update from tzdata2003a.
4341 * timezone/asia: Likewise.
4342 * timezone/australasia: Likewise.
4343 * timezone/europe: Likewise.
4344 * timezone/iso3166.tab: Likewise.
4345 * timezone/northamerica: Likewise.
4346 * timezone/southamerica: Likewise.
4347 * timezone/zone.tab: Likewise.
4349 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4351 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4353 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4355 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4356 unwanted expansion by definining to ret. Patch by Ian Wienand.
4358 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4359 the parameter description to denote no error checking. Generate
4360 appropriate pseudo asm code.
4361 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4362 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4363 getpgrp, and getppid with 'E'.
4364 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4365 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4366 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4367 * sysdeps/unix/sysdep.h: Likewise.
4368 * sysdeps/unix/alpha/sysdep.h: Likewise.
4369 * sysdeps/unix/sparc/sysdep.h: Likewise.
4370 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4371 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4372 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4373 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4374 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4375 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4376 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4377 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4378 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4379 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4380 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4382 2003-03-23 Roland McGrath <roland@redhat.com>
4384 * Makeconfig (+includes): Don't use $(last-includes).
4386 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4388 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4389 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4391 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4393 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4394 * sysdeps/arm/libm-test-ulps: Update.
4395 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4396 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4397 * sysdeps/mips/fpu/libm-test-ulps: Update.
4398 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4399 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4400 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4401 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4402 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4403 * sysdeps/s390/fpu/libm-test-ulps: Update.
4404 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4406 2003-03-22 Roland McGrath <roland@redhat.com>
4408 * include/atomic.h: Put parens around all macro arguments.
4409 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4410 (atomic_compare_and_exchange_val_acq): Use it.
4411 (atomic_compare_and_exchange_bool_acq): Likewise.
4412 (atomic_increment_and_test): Invert sense of test.
4413 (atomic_decrement_and_test): Likewise.
4414 * csu/tst-atomic.c: Update those tests to match.
4416 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4418 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4419 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4420 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4421 __oldval variable in the macro, since it might be macro argument.
4422 (atomic_decrement_if_positive): Initialize __memp, remove setting
4423 of non-existent variable.
4424 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4425 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4426 using atomic_compare_and_exchange_val_acq.
4427 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4428 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4430 (__arch_compare_and_exchange_bool_8_acq): ... this.
4431 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4432 (__arch_compare_and_exchange_bool_16_acq): ... this.
4433 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4435 (__arch_compare_and_exchange_bool_32_acq): ... this.
4436 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4438 (__arch_compare_and_exchange_bool_64_acq): ... this.
4439 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4440 variables types instead of assuming int.
4441 Change prefix of local variables to __arch.
4442 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4444 (atomic_compare_and_exchange_val_acq,
4445 atomic_compare_and_exchange_bool_acq): Define.
4447 * csu/tst-atomic.c: New test.
4448 * csu/tst-atomic-long.c: New test.
4449 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4451 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4453 * sysdeps/s390/Versions: Add trailing newline.
4455 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4456 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4458 2003-03-22 Andreas Schwab <schwab@suse.de>
4460 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4462 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4463 * sysdeps/m68k/m68020/atomicity.h: Removed.
4465 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4467 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4468 data structures and macros. Protect from multiple inclusion.
4470 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4473 2003-03-21 Andreas Jaeger <aj@suse.de>
4475 * sysdeps/i386/fpu/libm-test-ulps: Update.
4477 * math/libm-test.inc (tgamma_test): Recompute some constants with
4478 36 digits precision.
4479 (lgamma_test): Likewise.
4480 (ccos_test): Likewise.
4481 (ccosh_test): Likewise.
4482 (clog10_test): Likewise.
4483 (csin_test): Likewise.
4484 (csinh_test): Likewise.
4485 (ctan_test): Likewise.
4486 (ctanh_test): Likewise.
4488 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4490 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4492 2003-03-21 Roland McGrath <roland@redhat.com>
4494 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4495 constraint to permit non-constant BIT argument.
4496 (atomic_bit_test_set): Likewise.
4497 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4498 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4499 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4500 or "r" constraint otherwise.
4502 * configure.in: Move AC_PROG_CC and other program-finding before all
4504 * configure: Regenerated.
4506 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4508 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4509 unaligned copying of 8-15 bytes. From Chris Demetriou
4510 <cgd@broadcom.com>. Fix label names.
4511 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4512 change as to memcpy.S.
4513 * sysdeps/mips/memcpy.S: Formatting changes.
4514 * sysdeps/mips/memset.S: Likewise.
4516 2003-03-21 Roland McGrath <roland@redhat.com>
4518 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4520 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4522 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4523 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4525 2003-03-21 Roland McGrath <roland@redhat.com>
4527 * sysdeps/i386/i486/bits/atomic.h
4528 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4529 version of the macro to avoid compile-time warnings.
4530 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4531 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4532 (atomic_increment, atomic_decrement): Likewise.
4534 2003-03-21 Ulrich Drepper <drepper@redhat.com>
4536 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4537 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4539 2003-03-21 Roland McGrath <roland@redhat.com>
4541 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4543 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4545 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4546 atomic_compare_and_exchange_val_rel,
4547 atomic_compare_and_exchange_bool_acq, and
4548 atomic_compare_and_exchange_bool_rel instead of
4549 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4550 * sysdeps/i386/i486/bits/atomic.h: Define
4551 __arch_compare_and_exchange_val_*_acq instead of
4552 __arch_compare_and_exchange_*_acq.
4553 * sysdeps/x86_64/bits/atomic.h: Likewise.
4554 * sysdeps/ia64/bits/atomic.h: Define
4555 __arch_compare_and_exchange_bool_*_acq instead of
4556 __arch_compare_and_exchange_*_acq.
4557 * sysdeps/powerpc/bits/atomic.h: Likewise.
4558 * sysdeps/s390/bits/atomic.h: Likewise.
4559 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4560 * malloc/set-freeres.c: Likewise.
4561 * nscd/cache.c: Likewise.
4562 * stdlib/cxa_finalize.c: Likewise.
4563 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4565 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4567 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4568 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4569 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4571 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4572 into high and low halves on n64.
4573 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4574 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4575 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4577 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4579 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4580 correct atomic_compare_and_exchange_acq semantics.
4582 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4584 * sysdeps/mips/ieee754.h: Remove excess #endif.
4586 2003-03-20 Roland McGrath <roland@redhat.com>
4588 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4589 variable. Remove superfluous memory clobber.
4591 * include/atomic.h: Syntax braino fix.
4593 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4594 in decimal. Don't bail if niced at start. Just check that nice call
4595 bumps the total at all.
4597 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4599 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4600 including pc, gp, sp and fp, as long long.
4601 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4602 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4603 Add gp argument, and set gp in the jmpbuf to it.
4604 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4606 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4608 * include/atomic.h: Define atomic_exchange and
4609 atomic_decrement_if_positive if not already defined. Add some
4611 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4612 * sysdeps/x86_64/bits/atomic.h: Likewise.
4613 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4614 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4615 atomic_exchange, atomic_exchange_and_add, and
4616 atomic_decrement_if_positive
4618 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4620 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4621 with a single instruction.
4623 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4625 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4627 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4628 Word before comparing with gotsym. Take reloc_addr argument as
4629 void*. Remove the code added for the compiler to drop any
4630 alignment assumptions.
4632 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4634 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4635 * include/atomic.h: New file.
4636 * sysdeps/i386/i486/bits/atomic.h: New file.
4637 * sysdeps/x86_64/bits/atomic.h: New file.
4638 * sysdeps/s390/bits/atomic.h: New file.
4639 * sysdeps/sh/bits/atomic.h: New file.
4640 * sysdeps/ia64/bits/atomic.h: New file.
4641 * sysdeps/powerpc/bits/atomic.h: New file.
4642 * sysdeps/generic/bits/atomic.h: New file.
4643 * sysdeps/i386/i486/atomicity.h: Removed.
4644 * sysdeps/x86_64/atomicity.h: Removed.
4645 * sysdeps/s390/s390-32/atomicity.h: Removed.
4646 * sysdeps/s390/s390-64/atomicity.h: Removed.
4647 * sysdeps/ia64/atomicity.h: Removed.
4648 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4649 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4650 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
4651 use of macros from atomicity.h to new names and semantics.
4652 * gmon_mcount.c: Likewise.
4653 * malloc/set-freeres.c: Likewise.
4654 * nscd/cache.c: Likewise.
4655 * stdlib/cxa_finalize.c: Likewise.
4656 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4658 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4660 * sysdeps/mips/ieee754.h: New file, suitable to replace both
4661 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4662 mips-specific for now.
4664 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4666 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
4667 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
4668 * stdlib/tst-strtod.c: Add test for the bug.
4670 * posix/tst-nice.c (do_test): Remove invalid of return value.
4671 Don't run test if initial level != 0.
4673 2003-03-19 Amos Waterland <apw@us.ibm.com>
4675 * posix/tst-nice.c: New file.
4676 * posix/Makefile (tests): Add tst-nice.
4678 2003-03-18 Roland McGrath <roland@redhat.com>
4680 * abilist: New directory of libfoo.abilist files maintained using
4681 scripts/merge-abilist.awk and "make update-abi" rules.
4682 * Makefile (distribute): Add abilist/*.abilist.
4683 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4684 Depend on check-abi.
4686 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4687 * configure: Regenerated.
4689 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4691 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4693 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4696 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
4698 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4700 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4702 * Versions.def: Add GLIBC_2.3.3 for libpthread.
4704 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4706 * sysdeps/generic/libc-start.c [!SHARED &&
4707 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4709 2003-03-17 Roland McGrath <roland@redhat.com>
4711 * include/ctype.h: Revert last change.
4713 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4715 * argp/tst-argp1.c: Use test-skeleton.c.
4716 * locale/tst-C-locale.c: Likewise.
4718 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
4720 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
4721 * sysdeps/mips/mips64/n64/Implies: New file.
4722 * sysdeps/mips/mips64/n64/Makefile: New file.
4723 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
4724 * sysdeps/mips/mips64/n32/Implies: New file.
4725 * sysdeps/mips/mips64/n32/Makefile: New file.
4726 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
4727 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
4728 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
4729 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
4730 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
4731 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
4732 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
4733 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
4734 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
4735 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
4736 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
4737 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
4738 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
4739 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
4741 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
4742 lib64 for mips64/n64 and lib32 for mips64/n32.
4743 (ldd_rewrite_script): Needed for all mips64 configurations.
4744 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4745 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
4746 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
4748 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
4751 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
4752 asm/unistd.h into asm-unistd.h.
4753 * sysdeps/unix/sysv/linux/mips/configure: Generated.
4754 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
4756 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
4757 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
4760 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
4761 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
4762 long type for registers on n32.
4764 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
4766 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
4767 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
4768 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
4769 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
4770 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
4771 * sysdeps/unix/mips/brk.S: Likewise.
4772 * sysdeps/unix/mips/sysdep.S: Likewise.
4773 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4774 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
4775 * sysdeps/mips/sys/ucontext.h: Likewise.
4776 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
4777 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4778 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4779 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4780 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
4781 * sysdeps/mips/mips64/setjmp.S: Likewise.
4782 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
4783 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
4786 2003-03-16 Ulrich Drepper <drepper@redhat.com>
4788 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
4789 not at function level.
4790 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
4792 2003-03-15 Roland McGrath <roland@redhat.com>
4794 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
4795 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4796 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
4797 * nis/nis_table.c (__create_ib_request): Likewise.
4799 * posix/fnmatch_loop.c: Add casts for signedness.
4800 * nss/nss_files/files-hosts.c: Likewise.
4801 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4802 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
4803 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
4805 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
4806 get errors into the log file.
4807 (libc_cv_broken_visibility_attribute): Likewise.
4808 (libc_cv_broken_alias_attribute): Likewise.
4809 (libc_cv_asm_weak_directive): Likewise.
4810 (libc_cv_need_minus_P): Likewise.
4811 (libc_cv_dot_text): Likewise.
4812 (libc_cv_asm_global_directive): Likewise.
4813 (libc_cv_asm_type_prefix): Likewise.
4814 * configure: Regenerated.
4816 * nscd/cache.c (cache_search): Give first arg type `request_type'.
4817 * nscd/nscd.h: Update decl.
4819 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
4820 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4821 * elf/dl-close.c (_dl_close): Likewise.
4822 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
4823 * io/fts.c (fts_build): Likewise.
4824 * elf/cache.c (add_to_cache): Likewise.
4825 * locale/programs/locarchive.c (show_archive_content): Likewise.
4827 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
4829 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
4831 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
4833 2003-03-15 Ulrich Drepper <drepper@redhat.com>
4835 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
4836 code for most parts.
4838 2003-03-15 Roland McGrath <roland@redhat.com>
4840 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
4841 * sysdeps/unix/sysv/linux/system.c: ... here.
4842 (FORK): Don't #define if already #define'd.
4843 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
4844 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
4845 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
4847 * dlfcn/tst-dlinfo.c: New file.
4848 * dlfcn/Makefile (tests): Add tst-dlinfo.
4849 ($(objpfx)tst-dlinfo): New target.
4851 * dlfcn/dlinfo.c: New file.
4852 * dlfcn/Makefile (libdl-routines): Add it.
4853 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
4854 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
4855 [__USE_GNU] (RTLD_DI_*): New enum constants.
4856 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
4857 * elf/dl-load.c (cache_rpath): New inline function.
4858 (_dl_map_object): Use it.
4859 (_dl_rtld_di_serinfo): New function.
4860 * sysdeps/generic/ldsodefs.h: Declare it.
4861 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4863 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
4864 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
4865 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
4866 (__libc_start_main): Just call the generic one for most of the work.
4868 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
4869 static function by that name instead of BP_SYM (__libc_start_main).
4870 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
4871 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
4872 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
4874 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
4875 Use this macro for extra AT_* cases.
4876 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
4877 New macro, guts from ...
4878 (__aux_init_cache): ... here, function removed.
4879 (DL_PLATFORM_INIT): Don't define this.
4881 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
4882 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
4884 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
4886 2003-03-14 Roland McGrath <roland@redhat.com>
4888 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
4890 2003-03-14 Jakub Jelinek <jakub@redhat.com>
4892 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
4894 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4895 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
4897 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
4899 * sysdeps/mips/fpu/bits/mathdef.h: New.
4900 (__NO_LONG_DOUBLE_MATH): Define for o32.
4902 * sysdeps/mips/sys/asm.h: Formatting changes.
4903 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
4904 (CPADD): Define for all of them.
4905 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
4906 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
4907 NARGSAVE): Define per ABI spec.
4908 (END): Don't redefine.
4909 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
4910 LONG_SRAV): Remove duplicate definitions.
4911 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
4912 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
4913 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
4914 (PTR_LA): Define for all 3 ABIs.
4916 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
4917 (elf_machine_matches_host): Prevent linking of o32 and n32
4919 (elf_machine_dynamic): Document assumption on $gp.
4920 (STRINGXP, STRINGXV, STRINGV_): New macros.
4921 (elf_machine_load_address): Use them to stringize PTR_LA and
4923 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
4924 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
4925 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
4926 (__dl_runtime_resolve): Cast the symtab initializer to the
4928 (RTLD_START): Use it. Adjust it for all 3 ABIs.
4929 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
4930 Handle 64-bit R_MIPS_REL composite relocation and accept
4931 R_MIPS_64 relocations to shift addend size to 64 bits.
4932 Document assumption regarding local GOT entries. Document
4933 backward-compatibility departing from the ABI behavior in
4934 applying relocations that reference section symbols, no longer
4935 used. Support relocations to mis-aligned offsets.
4936 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
4938 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
4940 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
4941 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
4942 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
4943 restore_rt functions. Use them.
4945 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4946 .set mips2 on new abis.
4948 2003-03-13 Ulrich Drepper <drepper@redhat.com>
4950 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
4951 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
4952 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
4953 * sysdeps/posix/pathconf.c: Likewise.
4954 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
4955 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4956 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
4958 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
4961 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
4963 * include/gmp.h: Include/gmp-mparam.h.
4964 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
4967 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
4968 ELF_MACHINE_NO_RELA is set.
4969 * elf/rtld.c (dl_main): No prelink support for REL-only.
4971 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
4972 FLAG_MIPS64_LIBN64): Define.
4973 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
4975 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
4976 * sysdeps/mips/memset.S: Likewise.
4977 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
4978 depending on the ABI.
4980 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
4981 Don't .set mips2 on new abi.
4982 (compare_and_swap): Likewise. Support 64-bit longs on n64.
4984 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
4986 2003-03-13 Roland McGrath <roland@redhat.com>
4988 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
4989 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
4991 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
4993 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
4995 * stdlib/fpioconst.c: Likewise.
4996 * stdlib/strtod.c: Likewise.
4998 * sysdeps/mips/add_n.S: Use L macro for local labels.
4999 * sysdeps/mips/addmul_1.S: Likewise.
5000 * sysdeps/mips/lshift.S: Likewise.
5001 * sysdeps/mips/memcpy.S: Likewise.
5002 * sysdeps/mips/memset.S: Likewise.
5003 * sysdeps/mips/mul_1.S: Likewise.
5004 * sysdeps/mips/rshift.S: Likewise.
5005 * sysdeps/mips/sub_n.S: Likewise.
5006 * sysdeps/mips/submul_1.S: Likewise.
5007 * sysdeps/mips/mips64/add_n.S: Likewise.
5008 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5009 * sysdeps/mips/mips64/lshift.S: Likewise.
5010 * sysdeps/mips/mips64/mul_1.S: Likewise.
5011 * sysdeps/mips/mips64/rshift.S: Likewise.
5012 * sysdeps/mips/mips64/sub_n.S: Likewise.
5013 * sysdeps/mips/mips64/submul_1.S: Likewise.
5014 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5015 conventions. Define END as in sys/asm.h.
5016 * sysdeps/unix/mips/sysdep.S: Likewise.
5017 * sysdeps/unix/mips/wait.S: Likewise.
5018 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5020 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5021 Cast shifted values that may be too narrow to mp_limb_t.
5022 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5024 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5026 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5027 (__mpn_extract_long_double): Likewise.
5028 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5029 (__mpn_construct_long_double): Likewise.
5030 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5031 (__mpn_extract_long_double): Likewise.
5032 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5033 (__mpn_construct_long_double): Likewise.
5035 2003-03-13 Roland McGrath <roland@redhat.com>
5037 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5038 entries in the map file match too.
5040 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5042 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5043 label .Lthread_start since current binutils don't allow branches
5044 to globally visible symbols.
5046 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5048 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5049 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5050 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5051 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5052 clobbered by the syscall.
5053 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5054 ASM_ARGS_6): Change constraints from r to index of corresponding
5056 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5057 ptid and ctid to match kernel.
5058 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5060 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5062 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5063 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5064 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5066 2003-03-11 Roland McGrath <roland@redhat.com>
5068 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5069 Check SYM_MAP rather than SYM as definedness check.
5070 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5071 Don't handle R_PPC64_REL24 reloc.
5072 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5074 * sysdeps/powerpc/powerpc64/dl-machine.h
5075 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5076 block, so we cover all the TPREL16* flavors without 6 ||s.
5077 [USE_TLS] (elf_machine_tprel): New function.
5078 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5079 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5080 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5082 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5084 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5085 instead of jalr to invoke subroutine so restoring the $gp register
5088 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5090 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5091 to __NR_pread if not defined.
5092 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5094 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5096 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5097 * sysdeps/unix/sysv/linux/kernel-features.h
5098 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5101 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5103 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5104 allocate space even for the trailing '/'.
5105 Reported by John Reiser <jreiser@BitWagon.com>.
5107 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5108 ASM_CLOBBERS_6): Define.
5109 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5110 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5111 to match IA-32 order.
5112 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5114 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5117 Copy extra params for NPTL to registers used in clone syscall.
5119 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5121 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5122 call names for pread and pwrite.
5124 2003-03-10 Roland McGrath <roland@redhat.com>
5126 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5127 * dlfcn/dladdr1.c: New file.
5128 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5129 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5130 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5131 a const ElfNN_Sym ** to fill in.
5132 * include/dlfcn.h: Update decl. Include <link.h>.
5133 * dlfcn/dladdr.c (dladdr): Update caller.
5134 * malloc/mtrace.c (tr_where): Likewise.
5135 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5136 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5137 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5138 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5140 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5142 * sysdeps/unix/Makefile (compile-syscall): New variable.
5143 Pass -g0 to compiler for assembling syscall stubs from stdin.
5145 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5146 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5147 Define these to do nothing.
5149 * configure.in: New check for -g on .S files.
5150 * configure: Regenerated.
5151 * config.make.in (have-cpp-asm-debuginfo): New variable.
5152 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5153 * Makeconfig (ASFLAGS): New variable, if undefined and
5154 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5155 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5157 2003-03-09 Roland McGrath <roland@redhat.com>
5159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5160 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5162 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5164 * po/fi.po: Update from translation team.
5165 * po/ca.po: Likewise.
5166 * po/da.po: Likewise.
5168 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5170 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5172 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5174 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5176 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5178 2003-03-07 Roland McGrath <roland@redhat.com>
5180 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5181 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5183 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5185 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5186 stubs, we have INLINE_SYSCALL.
5187 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5190 2003-03-06 Roland McGrath <roland@redhat.com>
5192 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5193 permanent extent and add a comment about testing its implicit teardown.
5195 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5197 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5199 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5201 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5202 reversed __builtin_expect expectation.
5204 2003-03-05 Roland McGrath <roland@redhat.com>
5206 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5207 * libio/swscanf.c: Likewise.
5208 * libio/swprintf.c: Likewise.
5210 2003-03-04 Roland McGrath <roland@redhat.com>
5212 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5213 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5214 R_PPC64_JMP_SLOT as well as TLS cases.
5215 (BIT_INSERT): Move parenthesis where it ought to have been.
5216 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5218 * posix/confstr.c (confstr): Correct STRING_LEN values for
5219 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5220 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5222 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5224 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5226 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5228 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5231 * po/sv.po: Update from translation team.
5233 2003-03-04 Andreas Jaeger <aj@suse.de>
5234 Ulrich Drepper <drepper@redhat.com>
5236 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5238 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5240 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5242 * po/tr.po: Update from translation team.
5244 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5245 are holes between the segments. Only call mprotect to set
5246 proection to PROT_NONE if there are some.
5248 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5251 * include/sched.h (__clone2): Use ... instead of adding all the
5254 2003-03-03 Roland McGrath <roland@redhat.com>
5256 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5258 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5259 PI_STATIC_AND_HIDDEN.
5261 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5263 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5265 * include/sched.h: Update clone2 prototype.
5267 2003-03-03 Andreas Jaeger <aj@suse.de>
5269 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5270 (llrint): Use it to correct return type.
5273 (llround): Likewise.
5275 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5277 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5280 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5281 if ccs parameter isn't valid. Reported by Andreas Schwab.
5283 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5285 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5286 for system call numbers > 255.
5287 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5288 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5289 INTERNAL_SYSCALL): Likewise.
5290 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5291 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5292 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5293 INTERNAL_SYSCALL): Likewise.
5295 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5297 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5298 array if it is the initial dtv.
5300 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5302 * po/es.po: Update from translation team.
5303 * po/fr.po: Likewise.
5304 * po/gl.po: Likewise.
5305 * po/sk.po: Likewise.
5306 * po/sv.po: Likewise.
5308 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5309 * misc/sys/mman.h: Add prototype for remap_file_pages.
5310 * sysdeps/generic/remap_file_pages.c: New file.
5311 * misc/Makefile (routines): Add remap_file_pages.
5312 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5314 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5316 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5317 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5318 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5319 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5320 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5321 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5322 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5323 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5325 2003-03-03 Roland McGrath <roland@redhat.com>
5327 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5328 * sysdeps/ia64/dl-machine.h: Likewise.
5329 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5331 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5333 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5334 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5335 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5336 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5337 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5338 * Versions.def (libc): Add GLIBC_2.3.3 set.
5340 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5341 * sysdeps/ia64/dl-machine.h: Update decl.
5343 2003-03-03 Andreas Jaeger <aj@suse.de>
5345 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5347 2003-03-02 Roland McGrath <roland@redhat.com>
5349 * scripts/abilist.awk: Reject data items with apparent 0 size.
5351 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5352 after foo.* as if it were a duplicate.
5354 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5356 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5358 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5360 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5361 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5362 if not already defined. Use SYSDEP_GETRES to allow other files to
5363 provide alternative implementations.
5364 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5365 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5366 if not already defined. Use SYSDEP_GETTIME to allow other files to
5367 provide alternative implementations.
5368 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5369 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5370 if not already defined. Use SYSDEP_GETTIME to allow other files to
5371 provide alternative implementations.
5372 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5373 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5374 other files to provide alternative implementations. Rearrange
5375 tests for invalid parameters.
5376 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5377 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5378 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5379 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5380 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5381 _POSIX_MONOTONIC_CLOCK.
5383 2003-03-02 Roland McGrath <roland@redhat.com>
5385 * scripts/merge-abilist.awk: More checks for bogus input.
5386 Uniquify duplicate config names.
5388 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5390 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5391 from dl_reloc_overflow, make global.
5392 (__process_machine_rela): Update callers.
5393 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5394 Add attribute_hidden to __process_machine_rela decl.
5395 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5397 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5400 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5401 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5402 (elf_machine_rela): Clean up.
5404 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5406 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5407 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5408 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5409 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5410 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5411 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5414 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5415 macros out of [SHARED].
5416 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5418 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5419 Clean up R_PPC64_* macro definition comments.
5421 * configure.in: In "running configure fragment for" message,
5422 omit $srcdir from the name if we prepended it.
5423 * configure: Regenerated.
5425 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5426 From Jakub Jelinek <jakub@redhat.com>.
5428 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5429 which duplicated the O_DIRECT defn.
5431 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5433 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5436 2003-03-01 Andreas Schwab <schwab@suse.de>
5438 * resolv/Makefile (tests): Don't depend on
5439 $(objpfx)mtrace-tst-leaks when cross compiling.
5441 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5442 __libc_stack_end through GOT since it is a global symbol.
5444 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5446 * argp/argp.h: Fix a typo.
5447 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5449 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5451 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5453 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5455 (get_subexp): Likewise.
5457 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5459 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5461 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5463 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5465 2003-02-27 Roland McGrath <roland@redhat.com>
5467 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5468 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5469 repeat it and avoids the test for the common case.
5470 Clean up and fix calculations for TLS relocs.
5472 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5473 * sysdeps/powerpc/dl-tls.h: ... here.
5474 (TLS_TP_OFFSET): New macro.
5476 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5478 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5480 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5481 code generation changes in recent gcc.
5483 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5485 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5486 Rename argument to avoid symbol conflict.
5488 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5489 [__USE_GNU] (O_DIRECT): New macro.
5491 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5493 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5496 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5498 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5499 initializer anymore now that res_thread_freeres is more careful.
5501 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5502 except the PKTINFO. Reset interface in PKTINFO.
5503 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5505 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5507 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5508 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5510 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5511 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5512 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5513 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5515 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5516 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5518 2003-02-25 Andreas Jaeger <aj@suse.de>
5520 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5521 behaviour of M_MMAP_THRESHOLD.
5523 2003-02-25 Roland McGrath <roland@redhat.com>
5525 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5526 zero, inidicating _res was not initialized yet.
5528 2003-02-24 Ulrich Drepper <drepper@redhat.com>
5530 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5533 2003-02-24 Roland McGrath <roland@redhat.com>
5535 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5537 2003-02-23 Roland McGrath <roland@redhat.com>
5539 * sysdeps/posix/pause.c: New file.
5540 * sysdeps/unix/common/pause.c: File removed.
5542 2003-02-23 Ulrich Drepper <drepper@redhat.com>
5544 * sysdeps/generic/bits/confname.h: Remove #ifs.
5546 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5547 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5549 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5552 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5554 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5556 2003-02-22 Roland McGrath <roland@redhat.com>
5558 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5559 * resolv/Makefile (tests): Add tst-leaks.
5560 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5561 (tst-leaks-ENV): New variable.
5562 ($(objpfx)mtrace-tst-leaks): New target.
5563 (tests): Depend on it.
5565 * include/libc-internal.h: Declare __libc_thread_freeres.
5567 * Makerules: Fix last change to use $($(subdir)-version) when set.
5569 * Makerules (install-lib-nosubdir): Depend on installed
5570 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5571 regardless of the libfoo.so target's dependencies.
5573 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5574 Use that in $(MAKE) calls.
5576 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5578 * catgets/gencat.c (read_input_file): Collision between
5579 auto-assigned numbers and user-defined nubmers is not fatal.
5581 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5582 * catgets/Makefile: Add rules to run test2.msg test.
5583 * catgets/test2.msg: New file.
5585 * catgets/gencat.c (main): Return 1 if messages have been printed.
5587 * iconv/iconv_prog.c (main): Unify messages.
5589 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5590 when shifting retval.
5591 * stdlib/tst-strtod.c (main): Add strtold test case.
5592 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5594 2003-02-21 Roland McGrath <roland@redhat.com>
5596 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5597 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5598 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5600 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5601 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5602 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5605 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5606 * malloc/thread-freeres.c: New file.
5607 * malloc/Makefile (aux): Add it.
5608 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5609 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5610 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5612 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5613 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5615 2003-02-21 Roland McGrath <roland@frob.com>
5617 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5619 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5620 [$(have-thread-library) = yes].
5622 2003-02-21 Ulrich Drepper <drepper@redhat.com>
5624 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5626 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5627 not chechk for errors (unless testing for 32bit variant).
5628 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5629 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5630 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5632 2003-02-21 Jakub Jelinek <jakub@redhat.com>
5634 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5635 Check for signed overflow, not unsigned.
5637 * sysdeps/sparc/sparc64/elf/configure.in: New file.
5638 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5639 Use -fcall-used-g6, not -fcall-used-g7.
5641 2003-02-21 Andreas Jaeger <aj@suse.de>
5643 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5646 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5647 clear whole mxcsr but only exceptions.
5649 2003-02-21 Roland McGrath <roland@redhat.com>
5651 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5652 for libfoo.so that need $(make-link) rules.
5654 2003-02-21 Roland McGrath <roland@frob.com>
5656 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5657 to match existing struct stat layout in mig protocols.
5659 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5661 * version.h (VERSION): Bump to 2.3.2.
5663 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5664 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5666 * sysdeps/generic/Dist: Add sysdep-cancel.h.
5667 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5668 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5669 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5670 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5673 * Makefile (distribute): Add include/stubs-prologue.h,
5674 include/gnu/stubs.h, scripts/merge-abilist.awk, and
5675 scripts/extract-abilist.awk.
5677 2003-02-20 Roland McGrath <roland@redhat.com>
5679 * math/Makefile (distribute): Don't add generated files.
5681 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5683 * math/Makefile: Rearrange variable definitions slightly to get
5684 definition in the right order.
5686 2003-02-20 Roland McGrath <roland@redhat.com>
5688 * Makerules: Clean up conditional around include of tls.make.
5689 * Make-dist: Export generating=t to prevent using that.
5690 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5692 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5694 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
5695 around in search if port IPPORT_RESERVED/2 has been test.
5697 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
5699 * posix/regcomp.c: Remove inclusions.
5700 * posix/regexec.c: Likewise.
5701 * posix/regex_internal.c: Likewise.
5702 * posix/regex_internal.h: Add inclusions here.
5703 * posix/regex.c: Only include sys/types.h before regex.h. Include
5704 regex_internal.h here. Include regex_internal.c before regcomp.c
5705 and regexec.c (might expose more opportunities to the C compiler).
5707 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5709 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5710 [!_LIBC] (__wcrtomb): New definition.
5711 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5712 HAVE_LOCALE_H as well.
5714 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5716 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5717 patch to check for system call errors.
5719 2002-07-24 Philip Blundell <philb@gnu.org>
5721 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
5724 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5726 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
5727 * sysdeps/unix/sysv/linux/kernel-features.h
5728 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
5729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
5731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
5732 interprocedure branches.
5733 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
5734 * sysdeps/powerpc/nofpu/Dist: ...here.
5735 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
5736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
5737 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
5738 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
5739 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
5741 2003-02-18 Alan Modra <amodra@bigpond.net.au>
5743 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
5745 2003-02-20 Philip Blundell <philb@gnu.org>
5747 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
5748 missing arguments to INTERNAL_SYSCALL_ERROR_P and
5749 INTERNAL_SYSCALL_ERRNO.
5751 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5753 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
5754 for __ASSUME_32BITUIDS.
5756 2003-02-20 Andreas Schwab <schwab@suse.de>
5758 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
5759 POSIX_MADV_* constants.
5761 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5763 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
5764 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
5765 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
5766 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
5768 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
5770 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
5772 2003-02-16 Roland McGrath <roland@redhat.com>
5774 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
5776 2003-02-19 Ulrich Drepper <drepper@redhat.com>
5778 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
5779 decimal input digits.
5780 * stdlib/tst-strtod.c (main): Add test for strtof bug.
5782 2003-02-18 Ulrich Drepper <drepper@redhat.com>
5784 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
5785 invalid file descriptors and missing access permissions.
5787 2003-02-17 Ulrich Drepper <drepper@redhat.com>
5789 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
5792 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
5793 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
5794 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
5797 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5798 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5800 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
5801 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
5802 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5803 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5804 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5806 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5808 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
5809 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
5810 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
5811 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
5812 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
5813 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
5815 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
5816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
5817 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
5818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
5820 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
5821 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
5822 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
5823 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
5825 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
5827 * nss/getent.c (print_hosts): Print all IP addresses of one host.
5829 2003-02-15 Roland McGrath <roland@frob.com>
5831 * sysdeps/mach/hurd/tls.h: New file.
5832 * sysdeps/mach/hurd/i386/tls.h: New file.
5834 * mach/errsystems.awk: Include <errno.h> in generated output.
5836 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
5837 use target mach-before-compile instead of generated.
5838 (mach-before-compile): New target.
5839 * Makerules: Disable use of tls.make if $(generating) is set.
5840 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
5841 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
5842 mach-shortcuts.h so mach/ generation happens before hurd/.
5844 2003-02-14 Ulrich Drepper <drepper@redhat.com>
5846 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
5847 of demorm correctly if low word is zero.
5848 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5849 * math/libm-test.inc (nextafter_test): New test, but disabled due
5852 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
5853 counter and only call __exit_thread if this is not the last thread.
5855 2003-02-13 Jakub Jelinek <jakub@redhat.com>
5857 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
5858 subtracting map->l_tls_offset.
5860 2003-02-12 Ulrich Drepper <drepper@redhat.com>
5862 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
5863 _CS_GNU_LIBPTHREAD_VERSION.
5864 * posix/conststr.c: Handle these new values.
5865 * posix/getconf.c: Likewise.
5867 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
5868 masking of version index.
5869 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5871 2003-02-11 Ulrich Drepper <drepper@redhat.com>
5873 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
5874 correctly. Reported by Thorsten Kukuk.
5876 2003-02-10 Ulrich Drepper <drepper@redhat.com>
5878 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
5879 _BSD_SOURCE to compiler.
5880 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
5881 Patches by Alan Modra.
5883 2003-02-08 Ulrich Drepper <drepper@redhat.com>
5885 * io/ftwtest.c: Get current working directory before and after the
5886 nftw call and make sure they match.
5888 2003-02-08 Jim Meyering <jim@meyering.net>
5890 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
5891 the current directory, not just when DIR contains a slash.
5892 Reported by Manoj Srivastava.
5894 2003-02-07 Jim Meyering <jim@meyering.net>
5896 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
5897 Include autoconf-recommended block of dirent/NAMELEN-related
5898 definitions and includes. Use NAMELEN throughout, rather than
5900 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
5901 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
5902 (stpcpy): Declare, if necessary.
5903 (mempcpy): Define, if necessary.
5904 [!_LIBC] (__stpcpy, __mempcpy): Define.
5905 [!_LIBC] (LXSTAT, XSTAT): Define.
5906 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
5907 (find_object): Don't use c99-style struct initializer.
5908 Tweak wording in a couple comments.
5910 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5912 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
5914 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
5915 after the trapa instruction.
5916 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
5918 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
5919 (NEED_SYSCALL_INST_PAD): Define.
5920 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
5921 avoid to use definition for the kernel.
5922 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5923 Save and restore the frame pointer.
5924 (SYSCALL_INST_PAD): Define.
5925 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5926 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
5927 after trapa instruction.
5928 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5929 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5931 2003-02-07 Jakub Jelinek <jakub@redhat.com>
5933 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
5934 so that it can have aliases.
5935 * inet/herrno.c (h_errno): Put it into .bss not .data section.
5937 2003-02-07 Ulrich Drepper <drepper@redhat.com>
5939 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
5940 (profile_fixup): Likewise.
5941 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5943 2002-11-24 Robert Love <rml@tech9.net>
5945 * posix/sched.h: Second parameter of sched_setaffinity and
5946 sched_getaffinity is `unsigned int', not `unsigned long'.
5947 * sysdeps/generic/sched_setaffinity.c: Likewise.
5948 * sysdeps/generic/sched_getaffinity.c: Likewise.
5950 2003-02-05 Ulrich Drepper <drepper@redhat.com>
5952 * debug/catchsegv.sh: Fix typo in error messsage.
5953 Reported by John Levon <levon@movementarian.org>.
5955 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
5956 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
5957 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
5958 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5960 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5961 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5963 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
5964 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
5966 2003-02-05 Jim Meyering <jim@meyering.net>
5968 Fix a heap-corrupting bug.
5969 * io/ftw.c: Include <limits.h>.
5970 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
5971 (process_entry): Allocate enough space to hold the resulting
5972 file name. Don't presume that 2*dirbufsize is enough.
5973 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
5974 it is guaranteed to be defined.
5976 2003-02-04 Ulrich Drepper <drepper@redhat.com>
5978 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
5979 * iconvdata/bug-iconv3.c: New file.
5981 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
5983 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5985 2003-02-03 Jakub Jelinek <jakub@redhat.com>
5987 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
5989 * config.h.in (BROKEN_SPARC_WDISP22): Add.
5991 2003-02-03 Ulrich Drepper <drepper@redhat.com>
5993 * sysdeps/i386/i686/memmove.S: New file.
5995 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
5997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
5998 Include kernel-features.h
5999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6004 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6006 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6008 2003-01-25 Jim Meyering <jim@meyering.net>
6010 * io/ftw.c (object_compare): Compare inode numbers before device
6011 numbers, since the former are much more likely to differ.
6013 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6015 * time/tzfile.c (__tzfile_compute): Change return value type to
6016 void. Adjust return statements.
6017 * include/time.h (__tzfile_compute): Adjust prototype.
6019 2003-02-01 Jim Meyering <jim@meyering.net>
6021 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6024 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6027 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6029 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6032 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6034 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6036 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6038 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6040 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6042 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6043 back to 2.4.19 for powerpc64.
6044 * sysdeps/unix/sysv/linux/kernel-features.h
6045 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6046 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6048 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6050 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6051 platforms with strange alignment requirements on wchar_t.
6053 2003-01-31 Andreas Schwab <schwab@suse.de>
6055 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6056 aliases, already added by make-syscalls.sh.
6057 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6058 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6059 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6060 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6061 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6062 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6063 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6064 * sysdeps/unix/inet/syscalls.list: Likewise.
6065 * sysdeps/unix/syscalls.list: Likewise.
6067 2003-01-31 Andreas Schwab <schwab@suse.de>
6069 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6072 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6074 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6075 not l to load tls from stack.
6077 2003-01-30 Roland McGrath <roland@redhat.com>
6079 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6080 null argument before all else.
6081 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6083 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6085 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6086 Move to RESOLVE protected part of the header.
6087 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6090 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6092 * stdio-common/Makefile (tests): Add bug15.
6093 (bug15-ENV): Define.
6094 * stdio-common/bug15.c: New file.
6096 2002-10-07 Wolfram Gloger <wg@malloc.de>
6098 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6099 to foreign sbrk()'s if arena is contiguous. Bug report from
6100 Bruno Haible <bruno@clisp.org>.
6102 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6104 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6106 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6108 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6111 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6113 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6115 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6117 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6119 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6121 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6122 (allocate_static_tls): ...here. Add __attribute_noinline__.
6123 Don't return on failure.
6124 (_dl_reloc_bad_type): Add __attribute_noinline__.
6125 * elf/do-rel.h (elf_dynamic_do_rel): Add
6126 __attribute__((always_inline)).
6127 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6128 elf_machine_rel_relative, elf_machine_rela_relative,
6129 elf_machine_lazy_rel): Add prototypes with
6130 __attribute__((always_inline)).
6132 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6134 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6136 2003-01-29 Roland McGrath <roland@redhat.com>
6138 * configure.in: Barf if configured in $srcdir.
6140 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6143 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6145 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6147 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6148 clone parameters to match the order used on ia32.
6149 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6151 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6153 * elf/elf.h: Add new s390 relocs.
6154 * elf/tls-macros.h: Add s390 versions.
6155 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6156 * sysdeps/s390/dl-tls.h: New file.
6157 * sysdeps/s390/libc-tls.c: New file.
6158 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6159 relocs for class PLT.
6160 (elf_machine_rela): Handle TLS relocs.
6161 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6162 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6163 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6164 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6165 CLONE_CHILD_*TID flags.
6166 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6167 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6169 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6170 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6171 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6172 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6173 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6175 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6176 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6177 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6179 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6180 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6181 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6182 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6185 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6187 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6188 from __libc_pause. Implement using sigsuspend.
6189 (__libc_pause): Call do_pause to do the real work.
6191 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6192 sig_or_mask parameter is is_sig != 0.
6194 2003-01-21 Philip Blundell <philb@gnu.org>
6196 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6198 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6200 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6202 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6204 * stdio-common/bug14.c: Use official name for the locale.
6206 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6207 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6208 instead of __libc_cleanup_region_end.
6210 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6211 as first parameter to __libc_cleanup_region_start.
6213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6214 (__fe_nomask_env): Use __prctl not prctl.
6215 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6218 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6220 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6222 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6223 wrap-around in test.
6225 2003-01-26 Andreas Schwab <schwab@suse.de>
6227 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6228 compatibility symbols. Remove INTDEF for __divdi3.
6229 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6230 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6231 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6233 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6235 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6237 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6238 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6239 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6240 for the first half of the header. Include tls.h.
6241 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6243 (elf_machine_rela): Handle TLS relocs.
6244 * sysdeps/sparc/dl-tls.h: New file.
6246 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6249 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6250 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6251 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6252 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6253 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6254 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6255 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6256 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6257 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6258 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6259 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6260 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6261 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6262 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6263 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6264 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6265 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6266 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6267 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6268 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6270 2003-01-24 Andreas Schwab <schwab@suse.de>
6272 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6273 elements, and process them backwards.
6274 * elf/Makefile ($(objpfx)tst-array4): New target.
6275 ($(objpfx)tst-array4.out): Likewise.
6276 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6277 * elf/tst-array4.c: New file.
6278 * elf/tst-array4.exp: Likewise.
6280 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6284 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6286 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6287 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6288 cancellation handling and handle both __NR_pread64 and __NR_pread.
6289 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6290 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6291 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6292 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6293 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6294 case, use register names consistently.
6296 2003-01-27 Wolfram Gloger <wg@malloc.de>
6298 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6299 pointer, not of the computed chunk. Bug report from Carlos
6300 O'Donell <carlos@baldric.uwo.ca>.
6302 2003-01-25 Andreas Schwab <schwab@suse.de>
6304 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6305 addressing to save GOT entries.
6307 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6309 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6310 inline_syscall1, inline_syscall2, inline_syscall3,
6311 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6312 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6313 __attribute__((unused)) to ChEcK.
6315 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6317 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6318 Fix inline assembler constraints.
6319 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6322 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6325 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6327 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6328 compute the cosine, not the sine, even if x > 0.8.
6330 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6332 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6333 _nss_nis_setspent. Work around the different prototypes.
6334 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6335 internal_nis_endrpcent.
6336 (internal_nis_endrpcent): Change return type to void. Change callers.
6337 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6338 _nss_nis_setpwent. Work around the different prototypes.
6339 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6340 of the function to...
6341 (internal_nis_endprotoent): ... here. New function.
6342 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6343 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6344 _nss_nis_setnetent. Work around the different prototypes.
6345 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6346 of the function to...
6347 (internal_nis_endnetgrent): ... here. New function.
6348 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6350 2003-01-19 Jim Meyering <jim@meyering.net>
6352 * time/strftime.c: (widen): Merge nearly-identical definitions.
6353 (nl_get_alt_digit) [! defined my_strftime]: Define.
6354 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6355 _nl_get_alt_digit and _nl_get_walt_digit.
6357 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6359 * time/strftime.c (my_strftime): Handle very large width
6360 specifications for numeric values correctly. Improve checks for
6362 * time/Makefile (tests): Add tst-strftime.
6363 * time/tst-strftime.c: New file.
6365 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6367 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6368 _nss_nis_sethostent. Work around the different prototypes.
6369 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6370 _nss_nis_setgrent. Work around the different prototypes.
6371 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6372 function. Split out from _nss_nis_endetherent.
6373 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6374 duplicating the code.
6375 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6376 of _nss_nis_setaliasent.
6377 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6378 internal_nis_endservent code, don't duplicate it.
6380 * inet/rexec.c (rexec_af): Protect socket operations with
6381 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6382 * inet/rcmd.c (rcmd_af): Likewise.
6384 2003-01-17 Roland McGrath <roland@redhat.com>
6386 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6387 Add test of value 0.80190127184058835.
6389 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6391 2003-01-17 Richard Henderson <rth@redhat.com>
6393 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6394 relocs for class PLT.
6395 * sysdeps/alpha/libc-tls.c: New file.
6396 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6397 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6399 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6401 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6402 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6405 2003-01-17 Andreas Jaeger <aj@suse.de>
6407 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6409 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6411 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6416 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6417 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6420 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6422 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6423 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6426 * sysdeps/generic/sysconf.c: Unconditionally implement
6427 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6428 * sysdeps/posix/sysconf.c: Likewise.
6430 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6432 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6433 set *err to the returned error, not to REG_ESPACE unconditionally.
6434 (build_word_op): Likewise.
6435 * posix/Makefile (tests): Add bug-regex16.
6436 * posix/bug-regex16.c: New test.
6438 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6440 * elf/dl-load.c (_dl_map_object_from_fd): Use
6441 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6442 been already initialized.
6444 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6446 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6448 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6450 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6451 allocated too. Reported by Al Viro <aviro@redhat.com>.
6453 2003-01-16 Roland McGrath <roland@redhat.com>
6455 Tweak merged .abilist file format to merge duplicate symbols in
6456 different sets into multi-version stanzas with new "| SET regexp..."
6457 header continuation lines.
6458 * scripts/merge-abilist.awk: Rewritten for new format.
6459 * scripts/extract-abilist.awk: Likewise.
6461 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6463 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6464 necessary with gcc 3.2+.
6465 (nscd_init): Don't use error() to print message, use dbg_log.
6467 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6468 expected size into state.
6469 (UNPACK_BYTES): Do the reverse.
6470 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6471 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6472 Reported by Al Viro <aviro@redhat.com>.
6474 * stdio-common/Makefile (tests): Add bug14.
6475 * stdio-common/bug14.c: New file.
6477 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6478 string reset the byte counter after mbrtowc reported it is not a
6479 partial character. Reported by Al Viro <aviro@redhat.com>.
6481 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6484 sysdep-cancel.h, not sysdep.h.
6486 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6488 * nscd/connections.c (nscd_run): Protect accept call with
6491 2003-01-15 Andreas Schwab <schwab@suse.de>
6493 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6494 (common-generated): Add s-proto-bp.d.
6495 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6497 * sysdeps/unix/s-proto-bp.S: New file.
6498 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6499 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6500 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6502 2003-01-15 Roland McGrath <roland@redhat.com>
6504 * Makerules: Use -include for tls.make, suppresses warning.
6505 Move gen-as-const-headers rules up so before-compile is set in time.
6506 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6508 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6510 * nscd/nscd.c (main): Make code to close all file descriptors
6511 faster and more robust.
6513 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6514 request with one writev call. Protect all read calls with
6516 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6517 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6519 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6520 Protect writev calls with TEMP_FAILURE_RETRY.
6521 * nscd/grpcache.c: Likewise.
6522 * nscd/pwdcache.c: Likewise.
6524 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6525 IPv6 address in debug output.
6527 2003-01-14 Roland McGrath <roland@redhat.com>
6529 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6530 $(objpfx) directories, and get rid of vpath directives. The previous
6531 arrangement resulted in files being written to the source directories
6532 when run in a clean build. Find all .abilist files in $(..)abilist/.
6533 (update-abi-%): Likewise.
6534 (generated): Don't add .symlist files, they'll be intermediates.
6536 * sysdeps/generic/init-first.c: Add a comment.
6538 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6540 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6541 #includes and expressions.
6543 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6544 config list when it already contains cpu-.*-os.* without / part.
6546 * Makerules (sed-remove-dotdot): New variable.
6547 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6548 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6549 (check-abi-config): New variable, append /tls or /notls to the tuple.
6550 (check-abi-%): Use that for -v config value.
6551 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6552 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6554 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6556 * manual/install.texi: Correct description of header preparation for
6557 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6559 2003-01-14 Guido Guenther <agx@sigxcpu.org>
6561 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6562 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6563 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6565 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6568 (INTERNAL_SYSCALL): Make use of ERR parameter.
6569 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6570 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6571 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6574 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6576 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6578 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6580 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6581 Fix entry for bit 31.
6583 * iconvdata/Makefile: Add rules to build IBM866NAV.
6584 * iconvdata/ibm866nav.c: New file.
6585 * iconvdata/tst-tables.sh: Add IBM866NAV.
6586 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6588 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6590 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6591 to test void* parameters.
6593 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6594 source pointer before dereferencing.
6595 (__STRING_SMALLL_GET32): Likewise.
6596 (__memset_gc): Add missing parenthesis around macro arguments.
6597 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6599 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6600 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6602 2003-01-14 Jakub Jelinek <jakub@redhat.com>
6604 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6607 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6609 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6610 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6612 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6614 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6616 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6618 (PSEUDO): ... to here.
6619 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6621 (PSEUDO): ... to here.
6623 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6625 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6626 dirent64 instead of struct dirent for dirent. Call readdir64
6629 * locale/programs/locfile.c (siblings_uncached): Use struct
6630 dirent64 instead of struct dirent for other_dentry. Call
6631 readdir64 instead of readdir.
6633 * elf/ldconfig.c (direntry): Change type to struct dirent64.
6634 (search_dir): Use readdir64 instead of readdir.
6635 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6637 2003-01-12 Roland McGrath <roland@redhat.com>
6639 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6640 not strtol. The former is usable in ld.so, the latter not.
6642 * include/fcntl.h: Declare __libc_creat.
6644 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6645 libhurduser-link.so-no-z-defs): New variables.
6647 * malloc/malloc.c: Revert last change.
6648 * malloc/malloc.h (_int_*): Move these decls to ...
6649 * include/malloc.h: ... here. Add attribute_hidden.
6650 (_int_valloc): Declare it too.
6652 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6654 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
6655 search for removed searchlist. Reported by Roland McGrath.
6657 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6658 given as start file.
6660 * io/ftw.c (ftw_startup): Use correct name in check for symlink
6661 without existing target. Patch by Jim Meyering.
6663 * Makerules (build-shlib-helper): Don't use -z defs linker option
6664 if no-z-defs is defined either.
6666 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6668 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6671 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6673 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6674 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6676 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6678 * io/ftwtest-sh: Add test case for relative path with /. at the end.
6680 2003-01-12 Jim Meyering <jim@meyering.net>
6682 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6683 use the basename if we've already chdir'd into its parent directory.
6685 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6687 * io/ftw.c (process_entry): Use relative path when using chdir()
6688 to change directory after call to ftw_dir.
6689 * io/ftwtest-sh: Add test for relative path argument to nftw()
6690 with FTW_CHDIR option.
6692 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6694 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6696 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6699 (INTERNAL_SYSCALL): Make use of ERR parameter.
6700 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6701 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6702 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6705 2002-01-09 Richard Henderson <rth@redhat.com>
6707 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6708 DTPREL64 and TPREL64 without loadbase applied.
6710 2002-01-09 Richard Henderson <rth@redhat.com>
6712 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6715 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6716 * sysdeps/unix/alpha/sysdep.h: ... here.
6717 (PSEUDO_LOADGP): Remove.
6718 (PSEUDO_PROLOGUE): Load GP in non-pic case.
6719 (SYSCALL_ERROR_LABEL): New.
6720 (PSEUDO): Use it in error branch.
6721 (PSEUDO_END): Add $syscall_error label.
6723 2003-01-12 Andreas Jaeger <aj@suse.de>
6725 * math/bits/mathcalls.h: Round is a const function.
6727 2003-01-11 Jim Meyering <jim@meyering.net>
6729 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
6730 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
6731 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
6732 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
6733 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
6734 [!_LIBC] (internal_function, dirent64, MAX): Define.
6735 (__set_errno): Define if not already defined.
6736 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
6737 the basename, not the entire file name.
6738 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
6739 the basename, not the entire file name.
6741 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6743 * string/tester.c (test_strcpy): Disable last added strcpy until
6746 2003-01-11 Philip Blundell <philb@gnu.org>
6748 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
6750 2003-01-11 Andreas Schwab <schwab@suse.de>
6752 * Makerules: Add vpath for %.dynsym and %.so so that the
6753 implicit rule chaining for check-abi works.
6755 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6757 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6760 2003-01-11 Jakub Jelinek <jakub@redhat.com>
6762 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
6763 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
6765 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
6766 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
6767 Ensure libc.so in DT_NEEDED.
6768 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
6769 CHECK_STATIC_TLS before l_tls_offset use.
6770 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6772 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6773 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
6774 Allocate TLS_PRE_TCB_SIZE bytes below result.
6775 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
6776 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
6777 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
6778 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
6779 bytes below result and add tcb_offset to memsz.
6780 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
6781 * sysdeps/ia64/dl-machine.h: Include tls.h.
6782 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
6784 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
6785 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
6786 * sysdeps/ia64/libc-tls.c: New file.
6788 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
6790 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
6791 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
6792 Fix type. Move definition out of #if.
6793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
6794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
6795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
6796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
6797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
6798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
6800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
6801 ftruncate64, pread64, pwrite64, truncate64 entries.
6802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6803 (INLINE_SYSCALL): New version that supports function call like
6804 syscalls. Add __builtin_expect.
6805 (LOADARGS_n): Add argument size safety checks.
6806 (INTERNAL_SYSCALL): New Macro.
6807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
6808 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
6809 redefinition of elf_fpreg_t and elf_fpregset_t.
6811 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6813 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
6814 simplify test for unloading. If loader of a DSO is unloaded do not
6815 use its scope anymore. Fall back to own scope and adjust opencounts.
6816 Fix several comments.
6817 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
6818 the l_searchlist, not only for l_initfini.
6820 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
6821 dependencies if objects cannot be removed. Remove object with the
6822 definition as not unloadable if necessary.
6824 * elf/reldep6.c: Create relocation dependency before closing the first
6827 2003-01-10 Guido Günther <agx@sigxcpu.org>
6829 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
6830 * sysdeps/unix/mips/brk.S: Likewise.
6831 * sysdeps/unix/mips/pipe.S: Likewise.
6833 2003-01-10 Andreas Schwab <schwab@suse.de>
6835 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
6837 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
6838 are known to have the vfork syscall.
6840 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
6842 * sysdeps/unix/sysv/linux/kernel-features.h
6843 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
6844 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
6845 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
6847 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6849 * elf/Makefile: Add rules to build and run reldep9 test.
6850 * elf/reldep9.c: New file.
6851 * elf/reldep9mod1.c: New file.
6852 * elf/reldep9mod2.c: New file.
6853 * elf/reldep9mod3.c: New file.
6855 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6857 * elf/Makefile: Add rules to build and run nodelete2 test.
6858 * elf/nodelete2.c: New file.
6859 * elf/nodel2mod1.c: New file.
6860 * elf/nodel2mod2.c: New file.
6861 * elf/nodel2mod3.c: New file.
6863 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6865 * posix/test-vfork.c (noop): Add __attribute_noinline__.
6866 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
6867 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
6869 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
6870 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
6871 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
6872 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
6873 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
6875 2003-01-09 Andreas Schwab <schwab@suse.de>
6877 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
6879 2003-01-08 Ulrich Drepper <drepper@redhat.com>
6881 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
6882 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6884 (INTERNAL_SYSCALL_DECL): Define.
6886 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6888 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
6889 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6891 (INTERNAL_SYSCALL_DECL): Define.
6892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6893 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
6894 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6895 (INLINE_SYSCALL): Adjust.
6896 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6897 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6898 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6899 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6900 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
6901 add err argument to INTERNAL_SYSCALL* macros.
6902 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
6903 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
6904 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
6905 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
6907 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
6908 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
6909 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
6911 2003-01-07 Ulrich Drepper <drepper@redhat.com>
6913 Unify symbols in user namespace exported by libc.so and libc.a.
6914 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
6915 argp_fmtstream_free, and argp_fmtstream_printf.
6916 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
6917 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
6918 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
6919 argp_fmtstream_point.
6920 * gmon/gmon.c: Don't define write_profiling.
6921 * libio/genops.c: Don't define _cleanup.
6923 * intl/explodename.c (_nl_find_language.c): Mark as static.
6924 * intl/loadinfo.h: Remove _nl_find_language prototype.
6926 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
6927 * libio/libioP.h: Remove declaration.
6929 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
6930 * libio/libioP.h: Remove declaration.
6932 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
6933 * sysdeps/generic/framestate.c: Define STATIC before including
6936 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
6938 2003-01-06 Philip Blundell <philb@gnu.org>
6940 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
6941 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
6943 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
6945 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
6946 (SYSCALL_ERROR): New.
6947 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
6949 (INTERNAL_SYSCALL): Define.
6950 (INLINE_SYSCALL): Use it.
6951 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
6952 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
6953 SYSCALL_ERROR in place of __syscall_error.
6955 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6957 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6958 __bswap_32, __bswap_64): Put x into temporary variable
6960 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6962 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6963 __bswap_32, __bswap_64): Put x into temporary variable
6965 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6967 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
6970 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6972 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
6975 2003-01-07 Jakub Jelinek <jakub@redhat.com>
6977 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
6978 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
6980 2003-01-07 Ulrich Drepper <drepper@redhat.com>
6982 * math/libm-test.inc (significand_test): New function.
6985 2003-01-06 Roland McGrath <roland@redhat.com>
6987 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
6989 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
6990 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
6991 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
6993 * string/tester.c (test_strcpy): Add test with `void *' arguments.
6995 2003-01-06 Ulrich Drepper <drepper@redhat.com>
6997 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
6998 return significand and not the exponent.
6999 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7001 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7002 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7004 * malloc/malloc.c: Mark all _int_* functions as static.
7006 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7008 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7009 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7011 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7013 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7015 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7018 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7019 ftruncate64, truncate64, pread64 and pwrite64 entries.
7020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7021 (INLINE_SYSCALL): Add __builtin_expect.
7022 (LOADARGS_n): Add argument size safety checks.
7023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7030 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7032 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7033 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7034 (LIBC_CANCEL_HANDLED): Add.
7036 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7037 (inline_syscall_r0_constraint): Rename to...
7038 (inline_syscall_r0_out_constraint): ... this. Add =.
7039 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7041 2003-01-06 Andreas Schwab <schwab@suse.de>
7043 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7044 sure this is always inlined.
7045 (elf_machine_rela): Likewise.
7047 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7049 2003-01-04 Roland McGrath <roland@redhat.com>
7051 * Makeconfig (+mkdep): Add -MP flag.
7052 Suggested by Art Haas <ahaas@airmail.net>.
7054 2003-01-05 Andreas Schwab <schwab@suse.de>
7056 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7058 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7060 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7061 SYSCALL_ERROR_HANDLER.
7062 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7063 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7064 Add support for cancellation handling.
7065 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7066 SYSCALL_ERROR_HANDLER.
7067 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7068 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7069 Add support for cancellation handling.
7070 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7072 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7075 __syscall_pread64 and __syscall_pwrite64 cancelable.
7076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7077 (INTERNAL_SYSCALL): New macro.
7078 (LOADARGS_0, LOADARGS_1): Fix.
7080 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7082 * Makerules (build-shlip-helper): Unless told otherwise, add
7083 -Wl,-z,defs to linker command line.
7084 * rt/Makefile (librt.so): Link with ld.so.
7085 * dlfcn/Makefile (libdl.so): Likewise.
7087 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7089 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7090 cancellation handling.
7091 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7092 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7094 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7096 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7097 order of parameters passed to kill.
7099 2003-01-04 Andreas Schwab <schwab@suse.de>
7101 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7103 2002-01-03 Paul Eggert <eggert@twinsun.com>
7105 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7106 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7107 when compiling Bison 1.875's `bitset bset = obstack_alloc
7108 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7110 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7112 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7114 Correct reference counter in case SIGQUIT handler installation failed.
7116 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7118 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7119 Define using _Pragma(weak ...).
7121 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7123 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7124 reorder declarations.
7126 2003-01-03 Art Haas <ahaas@airmail.net>
7128 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7129 initializer syntax to C99.
7130 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7131 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7132 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7133 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7134 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7135 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7136 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7137 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7138 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7139 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7140 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7141 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7142 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7143 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7144 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7145 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7146 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7147 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7148 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7149 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7150 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7151 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7152 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7153 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7154 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7155 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7156 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7157 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7158 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7159 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7160 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7161 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7162 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7163 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7164 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7165 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7166 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7167 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7168 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7169 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7170 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7171 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7172 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7173 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7174 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7175 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7176 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7177 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7178 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7180 2003-01-03 Richard Henderson <rth@redhat.com>
7182 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7183 (inline_syscall_r0_constraint): New.
7184 (inline_syscall[0-6]): Use them.
7186 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7188 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7189 Add rtld_hidden_proto.
7190 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7191 (_dl_allocate_tls): Likewise. Remove INTDEF.
7193 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7195 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7196 Morita <toshiyasu.morita@hsa.hitachi.com>.
7197 * sysdeps/sh/memcpy.S: Likewise.
7199 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7201 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7202 any, but unify the test.
7204 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7206 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7207 sigaction): Protect weak_alias and libc_hidden_weak with
7208 #ifndef LIBC_SIGACTION.
7209 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7210 sigaction): Likewise.
7211 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7212 sigaction): Likewise.
7213 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7214 sigaction): Likewise.
7215 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7216 sigaction): Likewise.
7217 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7218 sigaction): Likewise.
7219 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7220 sigaction): Likewise.
7221 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7222 sigaction): Likewise. Remove SIGCANCEL handling here.
7223 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7226 2003-01-02 Art Haas <ahaas@airmail.net>
7228 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7230 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7232 * posix/getconf.c: Update copyright year.
7233 * nss/getent.c: Likewise.
7234 * nscd/nscd_nischeck.c: Likewise.
7235 * iconv/iconvconfig.c: Likewise.
7236 * iconv/iconv_prog.c: Likewise.
7237 * elf/ldconfig.c: Likewise.
7238 * catgets/gencat.c: Likewise.
7239 * csu/version.c: Likewise.
7240 * elf/ldd.bash.in: Likewise.
7241 * elf/sprof.c (print_version): Likewise.
7242 * locale/programs/locale.c: Likewise.
7243 * locale/programs/localedef.c: Likewise.
7244 * nscd/nscd.c (print_version): Likewise.
7245 * debug/xtrace.sh: Likewise.
7246 * malloc/memusage.sh: Likewise.
7247 * malloc/mtrace.pl: Likewise.
7249 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7251 * io/sys/stat.h: Include time.h with __need_timespec even if
7252 __USE_MISC is defined but __USE_XOPEN is not.
7254 2003-01-01 Andreas Jaeger <aj@suse.de>
7256 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7257 type to avoid strict aliasing problem.
7258 (_nss_dns_gethostbyname2_r): Likewise.
7259 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7260 (_nss_dns_getnetbyname_r): Likewise.
7261 * resolv/gethnamaddr.c (_gethtent): Likewise.
7262 (gethostbyname2): Likewise.
7264 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7266 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7267 to avoid using the exported symbols. Define aliases with the
7268 original names separately.
7270 * include/time.h: Add libc_hidden_proto for __strftime_l.
7271 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7272 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7274 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7275 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7277 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7280 * csu/Makefile (routines): Add dso_handle.
7281 * csu/dso_handle.c: New file.
7283 2002-12-31 Roland McGrath <roland@redhat.com>
7285 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7286 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7287 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7288 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7290 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7292 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7295 2002-12-31 Andreas Jaeger <aj@suse.de>
7297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7299 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7300 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7301 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7303 * sysdeps/unix/sysv/linux/kernel_stat.h
7304 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7306 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7307 __unused[1-3] since they're needed by some platforms. Handle
7308 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7310 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7311 for structs stat and stat64.
7312 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7313 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7314 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7315 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7317 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7319 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7320 nsec resolution changes.
7321 (xstat64_conv): Likewise.
7322 (xstat32_conv): Likewise.
7324 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7327 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7328 structs stat and stat64.
7330 * time/time.h (__timespec_defined): Define for __USE_MISC.
7332 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7334 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7335 and __libc_current_sigrtmax.
7337 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7339 * include/errno.h (__errno_location): Add prototype.
7340 Use libc_hidden_proto unconditionally.
7341 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7343 * include/resolv.h (__res_state): Likewise.
7345 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7346 * include/sys/socket.h (accept): Add libc_hidden_proto.
7347 * include/errno.h (__errno_location): Likewise.
7348 * include/netdb.h (__h_errno_location): Likewise.
7349 * include/resolv.h (__res_state): Likewise.
7350 * include/unistd.h (__lseek): Likewise.
7351 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7352 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7353 * sysdeps/generic/res-state.c (__res_state): Likewise.
7354 * sysdeps/generic/accept.c (accept): Likewise.
7355 * sysdeps/generic/lseek.c (__lseek): Likewise.
7356 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7357 __libc_current_sigrtmax): Likewise.
7358 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7359 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7360 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7361 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7362 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7363 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7364 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7365 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7366 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7368 (__GI_accept): New alias to accept.
7369 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7370 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7371 New alias to llseek.
7372 (__GI_accept): New alias to accept.
7373 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7375 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7377 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7379 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7380 strong_alias (name, __GI_name).
7381 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7382 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7383 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7384 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7385 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7386 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7387 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7388 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7389 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7390 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7391 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7392 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7393 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7394 * sysdeps/unix/arm/fork.S : Likewise.
7395 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7396 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7397 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7398 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7399 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7400 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7401 * sysdeps/unix/i386/fork.S : Likewise.
7402 * sysdeps/unix/mips/fork.S : Likewise.
7403 * sysdeps/unix/sparc/fork.S : Likewise.
7404 * sysdeps/unix/sparc/vfork.S : Likewise.
7405 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7406 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7407 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7408 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7409 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7410 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7411 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7412 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7413 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7414 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7415 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7416 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7417 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7418 * sysdeps/unix/fork.S : Likewise.
7419 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7420 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7422 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7425 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7427 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7428 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7429 * sysdeps/mach/hurd/fork.c: Likewise.
7430 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7431 * sysdeps/unix/fork.S: Add __GI___fork alias.
7432 * sysdeps/unix/arm/fork.S: Likewise.
7433 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7434 * sysdeps/unix/i386/fork.S: Likewise.
7435 * sysdeps/unix/mips/fork.S: Likewise.
7436 * sysdeps/unix/sparc/fork.S: Likewise.
7437 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7438 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7439 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7440 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7441 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7442 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7443 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7444 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7445 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7446 * sysdeps/unix/sparc/vfork.S: Likewise.
7447 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7448 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7449 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7450 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7451 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7452 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7453 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7454 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7456 * include/time.h: Add libc_hidden_proto for __nanosleep.
7457 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7458 * sysdeps/mach/nanosleep.c: Likewise.
7459 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7460 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7462 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7463 _IO_list_unlock, and _IO_list_resetlock.
7464 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7465 _IO_list_unlock, and _IO_list_resetlock.
7467 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7468 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7469 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7470 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7472 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7473 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7474 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7475 __GI___longjmp alias.
7477 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7478 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7479 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7480 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7481 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7482 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7483 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7484 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7485 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7486 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7487 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7488 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7489 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7490 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7491 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7492 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7493 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7494 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7495 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7496 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7497 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7499 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7501 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7503 2002-12-30 Roland McGrath <roland@redhat.com>
7505 * Rules (generated): Target removed.
7506 * mach/Makefile (generated): Define it here instead.
7508 * math/Makefile (generated): Add m_*l and m_*f variants too.
7510 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7512 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7513 the to-be-deleted objects right away instead of later separately.
7514 The latter fails because the scope data structures of the DSO
7515 might already be gone.
7517 * elf/Makefile: Add rules to build and run reldep8 test.
7518 * elf/reldep8.c: New file.
7519 * elf/reldep8mod1.c: New file.
7520 * elf/reldep8mod2.c: New file.
7521 * elf/reldep8mod3.c: New file.
7522 Contributed by Jakub Jelinek.
7524 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
7526 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7527 checking of return value ENOSYS from getdents64.
7529 2002-12-28 Andreas Schwab <schwab@suse.de>
7531 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7532 ($(common-objpfx)s-%.d): Generalized from
7533 $(common-objpfx)s-proto.d rule.
7534 (common-generated): Add s-proto-cancel.d.
7535 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7536 cancellable syscalls.
7537 * sysdeps/unix/s-proto-cancel.S: New file.
7539 2002-12-29 Roland McGrath <roland@redhat.com>
7541 * resolv/res_libc.c: Move _res defn magic after res_init defn
7542 so _res macro is in effect for that code.
7544 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
7545 pattern for prepending $(..) so it doesn't affect $(foo).
7547 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7549 2002-12-29 Jakub Jelinek <jakub@redhat.com>
7551 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7554 2002-12-28 Ulrich Drepper <drepper@redhat.com>
7556 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7558 2002-12-28 Andreas Jaeger <aj@suse.de>
7560 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7562 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7564 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7566 * inet/herrno.c (__h_errno_location): Remove.
7567 * inet/Makefile (routines): Add herrno-loc.
7568 * resolv/res_libc.c (__res_state): Remove.
7569 * resolv/Makefile (routines): Add res-state.
7570 * sysdeps/generic/herrno-loc.c: New file.
7571 * sysdeps/generic/res-state.c: New file.
7573 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7575 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7576 Only define if USE_DL_SYSINFO is defined.
7578 2002-12-22 Jakub Jelinek <jakub@redhat.com>
7580 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7581 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7582 Define. Patch by Richard Henderson and Jes Sorensen.
7583 (PSEUDO): Remove unnecessary ;;.
7584 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7585 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7586 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7587 if not initializing thread pointer.
7588 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7589 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7590 make it weak also if NONTLS_INIT_TP.
7591 * sysdeps/unix/common/pause.c: Handle cancellation.
7592 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7593 (LOADSYSCALL): Remove.
7594 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7595 (SYSCALL_ERROR_HANDLER): Use it.
7596 (PSEUDO): Don't jump around error handler.
7597 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7598 jump around error handler.
7599 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7600 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7601 to __syscall_error_handler on failure.
7602 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7603 (LOADSYSCALL): Remove.
7604 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7605 (SYSCALL_ERROR_HANDLER): Use it.
7606 (PSEUDO): Don't jump around error handler.
7607 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7608 jump around error handler.
7609 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7610 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7611 to __syscall_error_handler on failure.
7613 2002-12-27 Roland McGrath <roland@redhat.com>
7615 * scripts/gen-as-const.awk: New file.
7616 * Makefile (distribute): Add it.
7617 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7618 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7620 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7622 2002-12-27 Andreas Schwab <schwab@suse.de>
7624 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
7626 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7628 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
7631 2002-12-27 Andreas Schwab <schwab@suse.de>
7633 * Makerules ($(common-objpfx)%.make): Filter through
7634 $(sed-remove-objpfx).
7636 2002-12-23 Roland McGrath <roland@redhat.com>
7638 * scripts/abilist.awk: Produce a more compact format, divided into
7639 stanzas for each version set, the set name listed only once.
7640 * scripts/extract-abilist.awk: New file.
7641 * scripts/merge-abilist.awk: New file.
7642 * Makerules (check-abi-%, update-abi-%): New pattern rules.
7643 (update-abi, check-abi): New targets.
7644 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
7646 2002-12-19 Roland McGrath <roland@redhat.com>
7648 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
7650 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
7653 2002-12-21 Andreas Schwab <schwab@suse.de>
7655 * elf/check-textrel.c (handle_file): Swap p_type.
7657 2002-12-21 Andreas Schwab <schwab@suse.de>
7659 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
7660 (INLINE_SYSCALL): Use it.
7661 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7662 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7664 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
7665 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
7667 2002-12-20 Art Haas <ahaas@airmail.net>
7669 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
7672 2002-12-21 Philip Blundell <philb@gnu.org>
7674 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
7675 top as seventh arg to __libc_start_main.
7676 Reported by paulnash@wildseed.com.
7678 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
7680 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
7681 compatibility cruft when new enough kernel is assumed.
7683 2002-12-20 Jakub Jelinek <jakub@redhat.com>
7685 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
7686 instead of INLINE_SYSCALL.
7688 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7690 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
7693 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
7694 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7695 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
7696 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7697 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7698 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7699 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7700 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7701 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7702 Patch by William Lee Irwin <wli@holomorphy.com>.
7704 2002-12-20 Andreas Schwab <schwab@suse.de>
7706 * locale/programs/ld-measurement.c (measurement_output): Fix
7709 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7711 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
7712 Redefine _IO_flockifle and _IO_funlockfile as inlines.
7714 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
7715 builds add "tls" in the search path.
7716 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
7717 (path_hwcap): Recognize "tls".
7719 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7721 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
7722 __waitpid instead of waitpid.
7724 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
7726 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
7727 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
7728 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
7730 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
7731 information for system calls.
7733 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
7736 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
7738 2002-12-19 Roland McGrath <roland@redhat.com>
7740 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
7741 * iconvdata/ibm922.h: Likewise.
7742 * iconvdata/ibm930.h: Likewise.
7743 * iconvdata/ibm932.h: Likewise.
7744 * iconvdata/ibm933.h: Likewise.
7745 * iconvdata/ibm935.h: Likewise.
7746 * iconvdata/ibm937.h: Likewise.
7747 * iconvdata/ibm939.h: Likewise.
7748 * iconvdata/ibm943.h: Likewise.
7749 * iconvdata/isiri-3342.h: Likewise.
7751 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7753 * test-skeleton.c (main): Make sure correct value is seen as
7754 argv[0] after adjustment of argv, and argc.
7756 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
7757 RTLD_CORRECT_DYNAMIC_WEAK is defined.
7759 2002-12-19 Jakub Jelinek <jakub@redhat.com>
7761 * nscd/connections.c (nscd_run): Shut up warning.
7762 * tst-ungetc.c (assert): Undefined before redefining.
7764 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7766 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
7769 2002-12-17 Art Haas <ahaas@airmail.net>
7771 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
7772 * iconvdata/cp775.h: Likewise.
7773 * iconvdata/ibm1046.h: Likewise.
7774 * iconvdata/ibm1124.h: Likewise.
7775 * iconvdata/ibm1129.h: Likewise.
7776 * iconvdata/ibm1132.h: Likewise.
7777 * iconvdata/ibm1133.h: Likewise.
7778 * iconvdata/ibm1160.h: Likewise.
7779 * iconvdata/ibm1161.h: Likewise.
7780 * iconvdata/ibm1162.h: Likewise.
7781 * iconvdata/ibm1163.h: Likewise.
7782 * iconvdata/ibm1164.h: Likewise.
7784 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7786 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
7787 __ASSUME_CLONE_THREAD_FLAGS is defined.
7788 * sysdeps/unix/sysv/linux/kernel-features.h
7789 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
7791 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7793 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
7795 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7797 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
7799 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7801 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
7803 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7805 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7806 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
7807 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
7810 2002-12-18 Jakub Jelinek <jakub@redhat.com>
7812 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
7814 [libc: GLIBC_PRIVATE]: ...here.
7815 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
7817 [libc: GLIBC_PRIVATE]: ...here.
7819 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7821 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
7822 Use it instead of directly int $0x80.
7823 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
7824 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
7825 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7826 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7827 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7828 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7830 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7832 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
7834 * elf/elf.h (AT_SYSINFO): New define.
7835 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
7838 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7840 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
7842 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
7844 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
7846 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
7848 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
7850 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
7852 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
7853 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
7854 available, otherwise __libc_maybe_call.
7855 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
7856 cancellation handling.
7857 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
7859 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
7861 * posix/regcomp.c (free_workarea_compile): Free the new member
7863 (analyze): Initialize ORG_INDICES.
7864 (duplicate_node_closure): Search for a existing node, which is
7865 duplicated from the node ORG_DEST and satisfies the constraint
7866 CONSTRAINT. And use it to avoid inifimite loop.
7867 (search_duplicated_node): New function.
7868 (duplicate_node): Store the index of the original node.
7869 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
7871 * posix/regex_internal.h (re_dfa_t): Add new members.
7873 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7875 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
7877 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7879 * sysdeps/posix/system.c (do_system): Add support for installation
7880 of cancellation handlers.
7881 * sysdeps/unix/sysv/linux/i386/system.c: New file.
7883 * stdlib/Makefile (tests): Add tst-system.
7884 * stdlib/tst-system.c: New file.
7886 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
7887 CENABLE]: Don't lose content of %ebx.
7889 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7891 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
7892 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
7894 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7896 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
7897 fails to return a function pointer don't use it.
7899 2002-12-16 Art Haas <ahaas@airmail.net>
7901 * io/ftw.c: Convert GCC extension initializer syntax to C99.
7902 * iconvdata/iso-ir-165.c: Likewise.
7903 * iconvdata/jis0208.c: Likewise.
7904 * iconvdata/jis0212.c: Likewise.
7906 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7908 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
7909 epoll_ctl, and epoll_wait.
7910 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
7911 epoll_create, epoll_ctl, and epoll_wait.
7912 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
7913 Davide Libenzi <davidel@xmailserver.org>.
7914 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
7915 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7918 2002-12-16 Art Haas <ahaas@airmail.net>
7920 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
7922 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
7923 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
7924 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
7926 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7928 * stdio-common/Makefile (routines): Remove lockfile. Add
7929 flockfile, ftrylockfile, and funlockfile.
7930 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
7931 * sysdeps/generic/flockfile.c: New file.
7932 * sysdeps/generic/ftrylockfile.c: New file.
7933 * sysdeps/generic/funlockfile.c: New file.
7935 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7937 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
7938 macros instead of doing the calls directly.
7939 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
7940 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
7943 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7945 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
7946 * sysdeps/ieee754/bits/nan.h: Likewise.
7948 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
7949 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
7951 2002-12-16 Roland McGrath <roland@redhat.com>
7953 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
7954 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
7955 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
7957 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
7958 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
7960 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
7961 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
7962 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
7963 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
7964 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
7965 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
7966 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
7967 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
7969 2002-12-13 Paul Eggert <eggert@twinsun.com>
7971 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
7972 is now u_int, not int.
7973 (struct XDR.x_handy): Now u_int, not int.
7974 * sunrpc/xdr_mem.c: Include <limits.h>.
7975 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
7976 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
7977 x_handy is now unsigned, not signed.
7978 Do not decrement x_handy if no change is made.
7979 (xdrmem_setpos): Check for int overflow.
7980 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
7981 (xdr_sizeof): Remove cast that is now unnecessary, now that
7982 x_handy is unsigned.
7984 2002-12-15 Art Haas <ahaas@airmail.net>
7986 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
7987 * iconvdata/gap.awk: Likewise.
7988 * iconvdata/gen-8bit-gap-1.sh: Likewise.
7989 * iconvdata/gen-8bit-gap.sh: Likewise.
7990 * locale/C-address.c: Likewise.
7991 * locale/C-collate.c: Likewise.
7992 * locale/C-ctype.c: Likewise.
7993 * locale/C-identification.c: Likewise.
7994 * locale/C-measurement.c: Likewise.
7995 * locale/C-messages.c: Likewise.
7996 * locale/C-monetary.c: Likewise.
7997 * locale/C-name.c: Likewise.
7998 * locale/C-numeric.c: Likewise.
7999 * locale/C-paper.c: Likewise.
8000 * locale/C-telephone.c: Likewise.
8001 * locale/C-time.c: Likewise.
8002 * nscd/connections.c: Likewise.
8003 * nscd/grpcache.c: Likewise.
8004 * nscd/hstcache.c: Likewise.
8005 * nscd/pwdcache.c: Likewise.
8006 * stdio-common/vfprintf.c: Likewise.
8007 * stdlib/random.c: Likewise.
8008 * sysdeps/generic/siglist.c: Likewise.
8009 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8010 * sysdeps/ieee754/bits/nan.h: Likewise.
8011 * sysdeps/posix/sprofil.c: Likewise.
8012 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8013 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8014 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8016 2002-12-15 Roland McGrath <roland@redhat.com>
8018 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8020 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8021 <tls.h> here, no need for it.
8022 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8024 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8025 parameter, not varargs parameter.
8027 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8028 argument so it's not an unused variable.
8030 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8031 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8034 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8036 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8038 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8039 original __libc_fcntl code. Just renamed.
8041 2002-12-15 Andreas Schwab <schwab@suse.de>
8043 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8045 2002-12-14 Olaf Hering <olh@suse.de>
8047 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8048 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8050 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8052 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8054 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8055 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8057 * sysdeps/unix/sysv/linux/open64.c: New file.
8059 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8060 * sysdeps/posix/open64.c: Likewise.
8061 * sysdeps/posix/sigpause.c: Likewise.
8062 * sysdeps/posix/sigwait.c: Likewise.
8063 * sysdeps/posix/system.c: Likewise.
8064 * sysdeps/posix/waitid.c: Likewise.
8065 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8066 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8067 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8068 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8069 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8070 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8071 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8072 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8073 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8074 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8075 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8076 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8077 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8078 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8079 * sysdeps/unix/sysv/linux/send.S: Likewise.
8080 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8081 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8082 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8083 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8084 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8085 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8086 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8087 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8088 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8089 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8090 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8091 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8093 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8095 * sysdeps/generic/sysdep-cancel.h: New file.
8096 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8098 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8099 recvmsg, send, sendmsg, sendto): Make cancelable.
8100 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8101 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8102 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8103 sendto, osf_select): Likewise.
8104 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8105 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8106 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8107 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8109 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8110 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8111 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8112 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8114 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8115 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8116 sendto, select): Likewise.
8117 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8118 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8120 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8121 select, fcntl): Likewise.
8122 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8123 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8124 read, readv, select, sigsuspend, write, writev): Likewise.
8126 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8128 * dirent/bug-readdir1.c: Include unistd.h.
8130 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8132 * locale/programs/locale.c: Include locarchive.h.
8133 (ARCHIVE_NAME): Define.
8134 (write_archive_locales): New function.
8135 (write_locales): Use it. Ensure the same locale is not printed
8136 multiple times in verbose mode.
8137 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8138 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8140 (struct nameent): New type.
8141 (nameentcmp): New function.
8143 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8145 * posix/regex_internal.c (re_string_context_at): Guard wide char
8146 code with #ifdef RE_ENABLE_I18N.
8148 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8150 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8152 2002-12-13 Roland McGrath <roland@redhat.com>
8154 * posix/bug-regex15.c: New file.
8155 * posix/Makefile (tests): Add it.
8157 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8158 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8160 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8162 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8164 * misc/syslog.c (log_cleanup): Don't use parameter in
8165 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8166 pass NULL instead of a pointer to syslog_lock.
8168 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8170 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8171 linker map for all iconv modules.
8172 (distribute): Add gconv.map.
8173 * iconvdata/gconv.map: New file.
8175 * elf/Makefile: Also check all iconv modules for text relocations.
8177 * stdlib/Makefile: Remove code to automatically import GMP.
8179 * elf/Makefile (tests): Add rules to build and run check-textrel.
8180 * elf/check-textrel.c: New file.
8182 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8185 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8187 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8190 2002-04-30 Bruno Haible <bruno@clisp.org>
8192 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8193 the encoding if it already has slashes.
8194 Reported by Perry Rapp <prapp@erols.com>.
8196 2002-12-11 Roland McGrath <roland@redhat.com>
8198 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8199 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8200 Turn off PIC for compiling this file.
8202 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8204 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8205 definitions. Not needed.
8206 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8207 pthread routines directly.
8208 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8210 (arena_get2): Don't look at return value of mutex_lock.
8212 2002-12-11 Roland McGrath <roland@redhat.com>
8214 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8215 elf-init.o instead of compiling a PIC version.
8217 2002-12-11 Bruno Haible <bruno@clisp.org>
8219 * intl/gettext.h: Renamed to ...
8220 * intl/gmo.h: ... here.
8221 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8222 * intl/gettextP.h: Update.
8223 * intl/loadmsgcat.c: Update.
8225 * intl/gettextP.h (PARAMS): Make more portable.
8226 (attribute_hidden): Define as empty macro if not already defined.
8227 * intl/hash-string.h (PARAMS): Make more portable.
8228 * intl/loadinfo.h (PARAMS): Likewise.
8229 * intl/plural-exp.h (PARAMS): Likewise.
8230 (attribute_hidden): Move definition near the definition of
8233 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8234 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8236 2002-07-13 Bruno Haible <bruno@clisp.org>
8238 * intl/dcigettext.c (freea): New macro.
8239 (FREE_BLOCKS): Free also the registered blocks.
8240 (DCIGETTEXT): Free the 'search' variable.
8241 Reported by Andreas Fischer <a.fischer@asentics.de>.
8243 2002-04-27 Bruno Haible <bruno@clisp.org>
8245 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8246 * intl/dcigettext.c: Likewise.
8247 * intl/dcgettext.c: Likewise.
8248 * intl/dgettext.c: Likewise.
8249 * intl/gettext.c: Likewise.
8250 * intl/dcngettext.c: Likewise.
8251 * intl/dngettext.c: Likewise.
8252 * intl/ngettext.c: Likewise.
8253 * intl/textdomain.c: Likewise.
8254 * intl/bindtextdom.c: Likewise.
8255 * intl/plural-exp.h: Likewise.
8257 2002-01-02 Bruno Haible <bruno@clisp.org>
8259 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8261 2001-04-30 Bruno Haible <bruno@clisp.org>
8263 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8264 default macro definitions. Needed for mingw32.
8266 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8268 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8269 __builtin_constant_p to macro parameter.
8271 * sysdeps/generic/sigpause.c: Define all functions as weak.
8272 * sysdeps/posix/sigpause.c: Likewise.
8274 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8277 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8279 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8280 Explicitly align the array to sizeof (void *).
8281 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8283 * include/libc-symbols.h: Fix a comment typo.
8285 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8286 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8288 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8290 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8291 (__libc_sigsuspend): Likewise.
8292 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8293 (__libc_sigsuspend): Likewise.
8294 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8295 (creat): New weak alias.
8297 2002-12-10 Roland McGrath <roland@redhat.com>
8299 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8300 contributes a manual chapter.
8301 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8304 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8305 and move contents to ...
8306 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8307 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8308 it instead of duplicating its contents.
8309 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8311 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8313 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8315 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8317 (EXTRA_LD_ENVVARS): Use it.
8318 (DL_OSVERSION_INIT): Define.
8319 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8321 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8323 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8325 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8327 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8328 call. It is not allowed to destroy pthread mutexes which are
8329 still in use even though it is safe for our implementations. If
8330 somebody still uses the descriptor it is a bug.
8332 2002-12-09 Richard Henderson <rth@redhat.com>
8334 * csu/abi-note.S: Use .p2align, not .align.
8336 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8338 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8339 __libc_select aliases.
8341 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8344 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8346 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8348 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8350 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8352 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8354 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8355 __libc___xpg_sigpause aliases.
8357 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8359 * misc/error.c: Remove use of USE_IN_LIBIO.
8361 2002-12-08 Roland McGrath <roland@redhat.com>
8363 * elf/Makefile (tests): Uncomment tst-array[123].
8364 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8365 * csu/elf-init.c: New file.
8366 * csu/Makefile (routines, static-only-routines): Add elf-init.
8367 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8368 and __libc_csu_fini in place of _fini.
8369 * sysdeps/arm/elf/start.S: Likewise.
8370 * sysdeps/cris/elf/start.S: Likewise.
8371 * sysdeps/hppa/elf/start.S: Likewise.
8372 * sysdeps/i386/elf/start.S: Likewise.
8373 * sysdeps/ia64/elf/start.S: Likewise.
8374 * sysdeps/m68k/elf/start.S: Likewise.
8375 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8376 * sysdeps/mips/elf/start.S: Likewise.
8377 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8378 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8379 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8380 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8381 * sysdeps/sh/elf/start.S: Likewise.
8382 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8383 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8384 * sysdeps/x86_64/elf/start.S: Likewise.
8386 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8387 struct containing function ptr and value, free it.
8388 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8389 It's not safe to let the new thread use the SIGEV pointer.
8391 2001-10-20 Paul Eggert <eggert@twinsun.com>
8393 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8394 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8395 Use strerror_r that is only a macro, even if it is not a function.
8396 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8397 (private_strerror): Use prototypes, not old-style function definition.
8398 (print_errno_message): New function.
8399 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8401 (error_tail, error, error_at_line): Use it.
8403 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8405 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8407 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8409 * scripts/output-format.sed: Fix bug in one of the s expressions
8410 which used / for one too many things.
8412 * include/unistd.h: Declare __libc_close.
8414 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8416 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8418 2002-12-07 Roland McGrath <roland@redhat.com>
8420 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8421 from 2002-12-06, but remove unnecessary memset call without removing
8422 necessary copy of initialization image.
8424 * Makerules ($(common-objpfx)format.lds): New target.
8425 (common-generated): Add it.
8426 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8427 * scripts/output-format.sed: New file.
8428 * Makefile (distribute): Add it.
8430 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8432 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8433 Reported by Art Haas <ahaas@airmail.net>.
8435 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8437 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8439 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8441 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8443 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8445 * test-skeleton.c (timeout_handler): Allow expected signal to be
8448 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8450 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8452 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8454 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8455 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8456 Reported by Jeff Bailey <jbailey@nisa.net>.
8458 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8460 * sysdeps/generic/libc-tls.c: Undo last patch.
8462 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8464 * include/signal.h: Define raise with libc_hidden_proto.
8466 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8467 __execve instead of snprintf and execve.
8469 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8472 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8474 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8475 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8477 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8479 * misc/syslog.c (log_cleanup): New function.
8480 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8481 (closelog): Likewise.
8483 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8484 * elf/dl-iteratephdr.c: Likewise.
8485 * elf/dl-lookup.c: Likewise.
8486 * elf/dl-misc.c: Likewise.
8487 * elf/dl-open.c: Likewise.
8488 * elf/dl-support.c: Likewise.
8489 * elf/rtld.c: Likewise.
8490 * sysdeps/generic/ldsodefs.h: Likewise.
8491 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8492 * sysdeps/mach/bits/libc-lock.h: Likewise.
8493 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8495 2002-12-06 Roland McGrath <roland@redhat.com>
8497 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8499 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8500 (malloc_starter, memalign_starter, free_starter): Don't define these.
8501 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8502 Don't declare them either.
8503 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8504 __pthread_initialize, so no need to set hooks to *_starter.
8505 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8506 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8507 (__libc_malloc_pthread_startup): New function.
8508 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8510 * malloc/hooks.c (memalign_starter): New function.
8511 * malloc/malloc.c: Declare it.
8512 * malloc/arena.c (save_memalign_hook): New variable.
8513 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8515 * elf/dl-minimal.c (free): Clear the memory.
8516 (calloc): Just call malloc, knowing all memory it returns is cleared.
8518 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8519 malloc and memset; calloc can avoid the zeroing when redundant.
8520 (_dl_tls_setup): Likewise.
8521 * elf/dl-load.c (decompose_rpath): Likewise.
8522 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8523 call, since memory from sbrk at startup is already zero.
8525 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8526 error string for failure, null for success. Update callers.
8527 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8528 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8530 2002-12-05 Jakub Jelinek <jakub@redhat.com>
8532 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8534 (readahead): Change args to i:iii.
8535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8536 Change args to i:iii.
8537 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8540 2002-12-05 Roland McGrath <roland@redhat.com>
8542 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8543 call all functions rather than none.
8544 Reported by Mark P. Mitchell <mark@codesourcery.com>.
8546 2002-12-04 Roland McGrath <roland@redhat.com>
8548 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8549 on _nl_current_LC_* variables.
8551 2002-12-05 Ulrich Drepper <drepper@redhat.com>
8553 * dirent/bug-readdir1.c (main): Don't call closedir, just close
8554 the file descriptor. This is testing what the bug report was about.
8556 2002-12-04 Ulrich Drepper <drepper@redhat.com>
8558 * po/be.po: New file.
8560 * argp/Makefile (tests): Add tst-argp1.
8562 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8563 Change type of _attribute to void*.
8564 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8565 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8566 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8567 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8568 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8570 2002-12-04 Roland McGrath <roland@redhat.com>
8572 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8573 members to the end, so a libpthread compiled with !USE_TLS will still
8574 find other members properly.
8576 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8577 operand for DEST memory. Fix dummy input operand to use SRC.
8578 Reported by Davin McCall <davmac@ozonline.com.au>.
8580 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8581 alignment when initializing the DTV entry.
8583 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8584 when TLS has not been set up, try to set it up if we can.
8585 * elf/tst-tls4.c: Revert last change.
8586 * elf/tst-tls5.c: Likewise.
8587 * elf/tst-tls6.c: Likewise.
8588 * elf/tst-tls7.c: Likewise.
8589 * elf/tst-tls8.c: Likewise.
8590 * elf/tst-tls9.c: Likewise.
8592 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8593 * sysdeps/generic/ldsodefs.h: Declare it.
8594 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8595 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8596 function, broken out of __libc_setup_tls.
8597 (init_static_tls): Likewise.
8598 (__libc_setup_tls): Call them.
8599 (_dl_tls_setup): New function, uses new subroutines.
8601 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8602 Clear the pointer when returning true.
8603 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8604 first element of the slotinfo list too.
8606 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8609 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8610 (_dl_determine_tlsoffset): Likewise.
8612 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8613 startup_error_tsd, made global.
8614 (dl_main): Update initialization.
8615 * elf/dl-tsd.c: Likewise.
8616 * sysdeps/generic/ldsodefs.h: Declare it.
8618 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8620 * manual/texinfo.tex: Update from latest upstream version.
8622 2002-12-03 Roland McGrath <roland@redhat.com>
8624 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
8625 area surplus in calculation for sbrk call.
8627 * iconvdata/cp1125.c: New file.
8628 * iconvdata/Makefile (distribute): Add it.
8629 (modules): Add CP1125.
8630 (gen-8bit-gap-modules): Add cp1125.
8631 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
8632 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
8634 2002-12-03 Andreas Jaeger <aj@suse.de>
8636 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8638 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8640 * sysdeps/posix/system.c (do_system): Make signal handler
8641 installation thread safe.
8643 2002-12-02 Roland McGrath <roland@redhat.com>
8645 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
8646 caller from EXTRA to -.
8647 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8648 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8649 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8651 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
8653 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
8654 bits of RM are cleared.
8656 2002-12-02 Roland McGrath <roland@redhat.com>
8658 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
8659 TLS setup is required.
8660 * elf/tst-tls5.c: Likewise.
8661 * elf/tst-tls6.c: Likewise.
8662 * elf/tst-tls7.c: Likewise.
8663 * elf/tst-tls8.c: Likewise.
8664 * elf/tst-tls9.c: Likewise.
8666 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
8667 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
8668 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
8669 for being null before calling free_slotinfo.
8670 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
8671 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
8673 2002-11-30 Bruno Haible <bruno@clisp.org>
8675 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
8676 (struct __gconv_step): New field __btowc_fct.
8677 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
8678 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
8680 (__gconv_btwoc_ascii): New declaration.
8681 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8682 (__gconv_btwoc_ascii): New function.
8683 * iconv/gconv_builtin.h: Add BtowcFct argument to all
8684 BUILTIN_TRANSFORMATION invocations.
8685 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8686 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
8687 * iconv/gconv_builtin.c (map): New field btowc_fct.
8688 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
8690 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
8691 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
8692 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
8693 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
8694 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
8695 (gconv_init): Initialize __btowc_fct field.
8696 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
8697 * iconv/loop.c: Document ONEBYTE_BODY.
8698 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
8699 Undefine ONEBYTE_BODY at the end.
8700 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
8701 * iconvdata/8bit-gap.c (NONNUL): New macro.
8702 (BODY for FROM_LOOP): Use it.
8703 (ONEBYTE_BODY): New macro.
8704 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
8705 (NONNUL): New macro.
8706 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
8707 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
8708 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
8709 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
8710 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
8711 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
8712 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
8713 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
8714 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
8715 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
8716 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
8717 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
8718 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
8719 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
8720 * iconvdata/ibm932.c: Include <stdbool.h>.
8721 (TRUE, FALSE): Remove macros.
8722 (BODY for FROM_LOOP): Remove unused variable rp1.
8723 (ONEBYTE_BODY): New macro.
8724 (BODY for TO_LOOP): Use bool.
8725 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
8726 * iconvdata/ibm943.c: Include <stdbool.h>.
8727 (TRUE, FALSE): Remove macros.
8728 (BODY for FROM_LOOP): Remove unused variable rp1.
8729 (ONEBYTE_BODY): New macro.
8730 (BODY for TO_LOOP): Use bool.
8731 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
8732 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
8733 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
8734 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
8735 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
8736 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
8737 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
8738 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
8739 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
8740 * iconvdata/gbbig5.c: Tweak comment.
8742 2002-12-02 Ulrich Drepper <drepper@redhat.com>
8744 * po/fi.po: Update from translation team.
8746 2002-12-01 Roland McGrath <roland@redhat.com>
8748 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8749 testing getdents64 return value.
8751 * scripts/versions.awk: Don't pass -n flag to sort command.
8753 * posix/bug-regex13.c: Include <string.h>.
8755 * sysdeps/generic/libc-start.c (__libc_start_main): Do
8756 DL_SYSDEP_OSCHECK here.
8757 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
8758 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
8760 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
8761 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
8763 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
8764 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
8766 * include/link.h: Comment typo fix.
8768 2002-12-01 Roland McGrath <roland@frob.com>
8770 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
8771 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
8772 _POSIX_MEMORY_PROTECTION): Likewise.
8773 (_POSIX_POLL, _POSIX_SELECT): Removed.
8775 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8777 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
8778 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
8780 2002-11-28 Jakub Jelinek <jakub@redhat.com>
8782 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
8784 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
8787 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8789 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
8790 branch prediction buffers by using unpaired call/ret.
8792 2002-11-27 Ulrich Drepper <drepper@redhat.com>
8794 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
8795 first parameters constraint string.
8796 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
8798 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
8800 * posix/regcomp.c (parse_expression): Set the bit since the back
8801 reference is used in the regular expression.
8802 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
8804 (re_node_set_init_copy): Likewise.
8805 * posix/regex_internal.h (state_array_t): New structure.
8806 (re_sub_match_last_t): Likewise.
8807 (re_sub_match_top_t): Likewise.
8808 (re_match_context_t): Add new members.
8809 (re_dfa_t): Likewise.
8810 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
8811 to check the matching is really correct, and retry if failed.
8812 Move the routin pruning the impossible nodes from here, ...
8813 (prune_impossible_nodes): To this function.
8814 (check_matching): Invoke check_subexp_matching_top, and replace
8815 redundant checking with transit_state_bkref invocation.
8816 (proceed_next_node): Replace strncmp with memcmp. Reported by
8817 Paolo Bonzini <bonzini@gnu.org>.
8818 (update_cur_sifted_state): Remove search_subexp invocation.
8819 (search_subexp): Remove this function.
8820 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
8822 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
8823 Remove unused invocation of match_ctx_add_entry.
8824 (transit_state): Invoke check_subexp_matching_top.
8825 (check_subexp_matching_top): New function.
8826 (transit_state_bkref): Remove unused array.
8827 Merge transit_state_bkref_loop.
8828 (transit_state_bkref_loop): Use get_subexp instead of
8829 sift_states_backward. Use search_cur_bkref_entry for optimization.
8830 Merge this function to transit_state_bkref.
8831 (get_subexp): New function.
8832 (get_subexp_sub): Likewise.
8833 (find_subexp_node): Likewise.
8834 (check_arrival): Likewise.
8835 (check_arrival_expand_ecl): Likewise.
8836 (check_arrival_expand_ecl_sub): Likewise.
8837 (expand_bkref_cache): Likewise.
8838 (match_ctx_init): Initialize new members.
8839 (match_ctx_clean): New function.
8840 (match_ctx_free): Release new members.
8841 (match_ctx_free_subtops): New function.
8842 (match_ctx_add_entry): Fix indent.
8843 (search_cur_bkref_entry): New function.
8844 (match_ctx_add_subtop): Likewise.
8845 (match_ctx_add_sublast): Likewise.
8847 2002-11-25 Ulrich Drepper <drepper@redhat.com>
8849 * iconv/Makefile (tests): Remove tst-iconv4.c
8850 * iconv/tst-iconv4.c: Moved to...
8851 * iconvdata/tst-iconv4.c: ...here. New file.
8852 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
8854 2002-11-25 Roland McGrath <roland@redhat.com>
8856 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
8857 Grok AF_LINK if defined.
8858 From Momchil Velikov <velco@fadata.bg>.
8860 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
8861 brdaddr, or dstaddr, just set those pointers to null and don't fail.
8862 Reported by Momchil Velikov <velco@fadata.bg>.
8864 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
8865 is > sizeof IFR->ifa_addr, advance past the whole longer length.
8866 (__ifreq): Count up NIFS that way too.
8867 Reported by Momchil Velikov <velco@fadata.bg>.
8869 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
8871 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
8872 and <fpu_control.h>.
8874 2002-11-24 Ulrich Drepper <drepper@redhat.com>
8876 * elf/elf.h (EM_ST19): Fix typo.
8878 2002-11-25 Jakub Jelinek <jakub@redhat.com>
8880 * include/errno.h (__set_errno): Define as errno = val
8883 2002-11-24 Roland McGrath <roland@redhat.com>
8885 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
8886 * sysdeps/posix/writev.c: Likewise.
8887 From Momchil Velikov <velco@fadata.bg>.
8889 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
8890 calling *GL(dl_error_catch_tsd) for a thread-local location.
8891 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
8892 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
8893 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
8895 * libio/iofflush.c: Add libc_hidden_def.
8896 * libio/iofwrite.c: Likewise.
8897 * sysdeps/generic/sigtimedwait.c: Likewise.
8898 * sysdeps/generic/sigwaitinfo.c: Likewise.
8899 * sysdeps/posix/sigwait.c: Likewise.
8900 Reported by Momchil Velikov <velco@fadata.bg>.
8902 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
8903 to match <arpa/inet.h> declaration.
8904 * inet/inet_netof.c (inet_netof): Likewise.
8905 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
8906 Reported by Momchil Velikov <velco@fadata.bg>.
8908 * configure.in: Skip AUTOCONF check under --without-cvs.
8909 * configure: Regenerated.
8911 * posix/Makefile (headers): Add bits/pthreadtypes.h.
8912 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
8913 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
8915 2002-11-24 Andreas Schwab <schwab@suse.de>
8917 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
8920 2002-11-19 Jim Meyering <jim@meyering.net>
8922 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
8924 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
8926 2002-11-23 Roland McGrath <roland@redhat.com>
8928 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
8929 Just produce hex output for datum sizes.
8931 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
8932 Reported by Luca Barbieri <ldb@ldb.ods.org>.
8934 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
8936 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
8937 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8938 and __unused3 fields.
8939 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
8940 [__WORDSIZE == 32]: Only PPC32 requires __unused1
8941 and __unused2 fields.
8942 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
8943 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8944 __unused3, and __unused4 fields.
8946 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
8947 obtain lowest address for profiling in __monstartup call.
8949 2002-11-21 Roland McGrath <roland@redhat.com>
8951 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
8952 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
8954 * locale/localeinfo.h (struct locale_data): Revert last change.
8956 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
8957 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8959 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
8960 __NR_pread64 if not defined.
8961 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
8962 From Ian Wienand <ianw@gelato.unsw.edu.au>.
8964 2002-11-21 Roland McGrath <roland@frob.com>
8966 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
8967 __libc_multiple_libcs here. Call __setfpucw.
8969 2002-11-21 Ulrich Drepper <drepper@redhat.com>
8971 * elf/Makefile (tests): Don't run test-arrayX tests for now.
8973 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
8974 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
8975 CLONE_CHILD_*TID flags.
8977 2002-11-20 Andreas Jaeger <aj@suse.de>
8979 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
8980 We pass struct ucontext on x86-64.
8982 (GET_FRAME): Adjust.
8983 (GET_STACK): Adjust.
8985 2002-11-20 Roland McGrath <roland@redhat.com>
8987 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
8988 conditionalize [! DO_VERSIONING] #error.
8990 * scripts/abilist.awk: Grok function descriptor symbols.
8992 * intl/tst-gettext.c (main): Check return values from setlocale.
8993 Add necessary unsetenv's to make LANG=existing-locale check work.
8995 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
8996 so aborted prior runs don't confuse things.
8998 * locale/localeinfo.h (struct locale_data: union locale_data_value):
8999 Use uintptr_t instead of unsigned int for `word' member.
9000 (_NL_CURRENT_WORD): Cast to uint32_t.
9002 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9005 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9007 * elf/tls-macros.h: Add IA-64 definitions.
9008 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9010 * iconv/Makefile (tests): Add tst-iconv4.
9011 * iconv/tst-iconv4.c: New file.
9013 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9014 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9015 __GCONV_INCOMPLETE_INPUT.
9016 (ucs4le_internal_loop): Likewise.
9017 (ucs4le_internal_loop_unaligned): Likewise.
9018 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9019 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9020 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9022 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9025 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9026 * sysdeps/posix/getaddrinfo.c: Likewise.
9028 * include/alloca.h (extend_alloca): New define. Based on stack
9029 direction it'll try to append to the previouls allocated buffer.
9031 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9033 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9034 use the same service for AF_INET and AF_INET6.
9036 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9038 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9039 of stack space instead of 16k.
9041 2002-11-18 Wolfram Gloger <wg@malloc.de>
9044 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9045 nothing if not initialized. Bug report from Marcus Brinkmann
9046 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9048 2002-11-19 Roland McGrath <roland@redhat.com>
9050 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9053 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9054 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9055 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9056 * configure: Regenerated.
9058 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9060 * include/dlfcn.h: __libc_dlopen is now a macro calling
9061 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9062 (__libc_dlopen_mode): New prototype.
9063 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9064 new parameter. Store new parameter in mode field of structure passed
9066 (struct do_dlopen_args): Add new field mode.
9067 (do_dlopen): Pass mode from parameter structure to _dl_open.
9069 2002-11-11 Randolf Chung <tausq@debian.org>
9071 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9072 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9073 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9075 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9077 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9078 Set -mdisable-fpregs for this file.
9080 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9082 * sysdeps/unix/sysv/linux/configure.in:
9083 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9084 from gcc-3.0 era for backwards compatibility.
9085 * sysdeps/unix/sysv/linux/configure: Regenerate.
9087 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9088 Define mcontext_t as a sigcontext.
9090 2002-11-18 Roland McGrath <roland@redhat.com>
9092 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9093 Free memory in `last_result' if it was used.
9095 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9096 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9097 Do the parsing inline instead of copying strings and calling
9098 inet_network, and properly skip all alias names not matching the form.
9100 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9102 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9104 * manual/pattern.texi (Wordexp Example): Fix sample code.
9106 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9107 childs stack which will be loaded into the %esi register.
9109 2002-11-14 Paul Eggert <eggert@twinsun.com>
9111 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9112 overflow when skipping the question part and when unpacking aliases.
9114 2002-11-15 Roland McGrath <roland@redhat.com>
9116 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9117 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9118 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9120 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9122 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9123 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9125 2002-11-15 Roland McGrath <roland@redhat.com>
9127 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9128 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9129 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9130 (+make-include-of-dep): New canned sequence.
9132 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9133 From Dmitry V. Levin <ldv@altlinux.org>.
9135 2002-11-14 Roland McGrath <roland@redhat.com>
9137 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9138 * inet/herrno.c (__libc_h_errno): Likewise.
9139 * resolv/res_libc.c (__libc_res): Likewise.
9140 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9141 (__res_state) [! USE___THREAD]: Don't define as weak.
9142 * csu/Versions: Revert last change.
9143 * resolv/Versions: Revert last change.
9145 * Makerules ($(common-objpfx)%.make): New pattern rule.
9146 * tls.make.c: New file.
9147 * Makefile (distribute): Add it.
9149 * sysdeps/generic/errno.c [! USE___THREAD]
9150 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9151 with compat_symbol so they are not link-time visible.
9152 [! USE___THREAD] (__libc_errno): New alias for errno.
9153 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9154 Add __libc_errno here.
9155 * inet/herrno.c [USE___THREAD]: Use this conditional
9156 in place of [USE_TLS && HAVE___THREAD].
9157 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9158 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9160 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9161 * resolv/res_libc.c [! USE___THREAD]
9162 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9163 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9164 (__libc_res): Define as alias for _res.
9165 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9166 Add __libc_h_errno and __libc_res here.
9168 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9170 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9171 * resolv/Versions (h_errno, _res): Likewise.
9173 2002-11-14 Roland McGrath <roland@redhat.com>
9175 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9176 (%.symlist): Likewise.
9178 2002-11-13 Roland McGrath <roland@redhat.com>
9180 * scripts/abilist.awk: New file.
9181 * Makefile (distribute): Add it.
9182 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9183 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9184 [$(subdir) = elf] (tests): Depend on libc.symlist.
9185 (generated, common-generated): Add those files.
9187 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9188 * configure: Regenerated.
9189 * config.make.in (OBJDUMP): New variable, substituted by configure.
9191 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9192 (mallochook, reallochook): Set them up.
9193 (checkhdr): Check HDR->magic2 value.
9194 (freehook): Reset HDR->magic2.
9195 (memalignhook): New static function.
9196 (old_memalign_hook): New static variable.
9197 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9199 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9202 2002-11-13 Andreas Jaeger <aj@suse.de>
9204 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9206 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9208 2002-11-11 Paul Eggert <eggert@twinsun.com>
9210 * manual/crypt.texi (Cryptographic Functions): Mention that
9211 the MD5 one-way algorithm is compatible with BSD's.
9213 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9215 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9217 (re_string_reconstruct): Calculate the context by itself when the
9218 offset points out of the valid range.
9219 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9220 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9221 (IS_WIDE_WORD_CHAR): New macro.
9222 (IS_WIDE_NEWLINE): New macro.
9224 2002-11-12 Andreas Jaeger <aj@suse.de>
9226 * sysdeps/x86_64/strchr.S: Don't use one register for two
9227 purposes, this fixes a bug noticed by test-strchr.c.
9229 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9232 2002-11-12 Roland McGrath <roland@redhat.com>
9234 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9235 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9237 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9238 instead of <pt-machine.h>.
9239 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9241 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9243 2002-11-10 Roland McGrath <roland@redhat.com>
9245 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9246 Call fputs instead of fwprintf (simpler to follow in debugger).
9248 * crypt/md5-crypt.c: Doc fix.
9250 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9251 the beginning of generated target commands.
9253 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9254 dependencies for these in case implicit rule search skipped the
9255 nonexistent source directory.
9256 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9257 files with $(object-suffixes) as targets too.
9258 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9259 and a target for it using $(make-target-directory).
9261 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9263 2002-11-10 Roland McGrath <roland@frob.com>
9265 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9266 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9268 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9269 l_start == 0 and l_len == 1 as we do l_len == 0.
9271 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9273 * po/da.po: Update from translation team.
9275 2002-11-10 Roland McGrath <roland@redhat.com>
9277 * config.make.in (includedir): New variable, substituted by configure.
9278 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9279 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9281 2002-11-10 Andreas Jaeger <aj@suse.de>
9283 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9284 REG_OLDMASK and REG_CR2 to synch with kernel header.
9287 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9289 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9290 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9291 (__nss_setent): Likewise.
9292 (__nss_getent_r): Likewise.
9293 * inet/getnetgrent_r.c (innetgr): Likewise.
9294 (__internal_setnetgrent_reuse): Likewise.
9295 (internal_getnetgrent_r): Likewise.
9296 * inet/ether_hton.c (ether_hostton): Likewise.
9297 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9298 * sunrpc/netname.c (netname2user): Likewise.
9299 * sunrpc/publickey.c (getpublickey): Likewise.
9300 (getsecretkey): Likewise.
9302 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9304 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9305 error in range calculation.
9307 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9309 * string/test-strspn.c (do_test): Ensure zero termination.
9310 * string/test-strpbrk.c (do_test): Likewise.
9311 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9312 * string/test-strncpy.c (stupid_strncpy): Likewise.
9313 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9315 2002-10-08 Roland McGrath <roland@redhat.com>
9317 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9320 2002-09-22 H.J. Lu <hjl@gnu.org>
9322 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9323 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9324 only if __NR_mmap2 is defined.
9326 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9327 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9328 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9329 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9331 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9333 * posix/bug-regex13.c (tests): Add new test.
9335 * string/test-strchr.c (stupid_strchr): New function.
9336 (do_random_tests): Make sure the string is zero terminated.
9337 * string/test-strpbrk.c (stupid_strpbrk): New function.
9338 (do_random_tests): Make sure the string is zero terminated.
9339 * string/test-strcmp.c (stupid_strcmp): New function.
9340 (do_random_tests): Make sure the strings are zero terminated.
9341 * string/test-strspn.c (stupid_strspn): New function.
9342 (simple_strspn): Rename rej argument to acc.
9343 (do_random_tests): Make sure the string is zero terminated.
9344 * string/test-strcspn.c (stupid_strcspn): New function.
9345 * string/test-strncpy.c (stupid_strncpy): New function.
9346 * string/test-stpncpy.c (stupid_stpncpy): New function.
9347 * string/test-strncmp.c (stupid_strncmp): New function.
9348 (do_random_tests): Make sure the strings are zero terminated.
9349 * string/test-string.h (impl_t): Change test into long.
9350 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9352 2002-11-08 Roland McGrath <roland@redhat.com>
9354 * sysdeps/ia64/elf/configure.in: Add TLS check.
9355 From Ian Wienand <ianw@cse.unsw.edu.au>.
9356 * sysdeps/ia64/elf/configure: Regenerated.
9358 2002-11-07 Roland McGrath <roland@redhat.com>
9360 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9361 place of _IO_new_do_write.
9362 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9363 #undef before versioned_symbol use.
9365 2002-11-07 Richard Henderson <rth@redhat.com>
9367 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9368 * configure: Regenerated.
9369 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9370 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9371 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9372 _dl_fini via gp-relative relocations.
9373 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9375 * elf/tls-macros.h: Add alpha versions.
9376 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9377 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9378 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9379 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9380 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9381 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9382 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9383 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9384 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9385 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9386 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9387 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9388 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9389 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9390 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9391 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9392 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9393 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9395 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9396 Kill argument registers across the inline syscall.
9398 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9400 * linuxthreads/sysdeps/alpha/tls.h: New file.
9401 * sysdeps/alpha/dl-tls.h: New file.
9403 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9405 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9406 (gmon_initializer): New function.
9407 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9408 __gmon_start__ here. Call it from gmon_initializer() instead.
9410 2002-03-12 H.J. Lu <hjl@gnu.org>
9412 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9413 tst-array2, and tst-array3.
9414 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9415 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9416 ($(objpfx)tst-array1.out): New target.
9417 ($(objpfx)tst-array2): Likewise.
9418 ($(objpfx)tst-array2.out): Likewise.
9419 ($(objpfx)tst-array3.out): Likewise.
9420 * elf/tst-array1.c: New file.
9421 * elf/tst-array1.exp: Likewise.
9422 * elf/tst-array2.c: Likewise.
9423 * elf/tst-array2dep.c: Likewise.
9424 * elf/tst-array2.exp: Likewise.
9425 * elf/tst-array3.c: Likewise.
9427 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9429 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9430 Don't add L->l_addr to array entry values.
9432 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9434 * string/test-string.h: New file.
9435 * string/test-strlen.c: New file.
9436 * string/test-string.h: New file.
9437 * string/test-strcmp.c: New file.
9438 * string/test-strchr.c: New file.
9439 * string/test-strrchr.c: New file.
9440 * string/test-strcpy.c: New file.
9441 * string/test-stpcpy.c: New file.
9442 * string/test-strncpy.c: New file.
9443 * string/test-stpncpy.c: New file.
9444 * string/test-strpbrk.c: New file.
9445 * string/test-strcspn.c: New file.
9446 * string/test-strspn.c: New file.
9447 * string/test-strcat.c: New file.
9448 * string/test-strncmp.c: New file.
9449 * string/test-memchr.c: New file.
9450 * string/test-memcmp.c: New file.
9451 * string/test-memset.c: New file.
9452 * string/test-memcpy.c: New file.
9453 * string/test-mempcpy.c: New file.
9454 * string/test-memmove.c: New file.
9455 * string/Makefile (strop-tests): New variable.
9456 (tests): Add strop-tests.
9457 (distribute): Add test-string.h.
9459 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9461 * posix/regcomp.c: Use tabs instead of spaces.
9462 * posix/regexec.c: Likewise.
9463 * posix/regex_internal.h: Likewise.
9465 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9467 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9469 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9471 (regcomp): Don't set can_be_null here.
9472 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9473 (re_compile_internal): Clear can_be_null, set regs_allocated.
9475 * posix/regcomp.c (re_set_fastmap): New function.
9476 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9477 COMPLEX_BRACKET check.
9478 * posix/regexec.c (re_search_internal): Optimize searching with
9479 fastmap. Call re_string_reconstruct even if match_first is
9480 smaller than raw_mbs_idx.
9482 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9484 * posix/regcomp (free_dfa_content): Use free_state.
9485 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9486 pointers in case that realloc failed.
9487 (re_node_set_merge): Likewise.
9488 (register_state): Likewise.
9489 (create_newstate_common): Invoke memory release functions in case of
9491 (create_ci_newstate): Likewise.
9492 (create_cd_newstate): Likewise.
9493 (free_state): New function.
9494 * posix/regexec.c (re_search_internal): Invoke memory release
9495 functions in case of error conditions.
9496 (sift_states_backward): Likewise.
9497 (merge_state_array): Likewise.
9498 (add_epsilon_src_nodes): Likewise.
9499 (sub_epsilon_src_nodes): Likewise.
9500 (search_subexp): Likewise.
9501 (sift_states_bkref): Likewise.
9502 (transit_state_sb): Likewise.
9503 (transit_state_mb): Likewise.
9504 (transit_state_bkref_loop): Likewise.
9505 (group_nodes_into_DFAstates): Likewise.
9506 (push_fail_stack): Don't edit pointers in case that realloc failed.
9507 (extend_buffers): Likewise.
9508 (match_ctx_add_entry): Likewise.
9510 2002-11-06 Roland McGrath <roland@redhat.com>
9512 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9513 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9515 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9516 * configure: Regenerated.
9518 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9520 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9521 If re_compile_internal failed free fastmap buffer.
9522 (free_dfa_content): Broken out of regfree function. Frees all dfa
9524 (regfree): Add free_dfa_content.
9525 (re_compile_internal): If any of the called functions fails free
9526 all dfa related memory.
9528 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9530 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9531 warnings from the kernel headers.
9533 2002-11-05 Roland McGrath <roland@redhat.com>
9535 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9536 From Johannes Stezenbach <js@convergence.de>.
9538 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9539 #errlist-compat magic comment to give 123 as size.
9540 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9541 (libc: GLIBC_2.2): ... here.
9542 (libc: GLIBC_2.3): Likewise.
9544 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9546 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9547 which happens at the beginning so that we can unload modules in
9550 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9552 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9553 under [__USE_MISC || _ASM].
9555 * elf/elf.h: Remove the obsolete SH TLS relocations.
9557 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9559 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9561 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9564 __NR_pread64 and __NR_pwrite64.
9565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9566 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9568 Revert change to use INLINE_SYSCALL.
9569 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9570 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9571 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9572 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9574 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9577 Update clobber list and add a comment about the syscall ABI.
9579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9580 s_pwrite64, s_ftruncate, s_truncate): Re-add.
9582 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9584 * iconv/gconv_dl.c (free_mem): Clear loaded.
9585 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9588 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9590 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9592 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9593 as old code without locking. _IO_seekoff calls this function after
9595 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9596 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9597 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9599 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9600 of _IO_seekoff_internal.
9601 (_IO_rewind): Likewise.
9602 * libio/ioftell.c: Likewise.
9603 * libio/ftello.c: Likewise.
9604 * libio/ftello64.c: Likewise.
9605 * libio/iofgetpos.c: Likewise.
9606 * libio/iofgetpos64.c: Likewise.
9607 * libio/oldiofgetpos.c: Likewise.
9608 * libio/oldiofgetpos64.c: Likewise.
9609 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9610 _IO_seekpos_internal.
9611 * libio/iofsetpos64.c: Likewise.
9612 * libio/oldiofsetpos.c: Likewise.
9613 * libio/oldiofsetpos64.c: Likewise.
9615 2002-11-04 Roland McGrath <roland@redhat.com>
9617 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9618 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9619 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9620 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9621 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9622 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9623 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9624 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
9625 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
9626 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
9628 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
9629 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
9630 Remove these, no longer used.
9632 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
9635 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
9636 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
9637 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
9638 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
9639 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
9642 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
9643 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9644 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
9646 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9647 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
9649 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9651 2002-11-03 Roland McGrath <roland@redhat.com>
9653 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
9654 `_dl_tls_static_used'.
9655 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
9656 (__libc_setup_tls): Initialize it. Let the initial value of
9657 _dl_tls_static_size indicate some surplus space in the computed value.
9658 * elf/dl-open.c (_dl_tls_static_size): New variable.
9659 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
9660 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
9661 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
9662 (CHECK_STATIC_TLS): Use it.
9663 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
9664 closed objects occupied a trailing contiguous chunk of static TLS area.
9666 2002-10-18 Bruno Haible <bruno@clisp.org>
9668 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
9670 2002-11-04 Ulrich Drepper <drepper@redhat.com>
9672 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
9673 _wide_data->_IO_read_end if adjustment can be made in the current
9676 * sysdeps/unix/sysv/linux/fexecve.c: New file.
9678 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
9679 wide oriented streams are used.
9681 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
9682 service hasn't been used [PR libc/4744].
9684 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
9685 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
9687 * manual/examples/dir.c: Don't include <stddef.h>.
9688 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
9689 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
9691 2002-11-02 H.J. Lu <hjl@gnu.org>
9693 * stdio-common/reg-printf.c: Include <stddef.h>.
9695 2002-11-03 Ulrich Drepper <drepper@redhat.com>
9697 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
9699 * po/ca.po: Update from translation team.
9700 * po/es.po: Likewise.
9702 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
9703 is defined write out memory map.
9704 * sysdeps/unix/sysv/linux/segfault.c: New file.
9706 2002-11-02 Roland McGrath <roland@redhat.com>
9708 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
9709 pointers that can alias.
9710 Reported by Daniel Jacobowitz <drow@mvista.com>.
9712 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
9714 2002-11-02 Roland McGrath <roland@redhat.com>
9716 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
9717 description to be clearer and to say that *RESULT is set to ENTRY.
9719 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9721 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
9722 dests_ch arrays together. Alloca or malloc dest_states,
9723 dest_states_word and dest_states_nl arrays together. Free memory on
9726 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
9728 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
9729 and current_saltbits.
9731 2002-11-02 Roland McGrath <roland@redhat.com>
9733 * stdio-common/reg-printf.c: Include <stdlib.h>.
9735 2002-11-02 H.J. Lu <hjl@gnu.org>
9737 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
9738 caller to EXTRA instead of execve.
9740 2002-11-01 Roland McGrath <roland@redhat.com>
9742 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
9743 in place of [!(USE_TLS && HAVE___THREAD)].
9744 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
9746 2002-10-31 Roger Sayle <roger@eyesopen.com>
9748 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
9750 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9752 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
9753 without defining FP_ROUNDMODE.
9755 2002-10-29 Jakub Jelinek <jakub@redhat.com>
9757 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
9758 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
9760 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9761 (OLD_SIGLIST_SIZE): Define.
9762 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9763 (OLD_SIGLIST_SIZE): Define.
9764 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
9766 2002-11-01 Jakub Jelinek <jakub@redhat.com>
9768 * sysdeps/ia64/strncpy.S: Fix recovery code.
9770 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9772 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
9774 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
9776 * elf/dl-libc.c (free_mem): Likewise.
9777 * iconv/gconv_conf.c (free_mem): Likewise.
9778 * iconv/gconv_db.c (free_mem): Likewise.
9779 * iconv/gconv_dl.c (free_mem): Likewise.
9780 * iconv/gconv_cache.c (free_mem): Likewise.
9781 * intl/finddomain.c (free_mem): Likewise.
9782 * intl/dcigettext.c (free_mem): Likewise.
9783 * locale/setlocale.c (free_mem): Likewise.
9784 * misc/fstab.c (fstab_free): Likewise.
9785 * nss/nsswitch.c (free_mem): Likewise.
9786 * posix/regcomp.c (free_mem): Likewise.
9787 * resolv/gai_misc.c (free_res): Likewise.
9788 * stdlib/fmtmsg.c (free_mem): Likewise.
9789 * sunrpc/clnt_perr.c (free_mem): Likewise.
9790 * sysdeps/generic/setenv.c (free_mem): Likewise.
9791 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
9792 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
9793 * time/tzset.c (free_mem): Likewise.
9794 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
9795 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
9796 * malloc/set-freeres.c (__libc_freeres): Likewise.
9798 * login/getutent.c: Include stdlib.h instead of stddef.h.
9799 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9800 (__getutent): Allocate buffer the first time it is run.
9801 * login/getutid.c: Include stdlib.h instead of stddef.h.
9802 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9803 (__getutid): Allocate buffer the first time it is run.
9804 * login/getutline.c: Include stdlib.h instead of stddef.h.
9805 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9806 (__getutline): Allocate buffer the first time it is run.
9807 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
9808 (mtrace): Allocate malloc_trace_buffer.
9809 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
9810 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
9811 * string/strerror.c: Include libintl.h and errno.h.
9812 (buf): New variable.
9813 (strerror): Only allocate buffer if actually needed (unknown error).
9814 * time/tzfile.c (transitions): Add libc_freeres_ptr.
9817 2002-10-25 Jakub Jelinek <jakub@redhat.com>
9819 * include/libc-symbols.h (libc_freeres_ptr): New macro.
9820 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
9822 (__libc_freeres): Free all pointers in that section.
9823 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
9824 commands when creating .lds script.
9825 (LDSEDCMD-c.so): New variable.
9826 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9827 (rcmd_af): Use strdup to allocate ahostbuf.
9828 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9829 (rexec_af): Use strdup to allocate ahostbuf.
9830 * stdio-common/reg-printf.c (printf_funcs): Remove.
9831 (__printf_arginfo_table): Change into printf_arginfo_function **.
9832 Add libc_freeres_ptr.
9833 (__register_printf_function): Allocate __printf_arginfo_table
9834 and __printf_function_table the first time it is called.
9835 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
9836 printf_arginfo_function **.
9837 (parse_one_spec): Add __builtin_expect.
9838 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
9840 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
9842 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
9843 (string_space, map): Add libc_freeres_ptr.
9845 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
9847 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
9849 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
9850 (buffer): Add libc_freeres_ptr.
9851 (free_mem): Remove for _LIBC.
9852 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
9854 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
9856 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
9858 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
9860 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
9862 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
9864 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
9867 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
9871 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9873 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
9874 instead of duplicating the whole function in libc.
9876 2002-10-31 Roland McGrath <roland@redhat.com>
9878 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
9879 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
9881 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9883 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
9884 32bit-predefine when creating .new32 list and -U for each
9885 32bit-predefine when creating .new64 list.
9886 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
9888 2002-10-29 Andreas Schwab <schwab@suse.de>
9890 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
9891 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
9893 2002-10-25 Roland McGrath <roland@redhat.com>
9895 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
9896 * sysdeps/unix/sysv/linux/configure: Regenerated.
9898 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
9899 _dl_starting_up decl.
9901 2002-10-20 H.J. Lu <hjl@gnu.org>
9903 * sysdeps/unix/sysv/linux/configure.in: Don't check
9904 /lib/modules/`uname -r`/build/include for kernel headers if
9906 * sysdeps/unix/sysv/linux/configure: Regenerated.
9908 2002-10-25 Roland McGrath <roland@redhat.com>
9910 * math/math.h (M_LOG2El): Correct the value.
9911 From Stephen L Moshier <steve@moshier.net>.
9913 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
9914 conditional from __libc_multiple_libcs access. Remove kludge for weak
9915 symbol access with old compilers we no longer support.
9916 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9917 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
9919 2002-10-25 Roland McGrath <roland@redhat.com>
9921 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
9922 implement SV_RESETHAND by translating it to SA_RESETHAND.
9924 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
9926 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
9927 type on ELF64 platforms.
9929 2002-10-24 Ulrich Drepper <drepper@redhat.com>
9931 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
9933 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
9935 2002-10-24 Jakub Jelinek <jakub@redhat.com>
9937 * elf/dl-misc.c: Include <sysdep.h>.
9938 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
9940 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
9941 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9942 (INLINE_SYSCALL): Use that.
9943 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
9944 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9945 (INLINE_SYSCALL): Use that.
9946 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
9947 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9948 (INLINE_SYSCALL): Use that.
9949 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
9951 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9952 (__INTERNAL_SYSCALL_STRING): Define.
9953 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9955 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9956 (__INTERNAL_SYSCALL_STRING): Define.
9957 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
9958 __SYSCALL_STRING to inline_syscall*.
9959 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
9961 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
9962 inline_syscall4, inline_syscall5, inline_syscall6): Add string
9965 2002-10-24 Roland McGrath <roland@redhat.com>
9967 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
9968 * sysdeps/unix/sysv/linux/init-first.c: Not here.
9969 * sysdeps/powerpc/elf/libc-start.c: Or here.
9970 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
9971 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
9972 * sysdeps/unix/sysv/aix/init-first.c: Or here.
9973 * sysdeps/generic/libc-start.c: Or here.
9974 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
9975 access with [! SHARED].
9976 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9978 * libio/bug-wfflush.c: New file.
9979 * libio/Makefile (tests): Add bug-wfflush.
9981 2002-10-23 Roland McGrath <roland@redhat.com>
9983 * stdio-common/tst-fphex.c: New file.
9984 * stdio-common/Makefile (tests): Add tst-fphex.
9985 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
9986 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
9987 chars always before the value digits.
9988 Reported by James Antill <james.antill@redhat.com>.
9990 2002-10-24 Jakub Jelinek <jakub@redhat.com>
9992 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
9993 (free_mem): New function.
9994 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
9995 if not cross compiling.
9996 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
9997 (bug-regex14-ENV): Set.
9998 (bug-regex14-mem): New target.
9999 * posix/bug-regex14.c: New file.
10001 2002-10-23 Roland McGrath <roland@redhat.com>
10003 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10004 target, so we don't touch it when the link fails.
10006 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10007 Check for the result overflowing off_t and fail with EOVERFLOW.
10008 * libio/ioftell.c (_IO_ftell): Likewise.
10009 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10011 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10012 use a temporary timeval on the stack for gettimeofday and copy it.
10013 * login/logout.c (logout): Likewise.
10014 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10016 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10017 Use __SWORD_TYPE instead of int for member types.
10018 (struct statfs64): Likewise.
10019 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10020 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10021 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10022 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10023 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10025 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10026 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10027 (ST_NODIRATIME): Restore fixed value of 2048.
10028 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10029 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10031 Rearranged <bits/types.h> definitions to reduce duplication.
10032 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10033 <bits/wordsize.h> and new header <bits/typesizes.h>.
10034 * posix/Makefile (headers): Add bits/typesizes.h here.
10035 * sysdeps/generic/bits/typesizes.h: New file.
10036 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10037 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10038 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10039 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10040 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10041 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10042 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10043 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10044 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10045 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10046 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10047 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10048 * signal/signal.h: Likewise.
10050 * streams/stropts.h: Include <bits/xtitypes.h>.
10051 * streams/Makefile (headers): Add bits/xtitypes.h here.
10052 * sysdeps/generic/bits/xtitypes.h: New file.
10053 * sysdeps/s390/bits/xtitypes.h: New file.
10054 * sysdeps/ia64/bits/xtitypes.h: New file.
10055 * sysdeps/x86_64/bits/xtitypes.h: New file.
10057 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10058 * sysdeps/generic/bits/ipctypes.h: New file.
10059 * sysdeps/mips/bits/ipctypes.h: New file.
10060 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10061 * sysdeps/gnu/bits/msq.h: Likewise.
10062 * sysvipc/sys/ipc.h: Likewise.
10064 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10066 * elf/dl-load.c (struct filebuf): For buf element to have the
10067 alignment of ElfXX_Ehdr since this is what will be stored in it.
10069 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10071 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10072 into pointer to locrec_offset.
10073 (add_locale_to_archive): Adjust callers. Free normalized_name right
10074 before returning, not immediately after add_locale, pass it to
10075 add_alias if not NULL instead of name. Rename second normalized_name
10076 occurence to nnormalized_codeset_name.
10078 * locale/programs/locarchive.c (enlarge_archive): Make sure
10079 string_size is always a multiple of 4.
10080 Reported by Andreas Schwab <schwab@suse.de>.
10082 2002-10-21 Andreas Schwab <schwab@suse.de>
10084 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10085 caller to EXTRA instead of execve, since the latter has a
10086 higher-priority implementation in linuxthreads.
10088 2002-10-21 Roland McGrath <roland@redhat.com>
10090 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10091 slotinfo list's len member to the proper size, not just 1.
10092 Initialize static_map.l_tls_initimage.
10094 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10095 dtv_slotinfo_list element containing new modules' l_tls_modid.
10097 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10098 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10099 * elf/Makefile (tests): Add tst-tls9.
10100 (tests-static): Add tst-tls9-static.
10101 (tst-tls9-static-ENV): New variable.
10102 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10104 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10105 modids used by partially loaded modules being closed can't be known.
10107 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10109 * posix/Makefile: Add a test case for the bug reported by Aharon
10110 Robbins <arnold@skeeve.com>.
10111 * posix/bug-regex13.c: New file.
10112 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10114 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10116 * csu/gmon-start.c: Pretty printing.
10118 2002-10-19 Art Haas <ahaas@neosoft.com>
10120 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10121 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10122 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10123 * configure: Regenerated.
10125 2002-10-19 Roland McGrath <roland@redhat.com>
10127 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10128 and then set $subdirs directly, because the new Autoconf breaks
10129 compatibility in every way imaginable and insists on whining
10130 about usage that worked since the dawn of time.
10131 * configure: Regenerated.
10133 * configure: Regenerated (using Autoconf 2.54).
10134 * sysdeps/alpha/elf/configure: Likewise.
10135 * sysdeps/generic/configure: Likewise.
10136 * sysdeps/i386/elf/configure: Likewise.
10137 * sysdeps/ia64/elf/configure: Likewise.
10138 * sysdeps/mach/hurd/configure: Likewise.
10139 * sysdeps/mach/configure: Likewise.
10140 * sysdeps/unix/configure: Likewise.
10141 * sysdeps/unix/common/configure: Likewise.
10142 * sysdeps/unix/sysv/aix/configure: Likewise.
10143 * sysdeps/unix/sysv/linux/configure: Likewise.
10144 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10145 * sysdeps/x86_64/elf/configure: Likewise.
10147 * config.make.in: Nix completely-soft nonsense.
10148 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10149 of machine directories instead of fpu subdirectory.
10150 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10151 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10152 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10153 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10154 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10155 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10156 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10157 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10158 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10159 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10160 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10161 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10162 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10163 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10164 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10165 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10166 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10167 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10168 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10169 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10170 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10171 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10172 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10173 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10174 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10175 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10176 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10177 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10178 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10179 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10180 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10181 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10182 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10183 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10184 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10185 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10186 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10187 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10188 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10189 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10191 2002-10-19 Bruno Haible <bruno@clisp.org>
10193 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10195 2002-10-18 Roland McGrath <roland@redhat.com>
10197 * io/Makefile (routines): Add lchmod.
10198 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10199 * sysdeps/generic/lchmod.c: New file.
10200 * sysdeps/mach/hurd/lchmod.c: New file.
10201 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10203 2002-10-18 Art Haas <ahaas@neosoft.com>
10205 * configure.in: Remove remaining AC_FD_CC macros, and replace
10206 AC_FD_MSG with AS_MESSAGE_FD.
10208 2002-10-18 Roland McGrath <roland@redhat.com>
10210 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10211 typos: VALUE -> FINALADDR.
10213 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10214 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10215 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10216 (inline_syscall6): Move these macros ...
10217 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10219 * configure.in (libc_link_dests, libc_link_sources): Remove these
10220 variables and the AC_LINK_FILES call.
10222 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10223 change to put new symbols here instead of in GLIBC_2.2.
10224 * sysdeps/powerpc/Subdirs: Move this file ...
10225 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10227 2002-10-07 Roland McGrath <roland@redhat.com>
10229 * sysdeps/generic/bits/time.h: Replaced with contents of the
10230 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10231 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10232 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10233 macros is ok even for architectures that don't now implement them.
10234 * sysdeps/mach/hurd/bits/time.h: File removed.
10235 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10236 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10237 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10238 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10239 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10241 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10243 * configure.in: Replace obsolete AC_OUTPUT syntax with
10244 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10246 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10247 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10249 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10250 * sysdeps/alpha/elf/configure.in: Likewise.
10251 * sysdeps/i386/elf/configure.in: Likewise.
10252 * sysdeps/mach/hurd/configure.in: Likewise.
10253 * sysdeps/x86_64/elf/configure.in: Likewise.
10255 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10257 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10258 * sysdeps/generic/configure.in: Likewise.
10259 * sysdeps/i386/elf/configure.in: Likewise.
10260 * sysdeps/ia64/elf/configure.in: Likewise.
10261 * sysdeps/mach/configure.in: Likewise.
10262 * sysdeps/mach/hurd/configure.in: Likewise.
10263 * sysdeps/unix/configure.in: Likewise.
10264 * sysdeps/unix/common/configure.in: Likewise.
10265 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10266 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10267 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10268 * sysdeps/x86_64/elf/configure.in: Likewise.
10270 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10271 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10272 that it's obvious when extra autoconf machinery is being dragged in.
10274 2002-10-18 Roland McGrath <roland@redhat.com>
10276 * configure.in: Remove bogus echo included in
10277 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10278 * configure: Regenerated.
10280 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10282 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10283 (statfs_filesize_max): New function.
10284 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10285 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10286 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10287 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10288 statfs_filesize_max.
10289 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10290 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10291 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10293 2002-10-17 Roland McGrath <roland@redhat.com>
10295 * configure.in (MIG): Just AC_SUBST it here.
10296 * configure: Regenerated.
10297 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10298 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10299 * sysdeps/mach/configure: Regenerated.
10301 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10302 and AC_PROVIDE([_AS_CR_PREPARE]).
10304 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10305 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10307 * elf/dl-support.c: Move _dl_tls_* variables to ...
10308 * sysdeps/generic/libc-tls.c: ... here.
10310 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10311 allow IDX to be one past the current last slotinfo entry.
10312 (_dl_close): Pass IMAP->l_init_called for that parameter.
10314 2002-10-07 Andreas Schwab <schwab@suse.de>
10316 * aclocal.m4: Fix for autoconf 2.53.
10317 * configure.in: Likewise. Require autoconf 2.53.
10319 2002-10-08 Richard Henderson <rth@redhat.com>
10321 * soft-fp/op-4.h: Handle carry correctly in
10322 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10323 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10324 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10326 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10328 * configure.in: Compute completely-soft.
10329 * config.make.in: Make completely-soft available to sub-makes.
10330 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10331 gcc-double-routines. Add sim-full.c. Add fenv_const and
10332 fe_nomask to libm-support.
10333 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10334 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10335 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10336 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10337 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10338 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10339 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10340 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10341 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10342 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10343 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10344 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10345 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10346 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10347 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10348 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10349 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10350 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10351 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10352 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10354 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10355 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10356 FP_HANDLE_EXCEPTIONS.
10357 Define FP_ROUNDMODE.
10358 Redefine FP_* macros to correspond to the FE_* bit positions.
10359 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10360 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10361 __sim_round_mode, __simulate_exceptions.
10362 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10363 * sysdeps/powerpc/bits/fenv.h: ...to here.
10365 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10367 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10368 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10369 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10370 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10373 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10375 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10376 __libc_res_nsend): New prototypes.
10377 * resolv/res_query.c (QUERYSIZE): Define.
10378 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10379 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10380 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10381 res_nsend, pass answerp.
10382 (res_nquery): Changed into wrapper around __libc_res_nquery.
10383 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10384 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10385 instead of the non-__libc_ variants, pass them answerp.
10386 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10387 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10388 Added answerp argument. Call __libc_res_nquery instead of
10389 res_nquery, pass answerp.
10390 (res_nquerydomain): Changed into wrapper around
10391 __libc_res_nquerydomain.
10392 * resolv/res_send.c: Include sys/ioctl.h.
10393 (MAXPACKET): Define.
10394 (send_vc): Change arguments. Reallocate answer buffer if it is
10396 (send_dg): Likewise.
10397 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10398 Reallocate answer buffer if it is too small and hooks are in use.
10399 Adjust calls to send_vc and send_dg.
10400 (res_nsend): Changed into wrapper around __libc_res_nsend.
10401 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10402 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10404 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10405 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10406 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10407 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10408 (gethostbyaddr): Similarly with __libc_res_nquery.
10409 * resolv/Versions (libresolv): Export __libc_res_nquery and
10410 __libc_res_nsearch at GLIBC_PRIVATE.
10412 2002-10-17 Roland McGrath <roland@redhat.com>
10414 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10415 * configure: Regenerated.
10417 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10418 before performing the reloc, not after.
10419 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10421 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10423 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10424 * locale/programs/linereader.c (lr_open): Likewise.
10425 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10426 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10428 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10430 * posix/bug-regex11.c: Add a test case for the bug reported by
10431 Paolo Bonzini <bonzini@gnu.org>.
10432 * posix/regexec.c (sift_states_bkref): Use correct destination of
10433 the back reference.
10435 2002-10-17 Roland McGrath <roland@redhat.com>
10437 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10438 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10439 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10440 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10441 Call it after performing TPOFF relocs.
10442 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10443 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10444 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10446 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10447 when closing a partially-initialized object.
10449 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10450 instead of _dl_fatal_printf when we see PT_TLS.
10452 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10453 instead of $(libof-$<).
10455 2002-10-16 Roland McGrath <roland@redhat.com>
10457 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10458 instead of += to append, to be sure $(lib) gets expanded at defn time.
10459 (libof-$(cpp-src)): New variable, define this instead.
10460 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10461 (lib): Don't use override.
10462 (CPPFLAGS-$(lib)): New variable, put -D's here.
10463 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10464 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10465 LIB found by $(libof-*) for basename, target, or source.
10466 * Makerules (CPPFLAGS-nonlib): New variable.
10467 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10468 * locale/Makefile (lib): Likewise.
10469 * sunrpc/Makefile (lib): Likewise.
10471 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10472 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10473 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10474 (statfs_link_max): New function, guts from fpathconf.c.
10475 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10476 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10477 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10478 to use the linux/pathconf.c code by #include rather than duplication.
10479 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10481 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10483 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10484 Use __libc_errno only for libc itself.
10486 2002-10-16 Andreas Jaeger <aj@suse.de>
10488 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10490 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10492 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10493 Use __libc_errno only for libc itself.
10495 2002-10-15 Roland McGrath <roland@redhat.com>
10496 Jakub Jelinek <jakub@redhat.com>
10498 * sysdeps/unix/sysv/linux/Makefile
10499 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10500 sparc/Makefile to produce a bi-arch file as needed.
10501 That's now parameterized by the variable $(64bit-predefine).
10502 Use LC_ALL=C for `comm' commands in that rule.
10503 No longer conditional on [$(no_syscall_list_h)].
10504 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10505 (64bit-predefine): New variable.
10506 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10507 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10508 * sysdeps/unix/sysv/linux/powerpc/Makefile
10509 (64bit-predefine): New variable.
10511 2002-10-15 Roland McGrath <roland@redhat.com>
10513 * sysdeps/unix/sysv/linux/Makefile
10514 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10516 * login/utmp-private.h: Declare __libc_utmp_lock.
10517 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10518 and call __libc_utmp_jump_table functions directly, instead of using
10521 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10522 * sysdeps/unix/sysv/linux/configure: Regenerated.
10524 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10525 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10526 Use int32_t for ll_time.
10527 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10528 Use int32_t instead of long int for ut_session.
10529 Use an anonymous struct with 32-bit fields for ut_tv.
10530 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10531 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10532 here as in utmp.h for `struct utmp'.
10533 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10534 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10535 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10536 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10537 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10538 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10540 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10541 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10542 All the following files were identical or equivalent to it.
10543 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
10544 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
10545 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
10546 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10547 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10548 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10549 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10550 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10551 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10552 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10554 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10555 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10556 Other than the previously incorrect sign of msg_iovlen, this is a
10557 no-op on 32-bit platforms. On 64-bit platforms it makes this header
10558 match their layouts as well, so the following are now identical to it.
10559 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10560 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10561 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10562 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10563 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10565 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10567 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10568 Define for 2.4+ kernels.
10570 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10571 are known to have the vfork syscall. Don't confuse the CPUs
10572 branch prediction unit by jumping to the return address.
10574 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10575 support for reiserfs and xfs.
10577 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10579 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10581 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10583 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10585 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10586 * include/errno.h (errno): Define to __libc_errno in libc.so.
10587 Add attribute_tls_model_ie.
10588 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10589 Add attribute_tls_model_ie.
10590 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10591 attribute_tls_model_ie.
10592 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10594 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10596 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10597 attribute_tls_model_ie.
10598 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10600 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10601 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10602 __libc_errno in USE___THREAD case.
10603 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10605 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10606 __attribute__((tls_model (""))).
10607 * configure: Rebuilt.
10608 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10610 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10612 * timezone/asia: Update from tzdata2002d.
10613 * timezone/australasia: Likewise.
10614 * timezone/iso3166.tab: Likewise.
10615 * timezone/southamerica: Likewise.
10616 * timezone/zone-tab: Likewise.
10618 2002-10-15 Roland McGrath <roland@redhat.com>
10620 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10621 Adjust TCB pointer before calling free, so we get the whole block.
10623 2002-10-14 Roland McGrath <roland@redhat.com>
10625 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
10626 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
10627 extern using attribute_hidden instead of static, avoids warning.
10629 2002-10-09 Jakub Jelinek <jakub@redhat.com>
10631 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
10632 * sysdeps/unix/sysv/linux/configure: Rebuilt.
10634 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10636 * po/sv.po: Update from translation team.
10638 2002-10-12 H.J. Lu <hjl@gnu.org>
10640 * sunrpc/thrsvc.c (PROCQUIT): New.
10641 (struct rpc_arg): New.
10642 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
10643 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
10644 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
10645 (main): Modified for struct rpc_arg *.
10647 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10649 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
10651 2002-10-14 Jakub Jelinek <jakub@redhat.com>
10653 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
10654 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
10655 in ld.so even if __thread is supported.
10657 2002-10-13 Jakub Jelinek <jakub@redhat.com>
10659 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
10660 Add hack to prevent the compiler from clobbering the signal context.
10661 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
10663 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
10666 2002-10-14 Andreas Jaeger <aj@suse.de>
10668 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
10669 Guido Guenther <agx@sigxcpu.org>.
10671 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10673 * po/sk.po: Update from translation team.
10675 2002-09-26 Roland McGrath <roland@redhat.com>
10677 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
10678 dynamic string tag.
10679 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
10680 DL_DST_LIB based on $(slibdir).
10682 2002-10-13 Roland McGrath <roland@frob.com>
10684 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
10686 * sysdeps/mach/hurd/getresuid.c: New file.
10687 * sysdeps/mach/hurd/getresgid.c: New file.
10688 * sysdeps/mach/hurd/setresuid.c: New file.
10689 * sysdeps/mach/hurd/setresgid.c: New file.
10691 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
10692 setresgid): Declare them.
10693 * NEWS: Mention it.
10695 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
10696 add libc_hidden_proto.
10697 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
10698 getresuid, getresgid, setresuid, setresgid here.
10699 * Versions.def (libc): Define GLIBC_2.3.2 set.
10700 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
10701 Add libc_hidden_def.
10702 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
10703 * sysdeps/generic/setresgid.c: New file.
10704 * sysdeps/generic/setresuid.c: New file.
10705 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10706 (sysdep_routines): Don't add getresuid and getresgid here.
10707 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
10708 (sysdep_routines): Don't add setresuid and setresgid here.
10709 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10710 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10711 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10712 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10713 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10714 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10715 * posix/Makefile (routines): Add them all here instead.
10716 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
10717 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
10718 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
10719 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
10720 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
10721 [! __NR_setresuid]: Include generic file.
10722 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
10723 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
10724 [! __NR_setresuid]: Include generic file.
10725 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
10726 Caller is - now, not EXTRA.
10727 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
10728 (setresuid, setresgid, getresuid, getresgid): Likewise.
10729 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
10730 Add these calls here.
10731 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
10732 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
10733 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10734 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10735 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
10737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
10738 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
10739 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10741 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10742 (sysdep_routines): Add setfsuid and setfsgid here.
10743 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
10744 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
10745 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10746 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10747 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10748 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10749 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10750 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10752 * hurd/errno.c: Renamed to ...
10753 * hurd/errno-loc.c: ... this.
10754 * hurd/Makefile (routines): errno -> errno-loc
10756 2002-10-13 Ulrich Drepper <drepper@redhat.com>
10758 * po/de.po: Update from translation team.
10760 * MakeTAGS: Add -E flag to xgettext runs.
10762 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10764 * po/fr.po: Update from translation team.
10766 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
10767 Optimize a bit for use in glibc.
10769 2002-10-12 Roland McGrath <roland@redhat.com>
10771 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
10772 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
10774 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10776 * po/sv.po: Update from translation team.
10778 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
10780 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
10782 (regfree): Likewise.
10783 (create_initial_state): Likewise.
10784 (analyze): Remove the substitutions which became useless.
10785 (calc_first): Likewise.
10786 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
10787 epsilon destination.
10788 (duplicate_node_closure): New function.
10789 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
10790 (calc_inveclosure): Likewise.
10791 (calc_eclosure): Likewise.
10792 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
10793 direct invocation of duplicate_node.
10794 (parse): Don't use comma operator in the return to avoid compiler
10796 (parse_reg_exp): Likewise.
10797 (parse_branch): Likewise.
10798 (parse_expression): Likewise.
10799 (parse_sub_exp): Likewise.
10800 (parse_dup_op): Likewise.
10801 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
10802 which became useless.
10803 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
10804 (create_cd_newstate): Likewise.
10805 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
10806 (re_token_t): Likewise.
10807 (re_dfa_t): Likewise.
10808 (re_node_set_remove): New macro.
10809 * posix/regexec.c (check_matching): Remove the handling
10811 (check_halt_node_context): Likewise.
10812 (proceed_next_node): Likewise.
10813 (pop_fail_stack): Fix the memory leak.
10814 (set_regs): Likewise.
10815 (free_fail_stack_return): New function.
10816 (sift_states_backward): Fix the memory leak. Remove the handling
10818 (update_cur_sifted_state): Append some if clause to avoid redundant
10820 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
10822 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
10823 (check_subexp_limits): Likewise.
10824 (search_subexp): Likewise.
10825 (sift_states_bkref): Likewise.
10826 (transit_state_mb): Likewise.
10827 (transit_state_bkref_loop): Likewise.
10828 (transit_state_bkref_loop): Likewise.
10829 (group_nodes_into_DFAstates): Likewise.
10830 (check_node_accept): Likewise.
10831 (sift_ctx_init): Add initializing.
10833 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10835 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
10838 2002-10-11 Ulrich Drepper <drepper@redhat.com>
10840 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
10841 duplicated variable c.
10843 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
10846 * sysdeps/unix/sysv/linux/i386/sysdep.h
10847 (INTERNAL_SYSCALL_ERROR_P): New define.
10848 (INTERNAL_SYSCALL_ERRNO): Likewise.
10850 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
10851 Add hack to prevent the compiler from clobbering the signal context.
10853 2002-10-11 Roland McGrath <roland@redhat.com>
10855 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10858 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
10859 * sysdeps/sh/dl-lookupcfg.h: File removed.
10860 * sysdeps/i386/dl-lookupcfg.h: File removed.
10862 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
10863 missing labels and ; from last change.
10865 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
10866 number literals, so they are doubles instead of ints.
10868 2002-10-09 Roland McGrath <roland@redhat.com>
10870 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
10871 changed from [USE_TLS && HAVE___THREAD].
10873 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
10874 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
10875 * sysdeps/x86_64/dl-machine.h
10876 (elf_machine_type_class, elf_machine_rela): Likewise.
10877 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
10880 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
10881 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
10882 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
10884 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
10885 instead of ___tls_get_addr.
10886 (___tls_get_addr_internal): Add attribute_hidden to decl.
10888 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
10889 _dl_error_catch_tsd.
10890 * elf/rtld.c (startup_error_tsd): New function.
10891 (dl_main): Point _dl_error_catch_tsd at that.
10892 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
10893 use new function pointer instead.
10894 * elf/dl-tsd.c: New file.
10895 * elf/Makefile (routines): Add it.
10897 2002-10-07 Roland McGrath <roland@redhat.com>
10899 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
10900 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
10901 take _dl_load_lock around calling __writev.
10903 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
10904 (INLINE_SYSCALL): Use that.
10906 * sysdeps/generic/dl-sysdep.h: New file.
10907 * sysdeps/mach/hurd/dl-sysdep.h: New file.
10908 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
10909 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
10910 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
10911 access it directly.
10912 * elf/dl-minimal.c (__errno_location): Removed.
10913 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10914 Use GOTOFF access for errno.
10915 * sysdeps/unix/sysv/linux/i386/sysdep.h
10916 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10918 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10919 Use PC-relative access for errno.
10920 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10921 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10923 * include/tls.h: New file.
10924 (USE___THREAD): New macro.
10925 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
10926 libc or libpthread.
10927 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
10928 changed from [USE_TLS && HAVE___THREAD].
10929 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10930 * sysdeps/unix/i386/sysdep.S: Likewise.
10931 * sysdeps/unix/x86_64/sysdep.S: Likewise.
10932 * include/errno.h: Likewise.
10933 * include/netdb.h: Likewise.
10934 * include/resolv.h: Likewise.
10936 * sysdeps/generic/errno.c: New file.
10937 * csu/Makefile (aux): New variable, list errno.
10938 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
10939 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
10940 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
10941 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10942 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10943 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
10944 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
10945 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
10946 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10947 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
10948 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
10949 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
10950 * sysdeps/unix/alpha/sysdep.S: Likewise.
10951 * sysdeps/generic/start.c: Likewise.
10952 * sysdeps/unix/start.c: Likewise.
10953 * sysdeps/unix/arm/start.c: Likewise.
10954 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
10955 * sysdeps/unix/sparc/start.c: Likewise.
10956 * sysdeps/unix/sysv/irix4/start.c: Likewise.
10957 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
10959 * manual/search.texi (Tree Search Function, Hash Search Function):
10960 Mention search.h clearly.
10962 2002-10-05 Roland McGrath <roland@redhat.com>
10964 * elf/dl-fxstat64.c: File removed.
10965 * elf/dl-xstat64.c: File removed.
10966 * elf/Makefile (rtld-routines): Remove them.
10967 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
10968 Instead, use strong_alias instead of versioned_symbol in the
10969 !SHLIB_COMPAT case.
10970 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
10971 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
10973 * include/shlib-compat.h
10974 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
10975 [! NOT_IN_libc] (IS_IN_libc): Define it.
10976 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
10977 * elf/Makefile (CPPFLAGS-.os): Likewise.
10979 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
10980 Return the status instead of calling exit.
10982 * Makeconfig (CFLAGS): Prepend -std=gnu99.
10983 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
10984 Remove superfluous rm command, whose @ plus make bugs hid
10985 all these commands from the make output.
10987 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
10988 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
10989 Use that file's contents instead of literal echo's for the prologue.
10990 * include/features.h: Include <gnu/stubs.h> unconditionally.
10991 * include/gnu/stubs.h: New file.
10993 2002-09-30 Roland McGrath <roland@redhat.com>
10995 * elf/rtld-Rules: New file.
10996 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
10997 $(objpfx)rtld-libc.a): New targets.
10998 (generated): Add them.
10999 (reloc-link): Remove -o $@ from the variable.
11000 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11001 (distribute): Add rtld-Rules.
11002 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11003 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11004 (common-mostlyclean, common-clean): Clean up rtld-* files.
11005 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11007 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11009 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11010 If temp != NULL, copy dynamic entries which need relocation to temp
11011 array before relocating.
11012 (DL_RO_DYN_TEMP_CNT): Define.
11013 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11014 * elf/rtld.c (_dl_start): Likewise.
11015 (dl_main): Likewise. Add dyn_temp static variable.
11017 2002-10-11 Roland McGrath <roland@redhat.com>
11019 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11020 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11022 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11023 proper set of no-op insn prefixes.
11025 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11027 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11029 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11030 __pthread_kill_other_threads_np.
11032 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11034 2002-10-08 Roland McGrath <roland@redhat.com>
11036 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11037 just return &_nl_C_locobj instead of copying it.
11038 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11039 * locale/duplocale.c (__duplocale): Likewise.
11041 2002-10-07 Roland McGrath <roland@frob.com>
11043 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11044 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11045 * sysdeps/mach/configure: Regenerated.
11047 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11050 Add all necessary register outputs for syscall-clobbered registers.
11052 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11054 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11055 Itanium 2 (and Itanium).
11056 Fix unwind directives and make it fit in 80 columns.
11057 * sysdeps/ia64/memset.S: Likewise.
11058 * sysdeps/ia64/memcpy.S: Likewise.
11059 Move jump table to .rodata section.
11061 2002-10-03 Roland McGrath <roland@frob.com>
11063 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11066 2002-10-10 Andreas Jaeger <aj@suse.de>
11068 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11070 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11072 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11074 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11076 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11077 _dl_allocate_tls_init. Add rtld_hidden_proto.
11078 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11080 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11082 * version.h (VERSION): Bump to 2.3.1.
11084 * Make-dist: Add back one of the tar invocations removed before.
11086 * stdlib/Makefile (distribute): Add allocalim.h.
11088 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11089 (__libc_tsd_address): Use correct variable name.
11090 Patch by Stefan Jones <stefan.jones@multigig.com>.
11092 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11093 Reported by edwardsg@sgi.com [PR libc/4678].
11095 * Versions.def (libc): Add GLIBC_2.3.1.
11096 (libpthread): Add GLIBC_2.3.1.
11098 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11099 and __sigtimedwait.
11100 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11101 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11103 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11104 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11106 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11107 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11108 and make old name an alias.
11109 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11110 and make old name an alias.
11111 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11114 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11115 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11117 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11119 * sysdeps/posix/readv.c: Likewise
11120 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11121 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11122 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11124 * sysdeps/posix/writev.c: Likewise
11125 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11126 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11128 * include/sys/wait.h: Declare __waitid.
11129 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11130 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11132 * sysdeps/posix/waitid.c: Likewise.
11133 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11135 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11137 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11139 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11141 (__MAX_ALLOCA_CUTOFF): Define.
11142 Include allocalim.h.
11143 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11144 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11145 host_buffer depending on __libc_use_alloca.
11146 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11147 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11148 net_buffer depending on __libc_use_alloca.
11149 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11150 buf depending on __libc_use_alloca.
11151 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11152 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11153 instead of hardcoded constants.
11154 Pass proper size argument to alloca and compute end for wide char
11156 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11157 instead of hardcoded constants.
11158 * string/strcoll.c (strcoll): Likewise.
11159 * string/strxfrm.c (strxfrm): Likewise.
11160 * sysdeps/posix/readv.c (__readv): Likewise.
11161 * sysdeps/posix/writev.c (__writev): Likewise.
11162 * sysdeps/generic/allocalim.h: New file.
11164 2002-10-08 Roland McGrath <roland@redhat.com>
11166 * configure.in (aux_missing warning): Change "too old" to
11167 "incompatible versions", since for autoconf it's "too new" right now.
11168 * configure: Regenerated.
11170 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11171 one found doesn't work on our configure.in.
11172 * configure: Regenerated.
11173 * config.make.in (AUTOCONF): New substituted variable.
11174 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11175 (autoconf-it): ... here, use that instead of defining conditionally.
11176 Use $(AUTOCONF) instead of literal autoconf.
11177 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11178 with this condition.
11179 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11181 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11183 * Make-dist (dist): Cleanup a bit. We are not interested in the
11184 14 char filename limit anymore. Remove intermediate files and
11187 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11189 * po/sk.po: Update from translation team.
11190 * po/tr.po: Likewise.
11191 * po/gl.po: Likewise.
11193 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11195 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11197 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11199 * version.h (RELEASE): Change to stable.
11201 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11203 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11204 __syscall_exit_group): New prototypes.
11206 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11208 * glibc 2.3 released.
11211 See ChangeLog.13 for earlier changes.