1 2003-09-05 Andreas Jaeger <aj@suse.de>
3 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
4 prototype to use variable argument lists and get the possible one
6 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
8 2003-09-04 Ulrich Drepper <drepper@redhat.com>
10 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
12 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
13 Report correct value for vxfs.
14 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Dfeine VXFS_SUPER_MAGIC.
16 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
19 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
20 over the place. It would be allowed to have these functions as
21 cancellation points but the cleanup would be ugly and a lot of
24 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
25 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
27 * include/fcntl.h (__fcntl_nocancel): Declare.
28 * sysdeps/unix/sysv/linux/fcntl.c: New file.
29 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
30 cancellation if absolutely needed.
31 (__fcntl_nocancel): Define.
33 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
34 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
36 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
39 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
42 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
43 unnecessary errno handling.
45 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
46 Initialize it in all cases. Change it to be a bit more like the
49 2003-09-04 Jakub Jelinek <jakub@redhat.com>
51 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
53 (_IO_file_open): Likewise. Use close_not_cancel.
55 2003-09-04 Ulrich Drepper <drepper@redhat.com>
57 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
58 * libio/fileops.c [_LIBC]: Remove close macro.
59 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
60 (_IO_new_file_open): Recognize 'c' flag in mode string.
61 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
62 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
64 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
65 * inet/rcmd.c: Likewise.
66 * inet/ruserpass.c: Likewise.
67 * intl/localealias.c: Likewise.
68 * malloc/mtrace.c: Likewise.
69 * misc/getpass.c: Likewise.
70 * misc/getttyent.c: Likewise.
71 * misc/mntent_r.c: Likewise.
72 * misc/getusershell.c: Likewise.
73 * nss/nsswitch.c: Likewise.
74 * resolv/res_hconf.c: Likewise.
75 * resolv/res_init.c: Likewise.
76 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
77 * time/getdate.c: Likewise.
78 * time/tzfile.c: Likewise.
79 * misc/fstab.h: Undo last change.
80 * misc/mntent.h: Likewise.
81 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
82 CFLAGS-fstab.c definition.
84 2003-09-04 Jakub Jelinek <jakub@redhat.com>
86 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
88 2003-09-03 Ulrich Drepper <drepper@redhat.com>
90 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
91 returning ERANGE if this wasn't intended.
93 2003-09-03 Jakub Jelinek <jakub@redhat.com>
95 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
98 2003-09-03 Ulrich Drepper <drepper@redhat.com>
100 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
101 (CFLAGS-getgrent.c): Likewise.
102 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
103 (CFLAGS-getpwent.c): Likewise.
104 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
105 (CFLAGS-getspent.c): Likewise.
107 * inet/Makefile: Add -fexceptions to CFLAGS for the various
108 getXXent and getXXbyYY functions.
110 * locale/loadlocale.c: Use not-cancelable variants of open, close,
113 2003-09-02 Jakub Jelinek <jakub@redhat.com>
115 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
116 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
118 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
120 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
121 unused __syscall_ stubs.
122 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
124 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
125 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
126 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
127 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
128 unused __syscall_ stubs.
129 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
131 (__syscall_*): Remove unused __syscall_ stubs.
132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
133 (__syscall_*): Likewise.
134 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
136 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
137 Remove unused __syscall_ stubs.
138 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
139 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
140 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
141 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
142 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
143 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
144 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
145 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
146 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
147 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
148 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
149 __syscall_* prototypes.
150 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
151 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
152 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
153 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
154 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
155 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
156 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
157 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
158 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
159 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
160 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
161 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
162 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
163 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
164 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
165 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
166 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
167 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
168 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
169 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
170 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
171 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
172 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
173 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
174 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
175 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
176 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
177 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
178 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
179 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
180 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
181 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
182 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
183 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
184 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
185 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
186 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
187 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
188 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
189 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
190 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
191 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
192 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
193 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
194 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
195 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
196 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
197 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
198 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
199 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
200 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
201 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
202 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
203 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
204 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
205 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
206 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
207 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
208 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
209 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
210 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
211 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
212 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
213 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
214 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
215 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
216 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
217 * sysdeps/unix/sysv/linux/execve.c: Likewise.
218 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
219 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
220 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
221 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
222 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
223 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
224 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
225 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
226 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
227 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
228 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
229 * sysdeps/unix/sysv/linux/readv.c: Likewise.
230 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
231 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
232 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
233 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
234 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
235 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
236 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
237 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
238 * sysdeps/unix/sysv/linux/poll.c: Likewise.
239 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
240 * sysdeps/unix/sysv/linux/writev.c: Likewise.
241 * sysdeps/unix/sysv/linux/pread.c: Likewise.
242 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
243 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
244 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
245 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
246 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
247 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
248 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
249 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
250 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
251 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
253 2003-09-02 Jakub Jelinek <jakub@redhat.com>
255 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
256 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
257 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
259 2003-09-02 Ulrich Drepper <drepper@redhat.com>
261 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
263 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
264 open, close, and read.
266 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
269 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
271 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
272 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
273 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
275 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
277 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
278 (CFLAGS-fstatfs.c): Likewise.
279 (CFLAGS-statvfs.c): Likewise.
280 (CFLAGS-fstatvfs.c): Likewise.
282 2003-09-01 Ulrich Drepper <drepper@redhat.com>
284 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
285 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
287 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
288 (CFLAGS-pathconf.c): Likewise.
289 (CFLAGS-fpathconf.c): Likewise.
291 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
292 * misc/fstab.h: Remove all __THROW.
293 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
294 (CFLAGS-mntent_r.c): Likewise.
295 * misc/mntent.h: Remove most __THROW.
297 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
298 (CFLAGS-mkstemp64.c): Likewise.
300 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
301 around call to exec_comm.
302 * posix/wordexp.h: Remove __THROW from wordexp.
303 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
305 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
306 not-cancelable functions.
308 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
309 (CFLAGS-iofopen.c): Likewise.
310 (CFLAGS-iofopen64.c): Likewise.
312 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
314 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
315 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
317 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
318 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
320 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
322 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
323 NSS_STATUS_SUCCESS if entry was found.
324 (getspent_next_file): Store user in blacklist after entry
325 was found, use innetgr.
327 2003-09-01 Jakub Jelinek <jakub@redhat.com>
329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
332 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
333 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
336 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
338 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
339 posix_fallocate64 at GLIBC_2.3.3.
340 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
341 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
343 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
345 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
348 2003-08-31 Ulrich Drepper <drepper@redhat.com>
350 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
351 Code by Richard Henderson.
353 2003-08-31 Philip Blundell <philb@gnu.org>
355 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
356 posix_fallocate64 at GLIBC_2.3.3.
358 2003-08-31 Ulrich Drepper <drepper@redhat.com>
360 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
361 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
363 2003-08-30 Jakub Jelinek <jakub@redhat.com>
365 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
366 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
367 included multiple times.
368 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
369 ptid, tls, ctid arguments to the kernel.
370 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
371 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
372 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
373 (__libc_sigaction): Use INLINE_SYSCALL instead of
374 __syscall_rt_sigaction.
375 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
376 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
377 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
378 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
379 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
380 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
381 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
382 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
383 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
384 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
385 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
386 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
387 (__CLONE_SYSCALL_STRING): Define.
388 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
390 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
391 (__CLONE_SYSCALL_STRING): Define.
392 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
394 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
396 2003-08-30 Ulrich Drepper <drepper@redhat.com>
398 * sunrpc/rpc/clnt.h: Remove a few __THROW.
399 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
400 (CFLAGS-key_call.c): Likewise.
401 (CFLAGS-pmap_rmt.c): Likewise.
402 (CFLAGS-clnt_perr.c): Likewise.
403 * sunrpc/rpc/auth.h: Remove serveral __THROW.
405 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
406 (CFLAGS-gethstbynm_r.c): Likewise.
407 (CFLAGS-gethstbynm2_r.c): Likewise.
408 (CFLAGS-rcmd.c): Likewise.
409 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
411 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
412 (CFLAGS-argp-fmtstream.c): Likewise.
413 * argp/argp.h: Remove a number of __THROW.
415 * misc/sys/syslog.h (vsyslog): Remove __THROW.
417 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
418 * misc/getpass.c (getpass): Add cleanup handler to ensure the
419 stream is closed even if the thread is canceled.
420 (call_fclose): New function.
421 * posix/unistd.h: Remove __THROW from getpass prototype.
423 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
425 * signal/signal.h (psignal): Remove __THROW.
426 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
428 * misc/Makefile (CFLAGS-error.c): Define.
429 * misc/error.c (error): Disable cancellation handling around the
430 actual output. The message should in any case be printed.
431 (error_at_line): Likewise.
433 * misc/error.h: Protect parameter names with leading __.
435 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
437 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
439 2003-08-29 Jakub Jelinek <jakub@redhat.com>
441 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
444 2003-08-29 Ulrich Drepper <drepper@redhat.com>
446 * libio/stdio.h: Remove a few more __THROW.
448 2003-08-29 Jakub Jelinek <jakub@redhat.com>
450 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
451 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
452 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
453 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
454 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
455 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
456 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
457 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
458 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
459 putwchar.c and rewind.c with exceptions.
460 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
461 _IO_release_lock): Define.
462 * libio/fileops.c (_IO_new_file_underflow): Use it.
463 * libio/fputc.c (fputc): Likewise.
464 * libio/fputwc.c (fputwc): Likewise.
465 * libio/freopen64.c (freopen64):
466 * libio/freopen.c (freopen): Likewise.
467 * libio/fseek.c (fseek): Likewise.
468 * libio/fseeko64.c (fseeko64): Likewise.
469 * libio/fseeko.c (fseeko): Likewise.
470 * libio/ftello64.c (ftello64): Likewise.
471 * libio/ftello.c (ftello): Likewise.
472 * libio/fwide.c (fwide): Likewise.
473 * libio/getc.c (_IO_getc): Likewise.
474 * libio/getchar.c (getchar): Likewise.
475 * libio/getwc.c (_IO_getwc): Likewise.
476 * libio/getwchar.c (getwchar): Likewise.
477 * libio/iofclose.c (_IO_new_fclose):
478 * libio/iofflush.c (_IO_fflush): Likewise.
479 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
480 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
481 * libio/iofgets.c (_IO_fgets): Likewise.
482 * libio/iofgetws.c (fgetws): Likewise.
483 * libio/iofputs.c (_IO_fputs): Likewise.
484 * libio/iofputws.c (fputws): Likewise.
485 * libio/iofread.c (_IO_fread): Likewise.
486 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
487 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
488 * libio/ioftell.c (_IO_ftell): Likewise.
489 * libio/iofwrite.c (_IO_fwrite): Likewise.
490 * libio/iogetdelim.c (_IO_getdelim): Likewise.
491 * libio/iogets.c (_IO_gets): Likewise.
492 * libio/ioputs.c (_IO_puts): Likewise.
493 * libio/ioseekoff.c (_IO_seekoff): Likewise.
494 * libio/ioseekpos.c (_IO_seekpos): Likewise.
495 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
496 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
497 * libio/ioungetc.c (_IO_ungetc): Likewise.
498 * libio/ioungetwc.c (ungetwc): Likewise.
499 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
500 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
501 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
502 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
503 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
504 * libio/peekc.c (_IO_peekc_locked): Likewise.
505 * libio/putc.c (_IO_putc): Likewise.
506 * libio/putchar.c (putchar): Likewise.
507 * libio/putwc.c (putwc): Likewise.
508 * libio/putwchar.c (putwchar): Likewise.
509 * libio/rewind.c (rewind): Likewise.
510 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
512 2003-08-29 Ulrich Drepper <drepper@redhat.com>
514 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
517 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
518 Jakub Jelinek <jakub@redhat.com>
520 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
521 big endian arches. Don't read beyond end of fds_bits array.
523 2003-04-27 Bruno Haible <bruno@clisp.org>
525 * manual/message.texi (Advanced gettext functions): Add information
526 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
527 Add section about Lithuanian, reported by Ricardas Cepas
528 <rch@richard.eu.org>.
529 Add information about Croatian.
530 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
531 Remove remark about continuation lines that is not true for PO files.
532 Fix formula for Slovenian, reported by Roman Maurer
533 <roman.maurer@amis.net>.
535 2003-08-27 Ulrich Drepper <drepper@redhat.com>
537 * math/math_private.h: Declare __copysignf.
538 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
541 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
542 __signbit, and __signbitl inline functions.
544 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
545 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
547 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
548 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
550 2003-08-27 Jakub Jelinek <jakub@redhat.com>
552 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
554 2003-08-27 Ulrich Drepper <drepper@redhat.com>
556 * include/stdio.h: Add declarations for __builtin_fwrite and
557 __builtin_fwrite_unlocked.
559 2003-08-27 Jakub Jelinek <jakub@redhat.com>
561 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
562 fits into allocation. Add padding on 32-bit arches so that
563 dirp->data is enough aligned for struct dirent64.
564 Avoid clearing of the buffer, just clear DIR structure.
566 2003-08-26 Ulrich Drepper <drepper@redhat.com>
568 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
569 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
571 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
573 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
575 2003-08-26 Jakub Jelinek <jakub@redhat.com>
577 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
578 to match format string.
579 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
581 (__new_semctl): Shut up warning.
582 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
583 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
585 2003-08-26 Jakub Jelinek <jakub@redhat.com>
587 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
588 link file use the real file name, not the resolved name we got by
589 following the symlinks.
591 2003-08-25 Ulrich Drepper <drepper@redhat.com>
593 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
594 if the object size is large enough.
596 2003-08-25 Jakub Jelinek <jakub@redhat.com>
598 * elf/ldconfig.c (search_dir): Treat symlink as regular file
599 if it won't point to itself unless it is .so symlink for the linker.
601 2003-08-25 Ulrich Drepper <drepper@redhat.com>
603 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
604 use _mode if _IO_fwide_maybe_incompatible.
605 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
606 the compatibility test.
608 2003-08-25 Jakub Jelinek <jakub@redhat.com>
610 * elf/cache.c (save_cache): Don't write beyond end of file_entries
612 Duplicate last old cache entry if the count would be odd.
614 2003-08-25 Andreas Jaeger <aj@suse.de>
616 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
617 __LONG_LONG_PAIR to long.
619 2003-08-25 Philip Blundell <philb@gnu.org>
621 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
622 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
624 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
626 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
627 and use __libc_cleanup_region_end instead.
629 2003-08-25 Ulrich Drepper <drepper@redhat.com>
631 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
633 2003-08-22 Ulrich Drepper <drepper@redhat.com>
635 * io/fcntl.h (posix_fallocate): Change type of third parameter to
637 (posix_fallocate64): Change type of third parameter to off64_t.
638 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
639 * sysdeps/posix/posix_fallocate.c: Likewise.
640 * sysdeps/generic/posix_fallocate64.c: Likewise.
641 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
642 code for 32-bit platforms.
643 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
645 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
646 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
647 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
649 2003-08-19 Ulrich Drepper <drepper@redhat.com>
651 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
652 the type, not to name.
654 * stdio-common/test-vfprintf.c (main): Don't write temporary file
655 into source directory.
657 * malloc/malloc.c (_int_free): Add cheap test for some invalid
660 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
663 2003-08-18 Ulrich Drepper <drepper@redhat.com>
665 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
668 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
670 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
671 (elf_machine_lazy_rel): Likewise.
673 2003-08-18 Art Haas <ahaas@airmail.net>
675 * malloc/malloc.h: Remove unneeded ';' where closing the C++
678 2003-08-18 Ulrich Drepper <drepper@redhat.com>
680 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
681 loading big binaries where @gprel(sym) cannot be handled in 'add'
682 but instead has to be used with 'movl'.
684 2003-08-17 Juergen Kreileder <jk@blackdown.de>
685 Andreas Jaeger <aj@suse.de>
687 * sysdeps/x86_64/bits/byteswap.h: New file.
689 2003-08-17 Andreas Jaeger <aj@suse.de>
691 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
693 2003-08-16 Jakub Jelinek <jakub@redhat.com>
695 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
696 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
697 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
698 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
699 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
700 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
701 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
702 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
703 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
705 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
706 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
707 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
708 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
709 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
711 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
712 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
713 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
715 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
716 posix_fadvise64_64): Remove.
717 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
719 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
722 (posix_fadvise64): Likewise.
723 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
724 (posix_fadvise64): Likewise.
725 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
726 (posix_fadvise64): Likewise.
727 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
729 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
730 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
731 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
732 (__posix_fadvise64_l32): New function.
733 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
735 posix_fadvise64@@GLIBC_2.3.3.
736 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
737 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
738 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
740 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
742 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
743 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
745 2003-08-15 Jakub Jelinek <jakub@redhat.com>
747 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
748 (elf_machine_matches_host): Remove weak extern stuff.
749 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
750 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
751 stuff. Use GL(dl_hwcap) unconditionally.
753 2003-08-16 Alan Modra <amodra@bigpond.net.au>
755 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
756 __libc_start_main branch.
758 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
759 Andreas Jaeger <aj@suse.de>
761 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
762 instead of setting errno.
763 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
765 2003-08-16 Andreas Jaeger <aj@suse.de>
767 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
768 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
770 2003-08-15 Ulrich Drepper <drepper@redhat.com>
772 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
774 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
775 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
776 description indicating the error value is returned, not -1.
777 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
778 __ASSUME_FADVISE64_64_SYSCALL.
779 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
780 posix_madvise in one file. Have posix_madvise defined with error
782 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
784 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
785 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
786 PSEUDO_END_ERRVAL, and ret_ERRVAL.
787 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
788 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
789 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
792 * posix/Makefile (routines): Add posix_madvise.
793 * sysdeps/generic/madvise.c: Don't define posix_madvise.
794 * sysdeps/generic/posix_madvise.c: New file.
795 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
796 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
797 Add posix_fadvise64_64.
799 2003-08-15 Jakub Jelinek <jakub@redhat.com>
801 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
802 3.0, not for !gcc or gcc < 3.0.
804 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
806 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
807 Address passed to test_in_mod1 and test_in_mod2 without casting.
808 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
809 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
810 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
811 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
813 2003-08-15 Jakub Jelinek <jakub@redhat.com>
815 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
816 Change quotes before using [].
818 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
820 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
822 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
823 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
824 argument. Select one of 64 locks from address bits.
825 (atomic_compare_and_exchange_val_acq,
826 atomic_compare_and_exchange_bool_acq): Pass memory address to
827 __sparc32_atomic_do_{,un}lock.
829 2003-08-14 Ulrich Drepper <drepper@redhat.com>
831 * assert/assert.h (assert): Use !! in front of expression to allow
834 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
835 Changed conversion of JIS X 0201 from using a table to calculating.
836 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
837 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
839 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
840 * iconvdata/CP932.irreversible: New file.
841 * iconvdata/EUC-JP-MS.irreversible: New file.
842 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
844 2003-08-13 Ulrich Drepper <drepper@redhat.com>
846 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
848 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
849 text processing tools.
851 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
852 element unless BROKEN_THREAD_SIGNALS is defined.
853 (struct requestlist): Likewise.
854 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
855 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
856 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
857 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
858 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
859 Pass current PID to __aio_sigqueue.
860 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
861 call. Don't initialize caller_pid field of waitlist element.
863 2003-08-12 Jakub Jelinek <jakub@redhat.com>
865 * libio/libioP.h (_IO_vtable_offset): Define.
866 * libio/freopen.c (freopen): Use it.
867 * libio/ioputs.c (_IO_puts): Likewise.
868 * libio/freopen64.c (freopen64): Likewise.
869 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
871 * libio/iofclose.c (_IO_new_fclose): Likewise.
872 * libio/iofputs.c (_IO_fputs): Likewise.
873 * libio/ioftell.c (_IO_ftell): Likewise.
874 * libio/iofwrite.c (_IO_fwrite): Likewise.
875 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
876 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
877 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
878 * stdio-common/vfscanf.c (ORIENT): Likewise.
880 2003-08-11 Ulrich Drepper <drepper@redhat.com>
882 * assert/assert.h: Use __builtin_expect in assert and
883 assert_perror definitions if possible.
885 2003-08-07 Jakub Jelinek <jakub@redhat.com>
887 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
888 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
889 * elf/rtld.c (rtld_lock_default_lock_recursive,
890 rtld_lock_default_unlock_recursive): New functions.
891 (dl_main): Initialize _dl_rtld_lock_recursive and
892 _dl_rtld_unlock_recursive.
894 2003-08-05 Jakub Jelinek <jakub@redhat.com>
896 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
897 config_file directories instead of prepending.
899 2003-08-02 Ulrich Drepper <drepper@redhat.com>
901 * sysdeps/unix/sysv/linux/kernel-features.h: Define
902 __ASSUME_CLONE_STOPPED.
904 2003-08-01 Ulrich Drepper <drepper@redhat.com>
906 * sysdeps/generic/bits/libc-lock.h
907 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
909 2003-08-01 Roland McGrath <roland@frob.com>
911 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
913 2003-07-31 Jakub Jelinek <jakub@redhat.com>
915 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
916 instead of __SWORD_TYPE.
917 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
918 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
919 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
921 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
923 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
925 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
927 * dlfcn/dlerror.c (once): New.
928 (dlerror): Call __libc_once.
929 (_dlerror_run): Remove once.
931 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
932 Sync with 2.5.7 and 2.5.73 kernel changes.
934 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
935 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
937 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
938 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
939 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
940 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
941 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
943 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
945 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
946 %d format and cast expected value to int.
947 * sysdeps/generic/libc-start.c (STATIC): Add
948 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
949 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
950 to ieee_float_shape_type.
951 (__sqrt): Avoid type punning.
952 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
953 to ieee_float_shape_type.
954 (__sqrtf): Avoid type punning.
955 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
956 refsym if in dl-conflict.c.
957 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
958 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
959 (__new_semctl): Shut up warning.
960 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
961 (__new_semctl): Shut up warning.
962 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
963 Change old into union of __old_shmid_ds and __old_shminfo structs.
965 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
967 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
969 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
970 * sysdeps/posix/utimes.c (__utimes): Likewise.
972 2003-07-30 Jakub Jelinek <jakub@redhat.com>
974 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
975 call dl_signal_error directly. If already relocated, call
976 GL(dl_init_static_tls) directly, otherwise queue it for later.
977 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
978 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
979 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
980 for all static TLS initializations delayed in _dl_allocate_static_tls.
981 * elf/dl-support.c (_dl_init_static_tls): New variable.
982 * include/link.h (struct link_map): Add l_need_tls_init.
983 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
984 (_dl_nothread_init_static_tls): New prototype.
985 (_dl_allocate_static_tls): Adjust prototype.
987 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
989 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
991 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
992 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
993 reloc_addr is aligned.
994 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
995 elf_machine_rela_relative): Adjust.
996 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
997 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
998 * sysdeps/cris/dl-machine.h (elf_machine_rela,
999 elf_machine_rela_relative): Adjust.
1000 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1001 elf_machine_rela_relative): Adjust.
1002 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1003 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1004 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1005 elf_machine_rela_relative): Adjust.
1006 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1007 elf_machine_rela_relative): Adjust.
1008 * sysdeps/mips/dl-machine.h (elf_machine_rela,
1009 elf_machine_rela_relative): Adjust.
1010 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1011 elf_machine_rela_relative): Adjust.
1012 * sysdeps/powerpc/powerpc64/dl-machine.h
1013 (elf_machine_rela_relative, elf_machine_rela): Adjust.
1014 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1015 elf_machine_rela_relative): Adjust.
1016 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1017 elf_machine_rela_relative): Adjust.
1018 * sysdeps/sh/dl-machine.h (elf_machine_rela,
1019 elf_machine_rela_relative): Adjust.
1020 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1021 elf_machine_rela_relative): Adjust.
1022 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1023 elf_machine_rela_relative): Adjust.
1024 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1025 elf_machine_rela_relative): Adjust.
1027 2003-07-29 Ulrich Drepper <drepper@redhat.com>
1029 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1030 alignment of TCB used before the last change so that it matches
1031 ld's output for IE code.
1033 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1035 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1036 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1037 break strict-aliasing rules" warnings.
1039 2003-07-29 Roland McGrath <roland@redhat.com>
1041 * elf/Makefile: Revert accidental changes in last commit.
1042 * elf/dl-support.c: Likewise.
1044 * rt/tst-timer2.c: New file.
1045 * rt/Makefile (tests): Add it.
1047 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1049 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1051 2003-07-29 Roland McGrath <roland@redhat.com>
1053 * elf/Makefile (tests) [$(build-shared) = yes]:
1054 Depend on $(test-modules).
1055 * dlfcn/Makefile: Likewise.
1057 2003-07-28 Roland McGrath <roland@redhat.com>
1059 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1060 Use that instead of `typedef' when using __*_TYPE macros in rhs.
1062 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1063 * elf/tst-tlsmod14a.c: Likewise.
1065 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1066 before <linux/sysctl.h>.
1068 2003-07-27 Ulrich Drepper <drepper@redhat.com>
1070 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1071 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1072 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1073 * sysdeps/unix/syscalls.list: umask syscall never fails.
1075 2003-07-27 Andreas Jaeger <aj@suse.de>
1077 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1079 2003-07-25 Jakub Jelinek <jakub@redhat.com>
1081 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1082 Include bits/a.out.h.
1083 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1085 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1086 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1087 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1088 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1089 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1090 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1091 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1092 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1094 2003-07-24 Jakub Jelinek <jakub@redhat.com>
1096 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1097 if aiocbp != NULL and has already completed. Return -1/EINVAL if
1098 aiocbp->aio_fildes does not match fildes.
1100 2003-07-24 Ulrich Drepper <drepper@redhat.com>
1102 * timezone/zic.c (rpytime): Replace cheap overflow check with a
1105 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1106 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1107 Fix calculation of offsets to take misalignment of first byte in
1109 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1110 l_tls_firstbyte_offset field.
1111 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1112 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1113 Take l_tls_firstbyte_offset information into account.
1114 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1115 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1116 * elf/Makefile: Add rules to build and run tst-tls14.
1117 * elf/tst-tls14.c: New file.
1118 * elf/tst-tlsmod14a.c: New file.
1119 * elf/tst-tlsmod14b.c: New file.
1121 2003-07-23 Jakub Jelinek <jakub@redhat.com>
1123 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1124 (lio_listio): Use it.
1125 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1126 after few defines to avoid duplication.
1128 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1130 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1131 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1133 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1134 Add libc_hidden_def.
1135 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1136 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1137 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1138 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1139 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1140 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1141 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1143 * sysdeps/generic/unwind.inc: Removed.
1145 * include/resolv.h (__resp): Declare. Define to __libc_resp
1147 (_res): If USE___THREAD, define to (*__resp).
1148 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1149 even if USE___THREAD.
1150 (__resp): New __thread variable.
1151 (__libc_resp): New alias.
1152 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1153 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
1154 * sysdeps/generic/res-state.c (__res_state): Return __resp
1157 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1159 * elf/dl-support.c (_dl_hwcap): New variable.
1160 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1162 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1163 and <dl-procinfo.h>.
1164 (__feclearexcept): Clear MXCSR if needed.
1165 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1167 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1168 that newer hardware needs more than these macros.
1170 * sysdeps/i386/setfpucw.c: New file.
1172 2003-07-22 Jakub Jelinek <jakub@redhat.com>
1174 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1175 * elf/ldconfig.c: Include dl-procinfo.c.
1176 (PROCINFO_CLASS): Define.
1177 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1178 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1179 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1180 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1181 Define if not yet defined. Use it instead of EXTERN. Undefine
1182 at the end of the file.
1183 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1185 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1186 (PROCINFO_CLASS): Likewise.
1187 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1188 (PROCINFO_CLASS): Likewise.
1190 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1192 * elf/ldconfig.c (main): Issue a fatal error if relative path
1193 is used to build cache.
1195 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1197 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1199 2003-07-21 Art Haas <ahaas@airmail.net>
1201 * manual/charset.texi (Converting a Character): Fix example code so a
1202 valid pointer is returned.
1204 2003-07-22 Andreas Jaeger <aj@suse.de>
1206 * elf/readlib.c (process_file): Check that file is a shared
1209 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1210 will not optimize it away.
1211 (__DTOR_END__): Likewise.
1212 (__CTOR_END__): Likewise.
1214 * include/libc-symbols.h (_elf_set_element): Use attribute used so
1215 that gcc will not optimize it away.
1216 (link_warning): Likewise.
1218 2003-07-22 Ulrich Drepper <drepper@redhat.com>
1220 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1221 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1222 * wcsmbs/tst-wcpncpy.c: New file.
1224 2003-07-21 Ulrich Drepper <drepper@redhat.com>
1226 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1228 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1229 stmxcsr and ldmxcsr.
1231 * Makerules (build-module-helper): Add -z defs unless explicitly said
1233 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1234 which has undefined symbols.
1235 * elf/Makefile: Likewise.
1237 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1238 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1239 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1240 * sysdeps/i386/fpu/fesetround.c: Likewise.
1241 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1243 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
1245 * elf/ldconfig.c (search_dir): Treat symlink as regular file
1246 if it won't point to itself.
1248 2003-07-20 Ulrich Drepper <drepper@redhat.com>
1250 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1252 2003-07-20 Andreas Jaeger <aj@suse.de>
1254 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1255 STANDARD_TO_LOOP_ERR_HANDLER.
1256 * iconvdata/euc-jp-ms.c (BODY): Likewise.
1258 2003-07-19 Ulrich Drepper <drepper@redhat.com>
1260 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1262 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1264 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
1265 Andreas Jaeger <aj@suse.de>
1267 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1268 256K, remove unneeded declaration of __getpagesize.
1270 2003-07-16 Andreas Schwab <schwab@suse.de>
1272 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1274 2003-07-15 Ulrich Drepper <drepper@redhat.com>
1276 * io/test-utime.c (main): Make test yet more robust.
1278 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1280 More cancellation handling fixups.
1281 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1282 * sysdeps/generic/not-cancel.h: Likewise.
1283 * catgets/open_catalog.c: Use not-cancelable syscalls.
1284 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1285 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1286 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1287 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1288 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1289 * libio/fileops.c: Use not-cancelable syscalls for fclose.
1290 * libio/iopopen.c: Use no-cancelable syscalls.
1291 * libio/stdio.h: Mark popen and pclose with __THROW again.
1292 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1293 * misc/syslog.c: Fix locking and cancellation cleanup handling.
1294 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1295 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1296 CFLAGS-tempname.c): Add -fexceptions.
1297 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1298 * string/string.h: Mark strerror and strerror_r with _THROW again.
1299 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
1300 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
1301 #ifs since we now need all the code compiled.
1302 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1303 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1304 * sysdeps/unix/opendir.c: Likewise.
1306 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1307 Add rule for EUC-JP-MS dependency.
1308 * iconvdata/cp932.c: New file.
1309 * iconvdata/eucjp-ms.c: New file.
1310 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1311 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1313 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1318 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1320 * sysdeps/unix/sysv/linux/kernel-features.h
1321 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1324 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1326 2003-07-14 Ulrich Drepper <drepper@redhat.com>
1328 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1329 __ASSUME_TGKILL for Alpha appropriately.
1331 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1333 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1334 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1336 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1339 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1340 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1342 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1343 second parameter == NULL.
1344 * sysdeps/unix/sysv/linux/utimes.c: New file.
1346 2003-07-12 Jakub Jelinek <jakub@redhat.com>
1348 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1349 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1352 2003-07-12 Ulrich Drepper <drepper@redhat.com>
1354 * time/sys/time.h: Namespace cleanup.
1355 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1356 __ASSUME_UTIMES for the architectures which always had the syscall.
1357 * sysdeps/unix/sysv/linux/futimes.c: New file.
1359 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1361 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1362 register across CENABLE and CDISABLE.
1364 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1366 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1367 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1368 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1369 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1370 int before assigning to max to avoid warnings.
1372 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1376 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1377 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1379 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1381 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1382 .data.rel.ro.local to "aw".
1384 2003-07-10 Ulrich Drepper <drepper@redhat.com>
1386 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1387 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1388 (PIC-ccflag): Define.
1390 2003-07-04 Jakub Jelinek <jakub@redhat.com>
1392 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1394 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1396 2003-07-07 Jakub Jelinek <jakub@redhat.com>
1398 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1399 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1401 2003-07-07 Ulrich Drepper <drepper@redhat.com>
1403 * sysdeps/unix/sysv/linux/kernel-features.h: Version
1404 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1406 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1407 compilation with HAVE_AUX_SECURE defined.
1409 2003-07-05 Richard Henderson <rth@redhat.com>
1411 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1413 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1415 * configure.in: Also check for .cfi_rel_offset pseudo-op.
1417 2003-07-03 Jakub Jelinek <jakub@redhat.com>
1419 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1422 2003-07-03 Ulrich Drepper <drepper@redhat.com>
1424 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1426 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1428 2003-07-02 Jakub Jelinek <jakub@redhat.com>
1430 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1431 decl and use with #ifdef NEED_DL_SYSINFO.
1433 2003-07-02 Ulrich Drepper <drepper@redhat.com>
1435 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1436 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1437 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1438 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1439 vsyscall DSO was added.
1441 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1442 depending on selected standard.
1443 (NGROUPS_MAX): Define to 8 if not defined.
1445 2003-07-02 Andreas Jaeger <aj@suse.de>
1447 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1449 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
1451 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1452 * malloc/thread-m.h: Include <atomic.h>.
1453 (atomic_full_barrier): Provide default.
1454 (atomic_read_barrier): Likewise.
1455 (atomic_write_barrier): Likewise.
1456 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1458 2003-06-30 Ulrich Drepper <drepper@redhat.com>
1460 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1462 2003-06-30 Richard Henderson <rth@redhat.com>
1464 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1465 Invert the sense of the return value.
1466 (__arch_exchange_16_int): Fix paste-o.
1467 (__arch_exchange_{32,64}_int): Fix think-o.
1469 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1471 2003-06-30 Richard Henderson <rth@redhat.com>
1473 * include/sys/resource.h (__getrusage): Mark hidden.
1474 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1475 * include/sys/wait.h (__wait4): Likewise.
1477 2003-06-17 Guido Guenther <agx@sigxcpu.org>
1479 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1481 (xstat_conv): Rename to __xstat_conv and remove static inline.
1482 (xstat64_conv): Likewise.
1484 2003-06-29 Ulrich Drepper <drepper@redhat.com>
1486 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1487 values which cannot be handled in one nanosleep call.
1489 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
1491 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1492 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1494 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1496 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
1498 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1501 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
1503 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1504 Conditionalize function definitions that use struct kernel_stat.
1505 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1506 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1507 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1509 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1511 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1514 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
1516 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1517 (getgrent_next_file): Don't store group name to early in blacklist.
1519 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1520 and use memcpy instead of strcpy.
1522 2003-06-28 Ulrich Drepper <drepper@redhat.com>
1524 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
1526 * nis/nss_compat/compat-initgroups.c: Likewise.
1527 * nis/nss_compat/compat-pwd.c: Likewise.
1528 * nis/nss_compat/compat-spwd.c: Likewise.
1530 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
1532 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1533 functions, dlopen corresponding NSS module instead.
1535 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
1537 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1538 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1539 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1540 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1542 2003-06-27 Ulrich Drepper <drepper@redhat.com>
1544 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1546 2003-06-26 Roland McGrath <roland@frob.com>
1548 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1549 * sysdeps/mach/configure: Regenerated.
1550 * sysdeps/mach/hurd/times.c (times_init): Function removed.
1551 (__times): Assume `creation_time' field is available.
1552 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1553 Don't append set-init.
1554 * sysdeps/mach/hurd/set-init.c: File removed.
1556 2003-06-26 Roland McGrath <roland@redhat.com>
1558 * elf/elf.h (AT_SECURE): New macro.
1559 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1560 set __libc_enable_secure.
1561 (_dl_show_auxv): Add AT_SECURE to name table.
1562 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1563 __libc_enable_secure and __libc_enable_secure_decided.
1564 * sysdeps/unix/sysv/linux/ldsodefs.h
1565 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1566 * sysdeps/unix/sysv/linux/kernel-features.h
1567 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1569 2003-06-26 Ulrich Drepper <drepper@redhat.com>
1571 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1572 boundary test to take rounding of nanoseconds into account.
1574 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1575 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1576 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1577 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1578 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1579 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1580 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1582 2003-06-26 Andreas Schwab <schwab@suse.de>
1584 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1585 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1586 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1588 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
1590 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1591 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1592 dlopen corresponding NSS module instead.
1593 * nis/nss_compat/compat-pwd.c: Likewise.
1594 * nis/nss_compat/compat-spwd.c: Likewise.
1595 * nis/nss_compat/compat-initgroups.c: Disabled for now.
1596 * nss/Versions: Export __nss_lookup_function.
1598 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1600 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1601 for the SH architecture.
1603 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
1605 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1607 2003-06-25 Andreas Jaeger <aj@suse.de>
1609 * stdlib/tst-strtod.c (main): Declare constant long double as
1610 suggested by Jakub Jelinek and Andreas Schwab.
1612 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1615 * stdio-common/tst-fphex.c: Fix format string.
1617 * posix/transbug.c: Include <string.h> for memset and strlen
1620 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1622 * stdlib/tst-strtod.c (main): Pass long double value.
1624 * test-skeleton.c: Include <time.h> for nanosleep declaration.
1626 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1628 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1631 2003-06-11 Jakub Jelinek <jakub@redhat.com>
1633 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1634 * elf/dl-libc.c (struct dl_open_hook): New.
1635 (_dl_open_hook): New variable.
1636 (do_dlsym_private): New function.
1637 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1638 and initialize it if found.
1639 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1640 call dlopen_mode hook.
1641 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1643 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1646 2003-06-25 Ulrich Drepper <drepper@redhat.com>
1648 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1649 result to long int so that extensions to long long int work.
1650 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1652 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1654 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1655 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1656 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1658 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1659 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1660 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1661 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1663 2003-06-19 Jakub Jelinek <jakub@redhat.com>
1665 * test-skeleton.c (timeout_handler): If waitpid returned 0,
1666 retry once after a second. If killed == 0, assume
1667 WTERMSIG (status) == SIGKILL.
1669 2003-06-18 Roland McGrath <roland@redhat.com>
1671 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1672 elements in the table instead of printing an empty name string.
1674 2003-06-05 Roland McGrath <roland@redhat.com>
1676 * elf/elf.h (PT_GNU_STACK): New macro.
1678 2003-06-24 Ulrich Drepper <drepper@redhat.com>
1680 * include/time.h: Define CLOCK_IDFIELD_SIZE.
1681 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1682 * sysdeps/unix/clock_gettime.c: Likewise.
1683 * sysdeps/unix/clock_settime.c: Likewise.
1684 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1685 clock id for thread CPU clocks.
1687 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1688 for the fstatfs64 syscall.
1689 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1690 the statfs64 syscall.
1692 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1693 __ASSUME_STATFS64 appropriately.
1695 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1696 from statfs structure if it has been filled in.
1698 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1700 (struct statfs64): Likewise.
1701 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1702 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1704 2003-06-24 Richard Henderson <rth@redhat.com>
1706 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1707 the 64-bit syscall name.
1709 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1711 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1712 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
1714 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1715 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1717 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1718 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1721 * sysdeps/alpha/bits/atomic.h: New file.
1723 2003-06-24 Andreas Schwab <schwab@suse.de>
1725 * sysdeps/m68k/fpu/libm-test-ulps: Update.
1727 2003-06-24 Andreas Jaeger <aj@suse.de>
1729 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1730 redeclaration with 32-bit code.
1732 2003-05-19 Ed Connell <ed.connell@sas.com>
1734 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1735 floating point mask.
1736 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1738 2003-06-23 Ulrich Drepper <drepper@redhat.com>
1740 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1741 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1742 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1744 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1745 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
1746 instead of __libc_cleanup_region_*.
1748 2003-06-20 Richard Henderson <rth@redhat.com>
1750 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1751 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1753 2003-06-20 Richard Henderson <rth@redhat.com>
1755 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1756 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1758 (__ASSUME_TIMEVAL64): Set for alpha.
1759 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1760 adjtimex, osf_sigprocmask, old_adjtimex.
1761 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1762 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
1763 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1764 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1765 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1766 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1767 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1768 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1769 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1770 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1771 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
1773 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1774 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
1775 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
1776 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
1777 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1778 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
1779 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
1780 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
1781 defer to __syscall_name; error for rt_sigaction.
1782 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
1784 2003-06-18 Ulrich Drepper <drepper@redhat.com>
1786 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
1787 hasn't happened yet.
1789 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1790 Fix completely broken implementation. The second parameter is of
1791 type struct ucontext*.
1793 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
1796 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
1797 * sysdeps/generic/dl-hash.h: Likewise.
1799 * sysdeps/generic/memcmp.c: Remove inline from
1800 memcmp_common_alignment and memcmp_not_common_alignment definition.
1802 * intl/localealias.c (read_alias_file): Determine whether line is
1803 read incompletely early, before we modify the line.
1805 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1807 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
1808 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
1810 2003-06-17 Paul Mackerras <paulus@samba.org>
1812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
1813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
1814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
1815 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
1816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
1817 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
1819 2003-06-17 Jakub Jelinek <jakub@redhat.com>
1821 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
1823 2003-06-17 Ulrich Drepper <drepper@redhat.com>
1825 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
1826 takes care of enabling cancellation.
1828 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
1829 cancelable. It's not correct to disable cancellation. Instead of
1832 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
1833 and part of the incoming set, create a temporary set without this
1835 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1836 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1838 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
1839 returning because seconds==0. Add __builtin_expect.
1841 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1843 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
1845 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
1848 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
1850 * include/libc-symbols.h: Add static_link_warning macro.
1851 * grp/initgroups.c: Print linker warning if this function
1852 is called in a static linked binary.
1853 * nss/getXXbyYY.c: Likewise.
1854 * nss/getXXbyYY_r.c: Likewise.
1855 * nss/getXXent.c: Likewise.
1856 * nss/getXXent_r.c: Likewise.
1857 * sysdeps/posix/getaddrinfo.c: Likewise.
1859 2003-06-16 Bruno Haible <bruno@clisp.org>
1861 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
1863 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
1864 (IBM1047): Add alias IBM-1047.
1865 (GBK): Add aliases MS936, WINDOWS-936.
1867 2003-06-16 Jakub Jelinek <jakub@redhat.com>
1869 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
1870 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
1871 (__xstat64_conv): Change xstat_conv to __xstat_conv.
1873 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1875 * locale/iso-639.def: Update from current official ISO 639.
1877 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
1879 2003-06-15 Andreas Jaeger <aj@suse.de>
1881 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
1883 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1884 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
1885 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
1887 * math/tgmath.h (carg): Handle real arguments.
1893 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
1894 (tests): Add test-tgmath-ret.
1895 * math/test-tgmath-ret.c: New file.
1897 * math/tgmath.h (ilogb): Return always an int.
1899 2003-06-16 Ulrich Drepper <drepper@redhat.com>
1901 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
1902 computation so that prelinking works.
1904 2003-06-15 Ulrich Drepper <drepper@redhat.com>
1906 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
1908 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
1909 dynamic linker's map.
1911 Fix cancellation point handling wrt exception based cleanup.
1912 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
1913 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
1915 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
1916 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
1917 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
1919 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
1920 sigwait.c, and sigwaitinfo.c with exceptions.
1921 * stdlib/Makefile: Compile system.c with exceptions.
1922 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
1923 * termios/Makefile: Compile tcdrain.c with exceptions.
1924 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
1926 * sysdeps/generic/pselect.c: Likewise.
1927 * sysdeps/posix/sigpause.c: Likewise.
1928 * sysdeps/posix/system.c: Likewise.
1929 * sysdeps/posix/waitid.c: Likewise.
1930 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1931 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1932 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
1933 INTERNAL_SYSCALL to not use push inside asm statement so that
1934 unwind info is correct around the syscall.
1935 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
1936 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1938 2003-06-15 Andreas Jaeger <aj@suse.de>
1940 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1943 2003-06-15 Guido Guenther <agx@sigxcpu.org>
1945 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
1948 2003-06-14 Ulrich Drepper <drepper@redhat.com>
1950 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
1953 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
1954 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
1957 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
1958 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
1959 * inet/Makefile (routines): Add inet6_option.
1960 * inet/inet6_option.c: New file.
1961 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
1962 inet6_option_init, inet6_option_append, inet6_option_alloc,
1963 inet6_option_next, and inet6_option_find.
1965 2003-06-13 Ulrich Drepper <drepper@redhat.com>
1967 * inet/netinet/ip6.h (struct ip6_ext): Define.
1969 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
1971 Fixing gcc 3.3 warnings, part II.
1972 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
1973 * elf/dl-load.c (cache_rpath): Don't inline.
1974 * iconvdata/cns11642l2.h: Always inline all functions.
1975 * iconvdata/iso-ir-165.h: Likewise.
1976 * locale/Makefile (aux): Add coll-lookup.
1977 * locale/coll-lookup.c: New file.
1978 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
1979 (collseq_table_lookup): Likewise.
1980 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
1981 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
1983 * posix/regcomp.c: Likewise.
1984 * posix/regexec.c: Likewise.
1985 * locale/programs/3level.h (*_get): Always inline.
1986 * locale/programs/locfile.h: Move definition of handle_copy to...
1987 * locale/programs/locfile.c: ...here.
1988 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
1989 (obstack_int32_grow_fast): Likewise.
1990 (utf8_encode): Likewise.
1991 (find_element): Avoid aliasing problems.
1992 (insert_value): Likewise.
1993 (collate_read): Likewise.
1994 * nss/getent.c (print_hosts): Don't inline
1995 (print_networks): Likewise.
1996 (print_shadow): Likewise.
1997 (build_doc): Likewise.
1998 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2000 * posix/regcomp.c (re_set_fastmap): Always inline.
2001 (seek_collating_symbol_entry): Likewise.
2002 (lookup_collation_sequence_value): Likewise.
2003 (build_range_exp): Likewise.
2004 (build_collating_symbol): Likewise.
2005 * posix/regexec.c (acquire_init_state_context): Don't inline.
2006 (clean_state_log_if_need): Likewise.
2007 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2009 (evConsTime): Likewise.
2010 (evAddTime): Likewise.
2011 (evSubTime): Likewise.
2012 (evNowTime): Likewise.
2013 (evTimeSpec): Removed.
2014 (__libc_res_nsend): Avoid aliasing problem.
2015 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2016 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2017 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2019 (_dl_string_platform): Likewise.
2020 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2021 (wcwidth_table_lookup): Likewise.
2022 (wctrans_table_lookup): Likewise.
2024 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2026 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2028 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2030 2003-05-29 Jim Meyering <jim@meyering.net>
2032 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2033 && HAVE_STRFTIME]: Use underlying_strftime for %r.
2034 Suggested by Daniel Yacob <locales@geez.org>.
2036 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
2038 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2039 @got notation with @toc.
2040 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2043 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2045 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2046 if only PF_INET address is needed.
2048 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2051 * scripts/config.guess: Update from upstream version.
2052 * scripts/config.sub: Likewise.
2054 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2056 * locale/programs/ld-time.c (time_output): Also copy the era format,
2059 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
2061 * posix/transbug.c (run_test): Return 1 for failure.
2062 (do_test): Compare only if run_test is successful.
2064 2003-06-12 Simon Josefsson <jas@extundo.com>
2066 * argp/argp.h [!__THROW]: Define if undefined.
2068 2003-06-12 Ulrich Drepper <drepper@redhat.com>
2070 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2071 more than four parameters.
2072 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2074 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2076 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2077 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2078 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2080 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2082 2003-06-12 Roland McGrath <roland@redhat.com>
2084 * Makerules ($(objpfx)stubs): Rewrite sed magic.
2086 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
2088 * posix/regcomp.c (parse_expression): Deliver translation to
2089 build_word_op, and build_charclass.
2090 (build_charclass): Apply translation for character classes too.
2091 (build_word_op): Deliver translation to build_charclass.
2092 * posix/transbug.c: New file.
2093 * posix/Makefile (tests): Add transbug.
2095 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
2097 * posix/regexec.c (group_nodes_into_DFAstates): Check for
2098 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
2099 'continue' before the others.
2101 2003-06-11 Ulrich Drepper <drepper@redhat.com>
2103 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2104 function [PR libc/5045].
2106 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2109 * time/tzfile.c: Add a couple of __builtin_expect.
2111 Remove warnings gcc 3.3 shows.
2112 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2113 * elf/dl-load.c (fillin_rpath): Likewise.
2114 (add_path): Likewise.
2115 * elf/dl-version.c (find_needed): Always inline.
2116 * elf/do-lookup.c (FCT): Don't inline.
2117 * iconv/Makefile: Extend vpath to intl subdir.
2118 (iconvconfig-modules): Add hash-string.
2119 * iconv/gconv_charset.h (strip): Don't inline.
2120 (upstr): Always inline.
2121 Move __gconv_compare_alias prototype to...
2122 * iconv/gconv_int.h: ...here.
2123 * iconv/gconv_db.c: Don't include gconv_charset.h.
2124 * iconv/gconv_conf.c (add_alias): Don't inline.
2125 (insert_module): Likewise.
2126 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2127 (internal_ucs4_loop_unaligned): Likewise.
2128 (internal_ucs4_loop_single): Likewise.
2129 (ucs4_internal_loop): Likewise.
2130 (ucs4_internal_loop_unaligned): Likewise.
2131 (ucs4_internal_loop_single): Likewise.
2132 (internal_ucs4le_loop): Always inline.
2133 (internal_ucs4le_loop_unaligned): Likewise.
2134 (internal_ucs4le_loop_single): Likewise.
2135 (ucs4le_internal_loop): Likewise.
2136 (ucs4le_internal_loop_unaligned): Likewise.
2137 (ucs4le_internal_loop_single): Likewise.
2138 * iconv/loop.c: Always inline the defined functions.
2139 * iconvdata/cns11642.h: Likewise.
2140 * iconvdata/cns11642l1.h: Likewise.
2141 * iconvdata/euc-kr.c: Likewise.
2142 * iconvdata/gb2312.h: Likewise.
2143 * iconvdata/jis0201.h: Likewise.
2144 * iconvdata/jis0208.h: Likewise.
2145 * iconvdata/jis0212.h: Likewise.
2146 * iconvdata/jisx0213.h: Likewise.
2147 * iconvdata/ksc5601.h: Likewise.
2148 * iconvdata/utf-7.c (base64): Don't inline.
2149 * include/libc-symbols.h (symbol_set_first_element): Add cast
2150 (symbol_set_end_p): Likewise.
2151 * include/set-hooks (RUN_HOOK): Likewise.
2152 * inet/Makefile (aux): Add ifreq.
2153 * intl/Makefile (aux): Add some entries from routines. Add
2155 * intl/hash-string.c: New file.
2156 * intl/hash-string.h: Remove hash_string definition. Declare
2158 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2159 * iconv/iconvconfig.c (new_name): Likewise.
2160 * intl/dcigettext.c (_nl_find_msg): Likewise.
2161 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2162 * io/ftw.c (open_dir_stream): Always inline.
2163 (process_entry): Don't inline.
2164 * locale/findlocale.c: Include gconv_int.h.
2165 * locale/setlocale.c (new_composite_name): Don't inline.
2166 * locale/weight.h (findidx): Always inline.
2167 * locale/weightwc.h (findidx): Likewise.
2168 * locale/programs/linereader.c (lr_ignore_rest): Define here.
2169 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2171 (lr_getc): Always inline.
2172 (lr_ungetc): Likewise.
2173 * nss/nss_files/files-parse.c (parse_list): Likewise.
2174 * stdio-common/Makefile (aux): Add printf-parsemb and
2176 * stdio-common/_itoa.h (_itoa_word): Always inline.
2177 (_fitoa_word, _fitoa): Don't define here, only declare.
2178 * stdio-common/_itoa.c (_iftoa_word): Add here.
2180 * stdio-common/_itowa.h (_itowa_word): Always inline.
2181 * stdio-common/printf-parse.h (read_int): Don't inline.
2182 (find_spec): Don't define.
2183 Declare __find_specmb and __find_specwc.
2184 (parse_one_spec): Don't define.
2185 Declare __parse_one_specmb and __parse_one_specwc.
2186 * stdio-common/printf-parsemb.c: New file.
2187 * stdio-common/printf-parsewc.c: New file.
2188 * stdio-common/vfprintf.c: Update calls to find_spec and
2189 parse_one_spec for new names.
2190 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
2191 * stdlib/Makefile (aux): Add grouping and groupingwc.
2192 * stdlib/grouping.c: New file.
2193 * stdlib/groupingwc.c: New file.
2194 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2196 * stdlib/rpmatch.c (try): Don't inline.
2197 * stdlib/strtod.c (round_and_return): Don't line.
2198 (str_to_mpn): Likewise.
2199 (__mpn_lshift_1): Always inline. Optimize only for constant count.
2200 Adjust for name change of correctly_grouped_prefix.
2201 * sysdeps/generic/strtol.c: Adjust for name change of
2202 correctly_grouped_prefix.
2203 * string/strxfrm.c (utf8_encode): Don't inline.
2204 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2205 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2206 * sysdeps/generic/ifreq.c: New file.
2207 * sysdeps/unix/sysv/linux/ifreq.c: New file.
2208 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2209 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2210 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2211 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2212 (fde_split): Likewise.
2213 (fde_merge): Likewise.
2214 (end_fde_sort): Likewise.
2215 (init_object): Likewise.
2216 (binary_search_unencoded_fdes): Likewise.
2217 (binary_search_single_encoding_fdes): Likewise.
2218 (binary_search_mixed_encoding_fdes): Likewise.
2219 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2220 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2221 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2222 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2224 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2225 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2226 Export them. Prepend __ to name.
2227 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2228 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2229 conversion functions.
2230 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2231 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2232 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2233 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2234 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2235 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2236 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2237 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2238 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2239 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
2240 to name. Change callers.
2241 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2242 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2244 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2245 * time/tzfile.c (decode): Always inline.
2246 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2247 Remove cast in tomb function call.
2248 * wcsmbs/wcsrtombs.c Likewise.
2249 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2252 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2254 * po/zh_CN.po: Update from translation team.
2256 2003-06-10 Jakub Jelinek <jakub@redhat.com>
2258 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2259 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2261 2003-06-10 Ulrich Drepper <drepper@redhat.com>
2263 * inet/Makefile (aux): Add check_pf.
2264 * include/ifaddrs.h: Add prototype for __check_pf.
2265 * sysdeps/generic/check_pf.c: New file.
2266 * sysdeps/unix/sysv/linux/check_pf.c: New file.
2267 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2268 from no_netlink_support. Export.
2269 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2272 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2274 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2275 from getifaddr calls.
2277 2003-06-09 Jakub Jelinek <jakub@redhat.com>
2279 * sysdeps/unix/sysv/linux/kernel-features.h
2280 (__ASSUME_SETRESGID_SYSCALL): Define.
2281 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2282 instead of __ASSUME_SETRESUID_SYSCALL.
2283 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2285 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2286 inline syscall if __NR_setresuid32 is defined.
2287 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2288 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2289 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2290 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2291 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2292 code handling non-existant setresgid32 syscall with
2293 #if __ASSUME_SETRESGID_SYSCALL == 0.
2295 2003-06-09 Andreas Schwab <schwab@suse.de>
2297 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2298 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2299 $(objpfx)rpc-proto.d.
2300 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
2301 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2302 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2304 2003-06-08 Ulrich Drepper <drepper@redhat.com>
2306 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2307 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2308 defined drop compatibility code.
2309 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2310 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
2311 defined drop compatibility code.
2312 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2313 setresuid32 syscall directly if possible.
2314 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2315 setresgid32 syscall directly if possible.
2316 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2317 compliant. Don't change sgid.
2318 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2319 compliant. Don't change suid.
2321 * config.h.in: Add have-forced-unwind.
2322 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2324 2003-06-07 Ulrich Drepper <drepper@redhat.com>
2326 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2327 returned status from child matches.
2329 * Makeconfig (gnulib): Add -lgcc_eh once again.
2331 2003-06-06 Ulrich Drepper <drepper@redhat.com>
2333 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2335 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2336 %edx for first parameter. This means no pushl and therefore the
2337 unwind info isn't screwed up.
2339 2003-06-04 Richard Henderson <rth@redhat.com>
2341 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2342 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2343 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
2344 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2345 entry sequence and explicit relocs. Add unwind info for sigreturn
2347 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2349 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2350 Annotate some parameters.
2351 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2353 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2355 * include/libc-symbols.h (symbol_set_declare): Use arrays
2356 of unspecified size.
2358 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2360 * config.make.in (ASFLAGS-config): New.
2361 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2362 * configure.in (libc_cv_as_noexecstack): New check.
2363 (ASFLAGS_config): Substitute.
2365 2003-06-04 Jakub Jelinek <jakub@redhat.com>
2367 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2368 hypot, logb): Protect with #ifdef __FAST_MATH__.
2370 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
2372 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2373 #ifdef __FAST_MATH__.
2375 2003-06-03 Ulrich Drepper <drepper@redhat.com>
2377 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2378 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2379 * posix/globtest.sh: Adjust for this change.
2381 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2382 to get the actual PID value used in the records passed up.
2383 (getifaddrs): Don't initialize nh.pid here.
2385 2003-06-02 Ulrich Drepper <drepper@redhat.com>
2387 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2390 * po/zh_CN.po: Update from translation team.
2392 * posix/getconf.c (main): Also recognize names without the
2395 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2397 2003-06-02 Bernd Schmidt <bernds@redhat.com>
2399 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2400 ldexpf, ldexpl): Only define if __FAST_MATH__.
2402 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
2404 Replace hard-coded offsets into struct sigcontext with generated file.
2405 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2406 * sysdeps/unix/sysv/linux/ia64/Makefile
2407 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2408 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2409 defining SC_* macros here.
2411 2003-06-02 Jakub Jelinek <jakub@redhat.com>
2413 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2415 2003-06-01 Jakub Jelinek <jakub@redhat.com>
2417 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2419 2003-06-01 Ulrich Drepper <drepper@redhat.com>
2421 * test-skeleton.c (main): Request getopt to not reorder the
2424 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2426 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2429 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2431 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2433 2003-05-31 Jakub Jelinek <jakub@redhat.com>
2435 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2437 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2438 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
2439 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2441 2003-05-31 Ulrich Drepper <drepper@redhat.com>
2443 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2446 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2448 * libio/fileops.c (_IO_file_open): Don't mark as inline.
2450 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2453 2003-05-30 Ulrich Drepper <drepper@redhat.com>
2455 * scripts/config.guess: Update from master copy.
2456 * scripts/config.sub: Likewise.
2458 2003-05-30 Guido Guenther <agx@sigxcpu.org>
2460 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2461 SETUP_GP64 and friends.
2462 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2463 names in internal_syscall{6,7}.
2464 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2465 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2466 number of syscall arguments.
2467 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2468 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2469 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2471 2003-05-30 Andreas Jaeger <aj@suse.de>
2473 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2476 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2479 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2481 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2484 2003-05-30 Jakub Jelinek <jakub@redhat.com>
2486 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2489 2003-05-11 Andreas Schwab <schwab@suse.de>
2491 * Makerules: Always use -MP together with -MD.
2492 (sed-remove-dotot): Substitute $(..) also at start of line.
2493 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2494 Generated defines with a single compiler call.
2495 Use $(sed-remove-dotdot).
2496 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2497 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2498 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2499 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2500 * sysdeps/unix/sysv/linux/mips/Makefile
2501 ($(objpfx)syscall-%.h): Likewise.
2503 2003-05-28 Roland McGrath <roland@redhat.com>
2505 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2507 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
2509 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2511 2003-05-28 Roland McGrath <roland@redhat.com>
2513 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2514 rt_sigprocmask system call.
2515 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2516 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2518 2003-05-28 Ulrich Drepper <drepper@redhat.com>
2520 * include/libc-symbols.h: Define hidden attribute for real also if
2521 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
2523 * csu/Makefile: Add rules to build Scrt1.o.
2524 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2525 * sysdeps/x86_64/elf/start.S: Likewise.
2527 2003-05-27 Jakub Jelinek <jakub@redhat.com>
2529 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2530 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2531 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2532 pa_short_int, pa_u_short_int and pa_float.
2534 2003-05-26 Jakub Jelinek <jakub@redhat.com>
2536 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2537 _IO_str_init_static_internal.
2538 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2539 change size argument to _IO_size_t, don't limit sprintf to 64M.
2540 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2541 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2542 _IO_size_t, don't limit swprintf to 256M.
2543 (_IO_wstr_init_readonly): Remove.
2544 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2546 (_IO_wstr_init_readonly): Remove prototype.
2547 * libio/iovsprintf.c (_IO_vsprintf): Use
2548 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2549 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2550 * libio/memstream.c (open_memstream): Likewise.
2551 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2552 * libio/vasprintf.c (_IO_vasprintf): Likewise.
2553 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2554 * stdio-common/tst-sprintf.c (main): Add new test.
2556 2003-05-26 Ulrich Drepper <drepper@redhat.com>
2558 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2559 other implementation in respect of multiple uses of parameter with
2562 2003-05-25 Ulrich Drepper <drepper@redhat.com>
2564 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2565 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2567 2003-05-22 Andreas Jaeger <aj@suse.de>
2569 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2571 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2572 * sysdeps/x86_64/strtok.S: Likewise.
2574 2003-05-20 Guido Guenther <agx@sigxcpu.org>
2576 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2577 to -60 and define SI_TKILL.
2579 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
2581 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2582 (feexcp_mask_test): Likewise.
2584 2003-05-21 Ulrich Drepper <drepper@redhat.com>
2586 * locale/programs/locale.c (main): Fix typo in last patch.
2588 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2589 __init_array_start, __init_array_end, __fini_array_start, and
2590 __fini_array_end as hidden.
2592 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
2594 * locale/programs/locale.c (main): Report an error if setlocale()
2595 fails [PR libc/2254].
2597 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2599 * sysdeps/unix/sysv/linux/s390/system.c: New file.
2601 2003-05-21 Jakub Jelinek <jakub@redhat.com>
2603 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2604 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2605 LOADARGS_6): Don't error if syscall argument is a string literal.
2606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2607 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2608 LOADARGS_6): Likewise.
2610 2003-05-21 Andreas Jaeger <aj@suse.de>
2612 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2613 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2614 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2616 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2620 * configure.in: Test for asm cfi directives.
2622 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2624 2003-05-17 Andreas Jaeger <aj@suse.de>
2626 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2628 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2630 2003-05-16 Ulrich Drepper <drepper@redhat.com>
2632 * rt/Makefile (tests): Add tst-clock_nanosleep.
2633 * rt/tst-clock_nanosleep.c: New file.
2634 * posix/Makefile (tests): Add tst-nanosleep.
2635 * posix/tst-nanosleep.c: New file.
2637 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2639 * include/features.h (__USE_XOPEN2K): Define also for
2640 _POSIX_C_SOURCE>=200112L.
2642 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2643 SI_TKILL code into SI_USER.
2644 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2646 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2648 2003-05-15 Jakub Jelinek <jakub@redhat.com>
2650 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2651 Remove sym argument, always use refsym.
2652 (__process_machine_rela): Adjust callers.
2653 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2655 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2657 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2659 2003-05-15 Ulrich Drepper <drepper@redhat.com>
2661 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2662 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
2663 print numeric values.
2665 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
2667 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2669 2003-05-14 Andreas Schwab <schwab@suse.de>
2671 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2673 2003-05-14 Jakub Jelinek <jakub@redhat.com>
2675 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2676 even if no DT_NEEDED is present.
2678 2003-05-13 David Mosberger <davidm@hpl.hp.com>
2680 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2681 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2682 __sigjmp_save) so we can't keep the saved unat value in a scratch
2683 register (r16). Use loc2 instead.
2685 2003-05-13 Ulrich Drepper <drepper@redhat.com>
2687 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2688 binaries it has to be relocatable.
2690 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2692 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
2694 * sysdeps/powerpc/bits/atomic.h
2695 (__arch_compare_and_exchange_bool_8_rel): Define.
2696 (__arch_compare_and_exchange_bool_16_rel): Define.
2697 (__ARCH_REL_INSTR): Define if not already defined.
2698 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2699 (__arch_atomic_decrement_if_positive_32):
2700 Add "memory" to clobber list.
2701 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2702 (__arch_compare_and_exchange_val_32_rel): Define.
2703 (__arch_atomic_exchange_32): Remove.
2704 (__arch_atomic_exchange_32_acq): Define.
2705 (__arch_atomic_exchange_32_rel): Define.
2706 (atomic_compare_and_exchange_val_rel): Define.
2707 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2708 (atomic_exchange_rel): Define.
2709 * sysdeps/powerpc/powerpc32/bits/atomic.h
2710 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2711 (__arch_compare_and_exchange_bool_32_rel): Define.
2712 (__arch_compare_and_exchange_bool_64_rel): Define.
2713 (__arch_compare_and_exchange_val_64_rel): Define.
2714 (__arch_atomic_exchange_64): Remove.
2715 (__arch_atomic_exchange_64_acq): Define.
2716 (__arch_atomic_exchange_64_rel): Define.
2717 * sysdeps/powerpc/powerpc64/bits/atomic.h
2718 (__arch_compare_and_exchange_bool_32_rel): Define.
2719 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2720 (__arch_compare_and_exchange_bool_64_rel): Define.
2721 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2722 (__arch_compare_and_exchange_val_64_rel): Define.
2723 (__arch_atomic_exchange_64): Remove.
2724 (__arch_atomic_exchange_64_acq): Define.
2725 (__arch_atomic_exchange_64_rel): Define.
2726 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2727 (__arch_atomic_decrement_if_positive_64):
2728 Add "memory" to clobber list.
2729 [!UP](__ARCH_REL_INSTR): Define as lwsync.
2731 2003-05-11 Andreas Schwab <schwab@suse.de>
2733 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2735 2003-05-11 Ulrich Drepper <drepper@redhat.com>
2737 * time/tst-strftime.c (do_test): Add tests for - flag.
2739 2003-05-11 Jim Meyering <jim@meyering.net>
2741 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2742 the space-padded-by-default conversion specifiers, %e, %k, %l.
2744 2003-05-11 Andreas Schwab <schwab@suse.de>
2746 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2748 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2750 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2751 already defined and when really needed.
2752 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2754 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2756 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2757 headers, add defines from kernel header, move it from here...
2758 * inet/netinet/igmp.h: ... to here.
2759 * inet/Makefile (headers): Add netinet/igmp.h.
2760 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2761 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2763 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2765 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2766 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2768 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
2770 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
2771 (remove __THROW from possible cancellation points).
2773 2003-05-10 Ulrich Drepper <drepper@redhat.com>
2775 * posix/sched.h (CPU_SETSIZE): Define.
2777 2003-05-09 Ulrich Drepper <drepper@redhat.com>
2779 * Makeconfig (gnulib): Remove -lgcc_eh again.
2781 * posix/sched.h: Change prototypes of sched_getaffinity and
2782 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
2783 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
2784 * sysdeps/generic/sched_setaffinity.c: Likewise.
2785 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
2786 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
2787 __CPU_CLR, and __CPU_ISSET.
2788 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2789 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
2790 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
2792 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
2793 (atomic_exchange_rel): New #define.
2794 * sysdeps/ia64/bits/atomic.h: Likewise.
2795 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
2797 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
2798 * sysdeps/powerpc/bits/atomic.h: Likewise.
2799 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
2800 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
2801 * sysdeps/x86_64/bits/atomic.h: Likewise.
2802 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
2804 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
2806 2003-05-08 Ulrich Drepper <drepper@redhat.com>
2808 * malloc/thread-m.h: Remove special handling of thread_atfork if
2809 HAVE_register_atfork_malloc is defined.
2811 2003-05-07 Andreas Jaeger <aj@suse.de>
2813 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
2816 2003-05-06 Ulrich Drepper <drepper@redhat.com>
2818 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
2819 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2820 * libio/libioP.h: Declare _IO_old_init.
2821 * libio/genops.c (_IO_no_init): Split in two. New function
2824 2003-05-05 Ulrich Drepper <drepper@redhat.com>
2826 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
2828 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
2830 * include/unistd.h: Declare __libc_enable_secure_decided.
2831 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
2832 and AT_EGID. If all found, set __libc_enable_secure and
2833 __libc_enable_secure_decided.
2835 * sysdeps/generic/libc-start.c [!SHARED]: Call
2836 __libc_check_standard_fds after __libc_init_first.
2838 2003-05-05 Roland McGrath <roland@redhat.com>
2840 * Makerules (common-before-compile): New variable.
2841 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
2842 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
2843 to after all setting of before-compile.
2845 2003-05-05 Jakub Jelinek <jakub@redhat.com>
2847 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2848 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
2849 * sysdeps/powerpc/powerpc32/bits/atomic.h
2850 (__arch_compare_and_exchange_val_64_acq): Likewise.
2851 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2852 (__arch_compare_and_exchange_val_8_acq,
2853 __arch_compare_and_exchange_val_16_acq,
2854 __arch_compare_and_exchange_val_64_acq): Likewise.
2855 * sysdeps/sparc/sparc64/bits/atomic.h
2856 (__arch_compare_and_exchange_val_8_acq,
2857 __arch_compare_and_exchange_val_16_acq): Likewise.
2858 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2859 __arch_compare_and_exchange_val_16_acq,
2860 __arch_compare_and_exchange_val_64_acq): Likewise.
2861 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2862 (__arch_compare_and_exchange_val_64_acq): Likewise.
2863 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
2865 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
2867 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2868 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
2869 Return long instead of int.
2870 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
2871 0xfffff001u with -4095UL.
2873 2003-05-05 Andreas Jaeger <aj@suse.de>
2875 * sysdeps/x86_64/fpu_control.h: New from i386.
2877 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
2878 Define if not defined.
2880 * sunrpc/Makefile (generated-dirs): New variable.
2881 * resolv/Makefile (generated): New variable.
2883 2003-05-04 Roland McGrath <roland@redhat.com>
2885 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
2886 Depend on $(before-compile).
2888 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
2889 pattern rule. The implicit rule could be ruled out when $(objpfx)
2890 didn't exist at the time of its consideration (ugh!).
2892 * Makerules (+make-deps): Fix target matching.
2893 Use $(sed-remove-dotdot).
2895 2003-05-03 Ulrich Drepper <drepper@redhat.com>
2897 * nscd/nscd.c (main): Parse config file right after parsing
2898 parameters. Then, if get_stats is true, call receive_print_stats.
2899 Drop parameter from nscd_init call.
2900 (get_stats): New variable.
2901 (parse_opt): Set get_stats, don't call receive_print_stats here.
2902 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
2904 * nscd/connections.c (stat_user, stat_uid): New variables.
2906 (nscd_init): Don't read configuration file here. Drop parameter.
2907 (handle_request): Cleanup handling of non-database lookup requests.
2908 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
2909 Get UID of the specified user. Use xstrdup instead of strdup.
2910 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
2912 * nscd/Makefile (nscd-modules): Add xstrdup.
2913 * nscd/nscd.conf: Document stat-user entry.
2915 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
2917 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
2920 2003-04-22 Roland McGrath <roland@redhat.com>
2922 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
2923 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2924 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
2925 * elf/dl-support.c: Update defn.
2926 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
2927 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2928 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
2929 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
2930 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
2931 set, set up a link_map for the preloaded, prelinked object.
2933 2003-05-03 Roland McGrath <roland@redhat.com>
2935 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
2936 * stdio-common/Makefile: ... not here.
2938 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
2939 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
2941 2003-05-02 Ulrich Drepper <drepper@redhat.com>
2943 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
2945 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
2947 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
2948 comparing ftab elements.
2949 (_dl_unmap): Fix typo in test.
2950 (_dl_make_fptr): Fix typos introduced in last change.
2952 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
2953 original patch. Use non-exported symbols. Mark translatable
2954 strings. Pretty printing.
2956 2003-05-02 Roland McGrath <roland@redhat.com>
2958 * Makerules (do-stamp): Do $(make-target-directory).
2960 2003-04-07 H.J. Lu <hjl@gnu.org>
2962 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
2964 2003-04-03 H.J. Lu <hjl@gnu.org>
2966 * sysdeps/ia64/dl-fptr.c: Moved to ...
2967 * sysdeps/generic/dl-fptr.c: Here.
2969 * sysdeps/generic/dl-fptr.h: New.
2970 * sysdeps/ia64/dl-fptr.h: New.
2972 * sysdeps/ia64/dl-symaddr.c: Moved to ...
2973 * sysdeps/generic/dl-symaddr.c: here.
2975 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
2976 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
2977 (ia64_fdesc): Likewise.
2978 (ia64_fdesc_table): Likewise.
2979 (__ia64_make_fptr): Likewise.
2980 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
2981 with _dl_boot_fptr_table.
2982 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
2984 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
2986 2003-05-01 Roland McGrath <roland@redhat.com>
2988 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
2989 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2991 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2992 Use $(make-target-directory).
2993 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2995 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
2996 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
2997 (compile-command.s, compile-command.c): Likewise.
2998 ($(objpfx)%.d): All such pattern rules removed.
2999 ($(+sysdir_pfx)sysd-rules): Don't generate them.
3000 ($(common-objpfx)dummy.d): Target removed.
3001 (make-dummy-dep): Variable removed.
3002 (generate-md5): Likewise.
3003 (%.d: %.dt): New pattern rule.
3004 (+depfiles): Use $(wildcard) function to get just existing *.d files
3005 and .d files for existing *.dt files.
3006 (common-clean): Remove all *.d and *.dt files.
3007 (before-compile): Add $(objpfx). when it doesn't exist,
3008 regardless of $(no_deps).
3009 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3010 (rtld-depfiles): Use .os.d instead of .d names.
3011 Include existing *.d files and .d files for existing *.dt files.
3013 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3014 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3016 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3017 Do s-*.d includes only if we have some syscall routines in this subdir.
3019 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3020 @nobits. The former is accepted by gas on any ELF platform.
3022 2003-05-01 Ulrich Drepper <drepper@redhat.com>
3024 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3026 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3028 2003-04-29 Andreas Schwab <schwab@suse.de>
3030 * string/test-strcat.c (do_one_test): Fix attribute name.
3032 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
3034 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3035 uc_flags long for all ABIs.
3037 2003-04-30 Andreas Jaeger <aj@suse.de>
3039 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3040 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3041 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3042 Add bi-arch support.
3044 2003-04-30 Ulrich Drepper <drepper@redhat.com>
3046 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3047 (__posix_memalign): Use __memalign_internal instead of memalign.
3049 2003-04-29 Roland McGrath <roland@redhat.com>
3051 * configure.in: Search for AUTOCONF unconditionally.
3052 Just don't complain about missing it under --without-cvs.
3054 * include/libc-symbols.h (__symbol_set_attribute): New macro,
3055 give hidden for [SHARED] and weak for [! SHARED].
3056 (symbol_set_declare): Use that. Never need weak_extern these days.
3057 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3058 Depend on $(..)Makerules.
3060 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3062 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3063 variants of socket, bind, recvmsg, and sendto.
3065 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3067 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3068 * signal/sigaddset.c: Add libc_hidden_def.
3069 * signal/sigdelset.c: Likewise.
3071 2003-04-29 Jakub Jelinek <jakub@redhat.com>
3073 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3074 to the end of the file.
3076 * configure.in: Change __oline__ to $LINENO.
3077 (HAVE_BUILTIN_REDIRECTION): New check.
3078 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3079 * include/libc-symbols.h (libc_hidden_builtin_proto,
3080 libc_hidden_builtin_def, libc_hidden_builtin_weak,
3081 libc_hidden_builtin_ver): Define.
3082 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3083 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3084 strspn, strstr): Add libc_hidden_builtin_proto.
3085 * intl/plural.y: Include string.h.
3086 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3087 libc_hidden_builtin_def.
3088 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3089 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3090 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3091 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3092 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3093 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3094 * sysdeps/alpha/memchr.S (memchr): Likewise.
3095 * sysdeps/alpha/memset.S (memset): Likewise.
3096 * sysdeps/alpha/strcat.S (strcat): Likewise.
3097 * sysdeps/alpha/strchr.S (strchr): Likewise.
3098 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3099 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3100 * sysdeps/alpha/strlen.S (strlen): Likewise.
3101 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3102 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3103 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3104 * sysdeps/arm/memset.S (memset): Likewise.
3105 * sysdeps/arm/strlen.S (strlen): Likewise.
3106 * sysdeps/generic/memchr.c (memchr): Likewise.
3107 * sysdeps/generic/memcpy.c (memcpy): Likewise.
3108 * sysdeps/generic/memmove.c (memmove): Likewise.
3109 * sysdeps/generic/memset.c (memset): Likewise.
3110 * sysdeps/generic/strcat.c (strcat): Likewise.
3111 * sysdeps/generic/strchr.c (strchr): Likewise.
3112 * sysdeps/generic/strcmp.c (strcmp): Likewise.
3113 * sysdeps/generic/strcpy.c (strcpy): Likewise.
3114 * sysdeps/generic/strcspn.c (strcspn): Likewise.
3115 * sysdeps/generic/strlen.c (strlen): Likewise.
3116 * sysdeps/generic/strncmp.c (strncmp): Likewise.
3117 * sysdeps/generic/strncpy.c (strncpy): Likewise.
3118 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3119 * sysdeps/generic/strrchr.c (strrchr): Likewise.
3120 * sysdeps/generic/strspn.c (strspn): Likewise.
3121 * sysdeps/generic/strstr.c (strstr): Likewise.
3122 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3123 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3124 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3125 * sysdeps/i386/i586/memset.S (memset): Likewise.
3126 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3127 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3128 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3129 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3130 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3131 * sysdeps/i386/i686/memset.S (memset): Likewise.
3132 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3133 * sysdeps/i386/memchr.S (memchr): Likewise.
3134 * sysdeps/i386/memset.c (memset): Likewise.
3135 * sysdeps/i386/strchr.S (strchr): Likewise.
3136 * sysdeps/i386/strcspn.S (strcspn): Likewise.
3137 * sysdeps/i386/strlen.c (strlen): Likewise.
3138 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3139 * sysdeps/i386/strrchr.S (strrchr): Likewise.
3140 * sysdeps/i386/strspn.S (strspn): Likewise.
3141 * sysdeps/ia64/memchr.S (memchr): Likewise.
3142 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3143 * sysdeps/ia64/memmove.S (memmove): Likewise.
3144 * sysdeps/ia64/memset.S (memset): Likewise.
3145 * sysdeps/ia64/strcat.S (strcat): Likewise.
3146 * sysdeps/ia64/strchr.S (strchr): Likewise.
3147 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3148 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3149 * sysdeps/ia64/strlen.S (strlen): Likewise.
3150 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3151 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3152 * sysdeps/m68k/memchr.S (memchr): Likewise.
3153 * sysdeps/m68k/strchr.S (strchr): Likewise.
3154 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3155 * sysdeps/mips/mips64/memset.S (memset): Likewise.
3156 * sysdeps/mips/memcpy.S (memcpy): Likewise.
3157 * sysdeps/mips/memset.S (memset): Likewise.
3158 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3159 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3160 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3161 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3162 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3163 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3164 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3165 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3166 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3167 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3168 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3169 * sysdeps/powerpc/strcat.c (strcat): Likewise.
3170 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3171 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3172 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3173 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3174 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3175 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3176 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3177 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3178 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3179 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3180 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3181 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3182 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3183 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3184 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3185 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3186 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3187 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3188 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3189 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3190 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3191 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3192 * sysdeps/sh/memcpy.S (memcpy): Likewise.
3193 * sysdeps/sh/memset.S (memset): Likewise.
3194 * sysdeps/sh/strlen.S (strlen): Likewise.
3195 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3196 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3197 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3198 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3199 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3200 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3201 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3202 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3203 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3204 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3205 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3206 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3207 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3208 * sysdeps/x86_64/memset.S (memset): Likewise.
3209 * sysdeps/x86_64/strcat.S (strcat): Likewise.
3210 * sysdeps/x86_64/strchr.S (strchr): Likewise.
3211 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3212 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3213 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3214 * sysdeps/x86_64/strlen.S (strlen): Likewise.
3215 * sysdeps/x86_64/strspn.S (strspn): Likewise.
3216 * string/string-inlines.c: Move...
3217 * sysdeps/generic/string-inlines.c: ...here.
3218 (__memcpy_g, __strchr_g): Remove.
3219 (__NO_INLINE__): Define before including <string.h>,
3220 undefine after. Include bits/string.h and bits/string2.h.
3221 * sysdeps/i386/i486/string-inlines.c: New file.
3222 * sysdeps/i386/string-inlines.c: New file.
3223 * sysdeps/i386/i486/Versions: Remove.
3224 All GLIBC_2.1.1 symbols moved...
3225 * sysdeps/i386/Versions (libc): ...here.
3227 2003-04-29 Ulrich Drepper <drepper@redhat.com>
3229 * sysdeps/i386/fpu/Makefile: New file.
3230 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3231 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3232 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3233 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3236 2003-04-28 Ulrich Drepper <drepper@redhat.com>
3238 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
3239 * nscd/nscd_getpw_r.c: Likewise.
3240 * nscd/nscd_gethst_r.c: Likewise.
3242 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3244 * nscd/pwdcache.c: Initialize .version element in result.
3245 * nscd/grpcache.c: Likewise.
3246 * nscd/pwdcache.c: Likewise.
3248 2003-04-27 Andreas Schwab <schwab@suse.de>
3250 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3253 2003-04-27 Andreas Schwab <schwab@suse.de>
3255 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3257 2003-04-27 Ulrich Drepper <drepper@redhat.com>
3259 * nscd/connections.c (client_queued): New variable.
3260 (nscd_run): Revamp the loop. Don't call poll except for cleanup
3261 threads. Keep track of the number of delays caused because of busy
3263 * nscd/nscd.h: Declare client_queued.
3264 * nscd/nscd_stat.c: Transmit and print client_queued information.
3266 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3268 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3269 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3271 2003-04-26 Ulrich Drepper <drepper@redhat.com>
3273 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3274 tracking of freed memory in static TLS block.
3275 * elf/Makefile: Add rules to build and run tst-tls13.
3276 * elf/tst-tls13.c: New file.
3277 * elf/tst-tlsmod13.c: New file.
3278 * elf/tst-tlsmod13a.c: New file.
3280 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3282 * elf/dl-reloc.c: Pretty printing.
3284 2003-04-26 Roland McGrath <roland@redhat.com>
3286 * Makerules ($(common-objpfx)shlib.lds): New target.
3287 (common-generated): Add it.
3288 (build-shlib, build-module): Use that instead of generating every time.
3289 ($(common-objpfx)libc.so): Depend on it.
3290 (lib%.so rule): Likewise.
3291 (build-module-helper-objlist): Remove %.lds.
3292 (LDSEDCMD-c.so): Variable removed.
3293 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3294 Depend on $(common-objpfx)shlib.lds.
3295 * dlfcn/Makefile ($(test-modules)): Likewise.
3297 2003-04-26 Roland McGrath <roland@frob.com>
3299 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3301 2003-04-26 Andreas Schwab <schwab@suse.de>
3303 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3305 2003-04-25 Ulrich Drepper <drepper@redhat.com>
3307 * nscd/cache.c (cache_search): Keep track of how many chain links
3308 we searched and update table statistics.
3309 (cache_add): Keep track of how many values are in the table.
3310 (prune_cache): Likewise. Keep track of locking success.
3311 Print messages about removed entries in separate pass.
3312 * nscd/connections.c (handle_request): Don't print debug message here.
3313 The caller will do it. Keep track of locking success.
3314 (nscd_run): Print debug message. Also print PID of the client process.
3315 * nscd/nscd.c (start_time): New variable.
3316 (main): Remember start time.
3317 * nscd/nscd.h: Declare start_time.
3318 (struct database): Add more members for new statistics.
3319 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
3322 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
3324 2003-04-22 Jakub Jelinek <jakub@redhat.com>
3326 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
3327 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
3328 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
3330 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
3331 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
3332 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
3333 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
3336 2003-04-24 Ulrich Drepper <drepper@redhat.com>
3338 * nss/getent.c: Implement alternative host database lookup via
3341 * include/ifaddrs.h: New file.
3342 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
3344 * resolv/netdb.h: ...here.
3345 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
3346 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3347 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
3350 2003-04-24 Roland McGrath <roland@redhat.com>
3352 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3354 2003-04-24 Jakub Jelinek <jakub@redhat.com>
3356 * elf/dl-reloc.c (allocate_static_tls): Rename to...
3357 (_dl_allocate_static_tls): ... this function. No longer static.
3358 (CHECK_STATIC_TLS): Adjust.
3359 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3360 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3361 Add SYM_MAP argument.
3362 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
3363 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
3364 TLS relocs here. #ifdef out relocs which never appear in
3365 .gnu.conflict section from dl-conflict.c processing.
3366 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3367 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
3369 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3370 out relocs which never appear in .gnu.conflict section from
3371 dl-conflict.c processing.
3372 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3373 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3374 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3375 Use r_type in RESOLVE macro.
3377 2003-04-23 Ulrich Drepper <drepper@redhat.com>
3379 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3380 NULL. Remove code made redundant by this assumption.
3381 (__yp_unbind): Add call to free. Adjust all callers.
3383 * nis/ypclnt.c (yp_all): Free the dom_binding object after
3386 * grp/initgroups.c (getgrouplist): Don't copy too much into the
3387 user buffer if more groups are found than fit into it.
3389 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3392 2003-04-23 Jakub Jelinek <jakub@redhat.com>
3394 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3395 not rc == errno. Use extend_alloca.
3397 * elf/tst-tls12.c (main): Fix declaration.
3398 * elf/tst-tls10.c (dummy): Make hidden instead of static.
3399 * elf/tst-tlsmod7.c (dummy): Likewise.
3400 * elf/tst-tlsmod8.c (dummy): Likewise.
3401 * elf/tst-tlsmod9.c (dummy): Likewise.
3403 2003-04-22 Roland McGrath <roland@redhat.com>
3405 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3406 (open_not_cancel): Make last argument non-optional.
3407 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3408 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3409 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3411 * include/tls.h: Protect against multiple inclusion.
3413 2003-04-22 Ulrich Drepper <drepper@redhat.com>
3415 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3416 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3417 open_socket. Not static anymore.
3418 (nscd_gethst_r): Use __nscd_open_socket.
3419 * nscd/nscd_getgr_r.c (open_socket): Removed.
3420 (nscd_getgr_r): Use __nscd_open_socket.
3421 * nscd/nscd_getpw_r.c (open_socket): Removed.
3422 (nscd_getpw_r): Use __nscd_open_socket.
3424 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3425 * nscd/connections.c (handle_request): Add cast to avoid warning.
3427 2003-04-21 Ulrich Drepper <drepper@redhat.com>
3429 * signal/sigfillset.c: Moved to...
3430 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
3431 do not set the corresponding bit.
3433 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3435 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3436 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3437 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3438 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3439 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3441 2003-04-20 Ulrich Drepper <drepper@redhat.com>
3443 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3444 first syscall parameter to const char*.
3446 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3448 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3450 * configure.in: Add AC_PROG_CXX.
3451 * config.make.in (CXX): Define.
3453 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3454 __len to size_t to avoid warnings.
3456 2003-04-18 Jes Sorensen <jes@wildopensource.com>
3458 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3460 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3462 2003-04-19 Ulrich Drepper <drepper@redhat.com>
3464 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3465 UNREGISTER_ATFORK if d == NULL.
3467 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3468 * dirent/dirent.h: Likewise.
3469 * dlfcn/dlfcn.h: Likewise.
3470 * grp/grp.h: Likewise.
3471 * iconv/iconv.h: Likewise.
3472 * io/fcntl.h: Likewise.
3473 * io/ftw.h: Likewise.
3474 * libio/stdio.h: Likewise.
3475 * misc/sys/mman.h: Likewise.
3476 * misc/sys/select.h: Likewise.
3477 * misc/sys/syslog.h: Likewise.
3478 * misc/sys/uio.h: Likewise.
3479 * posix/spawn.h: Likewise.
3480 * posix/unistd.h: Likewise.
3481 * posix/sys/wait.h: Likewise.
3482 * pwd/pwd.h: Likewise.
3483 * resolv/netdb.h: Likewise.
3484 * rt/aio.h: Likewise.
3485 * shadow/shadow.h: Likewise.
3486 * signal/signal.h: Likewise.
3487 * socket/sys/socket.h: Likewise.
3488 * stdlib/stdlib.h: Likewise.
3489 * streams/stropts.h: Likewise.
3490 * string/string.h: Likewise.
3491 * sysdeps/gnu/utmpx.h: Likewise.
3492 * sysvipc/sys/msg.h: Likewise.
3493 * termios/termios.h: Likewise.
3494 * time/time.h: Likewise.
3495 * wcsmbs/wchar.h: Likewise.
3496 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3498 * misc/daemon.c: Likewise.
3499 * sysdeps/generic/backtracesymsfd.c: Likewise.
3500 * sysdeps/generic/check_fds.c: Likewise.
3501 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3502 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3503 * sysdeps/generic/not-cancel.h: New file.
3504 * csu/Makefile (distribute): Add not-cancel.h.
3505 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3506 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3507 for assert.c and assert-perr.c to include <fatal-prepare.h>.
3508 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3510 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
3511 errno and unlink first.
3513 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3515 2003-04-18 Ulrich Drepper <drepper@redhat.com>
3517 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3518 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3520 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3522 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3524 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3525 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3528 * signal/Makefile (tests): Add tst-sigsimple.
3529 * signal/tst-sigsimple.c: New file.
3531 2003-04-16 Jakub Jelinek <jakub@redhat.com>
3533 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3535 (tests): Add tst-tls1[0-2].
3536 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3537 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3538 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3539 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3540 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3541 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3542 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3543 * elf/tst-tls10.c: New test.
3544 * elf/tst-tls11.c: New test.
3545 * elf/tst-tls12.c: New test.
3546 * elf/tst-tls10.h: New file.
3547 * elf/tst-tlsmod7.c: New file.
3548 * elf/tst-tlsmod8.c: New file.
3549 * elf/tst-tlsmod9.c: New file.
3550 * elf/tst-tlsmod10.c: New file.
3551 * elf/tst-tlsmod11.c: New file.
3552 * elf/tst-tlsmod12.c: New file.
3554 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3556 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3557 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3558 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3560 2003-04-17 Ulrich Drepper <drepper@redhat.com>
3562 * posix/regex.h: Include <sys/types.h>.
3564 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3565 The signal number must be checked.
3566 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3567 The signal number must be checked [PR libc/5004].
3569 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3570 don't do anything fancy.
3572 * sysdeps/generic/bits/libc-lock.h: Define
3573 __rtld_lock_define_initialized_recursive.
3575 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3576 contacting nscd if NOT_USENSCD_NAME > 0.
3577 * nss/nsswitch.c (__nss_disable_nscd): New function.
3578 * nss/nsswitch.h: Declare it.
3579 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3580 * nscd/nscd.c (main): Call __nss_disable_nscd.
3582 2003-04-16 Ulrich Drepper <drepper@redhat.com>
3584 * stdio-common/perror.c (perror): We don't need to set the offset
3585 to _IO_pos_bad, this is how streams are initialized.
3587 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3588 (time_output): If necessary, allocate new buffer for .name string if
3589 padding is required.
3591 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3592 before copying. This might leave holes in the list. Adjust
3593 pointers if necessary.
3594 (netlink_receive): Allocate only one block.
3595 (free_netlink_handle): Adjust appropriately.
3596 (getifaddrs): Lots of cleanups.
3598 * string/test-strncpy.c (do_one_test): Mark start and stop as
3600 * string/test-memchr.c: Likewise.
3601 * string/test-memcmp.c: Likewise.
3602 * string/test-memcpy.c: Likewise.
3603 * string/test-memmove.c: Likewise.
3604 * string/test-memset.c: Likewise.
3605 * string/test-strcat.c: Likewise.
3606 * string/test-strchr.c: Likewise.
3607 * string/test-strcmp.c: Likewise.
3608 * string/test-strcpy.c: Likewise.
3609 * string/test-strlen.c: Likewise.
3610 * string/test-strncmp.c: Likewise.
3611 * string/test-strpbrk.c: Likewise.
3612 * string/test-strrchr.c: Likewise.
3613 * string/test-strspn.c: Likewise.
3615 2003-04-15 Roland McGrath <roland@redhat.com>
3617 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3619 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3620 INTUSE(__register_frame_info_bases).
3622 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3624 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3625 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3626 AT_SYSINFO_EH_FRAME. Adjust string width.
3627 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3628 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3629 Add _dl_sysinfo_eh_frame field.
3630 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3631 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3633 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3634 if _dl_sysinfo_eh_frame is non-NULL.
3636 * Makeconfig (gnulib): Add -lgcc_eh.
3638 * config.h.in: Define HAVE_FORCED_UNWIND.
3640 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3642 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3643 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3645 2003-04-15 Jakub Jelinek <jakub@redhat.com>
3647 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3648 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3649 against local symbol in conflict processing.
3651 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
3653 * sysdeps/powerpc/bits/atomic.h
3654 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3655 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3657 (__arch_compare_and_exchange_val_32_acq): Define.
3658 (atomic_compare_and_exchange_val_acq): Define.
3660 2003-04-15 Ulrich Drepper <drepper@redhat.com>
3662 * include/atomic.h: Pretty printing.
3664 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3666 * stdio-common/vfscanf.c: Add casts to avoid warnings.
3668 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3670 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3671 * sysdeps/x86_64/bits/atomic.h: Likewise.
3673 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3675 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3676 POPARGS_1 to emit labels for the mov instructions.
3678 2003-04-14 Jakub Jelinek <jakub@redhat.com>
3680 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3682 2003-04-14 Roland McGrath <roland@redhat.com>
3684 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3687 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3689 2003-04-14 Ulrich Drepper <drepper@redhat.com>
3691 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3692 position. Reported by jreiser@BitWagon.com.
3694 2003-04-13 Ulrich Drepper <drepper@redhat.com>
3696 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3697 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3698 * sysdeps/generic/unwind-dw2.c: Likewise.
3699 * sysdeps/generic/unwind-pe.h: Likewise.
3701 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
3703 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3704 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3705 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3706 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3707 (mcontext_t): Make it match the 32-bit mips kernel in o32.
3708 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3709 the mips and mips64 headers.
3710 (struct user): Port to n32/n64.
3712 2003-04-12 Ulrich Drepper <drepper@redhat.com>
3714 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3717 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3718 __ASSUME_VSYSCALL is defined don't add restorer.
3719 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3720 __ASSUME_VSYSCALL for 2.5.53.
3722 2003-04-11 Ulrich Drepper <drepper@redhat.com>
3724 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3725 Remove HAVE_CANCELBUF code. Replace with code using the new
3726 initializers for unwind-based cleanup handling.
3727 * sysdeps/generic/unwind.h: Update from latest gcc version.
3728 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3729 places to allow unwind data generation.
3730 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3731 * sysdeps/x86_64/bits/setjmp.h: Likewise.
3732 * sysdeps/sh/bits/setjmp.h: Likewise.
3733 * sysdeps/powerpc/bits/setjmp.h: Likewise.
3734 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3735 * sysdeps/alpha/bits/setjmp.h: Likewise.
3737 2003-04-11 Roland McGrath <roland@redhat.com>
3739 * csu/tst-empty.c: New file.
3740 * csu/Makefile (tests, tests-static): Add it.
3742 2003-04-11 Jakub Jelinek <jakub@redhat.com>
3744 * string/test-strcmp.c (do_random_tests): Test whether return value
3745 has been promoted to wordsize if the ABI requires caller to do so.
3746 * string/test-strncmp.c (do_random_tests): Likewise.
3747 * string/test-memcmp.c (do_random_tests): Likewise.
3749 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3753 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3754 is not defined, but the prctl constants are.
3756 * string/tester.c (test_strcmp): Fix a typo.
3758 2003-04-09 Ulrich Drepper <drepper@redhat.com>
3760 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3761 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3763 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3765 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3767 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3769 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
3771 * sysdeps/mips/mips64/memset.S: Likewise.
3772 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
3773 Use t0 instead of t4 as temporary.
3775 2003-04-07 Ulrich Drepper <drepper@redhat.com>
3777 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
3778 feof_unlocked instead of feof.
3779 (add_dir): Ignore trailing whitespace.
3781 2003-04-07 Jakub Jelinek <jakub@redhat.com>
3783 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
3784 sum of SIZE1 and SIZE2 arguments.
3786 2003-04-06 Ulrich Drepper <drepper@redhat.com>
3788 * iconv/iconv_prog.c (process_block): Don't print message about
3789 invalid input if the -c option is used.
3790 (main): Correctly append IGNORE string for -c option.
3792 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3794 * sysdeps/sh/bits/atomic.h: Moved to ...
3795 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
3796 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
3798 (atomic_bit_set, atomic_bit_test_set): Likewise.
3799 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
3801 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3803 2003-04-06 Roland McGrath <roland@redhat.com>
3805 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
3806 restoration as done for setcontext yesterday.
3808 2003-04-06 Jakub Jelinek <jakub@redhat.com>
3810 * elf/rtld.c: Revert 2003-03-14 change.
3811 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
3812 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
3814 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3816 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
3818 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3819 Always initialize *signgamp before returning an error.
3821 2003-04-05 Roland McGrath <roland@redhat.com>
3823 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
3824 below the stack pointer even if switching to the same context we are
3827 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3829 * catgets/gencat.c (read_input_file): Make sure that \n is not
3830 alone on the line before testing for continuation.
3832 * math/test-tgmath.c (compile_test): Initialize c.
3834 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
3836 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
3837 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
3838 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
3840 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
3841 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
3842 structure on n32 as well.
3843 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
3844 data types on n32 and n64.
3846 2003-04-05 Ulrich Drepper <drepper@redhat.com>
3848 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
3851 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
3852 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
3853 instead of __register_atfork.
3855 2003-04-05 Jakub Jelinek <jakub@redhat.com>
3857 * stdio-common/reg-printf.c (__register_printf_function): Calloc
3858 instead of malloc __printf_arginfo_table and __printf_function_table.
3859 Reported by John Reiser <jreiser@BitWagon.com>.
3861 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
3863 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
3864 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
3866 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
3869 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
3871 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
3874 2003-04-03 Roland McGrath <roland@redhat.com>
3876 * configure.in: Fix up use of compilation flags to match the build:
3877 For .s files, $ASFLAGS;
3878 For .S files, $CPPFLAGS $ASFLAGS;
3879 For .c files, $CFLAGS $CPPFLAGS;
3880 when linking, add $LDFLAGS.
3881 * configure: Regenerated.
3883 2003-04-03 Jakub Jelinek <jakub@redhat.com>
3885 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
3886 for atomic_compare_and_exchange_bool_acq failure.
3888 2003-04-03 Ulrich Drepper <drepper@redhat.com>
3890 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
3891 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
3892 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
3893 Remove declaration of pthread_atfork.
3895 2003-04-02 Ulrich Drepper <drepper@redhat.com>
3897 * locale/iso-639.def: Add many more languages from the current ISO 639.
3899 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
3900 * sysdeps/generic/semtimedop.c: New file.
3901 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
3902 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
3903 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3904 * sysvipc/Makefile (routines): Add semtimedop.
3905 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
3906 * sysvipc/sys/sem.h: Declare semtimedop.
3908 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
3910 * configure.in: Check for __register_frame_info in both
3912 * configure: Regenerated.
3914 2003-04-01 Roland McGrath <roland@redhat.com>
3916 * scripts/abilist.awk: Allow dots in soname suffix.
3918 * scripts/abilist.awk (emit): Fix bailout condition.
3920 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3922 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
3925 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
3926 register as input to asm.
3928 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3930 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
3932 2003-04-01 Andreas Jaeger <aj@suse.de>
3934 * configure.in: Output as/ld as name if version is too old.
3936 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
3938 * configure.in: Don't require an installed C library in the test
3939 for ".set" assembler support.
3941 2003-03-31 Roland McGrath <roland@redhat.com>
3943 * signal/tst-sigset.c: New file.
3944 * signal/Makefile (tests): Add it.
3946 2003-03-31 Ulrich Drepper <drepper@redhat.com>
3948 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
3949 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
3950 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
3951 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
3952 (__SIGRTMAX): Adjust accordingly.
3953 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
3954 second compatibility symbol set.
3955 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
3957 2003-03-31 Andreas Schwab <schwab@suse.de>
3959 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
3961 (atomic_decrement_and_test): Fix test.
3963 2003-03-31 Jakub Jelinek <jakub@redhat.com>
3965 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
3966 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
3967 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
3968 * sysdeps/sparc/sparc32/atomicity.h: Removed.
3969 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
3970 * sysdeps/sparc/sparc64/atomicity.h: Removed.
3972 2003-03-30 Roland McGrath <roland@redhat.com>
3974 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
3976 * intl/po2test.sed: Anchor substitution regexps to fix last change.
3978 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
3980 * intl/po2test.sed: Unify the transformations for msgid and msgstr
3981 and remove a useless s/// command.
3983 2003-03-27 David Mosberger <davidm@hpl.hp.com>
3985 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
3986 directive into empty .prologue region to ensure that call-chain
3987 is terminated even for the first instruction.
3989 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
3990 to terminate call-chain right from the get-go.
3992 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
3993 stop bit between compare & branch.
3995 2003-03-29 Ulrich Drepper <drepper@redhat.com>
3997 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
3998 point correctly [PR libc/4993].
4000 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
4001 netlink_open calls if netlink is known to not be available.
4003 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
4005 * configure.in: Add mips64* support.
4006 * sysdeps/mips/bits/endian.h: Make it bi-endian.
4007 * sysdeps/mips/mipsel/bits/endian.h: Removed.
4008 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
4009 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
4010 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
4011 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
4012 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
4013 * sysdeps/mips/Implies: Moved wordsize-32 to...
4014 * sysdeps/mips/mips32/Implies: New file.
4015 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
4017 (ret, PSEUDO_END): Moved past END.
4018 (PSEUDO): Moved to...
4019 * sysdeps/unix/mips/mips32/sysdep.h: New file.
4020 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
4021 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
4022 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
4023 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
4024 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
4026 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
4029 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
4031 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
4032 * inet/test-ifaddrs.c: Allow AF_PACKET.
4033 * sysdeps/unix/sysv/linux/kernel-features.h: Add
4034 __ASSUME_NETLINK_SUPPORT.
4036 2003-03-28 Ulrich Drepper <drepper@redhat.com>
4038 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
4040 2003-03-26 H.J. Lu <hjl@gnu.org>
4042 * elf/vismod.h (getvarlocal1): Return const char **.
4043 (getvarinmod1): Likewise.
4044 (getvaritcpt1): Likewise.
4045 (getvarlocal2): Likewise.
4046 (getvarinmod2): Likewise.
4047 (getvaritcpt2): Likewise.
4048 (getvaritcpt3): Likewise.
4049 * elf/vismain.c (do_test): Adjusted.
4050 * elf/vismod1.c (getvarlocal1): Return address.
4051 (getvarinmod1): Likewise.
4052 (getvaritcpt1): Likewise.
4053 * elf/vismod2.c (getvarlocal2): Likewise.
4054 (getvarinmod2): Likewise.
4055 (getvaritcpt2): Likewise.
4056 * elf/vismod3.c (getvaritcpt3): Likewise.
4058 2003-03-28 Roland McGrath <roland@redhat.com>
4060 * elf/vismain.c (do_test): Print both addresses when they don't match.
4062 * scripts/abilist.awk: If given -v filename_regexp and/or -v
4063 libname_regexp when parsing names, then produce output only
4064 for those matching the given regexps. In combine mode, save all
4065 stanzas for a final sorting by stanza header at the end.
4066 Emit a blank line between stanzas.
4068 * scripts/abilist.awk: When given -v combine=1, do parse_names and
4069 emit a single output stream with lib name in stanza header lines.
4071 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
4073 2003-03-27 Roland McGrath <roland@redhat.com>
4075 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
4076 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
4078 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4080 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4081 Return old value. Make asm output reg constraint earlyclobber.
4083 (__arch_compare_and_exchange_8_acq): ... this.
4084 (__arch_compare_and_exchange_val_16_acq):
4085 Return old value. Make asm output reg constraint earlyclobber.
4087 (__arch_compare_and_exchange_16_acq): ... this.
4088 (__arch_compare_and_exchange_val_32_acq):
4089 Return old value. Make asm output reg constraint earlyclobber.
4091 (__arch_compare_and_exchange_32_acq): ... this.
4092 (__arch_compare_and_exchange_val_64_acq):
4094 (__arch_compare_and_exchange_64_acq): ... this.
4095 (atomic_exchange_and_add): Use local variables and
4096 __arch_compare_and_exchange_val_64_acq.
4097 (atomic_add): Likewise.
4098 (atomic_add_negative, atomic_add_zero): Use local variables.
4100 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
4102 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
4104 2003-03-27 Ulrich Drepper <drepper@redhat.com>
4106 * Makefile: Remove libmd5crypt goal.
4108 2003-03-25 Jakub Jelinek <jakub@redhat.com>
4110 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
4111 special handling of relocations against local symbols.
4113 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
4115 * sysdeps/powerpc/bits/atomic.h
4116 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
4117 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
4118 Define PPC64 specific version.
4119 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
4120 Change (mem) constraint to "b".
4121 [__powerpc64__] (__arch_atomic_exchange_and add_64):
4122 Replace addi with add. Change (value) contraint to "r".
4123 Change (mem) constraint to "b".
4124 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
4125 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
4126 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
4127 (__arch_atomic_decrement_if_positive_32): New macro.
4128 (atomic_decrement_if_positive): Use __arch* macros.
4130 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4132 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4134 2003-03-27 Roland McGrath <roland@redhat.com>
4136 * scripts/rpm2dynsym.sh: New file.
4137 * Makefile (distribute): Add it.
4139 2003-03-27 David Mosberger <davidm@hpl.hp.com>
4141 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
4142 ar.unat before returning. Add missing .mem.offset directives
4143 to ensure file gets assembled without warnings.
4144 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4146 2003-03-27 Jakub Jelinek <jakub@redhat.com>
4148 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
4149 Return -1 instead of 0 if clock_getres failed.
4151 2003-03-27 Roland McGrath <roland@redhat.com>
4153 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
4154 header lines and write out foo.symlist files for each foo.so.NN listed.
4156 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
4157 This symbol is exported, and we don't want to hide it.
4158 Add libc_hidden_proto instead.
4159 (_IO_file_jumps): Add libc_hidden_proto.
4160 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
4162 * libio/fileops.c (_IO_file_jumps): Likewise.
4163 * libio/stdfiles.c: Don't use INTUSE on them.
4164 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4165 * libio/iofopen.c (__fopen_internal): Likewise.
4166 * libio/freopen.c (freopen): Likewise.
4167 * libio/freopen64.c (freopen64): Likewise.
4168 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4170 * Makerules (check-abi) [$(enable-check-abi) = warn]:
4171 Ignore exit status from diff.
4172 * configure.in (enable_check_abi): Document possible value "warn".
4173 Change default to no for now.
4174 * configure: Regenerated.
4176 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
4177 macro calls and a #include <stub-tag.h> at the end.
4178 * Makerules ($(objpfx)stubs): Tweak sed commands.
4180 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
4181 caller column for *xattr syscalls, since they are in sysdeps/generic.
4183 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
4184 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
4186 2003-03-26 Roland McGrath <roland@redhat.com>
4188 * Makerules (check-abi-config): Use /thread instead of /tls when
4189 use-thread and not just use-tls is set.
4191 * Makerules (update-abi): Put quotes around $(update-abi-config).
4193 * elf/Makefile (check-abi): Depend on check-abi-ld.
4194 (update-abi): Depend on update-abi-ld.
4196 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4198 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
4199 do not check for errors (unless testing for 32bit variant).
4200 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4202 2003-03-27 Philip Blundell <philb@gnu.org>
4204 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
4205 unconditional mov. Remove nop.
4207 * sysdeps/unix/sysv/linux/kernel-features.h
4208 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
4209 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
4210 when __ASSUME_VFORK_SYSCALL is defined.
4211 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
4212 __ASSUME_MMAP2_SYSCALL.
4213 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
4214 __ASSUME_REALTIME_SIGNALS.
4216 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4218 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
4219 only if DL_NO_COPY_RELOCS is not defined.
4220 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
4222 2003-03-26 Roland McGrath <roland@redhat.com>
4224 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
4225 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
4226 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
4227 (sysdep_routines): Add stub-syscalls.
4228 ($(objpfx)stub-syscalls.c): New target.
4229 (generated): Add stub-syscalls.c.
4231 * tls.make.c: Also define use-tls according to USE_TLS macro.
4233 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4235 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
4236 no-op padding element.
4237 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
4238 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4239 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4240 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4242 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
4244 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
4245 condition check for the return value of getgroups32.
4247 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4249 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
4251 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
4252 PSEUDO_END_NOERRNO): Define.
4253 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
4254 Define to PSEUDO_END.
4256 2003-03-26 Ulrich Drepper <drepper@redhat.com>
4258 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
4260 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
4262 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
4263 * iconvdata/bug-iconv4.c: New file.
4264 * iconvdata/Makefile (tests): Add bug-iconv4.
4266 2003-03-25 H.J. Lu <hjl@gnu.org>
4268 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
4270 (_dl_lookup_versioned_symbol): Likewise.
4272 2003-03-26 Jakub Jelinek <jakub@redhat.com>
4274 * csu/tst-atomic.c (do_test): Add some new
4275 atomic_compare_and_exchange_val_acq, atomic_add_zero,
4276 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
4277 * include/atomic.h (atomic_add_negative, atomic_add_zero):
4278 Prefix local variable so that it doesn't clash with the one
4279 in atomic_exchange_and_add.
4280 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
4282 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
4283 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
4284 value into register.
4285 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
4286 Cast newval to long.
4287 * sysdeps/x86_64/bits/atomic.h
4288 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
4290 (atomic_exchange): Cast newvalue to long if sizeof == 8.
4291 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
4292 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
4293 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
4295 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
4297 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
4298 bit from backtrace addresses.
4300 2003-03-21 Andreas Schwab <schwab@suse.de>
4302 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
4305 2003-03-25 Roland McGrath <roland@redhat.com>
4307 * config.make.in (enable-check-abi): New variable from configure.
4308 * configure.in (enable_check_abi): New substituted variable,
4309 controlled by --{enable,disable}-check-abi (default yes).
4310 * configure: Regenerated.
4311 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
4312 on check-abi dependency.
4314 2003-03-26 Andreas Schwab <schwab@suse.de>
4316 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
4317 * include/atomic.h: Likewise.
4319 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
4321 2003-03-25 Roland McGrath <roland@redhat.com>
4323 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
4324 (__arch_atomic_exchange_64): New macro.
4325 (atomic_exchange): Use them.
4326 (__arch_atomic_exchange_and_add_32): New macro.
4327 (__arch_atomic_exchange_and_add_64): New macro.
4328 (atomic_exchange_and_add): Use them.
4329 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
4331 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
4333 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
4335 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
4337 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
4338 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
4339 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4340 to decide whether to add padding.
4341 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
4342 to decide whether to add padding.
4343 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
4344 old_kernel_sigaction): Likewise.
4346 2003-03-25 Ulrich Drepper <drepper@redhat.com>
4348 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
4349 atomic_add_zero were supposed to do.
4350 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
4353 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4354 This matches the new timer implementation.
4355 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4357 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4359 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4360 timer info for what the kernel provides these days.
4361 (struct sigevent): Add _tid field.
4362 Define SIGEV_THREAD_ID.
4363 Remove struct __pthread_attr_s forward declaration.
4364 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4365 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4366 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4367 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4369 * Versions.def (librt): Add GLIBC_2.3.3.
4371 * abilist/libpthread.abilist: Update for nptl.
4373 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
4375 * inet/netinet/in.h: Add IPPROTO_SCTP.
4377 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4379 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4381 2003-03-24 Philip Blundell <philb@gnu.org>
4383 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4384 Remove a1 from clobber list.
4386 2003-03-24 Ulrich Drepper <drepper@redhat.com>
4388 * timezone/antarctica: Update from tzdata2003a.
4389 * timezone/asia: Likewise.
4390 * timezone/australasia: Likewise.
4391 * timezone/europe: Likewise.
4392 * timezone/iso3166.tab: Likewise.
4393 * timezone/northamerica: Likewise.
4394 * timezone/southamerica: Likewise.
4395 * timezone/zone.tab: Likewise.
4397 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
4399 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4401 2003-03-23 Ulrich Drepper <drepper@redhat.com>
4403 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4404 unwanted expansion by definining to ret. Patch by Ian Wienand.
4406 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4407 the parameter description to denote no error checking. Generate
4408 appropriate pseudo asm code.
4409 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4410 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4411 getpgrp, and getppid with 'E'.
4412 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4413 PSEUDO_END_NOERRNO, and ret_NOERRNO.
4414 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4415 * sysdeps/unix/sysdep.h: Likewise.
4416 * sysdeps/unix/alpha/sysdep.h: Likewise.
4417 * sysdeps/unix/sparc/sysdep.h: Likewise.
4418 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4419 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4420 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4421 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4422 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4423 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4424 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4425 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4426 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4427 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4428 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4430 2003-03-23 Roland McGrath <roland@redhat.com>
4432 * Makeconfig (+includes): Don't use $(last-includes).
4434 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4436 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4437 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4439 2003-03-23 Jakub Jelinek <jakub@redhat.com>
4441 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4442 * sysdeps/arm/libm-test-ulps: Update.
4443 * sysdeps/hppa/fpu/libm-test-ulps: Update.
4444 * sysdeps/ia64/fpu/libm-test-ulps: Update.
4445 * sysdeps/mips/fpu/libm-test-ulps: Update.
4446 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4447 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4448 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4449 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4450 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4451 * sysdeps/s390/fpu/libm-test-ulps: Update.
4452 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4454 2003-03-22 Roland McGrath <roland@redhat.com>
4456 * include/atomic.h: Put parens around all macro arguments.
4457 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4458 (atomic_compare_and_exchange_val_acq): Use it.
4459 (atomic_compare_and_exchange_bool_acq): Likewise.
4460 (atomic_increment_and_test): Invert sense of test.
4461 (atomic_decrement_and_test): Likewise.
4462 * csu/tst-atomic.c: Update those tests to match.
4464 2003-03-22 Jakub Jelinek <jakub@redhat.com>
4466 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4467 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4468 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
4469 __oldval variable in the macro, since it might be macro argument.
4470 (atomic_decrement_if_positive): Initialize __memp, remove setting
4471 of non-existent variable.
4472 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4473 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4474 using atomic_compare_and_exchange_val_acq.
4475 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4476 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4478 (__arch_compare_and_exchange_bool_8_acq): ... this.
4479 (__arch_compare_and_exchange_val_16_acq): Renamed from...
4480 (__arch_compare_and_exchange_bool_16_acq): ... this.
4481 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
4483 (__arch_compare_and_exchange_bool_32_acq): ... this.
4484 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
4486 (__arch_compare_and_exchange_bool_64_acq): ... this.
4487 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4488 variables types instead of assuming int.
4489 Change prefix of local variables to __arch.
4490 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4492 (atomic_compare_and_exchange_val_acq,
4493 atomic_compare_and_exchange_bool_acq): Define.
4495 * csu/tst-atomic.c: New test.
4496 * csu/tst-atomic-long.c: New test.
4497 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4499 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4501 * sysdeps/s390/Versions: Add trailing newline.
4503 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4504 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4506 2003-03-22 Andreas Schwab <schwab@suse.de>
4508 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4510 * sysdeps/m68k/m68020/bits/atomic.h: New file.
4511 * sysdeps/m68k/m68020/atomicity.h: Removed.
4513 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
4515 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4516 data structures and macros. Protect from multiple inclusion.
4518 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4521 2003-03-21 Andreas Jaeger <aj@suse.de>
4523 * sysdeps/i386/fpu/libm-test-ulps: Update.
4525 * math/libm-test.inc (tgamma_test): Recompute some constants with
4526 36 digits precision.
4527 (lgamma_test): Likewise.
4528 (ccos_test): Likewise.
4529 (ccosh_test): Likewise.
4530 (clog10_test): Likewise.
4531 (csin_test): Likewise.
4532 (csinh_test): Likewise.
4533 (ctan_test): Likewise.
4534 (ctanh_test): Likewise.
4536 2003-03-19 Jakub Jelinek <jakub@redhat.com>
4538 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4540 2003-03-21 Roland McGrath <roland@redhat.com>
4542 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4543 constraint to permit non-constant BIT argument.
4544 (atomic_bit_test_set): Likewise.
4545 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4546 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
4547 For quadword case, use "i" constraint if __builtin_constant_p and < 32
4548 or "r" constraint otherwise.
4550 * configure.in: Move AC_PROG_CC and other program-finding before all
4552 * configure: Regenerated.
4554 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4556 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4557 unaligned copying of 8-15 bytes. From Chris Demetriou
4558 <cgd@broadcom.com>. Fix label names.
4559 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
4560 change as to memcpy.S.
4561 * sysdeps/mips/memcpy.S: Formatting changes.
4562 * sysdeps/mips/memset.S: Likewise.
4564 2003-03-21 Roland McGrath <roland@redhat.com>
4566 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4568 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
4570 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4571 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4573 2003-03-21 Roland McGrath <roland@redhat.com>
4575 * sysdeps/i386/i486/bits/atomic.h
4576 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4577 version of the macro to avoid compile-time warnings.
4578 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4579 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4580 (atomic_increment, atomic_decrement): Likewise.
4582 2003-03-21 Ulrich Drepper <drepper@redhat.com>
4584 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4585 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4587 2003-03-21 Roland McGrath <roland@redhat.com>
4589 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4591 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4593 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4594 atomic_compare_and_exchange_val_rel,
4595 atomic_compare_and_exchange_bool_acq, and
4596 atomic_compare_and_exchange_bool_rel instead of
4597 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4598 * sysdeps/i386/i486/bits/atomic.h: Define
4599 __arch_compare_and_exchange_val_*_acq instead of
4600 __arch_compare_and_exchange_*_acq.
4601 * sysdeps/x86_64/bits/atomic.h: Likewise.
4602 * sysdeps/ia64/bits/atomic.h: Define
4603 __arch_compare_and_exchange_bool_*_acq instead of
4604 __arch_compare_and_exchange_*_acq.
4605 * sysdeps/powerpc/bits/atomic.h: Likewise.
4606 * sysdeps/s390/bits/atomic.h: Likewise.
4607 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4608 * malloc/set-freeres.c: Likewise.
4609 * nscd/cache.c: Likewise.
4610 * stdlib/cxa_finalize.c: Likewise.
4611 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4613 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4615 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4616 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4617 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4619 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4620 into high and low halves on n64.
4621 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4622 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4623 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4625 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4627 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4628 correct atomic_compare_and_exchange_acq semantics.
4630 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4632 * sysdeps/mips/ieee754.h: Remove excess #endif.
4634 2003-03-20 Roland McGrath <roland@redhat.com>
4636 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4637 variable. Remove superfluous memory clobber.
4639 * include/atomic.h: Syntax braino fix.
4641 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4642 in decimal. Don't bail if niced at start. Just check that nice call
4643 bumps the total at all.
4645 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4647 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4648 including pc, gp, sp and fp, as long long.
4649 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4650 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4651 Add gp argument, and set gp in the jmpbuf to it.
4652 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4654 2003-03-20 Ulrich Drepper <drepper@redhat.com>
4656 * include/atomic.h: Define atomic_exchange and
4657 atomic_decrement_if_positive if not already defined. Add some
4659 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4660 * sysdeps/x86_64/bits/atomic.h: Likewise.
4661 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
4662 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
4663 atomic_exchange, atomic_exchange_and_add, and
4664 atomic_decrement_if_positive
4666 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
4668 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4669 with a single instruction.
4671 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4673 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4675 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4676 Word before comparing with gotsym. Take reloc_addr argument as
4677 void*. Remove the code added for the compiler to drop any
4678 alignment assumptions.
4680 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4682 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4683 * include/atomic.h: New file.
4684 * sysdeps/i386/i486/bits/atomic.h: New file.
4685 * sysdeps/x86_64/bits/atomic.h: New file.
4686 * sysdeps/s390/bits/atomic.h: New file.
4687 * sysdeps/sh/bits/atomic.h: New file.
4688 * sysdeps/ia64/bits/atomic.h: New file.
4689 * sysdeps/powerpc/bits/atomic.h: New file.
4690 * sysdeps/generic/bits/atomic.h: New file.
4691 * sysdeps/i386/i486/atomicity.h: Removed.
4692 * sysdeps/x86_64/atomicity.h: Removed.
4693 * sysdeps/s390/s390-32/atomicity.h: Removed.
4694 * sysdeps/s390/s390-64/atomicity.h: Removed.
4695 * sysdeps/ia64/atomicity.h: Removed.
4696 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4697 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4698 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
4699 use of macros from atomicity.h to new names and semantics.
4700 * gmon_mcount.c: Likewise.
4701 * malloc/set-freeres.c: Likewise.
4702 * nscd/cache.c: Likewise.
4703 * stdlib/cxa_finalize.c: Likewise.
4704 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4706 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4708 * sysdeps/mips/ieee754.h: New file, suitable to replace both
4709 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4710 mips-specific for now.
4712 2003-03-19 Ulrich Drepper <drepper@redhat.com>
4714 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
4715 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
4716 * stdlib/tst-strtod.c: Add test for the bug.
4718 * posix/tst-nice.c (do_test): Remove invalid of return value.
4719 Don't run test if initial level != 0.
4721 2003-03-19 Amos Waterland <apw@us.ibm.com>
4723 * posix/tst-nice.c: New file.
4724 * posix/Makefile (tests): Add tst-nice.
4726 2003-03-18 Roland McGrath <roland@redhat.com>
4728 * abilist: New directory of libfoo.abilist files maintained using
4729 scripts/merge-abilist.awk and "make update-abi" rules.
4730 * Makefile (distribute): Add abilist/*.abilist.
4731 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4732 Depend on check-abi.
4734 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4735 * configure: Regenerated.
4737 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4739 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4741 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4744 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
4746 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4748 2003-03-18 Ulrich Drepper <drepper@redhat.com>
4750 * Versions.def: Add GLIBC_2.3.3 for libpthread.
4752 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4754 * sysdeps/generic/libc-start.c [!SHARED &&
4755 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4757 2003-03-17 Roland McGrath <roland@redhat.com>
4759 * include/ctype.h: Revert last change.
4761 2003-03-17 Ulrich Drepper <drepper@redhat.com>
4763 * argp/tst-argp1.c: Use test-skeleton.c.
4764 * locale/tst-C-locale.c: Likewise.
4766 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
4768 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
4769 * sysdeps/mips/mips64/n64/Implies: New file.
4770 * sysdeps/mips/mips64/n64/Makefile: New file.
4771 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
4772 * sysdeps/mips/mips64/n32/Implies: New file.
4773 * sysdeps/mips/mips64/n32/Makefile: New file.
4774 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
4775 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
4776 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
4777 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
4778 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
4779 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
4780 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
4781 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
4782 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
4783 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
4784 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
4785 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
4786 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
4787 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
4789 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
4790 lib64 for mips64/n64 and lib32 for mips64/n32.
4791 (ldd_rewrite_script): Needed for all mips64 configurations.
4792 * sysdeps/unix/sysv/linux/configure: Rebuilt.
4793 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
4794 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
4796 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
4799 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
4800 asm/unistd.h into asm-unistd.h.
4801 * sysdeps/unix/sysv/linux/mips/configure: Generated.
4802 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
4804 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
4805 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
4808 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
4809 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
4810 long type for registers on n32.
4812 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
4814 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
4815 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
4816 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
4817 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
4818 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
4819 * sysdeps/unix/mips/brk.S: Likewise.
4820 * sysdeps/unix/mips/sysdep.S: Likewise.
4821 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4822 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
4823 * sysdeps/mips/sys/ucontext.h: Likewise.
4824 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
4825 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4826 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4827 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4828 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
4829 * sysdeps/mips/mips64/setjmp.S: Likewise.
4830 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
4831 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
4834 2003-03-16 Ulrich Drepper <drepper@redhat.com>
4836 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
4837 not at function level.
4838 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
4840 2003-03-15 Roland McGrath <roland@redhat.com>
4842 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
4843 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4844 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
4845 * nis/nis_table.c (__create_ib_request): Likewise.
4847 * posix/fnmatch_loop.c: Add casts for signedness.
4848 * nss/nss_files/files-hosts.c: Likewise.
4849 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4850 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
4851 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
4853 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
4854 get errors into the log file.
4855 (libc_cv_broken_visibility_attribute): Likewise.
4856 (libc_cv_broken_alias_attribute): Likewise.
4857 (libc_cv_asm_weak_directive): Likewise.
4858 (libc_cv_need_minus_P): Likewise.
4859 (libc_cv_dot_text): Likewise.
4860 (libc_cv_asm_global_directive): Likewise.
4861 (libc_cv_asm_type_prefix): Likewise.
4862 * configure: Regenerated.
4864 * nscd/cache.c (cache_search): Give first arg type `request_type'.
4865 * nscd/nscd.h: Update decl.
4867 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
4868 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4869 * elf/dl-close.c (_dl_close): Likewise.
4870 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
4871 * io/fts.c (fts_build): Likewise.
4872 * elf/cache.c (add_to_cache): Likewise.
4873 * locale/programs/locarchive.c (show_archive_content): Likewise.
4875 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
4877 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
4879 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
4881 2003-03-15 Ulrich Drepper <drepper@redhat.com>
4883 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
4884 code for most parts.
4886 2003-03-15 Roland McGrath <roland@redhat.com>
4888 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
4889 * sysdeps/unix/sysv/linux/system.c: ... here.
4890 (FORK): Don't #define if already #define'd.
4891 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
4892 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
4893 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
4895 * dlfcn/tst-dlinfo.c: New file.
4896 * dlfcn/Makefile (tests): Add tst-dlinfo.
4897 ($(objpfx)tst-dlinfo): New target.
4899 * dlfcn/dlinfo.c: New file.
4900 * dlfcn/Makefile (libdl-routines): Add it.
4901 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
4902 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
4903 [__USE_GNU] (RTLD_DI_*): New enum constants.
4904 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
4905 * elf/dl-load.c (cache_rpath): New inline function.
4906 (_dl_map_object): Use it.
4907 (_dl_rtld_di_serinfo): New function.
4908 * sysdeps/generic/ldsodefs.h: Declare it.
4909 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4911 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
4912 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
4913 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
4914 (__libc_start_main): Just call the generic one for most of the work.
4916 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
4917 static function by that name instead of BP_SYM (__libc_start_main).
4918 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
4919 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
4920 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
4922 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
4923 Use this macro for extra AT_* cases.
4924 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
4925 New macro, guts from ...
4926 (__aux_init_cache): ... here, function removed.
4927 (DL_PLATFORM_INIT): Don't define this.
4929 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
4930 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
4932 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
4934 2003-03-14 Roland McGrath <roland@redhat.com>
4936 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
4938 2003-03-14 Jakub Jelinek <jakub@redhat.com>
4940 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
4942 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4943 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
4945 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
4947 * sysdeps/mips/fpu/bits/mathdef.h: New.
4948 (__NO_LONG_DOUBLE_MATH): Define for o32.
4950 * sysdeps/mips/sys/asm.h: Formatting changes.
4951 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
4952 (CPADD): Define for all of them.
4953 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
4954 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
4955 NARGSAVE): Define per ABI spec.
4956 (END): Don't redefine.
4957 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
4958 LONG_SRAV): Remove duplicate definitions.
4959 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
4960 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
4961 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
4962 (PTR_LA): Define for all 3 ABIs.
4964 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
4965 (elf_machine_matches_host): Prevent linking of o32 and n32
4967 (elf_machine_dynamic): Document assumption on $gp.
4968 (STRINGXP, STRINGXV, STRINGV_): New macros.
4969 (elf_machine_load_address): Use them to stringize PTR_LA and
4971 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
4972 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
4973 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
4974 (__dl_runtime_resolve): Cast the symtab initializer to the
4976 (RTLD_START): Use it. Adjust it for all 3 ABIs.
4977 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
4978 Handle 64-bit R_MIPS_REL composite relocation and accept
4979 R_MIPS_64 relocations to shift addend size to 64 bits.
4980 Document assumption regarding local GOT entries. Document
4981 backward-compatibility departing from the ABI behavior in
4982 applying relocations that reference section symbols, no longer
4983 used. Support relocations to mis-aligned offsets.
4984 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
4986 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
4988 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
4989 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
4990 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
4991 restore_rt functions. Use them.
4993 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4994 .set mips2 on new abis.
4996 2003-03-13 Ulrich Drepper <drepper@redhat.com>
4998 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
4999 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
5000 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
5001 * sysdeps/posix/pathconf.c: Likewise.
5002 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
5003 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5004 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
5006 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
5009 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
5011 * include/gmp.h: Include/gmp-mparam.h.
5012 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
5015 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
5016 ELF_MACHINE_NO_RELA is set.
5017 * elf/rtld.c (dl_main): No prelink support for REL-only.
5019 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
5020 FLAG_MIPS64_LIBN64): Define.
5021 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
5023 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
5024 * sysdeps/mips/memset.S: Likewise.
5025 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
5026 depending on the ABI.
5028 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
5029 Don't .set mips2 on new abi.
5030 (compare_and_swap): Likewise. Support 64-bit longs on n64.
5032 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
5034 2003-03-13 Roland McGrath <roland@redhat.com>
5036 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
5037 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
5039 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
5041 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
5043 * stdlib/fpioconst.c: Likewise.
5044 * stdlib/strtod.c: Likewise.
5046 * sysdeps/mips/add_n.S: Use L macro for local labels.
5047 * sysdeps/mips/addmul_1.S: Likewise.
5048 * sysdeps/mips/lshift.S: Likewise.
5049 * sysdeps/mips/memcpy.S: Likewise.
5050 * sysdeps/mips/memset.S: Likewise.
5051 * sysdeps/mips/mul_1.S: Likewise.
5052 * sysdeps/mips/rshift.S: Likewise.
5053 * sysdeps/mips/sub_n.S: Likewise.
5054 * sysdeps/mips/submul_1.S: Likewise.
5055 * sysdeps/mips/mips64/add_n.S: Likewise.
5056 * sysdeps/mips/mips64/addmul_1.S: Likewise.
5057 * sysdeps/mips/mips64/lshift.S: Likewise.
5058 * sysdeps/mips/mips64/mul_1.S: Likewise.
5059 * sysdeps/mips/mips64/rshift.S: Likewise.
5060 * sysdeps/mips/mips64/sub_n.S: Likewise.
5061 * sysdeps/mips/mips64/submul_1.S: Likewise.
5062 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
5063 conventions. Define END as in sys/asm.h.
5064 * sysdeps/unix/mips/sysdep.S: Likewise.
5065 * sysdeps/unix/mips/wait.S: Likewise.
5066 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5068 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
5069 Cast shifted values that may be too narrow to mp_limb_t.
5070 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
5072 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
5074 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
5075 (__mpn_extract_long_double): Likewise.
5076 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
5077 (__mpn_construct_long_double): Likewise.
5078 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
5079 (__mpn_extract_long_double): Likewise.
5080 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
5081 (__mpn_construct_long_double): Likewise.
5083 2003-03-13 Roland McGrath <roland@redhat.com>
5085 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
5086 entries in the map file match too.
5088 2003-03-13 Guido Guenther <agx@sigxcpu.org>
5090 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
5091 label .Lthread_start since current binutils don't allow branches
5092 to globally visible symbols.
5094 2003-03-13 Jakub Jelinek <jakub@redhat.com>
5096 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
5097 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
5098 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
5099 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
5100 clobbered by the syscall.
5101 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
5102 ASM_ARGS_6): Change constraints from r to index of corresponding
5104 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
5105 ptid and ctid to match kernel.
5106 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
5108 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
5110 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
5111 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
5112 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
5114 2003-03-11 Roland McGrath <roland@redhat.com>
5116 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5117 Check SYM_MAP rather than SYM as definedness check.
5118 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
5119 Don't handle R_PPC64_REL24 reloc.
5120 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5122 * sysdeps/powerpc/powerpc64/dl-machine.h
5123 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
5124 block, so we cover all the TPREL16* flavors without 6 ||s.
5125 [USE_TLS] (elf_machine_tprel): New function.
5126 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
5127 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
5128 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
5130 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
5132 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
5133 instead of jalr to invoke subroutine so restoring the $gp register
5136 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
5138 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
5139 to __NR_pread if not defined.
5140 (__NR_pwrite64): Define to __NR_pwrite if not defined.
5142 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5144 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
5145 * sysdeps/unix/sysv/linux/kernel-features.h
5146 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
5149 2003-03-11 Jakub Jelinek <jakub@redhat.com>
5151 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
5152 allocate space even for the trailing '/'.
5153 Reported by John Reiser <jreiser@BitWagon.com>.
5155 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
5156 ASM_CLOBBERS_6): Define.
5157 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
5158 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
5159 to match IA-32 order.
5160 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
5162 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
5164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
5165 Copy extra params for NPTL to registers used in clone syscall.
5167 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
5169 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
5170 call names for pread and pwrite.
5172 2003-03-10 Roland McGrath <roland@redhat.com>
5174 * dlfcn/Makefile (libdl-routines): Add dladdr1.
5175 * dlfcn/dladdr1.c: New file.
5176 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
5177 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
5178 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
5179 a const ElfNN_Sym ** to fill in.
5180 * include/dlfcn.h: Update decl. Include <link.h>.
5181 * dlfcn/dladdr.c (dladdr): Update caller.
5182 * malloc/mtrace.c (tr_where): Likewise.
5183 * sysdeps/generic/elf/backtracesyms.c: Likewise.
5184 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5185 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
5186 * Versions.def (libdl): Define GLIBC_2.3.3 set.
5188 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
5190 * sysdeps/unix/Makefile (compile-syscall): New variable.
5191 Pass -g0 to compiler for assembling syscall stubs from stdin.
5193 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
5194 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
5195 Define these to do nothing.
5197 * configure.in: New check for -g on .S files.
5198 * configure: Regenerated.
5199 * config.make.in (have-cpp-asm-debuginfo): New variable.
5200 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
5201 * Makeconfig (ASFLAGS): New variable, if undefined and
5202 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
5203 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
5205 2003-03-09 Roland McGrath <roland@redhat.com>
5207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
5208 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
5210 2003-03-09 Ulrich Drepper <drepper@redhat.com>
5212 * po/fi.po: Update from translation team.
5213 * po/ca.po: Likewise.
5214 * po/da.po: Likewise.
5216 2003-03-08 Ulrich Drepper <drepper@redhat.com>
5218 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
5220 2003-03-07 Ulrich Drepper <drepper@redhat.com>
5222 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
5224 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
5226 2003-03-07 Roland McGrath <roland@redhat.com>
5228 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
5229 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
5231 2003-03-04 Guido Guenther <agx@sigxcpu.org>
5233 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
5234 stubs, we have INLINE_SYSCALL.
5235 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
5238 2003-03-06 Roland McGrath <roland@redhat.com>
5240 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
5241 permanent extent and add a comment about testing its implicit teardown.
5243 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
5245 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
5247 2003-03-05 Ulrich Drepper <drepper@redhat.com>
5249 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
5250 reversed __builtin_expect expectation.
5252 2003-03-05 Roland McGrath <roland@redhat.com>
5254 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
5255 * libio/swscanf.c: Likewise.
5256 * libio/swprintf.c: Likewise.
5258 2003-03-04 Roland McGrath <roland@redhat.com>
5260 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
5261 (elf_machine_rela): Always use RESOLVE_MAP, needed for
5262 R_PPC64_JMP_SLOT as well as TLS cases.
5263 (BIT_INSERT): Move parenthesis where it ought to have been.
5264 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5266 * posix/confstr.c (confstr): Correct STRING_LEN values for
5267 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
5268 break. Reported by Alexandre Julliard <julliard@winehq.com>.
5270 2003-03-04 Jakub Jelinek <jakub@redhat.com>
5272 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5274 2003-03-04 Ulrich Drepper <drepper@redhat.com>
5276 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
5279 * po/sv.po: Update from translation team.
5281 2003-03-04 Andreas Jaeger <aj@suse.de>
5282 Ulrich Drepper <drepper@redhat.com>
5284 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
5286 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5288 * sysdeps/generic/dl-sysdep.h: Add double include protection.
5290 * po/tr.po: Update from translation team.
5292 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
5293 are holes between the segments. Only call mprotect to set
5294 proection to PROT_NONE if there are some.
5296 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
5299 * include/sched.h (__clone2): Use ... instead of adding all the
5302 2003-03-03 Roland McGrath <roland@redhat.com>
5304 * elf/dl-load.c (struct filebuf): Fix typo in last change.
5306 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
5307 PI_STATIC_AND_HIDDEN.
5309 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
5311 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
5313 * include/sched.h: Update clone2 prototype.
5315 2003-03-03 Andreas Jaeger <aj@suse.de>
5317 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
5318 (llrint): Use it to correct return type.
5321 (llround): Likewise.
5323 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5325 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
5328 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
5329 if ccs parameter isn't valid. Reported by Andreas Schwab.
5331 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5333 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
5334 for system call numbers > 255.
5335 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
5336 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5337 INTERNAL_SYSCALL): Likewise.
5338 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
5339 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
5340 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
5341 INTERNAL_SYSCALL): Likewise.
5343 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
5345 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
5346 array if it is the initial dtv.
5348 2003-03-03 Ulrich Drepper <drepper@redhat.com>
5350 * po/es.po: Update from translation team.
5351 * po/fr.po: Likewise.
5352 * po/gl.po: Likewise.
5353 * po/sk.po: Likewise.
5354 * po/sv.po: Likewise.
5356 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5357 * misc/sys/mman.h: Add prototype for remap_file_pages.
5358 * sysdeps/generic/remap_file_pages.c: New file.
5359 * misc/Makefile (routines): Add remap_file_pages.
5360 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5362 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5364 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5365 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5366 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5367 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5368 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5369 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5370 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5371 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5373 2003-03-03 Roland McGrath <roland@redhat.com>
5375 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5376 * sysdeps/ia64/dl-machine.h: Likewise.
5377 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5379 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5381 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5382 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5383 * locale/Versions (libc: GLIBC_2.3): Move those to ...
5384 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5385 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5386 * Versions.def (libc): Add GLIBC_2.3.3 set.
5388 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5389 * sysdeps/ia64/dl-machine.h: Update decl.
5391 2003-03-03 Andreas Jaeger <aj@suse.de>
5393 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5395 2003-03-02 Roland McGrath <roland@redhat.com>
5397 * scripts/abilist.awk: Reject data items with apparent 0 size.
5399 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5400 after foo.* as if it were a duplicate.
5402 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5404 2003-03-02 Ulrich Drepper <drepper@redhat.com>
5406 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5408 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5409 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5410 if not already defined. Use SYSDEP_GETRES to allow other files to
5411 provide alternative implementations.
5412 * sysdeps/unix/sysv/linux/clock_getres.c: New file
5413 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5414 if not already defined. Use SYSDEP_GETTIME to allow other files to
5415 provide alternative implementations.
5416 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5417 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5418 if not already defined. Use SYSDEP_GETTIME to allow other files to
5419 provide alternative implementations.
5420 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5421 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5422 other files to provide alternative implementations. Rearrange
5423 tests for invalid parameters.
5424 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5425 * sysdeps/unix/sysv/linux/sysconf.c: New file.
5426 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5427 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5428 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5429 _POSIX_MONOTONIC_CLOCK.
5431 2003-03-02 Roland McGrath <roland@redhat.com>
5433 * scripts/merge-abilist.awk: More checks for bogus input.
5434 Uniquify duplicate config names.
5436 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5438 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5439 from dl_reloc_overflow, make global.
5440 (__process_machine_rela): Update callers.
5441 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5442 Add attribute_hidden to __process_machine_rela decl.
5443 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5445 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5448 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5449 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
5450 (elf_machine_rela): Clean up.
5452 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5454 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5455 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5456 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5457 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5458 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5459 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5462 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5463 macros out of [SHARED].
5464 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5466 * elf/elf.h: Define R_PPC_* relocs for TLS support.
5467 Clean up R_PPC64_* macro definition comments.
5469 * configure.in: In "running configure fragment for" message,
5470 omit $srcdir from the name if we prepended it.
5471 * configure: Regenerated.
5473 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5474 From Jakub Jelinek <jakub@redhat.com>.
5476 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5477 which duplicated the O_DIRECT defn.
5479 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5481 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5484 2003-03-01 Andreas Schwab <schwab@suse.de>
5486 * resolv/Makefile (tests): Don't depend on
5487 $(objpfx)mtrace-tst-leaks when cross compiling.
5489 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5490 __libc_stack_end through GOT since it is a global symbol.
5492 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5494 * argp/argp.h: Fix a typo.
5495 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5497 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5499 2003-02-27 Pat Rankin <rankin@pactechdata.com>
5501 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5503 (get_subexp): Likewise.
5505 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
5507 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5509 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5511 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5513 2003-02-27 Roland McGrath <roland@redhat.com>
5515 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5516 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5517 repeat it and avoids the test for the common case.
5518 Clean up and fix calculations for TLS relocs.
5520 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5521 * sysdeps/powerpc/dl-tls.h: ... here.
5522 (TLS_TP_OFFSET): New macro.
5524 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5526 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5528 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5529 code generation changes in recent gcc.
5531 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
5533 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5534 Rename argument to avoid symbol conflict.
5536 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5537 [__USE_GNU] (O_DIRECT): New macro.
5539 2003-02-24 David Mosberger <davidm@hpl.hp.com>
5541 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5544 2003-02-27 Ulrich Drepper <drepper@redhat.com>
5546 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5547 initializer anymore now that res_thread_freeres is more careful.
5549 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5550 except the PKTINFO. Reset interface in PKTINFO.
5551 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5553 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
5555 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5556 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5558 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5559 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5560 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5561 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5563 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5564 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5566 2003-02-25 Andreas Jaeger <aj@suse.de>
5568 * manual/memory.texi (Malloc Tunable Parameters): Clarify
5569 behaviour of M_MMAP_THRESHOLD.
5571 2003-02-25 Roland McGrath <roland@redhat.com>
5573 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5574 zero, inidicating _res was not initialized yet.
5576 2003-02-24 Ulrich Drepper <drepper@redhat.com>
5578 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5581 2003-02-24 Roland McGrath <roland@redhat.com>
5583 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5585 2003-02-23 Roland McGrath <roland@redhat.com>
5587 * sysdeps/posix/pause.c: New file.
5588 * sysdeps/unix/common/pause.c: File removed.
5590 2003-02-23 Ulrich Drepper <drepper@redhat.com>
5592 * sysdeps/generic/bits/confname.h: Remove #ifs.
5594 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5595 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5597 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5600 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5602 * sysdeps/generic/dl-sysdep.c: Avoid warning.
5604 2003-02-22 Roland McGrath <roland@redhat.com>
5606 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5607 * resolv/Makefile (tests): Add tst-leaks.
5608 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5609 (tst-leaks-ENV): New variable.
5610 ($(objpfx)mtrace-tst-leaks): New target.
5611 (tests): Depend on it.
5613 * include/libc-internal.h: Declare __libc_thread_freeres.
5615 * Makerules: Fix last change to use $($(subdir)-version) when set.
5617 * Makerules (install-lib-nosubdir): Depend on installed
5618 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5619 regardless of the libfoo.so target's dependencies.
5621 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5622 Use that in $(MAKE) calls.
5624 2003-02-22 Ulrich Drepper <drepper@redhat.com>
5626 * catgets/gencat.c (read_input_file): Collision between
5627 auto-assigned numbers and user-defined nubmers is not fatal.
5629 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5630 * catgets/Makefile: Add rules to run test2.msg test.
5631 * catgets/test2.msg: New file.
5633 * catgets/gencat.c (main): Return 1 if messages have been printed.
5635 * iconv/iconv_prog.c (main): Unify messages.
5637 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5638 when shifting retval.
5639 * stdlib/tst-strtod.c (main): Add strtold test case.
5640 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5642 2003-02-21 Roland McGrath <roland@redhat.com>
5644 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5645 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5646 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5648 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5649 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5650 (res_thread_freeres): New function, on __libc_thread_subfreeres and
5653 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5654 * malloc/thread-freeres.c: New file.
5655 * malloc/Makefile (aux): Add it.
5656 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5657 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5658 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5660 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5661 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5663 2003-02-21 Roland McGrath <roland@frob.com>
5665 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5667 * iconvdata/Makefile (tests): Add bug-iconv3 only if
5668 [$(have-thread-library) = yes].
5670 2003-02-21 Ulrich Drepper <drepper@redhat.com>
5672 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5674 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5675 not chechk for errors (unless testing for 32bit variant).
5676 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5677 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5678 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5680 2003-02-21 Jakub Jelinek <jakub@redhat.com>
5682 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5683 Check for signed overflow, not unsigned.
5685 * sysdeps/sparc/sparc64/elf/configure.in: New file.
5686 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5687 Use -fcall-used-g6, not -fcall-used-g7.
5689 2003-02-21 Andreas Jaeger <aj@suse.de>
5691 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5694 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5695 clear whole mxcsr but only exceptions.
5697 2003-02-21 Roland McGrath <roland@redhat.com>
5699 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5700 for libfoo.so that need $(make-link) rules.
5702 2003-02-21 Roland McGrath <roland@frob.com>
5704 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5705 to match existing struct stat layout in mig protocols.
5707 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5709 * version.h (VERSION): Bump to 2.3.2.
5711 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5712 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5714 * sysdeps/generic/Dist: Add sysdep-cancel.h.
5715 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5716 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5717 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5718 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5721 * Makefile (distribute): Add include/stubs-prologue.h,
5722 include/gnu/stubs.h, scripts/merge-abilist.awk, and
5723 scripts/extract-abilist.awk.
5725 2003-02-20 Roland McGrath <roland@redhat.com>
5727 * math/Makefile (distribute): Don't add generated files.
5729 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5731 * math/Makefile: Rearrange variable definitions slightly to get
5732 definition in the right order.
5734 2003-02-20 Roland McGrath <roland@redhat.com>
5736 * Makerules: Clean up conditional around include of tls.make.
5737 * Make-dist: Export generating=t to prevent using that.
5738 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5740 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5742 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
5743 around in search if port IPPORT_RESERVED/2 has been test.
5745 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
5747 * posix/regcomp.c: Remove inclusions.
5748 * posix/regexec.c: Likewise.
5749 * posix/regex_internal.c: Likewise.
5750 * posix/regex_internal.h: Add inclusions here.
5751 * posix/regex.c: Only include sys/types.h before regex.h. Include
5752 regex_internal.h here. Include regex_internal.c before regcomp.c
5753 and regexec.c (might expose more opportunities to the C compiler).
5755 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5757 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5758 [!_LIBC] (__wcrtomb): New definition.
5759 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5760 HAVE_LOCALE_H as well.
5762 2003-02-20 Ulrich Drepper <drepper@redhat.com>
5764 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5765 patch to check for system call errors.
5767 2002-07-24 Philip Blundell <philb@gnu.org>
5769 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
5772 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5774 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
5775 * sysdeps/unix/sysv/linux/kernel-features.h
5776 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
5777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
5779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
5780 interprocedure branches.
5781 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
5782 * sysdeps/powerpc/nofpu/Dist: ...here.
5783 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
5784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
5785 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
5786 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
5787 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
5789 2003-02-18 Alan Modra <amodra@bigpond.net.au>
5791 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
5793 2003-02-20 Philip Blundell <philb@gnu.org>
5795 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
5796 missing arguments to INTERNAL_SYSCALL_ERROR_P and
5797 INTERNAL_SYSCALL_ERRNO.
5799 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5801 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
5802 for __ASSUME_32BITUIDS.
5804 2003-02-20 Andreas Schwab <schwab@suse.de>
5806 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
5807 POSIX_MADV_* constants.
5809 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5811 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
5812 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
5813 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
5814 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
5816 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
5818 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
5820 2003-02-16 Roland McGrath <roland@redhat.com>
5822 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
5824 2003-02-19 Ulrich Drepper <drepper@redhat.com>
5826 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
5827 decimal input digits.
5828 * stdlib/tst-strtod.c (main): Add test for strtof bug.
5830 2003-02-18 Ulrich Drepper <drepper@redhat.com>
5832 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
5833 invalid file descriptors and missing access permissions.
5835 2003-02-17 Ulrich Drepper <drepper@redhat.com>
5837 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
5840 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
5841 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
5842 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
5845 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5846 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5848 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
5849 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
5850 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5851 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5852 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5854 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5856 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
5857 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
5858 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
5859 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
5860 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
5861 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
5863 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
5864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
5865 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
5866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
5868 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
5869 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
5870 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
5871 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
5873 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
5875 * nss/getent.c (print_hosts): Print all IP addresses of one host.
5877 2003-02-15 Roland McGrath <roland@frob.com>
5879 * sysdeps/mach/hurd/tls.h: New file.
5880 * sysdeps/mach/hurd/i386/tls.h: New file.
5882 * mach/errsystems.awk: Include <errno.h> in generated output.
5884 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
5885 use target mach-before-compile instead of generated.
5886 (mach-before-compile): New target.
5887 * Makerules: Disable use of tls.make if $(generating) is set.
5888 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
5889 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
5890 mach-shortcuts.h so mach/ generation happens before hurd/.
5892 2003-02-14 Ulrich Drepper <drepper@redhat.com>
5894 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
5895 of demorm correctly if low word is zero.
5896 Reported by Fred J. Tydeman <tydeman@tybor.com>.
5897 * math/libm-test.inc (nextafter_test): New test, but disabled due
5900 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
5901 counter and only call __exit_thread if this is not the last thread.
5903 2003-02-13 Jakub Jelinek <jakub@redhat.com>
5905 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
5906 subtracting map->l_tls_offset.
5908 2003-02-12 Ulrich Drepper <drepper@redhat.com>
5910 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
5911 _CS_GNU_LIBPTHREAD_VERSION.
5912 * posix/conststr.c: Handle these new values.
5913 * posix/getconf.c: Likewise.
5915 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
5916 masking of version index.
5917 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5919 2003-02-11 Ulrich Drepper <drepper@redhat.com>
5921 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
5922 correctly. Reported by Thorsten Kukuk.
5924 2003-02-10 Ulrich Drepper <drepper@redhat.com>
5926 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
5927 _BSD_SOURCE to compiler.
5928 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
5929 Patches by Alan Modra.
5931 2003-02-08 Ulrich Drepper <drepper@redhat.com>
5933 * io/ftwtest.c: Get current working directory before and after the
5934 nftw call and make sure they match.
5936 2003-02-08 Jim Meyering <jim@meyering.net>
5938 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
5939 the current directory, not just when DIR contains a slash.
5940 Reported by Manoj Srivastava.
5942 2003-02-07 Jim Meyering <jim@meyering.net>
5944 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
5945 Include autoconf-recommended block of dirent/NAMELEN-related
5946 definitions and includes. Use NAMELEN throughout, rather than
5948 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
5949 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
5950 (stpcpy): Declare, if necessary.
5951 (mempcpy): Define, if necessary.
5952 [!_LIBC] (__stpcpy, __mempcpy): Define.
5953 [!_LIBC] (LXSTAT, XSTAT): Define.
5954 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
5955 (find_object): Don't use c99-style struct initializer.
5956 Tweak wording in a couple comments.
5958 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5960 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
5962 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
5963 after the trapa instruction.
5964 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
5966 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
5967 (NEED_SYSCALL_INST_PAD): Define.
5968 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
5969 avoid to use definition for the kernel.
5970 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5971 Save and restore the frame pointer.
5972 (SYSCALL_INST_PAD): Define.
5973 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5974 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
5975 after trapa instruction.
5976 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5977 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5979 2003-02-07 Jakub Jelinek <jakub@redhat.com>
5981 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
5982 so that it can have aliases.
5983 * inet/herrno.c (h_errno): Put it into .bss not .data section.
5985 2003-02-07 Ulrich Drepper <drepper@redhat.com>
5987 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
5988 (profile_fixup): Likewise.
5989 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5991 2002-11-24 Robert Love <rml@tech9.net>
5993 * posix/sched.h: Second parameter of sched_setaffinity and
5994 sched_getaffinity is `unsigned int', not `unsigned long'.
5995 * sysdeps/generic/sched_setaffinity.c: Likewise.
5996 * sysdeps/generic/sched_getaffinity.c: Likewise.
5998 2003-02-05 Ulrich Drepper <drepper@redhat.com>
6000 * debug/catchsegv.sh: Fix typo in error messsage.
6001 Reported by John Levon <levon@movementarian.org>.
6003 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
6004 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
6005 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
6006 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6007 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6008 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6009 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6011 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
6012 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
6014 2003-02-05 Jim Meyering <jim@meyering.net>
6016 Fix a heap-corrupting bug.
6017 * io/ftw.c: Include <limits.h>.
6018 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
6019 (process_entry): Allocate enough space to hold the resulting
6020 file name. Don't presume that 2*dirbufsize is enough.
6021 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
6022 it is guaranteed to be defined.
6024 2003-02-04 Ulrich Drepper <drepper@redhat.com>
6026 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
6027 * iconvdata/bug-iconv3.c: New file.
6029 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
6031 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6033 2003-02-03 Jakub Jelinek <jakub@redhat.com>
6035 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
6037 * config.h.in (BROKEN_SPARC_WDISP22): Add.
6039 2003-02-03 Ulrich Drepper <drepper@redhat.com>
6041 * sysdeps/i386/i686/memmove.S: New file.
6043 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
6046 Include kernel-features.h
6047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6052 2003-02-02 Jakub Jelinek <jakub@redhat.com>
6054 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
6056 2003-01-25 Jim Meyering <jim@meyering.net>
6058 * io/ftw.c (object_compare): Compare inode numbers before device
6059 numbers, since the former are much more likely to differ.
6061 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6063 * time/tzfile.c (__tzfile_compute): Change return value type to
6064 void. Adjust return statements.
6065 * include/time.h (__tzfile_compute): Adjust prototype.
6067 2003-02-01 Jim Meyering <jim@meyering.net>
6069 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
6072 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6075 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
6077 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6080 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
6081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6082 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6084 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6086 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
6088 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
6090 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
6091 back to 2.4.19 for powerpc64.
6092 * sysdeps/unix/sysv/linux/kernel-features.h
6093 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
6094 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
6096 2003-02-01 Ulrich Drepper <drepper@redhat.com>
6098 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
6099 platforms with strange alignment requirements on wchar_t.
6101 2003-01-31 Andreas Schwab <schwab@suse.de>
6103 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
6104 aliases, already added by make-syscalls.sh.
6105 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6106 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6107 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6108 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6109 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6110 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6111 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6112 * sysdeps/unix/inet/syscalls.list: Likewise.
6113 * sysdeps/unix/syscalls.list: Likewise.
6115 2003-01-31 Andreas Schwab <schwab@suse.de>
6117 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
6120 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6122 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
6123 not l to load tls from stack.
6125 2003-01-30 Roland McGrath <roland@redhat.com>
6127 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
6128 null argument before all else.
6129 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6131 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6133 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
6134 Move to RESOLVE protected part of the header.
6135 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
6138 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6140 * stdio-common/Makefile (tests): Add bug15.
6141 (bug15-ENV): Define.
6142 * stdio-common/bug15.c: New file.
6144 2002-10-07 Wolfram Gloger <wg@malloc.de>
6146 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
6147 to foreign sbrk()'s if arena is contiguous. Bug report from
6148 Bruno Haible <bruno@clisp.org>.
6150 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6152 * sysdeps/s390/libc-tls.c: Include stdlib.h.
6154 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6156 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
6159 2003-01-30 Ulrich Drepper <drepper@redhat.com>
6161 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
6163 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
6165 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
6167 2003-01-30 Jakub Jelinek <jakub@redhat.com>
6169 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
6170 (allocate_static_tls): ...here. Add __attribute_noinline__.
6171 Don't return on failure.
6172 (_dl_reloc_bad_type): Add __attribute_noinline__.
6173 * elf/do-rel.h (elf_dynamic_do_rel): Add
6174 __attribute__((always_inline)).
6175 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6176 elf_machine_rel_relative, elf_machine_rela_relative,
6177 elf_machine_lazy_rel): Add prototypes with
6178 __attribute__((always_inline)).
6180 2003-01-29 David Mosberger <davidm@hpl.hp.com>
6182 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
6184 2003-01-29 Roland McGrath <roland@redhat.com>
6186 * configure.in: Barf if configured in $srcdir.
6188 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
6190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6191 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
6193 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
6195 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
6196 clone parameters to match the order used on ia32.
6197 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6199 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
6201 * elf/elf.h: Add new s390 relocs.
6202 * elf/tls-macros.h: Add s390 versions.
6203 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
6204 * sysdeps/s390/dl-tls.h: New file.
6205 * sysdeps/s390/libc-tls.c: New file.
6206 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
6207 relocs for class PLT.
6208 (elf_machine_rela): Handle TLS relocs.
6209 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6210 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
6211 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
6212 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
6213 CLONE_CHILD_*TID flags.
6214 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6215 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
6217 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6218 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6219 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
6220 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
6221 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
6223 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
6224 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
6225 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6227 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
6228 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
6229 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
6230 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
6233 2003-01-28 Ulrich Drepper <drepper@redhat.com>
6235 * sysdeps/unix/common/pause.c (do_pause): New function. Split
6236 from __libc_pause. Implement using sigsuspend.
6237 (__libc_pause): Call do_pause to do the real work.
6239 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
6240 sig_or_mask parameter is is_sig != 0.
6242 2003-01-21 Philip Blundell <philb@gnu.org>
6244 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
6246 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
6248 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
6250 2003-01-27 Ulrich Drepper <drepper@redhat.com>
6252 * stdio-common/bug14.c: Use official name for the locale.
6254 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
6255 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
6256 instead of __libc_cleanup_region_end.
6258 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
6259 as first parameter to __libc_cleanup_region_start.
6261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6262 (__fe_nomask_env): Use __prctl not prctl.
6263 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
6266 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
6268 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
6270 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
6271 wrap-around in test.
6273 2003-01-26 Andreas Schwab <schwab@suse.de>
6275 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
6276 compatibility symbols. Remove INTDEF for __divdi3.
6277 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
6278 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
6279 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
6281 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
6283 2003-01-24 Jakub Jelinek <jakub@redhat.com>
6285 * elf/tls-macros.h: Add SPARC 32-bit definitions.
6286 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
6287 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
6288 for the first half of the header. Include tls.h.
6289 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
6291 (elf_machine_rela): Handle TLS relocs.
6292 * sysdeps/sparc/dl-tls.h: New file.
6294 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
6297 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
6298 * sysdeps/sparc/sparc32/memchr.S: Likewise.
6299 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6300 * sysdeps/sparc/sparc32/strcat.S: Likewise.
6301 * sysdeps/sparc/sparc32/strchr.S: Likewise.
6302 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
6303 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
6304 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
6305 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6306 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6307 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
6308 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6309 * sysdeps/sparc/sparc64/strcat.S: Likewise.
6310 * sysdeps/sparc/sparc64/strchr.S: Likewise.
6311 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
6312 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
6313 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6314 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6315 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6316 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6318 2003-01-24 Andreas Schwab <schwab@suse.de>
6320 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
6321 elements, and process them backwards.
6322 * elf/Makefile ($(objpfx)tst-array4): New target.
6323 ($(objpfx)tst-array4.out): Likewise.
6324 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
6325 * elf/tst-array4.c: New file.
6326 * elf/tst-array4.exp: Likewise.
6328 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
6332 2003-01-27 Guido Guenther <agx@sigxcpu.org>
6334 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
6335 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
6336 cancellation handling and handle both __NR_pread64 and __NR_pread.
6337 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6338 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
6339 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
6340 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6341 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
6342 case, use register names consistently.
6344 2003-01-27 Wolfram Gloger <wg@malloc.de>
6346 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
6347 pointer, not of the computed chunk. Bug report from Carlos
6348 O'Donell <carlos@baldric.uwo.ca>.
6350 2003-01-25 Andreas Schwab <schwab@suse.de>
6352 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6353 addressing to save GOT entries.
6355 2003-01-21 Jakub Jelinek <jakub@redhat.com>
6357 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6358 inline_syscall1, inline_syscall2, inline_syscall3,
6359 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6360 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6361 __attribute__((unused)) to ChEcK.
6363 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6365 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6366 Fix inline assembler constraints.
6367 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6370 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6373 2003-01-20 Segher Boessenkool <segher@koffie.nl>
6375 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6376 compute the cosine, not the sine, even if x > 0.8.
6378 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6380 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6381 _nss_nis_setspent. Work around the different prototypes.
6382 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6383 internal_nis_endrpcent.
6384 (internal_nis_endrpcent): Change return type to void. Change callers.
6385 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6386 _nss_nis_setpwent. Work around the different prototypes.
6387 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6388 of the function to...
6389 (internal_nis_endprotoent): ... here. New function.
6390 (internal_nis_setprotoent): Use internal_nis_endprotoent.
6391 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6392 _nss_nis_setnetent. Work around the different prototypes.
6393 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6394 of the function to...
6395 (internal_nis_endnetgrent): ... here. New function.
6396 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6398 2003-01-19 Jim Meyering <jim@meyering.net>
6400 * time/strftime.c: (widen): Merge nearly-identical definitions.
6401 (nl_get_alt_digit) [! defined my_strftime]: Define.
6402 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6403 _nl_get_alt_digit and _nl_get_walt_digit.
6405 2003-01-19 Ulrich Drepper <drepper@redhat.com>
6407 * time/strftime.c (my_strftime): Handle very large width
6408 specifications for numeric values correctly. Improve checks for
6410 * time/Makefile (tests): Add tst-strftime.
6411 * time/tst-strftime.c: New file.
6413 2003-01-18 Ulrich Drepper <drepper@redhat.com>
6415 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6416 _nss_nis_sethostent. Work around the different prototypes.
6417 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6418 _nss_nis_setgrent. Work around the different prototypes.
6419 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6420 function. Split out from _nss_nis_endetherent.
6421 (internal_nis_setetherent): Use internal_nis_endetherent instead of
6422 duplicating the code.
6423 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6424 of _nss_nis_setaliasent.
6425 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6426 internal_nis_endservent code, don't duplicate it.
6428 * inet/rexec.c (rexec_af): Protect socket operations with
6429 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
6430 * inet/rcmd.c (rcmd_af): Likewise.
6432 2003-01-17 Roland McGrath <roland@redhat.com>
6434 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6435 Add test of value 0.80190127184058835.
6437 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6439 2003-01-17 Richard Henderson <rth@redhat.com>
6441 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6442 relocs for class PLT.
6443 * sysdeps/alpha/libc-tls.c: New file.
6444 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6445 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6447 2003-01-17 Jakub Jelinek <jakub@redhat.com>
6449 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6450 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6453 2003-01-17 Andreas Jaeger <aj@suse.de>
6455 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6457 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
6459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6464 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6465 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6468 2003-01-16 Ulrich Drepper <drepper@redhat.com>
6470 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6471 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
6474 * sysdeps/generic/sysconf.c: Unconditionally implement
6475 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6476 * sysdeps/posix/sysconf.c: Likewise.
6478 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6480 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6481 set *err to the returned error, not to REG_ESPACE unconditionally.
6482 (build_word_op): Likewise.
6483 * posix/Makefile (tests): Add bug-regex16.
6484 * posix/bug-regex16.c: New test.
6486 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6488 * elf/dl-load.c (_dl_map_object_from_fd): Use
6489 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6490 been already initialized.
6492 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
6494 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6496 2003-01-16 Jakub Jelinek <jakub@redhat.com>
6498 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6499 allocated too. Reported by Al Viro <aviro@redhat.com>.
6501 2003-01-16 Roland McGrath <roland@redhat.com>
6503 Tweak merged .abilist file format to merge duplicate symbols in
6504 different sets into multi-version stanzas with new "| SET regexp..."
6505 header continuation lines.
6506 * scripts/merge-abilist.awk: Rewritten for new format.
6507 * scripts/extract-abilist.awk: Likewise.
6509 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6511 * nscd/connections.c (nscd_run): Remove bogus return which isn't
6512 necessary with gcc 3.2+.
6513 (nscd_init): Don't use error() to print message, use dbg_log.
6515 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6516 expected size into state.
6517 (UNPACK_BYTES): Do the reverse.
6518 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6519 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6520 Reported by Al Viro <aviro@redhat.com>.
6522 * stdio-common/Makefile (tests): Add bug14.
6523 * stdio-common/bug14.c: New file.
6525 * stdio-common/vfscanf.c: When recognizing multibyte characters in
6526 string reset the byte counter after mbrtowc reported it is not a
6527 partial character. Reported by Al Viro <aviro@redhat.com>.
6529 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
6531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6532 sysdep-cancel.h, not sysdep.h.
6534 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6536 * nscd/connections.c (nscd_run): Protect accept call with
6539 2003-01-15 Andreas Schwab <schwab@suse.de>
6541 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6542 (common-generated): Add s-proto-bp.d.
6543 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6545 * sysdeps/unix/s-proto-bp.S: New file.
6546 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6547 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6548 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6550 2003-01-15 Roland McGrath <roland@redhat.com>
6552 * Makerules: Use -include for tls.make, suppresses warning.
6553 Move gen-as-const-headers rules up so before-compile is set in time.
6554 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6556 2003-01-15 Ulrich Drepper <drepper@redhat.com>
6558 * nscd/nscd.c (main): Make code to close all file descriptors
6559 faster and more robust.
6561 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6562 request with one writev call. Protect all read calls with
6564 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6565 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6567 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6568 Protect writev calls with TEMP_FAILURE_RETRY.
6569 * nscd/grpcache.c: Likewise.
6570 * nscd/pwdcache.c: Likewise.
6572 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6573 IPv6 address in debug output.
6575 2003-01-14 Roland McGrath <roland@redhat.com>
6577 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6578 $(objpfx) directories, and get rid of vpath directives. The previous
6579 arrangement resulted in files being written to the source directories
6580 when run in a clean build. Find all .abilist files in $(..)abilist/.
6581 (update-abi-%): Likewise.
6582 (generated): Don't add .symlist files, they'll be intermediates.
6584 * sysdeps/generic/init-first.c: Add a comment.
6586 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6588 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6589 #includes and expressions.
6591 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6592 config list when it already contains cpu-.*-os.* without / part.
6594 * Makerules (sed-remove-dotdot): New variable.
6595 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
6596 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6597 (check-abi-config): New variable, append /tls or /notls to the tuple.
6598 (check-abi-%): Use that for -v config value.
6599 Find .abilist files in abilist/libfoo.abilist, not in subdir.
6600 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6602 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6604 * manual/install.texi: Correct description of header preparation for
6605 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
6607 2003-01-14 Guido Guenther <agx@sigxcpu.org>
6609 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6610 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6611 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6613 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
6615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6616 (INTERNAL_SYSCALL): Make use of ERR parameter.
6617 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6618 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6619 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6622 2003-01-14 Ulrich Drepper <drepper@redhat.com>
6624 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6626 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6628 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6629 Fix entry for bit 31.
6631 * iconvdata/Makefile: Add rules to build IBM866NAV.
6632 * iconvdata/ibm866nav.c: New file.
6633 * iconvdata/tst-tables.sh: Add IBM866NAV.
6634 * iconvdata/gconv-modules: Add entries for IBM866NAV.
6636 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6638 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6639 to test void* parameters.
6641 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6642 source pointer before dereferencing.
6643 (__STRING_SMALLL_GET32): Likewise.
6644 (__memset_gc): Add missing parenthesis around macro arguments.
6645 Patch by Denis Zaitsev <zzz@cd-club.ru>.
6647 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6648 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
6650 2003-01-14 Jakub Jelinek <jakub@redhat.com>
6652 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6655 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6657 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6658 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6660 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6662 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
6664 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6666 (PSEUDO): ... to here.
6667 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6669 (PSEUDO): ... to here.
6671 2003-01-13 Ulrich Drepper <drepper@redhat.com>
6673 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6674 dirent64 instead of struct dirent for dirent. Call readdir64
6677 * locale/programs/locfile.c (siblings_uncached): Use struct
6678 dirent64 instead of struct dirent for other_dentry. Call
6679 readdir64 instead of readdir.
6681 * elf/ldconfig.c (direntry): Change type to struct dirent64.
6682 (search_dir): Use readdir64 instead of readdir.
6683 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6685 2003-01-12 Roland McGrath <roland@redhat.com>
6687 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6688 not strtol. The former is usable in ld.so, the latter not.
6690 * include/fcntl.h: Declare __libc_creat.
6692 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6693 libhurduser-link.so-no-z-defs): New variables.
6695 * malloc/malloc.c: Revert last change.
6696 * malloc/malloc.h (_int_*): Move these decls to ...
6697 * include/malloc.h: ... here. Add attribute_hidden.
6698 (_int_valloc): Declare it too.
6700 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6702 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
6703 search for removed searchlist. Reported by Roland McGrath.
6705 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6706 given as start file.
6708 * io/ftw.c (ftw_startup): Use correct name in check for symlink
6709 without existing target. Patch by Jim Meyering.
6711 * Makerules (build-shlib-helper): Don't use -z defs linker option
6712 if no-z-defs is defined either.
6714 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6716 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6719 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
6721 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6722 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6724 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6726 * io/ftwtest-sh: Add test case for relative path with /. at the end.
6728 2003-01-12 Jim Meyering <jim@meyering.net>
6730 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6731 use the basename if we've already chdir'd into its parent directory.
6733 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6735 * io/ftw.c (process_entry): Use relative path when using chdir()
6736 to change directory after call to ftw_dir.
6737 * io/ftwtest-sh: Add test for relative path argument to nftw()
6738 with FTW_CHDIR option.
6740 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6742 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6744 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6746 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6747 (INTERNAL_SYSCALL): Make use of ERR parameter.
6748 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6749 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6750 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6753 2002-01-09 Richard Henderson <rth@redhat.com>
6755 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6756 DTPREL64 and TPREL64 without loadbase applied.
6758 2002-01-09 Richard Henderson <rth@redhat.com>
6760 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6763 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6764 * sysdeps/unix/alpha/sysdep.h: ... here.
6765 (PSEUDO_LOADGP): Remove.
6766 (PSEUDO_PROLOGUE): Load GP in non-pic case.
6767 (SYSCALL_ERROR_LABEL): New.
6768 (PSEUDO): Use it in error branch.
6769 (PSEUDO_END): Add $syscall_error label.
6771 2003-01-12 Andreas Jaeger <aj@suse.de>
6773 * math/bits/mathcalls.h: Round is a const function.
6775 2003-01-11 Jim Meyering <jim@meyering.net>
6777 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
6778 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
6779 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
6780 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
6781 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
6782 [!_LIBC] (internal_function, dirent64, MAX): Define.
6783 (__set_errno): Define if not already defined.
6784 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
6785 the basename, not the entire file name.
6786 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
6787 the basename, not the entire file name.
6789 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6791 * string/tester.c (test_strcpy): Disable last added strcpy until
6794 2003-01-11 Philip Blundell <philb@gnu.org>
6796 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
6798 2003-01-11 Andreas Schwab <schwab@suse.de>
6800 * Makerules: Add vpath for %.dynsym and %.so so that the
6801 implicit rule chaining for check-abi works.
6803 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6805 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6808 2003-01-11 Jakub Jelinek <jakub@redhat.com>
6810 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
6811 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
6813 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
6814 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
6815 Ensure libc.so in DT_NEEDED.
6816 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
6817 CHECK_STATIC_TLS before l_tls_offset use.
6818 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6820 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6821 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
6822 Allocate TLS_PRE_TCB_SIZE bytes below result.
6823 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
6824 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
6825 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
6826 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
6827 bytes below result and add tcb_offset to memsz.
6828 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
6829 * sysdeps/ia64/dl-machine.h: Include tls.h.
6830 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
6832 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
6833 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
6834 * sysdeps/ia64/libc-tls.c: New file.
6836 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
6838 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
6839 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
6840 Fix type. Move definition out of #if.
6841 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
6842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
6843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
6844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
6845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
6846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
6848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
6849 ftruncate64, pread64, pwrite64, truncate64 entries.
6850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6851 (INLINE_SYSCALL): New version that supports function call like
6852 syscalls. Add __builtin_expect.
6853 (LOADARGS_n): Add argument size safety checks.
6854 (INTERNAL_SYSCALL): New Macro.
6855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
6856 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
6857 redefinition of elf_fpreg_t and elf_fpregset_t.
6859 2003-01-12 Ulrich Drepper <drepper@redhat.com>
6861 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
6862 simplify test for unloading. If loader of a DSO is unloaded do not
6863 use its scope anymore. Fall back to own scope and adjust opencounts.
6864 Fix several comments.
6865 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
6866 the l_searchlist, not only for l_initfini.
6868 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
6869 dependencies if objects cannot be removed. Remove object with the
6870 definition as not unloadable if necessary.
6872 * elf/reldep6.c: Create relocation dependency before closing the first
6875 2003-01-10 Guido Günther <agx@sigxcpu.org>
6877 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
6878 * sysdeps/unix/mips/brk.S: Likewise.
6879 * sysdeps/unix/mips/pipe.S: Likewise.
6881 2003-01-10 Andreas Schwab <schwab@suse.de>
6883 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
6885 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
6886 are known to have the vfork syscall.
6888 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
6890 * sysdeps/unix/sysv/linux/kernel-features.h
6891 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
6892 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
6893 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
6895 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6897 * elf/Makefile: Add rules to build and run reldep9 test.
6898 * elf/reldep9.c: New file.
6899 * elf/reldep9mod1.c: New file.
6900 * elf/reldep9mod2.c: New file.
6901 * elf/reldep9mod3.c: New file.
6903 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6905 * elf/Makefile: Add rules to build and run nodelete2 test.
6906 * elf/nodelete2.c: New file.
6907 * elf/nodel2mod1.c: New file.
6908 * elf/nodel2mod2.c: New file.
6909 * elf/nodel2mod3.c: New file.
6911 2003-01-09 Jakub Jelinek <jakub@redhat.com>
6913 * posix/test-vfork.c (noop): Add __attribute_noinline__.
6914 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
6915 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
6917 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
6918 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
6919 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
6920 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
6921 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
6923 2003-01-09 Andreas Schwab <schwab@suse.de>
6925 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
6927 2003-01-08 Ulrich Drepper <drepper@redhat.com>
6929 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
6930 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6932 (INTERNAL_SYSCALL_DECL): Define.
6934 2003-01-06 Jakub Jelinek <jakub@redhat.com>
6936 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
6937 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6939 (INTERNAL_SYSCALL_DECL): Define.
6940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6941 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
6942 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6943 (INLINE_SYSCALL): Adjust.
6944 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6945 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6946 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6947 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6948 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
6949 add err argument to INTERNAL_SYSCALL* macros.
6950 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
6951 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
6952 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
6953 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
6955 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
6956 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
6957 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
6959 2003-01-07 Ulrich Drepper <drepper@redhat.com>
6961 Unify symbols in user namespace exported by libc.so and libc.a.
6962 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
6963 argp_fmtstream_free, and argp_fmtstream_printf.
6964 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
6965 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
6966 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
6967 argp_fmtstream_point.
6968 * gmon/gmon.c: Don't define write_profiling.
6969 * libio/genops.c: Don't define _cleanup.
6971 * intl/explodename.c (_nl_find_language.c): Mark as static.
6972 * intl/loadinfo.h: Remove _nl_find_language prototype.
6974 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
6975 * libio/libioP.h: Remove declaration.
6977 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
6978 * libio/libioP.h: Remove declaration.
6980 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
6981 * sysdeps/generic/framestate.c: Define STATIC before including
6984 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
6986 2003-01-06 Philip Blundell <philb@gnu.org>
6988 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
6989 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
6991 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
6993 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
6994 (SYSCALL_ERROR): New.
6995 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
6997 (INTERNAL_SYSCALL): Define.
6998 (INLINE_SYSCALL): Use it.
6999 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7000 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
7001 SYSCALL_ERROR in place of __syscall_error.
7003 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7005 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7006 __bswap_32, __bswap_64): Put x into temporary variable
7008 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7010 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
7011 __bswap_32, __bswap_64): Put x into temporary variable
7013 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
7015 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
7018 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7020 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
7023 2003-01-07 Jakub Jelinek <jakub@redhat.com>
7025 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
7026 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
7028 2003-01-07 Ulrich Drepper <drepper@redhat.com>
7030 * math/libm-test.inc (significand_test): New function.
7033 2003-01-06 Roland McGrath <roland@redhat.com>
7035 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
7037 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
7038 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
7039 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
7041 * string/tester.c (test_strcpy): Add test with `void *' arguments.
7043 2003-01-06 Ulrich Drepper <drepper@redhat.com>
7045 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
7046 return significand and not the exponent.
7047 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7049 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
7050 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
7052 * malloc/malloc.c: Mark all _int_* functions as static.
7054 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7056 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
7057 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
7059 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7061 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7063 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
7064 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
7066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
7067 ftruncate64, truncate64, pread64 and pwrite64 entries.
7068 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7069 (INLINE_SYSCALL): Add __builtin_expect.
7070 (LOADARGS_n): Add argument size safety checks.
7071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
7072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
7073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
7074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
7075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
7076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
7078 2003-01-06 Jakub Jelinek <jakub@redhat.com>
7080 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
7081 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
7082 (LIBC_CANCEL_HANDLED): Add.
7084 * sysdeps/unix/sysv/linux/alpha/sysdep.h
7085 (inline_syscall_r0_constraint): Rename to...
7086 (inline_syscall_r0_out_constraint): ... this. Add =.
7087 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
7089 2003-01-06 Andreas Schwab <schwab@suse.de>
7091 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
7092 sure this is always inlined.
7093 (elf_machine_rela): Likewise.
7095 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
7097 2003-01-04 Roland McGrath <roland@redhat.com>
7099 * Makeconfig (+mkdep): Add -MP flag.
7100 Suggested by Art Haas <ahaas@airmail.net>.
7102 2003-01-05 Andreas Schwab <schwab@suse.de>
7104 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
7106 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7108 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
7109 SYSCALL_ERROR_HANDLER.
7110 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
7111 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
7112 Add support for cancellation handling.
7113 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
7114 SYSCALL_ERROR_HANDLER.
7115 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
7116 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
7117 Add support for cancellation handling.
7118 (SYSCALL_ERROR_HANDLER): Define PIC variants.
7120 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
7123 __syscall_pread64 and __syscall_pwrite64 cancelable.
7124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7125 (INTERNAL_SYSCALL): New macro.
7126 (LOADARGS_0, LOADARGS_1): Fix.
7128 2003-01-05 Ulrich Drepper <drepper@redhat.com>
7130 * Makerules (build-shlip-helper): Unless told otherwise, add
7131 -Wl,-z,defs to linker command line.
7132 * rt/Makefile (librt.so): Link with ld.so.
7133 * dlfcn/Makefile (libdl.so): Likewise.
7135 2003-01-05 Jakub Jelinek <jakub@redhat.com>
7137 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
7138 cancellation handling.
7139 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
7140 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
7142 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7144 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
7145 order of parameters passed to kill.
7147 2003-01-04 Andreas Schwab <schwab@suse.de>
7149 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
7151 2002-01-03 Paul Eggert <eggert@twinsun.com>
7153 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
7154 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
7155 when compiling Bison 1.875's `bitset bset = obstack_alloc
7156 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
7158 2003-01-04 Ulrich Drepper <drepper@redhat.com>
7160 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
7162 Correct reference counter in case SIGQUIT handler installation failed.
7164 2003-01-03 Ulrich Drepper <drepper@redhat.com>
7166 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
7167 Define using _Pragma(weak ...).
7169 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
7171 * resolv/res_libc.c: Provide declaration for __res_init_weak and
7172 reorder declarations.
7174 2003-01-03 Art Haas <ahaas@airmail.net>
7176 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
7177 initializer syntax to C99.
7178 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
7179 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
7180 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
7181 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
7182 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
7183 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
7184 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
7185 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
7186 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
7187 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
7188 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
7189 * localedata/tests-mbwc/dat_mblen.c: Likewise.
7190 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
7191 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
7192 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
7193 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
7194 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
7195 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
7196 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
7197 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
7198 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
7199 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
7200 * localedata/tests-mbwc/dat_towlower.c: Likewise.
7201 * localedata/tests-mbwc/dat_towupper.c: Likewise.
7202 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
7203 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
7204 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
7205 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
7206 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
7207 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
7208 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
7209 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
7210 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
7211 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
7212 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
7213 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
7214 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
7215 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
7216 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
7217 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
7218 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
7219 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
7220 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
7221 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
7222 * localedata/tests-mbwc/dat_wctob.c: Likewise.
7223 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
7224 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
7225 * localedata/tests-mbwc/dat_wctype.c: Likewise.
7226 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
7228 2003-01-03 Richard Henderson <rth@redhat.com>
7230 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
7231 (inline_syscall_r0_constraint): New.
7232 (inline_syscall[0-6]): Use them.
7234 2003-01-03 Jakub Jelinek <jakub@redhat.com>
7236 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
7237 Add rtld_hidden_proto.
7238 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
7239 (_dl_allocate_tls): Likewise. Remove INTDEF.
7241 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7243 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
7244 Morita <toshiyasu.morita@hsa.hitachi.com>.
7245 * sysdeps/sh/memcpy.S: Likewise.
7247 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7249 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
7250 any, but unify the test.
7252 2003-01-02 Jakub Jelinek <jakub@redhat.com>
7254 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
7255 sigaction): Protect weak_alias and libc_hidden_weak with
7256 #ifndef LIBC_SIGACTION.
7257 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
7258 sigaction): Likewise.
7259 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
7260 sigaction): Likewise.
7261 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
7262 sigaction): Likewise.
7263 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
7264 sigaction): Likewise.
7265 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
7266 sigaction): Likewise.
7267 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
7268 sigaction): Likewise.
7269 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
7270 sigaction): Likewise. Remove SIGCANCEL handling here.
7271 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
7274 2003-01-02 Art Haas <ahaas@airmail.net>
7276 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
7278 2003-01-02 Ulrich Drepper <drepper@redhat.com>
7280 * posix/getconf.c: Update copyright year.
7281 * nss/getent.c: Likewise.
7282 * nscd/nscd_nischeck.c: Likewise.
7283 * iconv/iconvconfig.c: Likewise.
7284 * iconv/iconv_prog.c: Likewise.
7285 * elf/ldconfig.c: Likewise.
7286 * catgets/gencat.c: Likewise.
7287 * csu/version.c: Likewise.
7288 * elf/ldd.bash.in: Likewise.
7289 * elf/sprof.c (print_version): Likewise.
7290 * locale/programs/locale.c: Likewise.
7291 * locale/programs/localedef.c: Likewise.
7292 * nscd/nscd.c (print_version): Likewise.
7293 * debug/xtrace.sh: Likewise.
7294 * malloc/memusage.sh: Likewise.
7295 * malloc/mtrace.pl: Likewise.
7297 2003-01-01 Jakub Jelinek <jakub@redhat.com>
7299 * io/sys/stat.h: Include time.h with __need_timespec even if
7300 __USE_MISC is defined but __USE_XOPEN is not.
7302 2003-01-01 Andreas Jaeger <aj@suse.de>
7304 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
7305 type to avoid strict aliasing problem.
7306 (_nss_dns_gethostbyname2_r): Likewise.
7307 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7308 (_nss_dns_getnetbyname_r): Likewise.
7309 * resolv/gethnamaddr.c (_gethtent): Likewise.
7310 (gethostbyname2): Likewise.
7312 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7314 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
7315 to avoid using the exported symbols. Define aliases with the
7316 original names separately.
7318 * include/time.h: Add libc_hidden_proto for __strftime_l.
7319 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
7320 * time/strftime.c: Always use libc_hidden_def if _LIBC.
7322 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
7323 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
7325 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
7328 * csu/Makefile (routines): Add dso_handle.
7329 * csu/dso_handle.c: New file.
7331 2002-12-31 Roland McGrath <roland@redhat.com>
7333 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
7334 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
7335 (S-CPPFLAGS): Add -DASSEMBLER here instead.
7336 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
7338 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7340 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
7343 2002-12-31 Andreas Jaeger <aj@suse.de>
7345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
7347 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
7348 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
7349 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
7351 * sysdeps/unix/sysv/linux/kernel_stat.h
7352 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7354 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7355 __unused[1-3] since they're needed by some platforms. Handle
7356 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7358 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7359 for structs stat and stat64.
7360 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7361 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7362 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7363 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7365 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7367 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7368 nsec resolution changes.
7369 (xstat64_conv): Likewise.
7370 (xstat32_conv): Likewise.
7372 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7375 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7376 structs stat and stat64.
7378 * time/time.h (__timespec_defined): Define for __USE_MISC.
7380 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7382 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7383 and __libc_current_sigrtmax.
7385 2002-12-31 Jakub Jelinek <jakub@redhat.com>
7387 * include/errno.h (__errno_location): Add prototype.
7388 Use libc_hidden_proto unconditionally.
7389 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7391 * include/resolv.h (__res_state): Likewise.
7393 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7394 * include/sys/socket.h (accept): Add libc_hidden_proto.
7395 * include/errno.h (__errno_location): Likewise.
7396 * include/netdb.h (__h_errno_location): Likewise.
7397 * include/resolv.h (__res_state): Likewise.
7398 * include/unistd.h (__lseek): Likewise.
7399 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7400 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7401 * sysdeps/generic/res-state.c (__res_state): Likewise.
7402 * sysdeps/generic/accept.c (accept): Likewise.
7403 * sysdeps/generic/lseek.c (__lseek): Likewise.
7404 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7405 __libc_current_sigrtmax): Likewise.
7406 * sysdeps/mach/hurd/accept.c (accept): Likewise.
7407 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7408 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7409 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7410 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7411 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7412 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7413 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7414 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7416 (__GI_accept): New alias to accept.
7417 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7418 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7419 New alias to llseek.
7420 (__GI_accept): New alias to accept.
7421 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7423 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7425 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7427 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7428 strong_alias (name, __GI_name).
7429 * sysdeps/arm/bsd-_setjmp.S : Likewise.
7430 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7431 * sysdeps/i386/bsd-_setjmp.S : Likewise.
7432 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7433 * sysdeps/mips/bsd-_setjmp.S : Likewise.
7434 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7435 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7436 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7437 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7438 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7439 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7440 * sysdeps/sh/bsd-_setjmp.S : Likewise.
7441 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7442 * sysdeps/unix/arm/fork.S : Likewise.
7443 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7444 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7445 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7446 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7447 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7448 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7449 * sysdeps/unix/i386/fork.S : Likewise.
7450 * sysdeps/unix/mips/fork.S : Likewise.
7451 * sysdeps/unix/sparc/fork.S : Likewise.
7452 * sysdeps/unix/sparc/vfork.S : Likewise.
7453 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7454 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7455 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7456 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7457 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7458 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7459 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7460 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7461 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7462 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7463 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7464 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7465 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7466 * sysdeps/unix/fork.S : Likewise.
7467 * sysdeps/vax/bsd-_setjmp.S : Likewise.
7468 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7470 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7473 2002-12-31 Ulrich Drepper <drepper@redhat.com>
7475 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7476 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7477 * sysdeps/mach/hurd/fork.c: Likewise.
7478 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7479 * sysdeps/unix/fork.S: Add __GI___fork alias.
7480 * sysdeps/unix/arm/fork.S: Likewise.
7481 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7482 * sysdeps/unix/i386/fork.S: Likewise.
7483 * sysdeps/unix/mips/fork.S: Likewise.
7484 * sysdeps/unix/sparc/fork.S: Likewise.
7485 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7486 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7487 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7488 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7489 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7490 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7491 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7492 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7493 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7494 * sysdeps/unix/sparc/vfork.S: Likewise.
7495 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7496 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7497 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7498 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7499 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7500 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7501 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7502 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7504 * include/time.h: Add libc_hidden_proto for __nanosleep.
7505 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7506 * sysdeps/mach/nanosleep.c: Likewise.
7507 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7508 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7510 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7511 _IO_list_unlock, and _IO_list_resetlock.
7512 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7513 _IO_list_unlock, and _IO_list_resetlock.
7515 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7516 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7517 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7518 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7520 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7521 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7522 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7523 __GI___longjmp alias.
7525 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7526 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7527 * sysdeps/arm/bsd-_setjmp.S: Likewise.
7528 * sysdeps/generic/bsd-_setjmp.c: Likewise.
7529 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7530 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7531 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7532 * sysdeps/mips/bsd-_setjmp.S: Likewise.
7533 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7534 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7535 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7536 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7537 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7538 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7539 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7540 * sysdeps/sh/bsd-_setjmp.S: Likewise.
7541 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7542 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7543 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7544 * sysdeps/vax/bsd-_setjmp.S: Likewise.
7545 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7547 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7549 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7551 2002-12-30 Roland McGrath <roland@redhat.com>
7553 * Rules (generated): Target removed.
7554 * mach/Makefile (generated): Define it here instead.
7556 * math/Makefile (generated): Add m_*l and m_*f variants too.
7558 2002-12-30 Ulrich Drepper <drepper@redhat.com>
7560 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7561 the to-be-deleted objects right away instead of later separately.
7562 The latter fails because the scope data structures of the DSO
7563 might already be gone.
7565 * elf/Makefile: Add rules to build and run reldep8 test.
7566 * elf/reldep8.c: New file.
7567 * elf/reldep8mod1.c: New file.
7568 * elf/reldep8mod2.c: New file.
7569 * elf/reldep8mod3.c: New file.
7570 Contributed by Jakub Jelinek.
7572 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
7574 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7575 checking of return value ENOSYS from getdents64.
7577 2002-12-28 Andreas Schwab <schwab@suse.de>
7579 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7580 ($(common-objpfx)s-%.d): Generalized from
7581 $(common-objpfx)s-proto.d rule.
7582 (common-generated): Add s-proto-cancel.d.
7583 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7584 cancellable syscalls.
7585 * sysdeps/unix/s-proto-cancel.S: New file.
7587 2002-12-29 Roland McGrath <roland@redhat.com>
7589 * resolv/res_libc.c: Move _res defn magic after res_init defn
7590 so _res macro is in effect for that code.
7592 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
7593 pattern for prepending $(..) so it doesn't affect $(foo).
7595 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7597 2002-12-29 Jakub Jelinek <jakub@redhat.com>
7599 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7602 2002-12-28 Ulrich Drepper <drepper@redhat.com>
7604 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7606 2002-12-28 Andreas Jaeger <aj@suse.de>
7608 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7610 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7612 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7614 * inet/herrno.c (__h_errno_location): Remove.
7615 * inet/Makefile (routines): Add herrno-loc.
7616 * resolv/res_libc.c (__res_state): Remove.
7617 * resolv/Makefile (routines): Add res-state.
7618 * sysdeps/generic/herrno-loc.c: New file.
7619 * sysdeps/generic/res-state.c: New file.
7621 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7623 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7624 Only define if USE_DL_SYSINFO is defined.
7626 2002-12-22 Jakub Jelinek <jakub@redhat.com>
7628 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7629 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7630 Define. Patch by Richard Henderson and Jes Sorensen.
7631 (PSEUDO): Remove unnecessary ;;.
7632 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7633 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
7634 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7635 if not initializing thread pointer.
7636 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7637 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7638 make it weak also if NONTLS_INIT_TP.
7639 * sysdeps/unix/common/pause.c: Handle cancellation.
7640 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7641 (LOADSYSCALL): Remove.
7642 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7643 (SYSCALL_ERROR_HANDLER): Use it.
7644 (PSEUDO): Don't jump around error handler.
7645 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7646 jump around error handler.
7647 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7648 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7649 to __syscall_error_handler on failure.
7650 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7651 (LOADSYSCALL): Remove.
7652 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7653 (SYSCALL_ERROR_HANDLER): Use it.
7654 (PSEUDO): Don't jump around error handler.
7655 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7656 jump around error handler.
7657 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7658 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7659 to __syscall_error_handler on failure.
7661 2002-12-27 Roland McGrath <roland@redhat.com>
7663 * scripts/gen-as-const.awk: New file.
7664 * Makefile (distribute): Add it.
7665 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7666 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7668 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7670 2002-12-27 Andreas Schwab <schwab@suse.de>
7672 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
7674 2002-12-27 Jakub Jelinek <jakub@redhat.com>
7676 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
7679 2002-12-27 Andreas Schwab <schwab@suse.de>
7681 * Makerules ($(common-objpfx)%.make): Filter through
7682 $(sed-remove-objpfx).
7684 2002-12-23 Roland McGrath <roland@redhat.com>
7686 * scripts/abilist.awk: Produce a more compact format, divided into
7687 stanzas for each version set, the set name listed only once.
7688 * scripts/extract-abilist.awk: New file.
7689 * scripts/merge-abilist.awk: New file.
7690 * Makerules (check-abi-%, update-abi-%): New pattern rules.
7691 (update-abi, check-abi): New targets.
7692 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
7694 2002-12-19 Roland McGrath <roland@redhat.com>
7696 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
7698 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
7701 2002-12-21 Andreas Schwab <schwab@suse.de>
7703 * elf/check-textrel.c (handle_file): Swap p_type.
7705 2002-12-21 Andreas Schwab <schwab@suse.de>
7707 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
7708 (INLINE_SYSCALL): Use it.
7709 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7710 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7712 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
7713 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
7715 2002-12-20 Art Haas <ahaas@airmail.net>
7717 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
7720 2002-12-21 Philip Blundell <philb@gnu.org>
7722 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
7723 top as seventh arg to __libc_start_main.
7724 Reported by paulnash@wildseed.com.
7726 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
7728 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
7729 compatibility cruft when new enough kernel is assumed.
7731 2002-12-20 Jakub Jelinek <jakub@redhat.com>
7733 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
7734 instead of INLINE_SYSCALL.
7736 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7738 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
7741 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
7742 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7743 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
7744 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7745 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7746 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7747 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7748 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7749 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7750 Patch by William Lee Irwin <wli@holomorphy.com>.
7752 2002-12-20 Andreas Schwab <schwab@suse.de>
7754 * locale/programs/ld-measurement.c (measurement_output): Fix
7757 2002-12-20 Ulrich Drepper <drepper@redhat.com>
7759 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
7760 Redefine _IO_flockifle and _IO_funlockfile as inlines.
7762 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
7763 builds add "tls" in the search path.
7764 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
7765 (path_hwcap): Recognize "tls".
7767 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7769 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
7770 __waitpid instead of waitpid.
7772 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
7774 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
7775 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
7776 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
7778 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
7779 information for system calls.
7781 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
7784 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
7786 2002-12-19 Roland McGrath <roland@redhat.com>
7788 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
7789 * iconvdata/ibm922.h: Likewise.
7790 * iconvdata/ibm930.h: Likewise.
7791 * iconvdata/ibm932.h: Likewise.
7792 * iconvdata/ibm933.h: Likewise.
7793 * iconvdata/ibm935.h: Likewise.
7794 * iconvdata/ibm937.h: Likewise.
7795 * iconvdata/ibm939.h: Likewise.
7796 * iconvdata/ibm943.h: Likewise.
7797 * iconvdata/isiri-3342.h: Likewise.
7799 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7801 * test-skeleton.c (main): Make sure correct value is seen as
7802 argv[0] after adjustment of argv, and argc.
7804 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
7805 RTLD_CORRECT_DYNAMIC_WEAK is defined.
7807 2002-12-19 Jakub Jelinek <jakub@redhat.com>
7809 * nscd/connections.c (nscd_run): Shut up warning.
7810 * tst-ungetc.c (assert): Undefined before redefining.
7812 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7814 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
7817 2002-12-17 Art Haas <ahaas@airmail.net>
7819 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
7820 * iconvdata/cp775.h: Likewise.
7821 * iconvdata/ibm1046.h: Likewise.
7822 * iconvdata/ibm1124.h: Likewise.
7823 * iconvdata/ibm1129.h: Likewise.
7824 * iconvdata/ibm1132.h: Likewise.
7825 * iconvdata/ibm1133.h: Likewise.
7826 * iconvdata/ibm1160.h: Likewise.
7827 * iconvdata/ibm1161.h: Likewise.
7828 * iconvdata/ibm1162.h: Likewise.
7829 * iconvdata/ibm1163.h: Likewise.
7830 * iconvdata/ibm1164.h: Likewise.
7832 2002-12-19 Ulrich Drepper <drepper@redhat.com>
7834 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
7835 __ASSUME_CLONE_THREAD_FLAGS is defined.
7836 * sysdeps/unix/sysv/linux/kernel-features.h
7837 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
7839 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7841 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
7843 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7845 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
7847 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7849 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
7851 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7853 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7854 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
7855 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
7858 2002-12-18 Jakub Jelinek <jakub@redhat.com>
7860 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
7862 [libc: GLIBC_PRIVATE]: ...here.
7863 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
7865 [libc: GLIBC_PRIVATE]: ...here.
7867 2002-12-18 Ulrich Drepper <drepper@redhat.com>
7869 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
7870 Use it instead of directly int $0x80.
7871 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
7872 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
7873 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7874 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7875 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7876 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7878 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7880 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
7882 * elf/elf.h (AT_SYSINFO): New define.
7883 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
7886 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7888 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
7890 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
7892 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
7894 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
7896 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
7898 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
7900 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
7901 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
7902 available, otherwise __libc_maybe_call.
7903 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
7904 cancellation handling.
7905 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
7907 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
7909 * posix/regcomp.c (free_workarea_compile): Free the new member
7911 (analyze): Initialize ORG_INDICES.
7912 (duplicate_node_closure): Search for a existing node, which is
7913 duplicated from the node ORG_DEST and satisfies the constraint
7914 CONSTRAINT. And use it to avoid inifimite loop.
7915 (search_duplicated_node): New function.
7916 (duplicate_node): Store the index of the original node.
7917 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
7919 * posix/regex_internal.h (re_dfa_t): Add new members.
7921 2002-12-17 Ulrich Drepper <drepper@redhat.com>
7923 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
7925 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7927 * sysdeps/posix/system.c (do_system): Add support for installation
7928 of cancellation handlers.
7929 * sysdeps/unix/sysv/linux/i386/system.c: New file.
7931 * stdlib/Makefile (tests): Add tst-system.
7932 * stdlib/tst-system.c: New file.
7934 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
7935 CENABLE]: Don't lose content of %ebx.
7937 2002-12-17 Jakub Jelinek <jakub@redhat.com>
7939 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
7940 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
7942 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7944 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
7945 fails to return a function pointer don't use it.
7947 2002-12-16 Art Haas <ahaas@airmail.net>
7949 * io/ftw.c: Convert GCC extension initializer syntax to C99.
7950 * iconvdata/iso-ir-165.c: Likewise.
7951 * iconvdata/jis0208.c: Likewise.
7952 * iconvdata/jis0212.c: Likewise.
7954 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7956 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
7957 epoll_ctl, and epoll_wait.
7958 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
7959 epoll_create, epoll_ctl, and epoll_wait.
7960 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
7961 Davide Libenzi <davidel@xmailserver.org>.
7962 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
7963 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7966 2002-12-16 Art Haas <ahaas@airmail.net>
7968 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
7970 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
7971 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
7972 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
7974 2002-12-16 Ulrich Drepper <drepper@redhat.com>
7976 * stdio-common/Makefile (routines): Remove lockfile. Add
7977 flockfile, ftrylockfile, and funlockfile.
7978 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
7979 * sysdeps/generic/flockfile.c: New file.
7980 * sysdeps/generic/ftrylockfile.c: New file.
7981 * sysdeps/generic/funlockfile.c: New file.
7983 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7985 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
7986 macros instead of doing the calls directly.
7987 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
7988 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
7991 2002-12-16 Jakub Jelinek <jakub@redhat.com>
7993 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
7994 * sysdeps/ieee754/bits/nan.h: Likewise.
7996 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
7997 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
7999 2002-12-16 Roland McGrath <roland@redhat.com>
8001 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
8002 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
8003 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
8005 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
8006 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
8008 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
8009 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
8010 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
8011 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
8012 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
8013 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
8014 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
8015 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
8017 2002-12-13 Paul Eggert <eggert@twinsun.com>
8019 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
8020 is now u_int, not int.
8021 (struct XDR.x_handy): Now u_int, not int.
8022 * sunrpc/xdr_mem.c: Include <limits.h>.
8023 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
8024 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
8025 x_handy is now unsigned, not signed.
8026 Do not decrement x_handy if no change is made.
8027 (xdrmem_setpos): Check for int overflow.
8028 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
8029 (xdr_sizeof): Remove cast that is now unnecessary, now that
8030 x_handy is unsigned.
8032 2002-12-15 Art Haas <ahaas@airmail.net>
8034 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
8035 * iconvdata/gap.awk: Likewise.
8036 * iconvdata/gen-8bit-gap-1.sh: Likewise.
8037 * iconvdata/gen-8bit-gap.sh: Likewise.
8038 * locale/C-address.c: Likewise.
8039 * locale/C-collate.c: Likewise.
8040 * locale/C-ctype.c: Likewise.
8041 * locale/C-identification.c: Likewise.
8042 * locale/C-measurement.c: Likewise.
8043 * locale/C-messages.c: Likewise.
8044 * locale/C-monetary.c: Likewise.
8045 * locale/C-name.c: Likewise.
8046 * locale/C-numeric.c: Likewise.
8047 * locale/C-paper.c: Likewise.
8048 * locale/C-telephone.c: Likewise.
8049 * locale/C-time.c: Likewise.
8050 * nscd/connections.c: Likewise.
8051 * nscd/grpcache.c: Likewise.
8052 * nscd/hstcache.c: Likewise.
8053 * nscd/pwdcache.c: Likewise.
8054 * stdio-common/vfprintf.c: Likewise.
8055 * stdlib/random.c: Likewise.
8056 * sysdeps/generic/siglist.c: Likewise.
8057 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8058 * sysdeps/ieee754/bits/nan.h: Likewise.
8059 * sysdeps/posix/sprofil.c: Likewise.
8060 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
8061 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
8062 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
8064 2002-12-15 Roland McGrath <roland@redhat.com>
8066 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
8068 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
8069 <tls.h> here, no need for it.
8070 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8072 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
8073 parameter, not varargs parameter.
8075 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
8076 argument so it's not an unused variable.
8078 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
8079 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
8082 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
8084 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8086 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
8087 original __libc_fcntl code. Just renamed.
8089 2002-12-15 Andreas Schwab <schwab@suse.de>
8091 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
8093 2002-12-14 Olaf Hering <olh@suse.de>
8095 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
8096 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
8098 2002-12-15 Ulrich Drepper <drepper@redhat.com>
8100 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
8102 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
8103 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
8105 * sysdeps/unix/sysv/linux/open64.c: New file.
8107 * sysdeps/generic/pselect.c: Add support for cancellation handling.
8108 * sysdeps/posix/open64.c: Likewise.
8109 * sysdeps/posix/sigpause.c: Likewise.
8110 * sysdeps/posix/sigwait.c: Likewise.
8111 * sysdeps/posix/system.c: Likewise.
8112 * sysdeps/posix/waitid.c: Likewise.
8113 * sysdeps/unix/sysv/linux/accept.S: Likewise.
8114 * sysdeps/unix/sysv/linux/connect.S: Likewise.
8115 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
8116 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8117 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
8118 * sysdeps/unix/sysv/linux/poll.c: Likewise.
8119 * sysdeps/unix/sysv/linux/pread.c: Likewise.
8120 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8121 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
8122 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8123 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8124 * sysdeps/unix/sysv/linux/recv.S: Likewise.
8125 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
8126 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
8127 * sysdeps/unix/sysv/linux/send.S: Likewise.
8128 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
8129 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
8130 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
8131 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
8132 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
8133 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
8134 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
8135 * sysdeps/unix/sysv/linux/wait.c: Likewise.
8136 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
8137 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8138 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
8139 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8141 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8143 * sysdeps/generic/sysdep-cancel.h: New file.
8144 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
8146 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
8147 recvmsg, send, sendmsg, sendto): Make cancelable.
8148 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
8149 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
8150 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8151 sendto, osf_select): Likewise.
8152 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
8153 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8154 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
8155 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8157 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
8158 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
8159 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
8160 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8162 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
8163 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
8164 sendto, select): Likewise.
8165 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
8166 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
8168 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
8169 select, fcntl): Likewise.
8170 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
8171 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
8172 read, readv, select, sigsuspend, write, writev): Likewise.
8174 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8176 * dirent/bug-readdir1.c: Include unistd.h.
8178 2002-12-13 Jakub Jelinek <jakub@redhat.com>
8180 * locale/programs/locale.c: Include locarchive.h.
8181 (ARCHIVE_NAME): Define.
8182 (write_archive_locales): New function.
8183 (write_locales): Use it. Ensure the same locale is not printed
8184 multiple times in verbose mode.
8185 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
8186 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
8188 (struct nameent): New type.
8189 (nameentcmp): New function.
8191 2002-12-14 Jakub Jelinek <jakub@redhat.com>
8193 * posix/regex_internal.c (re_string_context_at): Guard wide char
8194 code with #ifdef RE_ENABLE_I18N.
8196 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
8198 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
8200 2002-12-13 Roland McGrath <roland@redhat.com>
8202 * posix/bug-regex15.c: New file.
8203 * posix/Makefile (tests): Add it.
8205 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
8206 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
8208 2002-12-13 Ulrich Drepper <drepper@redhat.com>
8210 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
8212 * misc/syslog.c (log_cleanup): Don't use parameter in
8213 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
8214 pass NULL instead of a pointer to syslog_lock.
8216 2002-12-12 Ulrich Drepper <drepper@redhat.com>
8218 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
8219 linker map for all iconv modules.
8220 (distribute): Add gconv.map.
8221 * iconvdata/gconv.map: New file.
8223 * elf/Makefile: Also check all iconv modules for text relocations.
8225 * stdlib/Makefile: Remove code to automatically import GMP.
8227 * elf/Makefile (tests): Add rules to build and run check-textrel.
8228 * elf/check-textrel.c: New file.
8230 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
8233 2002-12-11 Jakub Jelinek <jakub@redhat.com>
8235 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
8238 2002-04-30 Bruno Haible <bruno@clisp.org>
8240 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
8241 the encoding if it already has slashes.
8242 Reported by Perry Rapp <prapp@erols.com>.
8244 2002-12-11 Roland McGrath <roland@redhat.com>
8246 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
8247 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
8248 Turn off PIC for compiling this file.
8250 2002-12-11 Ulrich Drepper <drepper@redhat.com>
8252 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
8253 definitions. Not needed.
8254 [_LIBC]: Use definitions from libc-lock.h instead of referencing
8255 pthread routines directly.
8256 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
8258 (arena_get2): Don't look at return value of mutex_lock.
8260 2002-12-11 Roland McGrath <roland@redhat.com>
8262 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
8263 elf-init.o instead of compiling a PIC version.
8265 2002-12-11 Bruno Haible <bruno@clisp.org>
8267 * intl/gettext.h: Renamed to ...
8268 * intl/gmo.h: ... here.
8269 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
8270 * intl/gettextP.h: Update.
8271 * intl/loadmsgcat.c: Update.
8273 * intl/gettextP.h (PARAMS): Make more portable.
8274 (attribute_hidden): Define as empty macro if not already defined.
8275 * intl/hash-string.h (PARAMS): Make more portable.
8276 * intl/loadinfo.h (PARAMS): Likewise.
8277 * intl/plural-exp.h (PARAMS): Likewise.
8278 (attribute_hidden): Move definition near the definition of
8281 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
8282 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
8284 2002-07-13 Bruno Haible <bruno@clisp.org>
8286 * intl/dcigettext.c (freea): New macro.
8287 (FREE_BLOCKS): Free also the registered blocks.
8288 (DCIGETTEXT): Free the 'search' variable.
8289 Reported by Andreas Fischer <a.fischer@asentics.de>.
8291 2002-04-27 Bruno Haible <bruno@clisp.org>
8293 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
8294 * intl/dcigettext.c: Likewise.
8295 * intl/dcgettext.c: Likewise.
8296 * intl/dgettext.c: Likewise.
8297 * intl/gettext.c: Likewise.
8298 * intl/dcngettext.c: Likewise.
8299 * intl/dngettext.c: Likewise.
8300 * intl/ngettext.c: Likewise.
8301 * intl/textdomain.c: Likewise.
8302 * intl/bindtextdom.c: Likewise.
8303 * intl/plural-exp.h: Likewise.
8305 2002-01-02 Bruno Haible <bruno@clisp.org>
8307 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
8309 2001-04-30 Bruno Haible <bruno@clisp.org>
8311 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
8312 default macro definitions. Needed for mingw32.
8314 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8316 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
8317 __builtin_constant_p to macro parameter.
8319 * sysdeps/generic/sigpause.c: Define all functions as weak.
8320 * sysdeps/posix/sigpause.c: Likewise.
8322 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
8325 2002-12-10 Jakub Jelinek <jakub@redhat.com>
8327 * elf/tst-array1.c (preinit_array, init_array, fini_array):
8328 Explicitly align the array to sizeof (void *).
8329 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
8331 * include/libc-symbols.h: Fix a comment typo.
8333 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
8334 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
8336 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
8338 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
8339 (__libc_sigsuspend): Likewise.
8340 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
8341 (__libc_sigsuspend): Likewise.
8342 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
8343 (creat): New weak alias.
8345 2002-12-10 Roland McGrath <roland@redhat.com>
8347 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
8348 contributes a manual chapter.
8349 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
8352 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8353 and move contents to ...
8354 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
8355 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8356 it instead of duplicating its contents.
8357 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
8359 2002-12-09 Jakub Jelinek <jakub@redhat.com>
8361 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8363 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8365 (EXTRA_LD_ENVVARS): Use it.
8366 (DL_OSVERSION_INIT): Define.
8367 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8369 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
8371 2002-12-10 Ulrich Drepper <drepper@redhat.com>
8373 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8375 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8376 call. It is not allowed to destroy pthread mutexes which are
8377 still in use even though it is safe for our implementations. If
8378 somebody still uses the descriptor it is a bug.
8380 2002-12-09 Richard Henderson <rth@redhat.com>
8382 * csu/abi-note.S: Use .p2align, not .align.
8384 2002-12-09 Ulrich Drepper <drepper@redhat.com>
8386 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8387 __libc_select aliases.
8389 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8392 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8394 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8396 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8398 * sysdeps/unix/syscalls.list: Define __libc_select alias.
8400 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8402 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8403 __libc___xpg_sigpause aliases.
8405 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8407 * misc/error.c: Remove use of USE_IN_LIBIO.
8409 2002-12-08 Roland McGrath <roland@redhat.com>
8411 * elf/Makefile (tests): Uncomment tst-array[123].
8412 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8413 * csu/elf-init.c: New file.
8414 * csu/Makefile (routines, static-only-routines): Add elf-init.
8415 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8416 and __libc_csu_fini in place of _fini.
8417 * sysdeps/arm/elf/start.S: Likewise.
8418 * sysdeps/cris/elf/start.S: Likewise.
8419 * sysdeps/hppa/elf/start.S: Likewise.
8420 * sysdeps/i386/elf/start.S: Likewise.
8421 * sysdeps/ia64/elf/start.S: Likewise.
8422 * sysdeps/m68k/elf/start.S: Likewise.
8423 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8424 * sysdeps/mips/elf/start.S: Likewise.
8425 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8426 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8427 * sysdeps/s390/s390-32/elf/start.S: Likewise.
8428 * sysdeps/s390/s390-64/elf/start.S: Likewise.
8429 * sysdeps/sh/elf/start.S: Likewise.
8430 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8431 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8432 * sysdeps/x86_64/elf/start.S: Likewise.
8434 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8435 struct containing function ptr and value, free it.
8436 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8437 It's not safe to let the new thread use the SIGEV pointer.
8439 2001-10-20 Paul Eggert <eggert@twinsun.com>
8441 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8442 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8443 Use strerror_r that is only a macro, even if it is not a function.
8444 (strerror): Check for HAVE_DECL_STRERROR before declaring.
8445 (private_strerror): Use prototypes, not old-style function definition.
8446 (print_errno_message): New function.
8447 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8449 (error_tail, error, error_at_line): Use it.
8451 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
8453 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8455 2002-12-08 Ulrich Drepper <drepper@redhat.com>
8457 * scripts/output-format.sed: Fix bug in one of the s expressions
8458 which used / for one too many things.
8460 * include/unistd.h: Declare __libc_close.
8462 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8464 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8466 2002-12-07 Roland McGrath <roland@redhat.com>
8468 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8469 from 2002-12-06, but remove unnecessary memset call without removing
8470 necessary copy of initialization image.
8472 * Makerules ($(common-objpfx)format.lds): New target.
8473 (common-generated): Add it.
8474 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8475 * scripts/output-format.sed: New file.
8476 * Makefile (distribute): Add it.
8478 2002-12-07 Ulrich Drepper <drepper@redhat.com>
8480 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8481 Reported by Art Haas <ahaas@airmail.net>.
8483 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
8485 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
8487 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8489 * string/test-strncpy.c (do_random_tests): Improve test coverage.
8491 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8493 * test-skeleton.c (timeout_handler): Allow expected signal to be
8496 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8498 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8500 2002-12-07 Jakub Jelinek <jakub@redhat.com>
8502 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8503 (SYSCALL_ERROR_HANDLER): Fix a pasto.
8504 Reported by Jeff Bailey <jbailey@nisa.net>.
8506 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8508 * sysdeps/generic/libc-tls.c: Undo last patch.
8510 * include/wctype.h: Define iswalnum with libc_hidden_proto.
8512 * include/signal.h: Define raise with libc_hidden_proto.
8514 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8515 __execve instead of snprintf and execve.
8517 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8520 2002-12-06 Jakub Jelinek <jakub@redhat.com>
8522 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8523 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8525 2002-12-06 Ulrich Drepper <drepper@redhat.com>
8527 * misc/syslog.c (log_cleanup): New function.
8528 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8529 (closelog): Likewise.
8531 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8532 * elf/dl-iteratephdr.c: Likewise.
8533 * elf/dl-lookup.c: Likewise.
8534 * elf/dl-misc.c: Likewise.
8535 * elf/dl-open.c: Likewise.
8536 * elf/dl-support.c: Likewise.
8537 * elf/rtld.c: Likewise.
8538 * sysdeps/generic/ldsodefs.h: Likewise.
8539 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8540 * sysdeps/mach/bits/libc-lock.h: Likewise.
8541 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8543 2002-12-06 Roland McGrath <roland@redhat.com>
8545 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8547 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8548 (malloc_starter, memalign_starter, free_starter): Don't define these.
8549 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8550 Don't declare them either.
8551 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8552 __pthread_initialize, so no need to set hooks to *_starter.
8553 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8554 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8555 (__libc_malloc_pthread_startup): New function.
8556 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8558 * malloc/hooks.c (memalign_starter): New function.
8559 * malloc/malloc.c: Declare it.
8560 * malloc/arena.c (save_memalign_hook): New variable.
8561 (ptmalloc_init): Set __memalign_hook to memalign_starter.
8563 * elf/dl-minimal.c (free): Clear the memory.
8564 (calloc): Just call malloc, knowing all memory it returns is cleared.
8566 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8567 malloc and memset; calloc can avoid the zeroing when redundant.
8568 (_dl_tls_setup): Likewise.
8569 * elf/dl-load.c (decompose_rpath): Likewise.
8570 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8571 call, since memory from sbrk at startup is already zero.
8573 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8574 error string for failure, null for success. Update callers.
8575 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8576 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8578 2002-12-05 Jakub Jelinek <jakub@redhat.com>
8580 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8582 (readahead): Change args to i:iii.
8583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8584 Change args to i:iii.
8585 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8588 2002-12-05 Roland McGrath <roland@redhat.com>
8590 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8591 call all functions rather than none.
8592 Reported by Mark P. Mitchell <mark@codesourcery.com>.
8594 2002-12-04 Roland McGrath <roland@redhat.com>
8596 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8597 on _nl_current_LC_* variables.
8599 2002-12-05 Ulrich Drepper <drepper@redhat.com>
8601 * dirent/bug-readdir1.c (main): Don't call closedir, just close
8602 the file descriptor. This is testing what the bug report was about.
8604 2002-12-04 Ulrich Drepper <drepper@redhat.com>
8606 * po/be.po: New file.
8608 * argp/Makefile (tests): Add tst-argp1.
8610 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8611 Change type of _attribute to void*.
8612 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8613 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8614 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8615 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8616 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8618 2002-12-04 Roland McGrath <roland@redhat.com>
8620 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8621 members to the end, so a libpthread compiled with !USE_TLS will still
8622 find other members properly.
8624 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8625 operand for DEST memory. Fix dummy input operand to use SRC.
8626 Reported by Davin McCall <davmac@ozonline.com.au>.
8628 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8629 alignment when initializing the DTV entry.
8631 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8632 when TLS has not been set up, try to set it up if we can.
8633 * elf/tst-tls4.c: Revert last change.
8634 * elf/tst-tls5.c: Likewise.
8635 * elf/tst-tls6.c: Likewise.
8636 * elf/tst-tls7.c: Likewise.
8637 * elf/tst-tls8.c: Likewise.
8638 * elf/tst-tls9.c: Likewise.
8640 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8641 * sysdeps/generic/ldsodefs.h: Declare it.
8642 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8643 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8644 function, broken out of __libc_setup_tls.
8645 (init_static_tls): Likewise.
8646 (__libc_setup_tls): Call them.
8647 (_dl_tls_setup): New function, uses new subroutines.
8649 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8650 Clear the pointer when returning true.
8651 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8652 first element of the slotinfo list too.
8654 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8657 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8658 (_dl_determine_tlsoffset): Likewise.
8660 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8661 startup_error_tsd, made global.
8662 (dl_main): Update initialization.
8663 * elf/dl-tsd.c: Likewise.
8664 * sysdeps/generic/ldsodefs.h: Declare it.
8666 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8668 * manual/texinfo.tex: Update from latest upstream version.
8670 2002-12-03 Roland McGrath <roland@redhat.com>
8672 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
8673 area surplus in calculation for sbrk call.
8675 * iconvdata/cp1125.c: New file.
8676 * iconvdata/Makefile (distribute): Add it.
8677 (modules): Add CP1125.
8678 (gen-8bit-gap-modules): Add cp1125.
8679 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
8680 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
8682 2002-12-03 Andreas Jaeger <aj@suse.de>
8684 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8686 2002-12-03 Ulrich Drepper <drepper@redhat.com>
8688 * sysdeps/posix/system.c (do_system): Make signal handler
8689 installation thread safe.
8691 2002-12-02 Roland McGrath <roland@redhat.com>
8693 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
8694 caller from EXTRA to -.
8695 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8696 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8697 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8699 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
8701 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
8702 bits of RM are cleared.
8704 2002-12-02 Roland McGrath <roland@redhat.com>
8706 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
8707 TLS setup is required.
8708 * elf/tst-tls5.c: Likewise.
8709 * elf/tst-tls6.c: Likewise.
8710 * elf/tst-tls7.c: Likewise.
8711 * elf/tst-tls8.c: Likewise.
8712 * elf/tst-tls9.c: Likewise.
8714 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
8715 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
8716 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
8717 for being null before calling free_slotinfo.
8718 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
8719 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
8721 2002-11-30 Bruno Haible <bruno@clisp.org>
8723 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
8724 (struct __gconv_step): New field __btowc_fct.
8725 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
8726 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
8728 (__gconv_btwoc_ascii): New declaration.
8729 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8730 (__gconv_btwoc_ascii): New function.
8731 * iconv/gconv_builtin.h: Add BtowcFct argument to all
8732 BUILTIN_TRANSFORMATION invocations.
8733 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8734 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
8735 * iconv/gconv_builtin.c (map): New field btowc_fct.
8736 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
8738 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
8739 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
8740 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
8741 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
8742 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
8743 (gconv_init): Initialize __btowc_fct field.
8744 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
8745 * iconv/loop.c: Document ONEBYTE_BODY.
8746 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
8747 Undefine ONEBYTE_BODY at the end.
8748 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
8749 * iconvdata/8bit-gap.c (NONNUL): New macro.
8750 (BODY for FROM_LOOP): Use it.
8751 (ONEBYTE_BODY): New macro.
8752 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
8753 (NONNUL): New macro.
8754 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
8755 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
8756 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
8757 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
8758 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
8759 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
8760 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
8761 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
8762 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
8763 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
8764 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
8765 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
8766 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
8767 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
8768 * iconvdata/ibm932.c: Include <stdbool.h>.
8769 (TRUE, FALSE): Remove macros.
8770 (BODY for FROM_LOOP): Remove unused variable rp1.
8771 (ONEBYTE_BODY): New macro.
8772 (BODY for TO_LOOP): Use bool.
8773 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
8774 * iconvdata/ibm943.c: Include <stdbool.h>.
8775 (TRUE, FALSE): Remove macros.
8776 (BODY for FROM_LOOP): Remove unused variable rp1.
8777 (ONEBYTE_BODY): New macro.
8778 (BODY for TO_LOOP): Use bool.
8779 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
8780 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
8781 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
8782 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
8783 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
8784 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
8785 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
8786 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
8787 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
8788 * iconvdata/gbbig5.c: Tweak comment.
8790 2002-12-02 Ulrich Drepper <drepper@redhat.com>
8792 * po/fi.po: Update from translation team.
8794 2002-12-01 Roland McGrath <roland@redhat.com>
8796 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8797 testing getdents64 return value.
8799 * scripts/versions.awk: Don't pass -n flag to sort command.
8801 * posix/bug-regex13.c: Include <string.h>.
8803 * sysdeps/generic/libc-start.c (__libc_start_main): Do
8804 DL_SYSDEP_OSCHECK here.
8805 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
8806 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
8808 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
8809 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
8811 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
8812 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
8814 * include/link.h: Comment typo fix.
8816 2002-12-01 Roland McGrath <roland@frob.com>
8818 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
8819 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
8820 _POSIX_MEMORY_PROTECTION): Likewise.
8821 (_POSIX_POLL, _POSIX_SELECT): Removed.
8823 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8825 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
8826 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
8828 2002-11-28 Jakub Jelinek <jakub@redhat.com>
8830 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
8832 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
8835 2002-11-28 Ulrich Drepper <drepper@redhat.com>
8837 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
8838 branch prediction buffers by using unpaired call/ret.
8840 2002-11-27 Ulrich Drepper <drepper@redhat.com>
8842 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
8843 first parameters constraint string.
8844 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
8846 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
8848 * posix/regcomp.c (parse_expression): Set the bit since the back
8849 reference is used in the regular expression.
8850 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
8852 (re_node_set_init_copy): Likewise.
8853 * posix/regex_internal.h (state_array_t): New structure.
8854 (re_sub_match_last_t): Likewise.
8855 (re_sub_match_top_t): Likewise.
8856 (re_match_context_t): Add new members.
8857 (re_dfa_t): Likewise.
8858 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
8859 to check the matching is really correct, and retry if failed.
8860 Move the routin pruning the impossible nodes from here, ...
8861 (prune_impossible_nodes): To this function.
8862 (check_matching): Invoke check_subexp_matching_top, and replace
8863 redundant checking with transit_state_bkref invocation.
8864 (proceed_next_node): Replace strncmp with memcmp. Reported by
8865 Paolo Bonzini <bonzini@gnu.org>.
8866 (update_cur_sifted_state): Remove search_subexp invocation.
8867 (search_subexp): Remove this function.
8868 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
8870 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
8871 Remove unused invocation of match_ctx_add_entry.
8872 (transit_state): Invoke check_subexp_matching_top.
8873 (check_subexp_matching_top): New function.
8874 (transit_state_bkref): Remove unused array.
8875 Merge transit_state_bkref_loop.
8876 (transit_state_bkref_loop): Use get_subexp instead of
8877 sift_states_backward. Use search_cur_bkref_entry for optimization.
8878 Merge this function to transit_state_bkref.
8879 (get_subexp): New function.
8880 (get_subexp_sub): Likewise.
8881 (find_subexp_node): Likewise.
8882 (check_arrival): Likewise.
8883 (check_arrival_expand_ecl): Likewise.
8884 (check_arrival_expand_ecl_sub): Likewise.
8885 (expand_bkref_cache): Likewise.
8886 (match_ctx_init): Initialize new members.
8887 (match_ctx_clean): New function.
8888 (match_ctx_free): Release new members.
8889 (match_ctx_free_subtops): New function.
8890 (match_ctx_add_entry): Fix indent.
8891 (search_cur_bkref_entry): New function.
8892 (match_ctx_add_subtop): Likewise.
8893 (match_ctx_add_sublast): Likewise.
8895 2002-11-25 Ulrich Drepper <drepper@redhat.com>
8897 * iconv/Makefile (tests): Remove tst-iconv4.c
8898 * iconv/tst-iconv4.c: Moved to...
8899 * iconvdata/tst-iconv4.c: ...here. New file.
8900 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
8902 2002-11-25 Roland McGrath <roland@redhat.com>
8904 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
8905 Grok AF_LINK if defined.
8906 From Momchil Velikov <velco@fadata.bg>.
8908 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
8909 brdaddr, or dstaddr, just set those pointers to null and don't fail.
8910 Reported by Momchil Velikov <velco@fadata.bg>.
8912 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
8913 is > sizeof IFR->ifa_addr, advance past the whole longer length.
8914 (__ifreq): Count up NIFS that way too.
8915 Reported by Momchil Velikov <velco@fadata.bg>.
8917 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
8919 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
8920 and <fpu_control.h>.
8922 2002-11-24 Ulrich Drepper <drepper@redhat.com>
8924 * elf/elf.h (EM_ST19): Fix typo.
8926 2002-11-25 Jakub Jelinek <jakub@redhat.com>
8928 * include/errno.h (__set_errno): Define as errno = val
8931 2002-11-24 Roland McGrath <roland@redhat.com>
8933 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
8934 * sysdeps/posix/writev.c: Likewise.
8935 From Momchil Velikov <velco@fadata.bg>.
8937 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
8938 calling *GL(dl_error_catch_tsd) for a thread-local location.
8939 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
8940 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
8941 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
8943 * libio/iofflush.c: Add libc_hidden_def.
8944 * libio/iofwrite.c: Likewise.
8945 * sysdeps/generic/sigtimedwait.c: Likewise.
8946 * sysdeps/generic/sigwaitinfo.c: Likewise.
8947 * sysdeps/posix/sigwait.c: Likewise.
8948 Reported by Momchil Velikov <velco@fadata.bg>.
8950 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
8951 to match <arpa/inet.h> declaration.
8952 * inet/inet_netof.c (inet_netof): Likewise.
8953 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
8954 Reported by Momchil Velikov <velco@fadata.bg>.
8956 * configure.in: Skip AUTOCONF check under --without-cvs.
8957 * configure: Regenerated.
8959 * posix/Makefile (headers): Add bits/pthreadtypes.h.
8960 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
8961 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
8963 2002-11-24 Andreas Schwab <schwab@suse.de>
8965 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
8968 2002-11-19 Jim Meyering <jim@meyering.net>
8970 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
8972 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
8974 2002-11-23 Roland McGrath <roland@redhat.com>
8976 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
8977 Just produce hex output for datum sizes.
8979 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
8980 Reported by Luca Barbieri <ldb@ldb.ods.org>.
8982 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
8984 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
8985 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8986 and __unused3 fields.
8987 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
8988 [__WORDSIZE == 32]: Only PPC32 requires __unused1
8989 and __unused2 fields.
8990 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
8991 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8992 __unused3, and __unused4 fields.
8994 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
8995 obtain lowest address for profiling in __monstartup call.
8997 2002-11-21 Roland McGrath <roland@redhat.com>
8999 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
9000 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
9002 * locale/localeinfo.h (struct locale_data): Revert last change.
9004 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
9005 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9007 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
9008 __NR_pread64 if not defined.
9009 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
9010 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9012 2002-11-21 Roland McGrath <roland@frob.com>
9014 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
9015 __libc_multiple_libcs here. Call __setfpucw.
9017 2002-11-21 Ulrich Drepper <drepper@redhat.com>
9019 * elf/Makefile (tests): Don't run test-arrayX tests for now.
9021 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
9022 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
9023 CLONE_CHILD_*TID flags.
9025 2002-11-20 Andreas Jaeger <aj@suse.de>
9027 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
9028 We pass struct ucontext on x86-64.
9030 (GET_FRAME): Adjust.
9031 (GET_STACK): Adjust.
9033 2002-11-20 Roland McGrath <roland@redhat.com>
9035 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
9036 conditionalize [! DO_VERSIONING] #error.
9038 * scripts/abilist.awk: Grok function descriptor symbols.
9040 * intl/tst-gettext.c (main): Check return values from setlocale.
9041 Add necessary unsetenv's to make LANG=existing-locale check work.
9043 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
9044 so aborted prior runs don't confuse things.
9046 * locale/localeinfo.h (struct locale_data: union locale_data_value):
9047 Use uintptr_t instead of unsigned int for `word' member.
9048 (_NL_CURRENT_WORD): Cast to uint32_t.
9050 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
9053 2002-11-20 Ulrich Drepper <drepper@redhat.com>
9055 * elf/tls-macros.h: Add IA-64 definitions.
9056 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
9058 * iconv/Makefile (tests): Add tst-iconv4.
9059 * iconv/tst-iconv4.c: New file.
9061 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
9062 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
9063 __GCONV_INCOMPLETE_INPUT.
9064 (ucs4le_internal_loop): Likewise.
9065 (ucs4le_internal_loop_unaligned): Likewise.
9066 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
9067 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
9068 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
9070 * iconv/loop.c (LOOPFCT): First test for empty input then for full
9073 * inet/getnameinfo.c: Use extend_alloca where appropriate.
9074 * sysdeps/posix/getaddrinfo.c: Likewise.
9076 * include/alloca.h (extend_alloca): New define. Based on stack
9077 direction it'll try to append to the previouls allocated buffer.
9079 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
9081 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
9082 use the same service for AF_INET and AF_INET6.
9084 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9086 * intl/localealias.c (read_alias_file): Use only about 400 bytes
9087 of stack space instead of 16k.
9089 2002-11-18 Wolfram Gloger <wg@malloc.de>
9092 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
9093 nothing if not initialized. Bug report from Marcus Brinkmann
9094 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9096 2002-11-19 Roland McGrath <roland@redhat.com>
9098 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
9101 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
9102 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
9103 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
9104 * configure: Regenerated.
9106 2002-11-19 Ulrich Drepper <drepper@redhat.com>
9108 * include/dlfcn.h: __libc_dlopen is now a macro calling
9109 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
9110 (__libc_dlopen_mode): New prototype.
9111 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
9112 new parameter. Store new parameter in mode field of structure passed
9114 (struct do_dlopen_args): Add new field mode.
9115 (do_dlopen): Pass mode from parameter structure to _dl_open.
9117 2002-11-11 Randolf Chung <tausq@debian.org>
9119 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
9120 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
9121 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
9123 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
9125 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
9126 Set -mdisable-fpregs for this file.
9128 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
9130 * sysdeps/unix/sysv/linux/configure.in:
9131 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
9132 from gcc-3.0 era for backwards compatibility.
9133 * sysdeps/unix/sysv/linux/configure: Regenerate.
9135 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
9136 Define mcontext_t as a sigcontext.
9138 2002-11-18 Roland McGrath <roland@redhat.com>
9140 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
9141 Free memory in `last_result' if it was used.
9143 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
9144 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
9145 Do the parsing inline instead of copying strings and calling
9146 inet_network, and properly skip all alias names not matching the form.
9148 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
9150 2002-11-17 Ulrich Drepper <drepper@redhat.com>
9152 * manual/pattern.texi (Wordexp Example): Fix sample code.
9154 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
9155 childs stack which will be loaded into the %esi register.
9157 2002-11-14 Paul Eggert <eggert@twinsun.com>
9159 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
9160 overflow when skipping the question part and when unpacking aliases.
9162 2002-11-15 Roland McGrath <roland@redhat.com>
9164 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
9165 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
9166 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
9168 2002-11-15 Jakub Jelinek <jakub@redhat.com>
9170 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
9171 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
9173 2002-11-15 Roland McGrath <roland@redhat.com>
9175 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
9176 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
9177 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
9178 (+make-include-of-dep): New canned sequence.
9180 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
9181 From Dmitry V. Levin <ldv@altlinux.org>.
9183 2002-11-14 Roland McGrath <roland@redhat.com>
9185 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
9186 * inet/herrno.c (__libc_h_errno): Likewise.
9187 * resolv/res_libc.c (__libc_res): Likewise.
9188 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
9189 (__res_state) [! USE___THREAD]: Don't define as weak.
9190 * csu/Versions: Revert last change.
9191 * resolv/Versions: Revert last change.
9193 * Makerules ($(common-objpfx)%.make): New pattern rule.
9194 * tls.make.c: New file.
9195 * Makefile (distribute): Add it.
9197 * sysdeps/generic/errno.c [! USE___THREAD]
9198 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
9199 with compat_symbol so they are not link-time visible.
9200 [! USE___THREAD] (__libc_errno): New alias for errno.
9201 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9202 Add __libc_errno here.
9203 * inet/herrno.c [USE___THREAD]: Use this conditional
9204 in place of [USE_TLS && HAVE___THREAD].
9205 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
9206 (h_errno, _h_errno): Declare these with compat_symbol so they are not
9208 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
9209 * resolv/res_libc.c [! USE___THREAD]
9210 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
9211 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
9212 (__libc_res): Define as alias for _res.
9213 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
9214 Add __libc_h_errno and __libc_res here.
9216 2002-11-14 Jakub Jelinek <jakub@redhat.com>
9218 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
9219 * resolv/Versions (h_errno, _res): Likewise.
9221 2002-11-14 Roland McGrath <roland@redhat.com>
9223 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
9224 (%.symlist): Likewise.
9226 2002-11-13 Roland McGrath <roland@redhat.com>
9228 * scripts/abilist.awk: New file.
9229 * Makefile (distribute): Add it.
9230 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
9231 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
9232 [$(subdir) = elf] (tests): Depend on libc.symlist.
9233 (generated, common-generated): Add those files.
9235 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
9236 * configure: Regenerated.
9237 * config.make.in (OBJDUMP): New variable, substituted by configure.
9239 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
9240 (mallochook, reallochook): Set them up.
9241 (checkhdr): Check HDR->magic2 value.
9242 (freehook): Reset HDR->magic2.
9243 (memalignhook): New static function.
9244 (old_memalign_hook): New static variable.
9245 (mcheck, reallochook): Set __memalign_hook to memalignhook.
9247 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
9250 2002-11-13 Andreas Jaeger <aj@suse.de>
9252 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
9254 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9256 2002-11-11 Paul Eggert <eggert@twinsun.com>
9258 * manual/crypt.texi (Cryptographic Functions): Mention that
9259 the MD5 one-way algorithm is compatible with BSD's.
9261 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9263 * posix/regex_internal.c (re_string_skip_chars): Also return the last
9265 (re_string_reconstruct): Calculate the context by itself when the
9266 offset points out of the valid range.
9267 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
9268 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
9269 (IS_WIDE_WORD_CHAR): New macro.
9270 (IS_WIDE_NEWLINE): New macro.
9272 2002-11-12 Andreas Jaeger <aj@suse.de>
9274 * sysdeps/x86_64/strchr.S: Don't use one register for two
9275 purposes, this fixes a bug noticed by test-strchr.c.
9277 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
9280 2002-11-12 Roland McGrath <roland@redhat.com>
9282 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
9283 (_G_IO_NO_BACKWARD_COMPAT): Define it.
9285 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
9286 instead of <pt-machine.h>.
9287 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
9289 From Ian Wienand <ianw@gelato.unsw.edu.au>.
9291 2002-11-10 Roland McGrath <roland@redhat.com>
9293 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
9294 Call fputs instead of fwprintf (simpler to follow in debugger).
9296 * crypt/md5-crypt.c: Doc fix.
9298 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
9299 the beginning of generated target commands.
9301 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
9302 dependencies for these in case implicit rule search skipped the
9303 nonexistent source directory.
9304 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
9305 files with $(object-suffixes) as targets too.
9306 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
9307 and a target for it using $(make-target-directory).
9309 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
9311 2002-11-10 Roland McGrath <roland@frob.com>
9313 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
9314 * sysdeps/generic/bits/pthreadtypes.h: ... here.
9316 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
9317 l_start == 0 and l_len == 1 as we do l_len == 0.
9319 2002-11-10 Ulrich Drepper <drepper@redhat.com>
9321 * po/da.po: Update from translation team.
9323 2002-11-10 Roland McGrath <roland@redhat.com>
9325 * config.make.in (includedir): New variable, substituted by configure.
9326 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
9327 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
9329 2002-11-10 Andreas Jaeger <aj@suse.de>
9331 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
9332 REG_OLDMASK and REG_CR2 to synch with kernel header.
9335 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
9337 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
9338 * nss/getnssent_r.c (__nss_getent_r): Likewise.
9339 (__nss_setent): Likewise.
9340 (__nss_getent_r): Likewise.
9341 * inet/getnetgrent_r.c (innetgr): Likewise.
9342 (__internal_setnetgrent_reuse): Likewise.
9343 (internal_getnetgrent_r): Likewise.
9344 * inet/ether_hton.c (ether_hostton): Likewise.
9345 * inet/ether_ntoh.c (ether_ntohost): Likewise.
9346 * sunrpc/netname.c (netname2user): Likewise.
9347 * sunrpc/publickey.c (getpublickey): Likewise.
9348 (getsecretkey): Likewise.
9350 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
9352 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9353 error in range calculation.
9355 2002-10-09 Jakub Jelinek <jakub@redhat.com>
9357 * string/test-strspn.c (do_test): Ensure zero termination.
9358 * string/test-strpbrk.c (do_test): Likewise.
9359 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9360 * string/test-strncpy.c (stupid_strncpy): Likewise.
9361 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9363 2002-10-08 Roland McGrath <roland@redhat.com>
9365 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9368 2002-09-22 H.J. Lu <hjl@gnu.org>
9370 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9371 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
9372 only if __NR_mmap2 is defined.
9374 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9375 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9376 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9377 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9379 2002-11-08 Jakub Jelinek <jakub@redhat.com>
9381 * posix/bug-regex13.c (tests): Add new test.
9383 * string/test-strchr.c (stupid_strchr): New function.
9384 (do_random_tests): Make sure the string is zero terminated.
9385 * string/test-strpbrk.c (stupid_strpbrk): New function.
9386 (do_random_tests): Make sure the string is zero terminated.
9387 * string/test-strcmp.c (stupid_strcmp): New function.
9388 (do_random_tests): Make sure the strings are zero terminated.
9389 * string/test-strspn.c (stupid_strspn): New function.
9390 (simple_strspn): Rename rej argument to acc.
9391 (do_random_tests): Make sure the string is zero terminated.
9392 * string/test-strcspn.c (stupid_strcspn): New function.
9393 * string/test-strncpy.c (stupid_strncpy): New function.
9394 * string/test-stpncpy.c (stupid_stpncpy): New function.
9395 * string/test-strncmp.c (stupid_strncmp): New function.
9396 (do_random_tests): Make sure the strings are zero terminated.
9397 * string/test-string.h (impl_t): Change test into long.
9398 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9400 2002-11-08 Roland McGrath <roland@redhat.com>
9402 * sysdeps/ia64/elf/configure.in: Add TLS check.
9403 From Ian Wienand <ianw@cse.unsw.edu.au>.
9404 * sysdeps/ia64/elf/configure: Regenerated.
9406 2002-11-07 Roland McGrath <roland@redhat.com>
9408 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9409 place of _IO_new_do_write.
9410 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9411 #undef before versioned_symbol use.
9413 2002-11-07 Richard Henderson <rth@redhat.com>
9415 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9416 * configure: Regenerated.
9417 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9418 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9419 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
9420 _dl_fini via gp-relative relocations.
9421 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9423 * elf/tls-macros.h: Add alpha versions.
9424 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9425 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9426 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
9427 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9428 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9429 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9430 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9431 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9432 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9433 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9434 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9435 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9436 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9437 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9438 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9439 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9440 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9441 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9443 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9444 Kill argument registers across the inline syscall.
9446 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9448 * linuxthreads/sysdeps/alpha/tls.h: New file.
9449 * sysdeps/alpha/dl-tls.h: New file.
9451 2002-10-29 David Mosberger <davidm@hpl.hp.com>
9453 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9454 (gmon_initializer): New function.
9455 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9456 __gmon_start__ here. Call it from gmon_initializer() instead.
9458 2002-03-12 H.J. Lu <hjl@gnu.org>
9460 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9461 tst-array2, and tst-array3.
9462 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9463 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9464 ($(objpfx)tst-array1.out): New target.
9465 ($(objpfx)tst-array2): Likewise.
9466 ($(objpfx)tst-array2.out): Likewise.
9467 ($(objpfx)tst-array3.out): Likewise.
9468 * elf/tst-array1.c: New file.
9469 * elf/tst-array1.exp: Likewise.
9470 * elf/tst-array2.c: Likewise.
9471 * elf/tst-array2dep.c: Likewise.
9472 * elf/tst-array2.exp: Likewise.
9473 * elf/tst-array3.c: Likewise.
9475 2002-10-28 David Mosberger <davidm@hpl.hp.com>
9477 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9478 Don't add L->l_addr to array entry values.
9480 2002-11-07 Jakub Jelinek <jakub@redhat.com>
9482 * string/test-string.h: New file.
9483 * string/test-strlen.c: New file.
9484 * string/test-string.h: New file.
9485 * string/test-strcmp.c: New file.
9486 * string/test-strchr.c: New file.
9487 * string/test-strrchr.c: New file.
9488 * string/test-strcpy.c: New file.
9489 * string/test-stpcpy.c: New file.
9490 * string/test-strncpy.c: New file.
9491 * string/test-stpncpy.c: New file.
9492 * string/test-strpbrk.c: New file.
9493 * string/test-strcspn.c: New file.
9494 * string/test-strspn.c: New file.
9495 * string/test-strcat.c: New file.
9496 * string/test-strncmp.c: New file.
9497 * string/test-memchr.c: New file.
9498 * string/test-memcmp.c: New file.
9499 * string/test-memset.c: New file.
9500 * string/test-memcpy.c: New file.
9501 * string/test-mempcpy.c: New file.
9502 * string/test-memmove.c: New file.
9503 * string/Makefile (strop-tests): New variable.
9504 (tests): Add strop-tests.
9505 (distribute): Add test-string.h.
9507 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9509 * posix/regcomp.c: Use tabs instead of spaces.
9510 * posix/regexec.c: Likewise.
9511 * posix/regex_internal.h: Likewise.
9513 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9515 2002-11-06 Jakub Jelinek <jakub@redhat.com>
9517 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9519 (regcomp): Don't set can_be_null here.
9520 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9521 (re_compile_internal): Clear can_be_null, set regs_allocated.
9523 * posix/regcomp.c (re_set_fastmap): New function.
9524 (re_compile_fastmap_iter): Use it. Remove redundant type ==
9525 COMPLEX_BRACKET check.
9526 * posix/regexec.c (re_search_internal): Optimize searching with
9527 fastmap. Call re_string_reconstruct even if match_first is
9528 smaller than raw_mbs_idx.
9530 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
9532 * posix/regcomp (free_dfa_content): Use free_state.
9533 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9534 pointers in case that realloc failed.
9535 (re_node_set_merge): Likewise.
9536 (register_state): Likewise.
9537 (create_newstate_common): Invoke memory release functions in case of
9539 (create_ci_newstate): Likewise.
9540 (create_cd_newstate): Likewise.
9541 (free_state): New function.
9542 * posix/regexec.c (re_search_internal): Invoke memory release
9543 functions in case of error conditions.
9544 (sift_states_backward): Likewise.
9545 (merge_state_array): Likewise.
9546 (add_epsilon_src_nodes): Likewise.
9547 (sub_epsilon_src_nodes): Likewise.
9548 (search_subexp): Likewise.
9549 (sift_states_bkref): Likewise.
9550 (transit_state_sb): Likewise.
9551 (transit_state_mb): Likewise.
9552 (transit_state_bkref_loop): Likewise.
9553 (group_nodes_into_DFAstates): Likewise.
9554 (push_fail_stack): Don't edit pointers in case that realloc failed.
9555 (extend_buffers): Likewise.
9556 (match_ctx_add_entry): Likewise.
9558 2002-11-06 Roland McGrath <roland@redhat.com>
9560 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9561 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9563 * configure.in: Add checks on as and ld for binutils 2.13 or later.
9564 * configure: Regenerated.
9566 2002-11-06 Ulrich Drepper <drepper@redhat.com>
9568 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9569 If re_compile_internal failed free fastmap buffer.
9570 (free_dfa_content): Broken out of regfree function. Frees all dfa
9572 (regfree): Add free_dfa_content.
9573 (re_compile_internal): If any of the called functions fails free
9574 all dfa related memory.
9576 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9578 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9579 warnings from the kernel headers.
9581 2002-11-05 Roland McGrath <roland@redhat.com>
9583 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9584 From Johannes Stezenbach <js@convergence.de>.
9586 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9587 #errlist-compat magic comment to give 123 as size.
9588 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9589 (libc: GLIBC_2.2): ... here.
9590 (libc: GLIBC_2.3): Likewise.
9592 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9594 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9595 which happens at the beginning so that we can unload modules in
9598 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9600 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9601 under [__USE_MISC || _ASM].
9603 * elf/elf.h: Remove the obsolete SH TLS relocations.
9605 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9607 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9609 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9612 __NR_pread64 and __NR_pwrite64.
9613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9614 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9616 Revert change to use INLINE_SYSCALL.
9617 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9618 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9619 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9620 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9622 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9625 Update clobber list and add a comment about the syscall ABI.
9627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9628 s_pwrite64, s_ftruncate, s_truncate): Re-add.
9630 2002-11-05 Jakub Jelinek <jakub@redhat.com>
9632 * iconv/gconv_dl.c (free_mem): Clear loaded.
9633 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9636 2002-11-05 Ulrich Drepper <drepper@redhat.com>
9638 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9640 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
9641 as old code without locking. _IO_seekoff calls this function after
9643 * libio/ioseekpos.c: Likewise for _IO_seekpos.
9644 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9645 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9647 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9648 of _IO_seekoff_internal.
9649 (_IO_rewind): Likewise.
9650 * libio/ioftell.c: Likewise.
9651 * libio/ftello.c: Likewise.
9652 * libio/ftello64.c: Likewise.
9653 * libio/iofgetpos.c: Likewise.
9654 * libio/iofgetpos64.c: Likewise.
9655 * libio/oldiofgetpos.c: Likewise.
9656 * libio/oldiofgetpos64.c: Likewise.
9657 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9658 _IO_seekpos_internal.
9659 * libio/iofsetpos64.c: Likewise.
9660 * libio/oldiofsetpos.c: Likewise.
9661 * libio/oldiofsetpos64.c: Likewise.
9663 2002-11-04 Roland McGrath <roland@redhat.com>
9665 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9666 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9667 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9668 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9669 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9670 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9671 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9672 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
9673 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
9674 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
9676 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
9677 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
9678 Remove these, no longer used.
9680 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
9683 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
9684 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
9685 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
9686 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
9687 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
9690 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
9691 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9692 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
9694 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9695 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
9697 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9699 2002-11-03 Roland McGrath <roland@redhat.com>
9701 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
9702 `_dl_tls_static_used'.
9703 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
9704 (__libc_setup_tls): Initialize it. Let the initial value of
9705 _dl_tls_static_size indicate some surplus space in the computed value.
9706 * elf/dl-open.c (_dl_tls_static_size): New variable.
9707 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
9708 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
9709 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
9710 (CHECK_STATIC_TLS): Use it.
9711 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
9712 closed objects occupied a trailing contiguous chunk of static TLS area.
9714 2002-10-18 Bruno Haible <bruno@clisp.org>
9716 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
9718 2002-11-04 Ulrich Drepper <drepper@redhat.com>
9720 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
9721 _wide_data->_IO_read_end if adjustment can be made in the current
9724 * sysdeps/unix/sysv/linux/fexecve.c: New file.
9726 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
9727 wide oriented streams are used.
9729 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
9730 service hasn't been used [PR libc/4744].
9732 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
9733 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
9735 * manual/examples/dir.c: Don't include <stddef.h>.
9736 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
9737 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
9739 2002-11-02 H.J. Lu <hjl@gnu.org>
9741 * stdio-common/reg-printf.c: Include <stddef.h>.
9743 2002-11-03 Ulrich Drepper <drepper@redhat.com>
9745 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
9747 * po/ca.po: Update from translation team.
9748 * po/es.po: Likewise.
9750 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
9751 is defined write out memory map.
9752 * sysdeps/unix/sysv/linux/segfault.c: New file.
9754 2002-11-02 Roland McGrath <roland@redhat.com>
9756 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
9757 pointers that can alias.
9758 Reported by Daniel Jacobowitz <drow@mvista.com>.
9760 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
9762 2002-11-02 Roland McGrath <roland@redhat.com>
9764 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
9765 description to be clearer and to say that *RESULT is set to ENTRY.
9767 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9769 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
9770 dests_ch arrays together. Alloca or malloc dest_states,
9771 dest_states_word and dest_states_nl arrays together. Free memory on
9774 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
9776 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
9777 and current_saltbits.
9779 2002-11-02 Roland McGrath <roland@redhat.com>
9781 * stdio-common/reg-printf.c: Include <stdlib.h>.
9783 2002-11-02 H.J. Lu <hjl@gnu.org>
9785 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
9786 caller to EXTRA instead of execve.
9788 2002-11-01 Roland McGrath <roland@redhat.com>
9790 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
9791 in place of [!(USE_TLS && HAVE___THREAD)].
9792 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
9794 2002-10-31 Roger Sayle <roger@eyesopen.com>
9796 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
9798 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9800 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
9801 without defining FP_ROUNDMODE.
9803 2002-10-29 Jakub Jelinek <jakub@redhat.com>
9805 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
9806 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
9808 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9809 (OLD_SIGLIST_SIZE): Define.
9810 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9811 (OLD_SIGLIST_SIZE): Define.
9812 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
9814 2002-11-01 Jakub Jelinek <jakub@redhat.com>
9816 * sysdeps/ia64/strncpy.S: Fix recovery code.
9818 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9820 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
9822 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
9824 * elf/dl-libc.c (free_mem): Likewise.
9825 * iconv/gconv_conf.c (free_mem): Likewise.
9826 * iconv/gconv_db.c (free_mem): Likewise.
9827 * iconv/gconv_dl.c (free_mem): Likewise.
9828 * iconv/gconv_cache.c (free_mem): Likewise.
9829 * intl/finddomain.c (free_mem): Likewise.
9830 * intl/dcigettext.c (free_mem): Likewise.
9831 * locale/setlocale.c (free_mem): Likewise.
9832 * misc/fstab.c (fstab_free): Likewise.
9833 * nss/nsswitch.c (free_mem): Likewise.
9834 * posix/regcomp.c (free_mem): Likewise.
9835 * resolv/gai_misc.c (free_res): Likewise.
9836 * stdlib/fmtmsg.c (free_mem): Likewise.
9837 * sunrpc/clnt_perr.c (free_mem): Likewise.
9838 * sysdeps/generic/setenv.c (free_mem): Likewise.
9839 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
9840 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
9841 * time/tzset.c (free_mem): Likewise.
9842 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
9843 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
9844 * malloc/set-freeres.c (__libc_freeres): Likewise.
9846 * login/getutent.c: Include stdlib.h instead of stddef.h.
9847 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9848 (__getutent): Allocate buffer the first time it is run.
9849 * login/getutid.c: Include stdlib.h instead of stddef.h.
9850 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9851 (__getutid): Allocate buffer the first time it is run.
9852 * login/getutline.c: Include stdlib.h instead of stddef.h.
9853 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9854 (__getutline): Allocate buffer the first time it is run.
9855 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
9856 (mtrace): Allocate malloc_trace_buffer.
9857 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
9858 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
9859 * string/strerror.c: Include libintl.h and errno.h.
9860 (buf): New variable.
9861 (strerror): Only allocate buffer if actually needed (unknown error).
9862 * time/tzfile.c (transitions): Add libc_freeres_ptr.
9865 2002-10-25 Jakub Jelinek <jakub@redhat.com>
9867 * include/libc-symbols.h (libc_freeres_ptr): New macro.
9868 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
9870 (__libc_freeres): Free all pointers in that section.
9871 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
9872 commands when creating .lds script.
9873 (LDSEDCMD-c.so): New variable.
9874 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9875 (rcmd_af): Use strdup to allocate ahostbuf.
9876 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
9877 (rexec_af): Use strdup to allocate ahostbuf.
9878 * stdio-common/reg-printf.c (printf_funcs): Remove.
9879 (__printf_arginfo_table): Change into printf_arginfo_function **.
9880 Add libc_freeres_ptr.
9881 (__register_printf_function): Allocate __printf_arginfo_table
9882 and __printf_function_table the first time it is called.
9883 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
9884 printf_arginfo_function **.
9885 (parse_one_spec): Add __builtin_expect.
9886 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
9888 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
9890 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
9891 (string_space, map): Add libc_freeres_ptr.
9893 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
9895 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
9897 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
9898 (buffer): Add libc_freeres_ptr.
9899 (free_mem): Remove for _LIBC.
9900 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
9902 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
9904 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
9906 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
9908 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
9910 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
9912 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
9915 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
9919 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9921 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
9922 instead of duplicating the whole function in libc.
9924 2002-10-31 Roland McGrath <roland@redhat.com>
9926 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
9927 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
9929 2002-10-30 Jakub Jelinek <jakub@redhat.com>
9931 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
9932 32bit-predefine when creating .new32 list and -U for each
9933 32bit-predefine when creating .new64 list.
9934 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
9936 2002-10-29 Andreas Schwab <schwab@suse.de>
9938 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
9939 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
9941 2002-10-25 Roland McGrath <roland@redhat.com>
9943 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
9944 * sysdeps/unix/sysv/linux/configure: Regenerated.
9946 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
9947 _dl_starting_up decl.
9949 2002-10-20 H.J. Lu <hjl@gnu.org>
9951 * sysdeps/unix/sysv/linux/configure.in: Don't check
9952 /lib/modules/`uname -r`/build/include for kernel headers if
9954 * sysdeps/unix/sysv/linux/configure: Regenerated.
9956 2002-10-25 Roland McGrath <roland@redhat.com>
9958 * math/math.h (M_LOG2El): Correct the value.
9959 From Stephen L Moshier <steve@moshier.net>.
9961 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
9962 conditional from __libc_multiple_libcs access. Remove kludge for weak
9963 symbol access with old compilers we no longer support.
9964 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9965 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
9967 2002-10-25 Roland McGrath <roland@redhat.com>
9969 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
9970 implement SV_RESETHAND by translating it to SA_RESETHAND.
9972 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
9974 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
9975 type on ELF64 platforms.
9977 2002-10-24 Ulrich Drepper <drepper@redhat.com>
9979 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
9981 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
9983 2002-10-24 Jakub Jelinek <jakub@redhat.com>
9985 * elf/dl-misc.c: Include <sysdep.h>.
9986 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
9988 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
9989 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9990 (INLINE_SYSCALL): Use that.
9991 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
9992 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9993 (INLINE_SYSCALL): Use that.
9994 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
9995 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9996 (INLINE_SYSCALL): Use that.
9997 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
9999 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10000 (__INTERNAL_SYSCALL_STRING): Define.
10001 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10003 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10004 (__INTERNAL_SYSCALL_STRING): Define.
10005 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
10006 __SYSCALL_STRING to inline_syscall*.
10007 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
10009 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
10010 inline_syscall4, inline_syscall5, inline_syscall6): Add string
10013 2002-10-24 Roland McGrath <roland@redhat.com>
10015 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
10016 * sysdeps/unix/sysv/linux/init-first.c: Not here.
10017 * sysdeps/powerpc/elf/libc-start.c: Or here.
10018 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
10019 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
10020 * sysdeps/unix/sysv/aix/init-first.c: Or here.
10021 * sysdeps/generic/libc-start.c: Or here.
10022 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
10023 access with [! SHARED].
10024 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
10026 * libio/bug-wfflush.c: New file.
10027 * libio/Makefile (tests): Add bug-wfflush.
10029 2002-10-23 Roland McGrath <roland@redhat.com>
10031 * stdio-common/tst-fphex.c: New file.
10032 * stdio-common/Makefile (tests): Add tst-fphex.
10033 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
10034 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
10035 chars always before the value digits.
10036 Reported by James Antill <james.antill@redhat.com>.
10038 2002-10-24 Jakub Jelinek <jakub@redhat.com>
10040 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
10041 (free_mem): New function.
10042 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
10043 if not cross compiling.
10044 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
10045 (bug-regex14-ENV): Set.
10046 (bug-regex14-mem): New target.
10047 * posix/bug-regex14.c: New file.
10049 2002-10-23 Roland McGrath <roland@redhat.com>
10051 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
10052 target, so we don't touch it when the link fails.
10054 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
10055 Check for the result overflowing off_t and fail with EOVERFLOW.
10056 * libio/ioftell.c (_IO_ftell): Likewise.
10057 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
10059 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
10060 use a temporary timeval on the stack for gettimeofday and copy it.
10061 * login/logout.c (logout): Likewise.
10062 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10064 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
10065 Use __SWORD_TYPE instead of int for member types.
10066 (struct statfs64): Likewise.
10067 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
10068 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
10069 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
10070 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
10071 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
10073 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
10074 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
10075 (ST_NODIRATIME): Restore fixed value of 2048.
10076 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
10077 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
10079 Rearranged <bits/types.h> definitions to reduce duplication.
10080 * sysdeps/generic/bits/types.h: Rewritten, using macros from
10081 <bits/wordsize.h> and new header <bits/typesizes.h>.
10082 * posix/Makefile (headers): Add bits/typesizes.h here.
10083 * sysdeps/generic/bits/typesizes.h: New file.
10084 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
10085 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
10086 * sysdeps/mach/hurd/bits/typesizes.h: New file.
10087 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
10088 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
10089 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
10090 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
10091 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
10092 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
10093 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
10094 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
10095 <bits/pthreadtypes.h> here, not in <bits/types.h>.
10096 * signal/signal.h: Likewise.
10098 * streams/stropts.h: Include <bits/xtitypes.h>.
10099 * streams/Makefile (headers): Add bits/xtitypes.h here.
10100 * sysdeps/generic/bits/xtitypes.h: New file.
10101 * sysdeps/s390/bits/xtitypes.h: New file.
10102 * sysdeps/ia64/bits/xtitypes.h: New file.
10103 * sysdeps/x86_64/bits/xtitypes.h: New file.
10105 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
10106 * sysdeps/generic/bits/ipctypes.h: New file.
10107 * sysdeps/mips/bits/ipctypes.h: New file.
10108 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
10109 * sysdeps/gnu/bits/msq.h: Likewise.
10110 * sysvipc/sys/ipc.h: Likewise.
10112 2002-10-22 Ulrich Drepper <drepper@redhat.com>
10114 * elf/dl-load.c (struct filebuf): For buf element to have the
10115 alignment of ElfXX_Ehdr since this is what will be stored in it.
10117 2002-10-22 Jakub Jelinek <jakub@redhat.com>
10119 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
10120 into pointer to locrec_offset.
10121 (add_locale_to_archive): Adjust callers. Free normalized_name right
10122 before returning, not immediately after add_locale, pass it to
10123 add_alias if not NULL instead of name. Rename second normalized_name
10124 occurence to nnormalized_codeset_name.
10126 * locale/programs/locarchive.c (enlarge_archive): Make sure
10127 string_size is always a multiple of 4.
10128 Reported by Andreas Schwab <schwab@suse.de>.
10130 2002-10-21 Andreas Schwab <schwab@suse.de>
10132 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
10133 caller to EXTRA instead of execve, since the latter has a
10134 higher-priority implementation in linuxthreads.
10136 2002-10-21 Roland McGrath <roland@redhat.com>
10138 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
10139 slotinfo list's len member to the proper size, not just 1.
10140 Initialize static_map.l_tls_initimage.
10142 * elf/dl-open.c (dl_open_worker): Fix loop searching for
10143 dtv_slotinfo_list element containing new modules' l_tls_modid.
10145 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
10146 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
10147 * elf/Makefile (tests): Add tst-tls9.
10148 (tests-static): Add tst-tls9-static.
10149 (tst-tls9-static-ENV): New variable.
10150 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
10152 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
10153 modids used by partially loaded modules being closed can't be known.
10155 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
10157 * posix/Makefile: Add a test case for the bug reported by Aharon
10158 Robbins <arnold@skeeve.com>.
10159 * posix/bug-regex13.c: New file.
10160 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
10162 2002-10-21 Ulrich Drepper <drepper@redhat.com>
10164 * csu/gmon-start.c: Pretty printing.
10166 2002-10-19 Art Haas <ahaas@neosoft.com>
10168 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
10169 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
10170 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
10171 * configure: Regenerated.
10173 2002-10-19 Roland McGrath <roland@redhat.com>
10175 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
10176 and then set $subdirs directly, because the new Autoconf breaks
10177 compatibility in every way imaginable and insists on whining
10178 about usage that worked since the dawn of time.
10179 * configure: Regenerated.
10181 * configure: Regenerated (using Autoconf 2.54).
10182 * sysdeps/alpha/elf/configure: Likewise.
10183 * sysdeps/generic/configure: Likewise.
10184 * sysdeps/i386/elf/configure: Likewise.
10185 * sysdeps/ia64/elf/configure: Likewise.
10186 * sysdeps/mach/hurd/configure: Likewise.
10187 * sysdeps/mach/configure: Likewise.
10188 * sysdeps/unix/configure: Likewise.
10189 * sysdeps/unix/common/configure: Likewise.
10190 * sysdeps/unix/sysv/aix/configure: Likewise.
10191 * sysdeps/unix/sysv/linux/configure: Likewise.
10192 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
10193 * sysdeps/x86_64/elf/configure: Likewise.
10195 * config.make.in: Nix completely-soft nonsense.
10196 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
10197 of machine directories instead of fpu subdirectory.
10198 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
10199 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
10200 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
10201 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
10202 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
10203 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
10204 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
10205 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
10206 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
10207 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
10208 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
10209 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
10210 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
10211 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
10212 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
10213 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
10214 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
10215 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
10216 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
10217 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
10218 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
10219 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
10220 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
10221 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
10222 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
10223 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
10224 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
10225 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
10226 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
10227 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
10228 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
10229 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
10230 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
10231 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
10232 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
10233 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
10234 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
10235 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
10236 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
10237 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
10239 2002-10-19 Bruno Haible <bruno@clisp.org>
10241 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
10243 2002-10-18 Roland McGrath <roland@redhat.com>
10245 * io/Makefile (routines): Add lchmod.
10246 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
10247 * sysdeps/generic/lchmod.c: New file.
10248 * sysdeps/mach/hurd/lchmod.c: New file.
10249 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
10251 2002-10-18 Art Haas <ahaas@neosoft.com>
10253 * configure.in: Remove remaining AC_FD_CC macros, and replace
10254 AC_FD_MSG with AS_MESSAGE_FD.
10256 2002-10-18 Roland McGrath <roland@redhat.com>
10258 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
10259 typos: VALUE -> FINALADDR.
10261 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
10262 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
10263 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
10264 (inline_syscall6): Move these macros ...
10265 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
10267 * configure.in (libc_link_dests, libc_link_sources): Remove these
10268 variables and the AC_LINK_FILES call.
10270 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
10271 change to put new symbols here instead of in GLIBC_2.2.
10272 * sysdeps/powerpc/Subdirs: Move this file ...
10273 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
10275 2002-10-07 Roland McGrath <roland@redhat.com>
10277 * sysdeps/generic/bits/time.h: Replaced with contents of the
10278 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
10279 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
10280 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
10281 macros is ok even for architectures that don't now implement them.
10282 * sysdeps/mach/hurd/bits/time.h: File removed.
10283 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
10284 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
10285 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
10286 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
10287 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
10289 2002-10-18 Jeff Bailey <jbailey@gnu.org>
10291 * configure.in: Replace obsolete AC_OUTPUT syntax with
10292 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
10294 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
10295 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
10297 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
10298 * sysdeps/alpha/elf/configure.in: Likewise.
10299 * sysdeps/i386/elf/configure.in: Likewise.
10300 * sysdeps/mach/hurd/configure.in: Likewise.
10301 * sysdeps/x86_64/elf/configure.in: Likewise.
10303 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
10305 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
10306 * sysdeps/generic/configure.in: Likewise.
10307 * sysdeps/i386/elf/configure.in: Likewise.
10308 * sysdeps/ia64/elf/configure.in: Likewise.
10309 * sysdeps/mach/configure.in: Likewise.
10310 * sysdeps/mach/hurd/configure.in: Likewise.
10311 * sysdeps/unix/configure.in: Likewise.
10312 * sysdeps/unix/common/configure.in: Likewise.
10313 * sysdeps/unix/sysv/aix/configure.in: Likewise.
10314 * sysdeps/unix/sysv/linux/configure.in: Likewise.
10315 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
10316 * sysdeps/x86_64/elf/configure.in: Likewise.
10318 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
10319 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
10320 that it's obvious when extra autoconf machinery is being dragged in.
10322 2002-10-18 Roland McGrath <roland@redhat.com>
10324 * configure.in: Remove bogus echo included in
10325 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
10326 * configure: Regenerated.
10328 2002-10-18 Jakub Jelinek <jakub@redhat.com>
10330 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
10331 (statfs_filesize_max): New function.
10332 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
10333 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
10334 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
10335 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
10336 statfs_filesize_max.
10337 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10338 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
10339 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
10341 2002-10-17 Roland McGrath <roland@redhat.com>
10343 * configure.in (MIG): Just AC_SUBST it here.
10344 * configure: Regenerated.
10345 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
10346 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
10347 * sysdeps/mach/configure: Regenerated.
10349 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
10350 and AC_PROVIDE([_AS_CR_PREPARE]).
10352 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10353 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10355 * elf/dl-support.c: Move _dl_tls_* variables to ...
10356 * sysdeps/generic/libc-tls.c: ... here.
10358 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
10359 allow IDX to be one past the current last slotinfo entry.
10360 (_dl_close): Pass IMAP->l_init_called for that parameter.
10362 2002-10-07 Andreas Schwab <schwab@suse.de>
10364 * aclocal.m4: Fix for autoconf 2.53.
10365 * configure.in: Likewise. Require autoconf 2.53.
10367 2002-10-08 Richard Henderson <rth@redhat.com>
10369 * soft-fp/op-4.h: Handle carry correctly in
10370 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10371 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10372 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10374 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
10376 * configure.in: Compute completely-soft.
10377 * config.make.in: Make completely-soft available to sub-makes.
10378 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10379 gcc-double-routines. Add sim-full.c. Add fenv_const and
10380 fe_nomask to libm-support.
10381 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10382 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10383 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10384 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10385 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10386 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10387 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10388 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10389 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10390 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10391 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10392 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10393 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10394 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10395 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10396 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10397 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10398 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10399 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10400 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
10402 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10403 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10404 FP_HANDLE_EXCEPTIONS.
10405 Define FP_ROUNDMODE.
10406 Redefine FP_* macros to correspond to the FE_* bit positions.
10407 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10408 Define externs for __sim_exceptions, __sim_disabled_exceptions,
10409 __sim_round_mode, __simulate_exceptions.
10410 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10411 * sysdeps/powerpc/bits/fenv.h: ...to here.
10413 2002-10-06 Jakub Jelinek <jakub@redhat.com>
10415 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10416 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10417 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
10418 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10421 2002-10-15 Jakub Jelinek <jakub@redhat.com>
10423 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10424 __libc_res_nsend): New prototypes.
10425 * resolv/res_query.c (QUERYSIZE): Define.
10426 (__libc_res_nquery): Renamed from res_nquery. Added answerp
10427 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
10428 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
10429 res_nsend, pass answerp.
10430 (res_nquery): Changed into wrapper around __libc_res_nquery.
10431 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
10432 argument. Call __libc_res_nquerydomain and __libc_res_nquery
10433 instead of the non-__libc_ variants, pass them answerp.
10434 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10435 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10436 Added answerp argument. Call __libc_res_nquery instead of
10437 res_nquery, pass answerp.
10438 (res_nquerydomain): Changed into wrapper around
10439 __libc_res_nquerydomain.
10440 * resolv/res_send.c: Include sys/ioctl.h.
10441 (MAXPACKET): Define.
10442 (send_vc): Change arguments. Reallocate answer buffer if it is
10444 (send_dg): Likewise.
10445 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
10446 Reallocate answer buffer if it is too small and hooks are in use.
10447 Adjust calls to send_vc and send_dg.
10448 (res_nsend): Changed into wrapper around __libc_res_nsend.
10449 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10450 just 1K answer buffer on the stack, use __libc_res_nsearch instead
10452 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10453 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10454 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10455 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10456 (gethostbyaddr): Similarly with __libc_res_nquery.
10457 * resolv/Versions (libresolv): Export __libc_res_nquery and
10458 __libc_res_nsearch at GLIBC_PRIVATE.
10460 2002-10-17 Roland McGrath <roland@redhat.com>
10462 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10463 * configure: Regenerated.
10465 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10466 before performing the reloc, not after.
10467 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10469 2002-10-17 Ulrich Drepper <drepper@redhat.com>
10471 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10472 * locale/programs/linereader.c (lr_open): Likewise.
10473 * locale/programs/charmap-dir.c (charmap_open): Likewise.
10474 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10476 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
10478 * posix/bug-regex11.c: Add a test case for the bug reported by
10479 Paolo Bonzini <bonzini@gnu.org>.
10480 * posix/regexec.c (sift_states_bkref): Use correct destination of
10481 the back reference.
10483 2002-10-17 Roland McGrath <roland@redhat.com>
10485 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10486 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10487 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10488 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10489 Call it after performing TPOFF relocs.
10490 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10491 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10492 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10494 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10495 when closing a partially-initialized object.
10497 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10498 instead of _dl_fatal_printf when we see PT_TLS.
10500 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10501 instead of $(libof-$<).
10503 2002-10-16 Roland McGrath <roland@redhat.com>
10505 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10506 instead of += to append, to be sure $(lib) gets expanded at defn time.
10507 (libof-$(cpp-src)): New variable, define this instead.
10508 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10509 (lib): Don't use override.
10510 (CPPFLAGS-$(lib)): New variable, put -D's here.
10511 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10512 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10513 LIB found by $(libof-*) for basename, target, or source.
10514 * Makerules (CPPFLAGS-nonlib): New variable.
10515 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10516 * locale/Makefile (lib): Likewise.
10517 * sunrpc/Makefile (lib): Likewise.
10519 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10520 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10521 * sysdeps/unix/sysv/linux/pathconf.h: New file.
10522 (statfs_link_max): New function, guts from fpathconf.c.
10523 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10524 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10525 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10526 to use the linux/pathconf.c code by #include rather than duplication.
10527 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10529 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10531 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10532 Use __libc_errno only for libc itself.
10534 2002-10-16 Andreas Jaeger <aj@suse.de>
10536 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10538 2002-10-16 Ulrich Drepper <drepper@redhat.com>
10540 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10541 Use __libc_errno only for libc itself.
10543 2002-10-15 Roland McGrath <roland@redhat.com>
10544 Jakub Jelinek <jakub@redhat.com>
10546 * sysdeps/unix/sysv/linux/Makefile
10547 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10548 sparc/Makefile to produce a bi-arch file as needed.
10549 That's now parameterized by the variable $(64bit-predefine).
10550 Use LC_ALL=C for `comm' commands in that rule.
10551 No longer conditional on [$(no_syscall_list_h)].
10552 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10553 (64bit-predefine): New variable.
10554 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10555 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10556 * sysdeps/unix/sysv/linux/powerpc/Makefile
10557 (64bit-predefine): New variable.
10559 2002-10-15 Roland McGrath <roland@redhat.com>
10561 * sysdeps/unix/sysv/linux/Makefile
10562 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10564 * login/utmp-private.h: Declare __libc_utmp_lock.
10565 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10566 and call __libc_utmp_jump_table functions directly, instead of using
10569 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10570 * sysdeps/unix/sysv/linux/configure: Regenerated.
10572 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10573 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10574 Use int32_t for ll_time.
10575 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10576 Use int32_t instead of long int for ut_session.
10577 Use an anonymous struct with 32-bit fields for ut_tv.
10578 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10579 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10580 here as in utmp.h for `struct utmp'.
10581 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10582 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10583 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10584 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10585 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10586 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10588 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10589 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10590 All the following files were identical or equivalent to it.
10591 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
10592 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
10593 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
10594 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10595 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10596 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10597 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10598 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10599 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10600 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10602 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10603 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10604 Other than the previously incorrect sign of msg_iovlen, this is a
10605 no-op on 32-bit platforms. On 64-bit platforms it makes this header
10606 match their layouts as well, so the following are now identical to it.
10607 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10608 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10609 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10610 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10611 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10613 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10615 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10616 Define for 2.4+ kernels.
10618 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10619 are known to have the vfork syscall. Don't confuse the CPUs
10620 branch prediction unit by jumping to the return address.
10622 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10623 support for reiserfs and xfs.
10625 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10627 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10629 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10631 2002-10-16 Jakub Jelinek <jakub@redhat.com>
10633 * include/libc-symbols.h (attribute_tls_model_ie): Define.
10634 * include/errno.h (errno): Define to __libc_errno in libc.so.
10635 Add attribute_tls_model_ie.
10636 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10637 Add attribute_tls_model_ie.
10638 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
10639 attribute_tls_model_ie.
10640 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10642 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10644 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10645 attribute_tls_model_ie.
10646 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10648 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10649 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10650 __libc_errno in USE___THREAD case.
10651 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10653 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10654 __attribute__((tls_model (""))).
10655 * configure: Rebuilt.
10656 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10658 2002-10-15 Ulrich Drepper <drepper@redhat.com>
10660 * timezone/asia: Update from tzdata2002d.
10661 * timezone/australasia: Likewise.
10662 * timezone/iso3166.tab: Likewise.
10663 * timezone/southamerica: Likewise.
10664 * timezone/zone-tab: Likewise.
10666 2002-10-15 Roland McGrath <roland@redhat.com>
10668 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10669 Adjust TCB pointer before calling free, so we get the whole block.
10671 2002-10-14 Roland McGrath <roland@redhat.com>
10673 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
10674 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
10675 extern using attribute_hidden instead of static, avoids warning.
10677 2002-10-09 Jakub Jelinek <jakub@redhat.com>
10679 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
10680 * sysdeps/unix/sysv/linux/configure: Rebuilt.
10682 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10684 * po/sv.po: Update from translation team.
10686 2002-10-12 H.J. Lu <hjl@gnu.org>
10688 * sunrpc/thrsvc.c (PROCQUIT): New.
10689 (struct rpc_arg): New.
10690 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
10691 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
10692 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
10693 (main): Modified for struct rpc_arg *.
10695 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10697 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
10699 2002-10-14 Jakub Jelinek <jakub@redhat.com>
10701 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
10702 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
10703 in ld.so even if __thread is supported.
10705 2002-10-13 Jakub Jelinek <jakub@redhat.com>
10707 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
10708 Add hack to prevent the compiler from clobbering the signal context.
10709 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
10711 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
10714 2002-10-14 Andreas Jaeger <aj@suse.de>
10716 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
10717 Guido Guenther <agx@sigxcpu.org>.
10719 2002-10-14 Ulrich Drepper <drepper@redhat.com>
10721 * po/sk.po: Update from translation team.
10723 2002-09-26 Roland McGrath <roland@redhat.com>
10725 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
10726 dynamic string tag.
10727 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
10728 DL_DST_LIB based on $(slibdir).
10730 2002-10-13 Roland McGrath <roland@frob.com>
10732 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
10734 * sysdeps/mach/hurd/getresuid.c: New file.
10735 * sysdeps/mach/hurd/getresgid.c: New file.
10736 * sysdeps/mach/hurd/setresuid.c: New file.
10737 * sysdeps/mach/hurd/setresgid.c: New file.
10739 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
10740 setresgid): Declare them.
10741 * NEWS: Mention it.
10743 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
10744 add libc_hidden_proto.
10745 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
10746 getresuid, getresgid, setresuid, setresgid here.
10747 * Versions.def (libc): Define GLIBC_2.3.2 set.
10748 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
10749 Add libc_hidden_def.
10750 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
10751 * sysdeps/generic/setresgid.c: New file.
10752 * sysdeps/generic/setresuid.c: New file.
10753 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10754 (sysdep_routines): Don't add getresuid and getresgid here.
10755 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
10756 (sysdep_routines): Don't add setresuid and setresgid here.
10757 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10758 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10759 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10760 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10761 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10762 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10763 * posix/Makefile (routines): Add them all here instead.
10764 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
10765 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
10766 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
10767 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
10768 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
10769 [! __NR_setresuid]: Include generic file.
10770 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
10771 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
10772 [! __NR_setresuid]: Include generic file.
10773 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
10774 Caller is - now, not EXTRA.
10775 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
10776 (setresuid, setresgid, getresuid, getresgid): Likewise.
10777 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
10778 Add these calls here.
10779 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
10780 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
10781 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10782 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10783 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
10785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
10786 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
10787 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10789 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10790 (sysdep_routines): Add setfsuid and setfsgid here.
10791 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
10792 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
10793 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10794 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10795 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10796 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10797 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10798 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10800 * hurd/errno.c: Renamed to ...
10801 * hurd/errno-loc.c: ... this.
10802 * hurd/Makefile (routines): errno -> errno-loc
10804 2002-10-13 Ulrich Drepper <drepper@redhat.com>
10806 * po/de.po: Update from translation team.
10808 * MakeTAGS: Add -E flag to xgettext runs.
10810 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10812 * po/fr.po: Update from translation team.
10814 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
10815 Optimize a bit for use in glibc.
10817 2002-10-12 Roland McGrath <roland@redhat.com>
10819 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
10820 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
10822 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10824 * po/sv.po: Update from translation team.
10826 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
10828 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
10830 (regfree): Likewise.
10831 (create_initial_state): Likewise.
10832 (analyze): Remove the substitutions which became useless.
10833 (calc_first): Likewise.
10834 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
10835 epsilon destination.
10836 (duplicate_node_closure): New function.
10837 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
10838 (calc_inveclosure): Likewise.
10839 (calc_eclosure): Likewise.
10840 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
10841 direct invocation of duplicate_node.
10842 (parse): Don't use comma operator in the return to avoid compiler
10844 (parse_reg_exp): Likewise.
10845 (parse_branch): Likewise.
10846 (parse_expression): Likewise.
10847 (parse_sub_exp): Likewise.
10848 (parse_dup_op): Likewise.
10849 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
10850 which became useless.
10851 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
10852 (create_cd_newstate): Likewise.
10853 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
10854 (re_token_t): Likewise.
10855 (re_dfa_t): Likewise.
10856 (re_node_set_remove): New macro.
10857 * posix/regexec.c (check_matching): Remove the handling
10859 (check_halt_node_context): Likewise.
10860 (proceed_next_node): Likewise.
10861 (pop_fail_stack): Fix the memory leak.
10862 (set_regs): Likewise.
10863 (free_fail_stack_return): New function.
10864 (sift_states_backward): Fix the memory leak. Remove the handling
10866 (update_cur_sifted_state): Append some if clause to avoid redundant
10868 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
10870 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
10871 (check_subexp_limits): Likewise.
10872 (search_subexp): Likewise.
10873 (sift_states_bkref): Likewise.
10874 (transit_state_mb): Likewise.
10875 (transit_state_bkref_loop): Likewise.
10876 (transit_state_bkref_loop): Likewise.
10877 (group_nodes_into_DFAstates): Likewise.
10878 (check_node_accept): Likewise.
10879 (sift_ctx_init): Add initializing.
10881 2002-10-12 Ulrich Drepper <drepper@redhat.com>
10883 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
10886 2002-10-11 Ulrich Drepper <drepper@redhat.com>
10888 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
10889 duplicated variable c.
10891 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
10894 * sysdeps/unix/sysv/linux/i386/sysdep.h
10895 (INTERNAL_SYSCALL_ERROR_P): New define.
10896 (INTERNAL_SYSCALL_ERRNO): Likewise.
10898 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
10899 Add hack to prevent the compiler from clobbering the signal context.
10901 2002-10-11 Roland McGrath <roland@redhat.com>
10903 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10906 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
10907 * sysdeps/sh/dl-lookupcfg.h: File removed.
10908 * sysdeps/i386/dl-lookupcfg.h: File removed.
10910 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
10911 missing labels and ; from last change.
10913 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
10914 number literals, so they are doubles instead of ints.
10916 2002-10-09 Roland McGrath <roland@redhat.com>
10918 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
10919 changed from [USE_TLS && HAVE___THREAD].
10921 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
10922 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
10923 * sysdeps/x86_64/dl-machine.h
10924 (elf_machine_type_class, elf_machine_rela): Likewise.
10925 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
10928 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
10929 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
10930 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
10932 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
10933 instead of ___tls_get_addr.
10934 (___tls_get_addr_internal): Add attribute_hidden to decl.
10936 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
10937 _dl_error_catch_tsd.
10938 * elf/rtld.c (startup_error_tsd): New function.
10939 (dl_main): Point _dl_error_catch_tsd at that.
10940 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
10941 use new function pointer instead.
10942 * elf/dl-tsd.c: New file.
10943 * elf/Makefile (routines): Add it.
10945 2002-10-07 Roland McGrath <roland@redhat.com>
10947 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
10948 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
10949 take _dl_load_lock around calling __writev.
10951 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
10952 (INLINE_SYSCALL): Use that.
10954 * sysdeps/generic/dl-sysdep.h: New file.
10955 * sysdeps/mach/hurd/dl-sysdep.h: New file.
10956 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
10957 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
10958 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
10959 access it directly.
10960 * elf/dl-minimal.c (__errno_location): Removed.
10961 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10962 Use GOTOFF access for errno.
10963 * sysdeps/unix/sysv/linux/i386/sysdep.h
10964 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10966 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10967 Use PC-relative access for errno.
10968 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10969 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10971 * include/tls.h: New file.
10972 (USE___THREAD): New macro.
10973 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
10974 libc or libpthread.
10975 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
10976 changed from [USE_TLS && HAVE___THREAD].
10977 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10978 * sysdeps/unix/i386/sysdep.S: Likewise.
10979 * sysdeps/unix/x86_64/sysdep.S: Likewise.
10980 * include/errno.h: Likewise.
10981 * include/netdb.h: Likewise.
10982 * include/resolv.h: Likewise.
10984 * sysdeps/generic/errno.c: New file.
10985 * csu/Makefile (aux): New variable, list errno.
10986 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
10987 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
10988 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
10989 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10990 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10991 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
10992 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
10993 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
10994 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10995 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
10996 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
10997 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
10998 * sysdeps/unix/alpha/sysdep.S: Likewise.
10999 * sysdeps/generic/start.c: Likewise.
11000 * sysdeps/unix/start.c: Likewise.
11001 * sysdeps/unix/arm/start.c: Likewise.
11002 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11003 * sysdeps/unix/sparc/start.c: Likewise.
11004 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11005 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
11007 * manual/search.texi (Tree Search Function, Hash Search Function):
11008 Mention search.h clearly.
11010 2002-10-05 Roland McGrath <roland@redhat.com>
11012 * elf/dl-fxstat64.c: File removed.
11013 * elf/dl-xstat64.c: File removed.
11014 * elf/Makefile (rtld-routines): Remove them.
11015 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
11016 Instead, use strong_alias instead of versioned_symbol in the
11017 !SHLIB_COMPAT case.
11018 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
11019 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
11021 * include/shlib-compat.h
11022 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
11023 [! NOT_IN_libc] (IS_IN_libc): Define it.
11024 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
11025 * elf/Makefile (CPPFLAGS-.os): Likewise.
11027 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
11028 Return the status instead of calling exit.
11030 * Makeconfig (CFLAGS): Prepend -std=gnu99.
11031 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
11032 Remove superfluous rm command, whose @ plus make bugs hid
11033 all these commands from the make output.
11035 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
11036 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
11037 Use that file's contents instead of literal echo's for the prologue.
11038 * include/features.h: Include <gnu/stubs.h> unconditionally.
11039 * include/gnu/stubs.h: New file.
11041 2002-09-30 Roland McGrath <roland@redhat.com>
11043 * elf/rtld-Rules: New file.
11044 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
11045 $(objpfx)rtld-libc.a): New targets.
11046 (generated): Add them.
11047 (reloc-link): Remove -o $@ from the variable.
11048 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
11049 (distribute): Add rtld-Rules.
11050 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
11051 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
11052 (common-mostlyclean, common-clean): Clean up rtld-* files.
11053 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
11055 2003-05-20 Jakub Jelinek <jakub@redhat.com>
11057 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
11058 If temp != NULL, copy dynamic entries which need relocation to temp
11059 array before relocating.
11060 (DL_RO_DYN_TEMP_CNT): Define.
11061 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
11062 * elf/rtld.c (_dl_start): Likewise.
11063 (dl_main): Likewise. Add dyn_temp static variable.
11065 2002-10-11 Roland McGrath <roland@redhat.com>
11067 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
11068 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
11070 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
11071 proper set of no-op insn prefixes.
11073 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
11075 2002-10-11 Ulrich Drepper <drepper@redhat.com>
11077 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
11078 __pthread_kill_other_threads_np.
11080 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
11082 2002-10-08 Roland McGrath <roland@redhat.com>
11084 * locale/newlocale.c (__newlocale): If setting all categories to "C",
11085 just return &_nl_C_locobj instead of copying it.
11086 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
11087 * locale/duplocale.c (__duplocale): Likewise.
11089 2002-10-07 Roland McGrath <roland@frob.com>
11091 * config.h.in (HAVE_I386_SET_GDT): New #undef.
11092 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
11093 * sysdeps/mach/configure: Regenerated.
11095 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
11098 Add all necessary register outputs for syscall-clobbered registers.
11100 2002-10-02 David Mosberger <davidm@hpl.hp.com>
11102 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
11103 Itanium 2 (and Itanium).
11104 Fix unwind directives and make it fit in 80 columns.
11105 * sysdeps/ia64/memset.S: Likewise.
11106 * sysdeps/ia64/memcpy.S: Likewise.
11107 Move jump table to .rodata section.
11109 2002-10-03 Roland McGrath <roland@frob.com>
11111 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
11114 2002-10-10 Andreas Jaeger <aj@suse.de>
11116 * sysdeps/x86_64/_mcount.S: Restore correct registers.
11118 2002-10-10 Ulrich Drepper <drepper@redhat.com>
11120 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
11122 2002-10-09 Ulrich Drepper <drepper@redhat.com>
11124 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
11125 _dl_allocate_tls_init. Add rtld_hidden_proto.
11126 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
11128 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
11130 * version.h (VERSION): Bump to 2.3.1.
11132 * Make-dist: Add back one of the tar invocations removed before.
11134 * stdlib/Makefile (distribute): Add allocalim.h.
11136 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
11137 (__libc_tsd_address): Use correct variable name.
11138 Patch by Stefan Jones <stefan.jones@multigig.com>.
11140 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
11141 Reported by edwardsg@sgi.com [PR libc/4678].
11143 * Versions.def (libc): Add GLIBC_2.3.1.
11144 (libpthread): Add GLIBC_2.3.1.
11146 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
11147 and __sigtimedwait.
11148 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
11149 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
11151 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
11152 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
11154 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
11155 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
11156 and make old name an alias.
11157 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
11158 and make old name an alias.
11159 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
11162 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
11163 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
11165 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
11167 * sysdeps/posix/readv.c: Likewise
11168 * sysdeps/unix/sysv/aix/readv.c: Likewise.
11169 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11170 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
11172 * sysdeps/posix/writev.c: Likewise
11173 * sysdeps/unix/sysv/aix/writev.c: Likewise.
11174 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11176 * include/sys/wait.h: Declare __waitid.
11177 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
11178 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
11180 * sysdeps/posix/waitid.c: Likewise.
11181 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
11183 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
11185 2002-10-07 Jakub Jelinek <jakub@redhat.com>
11187 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
11189 (__MAX_ALLOCA_CUTOFF): Define.
11190 Include allocalim.h.
11191 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
11192 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
11193 host_buffer depending on __libc_use_alloca.
11194 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
11195 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
11196 net_buffer depending on __libc_use_alloca.
11197 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
11198 buf depending on __libc_use_alloca.
11199 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
11200 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
11201 instead of hardcoded constants.
11202 Pass proper size argument to alloca and compute end for wide char
11204 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
11205 instead of hardcoded constants.
11206 * string/strcoll.c (strcoll): Likewise.
11207 * string/strxfrm.c (strxfrm): Likewise.
11208 * sysdeps/posix/readv.c (__readv): Likewise.
11209 * sysdeps/posix/writev.c (__writev): Likewise.
11210 * sysdeps/generic/allocalim.h: New file.
11212 2002-10-08 Roland McGrath <roland@redhat.com>
11214 * configure.in (aux_missing warning): Change "too old" to
11215 "incompatible versions", since for autoconf it's "too new" right now.
11216 * configure: Regenerated.
11218 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
11219 one found doesn't work on our configure.in.
11220 * configure: Regenerated.
11221 * config.make.in (AUTOCONF): New substituted variable.
11222 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
11223 (autoconf-it): ... here, use that instead of defining conditionally.
11224 Use $(AUTOCONF) instead of literal autoconf.
11225 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
11226 with this condition.
11227 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
11229 2002-10-08 Ulrich Drepper <drepper@redhat.com>
11231 * Make-dist (dist): Cleanup a bit. We are not interested in the
11232 14 char filename limit anymore. Remove intermediate files and
11235 2002-10-05 Ulrich Drepper <drepper@redhat.com>
11237 * po/sk.po: Update from translation team.
11238 * po/tr.po: Likewise.
11239 * po/gl.po: Likewise.
11241 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11243 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
11245 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11247 * version.h (RELEASE): Change to stable.
11249 2002-10-03 Jakub Jelinek <jakub@redhat.com>
11251 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
11252 __syscall_exit_group): New prototypes.
11254 2002-10-03 Ulrich Drepper <drepper@redhat.com>
11256 * glibc 2.3 released.
11259 See ChangeLog.13 for earlier changes.