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