Update.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
4         interfaces.
5
6         * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
7         CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
8         CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
9         * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
10         CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
11         * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
12         Likewise.
13         * misc/Makefile (CFLAGS-err.c): Likewise.
14         * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
15         CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
16         CFLAGS-glob64.c): Likewise.
17         * pwd/Makefile (CFLAGS-getpw.c): Likewise.
18         * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
19         CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
20         * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
21         * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
22
23         * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
24
25         * libio/stdio.h: Remove __THROW from cuserid prototype.
26
27         * locale/loadarchive.c: Use only non-cancelable interfaces.
28         * resolv/herror.c (herror): Likewise.
29
30         * malloc/hooks.c: Before using IO stream mark stream so it uses
31         only non-cancelable interfaces.
32         * malloc/malloc.c: Likewise.
33         * posix/getopt.c: Likewise.
34
35
36 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
37
38         * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
39
40 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
41
42         * stdio-common/stdio_ext.h: Mark most functions with __THROW.
43
44         * misc/err.h: Remove __THROW from all prototypes.
45
46         * posix/getopt.h (__THROW): Define if not already defined.  Add
47         __THROW to the getopt functions.
48
49 2003-09-11  Ulrich Drepper  <drepper@redhat.com>
50
51         * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
52         (CFLAGS-fts.c): Likewise.
53         * io/fcntl.h: Remove __THROW from lockf prototypes.
54         * io/fts.h: Remove most __THROW.
55
56 2003-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57
58         * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
59         (TLS_LD): Likewise.
60         (TLS_GD): Likewise.
61
62 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
63
64         * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
65         _IO_free_backup_area call.
66
67 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
68
69         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
70         syscall invocation.
71         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
72         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
73         Also, only assert off_t size is 4 for N32 and O32, and clean up
74         white space.
75         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
76
77 2003-09-10  Roland McGrath  <roland@redhat.com>
78
79         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
80         Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
81         Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
82         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
83         Reported by Daniel Jacobowitz  <drow@mvista.com>.
84
85 2003-09-10  Jakub Jelinek  <jakub@redhat.com>
86
87         * string/Makefile (strop-tests): Add memccpy.
88         * string/test-memccpy.c: New test.
89
90 2003-09-09  Jakub Jelinek  <jakub@redhat.com>
91
92         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
93         siginfo_t * argument before, change into struct ucontext *.
94         (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
95         (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
96         instead of structure.
97         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
98         Likewise.
99
100 2003-09-09  Ulrich Drepper  <drepper@redhat.com>
101
102         * string/stratcliff.c (main): Check memccpy.
103
104 2003-04-11  Jes Sorensen  <jes@wildopensource.com>
105
106         * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
107         character is found during recovery, use correct register when
108         determining the position of the found character.
109
110 2003-04-01  Jes Sorensen  <jes@wildopensource.com>
111
112         * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
113         avoid segfaults when reading from unmapped pages. For aligned
114         reload and continue, for misaligned, roll back and use byte copy.
115         Save ar.ec on entry and restore on exit.
116
117 2003-09-09  Chris Demetriou  <cgd@broadcom.com>
118
119         * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
120
121 2003-09-08  Chris Demetriou  <cgd@broadcom.com>
122
123         * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
124         the top of the list.
125         * sysdeps/mips/mips64/n64/Implies: Likewise.
126
127 2003-09-08  Roland McGrath  <roland@frob.com>
128
129         * sysdeps/unix/sysv/linux/speed.c
130         (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
131         (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
132         * sysdeps/unix/sysv/linux/bits/termios.h
133         (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
134         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
135         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
136
137 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
138
139         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
140         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
141
142 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
143
144         * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
145         (__u_quad_t): Make unsigned long int if 64-bit.
146         (__SQUAD_TYPE): Make long int if 64-bit.
147         (__UQUAD_TYPE): Make unsigned long int if 64-bit.
148         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
149
150 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
151
152         * Makefile (tests): Run check-c++-types.sh if possible.
153         * scripts/check-c++-types.h: New file.
154         * scripts/data/c++-types-i386-linux-gnu.data: New file.
155
156 2003-09-08  Andreas Jaeger  <aj@suse.de>
157
158         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
159         Use struct sigcontext.
160
161         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
162         Use struct sigcontext.
163         (GET_PC): Adopt.
164         (GET_FRAME): Likewise.
165         (GET_STACK): Likewise.
166
167 2003-09-08  Wolfram Gloger  <wg@malloc.de>
168
169         * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
170         contiguous case.  Bug report from Prem Gopalan <prem@mazunetworks.com>.
171         (mALLOPt): Avoid requirement of C99.
172
173 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
174
175         * libio/bug-ftell.c: Include <sys/types.h>.
176         (main): Mark cp as const.
177
178 2003-09-07  Jakub Jelinek  <jakub@redhat.com>
179
180         * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
181         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
182
183 2003-09-05  Roland McGrath  <roland@redhat.com>
184
185         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
186         and c_ospeed fields.
187         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
188         (cfsetispeed): Set c_ispeed field.
189         * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
190         to match corresponding speed.c code.
191
192 2003-09-06  Ulrich Drepper  <drepper@redhat.com>
193
194         * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
195         narrow character buffer.
196         * libio/Makefile: Add rules to build and run bug-ftell.
197         * libio/bug-ftell.c: New file.
198
199         * stdio-common/vfprintf.c: Don't use the first grouping number twice.
200
201         * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
202         matching the decimal point and possibly leading the thousands
203         separator.  This caused the recognition of thousands separators to
204         always fail.
205
206 2003-09-05  Ulrich Drepper  <drepper@redhat.com>
207
208         * libio/fileops.c (_IO_new_file_overflow): Handle switching to
209         write mode from read in backup buffer.
210         * libio/Makefile (tests): Add bug-ungetc2.
211         * libio/bug-ungetc2.c: New file.
212
213 2003-09-05  Roland McGrath  <roland@redhat.com>
214
215         * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
216
217 2003-09-04  Roland McGrath  <roland@frob.com>
218
219         * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
220         EOPNOTSUPP, or ENOSYS, change it to ENODEV.
221
222 2003-09-04  H.J. Lu  <hongjiu.lu@intel.com>
223
224         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
225         Fix a typo.
226
227 2003-09-05  Andreas Jaeger  <aj@suse.de>
228
229         * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
230         to make it conforming C.
231         * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
232
233         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
234         prototype to use variable argument lists and get the possible one
235         argument via va_arg.
236         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
237         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
238
239 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
240
241         * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
242
243         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
244         Report correct value for vxfs.
245         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
246
247         * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
248         data.
249
250         * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
251         over the place.  It would be allowed to have these functions as
252         cancellation points but the cleanup would be ugly and a lot of
253         work.
254
255         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
256         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
257
258         * include/fcntl.h (__fcntl_nocancel): Declare.
259         * sysdeps/unix/sysv/linux/fcntl.c: New file.
260         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
261         cancellation if absolutely needed.
262         (__fcntl_nocancel): Define.
263
264         * posix/unistd.h (gethostid): Remove __THROW.  Clarify comment.
265         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
266         -fexceptions.
267         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
268         extend_alloca.
269
270         * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
271         instead of __close.
272
273         * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts.  Remove
274         unnecessary errno handling.
275
276         * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
277         Initialize it in all cases.  Change it to be a bit more like the
278         code we had before.
279
280 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
281
282         * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
283         __builtin_expect.
284         (_IO_file_open): Likewise.  Use close_not_cancel.
285
286 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
287
288         * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
289         * libio/fileops.c [_LIBC]: Remove close macro.
290         (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
291         (_IO_new_file_open): Recognize 'c' flag in mode string.
292         (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
293         (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
294         write_not_cancel.
295         * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
296         * inet/rcmd.c: Likewise.
297         * inet/ruserpass.c: Likewise.
298         * intl/localealias.c: Likewise.
299         * malloc/mtrace.c: Likewise.
300         * misc/getpass.c: Likewise.
301         * misc/getttyent.c: Likewise.
302         * misc/mntent_r.c: Likewise.
303         * misc/getusershell.c: Likewise.
304         * nss/nsswitch.c: Likewise.
305         * resolv/res_hconf.c: Likewise.
306         * resolv/res_init.c: Likewise.
307         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
308         * time/getdate.c: Likewise.
309         * time/tzfile.c: Likewise.
310         * misc/fstab.h: Undo last change.
311         * misc/mntent.h: Likewise.
312         * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
313         CFLAGS-fstab.c definition.
314
315 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
316
317         * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
318
319 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
320
321         * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
322         returning ERANGE if this wasn't intended.
323
324 2003-09-03  Jakub Jelinek  <jakub@redhat.com>
325
326         * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
327         function-like macros.
328
329 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
330
331         * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
332         (CFLAGS-getgrent.c): Likewise.
333         * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
334         (CFLAGS-getpwent.c): Likewise.
335         * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
336         (CFLAGS-getspent.c): Likewise.
337
338         * inet/Makefile: Add -fexceptions to CFLAGS for the various
339         getXXent and getXXbyYY functions.
340
341         * locale/loadlocale.c: Use not-cancelable variants of open, close,
342         and read.
343
344 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
345
346         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
347         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
348         rt_sigpending.
349         * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
350         New prototype.
351         * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
352         unused __syscall_ stubs.
353         * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
354         rt_*.
355         * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
356         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
357         (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
358         * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
359         unused __syscall_ stubs.
360         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
362         (__syscall_*): Remove unused __syscall_ stubs.
363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
364         (__syscall_*): Likewise.
365         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
366         rt_*.
367         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
368         Remove unused __syscall_ stubs.
369         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
370         * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
371         * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
372         * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
373         * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
374         * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
375         * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
376         * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
377         * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
378         * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
379         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
380         __syscall_* prototypes.
381         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
382         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
383         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
384         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
385         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
386         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
387         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
388         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
389         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
390         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
391         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
392         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
393         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
394         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
395         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
396         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
397         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
398         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
399         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
400         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
401         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
402         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
403         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
404         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
405         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
406         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
407         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
408         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
409         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
410         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
411         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
412         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
413         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
414         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
415         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
416         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
417         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
418         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
419         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
420         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
421         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
422         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
423         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
424         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
425         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
426         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
427         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
428         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
429         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
430         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
431         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
432         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
433         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
434         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
435         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
436         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
437         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
438         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
439         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
440         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
441         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
442         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
443         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
444         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
445         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
446         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
447         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
448         * sysdeps/unix/sysv/linux/execve.c: Likewise.
449         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
450         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
451         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
452         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
453         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
454         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
455         * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
456         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
457         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
458         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
459         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
460         * sysdeps/unix/sysv/linux/readv.c: Likewise.
461         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
462         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
463         * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
464         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
465         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
466         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
467         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
468         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
469         * sysdeps/unix/sysv/linux/poll.c: Likewise.
470         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
471         * sysdeps/unix/sysv/linux/writev.c: Likewise.
472         * sysdeps/unix/sysv/linux/pread.c: Likewise.
473         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
474         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
475         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
476         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
477         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
478         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
479         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
480         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
481         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
482         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
483
484 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
485
486         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
487         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
488         * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
489
490 2003-09-02  Ulrich Drepper  <drepper@redhat.com>
491
492         * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
493
494         * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
495         open, close, and read.
496
497         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
498         *_nocancel name.
499
500         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
501
502         * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
503         * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
504         * libio/oldtmpfile.c (__old_tmpfile): Likewise.
505
506         * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
507
508         * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
509         (CFLAGS-fstatfs.c): Likewise.
510         (CFLAGS-statvfs.c): Likewise.
511         (CFLAGS-fstatvfs.c): Likewise.
512
513 2003-09-01  Ulrich Drepper  <drepper@redhat.com>
514
515         * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
516         * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
517         sysconf.
518         * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
519         (CFLAGS-pathconf.c): Likewise.
520         (CFLAGS-fpathconf.c): Likewise.
521
522         * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
523         * misc/fstab.h: Remove all __THROW.
524         * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
525         (CFLAGS-mntent_r.c): Likewise.
526         * misc/mntent.h: Remove most __THROW.
527
528         * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
529         (CFLAGS-mkstemp64.c): Likewise.
530
531         * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
532         around call to exec_comm.
533         * posix/wordexp.h: Remove __THROW from wordexp.
534         * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
535
536         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
537         not-cancelable functions.
538
539         * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
540         (CFLAGS-iofopen.c): Likewise.
541         (CFLAGS-iofopen64.c): Likewise.
542
543         * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
544         functions.
545         * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
546         * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
547
548         * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
549         * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
550
551 2003-09-01  Thorsten Kukuk  <kukuk@suse.de>
552
553         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
554         NSS_STATUS_SUCCESS if entry was found.
555         (getspent_next_file): Store user in blacklist after entry
556         was found, use innetgr.
557
558 2003-09-01  Jakub Jelinek  <jakub@redhat.com>
559
560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
562
563         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
564         computation for TCB_AT_TP.  Support l_firstbyte_offset != 0 for
565         DTV_AT_TP, optimize.
566
567 2003-08-31  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
568
569         * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
570         posix_fallocate64 at GLIBC_2.3.3.
571         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
572         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
573
574 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
575
576         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
577         functions.
578
579 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
580
581         * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
582         Code by Richard Henderson.
583
584 2003-08-31  Philip Blundell  <philb@gnu.org>
585
586         * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
587         posix_fallocate64 at GLIBC_2.3.3.
588
589 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
590
591         * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
592         * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
593
594 2003-08-30  Jakub Jelinek  <jakub@redhat.com>
595
596         * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
597         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
598         included multiple times.
599         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
600         ptid, tls, ctid arguments to the kernel.
601         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
602         Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
603         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
604         (__libc_sigaction): Use INLINE_SYSCALL instead of
605         __syscall_rt_sigaction.
606         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
607         (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
608         __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
609         __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
610         __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
611         __syscall_rt_sigpending, __syscall_rt_sigprocmask,
612         __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
613         __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
614         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
615         Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
616         rt_sigqueueinfo, rt_sigaction and rt_sigpending.
617         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
618         (__CLONE_SYSCALL_STRING): Define.
619         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
620         CFI directives.
621         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
622         (__CLONE_SYSCALL_STRING): Define.
623         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
624         Define.
625         * sysdeps/unix/sysv/linux/sparc/system.c: New file.
626
627 2003-08-30  Ulrich Drepper  <drepper@redhat.com>
628
629         * sunrpc/rpc/clnt.h: Remove a few __THROW.
630         * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
631         (CFLAGS-key_call.c): Likewise.
632         (CFLAGS-pmap_rmt.c): Likewise.
633         (CFLAGS-clnt_perr.c): Likewise.
634         * sunrpc/rpc/auth.h: Remove serveral __THROW.
635
636         * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
637         (CFLAGS-gethstbynm_r.c): Likewise.
638         (CFLAGS-gethstbynm2_r.c): Likewise.
639         (CFLAGS-rcmd.c): Likewise.
640         * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
641
642         * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
643         (CFLAGS-argp-fmtstream.c): Likewise.
644         * argp/argp.h: Remove a number of __THROW.
645
646         * misc/sys/syslog.h (vsyslog): Remove __THROW.
647
648         * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
649         * misc/getpass.c (getpass): Add cleanup handler to ensure the
650         stream is closed even if the thread is canceled.
651         (call_fclose): New function.
652         * posix/unistd.h: Remove __THROW from getpass prototype.
653
654         * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
655
656         * signal/signal.h (psignal): Remove __THROW.
657         * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
658
659         * misc/Makefile (CFLAGS-error.c): Define.
660         * misc/error.c (error): Disable cancellation handling around the
661         actual output.  The message should in any case be printed.
662         (error_at_line): Likewise.
663
664         * misc/error.h: Protect parameter names with leading __.
665
666 2003-08-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
667
668         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
669
670 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
671
672         * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
673         end.
674
675 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
676
677         * libio/stdio.h: Remove a few more __THROW.
678
679 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
680
681         * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
682         fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
683         getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
684         iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
685         iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
686         iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
687         ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
688         oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
689         oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
690         putwchar.c and rewind.c with exceptions.
691         * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
692         _IO_release_lock): Define.
693         * libio/fileops.c (_IO_new_file_underflow): Use it.
694         * libio/fputc.c (fputc): Likewise.
695         * libio/fputwc.c (fputwc): Likewise.
696         * libio/freopen64.c (freopen64):
697         * libio/freopen.c (freopen): Likewise.
698         * libio/fseek.c (fseek): Likewise.
699         * libio/fseeko64.c (fseeko64): Likewise.
700         * libio/fseeko.c (fseeko): Likewise.
701         * libio/ftello64.c (ftello64): Likewise.
702         * libio/ftello.c (ftello): Likewise.
703         * libio/fwide.c (fwide): Likewise.
704         * libio/getc.c (_IO_getc): Likewise.
705         * libio/getchar.c (getchar): Likewise.
706         * libio/getwc.c (_IO_getwc): Likewise.
707         * libio/getwchar.c (getwchar): Likewise.
708         * libio/iofclose.c (_IO_new_fclose):
709         * libio/iofflush.c (_IO_fflush): Likewise.
710         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
711         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
712         * libio/iofgets.c (_IO_fgets): Likewise.
713         * libio/iofgetws.c (fgetws): Likewise.
714         * libio/iofputs.c (_IO_fputs): Likewise.
715         * libio/iofputws.c (fputws): Likewise.
716         * libio/iofread.c (_IO_fread): Likewise.
717         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
718         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
719         * libio/ioftell.c (_IO_ftell): Likewise.
720         * libio/iofwrite.c (_IO_fwrite): Likewise.
721         * libio/iogetdelim.c (_IO_getdelim): Likewise.
722         * libio/iogets.c (_IO_gets): Likewise.
723         * libio/ioputs.c (_IO_puts): Likewise.
724         * libio/ioseekoff.c (_IO_seekoff): Likewise.
725         * libio/ioseekpos.c (_IO_seekpos): Likewise.
726         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
727         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
728         * libio/ioungetc.c (_IO_ungetc): Likewise.
729         * libio/ioungetwc.c (ungetwc): Likewise.
730         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
731         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
732         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
733         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
734         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
735         * libio/peekc.c (_IO_peekc_locked): Likewise.
736         * libio/putc.c (_IO_putc): Likewise.
737         * libio/putchar.c (putchar): Likewise.
738         * libio/putwc.c (putwc): Likewise.
739         * libio/putwchar.c (putwchar): Likewise.
740         * libio/rewind.c (rewind): Likewise.
741         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
742
743 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
744
745         * signal/signal.h: sighold, sigrelse, sigignore, sigset were
746         available in XPG4.2.
747
748 2003-08-27  Phil Knirsch  <pknirsch@redhat.com>
749             Jakub Jelinek  <jakub@redhat.com>
750
751         * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
752         big endian arches.  Don't read beyond end of fds_bits array.
753
754 2003-04-27  Bruno Haible  <bruno@clisp.org>
755
756         * manual/message.texi (Advanced gettext functions): Add information
757         about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
758         Add section about Lithuanian, reported by Ricardas Cepas
759         <rch@richard.eu.org>.
760         Add information about Croatian.
761         Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
762         Remove remark about continuation lines that is not true for PO files.
763         Fix formula for Slovenian, reported by Roman Maurer
764         <roman.maurer@amis.net>.
765
766 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
767
768         * math/math_private.h: Declare __copysignf.
769         * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
770         copysignf.
771
772         * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
773         __signbit, and __signbitl inline functions.
774
775         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
776         HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
777
778         * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
779         * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
780
781 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
782
783         * inet/inet_mkadr.c (inet_makeaddr): Optimize.
784
785 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
786
787         * include/stdio.h: Add declarations for __builtin_fwrite and
788         __builtin_fwrite_unlocked.
789
790 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
791
792         * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
793         fits into allocation.  Add padding on 32-bit arches so that
794         dirp->data is enough aligned for struct dirent64.
795         Avoid clearing of the buffer, just clear DIR structure.
796
797 2003-08-26  Ulrich Drepper  <drepper@redhat.com>
798
799         * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
800         * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
801
802 2003-08-26  Steven Munroe  <sjmunroe@us.ibm.com>
803
804         * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
805
806 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
807
808         * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
809         to match format string.
810         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
811         __old_buf.
812         (__new_semctl): Shut up warning.
813         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
814         (_dl_string_hwcap): Add __attribute__ ((always_inline)).
815
816 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
817
818         * elf/ldconfig.c (search_dir): When checking for GNU-style .so
819         link file use the real file name, not the resolved name we got by
820         following the symlinks.
821
822 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
823
824         * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
825         if the object size is large enough.
826
827 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
828
829         * elf/ldconfig.c (search_dir): Treat symlink as regular file
830         if it won't point to itself unless it is .so symlink for the linker.
831
832 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
833
834         * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
835         use _mode if _IO_fwide_maybe_incompatible.
836         * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
837         the compatibility test.
838
839 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
840
841         * elf/cache.c (save_cache): Don't write beyond end of file_entries
842         buffer.
843         Duplicate last old cache entry if the count would be odd.
844
845 2003-08-25  Andreas Jaeger  <aj@suse.de>
846
847         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
848         __LONG_LONG_PAIR to long.
849
850 2003-08-25  Philip Blundell  <philb@gnu.org>
851
852         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
853         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
854
855 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
856
857         * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
858         and use __libc_cleanup_region_end instead.
859
860 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
861
862         * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
863
864 2003-08-22  Ulrich Drepper  <drepper@redhat.com>
865
866         * io/fcntl.h (posix_fallocate): Change type of third parameter to
867         off_t.
868         (posix_fallocate64): Change type of third parameter to off64_t.
869         * sysdeps/generic/posix_fallocate.c: Adjust for type change.
870         * sysdeps/posix/posix_fallocate.c: Likewise.
871         * sysdeps/generic/posix_fallocate64.c: Likewise.
872         * sysdeps/posix/posix_fallocate64.c: Likewise.  Add compatibility
873         code for 32-bit platforms.
874         * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
875         posix_fallocate64.
876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
877         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
878         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
879
880 2003-08-19  Ulrich Drepper  <drepper@redhat.com>
881
882         * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
883         the type, not to name.
884
885         * stdio-common/test-vfprintf.c (main): Don't write temporary file
886         into source directory.
887
888         * malloc/malloc.c (_int_free): Add cheap test for some invalid
889         block sizes.
890
891         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
892         syscall name.
893
894 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
895
896         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
897         into EINVAL.
898
899 2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>
900
901         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
902         (elf_machine_lazy_rel): Likewise.
903
904 2003-08-18  Art Haas  <ahaas@airmail.net>
905
906         * malloc/malloc.h: Remove unneeded ';' where closing the C++
907         extern block.
908
909 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
910
911         * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
912         loading big binaries where @gprel(sym) cannot be handled in 'add'
913         but instead has to be used with 'movl'.
914
915 2003-08-17  Juergen Kreileder <jk@blackdown.de>
916             Andreas Jaeger  <aj@suse.de>
917
918         * sysdeps/x86_64/bits/byteswap.h: New file.
919
920 2003-08-17  Andreas Jaeger  <aj@suse.de>
921
922         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
923
924 2003-08-16  Jakub Jelinek  <jakub@redhat.com>
925
926         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
927         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
928         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
929         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
930         * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
931         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
932         * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
933         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
934         * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
935         ret_ERRVAL): Define.
936         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
937         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
938         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
939         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
940         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
941         Define.
942         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
943         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
944         * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
945
946         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
947         posix_fadvise64_64): Remove.
948         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
949         V flag.
950         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
951         Likewise.
952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
953         (posix_fadvise64): Likewise.
954         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
955         (posix_fadvise64): Likewise.
956         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
957         (posix_fadvise64): Likewise.
958         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
959         Likewise.
960         * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
961         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
962         (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
963         (__posix_fadvise64_l32): New function.
964         * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
966         posix_fadvise64@@GLIBC_2.3.3.
967         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
968         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
969         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
970         error value.
971         * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
972
973         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
974         (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
975
976 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
977
978         * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
979         (elf_machine_matches_host): Remove weak extern stuff.
980         Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
981         (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
982         stuff.  Use GL(dl_hwcap) unconditionally.
983
984 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
985
986         * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
987         __libc_start_main branch.
988
989 2003-08-16  Jakub Jelinek <jakub@redhat.com>,
990             Andreas Jaeger  <aj@suse.de>
991
992         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
993         instead of setting errno.
994         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
995
996 2003-08-16  Andreas Jaeger  <aj@suse.de>
997
998         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
999         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1000
1001 2003-08-15  Ulrich Drepper  <drepper@redhat.com>
1002
1003         * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1004         off_t.
1005         * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1006         * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1007         description indicating the error value is returned, not -1.
1008         * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1009         __ASSUME_FADVISE64_64_SYSCALL.
1010         * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1011         posix_madvise in one file.  Have posix_madvise defined with error
1012         value returned.
1013         Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
1014         entry.
1015         * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1016         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1017         PSEUDO_END_ERRVAL, and ret_ERRVAL.
1018         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1019         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1020         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1021         posix_fadvise64.
1022
1023         * posix/Makefile (routines): Add posix_madvise.
1024         * sysdeps/generic/madvise.c: Don't define posix_madvise.
1025         * sysdeps/generic/posix_madvise.c: New file.
1026         * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1027         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1028         Add posix_fadvise64_64.
1029
1030 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
1031
1032         * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1033         3.0, not for !gcc or gcc < 3.0.
1034
1035 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
1036
1037         * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1038         Address passed to test_in_mod1 and test_in_mod2 without casting.
1039         * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1040         (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1041         * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1042         (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1043
1044 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
1045
1046         * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1047         Change quotes before using [].
1048
1049         * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1050
1051         * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1052         Renamed to...
1053         (__sparc32_atomic_locks): ...this.  Change into 64-byte array.
1054         (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1055         argument.  Select one of 64 locks from address bits.
1056         (atomic_compare_and_exchange_val_acq,
1057         atomic_compare_and_exchange_bool_acq): Pass memory address to
1058         __sparc32_atomic_do_{,un}lock.
1059
1060 2003-08-14  Ulrich Drepper  <drepper@redhat.com>
1061
1062         * assert/assert.h (assert): Use !! in front of expression to allow
1063         use of pointers.
1064
1065         * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1066         Changed conversion of JIS X 0201 from using a table to calculating.
1067         * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1068         conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
1069         EUC-JP-MS.
1070         * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1071         * iconvdata/CP932.irreversible: New file.
1072         * iconvdata/EUC-JP-MS.irreversible: New file.
1073         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1074
1075 2003-08-13  Ulrich Drepper  <drepper@redhat.com>
1076
1077         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1078
1079         * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1080         text processing tools.
1081
1082         * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1083         element unless BROKEN_THREAD_SIGNALS is defined.
1084         (struct requestlist): Likewise.
1085         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1086         caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1087         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1088         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1089         parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
1090         Pass current PID to __aio_sigqueue.
1091         * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1092         call.  Don't initialize caller_pid field of waitlist element.
1093
1094 2003-08-12  Jakub Jelinek  <jakub@redhat.com>
1095
1096         * libio/libioP.h (_IO_vtable_offset): Define.
1097         * libio/freopen.c (freopen): Use it.
1098         * libio/ioputs.c (_IO_puts): Likewise.
1099         * libio/freopen64.c (freopen64): Likewise.
1100         * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1101         Likewise.
1102         * libio/iofclose.c (_IO_new_fclose): Likewise.
1103         * libio/iofputs.c (_IO_fputs): Likewise.
1104         * libio/ioftell.c (_IO_ftell): Likewise.
1105         * libio/iofwrite.c (_IO_fwrite): Likewise.
1106         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1107         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1108         * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1109         * stdio-common/vfscanf.c (ORIENT): Likewise.
1110
1111 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
1112
1113         * assert/assert.h: Use __builtin_expect in assert and
1114         assert_perror definitions if possible.
1115
1116 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
1117
1118         * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1119         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1120         * elf/rtld.c (rtld_lock_default_lock_recursive,
1121         rtld_lock_default_unlock_recursive): New functions.
1122         (dl_main): Initialize _dl_rtld_lock_recursive and
1123         _dl_rtld_unlock_recursive.
1124
1125 2003-08-05  Jakub Jelinek  <jakub@redhat.com>
1126
1127         * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1128         config_file directories instead of prepending.
1129
1130 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
1131
1132         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1133         __ASSUME_CLONE_STOPPED.
1134
1135 2003-08-01  Ulrich Drepper  <drepper@redhat.com>
1136
1137         * sysdeps/generic/bits/libc-lock.h
1138         (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1139
1140 2003-08-01  Roland McGrath  <roland@frob.com>
1141
1142         * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1143
1144 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
1145
1146         * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1147         instead of __SWORD_TYPE.
1148         * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1149         * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1150         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1151         Define.
1152         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1153         Define.
1154         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1155         Define.
1156         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1157
1158         * dlfcn/dlerror.c (once): New.
1159         (dlerror): Call __libc_once.
1160         (_dlerror_run): Remove once.
1161
1162         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1163         Sync with 2.5.7 and 2.5.73 kernel changes.
1164
1165         * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1166         * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1167         formats to size_t.
1168         * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1169         * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1170         * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1171         * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1172         * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1173         difference argument.
1174         * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1175         format to wint_t.
1176         * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1177         %d format and cast expected value to int.
1178         * sysdeps/generic/libc-start.c (STATIC): Add
1179         __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1180         * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1181         to ieee_float_shape_type.
1182         (__sqrt): Avoid type punning.
1183         * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1184         to ieee_float_shape_type.
1185         (__sqrtf): Avoid type punning.
1186         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1187         refsym if in dl-conflict.c.
1188         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1189         * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1190         (__new_semctl): Shut up warning.
1191         * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1192         (__new_semctl): Shut up warning.
1193         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1194         Change old into union of __old_shmid_ds and __old_shminfo structs.
1195         Adjust all users.
1196         * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1197
1198         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1199         modtime computation.
1200         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1201         * sysdeps/posix/utimes.c (__utimes): Likewise.
1202
1203 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
1204
1205         * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1206         call dl_signal_error directly.  If already relocated, call
1207         GL(dl_init_static_tls) directly, otherwise queue it for later.
1208         (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1209         * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1210         * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1211         for all static TLS initializations delayed in _dl_allocate_static_tls.
1212         * elf/dl-support.c (_dl_init_static_tls): New variable.
1213         * include/link.h (struct link_map): Add l_need_tls_init.
1214         * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1215         (_dl_nothread_init_static_tls): New prototype.
1216         (_dl_allocate_static_tls): Adjust prototype.
1217
1218         * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1219
1220 2003-07-31  Alexandre Oliva  <aoliva@redhat.com>
1221
1222         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1223         elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1224         reloc_addr is aligned.
1225         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1226         elf_machine_rela_relative): Adjust.
1227         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1228         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1229         * sysdeps/cris/dl-machine.h (elf_machine_rela,
1230         elf_machine_rela_relative): Adjust.
1231         * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1232         elf_machine_rela_relative): Adjust.
1233         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1234         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1235         * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1236         elf_machine_rela_relative): Adjust.
1237         * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1238         elf_machine_rela_relative): Adjust.
1239         * sysdeps/mips/dl-machine.h (elf_machine_rela,
1240         elf_machine_rela_relative): Adjust.
1241         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1242         elf_machine_rela_relative): Adjust.
1243         * sysdeps/powerpc/powerpc64/dl-machine.h
1244         (elf_machine_rela_relative, elf_machine_rela): Adjust.
1245         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1246         elf_machine_rela_relative): Adjust.
1247         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1248         elf_machine_rela_relative): Adjust.
1249         * sysdeps/sh/dl-machine.h (elf_machine_rela,
1250         elf_machine_rela_relative): Adjust.
1251         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1252         elf_machine_rela_relative): Adjust.
1253         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1254         elf_machine_rela_relative): Adjust.
1255         * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1256         elf_machine_rela_relative): Adjust.
1257
1258 2003-07-29  Ulrich Drepper  <drepper@redhat.com>
1259
1260         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1261         alignment of TCB used before the last change so that it matches
1262         ld's output for IE code.
1263
1264 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
1265
1266         * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1267         __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1268         break strict-aliasing rules" warnings.
1269
1270 2003-07-29  Roland McGrath  <roland@redhat.com>
1271
1272         * elf/Makefile: Revert accidental changes in last commit.
1273         * elf/dl-support.c: Likewise.
1274
1275         * rt/tst-timer2.c: New file.
1276         * rt/Makefile (tests): Add it.
1277
1278 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
1279
1280         * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1281
1282 2003-07-29  Roland McGrath  <roland@redhat.com>
1283
1284         * elf/Makefile (tests) [$(build-shared) = yes]:
1285         Depend on $(test-modules).
1286         * dlfcn/Makefile: Likewise.
1287
1288 2003-07-28  Roland McGrath  <roland@redhat.com>
1289
1290         * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1291         Use that instead of `typedef' when using __*_TYPE macros in rhs.
1292
1293         * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1294         * elf/tst-tlsmod14a.c: Likewise.
1295
1296         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1297         before <linux/sysctl.h>.
1298
1299 2003-07-27  Ulrich Drepper  <drepper@redhat.com>
1300
1301         * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1302         * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1303         * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1304         * sysdeps/unix/syscalls.list: umask syscall never fails.
1305
1306 2003-07-27  Andreas Jaeger  <aj@suse.de>
1307
1308         * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1309
1310 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
1311
1312         * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1313         Include bits/a.out.h.
1314         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1315         bits/a.out.h.
1316         * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1317         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1318         * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1319         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1320         * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1321         * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1322         * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1323         * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1324
1325 2003-07-24  Jakub Jelinek  <jakub@redhat.com>
1326
1327         * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1328         if aiocbp != NULL and has already completed.  Return -1/EINVAL if
1329         aiocbp->aio_fildes does not match fildes.
1330
1331 2003-07-24  Ulrich Drepper  <drepper@redhat.com>
1332
1333         * timezone/zic.c (rpytime): Replace cheap overflow check with a
1334         functioning one.
1335
1336         * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1337         * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1338         Fix calculation of offsets to take misalignment of first byte in
1339         file into account.
1340         * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1341         l_tls_firstbyte_offset field.
1342         * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1343         * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1344         Take l_tls_firstbyte_offset information into account.
1345         (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1346         * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1347         * elf/Makefile: Add rules to build and run tst-tls14.
1348         * elf/tst-tls14.c: New file.
1349         * elf/tst-tlsmod14a.c: New file.
1350         * elf/tst-tlsmod14b.c: New file.
1351
1352 2003-07-23  Jakub Jelinek  <jakub@redhat.com>
1353
1354         * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1355         (lio_listio): Use it.
1356         * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1357         after few defines to avoid duplication.
1358
1359 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
1360
1361         * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1362         * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1363         Likewise.
1364         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1365         Add libc_hidden_def.
1366         * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1367         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1368         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1369         * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1370         __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1371         * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1372         * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1373         change.
1374         * sysdeps/generic/unwind.inc: Removed.
1375
1376         * include/resolv.h (__resp): Declare.  Define to __libc_resp
1377         if in libc.so.
1378         (_res): If USE___THREAD, define to (*__resp).
1379         * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1380         even if USE___THREAD.
1381         (__resp): New __thread variable.
1382         (__libc_resp): New alias.
1383         * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1384         USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
1385         * sysdeps/generic/res-state.c (__res_state): Return __resp
1386         if USE___THREAD.
1387
1388 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1389
1390         * elf/dl-support.c (_dl_hwcap): New variable.
1391         (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1392
1393         * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1394         and <dl-procinfo.h>.
1395         (__feclearexcept): Clear MXCSR if needed.
1396         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1397
1398         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1399         that newer hardware needs more than these macros.
1400
1401         * sysdeps/i386/setfpucw.c: New file.
1402
1403 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
1404
1405         * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1406         * elf/ldconfig.c: Include dl-procinfo.c.
1407         (PROCINFO_CLASS): Define.
1408         * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1409         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1410         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1411         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1412         Define if not yet defined.  Use it instead of EXTERN.  Undefine
1413         at the end of the file.
1414         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1415         Likewise.
1416         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1417         (PROCINFO_CLASS): Likewise.
1418         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1419         (PROCINFO_CLASS): Likewise.
1420
1421 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1422
1423         * elf/ldconfig.c (main): Issue a fatal error if relative path
1424         is used to build cache.
1425
1426 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
1427
1428         * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1429
1430 2003-07-21  Art Haas  <ahaas@airmail.net>
1431
1432         * manual/charset.texi (Converting a Character): Fix example code so a
1433         valid pointer is returned.
1434
1435 2003-07-22  Andreas Jaeger  <aj@suse.de>
1436
1437         * elf/readlib.c (process_file): Check that file is a shared
1438         object.
1439
1440         * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1441         will not optimize it away.
1442         (__DTOR_END__): Likewise.
1443         (__CTOR_END__): Likewise.
1444
1445         * include/libc-symbols.h (_elf_set_element): Use attribute used so
1446         that gcc will not optimize it away.
1447         (link_warning): Likewise.
1448
1449 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
1450
1451         * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1452         * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1453         * wcsmbs/tst-wcpncpy.c: New file.
1454
1455 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
1456
1457         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1458
1459         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1460         stmxcsr and ldmxcsr.
1461
1462         * Makerules (build-module-helper): Add -z defs unless explicitly said
1463         not to do it.
1464         * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1465         which has undefined symbols.
1466         * elf/Makefile: Likewise.
1467
1468         * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1469         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1470         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1471         * sysdeps/i386/fpu/fesetround.c: Likewise.
1472         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1473
1474 2003-07-21  HJ Lu  <hongjiu.lu@intel.com>
1475
1476         * elf/ldconfig.c (search_dir): Treat symlink as regular file
1477         if it won't point to itself.
1478
1479 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
1480
1481         * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1482
1483 2003-07-20  Andreas Jaeger  <aj@suse.de>
1484
1485         * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1486         STANDARD_TO_LOOP_ERR_HANDLER.
1487         * iconvdata/euc-jp-ms.c (BODY): Likewise.
1488
1489 2003-07-19  Ulrich Drepper  <drepper@redhat.com>
1490
1491         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1492
1493         * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1494
1495 2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
1496             Andreas Jaeger  <aj@suse.de>
1497
1498         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1499         256K, remove unneeded declaration of __getpagesize.
1500
1501 2003-07-16  Andreas Schwab  <schwab@suse.de>
1502
1503         * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1504
1505 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
1506
1507         * io/test-utime.c (main): Make test yet more robust.
1508
1509 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
1510
1511         More cancellation handling fixups.
1512         * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1513         * sysdeps/generic/not-cancel.h: Likewise.
1514         * catgets/open_catalog.c: Use not-cancelable syscalls.
1515         * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1516         * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1517         * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1518         * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1519         * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1520         * libio/fileops.c: Use not-cancelable syscalls for fclose.
1521         * libio/iopopen.c: Use no-cancelable syscalls.
1522         * libio/stdio.h: Mark popen and pclose with __THROW again.
1523         * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1524         * misc/syslog.c: Fix locking and cancellation cleanup handling.
1525         * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1526         * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1527         CFLAGS-tempname.c): Add -fexceptions.
1528         * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1529         * string/string.h: Mark strerror and strerror_r with _THROW again.
1530         * sysdeps/generic/unwind.inc: New file.  Copied from gcc.
1531         * sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
1532         #ifs since we now need all the code compiled.
1533         * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1534         * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1535         * sysdeps/unix/opendir.c: Likewise.
1536
1537         * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1538         Add rule for EUC-JP-MS dependency.
1539         * iconvdata/cp932.c: New file.
1540         * iconvdata/eucjp-ms.c: New file.
1541         * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1542         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1543
1544 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
1545
1546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1547         cfi directives.
1548
1549 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1550
1551         * sysdeps/unix/sysv/linux/kernel-features.h
1552         (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1554
1555         * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1556
1557 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
1558
1559         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1560         __ASSUME_TGKILL for Alpha appropriately.
1561
1562 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
1563
1564         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1565         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1566         Likewise.
1567         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1568         Likewise.
1569
1570         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1571         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1572
1573         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1574         second parameter == NULL.
1575         * sysdeps/unix/sysv/linux/utimes.c: New file.
1576
1577 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
1578
1579         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1580         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1581         a typo.
1582
1583 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
1584
1585         * time/sys/time.h: Namespace cleanup.
1586         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1587         __ASSUME_UTIMES for the architectures which always had the syscall.
1588         * sysdeps/unix/sysv/linux/futimes.c: New file.
1589
1590 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1591
1592         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1593         register across CENABLE and CDISABLE.
1594
1595 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1596
1597         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1598         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1599         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1600         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1601         int before assigning to max to avoid warnings.
1602
1603 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1604
1605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1606         cfi directives.
1607         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1608         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1609
1610 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
1611
1612         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1613         .data.rel.ro.local to "aw".
1614
1615 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
1616
1617         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1618         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1619         (PIC-ccflag): Define.
1620
1621 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
1622
1623         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1624         if PIC.
1625         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1626
1627 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
1628
1629         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1630         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1631
1632 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
1633
1634         * sysdeps/unix/sysv/linux/kernel-features.h: Version
1635         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1636
1637         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1638         compilation with HAVE_AUX_SECURE defined.
1639
1640 2003-07-05  Richard Henderson  <rth@redhat.com>
1641
1642         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1643
1644 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1645
1646         * configure.in: Also check for .cfi_rel_offset pseudo-op.
1647
1648 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
1649
1650         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1651         typo.
1652
1653 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1654
1655         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1656         Define.
1657         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1658
1659 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
1660
1661         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1662         decl and use with #ifdef NEED_DL_SYSINFO.
1663
1664 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
1665
1666         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1667         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1668         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1669         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1670         vsyscall DSO was added.
1671
1672         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1673         depending on selected standard.
1674         (NGROUPS_MAX): Define to 8 if not defined.
1675
1676 2003-07-02  Andreas Jaeger  <aj@suse.de>
1677
1678         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1679
1680 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1681
1682         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1683         * malloc/thread-m.h: Include <atomic.h>.
1684         (atomic_full_barrier): Provide default.
1685         (atomic_read_barrier): Likewise.
1686         (atomic_write_barrier): Likewise.
1687         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1688
1689 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
1690
1691         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1692
1693 2003-06-30  Richard Henderson  <rth@redhat.com>
1694
1695         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1696         Invert the sense of the return value.
1697         (__arch_exchange_16_int): Fix paste-o.
1698         (__arch_exchange_{32,64}_int): Fix think-o.
1699
1700         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1701
1702 2003-06-30  Richard Henderson  <rth@redhat.com>
1703
1704         * include/sys/resource.h (__getrusage): Mark hidden.
1705         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1706         * include/sys/wait.h (__wait4): Likewise.
1707
1708 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
1709
1710         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1711         case.
1712         (xstat_conv): Rename to __xstat_conv and remove static inline.
1713         (xstat64_conv): Likewise.
1714
1715 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
1716
1717         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1718         values which cannot be handled in one nanosleep call.
1719
1720 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
1721
1722         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1723         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1724
1725         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1726
1727 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
1728
1729         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1730         fix typo.
1731
1732 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
1733
1734         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1735         Conditionalize function definitions that use struct kernel_stat.
1736         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1737         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1738         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1739
1740 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
1741
1742         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1743         implementation.
1744
1745 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
1746
1747         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1748         (getgrent_next_file): Don't store group name to early in blacklist.
1749
1750         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1751         and use memcpy instead of strcpy.
1752
1753 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
1754
1755         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
1756         stream unlocked.
1757         * nis/nss_compat/compat-initgroups.c: Likewise.
1758         * nis/nss_compat/compat-pwd.c: Likewise.
1759         * nis/nss_compat/compat-spwd.c: Likewise.
1760
1761 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
1762
1763         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1764         functions, dlopen corresponding NSS module instead.
1765
1766 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
1767
1768         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1769         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1770         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1771         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1772
1773 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
1774
1775         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1776
1777 2003-06-26  Roland McGrath  <roland@frob.com>
1778
1779         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1780         * sysdeps/mach/configure: Regenerated.
1781         * sysdeps/mach/hurd/times.c (times_init): Function removed.
1782         (__times): Assume `creation_time' field is available.
1783         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1784         Don't append set-init.
1785         * sysdeps/mach/hurd/set-init.c: File removed.
1786
1787 2003-06-26  Roland McGrath  <roland@redhat.com>
1788
1789         * elf/elf.h (AT_SECURE): New macro.
1790         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1791         set __libc_enable_secure.
1792         (_dl_show_auxv): Add AT_SECURE to name table.
1793         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1794         __libc_enable_secure and __libc_enable_secure_decided.
1795         * sysdeps/unix/sysv/linux/ldsodefs.h
1796         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1797         * sysdeps/unix/sysv/linux/kernel-features.h
1798         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1799
1800 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
1801
1802         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1803         boundary test to take rounding of nanoseconds into account.
1804
1805         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1806         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1807         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1808         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1809         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1810         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1811         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1812
1813 2003-06-26  Andreas Schwab  <schwab@suse.de>
1814
1815         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1816         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1817         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1818
1819 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
1820
1821         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1822         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1823         dlopen corresponding NSS module instead.
1824         * nis/nss_compat/compat-pwd.c: Likewise.
1825         * nis/nss_compat/compat-spwd.c: Likewise.
1826         * nis/nss_compat/compat-initgroups.c: Disabled for now.
1827         * nss/Versions: Export __nss_lookup_function.
1828
1829 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1830
1831         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1832         for the SH architecture.
1833
1834 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
1835
1836         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1837
1838 2003-06-25  Andreas Jaeger  <aj@suse.de>
1839
1840         * stdlib/tst-strtod.c (main): Declare constant long double as
1841         suggested by Jakub Jelinek and Andreas Schwab.
1842
1843         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1844         declaration.
1845
1846         * stdio-common/tst-fphex.c: Fix format string.
1847
1848         * posix/transbug.c: Include <string.h> for memset and strlen
1849         declarations.
1850
1851         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1852
1853         * stdlib/tst-strtod.c (main): Pass long double value.
1854
1855         * test-skeleton.c: Include <time.h> for nanosleep declaration.
1856
1857 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
1858
1859         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1860         defined.
1861
1862 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
1863
1864         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1865         * elf/dl-libc.c (struct dl_open_hook): New.
1866         (_dl_open_hook): New variable.
1867         (do_dlsym_private): New function.
1868         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1869         and initialize it if found.
1870         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1871         call dlopen_mode hook.
1872         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1873         call dlsym hook.
1874         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1875         call dlclose hook.
1876
1877 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
1878
1879         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1880         result to long int so that extensions to long long int work.
1881         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1882
1883 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
1884
1885         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1886         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1887         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1888         dl-cache.h.
1889         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1890         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1891         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1892         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1893
1894 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
1895
1896         * test-skeleton.c (timeout_handler): If waitpid returned 0,
1897         retry once after a second.  If killed == 0, assume
1898         WTERMSIG (status) == SIGKILL.
1899
1900 2003-06-18  Roland McGrath  <roland@redhat.com>
1901
1902         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1903         elements in the table instead of printing an empty name string.
1904
1905 2003-06-05  Roland McGrath  <roland@redhat.com>
1906
1907         * elf/elf.h (PT_GNU_STACK): New macro.
1908
1909 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
1910
1911         * include/time.h: Define CLOCK_IDFIELD_SIZE.
1912         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1913         * sysdeps/unix/clock_gettime.c: Likewise.
1914         * sysdeps/unix/clock_settime.c: Likewise.
1915         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1916         clock id for thread CPU clocks.
1917
1918         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1919         for the fstatfs64 syscall.
1920         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1921         the statfs64 syscall.
1922
1923         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1924         __ASSUME_STATFS64 appropriately.
1925
1926         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1927         from statfs structure if it has been filled in.
1928
1929         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1930         field.
1931         (struct statfs64): Likewise.
1932         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1933         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1934
1935 2003-06-24  Richard Henderson  <rth@redhat.com>
1936
1937         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1938         the 64-bit syscall name.
1939
1940         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1941
1942         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1943         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
1944
1945         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1946         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1947         libc_hidden_def.
1948         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1949         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1950         on them.
1951
1952         * sysdeps/alpha/bits/atomic.h: New file.
1953
1954 2003-06-24  Andreas Schwab  <schwab@suse.de>
1955
1956         * sysdeps/m68k/fpu/libm-test-ulps: Update.
1957
1958 2003-06-24  Andreas Jaeger  <aj@suse.de>
1959
1960         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1961         redeclaration with 32-bit code.
1962
1963 2003-05-19  Ed Connell  <ed.connell@sas.com>
1964
1965         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1966         floating point mask.
1967         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1968
1969 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
1970
1971         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1972         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1973         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1974
1975         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1976         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
1977         instead of __libc_cleanup_region_*.
1978
1979 2003-06-20  Richard Henderson  <rth@redhat.com>
1980
1981         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1982         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1983
1984 2003-06-20  Richard Henderson  <rth@redhat.com>
1985
1986         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1987         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1988         Unset for alpha.
1989         (__ASSUME_TIMEVAL64): Set for alpha.
1990         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1991         adjtimex, osf_sigprocmask, old_adjtimex.
1992         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1993         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
1994         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1995         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1996         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1997         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1998         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1999         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2000         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2001         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2002         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2003         PIC code sequence.
2004         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2005         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2006         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2007         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2008         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2009         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2010         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2011         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2012         defer to __syscall_name; error for rt_sigaction.
2013         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2014
2015 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
2016
2017         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2018         hasn't happened yet.
2019
2020         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2021         Fix completely broken implementation.  The second parameter is of
2022         type struct ucontext*.
2023
2024         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2025         inline.
2026
2027         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2028         * sysdeps/generic/dl-hash.h: Likewise.
2029
2030         * sysdeps/generic/memcmp.c: Remove inline from
2031         memcmp_common_alignment and memcmp_not_common_alignment definition.
2032
2033         * intl/localealias.c (read_alias_file): Determine whether line is
2034         read incompletely early, before we modify the line.
2035
2036 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
2037
2038         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2039         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2040
2041 2003-06-17  Paul Mackerras  <paulus@samba.org>
2042
2043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2048         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2049
2050 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
2051
2052         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2053
2054 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
2055
2056         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2057         takes care of enabling cancellation.
2058
2059         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2060         cancelable.  It's not correct to disable cancellation.  Instead of
2061         a cleanup handler.
2062
2063         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2064         and part of the incoming set, create a temporary set without this
2065         signal.
2066         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2067         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2068
2069         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2070         returning because seconds==0.  Add __builtin_expect.
2071
2072 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
2073
2074         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2075
2076         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2077         variable.
2078
2079 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
2080
2081         * include/libc-symbols.h: Add static_link_warning macro.
2082         * grp/initgroups.c: Print linker warning if this function
2083         is called in a static linked binary.
2084         * nss/getXXbyYY.c: Likewise.
2085         * nss/getXXbyYY_r.c: Likewise.
2086         * nss/getXXent.c: Likewise.
2087         * nss/getXXent_r.c: Likewise.
2088         * sysdeps/posix/getaddrinfo.c: Likewise.
2089
2090 2003-06-16  Bruno Haible  <bruno@clisp.org>
2091
2092         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2093         LATIN-9.
2094         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2095         (IBM1047): Add alias IBM-1047.
2096         (GBK): Add aliases MS936, WINDOWS-936.
2097
2098 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
2099
2100         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2101         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2102         (__xstat64_conv): Change xstat_conv to __xstat_conv.
2103
2104 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
2105
2106         * locale/iso-639.def: Update from current official ISO 639.
2107
2108         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2109
2110 2003-06-15  Andreas Jaeger  <aj@suse.de>
2111
2112         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2113         of MXCSR.
2114         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2115         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2116         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2117
2118         * math/tgmath.h (carg): Handle real arguments.
2119         (conj): Likewise.
2120         (cproj): Likewise.
2121         (cimag): Likewise.
2122         (creal): Likewise.
2123
2124         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2125         (tests): Add test-tgmath-ret.
2126         * math/test-tgmath-ret.c: New file.
2127
2128         * math/tgmath.h (ilogb): Return always an int.
2129
2130 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
2131
2132         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2133         computation so that prelinking works.
2134
2135 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
2136
2137         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2138         linker's map.
2139         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2140         dynamic linker's map.
2141
2142         Fix cancellation point handling wrt exception based cleanup.
2143         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2144         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2145         with exceptions.
2146         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2147         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2148         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2149         exceptions.
2150         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2151         sigwait.c, and sigwaitinfo.c with exceptions.
2152         * stdlib/Makefile: Compile system.c with exceptions.
2153         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2154         * termios/Makefile: Compile tcdrain.c with exceptions.
2155         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2156         situation.
2157         * sysdeps/generic/pselect.c: Likewise.
2158         * sysdeps/posix/sigpause.c: Likewise.
2159         * sysdeps/posix/system.c: Likewise.
2160         * sysdeps/posix/waitid.c: Likewise.
2161         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2162         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2163         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2164         INTERNAL_SYSCALL to not use push inside asm statement so that
2165         unwind info is correct around the syscall.
2166         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2167         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2168
2169 2003-06-15  Andreas Jaeger  <aj@suse.de>
2170
2171         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2172         Add CFI directives.
2173
2174 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
2175
2176         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2177         create $(objpfx).
2178
2179 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
2180
2181         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2182         not close.
2183
2184         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2185         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2186         definition.
2187
2188         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2189         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2190         * inet/Makefile (routines): Add inet6_option.
2191         * inet/inet6_option.c: New file.
2192         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2193         inet6_option_init, inet6_option_append, inet6_option_alloc,
2194         inet6_option_next, and inet6_option_find.
2195
2196 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
2197
2198         * inet/netinet/ip6.h (struct ip6_ext): Define.
2199
2200         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2201
2202         Fixing gcc 3.3 warnings, part II.
2203         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2204         * elf/dl-load.c (cache_rpath): Don't inline.
2205         * iconvdata/cns11642l2.h: Always inline all functions.
2206         * iconvdata/iso-ir-165.h: Likewise.
2207         * locale/Makefile (aux): Add coll-lookup.
2208         * locale/coll-lookup.c: New file.
2209         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2210         (collseq_table_lookup): Likewise.
2211         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2212         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2213         change.
2214         * posix/regcomp.c: Likewise.
2215         * posix/regexec.c: Likewise.
2216         * locale/programs/3level.h (*_get): Always inline.
2217         * locale/programs/locfile.h: Move definition of handle_copy to...
2218         * locale/programs/locfile.c: ...here.
2219         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2220         (obstack_int32_grow_fast): Likewise.
2221         (utf8_encode): Likewise.
2222         (find_element): Avoid aliasing problems.
2223         (insert_value): Likewise.
2224         (collate_read): Likewise.
2225         * nss/getent.c (print_hosts): Don't inline
2226         (print_networks): Likewise.
2227         (print_shadow): Likewise.
2228         (build_doc): Likewise.
2229         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2230         inline.
2231         * posix/regcomp.c (re_set_fastmap): Always inline.
2232         (seek_collating_symbol_entry): Likewise.
2233         (lookup_collation_sequence_value): Likewise.
2234         (build_range_exp): Likewise.
2235         (build_collating_symbol): Likewise.
2236         * posix/regexec.c (acquire_init_state_context): Don't inline.
2237         (clean_state_log_if_need): Likewise.
2238         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2239         adjust all callers.
2240         (evConsTime): Likewise.
2241         (evAddTime): Likewise.
2242         (evSubTime): Likewise.
2243         (evNowTime): Likewise.
2244         (evTimeSpec): Removed.
2245         (__libc_res_nsend): Avoid aliasing problem.
2246         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2247         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2248         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2249         Always inline.
2250         (_dl_string_platform): Likewise.
2251         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2252         (wcwidth_table_lookup): Likewise.
2253         (wctrans_table_lookup): Likewise.
2254
2255         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2256
2257 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
2258
2259         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2260
2261 2003-05-29  Jim Meyering  <jim@meyering.net>
2262
2263         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2264         && HAVE_STRFTIME]: Use underlying_strftime for %r.
2265         Suggested by Daniel Yacob <locales@geez.org>.
2266
2267 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
2268
2269         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2270         @got notation with @toc.
2271         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2273
2274 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
2275
2276         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2277         if only PF_INET address is needed.
2278
2279         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2280         case of an error.
2281
2282         * scripts/config.guess: Update from upstream version.
2283         * scripts/config.sub: Likewise.
2284
2285 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
2286
2287         * locale/programs/ld-time.c (time_output): Also copy the era format,
2288         not only the name.
2289
2290 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2291
2292         * posix/transbug.c (run_test): Return 1 for failure.
2293         (do_test): Compare only if run_test is successful.
2294
2295 2003-06-12  Simon Josefsson  <jas@extundo.com>
2296
2297         * argp/argp.h [!__THROW]: Define if undefined.
2298
2299 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
2300
2301         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2302         more than four parameters.
2303         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2304
2305 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
2306
2307         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2308         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2309         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2310
2311         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2312
2313 2003-06-12  Roland McGrath  <roland@redhat.com>
2314
2315         * Makerules ($(objpfx)stubs): Rewrite sed magic.
2316
2317 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
2318
2319         * posix/regcomp.c (parse_expression): Deliver translation to
2320         build_word_op, and build_charclass.
2321         (build_charclass): Apply translation for character classes too.
2322         (build_word_op): Deliver translation to build_charclass.
2323         * posix/transbug.c: New file.
2324         * posix/Makefile (tests): Add transbug.
2325
2326 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
2327
2328         * posix/regexec.c (group_nodes_into_DFAstates): Check for
2329         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
2330         'continue' before the others.
2331
2332 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
2333
2334         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2335         function [PR libc/5045].
2336
2337         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2338         also for P4.
2339
2340         * time/tzfile.c: Add a couple of __builtin_expect.
2341
2342         Remove warnings gcc 3.3 shows.
2343         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2344         * elf/dl-load.c (fillin_rpath): Likewise.
2345         (add_path): Likewise.
2346         * elf/dl-version.c (find_needed): Always inline.
2347         * elf/do-lookup.c (FCT): Don't inline.
2348         * iconv/Makefile: Extend vpath to intl subdir.
2349         (iconvconfig-modules): Add hash-string.
2350         * iconv/gconv_charset.h (strip): Don't inline.
2351         (upstr): Always inline.
2352         Move __gconv_compare_alias prototype to...
2353         * iconv/gconv_int.h: ...here.
2354         * iconv/gconv_db.c: Don't include gconv_charset.h.
2355         * iconv/gconv_conf.c (add_alias): Don't inline.
2356         (insert_module): Likewise.
2357         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2358         (internal_ucs4_loop_unaligned): Likewise.
2359         (internal_ucs4_loop_single): Likewise.
2360         (ucs4_internal_loop): Likewise.
2361         (ucs4_internal_loop_unaligned): Likewise.
2362         (ucs4_internal_loop_single): Likewise.
2363         (internal_ucs4le_loop): Always inline.
2364         (internal_ucs4le_loop_unaligned): Likewise.
2365         (internal_ucs4le_loop_single): Likewise.
2366         (ucs4le_internal_loop): Likewise.
2367         (ucs4le_internal_loop_unaligned): Likewise.
2368         (ucs4le_internal_loop_single): Likewise.
2369         * iconv/loop.c: Always inline the defined functions.
2370         * iconvdata/cns11642.h: Likewise.
2371         * iconvdata/cns11642l1.h: Likewise.
2372         * iconvdata/euc-kr.c: Likewise.
2373         * iconvdata/gb2312.h: Likewise.
2374         * iconvdata/jis0201.h: Likewise.
2375         * iconvdata/jis0208.h: Likewise.
2376         * iconvdata/jis0212.h: Likewise.
2377         * iconvdata/jisx0213.h: Likewise.
2378         * iconvdata/ksc5601.h: Likewise.
2379         * iconvdata/utf-7.c (base64): Don't inline.
2380         * include/libc-symbols.h (symbol_set_first_element): Add cast
2381         (symbol_set_end_p): Likewise.
2382         * include/set-hooks (RUN_HOOK): Likewise.
2383         * inet/Makefile (aux): Add ifreq.
2384         * intl/Makefile (aux): Add some entries from routines.  Add
2385         hash-string.
2386         * intl/hash-string.c: New file.
2387         * intl/hash-string.h: Remove hash_string definition.  Declare
2388         __hash_string.
2389         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2390         * iconv/iconvconfig.c (new_name): Likewise.
2391         * intl/dcigettext.c (_nl_find_msg): Likewise.
2392         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2393         * io/ftw.c (open_dir_stream): Always inline.
2394         (process_entry): Don't inline.
2395         * locale/findlocale.c: Include gconv_int.h.
2396         * locale/setlocale.c (new_composite_name): Don't inline.
2397         * locale/weight.h (findidx): Always inline.
2398         * locale/weightwc.h (findidx): Likewise.
2399         * locale/programs/linereader.c (lr_ignore_rest): Define here.
2400         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2401         just declare it.
2402         (lr_getc): Always inline.
2403         (lr_ungetc): Likewise.
2404         * nss/nss_files/files-parse.c (parse_list): Likewise.
2405         * stdio-common/Makefile (aux): Add printf-parsemb and
2406         printf-parsewc.
2407         * stdio-common/_itoa.h (_itoa_word): Always inline.
2408         (_fitoa_word, _fitoa): Don't define here, only declare.
2409         * stdio-common/_itoa.c (_iftoa_word): Add here.
2410         (_fitoa): Likewise.
2411         * stdio-common/_itowa.h (_itowa_word): Always inline.
2412         * stdio-common/printf-parse.h (read_int): Don't inline.
2413         (find_spec): Don't define.
2414         Declare __find_specmb and __find_specwc.
2415         (parse_one_spec): Don't define.
2416         Declare __parse_one_specmb and __parse_one_specwc.
2417         * stdio-common/printf-parsemb.c: New file.
2418         * stdio-common/printf-parsewc.c: New file.
2419         * stdio-common/vfprintf.c: Update calls to find_spec and
2420         parse_one_spec for new names.
2421         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
2422         * stdlib/Makefile (aux): Add grouping and groupingwc.
2423         * stdlib/grouping.c: New file.
2424         * stdlib/groupingwc.c: New file.
2425         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2426         Just prototype.
2427         * stdlib/rpmatch.c (try): Don't inline.
2428         * stdlib/strtod.c (round_and_return): Don't line.
2429         (str_to_mpn): Likewise.
2430         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
2431         Adjust for name change of correctly_grouped_prefix.
2432         * sysdeps/generic/strtol.c: Adjust for name change of
2433         correctly_grouped_prefix.
2434         * string/strxfrm.c (utf8_encode): Don't inline.
2435         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2436         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2437         * sysdeps/generic/ifreq.c: New file.
2438         * sysdeps/unix/sysv/linux/ifreq.c: New file.
2439         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2440         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2441         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2442         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2443         (fde_split): Likewise.
2444         (fde_merge): Likewise.
2445         (end_fde_sort): Likewise.
2446         (init_object): Likewise.
2447         (binary_search_unencoded_fdes): Likewise.
2448         (binary_search_single_encoding_fdes): Likewise.
2449         (binary_search_mixed_encoding_fdes): Likewise.
2450         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2451         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2452         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2453         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2454         Add xstatconv.
2455         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2456         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2457         Export them.  Prepend __ to name.
2458         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2459         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2460         conversion functions.
2461         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2462         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2463         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2464         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2465         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2466         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2467         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2468         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2469         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2470         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
2471         to name.  Change callers.
2472         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2473         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2474         declare.
2475         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2476         * time/tzfile.c (decode): Always inline.
2477         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2478         Remove cast in tomb function call.
2479         * wcsmbs/wcsrtombs.c Likewise.
2480         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2481         tomb function call.
2482
2483 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
2484
2485         * po/zh_CN.po: Update from translation team.
2486
2487 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
2488
2489         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2490         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2491
2492 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
2493
2494         * inet/Makefile (aux): Add check_pf.
2495         * include/ifaddrs.h: Add prototype for __check_pf.
2496         * sysdeps/generic/check_pf.c: New file.
2497         * sysdeps/unix/sysv/linux/check_pf.c: New file.
2498         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2499         from no_netlink_support.  Export.
2500         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2501         call __check_pf.
2502
2503         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2504
2505         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2506         from getifaddr calls.
2507
2508 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
2509
2510         * sysdeps/unix/sysv/linux/kernel-features.h
2511         (__ASSUME_SETRESGID_SYSCALL): Define.
2512         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2513         instead of __ASSUME_SETRESUID_SYSCALL.
2514         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2515         defined.
2516         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2517         inline syscall if __NR_setresuid32 is defined.
2518         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2519         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2520         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2521         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2522         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2523         code handling non-existant setresgid32 syscall with
2524         #if __ASSUME_SETRESGID_SYSCALL == 0.
2525
2526 2003-06-09  Andreas Schwab  <schwab@suse.de>
2527
2528         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2529         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2530         $(objpfx)rpc-proto.d.
2531         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
2532         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2533         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2534
2535 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
2536
2537         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2538         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
2539         defined drop compatibility code.
2540         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2541         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
2542         defined drop compatibility code.
2543         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2544         setresuid32 syscall directly if possible.
2545         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2546         setresgid32 syscall directly if possible.
2547         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2548         compliant.  Don't change sgid.
2549         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2550         compliant.  Don't change suid.
2551
2552         * config.h.in: Add have-forced-unwind.
2553         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2554
2555 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
2556
2557         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2558         returned status from child matches.
2559
2560         * Makeconfig (gnulib): Add -lgcc_eh once again.
2561
2562 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
2563
2564         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2565
2566         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2567         %edx for first parameter.  This means no pushl and therefore the
2568         unwind info isn't screwed up.
2569
2570 2003-06-04  Richard Henderson  <rth@redhat.com>
2571
2572         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2573         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2574         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
2575         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2576         entry sequence and explicit relocs.  Add unwind info for sigreturn
2577         and rt_sigreturn.
2578         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2579
2580         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2581         Annotate some parameters.
2582         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2583
2584         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2585
2586         * include/libc-symbols.h (symbol_set_declare): Use arrays
2587         of unspecified size.
2588
2589 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2590
2591         * config.make.in (ASFLAGS-config): New.
2592         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2593         * configure.in (libc_cv_as_noexecstack): New check.
2594         (ASFLAGS_config): Substitute.
2595
2596 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2597
2598         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2599         hypot, logb): Protect with #ifdef __FAST_MATH__.
2600
2601 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
2602
2603         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2604         #ifdef __FAST_MATH__.
2605
2606 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
2607
2608         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2609         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2610         * posix/globtest.sh: Adjust for this change.
2611
2612         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2613         to get the actual PID value used in the records passed up.
2614         (getifaddrs): Don't initialize nh.pid here.
2615
2616 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
2617
2618         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2619         optimization.
2620
2621         * po/zh_CN.po: Update from translation team.
2622
2623         * posix/getconf.c (main): Also recognize names without the
2624         _POSIX_ prefix.
2625
2626         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2627
2628 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
2629
2630         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2631         ldexpf, ldexpl): Only define if __FAST_MATH__.
2632
2633 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
2634
2635         Replace hard-coded offsets into struct sigcontext with generated file.
2636         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2637         * sysdeps/unix/sysv/linux/ia64/Makefile
2638         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2639         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2640         defining SC_* macros here.
2641
2642 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
2643
2644         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2645
2646 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
2647
2648         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2649
2650 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
2651
2652         * test-skeleton.c (main): Request getopt to not reorder the
2653         command line.
2654
2655         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2656
2657         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2658         stpncpy.
2659
2660 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2661
2662         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2663
2664 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
2665
2666         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2667         New function.
2668         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2669         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
2670         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2671
2672 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2673
2674         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2675         CFI directives.
2676
2677         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2678
2679         * libio/fileops.c (_IO_file_open): Don't mark as inline.
2680
2681         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2682         attribute used.
2683
2684 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
2685
2686         * scripts/config.guess: Update from master copy.
2687         * scripts/config.sub: Likewise.
2688
2689 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
2690
2691         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2692         SETUP_GP64 and friends.
2693         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2694         names in internal_syscall{6,7}.
2695         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2696         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2697         number of syscall arguments.
2698         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2699         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2700         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2701
2702 2003-05-30  Andreas Jaeger  <aj@suse.de>
2703
2704         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2705         Add CFI directives.
2706
2707         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2708         directives.
2709
2710         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2711
2712         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2713         Add CFI directives.
2714
2715 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
2716
2717         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2718         SHARED.
2719
2720 2003-05-11  Andreas Schwab  <schwab@suse.de>
2721
2722         * Makerules: Always use -MP together with -MD.
2723         (sed-remove-dotot): Substitute $(..) also at start of line.
2724         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2725         Generated defines with a single compiler call.
2726         Use $(sed-remove-dotdot).
2727         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2728         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2729         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2730         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2731         * sysdeps/unix/sysv/linux/mips/Makefile
2732         ($(objpfx)syscall-%.h): Likewise.
2733
2734 2003-05-28  Roland McGrath  <roland@redhat.com>
2735
2736         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2737
2738 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
2739
2740         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2741
2742 2003-05-28  Roland McGrath  <roland@redhat.com>
2743
2744         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2745         rt_sigprocmask system call.
2746         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2747         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2748
2749 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
2750
2751         * include/libc-symbols.h: Define hidden attribute for real also if
2752         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
2753
2754         * csu/Makefile: Add rules to build Scrt1.o.
2755         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2756         * sysdeps/x86_64/elf/start.S: Likewise.
2757
2758 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
2759
2760         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2761         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2762         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2763         pa_short_int, pa_u_short_int and pa_float.
2764
2765 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
2766
2767         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2768         _IO_str_init_static_internal.
2769         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2770         change size argument to _IO_size_t, don't limit sprintf to 64M.
2771         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2772         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2773         _IO_size_t, don't limit swprintf to 256M.
2774         (_IO_wstr_init_readonly): Remove.
2775         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2776         Adjust prototypes.
2777         (_IO_wstr_init_readonly): Remove prototype.
2778         * libio/iovsprintf.c (_IO_vsprintf): Use
2779         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2780         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2781         * libio/memstream.c (open_memstream): Likewise.
2782         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2783         * libio/vasprintf.c (_IO_vasprintf): Likewise.
2784         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2785         * stdio-common/tst-sprintf.c (main): Add new test.
2786
2787 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
2788
2789         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2790         other implementation in respect of multiple uses of parameter with
2791         different types.
2792
2793 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
2794
2795         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2796         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2797
2798 2003-05-22  Andreas Jaeger  <aj@suse.de>
2799
2800         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2801         directives.
2802         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2803         * sysdeps/x86_64/strtok.S: Likewise.
2804
2805 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
2806
2807         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2808         to -60 and define SI_TKILL.
2809
2810 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2811
2812         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2813         (feexcp_mask_test): Likewise.
2814
2815 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
2816
2817         * locale/programs/locale.c (main): Fix typo in last patch.
2818
2819         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2820         __init_array_start, __init_array_end, __fini_array_start, and
2821         __fini_array_end as hidden.
2822
2823 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
2824
2825         * locale/programs/locale.c (main): Report an error if setlocale()
2826         fails [PR libc/2254].
2827
2828 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
2829
2830         * sysdeps/unix/sysv/linux/s390/system.c: New file.
2831
2832 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
2833
2834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2835         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2836         LOADARGS_6): Don't error if syscall argument is a string literal.
2837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2838         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2839         LOADARGS_6): Likewise.
2840
2841 2003-05-21  Andreas Jaeger  <aj@suse.de>
2842
2843         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2844         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2845         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2846
2847         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2848         (ENTRY): Likewise.
2849         (END): Likewise.
2850
2851         * configure.in: Test for asm cfi directives.
2852
2853         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2854
2855 2003-05-17  Andreas Jaeger  <aj@suse.de>
2856
2857         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2858
2859         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2860
2861 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
2862
2863         * rt/Makefile (tests): Add tst-clock_nanosleep.
2864         * rt/tst-clock_nanosleep.c: New file.
2865         * posix/Makefile (tests): Add tst-nanosleep.
2866         * posix/tst-nanosleep.c: New file.
2867
2868         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2869
2870         * include/features.h (__USE_XOPEN2K): Define also for
2871         _POSIX_C_SOURCE>=200112L.
2872
2873         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2874         SI_TKILL code into SI_USER.
2875         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2876
2877         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2878
2879 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
2880
2881         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2882         Remove sym argument, always use refsym.
2883         (__process_machine_rela): Adjust callers.
2884         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2885         Likewise.
2886         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2887         Adjust prototype.
2888         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2889
2890 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
2891
2892         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2893         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
2894         print numeric values.
2895
2896 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
2897
2898         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2899
2900 2003-05-14  Andreas Schwab  <schwab@suse.de>
2901
2902         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2903
2904 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
2905
2906         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2907         even if no DT_NEEDED is present.
2908
2909 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
2910
2911         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2912         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2913         __sigjmp_save) so we can't keep the saved unat value in a scratch
2914         register (r16).  Use loc2 instead.
2915
2916 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
2917
2918         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2919         binaries it has to be relocatable.
2920
2921         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2922
2923 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2924
2925         * sysdeps/powerpc/bits/atomic.h
2926         (__arch_compare_and_exchange_bool_8_rel): Define.
2927         (__arch_compare_and_exchange_bool_16_rel): Define.
2928         (__ARCH_REL_INSTR): Define if not already defined.
2929         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2930         (__arch_atomic_decrement_if_positive_32):
2931         Add "memory" to clobber list.
2932         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2933         (__arch_compare_and_exchange_val_32_rel): Define.
2934         (__arch_atomic_exchange_32): Remove.
2935         (__arch_atomic_exchange_32_acq): Define.
2936         (__arch_atomic_exchange_32_rel): Define.
2937         (atomic_compare_and_exchange_val_rel): Define.
2938         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2939         (atomic_exchange_rel): Define.
2940         * sysdeps/powerpc/powerpc32/bits/atomic.h
2941         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2942         (__arch_compare_and_exchange_bool_32_rel): Define.
2943         (__arch_compare_and_exchange_bool_64_rel): Define.
2944         (__arch_compare_and_exchange_val_64_rel): Define.
2945         (__arch_atomic_exchange_64): Remove.
2946         (__arch_atomic_exchange_64_acq): Define.
2947         (__arch_atomic_exchange_64_rel): Define.
2948         * sysdeps/powerpc/powerpc64/bits/atomic.h
2949         (__arch_compare_and_exchange_bool_32_rel): Define.
2950         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2951         (__arch_compare_and_exchange_bool_64_rel): Define.
2952         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2953         (__arch_compare_and_exchange_val_64_rel): Define.
2954         (__arch_atomic_exchange_64): Remove.
2955         (__arch_atomic_exchange_64_acq): Define.
2956         (__arch_atomic_exchange_64_rel): Define.
2957         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2958         (__arch_atomic_decrement_if_positive_64):
2959         Add "memory" to clobber list.
2960         [!UP](__ARCH_REL_INSTR): Define as lwsync.
2961
2962 2003-05-11  Andreas Schwab  <schwab@suse.de>
2963
2964         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2965
2966 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
2967
2968         * time/tst-strftime.c (do_test): Add tests for - flag.
2969
2970 2003-05-11  Jim Meyering  <jim@meyering.net>
2971
2972         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2973         the space-padded-by-default conversion specifiers, %e, %k, %l.
2974
2975 2003-05-11  Andreas Schwab  <schwab@suse.de>
2976
2977         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2978
2979 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2980
2981         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2982         already defined and when really needed.
2983         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2984
2985 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
2986
2987         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2988         headers, add defines from kernel header, move it from here...
2989         * inet/netinet/igmp.h: ... to here.
2990         * inet/Makefile (headers): Add netinet/igmp.h.
2991         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2992         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2993
2994 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2995
2996         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2997         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2998
2999 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
3000
3001         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3002         (remove __THROW from possible cancellation points).
3003
3004 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
3005
3006         * posix/sched.h (CPU_SETSIZE): Define.
3007
3008 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
3009
3010         * Makeconfig (gnulib): Remove -lgcc_eh again.
3011
3012         * posix/sched.h: Change prototypes of sched_getaffinity and
3013         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3014         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3015         * sysdeps/generic/sched_setaffinity.c: Likewise.
3016         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3017         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3018         __CPU_CLR, and __CPU_ISSET.
3019         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3020         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3021         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3022
3023         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3024         (atomic_exchange_rel): New #define.
3025         * sysdeps/ia64/bits/atomic.h: Likewise.
3026         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3027         atomic_exchange.
3028         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3029         * sysdeps/powerpc/bits/atomic.h: Likewise.
3030         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3031         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3032         * sysdeps/x86_64/bits/atomic.h: Likewise.
3033         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3034
3035         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3036
3037 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
3038
3039         * malloc/thread-m.h: Remove special handling of thread_atfork if
3040         HAVE_register_atfork_malloc is defined.
3041
3042 2003-05-07  Andreas Jaeger  <aj@suse.de>
3043
3044         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3045         information.
3046
3047 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
3048
3049         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3050         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3051         * libio/libioP.h: Declare _IO_old_init.
3052         * libio/genops.c (_IO_no_init): Split in two.  New function
3053         _IO_old_init.
3054
3055 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
3056
3057         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3058         variable.
3059         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3060         is nonzero.
3061         * include/unistd.h: Declare __libc_enable_secure_decided.
3062         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3063         and AT_EGID.  If all found, set __libc_enable_secure and
3064         __libc_enable_secure_decided.
3065
3066         * sysdeps/generic/libc-start.c [!SHARED]: Call
3067         __libc_check_standard_fds after __libc_init_first.
3068
3069 2003-05-05  Roland McGrath  <roland@redhat.com>
3070
3071         * Makerules (common-before-compile): New variable.
3072         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3073         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
3074         to after all setting of before-compile.
3075
3076 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
3077
3078         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3079         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3080         * sysdeps/powerpc/powerpc32/bits/atomic.h
3081         (__arch_compare_and_exchange_val_64_acq): Likewise.
3082         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3083         (__arch_compare_and_exchange_val_8_acq,
3084         __arch_compare_and_exchange_val_16_acq,
3085         __arch_compare_and_exchange_val_64_acq): Likewise.
3086         * sysdeps/sparc/sparc64/bits/atomic.h
3087         (__arch_compare_and_exchange_val_8_acq,
3088         __arch_compare_and_exchange_val_16_acq): Likewise.
3089         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3090         __arch_compare_and_exchange_val_16_acq,
3091         __arch_compare_and_exchange_val_64_acq): Likewise.
3092         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3093         (__arch_compare_and_exchange_val_64_acq): Likewise.
3094         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3095         up warning.
3096         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3097
3098         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3099         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3100         Return long instead of int.
3101         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3102         0xfffff001u with -4095UL.
3103
3104 2003-05-05  Andreas Jaeger  <aj@suse.de>
3105
3106         * sysdeps/x86_64/fpu_control.h: New from i386.
3107
3108         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3109         Define if not defined.
3110
3111         * sunrpc/Makefile (generated-dirs): New variable.
3112         * resolv/Makefile (generated): New variable.
3113
3114 2003-05-04  Roland McGrath  <roland@redhat.com>
3115
3116         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3117         Depend on $(before-compile).
3118
3119         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3120         pattern rule.  The implicit rule could be ruled out when $(objpfx)
3121         didn't exist at the time of its consideration (ugh!).
3122
3123         * Makerules (+make-deps): Fix target matching.
3124         Use $(sed-remove-dotdot).
3125
3126 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
3127
3128         * nscd/nscd.c (main): Parse config file right after parsing
3129         parameters.  Then, if get_stats is true, call receive_print_stats.
3130         Drop parameter from nscd_init call.
3131         (get_stats): New variable.
3132         (parse_opt): Set get_stats, don't call receive_print_stats here.
3133         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
3134         prototype.
3135         * nscd/connections.c (stat_user, stat_uid): New variables.
3136         (dbs): Make global.
3137         (nscd_init): Don't read configuration file here.  Drop parameter.
3138         (handle_request): Cleanup handling of non-database lookup requests.
3139         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3140         Get UID of the specified user.  Use xstrdup instead of strdup.
3141         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
3142         check stat_user.
3143         * nscd/Makefile (nscd-modules): Add xstrdup.
3144         * nscd/nscd.conf: Document stat-user entry.
3145
3146 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
3147
3148         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3149         if not defined.
3150
3151 2003-04-22  Roland McGrath  <roland@redhat.com>
3152
3153         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3154         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3155         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3156         * elf/dl-support.c: Update defn.
3157         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3158         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3159         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3160         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3161         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3162         set, set up a link_map for the preloaded, prelinked object.
3163
3164 2003-05-03  Roland McGrath  <roland@redhat.com>
3165
3166         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3167         * stdio-common/Makefile: ... not here.
3168
3169         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3170         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3171
3172 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
3173
3174         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3175
3176         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3177
3178         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3179         comparing ftab elements.
3180         (_dl_unmap): Fix typo in test.
3181         (_dl_make_fptr): Fix typos introduced in last change.
3182
3183         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3184         original patch.  Use non-exported symbols.  Mark translatable
3185         strings.  Pretty printing.
3186
3187 2003-05-02  Roland McGrath  <roland@redhat.com>
3188
3189         * Makerules (do-stamp): Do $(make-target-directory).
3190
3191 2003-04-07  H.J. Lu  <hjl@gnu.org>
3192
3193         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3194
3195 2003-04-03  H.J. Lu  <hjl@gnu.org>
3196
3197         * sysdeps/ia64/dl-fptr.c: Moved to ...
3198         * sysdeps/generic/dl-fptr.c: Here.
3199
3200         * sysdeps/generic/dl-fptr.h: New.
3201         * sysdeps/ia64/dl-fptr.h: New.
3202
3203         * sysdeps/ia64/dl-symaddr.c: Moved to ...
3204         * sysdeps/generic/dl-symaddr.c: here.
3205
3206         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3207         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3208         (ia64_fdesc): Likewise.
3209         (ia64_fdesc_table): Likewise.
3210         (__ia64_make_fptr): Likewise.
3211         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3212         with _dl_boot_fptr_table.
3213         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3214         `struct fdesc'.
3215         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3216
3217 2003-05-01  Roland McGrath  <roland@redhat.com>
3218
3219         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3220         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3221
3222         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3223         Use $(make-target-directory).
3224         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3225
3226         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3227         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
3228         (compile-command.s, compile-command.c): Likewise.
3229         ($(objpfx)%.d): All such pattern rules removed.
3230         ($(+sysdir_pfx)sysd-rules): Don't generate them.
3231         ($(common-objpfx)dummy.d): Target removed.
3232         (make-dummy-dep): Variable removed.
3233         (generate-md5): Likewise.
3234         (%.d: %.dt): New pattern rule.
3235         (+depfiles): Use $(wildcard) function to get just existing *.d files
3236         and .d files for existing *.dt files.
3237         (common-clean): Remove all *.d and *.dt files.
3238         (before-compile): Add $(objpfx). when it doesn't exist,
3239         regardless of $(no_deps).
3240         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
3241         (rtld-depfiles): Use .os.d instead of .d names.
3242         Include existing *.d files and .d files for existing *.dt files.
3243
3244         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
3245         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
3246
3247         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
3248         Do s-*.d includes only if we have some syscall routines in this subdir.
3249
3250         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
3251         @nobits.  The former is accepted by gas on any ELF platform.
3252
3253 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
3254
3255         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
3256
3257         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
3258
3259 2003-04-29  Andreas Schwab  <schwab@suse.de>
3260
3261         * string/test-strcat.c (do_one_test): Fix attribute name.
3262
3263 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
3264
3265         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
3266         uc_flags long for all ABIs.
3267
3268 2003-04-30  Andreas Jaeger  <aj@suse.de>
3269
3270         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
3271         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
3272         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
3273         Add bi-arch support.
3274
3275 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
3276
3277         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
3278         (__posix_memalign): Use __memalign_internal instead of memalign.
3279
3280 2003-04-29  Roland McGrath  <roland@redhat.com>
3281
3282         * configure.in: Search for AUTOCONF unconditionally.
3283         Just don't complain about missing it under --without-cvs.
3284
3285         * include/libc-symbols.h (__symbol_set_attribute): New macro,
3286         give hidden for [SHARED] and weak for [! SHARED].
3287         (symbol_set_declare): Use that.  Never need weak_extern these days.
3288         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
3289         Depend on $(..)Makerules.
3290
3291 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
3292
3293         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
3294         variants of socket, bind, recvmsg, and sendto.
3295
3296         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
3297
3298         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
3299         * signal/sigaddset.c: Add libc_hidden_def.
3300         * signal/sigdelset.c: Likewise.
3301
3302 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
3303
3304         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
3305         to the end of the file.
3306
3307         * configure.in: Change __oline__ to $LINENO.
3308         (HAVE_BUILTIN_REDIRECTION): New check.
3309         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
3310         * include/libc-symbols.h (libc_hidden_builtin_proto,
3311         libc_hidden_builtin_def, libc_hidden_builtin_weak,
3312         libc_hidden_builtin_ver): Define.
3313         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
3314         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
3315         strspn, strstr): Add libc_hidden_builtin_proto.
3316         * intl/plural.y: Include string.h.
3317         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
3318         libc_hidden_builtin_def.
3319         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
3320         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
3321         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
3322         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
3323         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
3324         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
3325         * sysdeps/alpha/memchr.S (memchr): Likewise.
3326         * sysdeps/alpha/memset.S (memset): Likewise.
3327         * sysdeps/alpha/strcat.S (strcat): Likewise.
3328         * sysdeps/alpha/strchr.S (strchr): Likewise.
3329         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
3330         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
3331         * sysdeps/alpha/strlen.S (strlen): Likewise.
3332         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
3333         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
3334         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
3335         * sysdeps/arm/memset.S (memset): Likewise.
3336         * sysdeps/arm/strlen.S (strlen): Likewise.
3337         * sysdeps/generic/memchr.c (memchr): Likewise.
3338         * sysdeps/generic/memcpy.c (memcpy): Likewise.
3339         * sysdeps/generic/memmove.c (memmove): Likewise.
3340         * sysdeps/generic/memset.c (memset): Likewise.
3341         * sysdeps/generic/strcat.c (strcat): Likewise.
3342         * sysdeps/generic/strchr.c (strchr): Likewise.
3343         * sysdeps/generic/strcmp.c (strcmp): Likewise.
3344         * sysdeps/generic/strcpy.c (strcpy): Likewise.
3345         * sysdeps/generic/strcspn.c (strcspn): Likewise.
3346         * sysdeps/generic/strlen.c (strlen): Likewise.
3347         * sysdeps/generic/strncmp.c (strncmp): Likewise.
3348         * sysdeps/generic/strncpy.c (strncpy): Likewise.
3349         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
3350         * sysdeps/generic/strrchr.c (strrchr): Likewise.
3351         * sysdeps/generic/strspn.c (strspn): Likewise.
3352         * sysdeps/generic/strstr.c (strstr): Likewise.
3353         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3354         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3355         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
3356         * sysdeps/i386/i586/memset.S (memset): Likewise.
3357         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
3358         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
3359         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3360         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
3361         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3362         * sysdeps/i386/i686/memset.S (memset): Likewise.
3363         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3364         * sysdeps/i386/memchr.S (memchr): Likewise.
3365         * sysdeps/i386/memset.c (memset): Likewise.
3366         * sysdeps/i386/strchr.S (strchr): Likewise.
3367         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3368         * sysdeps/i386/strlen.c (strlen): Likewise.
3369         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3370         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3371         * sysdeps/i386/strspn.S (strspn): Likewise.
3372         * sysdeps/ia64/memchr.S (memchr): Likewise.
3373         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
3374         * sysdeps/ia64/memmove.S (memmove): Likewise.
3375         * sysdeps/ia64/memset.S (memset): Likewise.
3376         * sysdeps/ia64/strcat.S (strcat): Likewise.
3377         * sysdeps/ia64/strchr.S (strchr): Likewise.
3378         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
3379         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
3380         * sysdeps/ia64/strlen.S (strlen): Likewise.
3381         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
3382         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
3383         * sysdeps/m68k/memchr.S (memchr): Likewise.
3384         * sysdeps/m68k/strchr.S (strchr): Likewise.
3385         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
3386         * sysdeps/mips/mips64/memset.S (memset): Likewise.
3387         * sysdeps/mips/memcpy.S (memcpy): Likewise.
3388         * sysdeps/mips/memset.S (memset): Likewise.
3389         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3390         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
3391         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
3392         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
3393         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
3394         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3395         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3396         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
3397         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
3398         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
3399         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
3400         * sysdeps/powerpc/strcat.c (strcat): Likewise.
3401         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
3402         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
3403         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
3404         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
3405         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
3406         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
3407         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
3408         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
3409         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
3410         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
3411         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
3412         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
3413         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
3414         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
3415         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
3416         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
3417         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
3418         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
3419         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
3420         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
3421         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
3422         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
3423         * sysdeps/sh/memcpy.S (memcpy): Likewise.
3424         * sysdeps/sh/memset.S (memset): Likewise.
3425         * sysdeps/sh/strlen.S (strlen): Likewise.
3426         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
3427         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
3428         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
3429         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
3430         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
3431         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
3432         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
3433         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
3434         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
3435         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
3436         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
3437         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
3438         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3439         * sysdeps/x86_64/memset.S (memset): Likewise.
3440         * sysdeps/x86_64/strcat.S (strcat): Likewise.
3441         * sysdeps/x86_64/strchr.S (strchr): Likewise.
3442         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
3443         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
3444         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
3445         * sysdeps/x86_64/strlen.S (strlen): Likewise.
3446         * sysdeps/x86_64/strspn.S (strspn): Likewise.
3447         * string/string-inlines.c: Move...
3448         * sysdeps/generic/string-inlines.c: ...here.
3449         (__memcpy_g, __strchr_g): Remove.
3450         (__NO_INLINE__): Define before including <string.h>,
3451         undefine after.  Include bits/string.h and bits/string2.h.
3452         * sysdeps/i386/i486/string-inlines.c: New file.
3453         * sysdeps/i386/string-inlines.c: New file.
3454         * sysdeps/i386/i486/Versions: Remove.
3455         All GLIBC_2.1.1 symbols moved...
3456         * sysdeps/i386/Versions (libc): ...here.
3457
3458 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
3459
3460         * sysdeps/i386/fpu/Makefile: New file.
3461         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
3462         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
3463         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
3464         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
3465         [PR libc/4987].
3466
3467 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
3468
3469         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
3470         * nscd/nscd_getpw_r.c: Likewise.
3471         * nscd/nscd_gethst_r.c: Likewise.
3472
3473 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
3474
3475         * nscd/pwdcache.c: Initialize .version element in result.
3476         * nscd/grpcache.c: Likewise.
3477         * nscd/pwdcache.c: Likewise.
3478
3479 2003-04-27  Andreas Schwab  <schwab@suse.de>
3480
3481         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
3482         subdirectory.
3483
3484 2003-04-27  Andreas Schwab  <schwab@suse.de>
3485
3486         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
3487
3488 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
3489
3490         * nscd/connections.c (client_queued): New variable.
3491         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
3492         threads.  Keep track of the number of delays caused because of busy
3493         worker threads.
3494         * nscd/nscd.h: Declare client_queued.
3495         * nscd/nscd_stat.c: Transmit and print client_queued information.
3496
3497         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
3498
3499         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
3500         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
3501
3502 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
3503
3504         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
3505         tracking of freed memory in static TLS block.
3506         * elf/Makefile: Add rules to build and run tst-tls13.
3507         * elf/tst-tls13.c: New file.
3508         * elf/tst-tlsmod13.c: New file.
3509         * elf/tst-tlsmod13a.c: New file.
3510
3511         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
3512
3513         * elf/dl-reloc.c: Pretty printing.
3514
3515 2003-04-26  Roland McGrath  <roland@redhat.com>
3516
3517         * Makerules ($(common-objpfx)shlib.lds): New target.
3518         (common-generated): Add it.
3519         (build-shlib, build-module): Use that instead of generating every time.
3520         ($(common-objpfx)libc.so): Depend on it.
3521         (lib%.so rule): Likewise.
3522         (build-module-helper-objlist): Remove %.lds.
3523         (LDSEDCMD-c.so): Variable removed.
3524         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
3525         Depend on $(common-objpfx)shlib.lds.
3526         * dlfcn/Makefile ($(test-modules)): Likewise.
3527
3528 2003-04-26  Roland McGrath  <roland@frob.com>
3529
3530         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
3531
3532 2003-04-26  Andreas Schwab  <schwab@suse.de>
3533
3534         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
3535
3536 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
3537