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