Update.
[glibc.git] / ChangeLog
blob0b78e5eba0edb669351b08330ed7c8254b1bcde4
1 2003-08-31  Philip Blundell  <philb@gnu.org>
3         * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
4         posix_fallocate64 at GLIBC_2.3.3.
6 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
8         * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
9         * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
11 2003-08-30  Jakub Jelinek  <jakub@redhat.com>
13         * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
14         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
15         included multiple times.
16         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
17         ptid, tls, ctid arguments to the kernel.
18         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
19         Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
20         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
21         (__libc_sigaction): Use INLINE_SYSCALL instead of
22         __syscall_rt_sigaction.
23         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
24         (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
25         __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
26         __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
27         __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
28         __syscall_rt_sigpending, __syscall_rt_sigprocmask,
29         __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
30         __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
31         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
32         Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
33         rt_sigqueueinfo, rt_sigaction and rt_sigpending.
34         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
35         (__CLONE_SYSCALL_STRING): Define.
36         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
37         CFI directives.
38         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
39         (__CLONE_SYSCALL_STRING): Define.
40         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
41         Define.
42         * sysdeps/unix/sysv/linux/sparc/system.c: New file.
44 2003-08-30  Ulrich Drepper  <drepper@redhat.com>
46         * sunrpc/rpc/clnt.h: Remove a few __THROW.
47         * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
48         (CFLAGS-key_call.c): Likewise.
49         (CFLAGS-pmap_rmt.c): Likewise.
50         (CFLAGS-clnt_perr.c): Likewise.
51         * sunrpc/rpc/auth.h: Remove serveral __THROW.
53         * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
54         (CFLAGS-gethstbynm_r.c): Likewise.
55         (CFLAGS-gethstbynm2_r.c): Likewise.
56         (CFLAGS-rcmd.c): Likewise.
57         * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
59         * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
60         (CFLAGS-argp-fmtstream.c): Likewise.
61         * argp/argp.h: Remove a number of __THROW.
63         * misc/sys/syslog.h (vsyslog): Remove __THROW.
65         * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
66         * misc/getpass.c (getpass): Add cleanup handler to ensure the
67         stream is closed even if the thread is canceled.
68         (call_fclose): New function.
69         * posix/unistd.h: Remove __THROW from getpass prototype.
71         * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
73         * signal/signal.h (psignal): Remove __THROW.
74         * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
76         * misc/Makefile (CFLAGS-error.c): Define.
77         * misc/error.c (error): Disable cancellation handling around the
78         actual output.  The message should in any case be printed.
79         (error_at_line): Likewise.
81         * misc/error.h: Protect parameter names with leading __.
83 2003-08-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
85         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
87 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
89         * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
90         end.
92 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
94         * libio/stdio.h: Remove a few more __THROW.
96 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
98         * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
99         fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
100         getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
101         iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
102         iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
103         iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
104         ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
105         oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
106         oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
107         putwchar.c and rewind.c with exceptions.
108         * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
109         _IO_release_lock): Define.
110         * libio/fileops.c (_IO_new_file_underflow): Use it.
111         * libio/fputc.c (fputc): Likewise.
112         * libio/fputwc.c (fputwc): Likewise.
113         * libio/freopen64.c (freopen64):
114         * libio/freopen.c (freopen): Likewise.
115         * libio/fseek.c (fseek): Likewise.
116         * libio/fseeko64.c (fseeko64): Likewise.
117         * libio/fseeko.c (fseeko): Likewise.
118         * libio/ftello64.c (ftello64): Likewise.
119         * libio/ftello.c (ftello): Likewise.
120         * libio/fwide.c (fwide): Likewise.
121         * libio/getc.c (_IO_getc): Likewise.
122         * libio/getchar.c (getchar): Likewise.
123         * libio/getwc.c (_IO_getwc): Likewise.
124         * libio/getwchar.c (getwchar): Likewise.
125         * libio/iofclose.c (_IO_new_fclose):
126         * libio/iofflush.c (_IO_fflush): Likewise.
127         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
128         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
129         * libio/iofgets.c (_IO_fgets): Likewise.
130         * libio/iofgetws.c (fgetws): Likewise.
131         * libio/iofputs.c (_IO_fputs): Likewise.
132         * libio/iofputws.c (fputws): Likewise.
133         * libio/iofread.c (_IO_fread): Likewise.
134         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
135         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
136         * libio/ioftell.c (_IO_ftell): Likewise.
137         * libio/iofwrite.c (_IO_fwrite): Likewise.
138         * libio/iogetdelim.c (_IO_getdelim): Likewise.
139         * libio/iogets.c (_IO_gets): Likewise.
140         * libio/ioputs.c (_IO_puts): Likewise.
141         * libio/ioseekoff.c (_IO_seekoff): Likewise.
142         * libio/ioseekpos.c (_IO_seekpos): Likewise.
143         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
144         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
145         * libio/ioungetc.c (_IO_ungetc): Likewise.
146         * libio/ioungetwc.c (ungetwc): Likewise.
147         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
148         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
149         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
150         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
151         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
152         * libio/peekc.c (_IO_peekc_locked): Likewise.
153         * libio/putc.c (_IO_putc): Likewise.
154         * libio/putchar.c (putchar): Likewise.
155         * libio/putwc.c (putwc): Likewise.
156         * libio/putwchar.c (putwchar): Likewise.
157         * libio/rewind.c (rewind): Likewise.
158         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
160 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
162         * signal/signal.h: sighold, sigrelse, sigignore, sigset were
163         available in XPG4.2.
165 2003-08-27  Phil Knirsch  <pknirsch@redhat.com>
166             Jakub Jelinek  <jakub@redhat.com>
168         * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
169         big endian arches.  Don't read beyond end of fds_bits array.
171 2003-04-27  Bruno Haible  <bruno@clisp.org>
173         * manual/message.texi (Advanced gettext functions): Add information
174         about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
175         Add section about Lithuanian, reported by Ricardas Cepas
176         <rch@richard.eu.org>.
177         Add information about Croatian.
178         Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
179         Remove remark about continuation lines that is not true for PO files.
180         Fix formula for Slovenian, reported by Roman Maurer
181         <roman.maurer@amis.net>.
183 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
185         * math/math_private.h: Declare __copysignf.
186         * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
187         copysignf.
189         * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
190         __signbit, and __signbitl inline functions.
192         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
193         HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
195         * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
196         * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
198 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
200         * inet/inet_mkadr.c (inet_makeaddr): Optimize.
202 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
204         * include/stdio.h: Add declarations for __builtin_fwrite and
205         __builtin_fwrite_unlocked.
207 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
209         * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
210         fits into allocation.  Add padding on 32-bit arches so that
211         dirp->data is enough aligned for struct dirent64.
212         Avoid clearing of the buffer, just clear DIR structure.
214 2003-08-26  Ulrich Drepper  <drepper@redhat.com>
216         * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
217         * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
219 2003-08-26  Steven Munroe  <sjmunroe@us.ibm.com>
221         * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
223 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
225         * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
226         to match format string.
227         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
228         __old_buf.
229         (__new_semctl): Shut up warning.
230         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
231         (_dl_string_hwcap): Add __attribute__ ((always_inline)).
233 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
235         * elf/ldconfig.c (search_dir): When checking for GNU-style .so
236         link file use the real file name, not the resolved name we got by
237         following the symlinks.
239 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
241         * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
242         if the object size is large enough.
244 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
246         * elf/ldconfig.c (search_dir): Treat symlink as regular file
247         if it won't point to itself unless it is .so symlink for the linker.
249 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
251         * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
252         use _mode if _IO_fwide_maybe_incompatible.
253         * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
254         the compatibility test.
256 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
258         * elf/cache.c (save_cache): Don't write beyond end of file_entries
259         buffer.
260         Duplicate last old cache entry if the count would be odd.
262 2003-08-25  Andreas Jaeger  <aj@suse.de>
264         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
265         __LONG_LONG_PAIR to long.
267 2003-08-25  Philip Blundell  <philb@gnu.org>
269         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
270         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
272 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
274         * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
275         and use __libc_cleanup_region_end instead.
277 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
279         * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
281 2003-08-22  Ulrich Drepper  <drepper@redhat.com>
283         * io/fcntl.h (posix_fallocate): Change type of third parameter to
284         off_t.
285         (posix_fallocate64): Change type of third parameter to off64_t.
286         * sysdeps/generic/posix_fallocate.c: Adjust for type change.
287         * sysdeps/posix/posix_fallocate.c: Likewise.
288         * sysdeps/generic/posix_fallocate64.c: Likewise.
289         * sysdeps/posix/posix_fallocate64.c: Likewise.  Add compatibility
290         code for 32-bit platforms.
291         * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
292         posix_fallocate64.
293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
294         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
295         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
297 2003-08-19  Ulrich Drepper  <drepper@redhat.com>
299         * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
300         the type, not to name.
302         * stdio-common/test-vfprintf.c (main): Don't write temporary file
303         into source directory.
305         * malloc/malloc.c (_int_free): Add cheap test for some invalid
306         block sizes.
308         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
309         syscall name.
311 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
313         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
314         into EINVAL.
316 2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>
318         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
319         (elf_machine_lazy_rel): Likewise.
321 2003-08-18  Art Haas  <ahaas@airmail.net>
323         * malloc/malloc.h: Remove unneeded ';' where closing the C++
324         extern block.
326 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
328         * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
329         loading big binaries where @gprel(sym) cannot be handled in 'add'
330         but instead has to be used with 'movl'.
332 2003-08-17  Juergen Kreileder <jk@blackdown.de>
333             Andreas Jaeger  <aj@suse.de>
335         * sysdeps/x86_64/bits/byteswap.h: New file.
337 2003-08-17  Andreas Jaeger  <aj@suse.de>
339         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
341 2003-08-16  Jakub Jelinek  <jakub@redhat.com>
343         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
344         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
345         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
346         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
347         * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
348         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
349         * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
350         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
351         * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
352         ret_ERRVAL): Define.
353         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
354         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
355         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
356         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
357         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
358         Define.
359         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
360         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
361         * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
363         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
364         posix_fadvise64_64): Remove.
365         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
366         V flag.
367         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
368         Likewise.
369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
370         (posix_fadvise64): Likewise.
371         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
372         (posix_fadvise64): Likewise.
373         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
374         (posix_fadvise64): Likewise.
375         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
376         Likewise.
377         * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
378         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
379         (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
380         (__posix_fadvise64_l32): New function.
381         * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
383         posix_fadvise64@@GLIBC_2.3.3.
384         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
385         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
386         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
387         error value.
388         * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
390         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
391         (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
393 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
395         * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
396         (elf_machine_matches_host): Remove weak extern stuff.
397         Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
398         (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
399         stuff.  Use GL(dl_hwcap) unconditionally.
401 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
403         * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
404         __libc_start_main branch.
406 2003-08-16  Jakub Jelinek <jakub@redhat.com>,
407             Andreas Jaeger  <aj@suse.de>
409         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
410         instead of setting errno.
411         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
413 2003-08-16  Andreas Jaeger  <aj@suse.de>
415         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
416         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
418 2003-08-15  Ulrich Drepper  <drepper@redhat.com>
420         * io/fcntl.h (posix_fadvise64): Change type of third parameter to
421         off_t.
422         * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
423         * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
424         description indicating the error value is returned, not -1.
425         * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
426         __ASSUME_FADVISE64_64_SYSCALL.
427         * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
428         posix_madvise in one file.  Have posix_madvise defined with error
429         value returned.
430         Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
431         entry.
432         * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
433         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
434         PSEUDO_END_ERRVAL, and ret_ERRVAL.
435         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
436         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
437         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
438         posix_fadvise64.
440         * posix/Makefile (routines): Add posix_madvise.
441         * sysdeps/generic/madvise.c: Don't define posix_madvise.
442         * sysdeps/generic/posix_madvise.c: New file.
443         * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
444         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
445         Add posix_fadvise64_64.
447 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
449         * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
450         3.0, not for !gcc or gcc < 3.0.
452 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
454         * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
455         Address passed to test_in_mod1 and test_in_mod2 without casting.
456         * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
457         (test_in_mod1): Cast dlsym loaded value to same type as mainp.
458         * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
459         (test_in_mod2): Cast dlsym loaded value to same type as mainp.
461 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
463         * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
464         Change quotes before using [].
466         * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
468         * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
469         Renamed to...
470         (__sparc32_atomic_locks): ...this.  Change into 64-byte array.
471         (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
472         argument.  Select one of 64 locks from address bits.
473         (atomic_compare_and_exchange_val_acq,
474         atomic_compare_and_exchange_bool_acq): Pass memory address to
475         __sparc32_atomic_do_{,un}lock.
477 2003-08-14  Ulrich Drepper  <drepper@redhat.com>
479         * assert/assert.h (assert): Use !! in front of expression to allow
480         use of pointers.
482         * iconvdata/cp932.c: Fixed checking of a few border of code areas.
483         Changed conversion of JIS X 0201 from using a table to calculating.
484         * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
485         conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
486         EUC-JP-MS.
487         * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
488         * iconvdata/CP932.irreversible: New file.
489         * iconvdata/EUC-JP-MS.irreversible: New file.
490         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
492 2003-08-13  Ulrich Drepper  <drepper@redhat.com>
494         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
496         * elf/Makefile: Use LC_ALL=C in a few cases where we call external
497         text processing tools.
499         * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
500         element unless BROKEN_THREAD_SIGNALS is defined.
501         (struct requestlist): Likewise.
502         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
503         caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
504         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
505         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
506         parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
507         Pass current PID to __aio_sigqueue.
508         * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
509         call.  Don't initialize caller_pid field of waitlist element.
511 2003-08-12  Jakub Jelinek  <jakub@redhat.com>
513         * libio/libioP.h (_IO_vtable_offset): Define.
514         * libio/freopen.c (freopen): Use it.
515         * libio/ioputs.c (_IO_puts): Likewise.
516         * libio/freopen64.c (freopen64): Likewise.
517         * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
518         Likewise.
519         * libio/iofclose.c (_IO_new_fclose): Likewise.
520         * libio/iofputs.c (_IO_fputs): Likewise.
521         * libio/ioftell.c (_IO_ftell): Likewise.
522         * libio/iofwrite.c (_IO_fwrite): Likewise.
523         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
524         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
525         * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
526         * stdio-common/vfscanf.c (ORIENT): Likewise.
528 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
530         * assert/assert.h: Use __builtin_expect in assert and
531         assert_perror definitions if possible.
533 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
535         * sysdeps/generic/ldsodefs.h (_rtld_global): Add
536         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
537         * elf/rtld.c (rtld_lock_default_lock_recursive,
538         rtld_lock_default_unlock_recursive): New functions.
539         (dl_main): Initialize _dl_rtld_lock_recursive and
540         _dl_rtld_unlock_recursive.
542 2003-08-05  Jakub Jelinek  <jakub@redhat.com>
544         * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
545         config_file directories instead of prepending.
547 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
549         * sysdeps/unix/sysv/linux/kernel-features.h: Define
550         __ASSUME_CLONE_STOPPED.
552 2003-08-01  Ulrich Drepper  <drepper@redhat.com>
554         * sysdeps/generic/bits/libc-lock.h
555         (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
557 2003-08-01  Roland McGrath  <roland@frob.com>
559         * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
561 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
563         * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
564         instead of __SWORD_TYPE.
565         * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
566         * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
567         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
568         Define.
569         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
570         Define.
571         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
572         Define.
573         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
575         * dlfcn/dlerror.c (once): New.
576         (dlerror): Call __libc_once.
577         (_dlerror_run): Remove once.
579         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
580         Sync with 2.5.7 and 2.5.73 kernel changes.
582         * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
583         * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
584         formats to size_t.
585         * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
586         * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
587         * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
588         * gmon/tst-sprofil.c (main): Add parens to shut up warning.
589         * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
590         difference argument.
591         * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
592         format to wint_t.
593         * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
594         %d format and cast expected value to int.
595         * sysdeps/generic/libc-start.c (STATIC): Add
596         __attribute__((always_inline) if LIBC_START_MAIN is already defined.
597         * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
598         to ieee_float_shape_type.
599         (__sqrt): Avoid type punning.
600         * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
601         to ieee_float_shape_type.
602         (__sqrtf): Avoid type punning.
603         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
604         refsym if in dl-conflict.c.
605         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
606         * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
607         (__new_semctl): Shut up warning.
608         * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
609         (__new_semctl): Shut up warning.
610         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
611         Change old into union of __old_shmid_ds and __old_shminfo structs.
612         Adjust all users.
613         * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
615         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
616         modtime computation.
617         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
618         * sysdeps/posix/utimes.c (__utimes): Likewise.
620 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
622         * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
623         call dl_signal_error directly.  If already relocated, call
624         GL(dl_init_static_tls) directly, otherwise queue it for later.
625         (CHECK_STATIC_TLS): Undo 2003-07-24 change.
626         * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
627         * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
628         for all static TLS initializations delayed in _dl_allocate_static_tls.
629         * elf/dl-support.c (_dl_init_static_tls): New variable.
630         * include/link.h (struct link_map): Add l_need_tls_init.
631         * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
632         (_dl_nothread_init_static_tls): New prototype.
633         (_dl_allocate_static_tls): Adjust prototype.
635         * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
637 2003-07-31  Alexandre Oliva  <aoliva@redhat.com>
639         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
640         elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
641         reloc_addr is aligned.
642         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
643         elf_machine_rela_relative): Adjust.
644         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
645         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
646         * sysdeps/cris/dl-machine.h (elf_machine_rela,
647         elf_machine_rela_relative): Adjust.
648         * sysdeps/hppa/dl-machine.h (elf_machine_rela,
649         elf_machine_rela_relative): Adjust.
650         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
651         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
652         * sysdeps/ia64/dl-machine.h (elf_machine_rela,
653         elf_machine_rela_relative): Adjust.
654         * sysdeps/m68k/dl-machine.h (elf_machine_rela,
655         elf_machine_rela_relative): Adjust.
656         * sysdeps/mips/dl-machine.h (elf_machine_rela,
657         elf_machine_rela_relative): Adjust.
658         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
659         elf_machine_rela_relative): Adjust.
660         * sysdeps/powerpc/powerpc64/dl-machine.h
661         (elf_machine_rela_relative, elf_machine_rela): Adjust.
662         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
663         elf_machine_rela_relative): Adjust.
664         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
665         elf_machine_rela_relative): Adjust.
666         * sysdeps/sh/dl-machine.h (elf_machine_rela,
667         elf_machine_rela_relative): Adjust.
668         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
669         elf_machine_rela_relative): Adjust.
670         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
671         elf_machine_rela_relative): Adjust.
672         * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
673         elf_machine_rela_relative): Adjust.
675 2003-07-29  Ulrich Drepper  <drepper@redhat.com>
677         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
678         alignment of TCB used before the last change so that it matches
679         ld's output for IE code.
681 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
683         * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
684         __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
685         break strict-aliasing rules" warnings.
687 2003-07-29  Roland McGrath  <roland@redhat.com>
689         * elf/Makefile: Revert accidental changes in last commit.
690         * elf/dl-support.c: Likewise.
692         * rt/tst-timer2.c: New file.
693         * rt/Makefile (tests): Add it.
695 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
697         * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
699 2003-07-29  Roland McGrath  <roland@redhat.com>
701         * elf/Makefile (tests) [$(build-shared) = yes]:
702         Depend on $(test-modules).
703         * dlfcn/Makefile: Likewise.
705 2003-07-28  Roland McGrath  <roland@redhat.com>
707         * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
708         Use that instead of `typedef' when using __*_TYPE macros in rhs.
710         * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
711         * elf/tst-tlsmod14a.c: Likewise.
713         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
714         before <linux/sysctl.h>.
716 2003-07-27  Ulrich Drepper  <drepper@redhat.com>
718         * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
719         * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
720         * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
721         * sysdeps/unix/syscalls.list: umask syscall never fails.
723 2003-07-27  Andreas Jaeger  <aj@suse.de>
725         * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
727 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
729         * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
730         Include bits/a.out.h.
731         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
732         bits/a.out.h.
733         * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
734         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
735         * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
736         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
737         * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
738         * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
739         * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
740         * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
742 2003-07-24  Jakub Jelinek  <jakub@redhat.com>
744         * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
745         if aiocbp != NULL and has already completed.  Return -1/EINVAL if
746         aiocbp->aio_fildes does not match fildes.
748 2003-07-24  Ulrich Drepper  <drepper@redhat.com>
750         * timezone/zic.c (rpytime): Replace cheap overflow check with a
751         functioning one.
753         * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
754         * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
755         Fix calculation of offsets to take misalignment of first byte in
756         file into account.
757         * elf/dl-load.c (_dl_map_object_from_fd): Initialize
758         l_tls_firstbyte_offset field.
759         * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
760         * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
761         Take l_tls_firstbyte_offset information into account.
762         (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
763         * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
764         * elf/Makefile: Add rules to build and run tst-tls14.
765         * elf/tst-tls14.c: New file.
766         * elf/tst-tlsmod14a.c: New file.
767         * elf/tst-tlsmod14b.c: New file.
769 2003-07-23  Jakub Jelinek  <jakub@redhat.com>
771         * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
772         (lio_listio): Use it.
773         * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
774         after few defines to avoid duplication.
776 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
778         * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
779         * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
780         Likewise.
781         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
782         Add libc_hidden_def.
783         * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
784         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
785         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
786         * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
787         __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
788         * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
789         * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
790         change.
791         * sysdeps/generic/unwind.inc: Removed.
793         * include/resolv.h (__resp): Declare.  Define to __libc_resp
794         if in libc.so.
795         (_res): If USE___THREAD, define to (*__resp).
796         * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
797         even if USE___THREAD.
798         (__resp): New __thread variable.
799         (__libc_resp): New alias.
800         * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
801         USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
802         * sysdeps/generic/res-state.c (__res_state): Return __resp
803         if USE___THREAD.
805 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
807         * elf/dl-support.c (_dl_hwcap): New variable.
808         (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
810         * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
811         and <dl-procinfo.h>.
812         (__feclearexcept): Clear MXCSR if needed.
813         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
815         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
816         that newer hardware needs more than these macros.
818         * sysdeps/i386/setfpucw.c: New file.
820 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
822         * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
823         * elf/ldconfig.c: Include dl-procinfo.c.
824         (PROCINFO_CLASS): Define.
825         * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
826         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
827         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
828         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
829         Define if not yet defined.  Use it instead of EXTERN.  Undefine
830         at the end of the file.
831         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
832         Likewise.
833         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
834         (PROCINFO_CLASS): Likewise.
835         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
836         (PROCINFO_CLASS): Likewise.
838 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
840         * elf/ldconfig.c (main): Issue a fatal error if relative path
841         is used to build cache.
843 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
845         * elf/readlib.c (process_file): Avoid possible overflow in assignment.
847 2003-07-21  Art Haas  <ahaas@airmail.net>
849         * manual/charset.texi (Converting a Character): Fix example code so a
850         valid pointer is returned.
852 2003-07-22  Andreas Jaeger  <aj@suse.de>
854         * elf/readlib.c (process_file): Check that file is a shared
855         object.
857         * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
858         will not optimize it away.
859         (__DTOR_END__): Likewise.
860         (__CTOR_END__): Likewise.
862         * include/libc-symbols.h (_elf_set_element): Use attribute used so
863         that gcc will not optimize it away.
864         (link_warning): Likewise.
866 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
868         * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
869         * wcsmbs/Makefile (tests): Add tst-wcpncpy.
870         * wcsmbs/tst-wcpncpy.c: New file.
872 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
874         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
876         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
877         stmxcsr and ldmxcsr.
879         * Makerules (build-module-helper): Add -z defs unless explicitly said
880         not to do it.
881         * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
882         which has undefined symbols.
883         * elf/Makefile: Likewise.
885         * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
886         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
887         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
888         * sysdeps/i386/fpu/fesetround.c: Likewise.
889         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
891 2003-07-21  HJ Lu  <hongjiu.lu@intel.com>
893         * elf/ldconfig.c (search_dir): Treat symlink as regular file
894         if it won't point to itself.
896 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
898         * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
900 2003-07-20  Andreas Jaeger  <aj@suse.de>
902         * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
903         STANDARD_TO_LOOP_ERR_HANDLER.
904         * iconvdata/euc-jp-ms.c (BODY): Likewise.
906 2003-07-19  Ulrich Drepper  <drepper@redhat.com>
908         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
910         * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
912 2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
913             Andreas Jaeger  <aj@suse.de>
915         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
916         256K, remove unneeded declaration of __getpagesize.
918 2003-07-16  Andreas Schwab  <schwab@suse.de>
920         * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
922 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
924         * io/test-utime.c (main): Make test yet more robust.
926 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
928         More cancellation handling fixups.
929         * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
930         * sysdeps/generic/not-cancel.h: Likewise.
931         * catgets/open_catalog.c: Use not-cancelable syscalls.
932         * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
933         * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
934         * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
935         * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
936         * io/fcntl.h: Don't mark posix_fallocate with __THROW.
937         * libio/fileops.c: Use not-cancelable syscalls for fclose.
938         * libio/iopopen.c: Use no-cancelable syscalls.
939         * libio/stdio.h: Mark popen and pclose with __THROW again.
940         * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
941         * misc/syslog.c: Fix locking and cancellation cleanup handling.
942         * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
943         * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
944         CFLAGS-tempname.c): Add -fexceptions.
945         * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
946         * string/string.h: Mark strerror and strerror_r with _THROW again.
947         * sysdeps/generic/unwind.inc: New file.  Copied from gcc.
948         * sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
949         #ifs since we now need all the code compiled.
950         * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
951         * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
952         * sysdeps/unix/opendir.c: Likewise.
954         * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
955         Add rule for EUC-JP-MS dependency.
956         * iconvdata/cp932.c: New file.
957         * iconvdata/eucjp-ms.c: New file.
958         * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
959         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
961 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
964         cfi directives.
966 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
968         * sysdeps/unix/sysv/linux/kernel-features.h
969         (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
972         * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
974 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
976         * sysdeps/unix/sysv/linux/kernel-features.h: Define
977         __ASSUME_TGKILL for Alpha appropriately.
979 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
981         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
982         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
983         Likewise.
984         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
985         Likewise.
987         * sysdeps/unix/sysv/linux/kernel-features.h: Define
988         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
990         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
991         second parameter == NULL.
992         * sysdeps/unix/sysv/linux/utimes.c: New file.
994 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
996         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
997         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
998         a typo.
1000 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
1002         * time/sys/time.h: Namespace cleanup.
1003         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1004         __ASSUME_UTIMES for the architectures which always had the syscall.
1005         * sysdeps/unix/sysv/linux/futimes.c: New file.
1007 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1009         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1010         register across CENABLE and CDISABLE.
1012 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1014         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1015         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1016         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1017         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1018         int before assigning to max to avoid warnings.
1020 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1023         cfi directives.
1024         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1025         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1027 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
1029         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1030         .data.rel.ro.local to "aw".
1032 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
1034         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1035         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1036         (PIC-ccflag): Define.
1038 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
1040         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1041         if PIC.
1042         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1044 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
1046         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1047         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1049 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
1051         * sysdeps/unix/sysv/linux/kernel-features.h: Version
1052         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1054         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1055         compilation with HAVE_AUX_SECURE defined.
1057 2003-07-05  Richard Henderson  <rth@redhat.com>
1059         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1061 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1063         * configure.in: Also check for .cfi_rel_offset pseudo-op.
1065 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
1067         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1068         typo.
1070 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1072         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1073         Define.
1074         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1076 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
1078         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1079         decl and use with #ifdef NEED_DL_SYSINFO.
1081 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
1083         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1084         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1085         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1086         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1087         vsyscall DSO was added.
1089         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1090         depending on selected standard.
1091         (NGROUPS_MAX): Define to 8 if not defined.
1093 2003-07-02  Andreas Jaeger  <aj@suse.de>
1095         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1097 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1099         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1100         * malloc/thread-m.h: Include <atomic.h>.
1101         (atomic_full_barrier): Provide default.
1102         (atomic_read_barrier): Likewise.
1103         (atomic_write_barrier): Likewise.
1104         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1106 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
1108         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1110 2003-06-30  Richard Henderson  <rth@redhat.com>
1112         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1113         Invert the sense of the return value.
1114         (__arch_exchange_16_int): Fix paste-o.
1115         (__arch_exchange_{32,64}_int): Fix think-o.
1117         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1119 2003-06-30  Richard Henderson  <rth@redhat.com>
1121         * include/sys/resource.h (__getrusage): Mark hidden.
1122         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1123         * include/sys/wait.h (__wait4): Likewise.
1125 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
1127         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1128         case.
1129         (xstat_conv): Rename to __xstat_conv and remove static inline.
1130         (xstat64_conv): Likewise.
1132 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
1134         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1135         values which cannot be handled in one nanosleep call.
1137 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
1139         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1140         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1142         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1144 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
1146         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1147         fix typo.
1149 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
1151         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1152         Conditionalize function definitions that use struct kernel_stat.
1153         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1154         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1155         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1157 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
1159         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1160         implementation.
1162 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
1164         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1165         (getgrent_next_file): Don't store group name to early in blacklist.
1167         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1168         and use memcpy instead of strcpy.
1170 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
1172         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
1173         stream unlocked.
1174         * nis/nss_compat/compat-initgroups.c: Likewise.
1175         * nis/nss_compat/compat-pwd.c: Likewise.
1176         * nis/nss_compat/compat-spwd.c: Likewise.
1178 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
1180         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1181         functions, dlopen corresponding NSS module instead.
1183 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
1185         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1186         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1187         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1188         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1190 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
1192         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1194 2003-06-26  Roland McGrath  <roland@frob.com>
1196         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1197         * sysdeps/mach/configure: Regenerated.
1198         * sysdeps/mach/hurd/times.c (times_init): Function removed.
1199         (__times): Assume `creation_time' field is available.
1200         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1201         Don't append set-init.
1202         * sysdeps/mach/hurd/set-init.c: File removed.
1204 2003-06-26  Roland McGrath  <roland@redhat.com>
1206         * elf/elf.h (AT_SECURE): New macro.
1207         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1208         set __libc_enable_secure.
1209         (_dl_show_auxv): Add AT_SECURE to name table.
1210         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1211         __libc_enable_secure and __libc_enable_secure_decided.
1212         * sysdeps/unix/sysv/linux/ldsodefs.h
1213         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1214         * sysdeps/unix/sysv/linux/kernel-features.h
1215         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1217 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
1219         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1220         boundary test to take rounding of nanoseconds into account.
1222         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1223         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1224         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1225         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1226         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1227         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1228         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1230 2003-06-26  Andreas Schwab  <schwab@suse.de>
1232         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1233         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1234         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1236 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
1238         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1239         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1240         dlopen corresponding NSS module instead.
1241         * nis/nss_compat/compat-pwd.c: Likewise.
1242         * nis/nss_compat/compat-spwd.c: Likewise.
1243         * nis/nss_compat/compat-initgroups.c: Disabled for now.
1244         * nss/Versions: Export __nss_lookup_function.
1246 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1248         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1249         for the SH architecture.
1251 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
1253         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1255 2003-06-25  Andreas Jaeger  <aj@suse.de>
1257         * stdlib/tst-strtod.c (main): Declare constant long double as
1258         suggested by Jakub Jelinek and Andreas Schwab.
1260         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1261         declaration.
1263         * stdio-common/tst-fphex.c: Fix format string.
1265         * posix/transbug.c: Include <string.h> for memset and strlen
1266         declarations.
1268         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1270         * stdlib/tst-strtod.c (main): Pass long double value.
1272         * test-skeleton.c: Include <time.h> for nanosleep declaration.
1274 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
1276         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1277         defined.
1279 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
1281         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1282         * elf/dl-libc.c (struct dl_open_hook): New.
1283         (_dl_open_hook): New variable.
1284         (do_dlsym_private): New function.
1285         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1286         and initialize it if found.
1287         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1288         call dlopen_mode hook.
1289         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1290         call dlsym hook.
1291         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1292         call dlclose hook.
1294 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
1296         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1297         result to long int so that extensions to long long int work.
1298         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1300 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
1302         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1303         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1304         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1305         dl-cache.h.
1306         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1307         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1308         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1309         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1311 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
1313         * test-skeleton.c (timeout_handler): If waitpid returned 0,
1314         retry once after a second.  If killed == 0, assume
1315         WTERMSIG (status) == SIGKILL.
1317 2003-06-18  Roland McGrath  <roland@redhat.com>
1319         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1320         elements in the table instead of printing an empty name string.
1322 2003-06-05  Roland McGrath  <roland@redhat.com>
1324         * elf/elf.h (PT_GNU_STACK): New macro.
1326 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
1328         * include/time.h: Define CLOCK_IDFIELD_SIZE.
1329         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1330         * sysdeps/unix/clock_gettime.c: Likewise.
1331         * sysdeps/unix/clock_settime.c: Likewise.
1332         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1333         clock id for thread CPU clocks.
1335         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1336         for the fstatfs64 syscall.
1337         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1338         the statfs64 syscall.
1340         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1341         __ASSUME_STATFS64 appropriately.
1343         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1344         from statfs structure if it has been filled in.
1346         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1347         field.
1348         (struct statfs64): Likewise.
1349         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1350         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1352 2003-06-24  Richard Henderson  <rth@redhat.com>
1354         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1355         the 64-bit syscall name.
1357         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1359         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1360         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
1362         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1363         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1364         libc_hidden_def.
1365         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1366         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1367         on them.
1369         * sysdeps/alpha/bits/atomic.h: New file.
1371 2003-06-24  Andreas Schwab  <schwab@suse.de>
1373         * sysdeps/m68k/fpu/libm-test-ulps: Update.
1375 2003-06-24  Andreas Jaeger  <aj@suse.de>
1377         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1378         redeclaration with 32-bit code.
1380 2003-05-19  Ed Connell  <ed.connell@sas.com>
1382         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1383         floating point mask.
1384         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1386 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
1388         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1389         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1390         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1392         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1393         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
1394         instead of __libc_cleanup_region_*.
1396 2003-06-20  Richard Henderson  <rth@redhat.com>
1398         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1399         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1401 2003-06-20  Richard Henderson  <rth@redhat.com>
1403         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1404         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1405         Unset for alpha.
1406         (__ASSUME_TIMEVAL64): Set for alpha.
1407         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1408         adjtimex, osf_sigprocmask, old_adjtimex.
1409         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1410         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
1411         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1412         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1413         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1414         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1415         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1416         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1417         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1418         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1419         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
1420         PIC code sequence.
1421         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1422         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
1423         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
1424         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
1425         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1426         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
1427         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
1428         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
1429         defer to __syscall_name; error for rt_sigaction.
1430         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
1432 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
1434         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
1435         hasn't happened yet.
1437         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1438         Fix completely broken implementation.  The second parameter is of
1439         type struct ucontext*.
1441         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
1442         inline.
1444         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
1445         * sysdeps/generic/dl-hash.h: Likewise.
1447         * sysdeps/generic/memcmp.c: Remove inline from
1448         memcmp_common_alignment and memcmp_not_common_alignment definition.
1450         * intl/localealias.c (read_alias_file): Determine whether line is
1451         read incompletely early, before we modify the line.
1453 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
1455         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
1456         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
1458 2003-06-17  Paul Mackerras  <paulus@samba.org>
1460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
1461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
1462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
1463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
1464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
1465         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
1467 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
1469         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
1471 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
1473         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
1474         takes care of enabling cancellation.
1476         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
1477         cancelable.  It's not correct to disable cancellation.  Instead of
1478         a cleanup handler.
1480         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
1481         and part of the incoming set, create a temporary set without this
1482         signal.
1483         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1484         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1486         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
1487         returning because seconds==0.  Add __builtin_expect.
1489 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
1491         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
1493         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
1494         variable.
1496 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
1498         * include/libc-symbols.h: Add static_link_warning macro.
1499         * grp/initgroups.c: Print linker warning if this function
1500         is called in a static linked binary.
1501         * nss/getXXbyYY.c: Likewise.
1502         * nss/getXXbyYY_r.c: Likewise.
1503         * nss/getXXent.c: Likewise.
1504         * nss/getXXent_r.c: Likewise.
1505         * sysdeps/posix/getaddrinfo.c: Likewise.
1507 2003-06-16  Bruno Haible  <bruno@clisp.org>
1509         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
1510         LATIN-9.
1511         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
1512         (IBM1047): Add alias IBM-1047.
1513         (GBK): Add aliases MS936, WINDOWS-936.
1515 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
1517         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
1518         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
1519         (__xstat64_conv): Change xstat_conv to __xstat_conv.
1521 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
1523         * locale/iso-639.def: Update from current official ISO 639.
1525         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
1527 2003-06-15  Andreas Jaeger  <aj@suse.de>
1529         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
1530         of MXCSR.
1531         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1532         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
1533         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
1535         * math/tgmath.h (carg): Handle real arguments.
1536         (conj): Likewise.
1537         (cproj): Likewise.
1538         (cimag): Likewise.
1539         (creal): Likewise.
1541         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
1542         (tests): Add test-tgmath-ret.
1543         * math/test-tgmath-ret.c: New file.
1545         * math/tgmath.h (ilogb): Return always an int.
1547 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
1549         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
1550         computation so that prelinking works.
1552 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
1554         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
1555         linker's map.
1556         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
1557         dynamic linker's map.
1559         Fix cancellation point handling wrt exception based cleanup.
1560         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
1561         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
1562         with exceptions.
1563         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
1564         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
1565         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
1566         exceptions.
1567         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
1568         sigwait.c, and sigwaitinfo.c with exceptions.
1569         * stdlib/Makefile: Compile system.c with exceptions.
1570         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
1571         * termios/Makefile: Compile tcdrain.c with exceptions.
1572         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
1573         situation.
1574         * sysdeps/generic/pselect.c: Likewise.
1575         * sysdeps/posix/sigpause.c: Likewise.
1576         * sysdeps/posix/system.c: Likewise.
1577         * sysdeps/posix/waitid.c: Likewise.
1578         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1579         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1580         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
1581         INTERNAL_SYSCALL to not use push inside asm statement so that
1582         unwind info is correct around the syscall.
1583         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
1584         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1586 2003-06-15  Andreas Jaeger  <aj@suse.de>
1588         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1589         Add CFI directives.
1591 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
1593         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
1594         create $(objpfx).
1596 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
1598         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
1599         not close.
1601         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
1602         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
1603         definition.
1605         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
1606         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
1607         * inet/Makefile (routines): Add inet6_option.
1608         * inet/inet6_option.c: New file.
1609         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
1610         inet6_option_init, inet6_option_append, inet6_option_alloc,
1611         inet6_option_next, and inet6_option_find.
1613 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
1615         * inet/netinet/ip6.h (struct ip6_ext): Define.
1617         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
1619         Fixing gcc 3.3 warnings, part II.
1620         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
1621         * elf/dl-load.c (cache_rpath): Don't inline.
1622         * iconvdata/cns11642l2.h: Always inline all functions.
1623         * iconvdata/iso-ir-165.h: Likewise.
1624         * locale/Makefile (aux): Add coll-lookup.
1625         * locale/coll-lookup.c: New file.
1626         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
1627         (collseq_table_lookup): Likewise.
1628         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
1629         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
1630         change.
1631         * posix/regcomp.c: Likewise.
1632         * posix/regexec.c: Likewise.
1633         * locale/programs/3level.h (*_get): Always inline.
1634         * locale/programs/locfile.h: Move definition of handle_copy to...
1635         * locale/programs/locfile.c: ...here.
1636         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
1637         (obstack_int32_grow_fast): Likewise.
1638         (utf8_encode): Likewise.
1639         (find_element): Avoid aliasing problems.
1640         (insert_value): Likewise.
1641         (collate_read): Likewise.
1642         * nss/getent.c (print_hosts): Don't inline
1643         (print_networks): Likewise.
1644         (print_shadow): Likewise.
1645         (build_doc): Likewise.
1646         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
1647         inline.
1648         * posix/regcomp.c (re_set_fastmap): Always inline.
1649         (seek_collating_symbol_entry): Likewise.
1650         (lookup_collation_sequence_value): Likewise.
1651         (build_range_exp): Likewise.
1652         (build_collating_symbol): Likewise.
1653         * posix/regexec.c (acquire_init_state_context): Don't inline.
1654         (clean_state_log_if_need): Likewise.
1655         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
1656         adjust all callers.
1657         (evConsTime): Likewise.
1658         (evAddTime): Likewise.
1659         (evSubTime): Likewise.
1660         (evNowTime): Likewise.
1661         (evTimeSpec): Removed.
1662         (__libc_res_nsend): Avoid aliasing problem.
1663         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
1664         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
1665         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
1666         Always inline.
1667         (_dl_string_platform): Likewise.
1668         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
1669         (wcwidth_table_lookup): Likewise.
1670         (wctrans_table_lookup): Likewise.
1672         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
1674 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
1676         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
1678 2003-05-29  Jim Meyering  <jim@meyering.net>
1680         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
1681         && HAVE_STRFTIME]: Use underlying_strftime for %r.
1682         Suggested by Daniel Yacob <locales@geez.org>.
1684 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
1686         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
1687         @got notation with @toc.
1688         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
1689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
1691 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
1693         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
1694         if only PF_INET address is needed.
1696         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
1697         case of an error.
1699         * scripts/config.guess: Update from upstream version.
1700         * scripts/config.sub: Likewise.
1702 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
1704         * locale/programs/ld-time.c (time_output): Also copy the era format,
1705         not only the name.
1707 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1709         * posix/transbug.c (run_test): Return 1 for failure.
1710         (do_test): Compare only if run_test is successful.
1712 2003-06-12  Simon Josefsson  <jas@extundo.com>
1714         * argp/argp.h [!__THROW]: Define if undefined.
1716 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
1718         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
1719         more than four parameters.
1720         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1722 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
1724         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
1725         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
1726         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
1728         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
1730 2003-06-12  Roland McGrath  <roland@redhat.com>
1732         * Makerules ($(objpfx)stubs): Rewrite sed magic.
1734 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
1736         * posix/regcomp.c (parse_expression): Deliver translation to
1737         build_word_op, and build_charclass.
1738         (build_charclass): Apply translation for character classes too.
1739         (build_word_op): Deliver translation to build_charclass.
1740         * posix/transbug.c: New file.
1741         * posix/Makefile (tests): Add transbug.
1743 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
1745         * posix/regexec.c (group_nodes_into_DFAstates): Check for
1746         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
1747         'continue' before the others.
1749 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
1751         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
1752         function [PR libc/5045].
1754         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
1755         also for P4.
1757         * time/tzfile.c: Add a couple of __builtin_expect.
1759         Remove warnings gcc 3.3 shows.
1760         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
1761         * elf/dl-load.c (fillin_rpath): Likewise.
1762         (add_path): Likewise.
1763         * elf/dl-version.c (find_needed): Always inline.
1764         * elf/do-lookup.c (FCT): Don't inline.
1765         * iconv/Makefile: Extend vpath to intl subdir.
1766         (iconvconfig-modules): Add hash-string.
1767         * iconv/gconv_charset.h (strip): Don't inline.
1768         (upstr): Always inline.
1769         Move __gconv_compare_alias prototype to...
1770         * iconv/gconv_int.h: ...here.
1771         * iconv/gconv_db.c: Don't include gconv_charset.h.
1772         * iconv/gconv_conf.c (add_alias): Don't inline.
1773         (insert_module): Likewise.
1774         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
1775         (internal_ucs4_loop_unaligned): Likewise.
1776         (internal_ucs4_loop_single): Likewise.
1777         (ucs4_internal_loop): Likewise.
1778         (ucs4_internal_loop_unaligned): Likewise.
1779         (ucs4_internal_loop_single): Likewise.
1780         (internal_ucs4le_loop): Always inline.
1781         (internal_ucs4le_loop_unaligned): Likewise.
1782         (internal_ucs4le_loop_single): Likewise.
1783         (ucs4le_internal_loop): Likewise.
1784         (ucs4le_internal_loop_unaligned): Likewise.
1785         (ucs4le_internal_loop_single): Likewise.
1786         * iconv/loop.c: Always inline the defined functions.
1787         * iconvdata/cns11642.h: Likewise.
1788         * iconvdata/cns11642l1.h: Likewise.
1789         * iconvdata/euc-kr.c: Likewise.
1790         * iconvdata/gb2312.h: Likewise.
1791         * iconvdata/jis0201.h: Likewise.
1792         * iconvdata/jis0208.h: Likewise.
1793         * iconvdata/jis0212.h: Likewise.
1794         * iconvdata/jisx0213.h: Likewise.
1795         * iconvdata/ksc5601.h: Likewise.
1796         * iconvdata/utf-7.c (base64): Don't inline.
1797         * include/libc-symbols.h (symbol_set_first_element): Add cast
1798         (symbol_set_end_p): Likewise.
1799         * include/set-hooks (RUN_HOOK): Likewise.
1800         * inet/Makefile (aux): Add ifreq.
1801         * intl/Makefile (aux): Add some entries from routines.  Add
1802         hash-string.
1803         * intl/hash-string.c: New file.
1804         * intl/hash-string.h: Remove hash_string definition.  Declare
1805         __hash_string.
1806         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
1807         * iconv/iconvconfig.c (new_name): Likewise.
1808         * intl/dcigettext.c (_nl_find_msg): Likewise.
1809         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
1810         * io/ftw.c (open_dir_stream): Always inline.
1811         (process_entry): Don't inline.
1812         * locale/findlocale.c: Include gconv_int.h.
1813         * locale/setlocale.c (new_composite_name): Don't inline.
1814         * locale/weight.h (findidx): Always inline.
1815         * locale/weightwc.h (findidx): Likewise.
1816         * locale/programs/linereader.c (lr_ignore_rest): Define here.
1817         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
1818         just declare it.
1819         (lr_getc): Always inline.
1820         (lr_ungetc): Likewise.
1821         * nss/nss_files/files-parse.c (parse_list): Likewise.
1822         * stdio-common/Makefile (aux): Add printf-parsemb and
1823         printf-parsewc.
1824         * stdio-common/_itoa.h (_itoa_word): Always inline.
1825         (_fitoa_word, _fitoa): Don't define here, only declare.
1826         * stdio-common/_itoa.c (_iftoa_word): Add here.
1827         (_fitoa): Likewise.
1828         * stdio-common/_itowa.h (_itowa_word): Always inline.
1829         * stdio-common/printf-parse.h (read_int): Don't inline.
1830         (find_spec): Don't define.
1831         Declare __find_specmb and __find_specwc.
1832         (parse_one_spec): Don't define.
1833         Declare __parse_one_specmb and __parse_one_specwc.
1834         * stdio-common/printf-parsemb.c: New file.
1835         * stdio-common/printf-parsewc.c: New file.
1836         * stdio-common/vfprintf.c: Update calls to find_spec and
1837         parse_one_spec for new names.
1838         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
1839         * stdlib/Makefile (aux): Add grouping and groupingwc.
1840         * stdlib/grouping.c: New file.
1841         * stdlib/groupingwc.c: New file.
1842         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
1843         Just prototype.
1844         * stdlib/rpmatch.c (try): Don't inline.
1845         * stdlib/strtod.c (round_and_return): Don't line.
1846         (str_to_mpn): Likewise.
1847         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
1848         Adjust for name change of correctly_grouped_prefix.
1849         * sysdeps/generic/strtol.c: Adjust for name change of
1850         correctly_grouped_prefix.
1851         * string/strxfrm.c (utf8_encode): Don't inline.
1852         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
1853         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
1854         * sysdeps/generic/ifreq.c: New file.
1855         * sysdeps/unix/sysv/linux/ifreq.c: New file.
1856         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
1857         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
1858         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
1859         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
1860         (fde_split): Likewise.
1861         (fde_merge): Likewise.
1862         (end_fde_sort): Likewise.
1863         (init_object): Likewise.
1864         (binary_search_unencoded_fdes): Likewise.
1865         (binary_search_single_encoding_fdes): Likewise.
1866         (binary_search_mixed_encoding_fdes): Likewise.
1867         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
1868         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
1869         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
1870         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1871         Add xstatconv.
1872         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
1873         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
1874         Export them.  Prepend __ to name.
1875         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
1876         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
1877         conversion functions.
1878         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1879         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1880         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1881         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1882         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1883         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1884         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1885         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1886         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
1887         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
1888         to name.  Change callers.
1889         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
1890         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
1891         declare.
1892         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
1893         * time/tzfile.c (decode): Always inline.
1894         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
1895         Remove cast in tomb function call.
1896         * wcsmbs/wcsrtombs.c Likewise.
1897         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
1898         tomb function call.
1900 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
1902         * po/zh_CN.po: Update from translation team.
1904 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
1906         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
1907         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
1909 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
1911         * inet/Makefile (aux): Add check_pf.
1912         * include/ifaddrs.h: Add prototype for __check_pf.
1913         * sysdeps/generic/check_pf.c: New file.
1914         * sysdeps/unix/sysv/linux/check_pf.c: New file.
1915         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
1916         from no_netlink_support.  Export.
1917         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
1918         call __check_pf.
1920         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
1922         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
1923         from getifaddr calls.
1925 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
1927         * sysdeps/unix/sysv/linux/kernel-features.h
1928         (__ASSUME_SETRESGID_SYSCALL): Define.
1929         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
1930         instead of __ASSUME_SETRESUID_SYSCALL.
1931         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
1932         defined.
1933         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
1934         inline syscall if __NR_setresuid32 is defined.
1935         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1936         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
1937         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
1938         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1939         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
1940         code handling non-existant setresgid32 syscall with
1941         #if __ASSUME_SETRESGID_SYSCALL == 0.
1943 2003-06-09  Andreas Schwab  <schwab@suse.de>
1945         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
1946         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
1947         $(objpfx)rpc-proto.d.
1948         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
1949         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
1950         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
1952 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
1954         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
1955         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
1956         defined drop compatibility code.
1957         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
1958         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
1959         defined drop compatibility code.
1960         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
1961         setresuid32 syscall directly if possible.
1962         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1963         setresgid32 syscall directly if possible.
1964         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
1965         compliant.  Don't change sgid.
1966         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
1967         compliant.  Don't change suid.
1969         * config.h.in: Add have-forced-unwind.
1970         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
1972 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
1974         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
1975         returned status from child matches.
1977         * Makeconfig (gnulib): Add -lgcc_eh once again.
1979 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
1981         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
1983         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
1984         %edx for first parameter.  This means no pushl and therefore the
1985         unwind info isn't screwed up.
1987 2003-06-04  Richard Henderson  <rth@redhat.com>
1989         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
1990         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1991         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
1992         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
1993         entry sequence and explicit relocs.  Add unwind info for sigreturn
1994         and rt_sigreturn.
1995         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
1997         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
1998         Annotate some parameters.
1999         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2001         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2003         * include/libc-symbols.h (symbol_set_declare): Use arrays
2004         of unspecified size.
2006 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2008         * config.make.in (ASFLAGS-config): New.
2009         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2010         * configure.in (libc_cv_as_noexecstack): New check.
2011         (ASFLAGS_config): Substitute.
2013 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2015         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2016         hypot, logb): Protect with #ifdef __FAST_MATH__.
2018 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
2020         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2021         #ifdef __FAST_MATH__.
2023 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
2025         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2026         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2027         * posix/globtest.sh: Adjust for this change.
2029         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2030         to get the actual PID value used in the records passed up.
2031         (getifaddrs): Don't initialize nh.pid here.
2033 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
2035         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2036         optimization.
2038         * po/zh_CN.po: Update from translation team.
2040         * posix/getconf.c (main): Also recognize names without the
2041         _POSIX_ prefix.
2043         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2045 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
2047         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2048         ldexpf, ldexpl): Only define if __FAST_MATH__.
2050 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
2052         Replace hard-coded offsets into struct sigcontext with generated file.
2053         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2054         * sysdeps/unix/sysv/linux/ia64/Makefile
2055         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2056         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2057         defining SC_* macros here.
2059 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
2061         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2063 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
2065         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2067 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
2069         * test-skeleton.c (main): Request getopt to not reorder the
2070         command line.
2072         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2074         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2075         stpncpy.
2077 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2079         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2081 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
2083         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2084         New function.
2085         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2086         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
2087         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2089 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2091         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2092         CFI directives.
2094         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2096         * libio/fileops.c (_IO_file_open): Don't mark as inline.
2098         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2099         attribute used.
2101 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
2103         * scripts/config.guess: Update from master copy.
2104         * scripts/config.sub: Likewise.
2106 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
2108         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2109         SETUP_GP64 and friends.
2110         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2111         names in internal_syscall{6,7}.
2112         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2113         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2114         number of syscall arguments.
2115         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2116         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2117         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2119 2003-05-30  Andreas Jaeger  <aj@suse.de>
2121         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2122         Add CFI directives.
2124         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2125         directives.
2127         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2129         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2130         Add CFI directives.
2132 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
2134         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2135         SHARED.
2137 2003-05-11  Andreas Schwab  <schwab@suse.de>
2139         * Makerules: Always use -MP together with -MD.
2140         (sed-remove-dotot): Substitute $(..) also at start of line.
2141         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2142         Generated defines with a single compiler call.
2143         Use $(sed-remove-dotdot).
2144         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2145         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2146         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2147         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2148         * sysdeps/unix/sysv/linux/mips/Makefile
2149         ($(objpfx)syscall-%.h): Likewise.
2151 2003-05-28  Roland McGrath  <roland@redhat.com>
2153         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2155 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
2157         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2159 2003-05-28  Roland McGrath  <roland@redhat.com>
2161         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2162         rt_sigprocmask system call.
2163         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2164         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2166 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
2168         * include/libc-symbols.h: Define hidden attribute for real also if
2169         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
2171         * csu/Makefile: Add rules to build Scrt1.o.
2172         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2173         * sysdeps/x86_64/elf/start.S: Likewise.
2175 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
2177         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2178         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2179         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2180         pa_short_int, pa_u_short_int and pa_float.
2182 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
2184         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2185         _IO_str_init_static_internal.
2186         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2187         change size argument to _IO_size_t, don't limit sprintf to 64M.
2188         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2189         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2190         _IO_size_t, don't limit swprintf to 256M.
2191         (_IO_wstr_init_readonly): Remove.
2192         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2193         Adjust prototypes.
2194         (_IO_wstr_init_readonly): Remove prototype.
2195         * libio/iovsprintf.c (_IO_vsprintf): Use
2196         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2197         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2198         * libio/memstream.c (open_memstream): Likewise.
2199         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2200         * libio/vasprintf.c (_IO_vasprintf): Likewise.
2201         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2202         * stdio-common/tst-sprintf.c (main): Add new test.
2204 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
2206         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2207         other implementation in respect of multiple uses of parameter with
2208         different types.
2210 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
2212         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2213         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2215 2003-05-22  Andreas Jaeger  <aj@suse.de>
2217         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2218         directives.
2219         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2220         * sysdeps/x86_64/strtok.S: Likewise.
2222 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
2224         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2225         to -60 and define SI_TKILL.
2227 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2229         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2230         (feexcp_mask_test): Likewise.
2232 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
2234         * locale/programs/locale.c (main): Fix typo in last patch.
2236         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2237         __init_array_start, __init_array_end, __fini_array_start, and
2238         __fini_array_end as hidden.
2240 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
2242         * locale/programs/locale.c (main): Report an error if setlocale()
2243         fails [PR libc/2254].
2245 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
2247         * sysdeps/unix/sysv/linux/s390/system.c: New file.
2249 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
2251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2252         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2253         LOADARGS_6): Don't error if syscall argument is a string literal.
2254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2255         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2256         LOADARGS_6): Likewise.
2258 2003-05-21  Andreas Jaeger  <aj@suse.de>
2260         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2261         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2262         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2264         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2265         (ENTRY): Likewise.
2266         (END): Likewise.
2268         * configure.in: Test for asm cfi directives.
2270         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2272 2003-05-17  Andreas Jaeger  <aj@suse.de>
2274         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2276         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2278 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
2280         * rt/Makefile (tests): Add tst-clock_nanosleep.
2281         * rt/tst-clock_nanosleep.c: New file.
2282         * posix/Makefile (tests): Add tst-nanosleep.
2283         * posix/tst-nanosleep.c: New file.
2285         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2287         * include/features.h (__USE_XOPEN2K): Define also for
2288         _POSIX_C_SOURCE>=200112L.
2290         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2291         SI_TKILL code into SI_USER.
2292         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2294         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2296 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
2298         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2299         Remove sym argument, always use refsym.
2300         (__process_machine_rela): Adjust callers.
2301         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2302         Likewise.
2303         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2304         Adjust prototype.
2305         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2307 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
2309         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2310         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
2311         print numeric values.
2313 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
2315         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2317 2003-05-14  Andreas Schwab  <schwab@suse.de>
2319         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2321 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
2323         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2324         even if no DT_NEEDED is present.
2326 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
2328         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2329         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2330         __sigjmp_save) so we can't keep the saved unat value in a scratch
2331         register (r16).  Use loc2 instead.
2333 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
2335         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2336         binaries it has to be relocatable.
2338         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2340 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2342         * sysdeps/powerpc/bits/atomic.h
2343         (__arch_compare_and_exchange_bool_8_rel): Define.
2344         (__arch_compare_and_exchange_bool_16_rel): Define.
2345         (__ARCH_REL_INSTR): Define if not already defined.
2346         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2347         (__arch_atomic_decrement_if_positive_32):
2348         Add "memory" to clobber list.
2349         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2350         (__arch_compare_and_exchange_val_32_rel): Define.
2351         (__arch_atomic_exchange_32): Remove.
2352         (__arch_atomic_exchange_32_acq): Define.
2353         (__arch_atomic_exchange_32_rel): Define.
2354         (atomic_compare_and_exchange_val_rel): Define.
2355         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2356         (atomic_exchange_rel): Define.
2357         * sysdeps/powerpc/powerpc32/bits/atomic.h
2358         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2359         (__arch_compare_and_exchange_bool_32_rel): Define.
2360         (__arch_compare_and_exchange_bool_64_rel): Define.
2361         (__arch_compare_and_exchange_val_64_rel): Define.
2362         (__arch_atomic_exchange_64): Remove.
2363         (__arch_atomic_exchange_64_acq): Define.
2364         (__arch_atomic_exchange_64_rel): Define.
2365         * sysdeps/powerpc/powerpc64/bits/atomic.h
2366         (__arch_compare_and_exchange_bool_32_rel): Define.
2367         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2368         (__arch_compare_and_exchange_bool_64_rel): Define.
2369         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2370         (__arch_compare_and_exchange_val_64_rel): Define.
2371         (__arch_atomic_exchange_64): Remove.
2372         (__arch_atomic_exchange_64_acq): Define.
2373         (__arch_atomic_exchange_64_rel): Define.
2374         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2375         (__arch_atomic_decrement_if_positive_64):
2376         Add "memory" to clobber list.
2377         [!UP](__ARCH_REL_INSTR): Define as lwsync.
2379 2003-05-11  Andreas Schwab  <schwab@suse.de>
2381         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2383 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
2385         * time/tst-strftime.c (do_test): Add tests for - flag.
2387 2003-05-11  Jim Meyering  <jim@meyering.net>
2389         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2390         the space-padded-by-default conversion specifiers, %e, %k, %l.
2392 2003-05-11  Andreas Schwab  <schwab@suse.de>
2394         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2396 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2398         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2399         already defined and when really needed.
2400         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2402 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
2404         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2405         headers, add defines from kernel header, move it from here...
2406         * inet/netinet/igmp.h: ... to here.
2407         * inet/Makefile (headers): Add netinet/igmp.h.
2408         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2409         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2411 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2413         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2414         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2416 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
2418         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
2419         (remove __THROW from possible cancellation points).
2421 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2423         * posix/sched.h (CPU_SETSIZE): Define.
2425 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
2427         * Makeconfig (gnulib): Remove -lgcc_eh again.
2429         * posix/sched.h: Change prototypes of sched_getaffinity and
2430         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
2431         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
2432         * sysdeps/generic/sched_setaffinity.c: Likewise.
2433         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
2434         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
2435         __CPU_CLR, and __CPU_ISSET.
2436         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2437         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
2438         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
2440         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
2441         (atomic_exchange_rel): New #define.
2442         * sysdeps/ia64/bits/atomic.h: Likewise.
2443         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
2444         atomic_exchange.
2445         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
2446         * sysdeps/powerpc/bits/atomic.h: Likewise.
2447         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
2448         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
2449         * sysdeps/x86_64/bits/atomic.h: Likewise.
2450         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
2452         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
2454 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
2456         * malloc/thread-m.h: Remove special handling of thread_atfork if
2457         HAVE_register_atfork_malloc is defined.
2459 2003-05-07  Andreas Jaeger  <aj@suse.de>
2461         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
2462         information.
2464 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
2466         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
2467         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2468         * libio/libioP.h: Declare _IO_old_init.
2469         * libio/genops.c (_IO_no_init): Split in two.  New function
2470         _IO_old_init.
2472 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
2474         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
2475         variable.
2476         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
2477         is nonzero.
2478         * include/unistd.h: Declare __libc_enable_secure_decided.
2479         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
2480         and AT_EGID.  If all found, set __libc_enable_secure and
2481         __libc_enable_secure_decided.
2483         * sysdeps/generic/libc-start.c [!SHARED]: Call
2484         __libc_check_standard_fds after __libc_init_first.
2486 2003-05-05  Roland McGrath  <roland@redhat.com>
2488         * Makerules (common-before-compile): New variable.
2489         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
2490         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
2491         to after all setting of before-compile.
2493 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
2495         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2496         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
2497         * sysdeps/powerpc/powerpc32/bits/atomic.h
2498         (__arch_compare_and_exchange_val_64_acq): Likewise.
2499         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2500         (__arch_compare_and_exchange_val_8_acq,
2501         __arch_compare_and_exchange_val_16_acq,
2502         __arch_compare_and_exchange_val_64_acq): Likewise.
2503         * sysdeps/sparc/sparc64/bits/atomic.h
2504         (__arch_compare_and_exchange_val_8_acq,
2505         __arch_compare_and_exchange_val_16_acq): Likewise.
2506         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2507         __arch_compare_and_exchange_val_16_acq,
2508         __arch_compare_and_exchange_val_64_acq): Likewise.
2509         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2510         (__arch_compare_and_exchange_val_64_acq): Likewise.
2511         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
2512         up warning.
2513         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
2515         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2516         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
2517         Return long instead of int.
2518         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
2519         0xfffff001u with -4095UL.
2521 2003-05-05  Andreas Jaeger  <aj@suse.de>
2523         * sysdeps/x86_64/fpu_control.h: New from i386.
2525         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
2526         Define if not defined.
2528         * sunrpc/Makefile (generated-dirs): New variable.
2529         * resolv/Makefile (generated): New variable.
2531 2003-05-04  Roland McGrath  <roland@redhat.com>
2533         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
2534         Depend on $(before-compile).
2536         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
2537         pattern rule.  The implicit rule could be ruled out when $(objpfx)
2538         didn't exist at the time of its consideration (ugh!).
2540         * Makerules (+make-deps): Fix target matching.
2541         Use $(sed-remove-dotdot).
2543 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
2545         * nscd/nscd.c (main): Parse config file right after parsing
2546         parameters.  Then, if get_stats is true, call receive_print_stats.
2547         Drop parameter from nscd_init call.
2548         (get_stats): New variable.
2549         (parse_opt): Set get_stats, don't call receive_print_stats here.
2550         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
2551         prototype.
2552         * nscd/connections.c (stat_user, stat_uid): New variables.
2553         (dbs): Make global.
2554         (nscd_init): Don't read configuration file here.  Drop parameter.
2555         (handle_request): Cleanup handling of non-database lookup requests.
2556         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
2557         Get UID of the specified user.  Use xstrdup instead of strdup.
2558         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
2559         check stat_user.
2560         * nscd/Makefile (nscd-modules): Add xstrdup.
2561         * nscd/nscd.conf: Document stat-user entry.
2563 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
2565         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
2566         if not defined.
2568 2003-04-22  Roland McGrath  <roland@redhat.com>
2570         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
2571         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2572         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
2573         * elf/dl-support.c: Update defn.
2574         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
2575         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2576         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
2577         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
2578         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
2579         set, set up a link_map for the preloaded, prelinked object.
2581 2003-05-03  Roland McGrath  <roland@redhat.com>
2583         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
2584         * stdio-common/Makefile: ... not here.
2586         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
2587         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
2589 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
2591         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
2593         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
2595         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
2596         comparing ftab elements.
2597         (_dl_unmap): Fix typo in test.
2598         (_dl_make_fptr): Fix typos introduced in last change.
2600         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
2601         original patch.  Use non-exported symbols.  Mark translatable
2602         strings.  Pretty printing.
2604 2003-05-02  Roland McGrath  <roland@redhat.com>
2606         * Makerules (do-stamp): Do $(make-target-directory).
2608 2003-04-07  H.J. Lu  <hjl@gnu.org>
2610         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
2612 2003-04-03  H.J. Lu  <hjl@gnu.org>
2614         * sysdeps/ia64/dl-fptr.c: Moved to ...
2615         * sysdeps/generic/dl-fptr.c: Here.
2617         * sysdeps/generic/dl-fptr.h: New.
2618         * sysdeps/ia64/dl-fptr.h: New.
2620         * sysdeps/ia64/dl-symaddr.c: Moved to ...
2621         * sysdeps/generic/dl-symaddr.c: here.
2623         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
2624         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
2625         (ia64_fdesc): Likewise.
2626         (ia64_fdesc_table): Likewise.
2627         (__ia64_make_fptr): Likewise.
2628         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
2629         with _dl_boot_fptr_table.
2630         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
2631         `struct fdesc'.
2632         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
2634 2003-05-01  Roland McGrath  <roland@redhat.com>
2636         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
2637         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2639         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2640         Use $(make-target-directory).
2641         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2643         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
2644         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
2645         (compile-command.s, compile-command.c): Likewise.
2646         ($(objpfx)%.d): All such pattern rules removed.
2647         ($(+sysdir_pfx)sysd-rules): Don't generate them.
2648         ($(common-objpfx)dummy.d): Target removed.
2649         (make-dummy-dep): Variable removed.
2650         (generate-md5): Likewise.
2651         (%.d: %.dt): New pattern rule.
2652         (+depfiles): Use $(wildcard) function to get just existing *.d files
2653         and .d files for existing *.dt files.
2654         (common-clean): Remove all *.d and *.dt files.
2655         (before-compile): Add $(objpfx). when it doesn't exist,
2656         regardless of $(no_deps).
2657         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
2658         (rtld-depfiles): Use .os.d instead of .d names.
2659         Include existing *.d files and .d files for existing *.dt files.
2661         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
2662         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
2664         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
2665         Do s-*.d includes only if we have some syscall routines in this subdir.
2667         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
2668         @nobits.  The former is accepted by gas on any ELF platform.
2670 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
2672         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
2674         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
2676 2003-04-29  Andreas Schwab  <schwab@suse.de>
2678         * string/test-strcat.c (do_one_test): Fix attribute name.
2680 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
2682         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
2683         uc_flags long for all ABIs.
2685 2003-04-30  Andreas Jaeger  <aj@suse.de>
2687         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
2688         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
2689         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
2690         Add bi-arch support.
2692 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
2694         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
2695         (__posix_memalign): Use __memalign_internal instead of memalign.
2697 2003-04-29  Roland McGrath  <roland@redhat.com>
2699         * configure.in: Search for AUTOCONF unconditionally.
2700         Just don't complain about missing it under --without-cvs.
2702         * include/libc-symbols.h (__symbol_set_attribute): New macro,
2703         give hidden for [SHARED] and weak for [! SHARED].
2704         (symbol_set_declare): Use that.  Never need weak_extern these days.
2705         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
2706         Depend on $(..)Makerules.
2708 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
2710         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
2711         variants of socket, bind, recvmsg, and sendto.
2713         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
2715         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
2716         * signal/sigaddset.c: Add libc_hidden_def.
2717         * signal/sigdelset.c: Likewise.
2719 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
2721         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
2722         to the end of the file.
2724         * configure.in: Change __oline__ to $LINENO.
2725         (HAVE_BUILTIN_REDIRECTION): New check.
2726         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
2727         * include/libc-symbols.h (libc_hidden_builtin_proto,
2728         libc_hidden_builtin_def, libc_hidden_builtin_weak,
2729         libc_hidden_builtin_ver): Define.
2730         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
2731         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
2732         strspn, strstr): Add libc_hidden_builtin_proto.
2733         * intl/plural.y: Include string.h.
2734         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
2735         libc_hidden_builtin_def.
2736         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
2737         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
2738         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
2739         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
2740         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
2741         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
2742         * sysdeps/alpha/memchr.S (memchr): Likewise.
2743         * sysdeps/alpha/memset.S (memset): Likewise.
2744         * sysdeps/alpha/strcat.S (strcat): Likewise.
2745         * sysdeps/alpha/strchr.S (strchr): Likewise.
2746         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
2747         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
2748         * sysdeps/alpha/strlen.S (strlen): Likewise.
2749         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
2750         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
2751         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
2752         * sysdeps/arm/memset.S (memset): Likewise.
2753         * sysdeps/arm/strlen.S (strlen): Likewise.
2754         * sysdeps/generic/memchr.c (memchr): Likewise.
2755         * sysdeps/generic/memcpy.c (memcpy): Likewise.
2756         * sysdeps/generic/memmove.c (memmove): Likewise.
2757         * sysdeps/generic/memset.c (memset): Likewise.
2758         * sysdeps/generic/strcat.c (strcat): Likewise.
2759         * sysdeps/generic/strchr.c (strchr): Likewise.
2760         * sysdeps/generic/strcmp.c (strcmp): Likewise.
2761         * sysdeps/generic/strcpy.c (strcpy): Likewise.
2762         * sysdeps/generic/strcspn.c (strcspn): Likewise.
2763         * sysdeps/generic/strlen.c (strlen): Likewise.
2764         * sysdeps/generic/strncmp.c (strncmp): Likewise.
2765         * sysdeps/generic/strncpy.c (strncpy): Likewise.
2766         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
2767         * sysdeps/generic/strrchr.c (strrchr): Likewise.
2768         * sysdeps/generic/strspn.c (strspn): Likewise.
2769         * sysdeps/generic/strstr.c (strstr): Likewise.
2770         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2771         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2772         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
2773         * sysdeps/i386/i586/memset.S (memset): Likewise.
2774         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
2775         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
2776         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2777         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
2778         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2779         * sysdeps/i386/i686/memset.S (memset): Likewise.
2780         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2781         * sysdeps/i386/memchr.S (memchr): Likewise.
2782         * sysdeps/i386/memset.c (memset): Likewise.
2783         * sysdeps/i386/strchr.S (strchr): Likewise.
2784         * sysdeps/i386/strcspn.S (strcspn): Likewise.
2785         * sysdeps/i386/strlen.c (strlen): Likewise.
2786         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2787         * sysdeps/i386/strrchr.S (strrchr): Likewise.
2788         * sysdeps/i386/strspn.S (strspn): Likewise.
2789         * sysdeps/ia64/memchr.S (memchr): Likewise.
2790         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
2791         * sysdeps/ia64/memmove.S (memmove): Likewise.
2792         * sysdeps/ia64/memset.S (memset): Likewise.
2793         * sysdeps/ia64/strcat.S (strcat): Likewise.
2794         * sysdeps/ia64/strchr.S (strchr): Likewise.
2795         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
2796         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
2797         * sysdeps/ia64/strlen.S (strlen): Likewise.
2798         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
2799         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
2800         * sysdeps/m68k/memchr.S (memchr): Likewise.
2801         * sysdeps/m68k/strchr.S (strchr): Likewise.
2802         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
2803         * sysdeps/mips/mips64/memset.S (memset): Likewise.
2804         * sysdeps/mips/memcpy.S (memcpy): Likewise.
2805         * sysdeps/mips/memset.S (memset): Likewise.
2806         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2807         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
2808         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
2809         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
2810         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
2811         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2812         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2813         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
2814         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
2815         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
2816         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
2817         * sysdeps/powerpc/strcat.c (strcat): Likewise.
2818         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
2819         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
2820         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
2821         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
2822         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
2823         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
2824         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
2825         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
2826         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
2827         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
2828         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
2829         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
2830         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
2831         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
2832         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
2833         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
2834         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
2835         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
2836         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
2837         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
2838         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
2839         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
2840         * sysdeps/sh/memcpy.S (memcpy): Likewise.
2841         * sysdeps/sh/memset.S (memset): Likewise.
2842         * sysdeps/sh/strlen.S (strlen): Likewise.
2843         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
2844         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
2845         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
2846         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
2847         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
2848         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
2849         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
2850         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
2851         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
2852         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
2853         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
2854         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
2855         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2856         * sysdeps/x86_64/memset.S (memset): Likewise.
2857         * sysdeps/x86_64/strcat.S (strcat): Likewise.
2858         * sysdeps/x86_64/strchr.S (strchr): Likewise.
2859         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
2860         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
2861         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
2862         * sysdeps/x86_64/strlen.S (strlen): Likewise.
2863         * sysdeps/x86_64/strspn.S (strspn): Likewise.
2864         * string/string-inlines.c: Move...
2865         * sysdeps/generic/string-inlines.c: ...here.
2866         (__memcpy_g, __strchr_g): Remove.
2867         (__NO_INLINE__): Define before including <string.h>,
2868         undefine after.  Include bits/string.h and bits/string2.h.
2869         * sysdeps/i386/i486/string-inlines.c: New file.
2870         * sysdeps/i386/string-inlines.c: New file.
2871         * sysdeps/i386/i486/Versions: Remove.
2872         All GLIBC_2.1.1 symbols moved...
2873         * sysdeps/i386/Versions (libc): ...here.
2875 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
2877         * sysdeps/i386/fpu/Makefile: New file.
2878         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
2879         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
2880         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2881         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
2882         [PR libc/4987].
2884 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
2886         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
2887         * nscd/nscd_getpw_r.c: Likewise.
2888         * nscd/nscd_gethst_r.c: Likewise.
2890 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
2892         * nscd/pwdcache.c: Initialize .version element in result.
2893         * nscd/grpcache.c: Likewise.
2894         * nscd/pwdcache.c: Likewise.
2896 2003-04-27  Andreas Schwab  <schwab@suse.de>
2898         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
2899         subdirectory.
2901 2003-04-27  Andreas Schwab  <schwab@suse.de>
2903         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
2905 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
2907         * nscd/connections.c (client_queued): New variable.
2908         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
2909         threads.  Keep track of the number of delays caused because of busy
2910         worker threads.
2911         * nscd/nscd.h: Declare client_queued.
2912         * nscd/nscd_stat.c: Transmit and print client_queued information.
2914         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
2916         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
2917         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
2919 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
2921         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
2922         tracking of freed memory in static TLS block.
2923         * elf/Makefile: Add rules to build and run tst-tls13.
2924         * elf/tst-tls13.c: New file.
2925         * elf/tst-tlsmod13.c: New file.
2926         * elf/tst-tlsmod13a.c: New file.
2928         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
2930         * elf/dl-reloc.c: Pretty printing.
2932 2003-04-26  Roland McGrath  <roland@redhat.com>
2934         * Makerules ($(common-objpfx)shlib.lds): New target.
2935         (common-generated): Add it.
2936         (build-shlib, build-module): Use that instead of generating every time.
2937         ($(common-objpfx)libc.so): Depend on it.
2938         (lib%.so rule): Likewise.
2939         (build-module-helper-objlist): Remove %.lds.
2940         (LDSEDCMD-c.so): Variable removed.
2941         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
2942         Depend on $(common-objpfx)shlib.lds.
2943         * dlfcn/Makefile ($(test-modules)): Likewise.
2945 2003-04-26  Roland McGrath  <roland@frob.com>
2947         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
2949 2003-04-26  Andreas Schwab  <schwab@suse.de>
2951         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
2953 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
2955         * nscd/cache.c (cache_search): Keep track of how many chain links
2956         we searched and update table statistics.
2957         (cache_add): Keep track of how many values are in the table.
2958         (prune_cache): Likewise.  Keep track of locking success.
2959         Print messages about removed entries in separate pass.
2960         * nscd/connections.c (handle_request): Don't print debug message here.
2961         The caller will do it.  Keep track of locking success.
2962         (nscd_run): Print debug message.  Also print PID of the client process.
2963         * nscd/nscd.c (start_time): New variable.
2964         (main): Remember start time.
2965         * nscd/nscd.h: Declare start_time.
2966         (struct database): Add more members for new statistics.
2967         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
2968         of new statistics.
2970         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
2972 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
2974         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
2975         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
2976         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
2977         NO_TLS_OFFSET.
2978         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
2979         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
2980         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
2981         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
2982         TLS_TCB_SIZE.
2984 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
2986         * nss/getent.c: Implement alternative host database lookup via
2987         getaddrinfo.
2989         * include/ifaddrs.h: New file.
2990         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
2991         AI_ADDRCONFIG...
2992         * resolv/netdb.h: ...here.
2993         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
2994         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2995         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
2996         AI_ADDRCONFIG.
2998 2003-04-24  Roland McGrath  <roland@redhat.com>
3000         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
3002 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
3004         * elf/dl-reloc.c (allocate_static_tls): Rename to...
3005         (_dl_allocate_static_tls): ... this function.  No longer static.
3006         (CHECK_STATIC_TLS): Adjust.
3007         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
3008         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
3009         Add SYM_MAP argument.
3010         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
3011         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
3012         TLS relocs here.  #ifdef out relocs which never appear in
3013         .gnu.conflict section from dl-conflict.c processing.
3014         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3015         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
3017         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
3018         out relocs which never appear in .gnu.conflict section from
3019         dl-conflict.c processing.
3020         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
3021         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3022         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3023         Use r_type in RESOLVE macro.
3025 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
3027         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
3028         NULL.  Remove code made redundant by this assumption.
3029         (__yp_unbind): Add call to free.  Adjust all callers.
3031         * nis/ypclnt.c (yp_all): Free the dom_binding object after
3032         unbinding it.
3034         * grp/initgroups.c (getgrouplist): Don't copy too much into the
3035         user buffer if more groups are found than fit into it.
3037         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
3038         extend_alloca.
3040 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
3042         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
3043         not rc == errno.  Use extend_alloca.
3045         * elf/tst-tls12.c (main): Fix declaration.
3046         * elf/tst-tls10.c (dummy): Make hidden instead of static.
3047         * elf/tst-tlsmod7.c (dummy): Likewise.
3048         * elf/tst-tlsmod8.c (dummy): Likewise.
3049         * elf/tst-tlsmod9.c (dummy): Likewise.
3051 2003-04-22  Roland McGrath  <roland@redhat.com>
3053         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
3054         (open_not_cancel): Make last argument non-optional.
3055         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3056         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3057         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3059         * include/tls.h: Protect against multiple inclusion.
3061 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
3063         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3064         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3065         open_socket.  Not static anymore.
3066         (nscd_gethst_r): Use __nscd_open_socket.
3067         * nscd/nscd_getgr_r.c (open_socket): Removed.
3068         (nscd_getgr_r): Use __nscd_open_socket.
3069         * nscd/nscd_getpw_r.c (open_socket): Removed.
3070         (nscd_getpw_r): Use __nscd_open_socket.
3072         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3073         * nscd/connections.c (handle_request): Add cast to avoid warning.
3075 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
3077         * signal/sigfillset.c: Moved to...
3078         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
3079         do not set the corresponding bit.
3081         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3082         SIGCANCEL.
3083         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3084         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3085         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3086         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3087         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3089 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
3091         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3092         first syscall parameter to const char*.
3094 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
3096         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3098         * configure.in: Add AC_PROG_CXX.
3099         * config.make.in (CXX): Define.
3101         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3102         __len to size_t to avoid warnings.
3104 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
3106         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3107         2.5.67.
3108         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3110 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
3112         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3113         UNREGISTER_ATFORK if d == NULL.
3115         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3116         * dirent/dirent.h: Likewise.
3117         * dlfcn/dlfcn.h: Likewise.
3118         * grp/grp.h: Likewise.
3119         * iconv/iconv.h: Likewise.
3120         * io/fcntl.h: Likewise.
3121         * io/ftw.h: Likewise.
3122         * libio/stdio.h: Likewise.
3123         * misc/sys/mman.h: Likewise.
3124         * misc/sys/select.h: Likewise.
3125         * misc/sys/syslog.h: Likewise.
3126         * misc/sys/uio.h: Likewise.
3127         * posix/spawn.h: Likewise.
3128         * posix/unistd.h: Likewise.
3129         * posix/sys/wait.h: Likewise.
3130         * pwd/pwd.h: Likewise.
3131         * resolv/netdb.h: Likewise.
3132         * rt/aio.h: Likewise.
3133         * shadow/shadow.h: Likewise.
3134         * signal/signal.h: Likewise.
3135         * socket/sys/socket.h: Likewise.
3136         * stdlib/stdlib.h: Likewise.
3137         * streams/stropts.h: Likewise.
3138         * string/string.h: Likewise.
3139         * sysdeps/gnu/utmpx.h: Likewise.
3140         * sysvipc/sys/msg.h: Likewise.
3141         * termios/termios.h: Likewise.
3142         * time/time.h: Likewise.
3143         * wcsmbs/wchar.h: Likewise.
3144         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3145         functions.
3146         * misc/daemon.c: Likewise.
3147         * sysdeps/generic/backtracesymsfd.c: Likewise.
3148         * sysdeps/generic/check_fds.c: Likewise.
3149         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3150         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3151         * sysdeps/generic/not-cancel.h: New file.
3152         * csu/Makefile (distribute): Add not-cancel.h.
3153         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3154         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3155         for assert.c and assert-perr.c to include <fatal-prepare.h>.
3156         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3158         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
3159         errno and unlink first.
3161         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3163 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
3165         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3166         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3168 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
3170         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3172         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3173         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3174         replace.
3176         * signal/Makefile (tests): Add tst-sigsimple.
3177         * signal/tst-sigsimple.c: New file.
3179 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
3181         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3182         tst-tls10.h.
3183         (tests): Add tst-tls1[0-2].
3184         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3185         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3186         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3187         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3188         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3189         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3190         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3191         * elf/tst-tls10.c: New test.
3192         * elf/tst-tls11.c: New test.
3193         * elf/tst-tls12.c: New test.
3194         * elf/tst-tls10.h: New file.
3195         * elf/tst-tlsmod7.c: New file.
3196         * elf/tst-tlsmod8.c: New file.
3197         * elf/tst-tlsmod9.c: New file.
3198         * elf/tst-tlsmod10.c: New file.
3199         * elf/tst-tlsmod11.c: New file.
3200         * elf/tst-tlsmod12.c: New file.
3202 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
3204         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3205         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3206         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3208 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
3210         * posix/regex.h: Include <sys/types.h>.
3212         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3213         The signal number must be checked.
3214         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3215         The signal number must be checked [PR libc/5004].
3217         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3218         don't do anything fancy.
3220         * sysdeps/generic/bits/libc-lock.h: Define
3221         __rtld_lock_define_initialized_recursive.
3223         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3224         contacting nscd if NOT_USENSCD_NAME > 0.
3225         * nss/nsswitch.c (__nss_disable_nscd): New function.
3226         * nss/nsswitch.h: Declare it.
3227         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3228         * nscd/nscd.c (main): Call __nss_disable_nscd.
3230 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
3232         * stdio-common/perror.c (perror): We don't need to set the offset
3233         to _IO_pos_bad, this is how streams are initialized.
3235         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3236         (time_output): If necessary, allocate new buffer for .name string if
3237         padding is required.
3239         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3240         before copying.  This might leave holes in the list.  Adjust
3241         pointers if necessary.
3242         (netlink_receive): Allocate only one block.
3243         (free_netlink_handle): Adjust appropriately.
3244         (getifaddrs): Lots of cleanups.
3246         * string/test-strncpy.c (do_one_test): Mark start and stop as
3247         possibly unused.
3248         * string/test-memchr.c: Likewise.
3249         * string/test-memcmp.c: Likewise.
3250         * string/test-memcpy.c: Likewise.
3251         * string/test-memmove.c: Likewise.
3252         * string/test-memset.c: Likewise.
3253         * string/test-strcat.c: Likewise.
3254         * string/test-strchr.c: Likewise.
3255         * string/test-strcmp.c: Likewise.
3256         * string/test-strcpy.c: Likewise.
3257         * string/test-strlen.c: Likewise.
3258         * string/test-strncmp.c: Likewise.
3259         * string/test-strpbrk.c: Likewise.
3260         * string/test-strrchr.c: Likewise.
3261         * string/test-strspn.c: Likewise.
3263 2003-04-15  Roland McGrath  <roland@redhat.com>
3265         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3267         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3268         INTUSE(__register_frame_info_bases).
3270 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
3272         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3273         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3274         AT_SYSINFO_EH_FRAME.  Adjust string width.
3275         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3276         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3277         Add _dl_sysinfo_eh_frame field.
3278         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3279         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3280         variable.
3281         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3282         if _dl_sysinfo_eh_frame is non-NULL.
3284         * Makeconfig (gnulib): Add -lgcc_eh.
3286         * config.h.in: Define HAVE_FORCED_UNWIND.
3288 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
3290         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3291         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3293 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
3295         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3296         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3297         against local symbol in conflict processing.
3299 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
3301         * sysdeps/powerpc/bits/atomic.h
3302         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3303         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3304         as abort stub.
3305         (__arch_compare_and_exchange_val_32_acq): Define.
3306         (atomic_compare_and_exchange_val_acq): Define.
3308 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
3310         * include/atomic.h: Pretty printing.
3312 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
3314         * stdio-common/vfscanf.c: Add casts to avoid warnings.
3316 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
3318         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3319         * sysdeps/x86_64/bits/atomic.h: Likewise.
3321 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
3323         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3324         POPARGS_1 to emit labels for the mov instructions.
3326 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
3328         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3330 2003-04-14  Roland McGrath  <roland@redhat.com>
3332         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3333         compiler warning.
3335         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3337 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
3339         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3340         position.  Reported by jreiser@BitWagon.com.
3342 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
3344         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3345         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3346         * sysdeps/generic/unwind-dw2.c: Likewise.
3347         * sysdeps/generic/unwind-pe.h: Likewise.
3349 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
3351         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3352         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3353         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3354         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3355         (mcontext_t): Make it match the 32-bit mips kernel in o32.
3356         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3357         the mips and mips64 headers.
3358         (struct user): Port to n32/n64.
3360 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
3362         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3363         avoid warning.
3365         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3366         __ASSUME_VSYSCALL is defined don't add restorer.
3367         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3368         __ASSUME_VSYSCALL for 2.5.53.
3370 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
3372         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3373         Remove HAVE_CANCELBUF code.  Replace with code using the new
3374         initializers for unwind-based cleanup handling.
3375         * sysdeps/generic/unwind.h: Update from latest gcc version.
3376         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3377         places to allow unwind data generation.
3378         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3379         * sysdeps/x86_64/bits/setjmp.h: Likewise.
3380         * sysdeps/sh/bits/setjmp.h: Likewise.
3381         * sysdeps/powerpc/bits/setjmp.h: Likewise.
3382         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3383         * sysdeps/alpha/bits/setjmp.h: Likewise.
3385 2003-04-11  Roland McGrath  <roland@redhat.com>
3387         * csu/tst-empty.c: New file.
3388         * csu/Makefile (tests, tests-static): Add it.
3390 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
3392         * string/test-strcmp.c (do_random_tests): Test whether return value
3393         has been promoted to wordsize if the ABI requires caller to do so.
3394         * string/test-strncmp.c (do_random_tests): Likewise.
3395         * string/test-memcmp.c (do_random_tests): Likewise.
3397         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3398         before returning.
3400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3401         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3402         is not defined, but the prctl constants are.
3404         * string/tester.c (test_strcmp): Fix a typo.
3406 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
3408         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3409         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3411 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
3413         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3414         NewABI.
3415         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3416         NewABI.
3417         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
3418         conventions.
3419         * sysdeps/mips/mips64/memset.S: Likewise.
3420         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
3421         Use t0 instead of t4 as temporary.
3423 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
3425         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
3426         feof_unlocked instead of feof.
3427         (add_dir): Ignore trailing whitespace.
3429 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
3431         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
3432         sum of SIZE1 and SIZE2 arguments.
3434 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
3436         * iconv/iconv_prog.c (process_block): Don't print message about
3437         invalid input if the -c option is used.
3438         (main): Correctly append IGNORE string for -c option.
3440 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3442         * sysdeps/sh/bits/atomic.h: Moved to ...
3443         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
3444         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
3445         arguments.
3446         (atomic_bit_set, atomic_bit_test_set): Likewise.
3447         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
3448         twice.
3449         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3451 2003-04-06  Roland McGrath  <roland@redhat.com>
3453         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
3454         restoration as done for setcontext yesterday.
3456 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
3458         * elf/rtld.c: Revert 2003-03-14 change.
3459         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
3460         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
3462 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
3464         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
3466         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3467         Always initialize *signgamp before returning an error.
3469 2003-04-05  Roland McGrath  <roland@redhat.com>
3471         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
3472         below the stack pointer even if switching to the same context we are
3473         running right now.
3475 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
3477         * catgets/gencat.c (read_input_file): Make sure that \n is not
3478         alone on the line before testing for continuation.
3480         * math/test-tgmath.c (compile_test): Initialize c.
3482 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
3484         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
3485         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
3486         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
3487         on mips n32.
3488         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
3489         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
3490         structure on n32 as well.
3491         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
3492         data types on n32 and n64.
3494 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
3496         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
3497         after getting them.
3499         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
3500         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
3501         instead of __register_atfork.
3503 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
3505         * stdio-common/reg-printf.c (__register_printf_function): Calloc
3506         instead of malloc __printf_arginfo_table and __printf_function_table.
3507         Reported by John Reiser <jreiser@BitWagon.com>.
3509 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
3511         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
3512         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
3514         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
3515         defining.
3517 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
3519         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
3520         for n64 abi.
3522 2003-04-03  Roland McGrath  <roland@redhat.com>
3524         * configure.in: Fix up use of compilation flags to match the build:
3525         For .s files, $ASFLAGS;
3526         For .S files, $CPPFLAGS $ASFLAGS;
3527         For .c files, $CFLAGS $CPPFLAGS;
3528         when linking, add $LDFLAGS.
3529         * configure: Regenerated.
3531 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
3533         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
3534         for atomic_compare_and_exchange_bool_acq failure.
3536 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
3538         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
3539         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
3540         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
3541         Remove declaration of pthread_atfork.
3543 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
3545         * locale/iso-639.def: Add many more languages from the current ISO 639.
3547         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
3548         * sysdeps/generic/semtimedop.c: New file.
3549         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
3550         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
3551         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3552         * sysvipc/Makefile (routines): Add semtimedop.
3553         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
3554         * sysvipc/sys/sem.h: Declare semtimedop.
3556 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
3558         * configure.in: Check for __register_frame_info in both
3559         -lgcc and -lgcc_eh.
3560         * configure: Regenerated.
3562 2003-04-01  Roland McGrath  <roland@redhat.com>
3564         * scripts/abilist.awk: Allow dots in soname suffix.
3566         * scripts/abilist.awk (emit): Fix bailout condition.
3568 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
3570         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
3571         IA-64 version.
3573         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
3574         register as input to asm.
3576 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
3578         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
3580 2003-04-01  Andreas Jaeger  <aj@suse.de>
3582         * configure.in: Output as/ld as name if version is too old.
3584 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
3586         * configure.in: Don't require an installed C library in the test
3587         for ".set" assembler support.
3589 2003-03-31  Roland McGrath  <roland@redhat.com>
3591         * signal/tst-sigset.c: New file.
3592         * signal/Makefile (tests): Add it.
3594 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
3596         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
3597         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
3598         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
3599         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
3600         (__SIGRTMAX): Adjust accordingly.
3601         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
3602         second compatibility symbol set.
3603         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
3605 2003-03-31  Andreas Schwab  <schwab@suse.de>
3607         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
3608         Define.
3609         (atomic_decrement_and_test): Fix test.
3611 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
3613         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
3614         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
3615         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
3616         * sysdeps/sparc/sparc32/atomicity.h: Removed.
3617         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
3618         * sysdeps/sparc/sparc64/atomicity.h: Removed.
3620 2003-03-30  Roland McGrath  <roland@redhat.com>
3622         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
3624         * intl/po2test.sed: Anchor substitution regexps to fix last change.
3626 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
3628         * intl/po2test.sed: Unify the transformations for msgid and msgstr
3629         and remove a useless s/// command.
3631 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
3633         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
3634         directive into empty .prologue region to ensure that call-chain
3635         is terminated even for the first instruction.
3637         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
3638         to terminate call-chain right from the get-go.
3640         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
3641         stop bit between compare & branch.
3643 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
3645         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
3646         point correctly [PR libc/4993].
3648         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
3649         netlink_open calls if netlink is known to not be available.
3651 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
3653         * configure.in: Add mips64* support.
3654         * sysdeps/mips/bits/endian.h: Make it bi-endian.
3655         * sysdeps/mips/mipsel/bits/endian.h: Removed.
3656         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
3657         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
3658         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
3659         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
3660         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
3661         * sysdeps/mips/Implies: Moved wordsize-32 to...
3662         * sysdeps/mips/mips32/Implies: New file.
3663         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
3664         ret_NOERRNO): New.
3665         (ret, PSEUDO_END): Moved past END.
3666         (PSEUDO): Moved to...
3667         * sysdeps/unix/mips/mips32/sysdep.h: New file.
3668         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
3669         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
3670         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
3671         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
3672         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
3674         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
3675         Re-introduce ENTRY.
3677 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
3679         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
3680         * inet/test-ifaddrs.c: Allow AF_PACKET.
3681         * sysdeps/unix/sysv/linux/kernel-features.h: Add
3682         __ASSUME_NETLINK_SUPPORT.
3684 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
3686         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
3688 2003-03-26  H.J. Lu  <hjl@gnu.org>
3690         * elf/vismod.h (getvarlocal1): Return const char **.
3691         (getvarinmod1): Likewise.
3692         (getvaritcpt1): Likewise.
3693         (getvarlocal2): Likewise.
3694         (getvarinmod2): Likewise.
3695         (getvaritcpt2): Likewise.
3696         (getvaritcpt3): Likewise.
3697         * elf/vismain.c (do_test): Adjusted.
3698         * elf/vismod1.c (getvarlocal1): Return address.
3699         (getvarinmod1): Likewise.
3700         (getvaritcpt1): Likewise.
3701         * elf/vismod2.c (getvarlocal2): Likewise.
3702         (getvarinmod2): Likewise.
3703         (getvaritcpt2): Likewise.
3704         * elf/vismod3.c (getvaritcpt3): Likewise.
3706 2003-03-28  Roland McGrath  <roland@redhat.com>
3708         * elf/vismain.c (do_test): Print both addresses when they don't match.
3710         * scripts/abilist.awk: If given -v filename_regexp and/or -v
3711         libname_regexp when parsing names, then produce output only
3712         for those matching the given regexps.  In combine mode, save all
3713         stanzas for a final sorting by stanza header at the end.
3714         Emit a blank line between stanzas.
3716         * scripts/abilist.awk: When given -v combine=1, do parse_names and
3717         emit a single output stream with lib name in stanza header lines.
3719         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
3721 2003-03-27  Roland McGrath  <roland@redhat.com>
3723         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
3724         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
3726 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3728         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
3729         Return old value. Make asm output reg constraint earlyclobber.
3730         Renamed from...
3731         (__arch_compare_and_exchange_8_acq): ... this.
3732         (__arch_compare_and_exchange_val_16_acq):
3733         Return old value. Make asm output reg constraint earlyclobber.
3734         Renamed from...
3735         (__arch_compare_and_exchange_16_acq): ... this.
3736         (__arch_compare_and_exchange_val_32_acq):
3737         Return old value. Make asm output reg constraint earlyclobber.
3738         Renamed from...
3739         (__arch_compare_and_exchange_32_acq): ... this.
3740         (__arch_compare_and_exchange_val_64_acq):
3741         Renamed from...
3742         (__arch_compare_and_exchange_64_acq): ... this.
3743         (atomic_exchange_and_add): Use local variables and
3744         __arch_compare_and_exchange_val_64_acq.
3745         (atomic_add): Likewise.
3746         (atomic_add_negative, atomic_add_zero): Use local variables.
3748 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
3750         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
3752 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
3754         * Makefile: Remove libmd5crypt goal.
3756 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
3758         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
3759         special handling of relocations against local symbols.
3761 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
3763         * sysdeps/powerpc/bits/atomic.h
3764         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
3765         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
3766         Define PPC64 specific version.
3767         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
3768         Change (mem) constraint to "b".
3769         [__powerpc64__] (__arch_atomic_exchange_and add_64):
3770         Replace addi with add. Change (value) contraint to "r".
3771         Change (mem) constraint to "b".
3772         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
3773         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
3774         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
3775         (__arch_atomic_decrement_if_positive_32): New macro.
3776         (atomic_decrement_if_positive): Use __arch* macros.
3778 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
3780         * sysdeps/ia64/fpu/libm-test-ulps: Update.
3782 2003-03-27  Roland McGrath  <roland@redhat.com>
3784         * scripts/rpm2dynsym.sh: New file.
3785         * Makefile (distribute): Add it.
3787 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
3789         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
3790         ar.unat before returning.  Add missing .mem.offset directives
3791         to ensure file gets assembled without warnings.
3792         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
3794 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
3796         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
3797         Return -1 instead of 0 if clock_getres failed.
3799 2003-03-27  Roland McGrath  <roland@redhat.com>
3801         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
3802         header lines and write out foo.symlist files for each foo.so.NN listed.
3804         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
3805         This symbol is exported, and we don't want to hide it.
3806         Add libc_hidden_proto instead.
3807         (_IO_file_jumps): Add libc_hidden_proto.
3808         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
3809         Remove INTVARDEF.
3810         * libio/fileops.c (_IO_file_jumps): Likewise.
3811         * libio/stdfiles.c: Don't use INTUSE on them.
3812         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
3813         * libio/iofopen.c (__fopen_internal): Likewise.
3814         * libio/freopen.c (freopen): Likewise.
3815         * libio/freopen64.c (freopen64): Likewise.
3816         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3818         * Makerules (check-abi) [$(enable-check-abi) = warn]:
3819         Ignore exit status from diff.
3820         * configure.in (enable_check_abi): Document possible value "warn".
3821         Change default to no for now.
3822         * configure: Regenerated.
3824         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
3825         macro calls and a #include <stub-tag.h> at the end.
3826         * Makerules ($(objpfx)stubs): Tweak sed commands.
3828         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
3829         caller column for *xattr syscalls, since they are in sysdeps/generic.
3831         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
3832         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
3834 2003-03-26  Roland McGrath  <roland@redhat.com>
3836         * Makerules (check-abi-config): Use /thread instead of /tls when
3837         use-thread and not just use-tls is set.
3839         * Makerules (update-abi): Put quotes around $(update-abi-config).
3841         * elf/Makefile (check-abi): Depend on check-abi-ld.
3842         (update-abi): Depend on update-abi-ld.
3844 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
3846         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
3847         do not check for errors (unless testing for 32bit variant).
3848         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3850 2003-03-27  Philip Blundell  <philb@gnu.org>
3852         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
3853         unconditional mov.  Remove nop.
3855         * sysdeps/unix/sysv/linux/kernel-features.h
3856         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
3857         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
3858         when __ASSUME_VFORK_SYSCALL is defined.
3859         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
3860         __ASSUME_MMAP2_SYSCALL.
3861         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
3862         __ASSUME_REALTIME_SIGNALS.
3864 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
3866         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
3867         only if DL_NO_COPY_RELOCS is not defined.
3868         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
3870 2003-03-26  Roland McGrath  <roland@redhat.com>
3872         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
3873         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
3874         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
3875         (sysdep_routines): Add stub-syscalls.
3876         ($(objpfx)stub-syscalls.c): New target.
3877         (generated): Add stub-syscalls.c.
3879         * tls.make.c: Also define use-tls according to USE_TLS macro.
3881 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
3883         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
3884         no-op padding element.
3885         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
3886         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3887         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3888         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3890 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
3892         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
3893         condition check for the return value of getgroups32.
3895 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
3897         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
3898         Fix a typo.
3899         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
3900         PSEUDO_END_NOERRNO): Define.
3901         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
3902         Define to PSEUDO_END.
3904 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
3906         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
3908 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
3910         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
3911         * iconvdata/bug-iconv4.c: New file.
3912         * iconvdata/Makefile (tests): Add bug-iconv4.
3914 2003-03-25  H.J. Lu  <hjl@gnu.org>
3916         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
3917         symbols twice.
3918         (_dl_lookup_versioned_symbol): Likewise.
3920 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
3922         * csu/tst-atomic.c (do_test): Add some new
3923         atomic_compare_and_exchange_val_acq, atomic_add_zero,
3924         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
3925         * include/atomic.h (atomic_add_negative, atomic_add_zero):
3926         Prefix local variable so that it doesn't clash with the one
3927         in atomic_exchange_and_add.
3928         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
3929         pointers.
3930         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
3931         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
3932         value into register.
3933         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
3934         Cast newval to long.
3935         * sysdeps/x86_64/bits/atomic.h
3936         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
3937         long.
3938         (atomic_exchange): Cast newvalue to long if sizeof == 8.
3939         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
3940         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3941         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
3943 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
3945         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
3946         bit from backtrace addresses.
3948 2003-03-21  Andreas Schwab  <schwab@suse.de>
3950         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
3951         __chown symbols.
3953 2003-03-25  Roland McGrath  <roland@redhat.com>
3955         * config.make.in (enable-check-abi): New variable from configure.
3956         * configure.in (enable_check_abi): New substituted variable,
3957         controlled by --{enable,disable}-check-abi (default yes).
3958         * configure: Regenerated.
3959         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
3960         on check-abi dependency.
3962 2003-03-26  Andreas Schwab  <schwab@suse.de>
3964         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
3965         * include/atomic.h: Likewise.
3967         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
3969 2003-03-25  Roland McGrath  <roland@redhat.com>
3971         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
3972         (__arch_atomic_exchange_64): New macro.
3973         (atomic_exchange): Use them.
3974         (__arch_atomic_exchange_and_add_32): New macro.
3975         (__arch_atomic_exchange_and_add_64): New macro.
3976         (atomic_exchange_and_add): Use them.
3977         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
3979 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
3981         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
3982         Define.
3983         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
3984         ISA tests.
3985         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
3986         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
3987         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3988         to decide whether to add padding.
3989         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
3990         to decide whether to add padding.
3991         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
3992         old_kernel_sigaction): Likewise.
3994 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
3996         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
3997         atomic_add_zero were supposed to do.
3998         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
3999         to x86 behavior.
4001         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
4002         This matches the new timer implementation.
4003         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
4004         Likewise.
4005         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
4006         Likewise.
4007         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
4008         timer info for what the kernel provides these days.
4009         (struct sigevent): Add _tid field.
4010         Define SIGEV_THREAD_ID.
4011         Remove struct __pthread_attr_s forward declaration.
4012         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4013         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4014         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4015         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4017         * Versions.def (librt): Add GLIBC_2.3.3.
4019         * abilist/libpthread.abilist: Update for nptl.
4021 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
4023         * inet/netinet/in.h: Add IPPROTO_SCTP.
4025 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
4027         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
4029 2003-03-24  Philip Blundell  <philb@gnu.org>
4031         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
4032         Remove a1 from clobber list.
4034 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
4036         * timezone/antarctica: Update from tzdata2003a.
4037         * timezone/asia: Likewise.
4038         * timezone/australasia: Likewise.
4039         * timezone/europe: Likewise.
4040         * timezone/iso3166.tab: Likewise.
4041         * timezone/northamerica: Likewise.
4042         * timezone/southamerica: Likewise.
4043         * timezone/zone.tab: Likewise.
4045 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
4047         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
4049 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
4051         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
4052         unwanted expansion by definining to ret.  Patch by Ian Wienand.
4054         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
4055         the parameter description to denote no error checking.  Generate
4056         appropriate pseudo asm code.
4057         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
4058         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
4059         getpgrp, and getppid with 'E'.
4060         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
4061         PSEUDO_END_NOERRNO, and ret_NOERRNO.
4062         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4063         * sysdeps/unix/sysdep.h: Likewise.
4064         * sysdeps/unix/alpha/sysdep.h: Likewise.
4065         * sysdeps/unix/sparc/sysdep.h: Likewise.
4066         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
4067         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
4068         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
4069         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4070         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4071         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4072         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4073         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4074         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4075         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4078 2003-03-23  Roland McGrath  <roland@redhat.com>
4080         * Makeconfig (+includes): Don't use $(last-includes).
4082 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
4084         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
4085         * sysdeps/unix/sysv/linux/configure: Rebuilt.
4087 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
4089         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4090         * sysdeps/arm/libm-test-ulps: Update.
4091         * sysdeps/hppa/fpu/libm-test-ulps: Update.
4092         * sysdeps/ia64/fpu/libm-test-ulps: Update.
4093         * sysdeps/mips/fpu/libm-test-ulps: Update.
4094         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4095         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4096         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4097         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4098         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
4099         * sysdeps/s390/fpu/libm-test-ulps: Update.
4100         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4102 2003-03-22  Roland McGrath  <roland@redhat.com>
4104         * include/atomic.h: Put parens around all macro arguments.
4105         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
4106         (atomic_compare_and_exchange_val_acq): Use it.
4107         (atomic_compare_and_exchange_bool_acq): Likewise.
4108         (atomic_increment_and_test): Invert sense of test.
4109         (atomic_decrement_and_test): Likewise.
4110         * csu/tst-atomic.c: Update those tests to match.
4112 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
4114         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
4115         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
4116         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
4117         __oldval variable in the macro, since it might be macro argument.
4118         (atomic_decrement_if_positive): Initialize __memp, remove setting
4119         of non-existent variable.
4120         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
4121         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
4122         using atomic_compare_and_exchange_val_acq.
4123         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
4124         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
4125         Renamed from...
4126         (__arch_compare_and_exchange_bool_8_acq): ... this.
4127         (__arch_compare_and_exchange_val_16_acq): Renamed from...
4128         (__arch_compare_and_exchange_bool_16_acq): ... this.
4129         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
4130         from...
4131         (__arch_compare_and_exchange_bool_32_acq): ... this.
4132         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
4133         from...
4134         (__arch_compare_and_exchange_bool_64_acq): ... this.
4135         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
4136         variables types instead of assuming int.
4137         Change prefix of local variables to __arch.
4138         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
4139         Remove.
4140         (atomic_compare_and_exchange_val_acq,
4141         atomic_compare_and_exchange_bool_acq): Define.
4143         * csu/tst-atomic.c: New test.
4144         * csu/tst-atomic-long.c: New test.
4145         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
4147         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
4149         * sysdeps/s390/Versions: Add trailing newline.
4151         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
4152         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
4154 2003-03-22  Andreas Schwab  <schwab@suse.de>
4156         * sysdeps/m68k/fpu/libm-test-ulps: Update.
4158         * sysdeps/m68k/m68020/bits/atomic.h: New file.
4159         * sysdeps/m68k/m68020/atomicity.h: Removed.
4161 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
4163         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
4164         data structures and macros.  Protect from multiple inclusion.
4166         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
4167         typo in #if test.
4169 2003-03-21  Andreas Jaeger  <aj@suse.de>
4171         * sysdeps/i386/fpu/libm-test-ulps: Update.
4173         * math/libm-test.inc (tgamma_test): Recompute some constants with
4174         36 digits precision.
4175         (lgamma_test): Likewise.
4176         (ccos_test): Likewise.
4177         (ccosh_test): Likewise.
4178         (clog10_test): Likewise.
4179         (csin_test): Likewise.
4180         (csinh_test): Likewise.
4181         (ctan_test): Likewise.
4182         (ctanh_test): Likewise.
4184 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
4186         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
4188 2003-03-21  Roland McGrath  <roland@redhat.com>
4190         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
4191         constraint to permit non-constant BIT argument.
4192         (atomic_bit_test_set): Likewise.
4193         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
4194         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
4195         For quadword case, use "i" constraint if __builtin_constant_p and < 32
4196         or "r" constraint otherwise.
4198         * configure.in: Move AC_PROG_CC and other program-finding before all
4199         the version checks.
4200         * configure: Regenerated.
4202 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
4204         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
4205         unaligned copying of 8-15 bytes.  From Chris Demetriou
4206         <cgd@broadcom.com>.  Fix label names.
4207         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
4208         change as to memcpy.S.
4209         * sysdeps/mips/memcpy.S: Formatting changes.
4210         * sysdeps/mips/memset.S: Likewise.
4212 2003-03-21  Roland McGrath  <roland@redhat.com>
4214         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
4216 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
4218         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
4219         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
4221 2003-03-21  Roland McGrath  <roland@redhat.com>
4223         * sysdeps/i386/i486/bits/atomic.h
4224         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
4225         version of the macro to avoid compile-time warnings.
4226         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
4227         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
4228         (atomic_increment, atomic_decrement): Likewise.
4230 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
4232         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
4233         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4235 2003-03-21  Roland McGrath  <roland@redhat.com>
4237         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
4239 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
4241         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
4242         atomic_compare_and_exchange_val_rel,
4243         atomic_compare_and_exchange_bool_acq, and
4244         atomic_compare_and_exchange_bool_rel instead of
4245         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
4246         * sysdeps/i386/i486/bits/atomic.h: Define
4247         __arch_compare_and_exchange_val_*_acq instead of
4248         __arch_compare_and_exchange_*_acq.
4249         * sysdeps/x86_64/bits/atomic.h: Likewise.
4250         * sysdeps/ia64/bits/atomic.h: Define
4251         __arch_compare_and_exchange_bool_*_acq instead of
4252         __arch_compare_and_exchange_*_acq.
4253         * sysdeps/powerpc/bits/atomic.h: Likewise.
4254         * sysdeps/s390/bits/atomic.h: Likewise.
4255         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
4256         * malloc/set-freeres.c: Likewise.
4257         * nscd/cache.c: Likewise.
4258         * stdlib/cxa_finalize.c: Likewise.
4259         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4261 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
4263         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
4264         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
4265         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
4267         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
4268         into high and low halves on n64.
4269         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4270         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4271         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4273 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
4275         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
4276         correct atomic_compare_and_exchange_acq semantics.
4278 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
4280         * sysdeps/mips/ieee754.h: Remove excess #endif.
4282 2003-03-20  Roland McGrath  <roland@redhat.com>
4284         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
4285         variable.  Remove superfluous memory clobber.
4287         * include/atomic.h: Syntax braino fix.
4289         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
4290         in decimal.  Don't bail if niced at start.  Just check that nice call
4291         bumps the total at all.
4293 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
4295         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
4296         including pc, gp, sp and fp, as long long.
4297         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
4298         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
4299         Add gp argument, and set gp in the jmpbuf to it.
4300         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
4302 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
4304         * include/atomic.h: Define atomic_exchange and
4305         atomic_decrement_if_positive if not already defined.  Add some
4306         __builtin_expect.
4307         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
4308         * sysdeps/x86_64/bits/atomic.h: Likewise.
4309         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
4310         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
4311         atomic_exchange, atomic_exchange_and_add, and
4312         atomic_decrement_if_positive
4314 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
4316         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
4317         with a single instruction.
4319         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
4320         properly for n64.
4321         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
4322         type.
4323         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
4324         Word before comparing with gotsym.  Take reloc_addr argument as
4325         void*.  Remove the code added for the compiler to drop any
4326         alignment assumptions.
4328 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
4330         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
4331         * include/atomic.h: New file.
4332         * sysdeps/i386/i486/bits/atomic.h: New file.
4333         * sysdeps/x86_64/bits/atomic.h: New file.
4334         * sysdeps/s390/bits/atomic.h: New file.
4335         * sysdeps/sh/bits/atomic.h: New file.
4336         * sysdeps/ia64/bits/atomic.h: New file.
4337         * sysdeps/powerpc/bits/atomic.h: New file.
4338         * sysdeps/generic/bits/atomic.h: New file.
4339         * sysdeps/i386/i486/atomicity.h: Removed.
4340         * sysdeps/x86_64/atomicity.h: Removed.
4341         * sysdeps/s390/s390-32/atomicity.h: Removed.
4342         * sysdeps/s390/s390-64/atomicity.h: Removed.
4343         * sysdeps/ia64/atomicity.h: Removed.
4344         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
4345         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
4346         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
4347         use of macros from atomicity.h to new names and semantics.
4348         * gmon_mcount.c: Likewise.
4349         * malloc/set-freeres.c: Likewise.
4350         * nscd/cache.c: Likewise.
4351         * stdlib/cxa_finalize.c: Likewise.
4352         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4354 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
4356         * sysdeps/mips/ieee754.h: New file, suitable to replace both
4357         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
4358         mips-specific for now.
4360 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
4362         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
4363         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
4364         * stdlib/tst-strtod.c: Add test for the bug.
4366         * posix/tst-nice.c (do_test): Remove invalid of return value.
4367         Don't run test if initial level != 0.
4369 2003-03-19  Amos Waterland  <apw@us.ibm.com>
4371         * posix/tst-nice.c: New file.
4372         * posix/Makefile (tests): Add tst-nice.
4374 2003-03-18  Roland McGrath  <roland@redhat.com>
4376         * abilist: New directory of libfoo.abilist files maintained using
4377         scripts/merge-abilist.awk and "make update-abi" rules.
4378         * Makefile (distribute): Add abilist/*.abilist.
4379         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
4380         Depend on check-abi.
4382         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
4383         * configure: Regenerated.
4385         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
4387 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
4389         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
4390         correctly.
4392 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
4394         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
4396 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
4398         * Versions.def: Add GLIBC_2.3.3 for libpthread.
4400 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
4402         * sysdeps/generic/libc-start.c [!SHARED &&
4403         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
4405 2003-03-17  Roland McGrath  <roland@redhat.com>
4407         * include/ctype.h: Revert last change.
4409 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
4411         * argp/tst-argp1.c: Use test-skeleton.c.
4412         * locale/tst-C-locale.c: Likewise.
4414 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
4416         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
4417         * sysdeps/mips/mips64/n64/Implies: New file.
4418         * sysdeps/mips/mips64/n64/Makefile: New file.
4419         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
4420         * sysdeps/mips/mips64/n32/Implies: New file.
4421         * sysdeps/mips/mips64/n32/Makefile: New file.
4422         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
4423         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
4424         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
4425         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
4426         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
4427         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
4428         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
4429         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
4430         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
4431         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
4432         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
4433         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
4434         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
4435         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
4437         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
4438         lib64 for mips64/n64 and lib32 for mips64/n32.
4439         (ldd_rewrite_script): Needed for all mips64 configurations.
4440         * sysdeps/unix/sysv/linux/configure: Rebuilt.
4441         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
4442         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
4444         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
4445         well.
4447         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
4448         asm/unistd.h into asm-unistd.h.
4449         * sysdeps/unix/sysv/linux/mips/configure: Generated.
4450         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
4451         of syscall list.
4452         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
4453         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
4454         asm/unistd.h.
4456         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
4457         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
4458         long type for registers on n32.
4460         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
4461         3 ABIs.
4462         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
4463         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
4464         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
4465         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
4466         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
4467         * sysdeps/unix/mips/brk.S: Likewise.
4468         * sysdeps/unix/mips/sysdep.S: Likewise.
4469         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4470         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
4471         * sysdeps/mips/sys/ucontext.h: Likewise.
4472         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
4473         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4474         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4475         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4476         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
4477         * sysdeps/mips/mips64/setjmp.S: Likewise.
4478         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
4479         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
4480         64-bit types.
4482 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
4484         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
4485         not at function level.
4486         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
4488 2003-03-15  Roland McGrath  <roland@redhat.com>
4490         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
4491         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4492         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
4493         * nis/nis_table.c (__create_ib_request): Likewise.
4495         * posix/fnmatch_loop.c: Add casts for signedness.
4496         * nss/nss_files/files-hosts.c: Likewise.
4497         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4498         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
4499         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
4501         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
4502         get errors into the log file.
4503         (libc_cv_broken_visibility_attribute): Likewise.
4504         (libc_cv_broken_alias_attribute): Likewise.
4505         (libc_cv_asm_weak_directive): Likewise.
4506         (libc_cv_need_minus_P): Likewise.
4507         (libc_cv_dot_text): Likewise.
4508         (libc_cv_asm_global_directive): Likewise.
4509         (libc_cv_asm_type_prefix): Likewise.
4510         * configure: Regenerated.
4512         * nscd/cache.c (cache_search): Give first arg type `request_type'.
4513         * nscd/nscd.h: Update decl.
4515         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
4516         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4517         * elf/dl-close.c (_dl_close): Likewise.
4518         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
4519         * io/fts.c (fts_build): Likewise.
4520         * elf/cache.c (add_to_cache): Likewise.
4521         * locale/programs/locarchive.c (show_archive_content): Likewise.
4523         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
4525         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
4526         happy.
4527         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
4529 2003-03-15  Ulrich Drepper  <drepper@redhat.com>
4531         * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
4532         code for most parts.
4534 2003-03-15  Roland McGrath  <roland@redhat.com>
4536         * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
4537         * sysdeps/unix/sysv/linux/system.c: ... here.
4538         (FORK): Don't #define if already #define'd.
4539         * sysdeps/unix/sysv/linux/s390/system.c: File removed.
4540         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
4541         (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
4543         * dlfcn/tst-dlinfo.c: New file.
4544         * dlfcn/Makefile (tests): Add tst-dlinfo.
4545         ($(objpfx)tst-dlinfo): New target.
4547         * dlfcn/dlinfo.c: New file.
4548         * dlfcn/Makefile (libdl-routines): Add it.
4549         * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
4550         * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
4551         [__USE_GNU] (RTLD_DI_*): New enum constants.
4552         [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
4553         * elf/dl-load.c (cache_rpath): New inline function.
4554         (_dl_map_object): Use it.
4555         (_dl_rtld_di_serinfo): New function.
4556         * sysdeps/generic/ldsodefs.h: Declare it.
4557         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
4559         * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
4560         (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
4561         (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
4562         (__libc_start_main): Just call the generic one for most of the work.
4564         * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
4565         static function by that name instead of BP_SYM (__libc_start_main).
4566         [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
4567         [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
4568         [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
4570         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
4571         Use this macro for extra AT_* cases.
4572         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
4573         New macro, guts from ...
4574         (__aux_init_cache): ... here, function removed.
4575         (DL_PLATFORM_INIT): Don't define this.
4577         * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
4578         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
4580         * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
4582 2003-03-14  Roland McGrath  <roland@redhat.com>
4584         * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
4586 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
4588         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
4590         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4591         sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
4593 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
4595         * sysdeps/mips/fpu/bits/mathdef.h: New.
4596         (__NO_LONG_DOUBLE_MATH): Define for o32.
4598         * sysdeps/mips/sys/asm.h: Formatting changes.
4599         (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
4600         (CPADD): Define for all of them.
4601         (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
4602         SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
4603         NARGSAVE): Define per ABI spec.
4604         (END): Don't redefine.
4605         (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
4606         LONG_SRAV): Remove duplicate definitions.
4607         (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
4608         PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
4609         PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
4610         (PTR_LA): Define for all 3 ABIs.
4612         * sysdeps/mips/dl-machine.h: Include sys/asm.h.
4613         (elf_machine_matches_host): Prevent linking of o32 and n32
4614         together.
4615         (elf_machine_dynamic): Document assumption on $gp.
4616         (STRINGXP, STRINGXV, STRINGV_): New macros.
4617         (elf_machine_load_address): Use them to stringize PTR_LA and
4618         PTR_SUBU.
4619         (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
4620         ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
4621         (_dl_runtime_resolve): Adjust it for all 3 ABIs.
4622         (__dl_runtime_resolve): Cast the symtab initializer to the
4623         right type.
4624         (RTLD_START): Use it.  Adjust it for all 3 ABIs.
4625         (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
4626         Handle 64-bit R_MIPS_REL composite relocation and accept
4627         R_MIPS_64 relocations to shift addend size to 64 bits.
4628         Document assumption regarding local GOT entries.  Document
4629         backward-compatibility departing from the ABI behavior in
4630         applying relocations that reference section symbols, no longer
4631         used.  Support relocations to mis-aligned offsets.
4632         * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
4634         * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
4636         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
4637         (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
4638         * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
4639         restore_rt functions.  Use them.
4641         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
4642         .set mips2 on new abis.
4644 2003-03-13  Ulrich Drepper  <drepper@redhat.com>
4646         * posix/getconf.c: Recognize POSIX2_SYMLINKS.
4647         * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
4648         * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
4649         * sysdeps/posix/pathconf.c: Likewise.
4650         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
4651         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4652         * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
4654         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
4655         words.
4657 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
4659         * include/gmp.h: Include/gmp-mparam.h.
4660         * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
4661         gmp-impl.h.
4663         * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
4664         ELF_MACHINE_NO_RELA is set.
4665         * elf/rtld.c (dl_main): No prelink support for REL-only.
4667         * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
4668         FLAG_MIPS64_LIBN64): Define.
4669         * elf/cache.c (print_entry): Handle mips64 n32 and n64.
4671         * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
4672         * sysdeps/mips/memset.S: Likewise.
4673         * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
4674         depending on the ABI.
4676         * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
4677         Don't .set mips2 on new abi.
4678         (compare_and_swap): Likewise.  Support 64-bit longs on n64.
4680         * stdlib/fpioconst.h: Include gmp.h with angle brackets.
4682 2003-03-13  Roland McGrath  <roland@redhat.com>
4684         * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
4685         found.  Reported by Alexandre Oliva <aoliva@redhat.com>.
4687 2003-03-13  Alexandre Oliva  <aoliva@redhat.com>
4689         * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
4690         literals long long.
4691         * stdlib/fpioconst.c: Likewise.
4692         * stdlib/strtod.c: Likewise.
4694         * sysdeps/mips/add_n.S: Use L macro for local labels.
4695         * sysdeps/mips/addmul_1.S: Likewise.
4696         * sysdeps/mips/lshift.S: Likewise.
4697         * sysdeps/mips/memcpy.S: Likewise.
4698         * sysdeps/mips/memset.S: Likewise.
4699         * sysdeps/mips/mul_1.S: Likewise.
4700         * sysdeps/mips/rshift.S: Likewise.
4701         * sysdeps/mips/sub_n.S: Likewise.
4702         * sysdeps/mips/submul_1.S: Likewise.
4703         * sysdeps/mips/mips64/add_n.S: Likewise.
4704         * sysdeps/mips/mips64/addmul_1.S: Likewise.
4705         * sysdeps/mips/mips64/lshift.S: Likewise.
4706         * sysdeps/mips/mips64/mul_1.S: Likewise.
4707         * sysdeps/mips/mips64/rshift.S: Likewise.
4708         * sysdeps/mips/mips64/sub_n.S: Likewise.
4709         * sysdeps/mips/mips64/submul_1.S: Likewise.
4710         * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
4711         conventions.  Define END as in sys/asm.h.
4712         * sysdeps/unix/mips/sysdep.S: Likewise.
4713         * sysdeps/unix/mips/wait.S: Likewise.
4714         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
4716         * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
4717         Cast shifted values that may be too narrow to mp_limb_t.
4718         * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
4719         Likewise.
4720         * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
4721         Likewise.
4722         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
4723         (__mpn_extract_long_double): Likewise.
4724         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
4725         (__mpn_construct_long_double): Likewise.
4726         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
4727         (__mpn_extract_long_double): Likewise.
4728         * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
4729         (__mpn_construct_long_double): Likewise.
4731 2003-03-13  Roland McGrath  <roland@redhat.com>
4733         * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
4734         entries in the map file match too.
4736 2003-03-13  Guido Guenther  <agx@sigxcpu.org>
4738         * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
4739         label .Lthread_start since current binutils don't allow branches
4740         to globally visible symbols.
4742 2003-03-13  Jakub Jelinek  <jakub@redhat.com>
4744         * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
4745         ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
4746         ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
4747         (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it.  Make syscall arguments
4748         clobbered by the syscall.
4749         (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
4750         ASM_ARGS_6): Change constraints from r to index of corresponding
4751         output register.
4752         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
4753         ptid and ctid to match kernel.
4754         * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
4756 2003-03-12  Steven Munroe  <sjmunroe@us.ibm.com>
4758         * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
4759         AC_DEFINE(PI_STATIC_AND_HIDDEN).  Not supported for PowerPC64.
4760         * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
4762 2003-03-11  Roland McGrath  <roland@redhat.com>
4764         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4765         Check SYM_MAP rather than SYM as definedness check.
4766         Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
4767         Don't handle R_PPC64_REL24 reloc.
4768         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4770         * sysdeps/powerpc/powerpc64/dl-machine.h
4771         [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
4772         block, so we cover all the TPREL16* flavors without 6 ||s.
4773         [USE_TLS] (elf_machine_tprel): New function.
4774         (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
4775         and handle TPREL16 relocs too.  Return rather than break for DTPREL64.
4776         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
4778 2003-03-11  Ralf Baechle  <ralf@linux-mips.org>
4780         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
4781         instead of jalr to invoke subroutine so restoring the $gp register
4782         will work properly.
4784 2003-03-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4786         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
4787         to __NR_pread if not defined.
4788         (__NR_pwrite64): Define to __NR_pwrite if not defined.
4790 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
4792         * sysdeps/unix/sysv/linux/ia64/system.c: New file.
4793         * sysdeps/unix/sysv/linux/kernel-features.h
4794         (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
4795         kernel >= 2.5.64.
4797 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
4799         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
4800         allocate space even for the trailing '/'.
4801         Reported by John Reiser <jreiser@BitWagon.com>.
4803         * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
4804         ASM_CLOBBERS_6): Define.
4805         (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
4806         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
4807         to match IA-32 order.
4808         * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
4810 2003-03-10  Steven Munroe  <sjmunroe@us.ibm.com>
4812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
4813         Copy extra params for NPTL to registers used in clone syscall.
4815 2003-03-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4817         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
4818         call names for pread and pwrite.
4820 2003-03-10  Roland McGrath  <roland@redhat.com>
4822         * dlfcn/Makefile (libdl-routines): Add dladdr1.
4823         * dlfcn/dladdr1.c: New file.
4824         * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
4825         [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
4826         * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
4827         a const ElfNN_Sym ** to fill in.
4828         * include/dlfcn.h: Update decl.  Include <link.h>.
4829         * dlfcn/dladdr.c (dladdr): Update caller.
4830         * malloc/mtrace.c (tr_where): Likewise.
4831         * sysdeps/generic/elf/backtracesyms.c: Likewise.
4832         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4833         * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
4834         * Versions.def (libdl): Define GLIBC_2.3.3 set.
4836         * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
4837         assembler command.
4838         * sysdeps/unix/Makefile (compile-syscall): New variable.
4839         Pass -g0 to compiler for assembling syscall stubs from stdin.
4841         * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
4842         (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
4843         Define these to do nothing.
4845         * configure.in: New check for -g on .S files.
4846         * configure: Regenerated.
4847         * config.make.in (have-cpp-asm-debuginfo): New variable.
4848         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
4849         * Makeconfig (ASFLAGS): New variable, if undefined and
4850         $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
4851         * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
4853 2003-03-09  Roland McGrath  <roland@redhat.com>
4855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
4856         used by NPTL on new kernels.  From Paul Mackerras <paulus@samba.org>.
4858 2003-03-09  Ulrich Drepper  <drepper@redhat.com>
4860         * po/fi.po: Update from translation team.
4861         * po/ca.po: Likewise.
4862         * po/da.po: Likewise.
4864 2003-03-08  Ulrich Drepper  <drepper@redhat.com>
4866         * rt/tst-aio7.c (do_test): Change BYTES into a #define.
4868 2003-03-07  Ulrich Drepper  <drepper@redhat.com>
4870         * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
4872         * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
4874 2003-03-07  Roland McGrath  <roland@redhat.com>
4876         * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
4877         * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
4879 2003-03-04  Guido Guenther  <agx@sigxcpu.org>
4881         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
4882         stubs, we have INLINE_SYSCALL.
4883         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
4884         MAP_NONBLOCK.
4886 2003-03-06  Roland McGrath  <roland@redhat.com>
4888         * rt/tst-aio7.c (do_test): Revert last change.  Instead, give CB1
4889         permanent extent and add a comment about testing its implicit teardown.
4891 2003-03-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4893         * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
4895 2003-03-05  Ulrich Drepper  <drepper@redhat.com>
4897         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
4898         reversed __builtin_expect expectation.
4900 2003-03-05  Roland McGrath  <roland@redhat.com>
4902         * stdio-common/sscanf.c: Use prototype defn with ... syntax.
4903         * libio/swscanf.c: Likewise.
4904         * libio/swprintf.c: Likewise.
4906 2003-03-04  Roland McGrath  <roland@redhat.com>
4908         * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
4909         (elf_machine_rela): Always use RESOLVE_MAP, needed for
4910         R_PPC64_JMP_SLOT as well as TLS cases.
4911         (BIT_INSERT): Move parenthesis where it ought to have been.
4912         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
4914         * posix/confstr.c (confstr): Correct STRING_LEN values for
4915         _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
4916         break.  Reported by Alexandre Julliard <julliard@winehq.com>.
4918 2003-03-04  Jakub Jelinek  <jakub@redhat.com>
4920         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
4922 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
4924         * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
4925         clone parameters.
4927         * po/sv.po: Update from translation team.
4929 2003-03-04  Andreas Jaeger  <aj@suse.de>
4930             Ulrich Drepper  <drepper@redhat.com>
4932         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
4934 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
4936         * sysdeps/generic/dl-sysdep.h: Add double include protection.
4938         * po/tr.po: Update from translation team.
4940         * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
4941         are holes between the segments.  Only call mprotect to set
4942         proection to PROT_NONE if there are some.
4944         * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
4945         Update comment.
4947         * include/sched.h (__clone2): Use ... instead of adding all the
4948         new parameters.
4950 2003-03-03  Roland McGrath  <roland@redhat.com>
4952         * elf/dl-load.c (struct filebuf): Fix typo in last change.
4954         * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
4955         PI_STATIC_AND_HIDDEN.
4957 2003-03-03  Ian Wienand  <ianw@gelato.unsw.edu.au>
4959         * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
4960         flags.
4961         * include/sched.h: Update clone2 prototype.
4963 2003-03-03  Andreas Jaeger  <aj@suse.de>
4965         * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
4966         (llrint): Use it to correct return type.
4967         (lrint): Likewise.
4968         (lround): Likewise.
4969         (llround): Likewise.
4971 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
4973         * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
4974         byte filebuf size.
4976         * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
4977         if ccs parameter isn't valid.  Reported by Andreas Schwab.
4979 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4981         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
4982         for system call numbers > 255.
4983         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
4984         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4985         INTERNAL_SYSCALL): Likewise.
4986         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
4987         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
4988         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
4989         INTERNAL_SYSCALL): Likewise.
4991 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4993         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
4994         array if it is the initial dtv.
4996 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
4998         * po/es.po: Update from translation team.
4999         * po/fr.po: Likewise.
5000         * po/gl.po: Likewise.
5001         * po/sk.po: Likewise.
5002         * po/sv.po: Likewise.
5004         * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
5005         * misc/sys/mman.h: Add prototype for remap_file_pages.
5006         * sysdeps/generic/remap_file_pages.c: New file.
5007         * misc/Makefile (routines): Add remap_file_pages.
5008         * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
5010         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
5011         and MAP_NONBLOCK.
5012         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5013         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
5014         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
5015         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5016         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5017         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
5018         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5019         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5021 2003-03-03  Roland McGrath  <roland@redhat.com>
5023         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
5024         * sysdeps/ia64/dl-machine.h: Likewise.
5025         * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
5026         argument type.
5027         * sysdeps/ia64/dl-lookupcfg.h: Update decl.
5029         * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
5030         * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
5031         * locale/Versions (libc: GLIBC_2.3): Move those to ...
5032         * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
5033         * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
5034         * Versions.def (libc): Add GLIBC_2.3.3 set.
5036         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
5037         * sysdeps/ia64/dl-machine.h: Update decl.
5039 2003-03-03  Andreas Jaeger  <aj@suse.de>
5041         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
5043 2003-03-02  Roland McGrath  <roland@redhat.com>
5045         * scripts/abilist.awk: Reject data items with apparent 0 size.
5047         * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
5048         after foo.* as if it were a duplicate.
5050         * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
5052 2003-03-02  Ulrich Drepper  <drepper@redhat.com>
5054         * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
5056         * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
5057         * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
5058         if not already defined.  Use SYSDEP_GETRES to allow other files to
5059         provide alternative implementations.
5060         * sysdeps/unix/sysv/linux/clock_getres.c: New file
5061         * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
5062         if not already defined.  Use SYSDEP_GETTIME to allow other files to
5063         provide alternative implementations.
5064         * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
5065         * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
5066         if not already defined.  Use SYSDEP_GETTIME to allow other files to
5067         provide alternative implementations.
5068         * sysdeps/unix/sysv/linux/clock_settime.c: New file.
5069         * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
5070         other files to provide alternative implementations.  Rearrange
5071         tests for invalid parameters.
5072         * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
5073         * sysdeps/unix/sysv/linux/sysconf.c: New file.
5074         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5075         __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
5076         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
5077         _POSIX_MONOTONIC_CLOCK.
5079 2003-03-02  Roland McGrath  <roland@redhat.com>
5081         * scripts/merge-abilist.awk: More checks for bogus input.
5082         Uniquify duplicate config names.
5084         * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
5086         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
5087         from dl_reloc_overflow, make global.
5088         (__process_machine_rela): Update callers.
5089         * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
5090         Add attribute_hidden to __process_machine_rela decl.
5091         (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
5093         * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
5094         variable.
5096         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
5097         Don't use weak_extern for dl_rtld_map.  Instead check only if [SHARED].
5098         (elf_machine_rela): Clean up.
5100         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
5102         PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
5103         * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
5104         * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
5105         * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
5106         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
5107         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
5108         new relocs for TLS.
5110         * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
5111         macros out of [SHARED].
5112         (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
5114         * elf/elf.h: Define R_PPC_* relocs for TLS support.
5115         Clean up R_PPC64_* macro definition comments.
5117         * configure.in: In "running configure fragment for" message,
5118         omit $srcdir from the name if we prepended it.
5119         * configure: Regenerated.
5121         * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
5122         From Jakub Jelinek <jakub@redhat.com>.
5124         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
5125         which duplicated the O_DIRECT defn.
5127 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
5129         * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
5130         random functions.
5132 2003-03-01  Andreas Schwab  <schwab@suse.de>
5134         * resolv/Makefile (tests): Don't depend on
5135         $(objpfx)mtrace-tst-leaks when cross compiling.
5137         * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
5138         __libc_stack_end through GOT since it is a global symbol.
5140 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
5142         * argp/argp.h: Fix a typo.
5143         Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
5145         * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
5147 2003-02-27  Pat Rankin  <rankin@pactechdata.com>
5149         * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
5150         char *.
5151         (get_subexp): Likewise.
5153 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
5155         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
5157 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
5159         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
5161 2003-02-27  Roland McGrath  <roland@redhat.com>
5163         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
5164         special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
5165         repeat it and avoids the test for the common case.
5166         Clean up and fix calculations for TLS relocs.
5168         * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
5169         * sysdeps/powerpc/dl-tls.h: ... here.
5170         (TLS_TP_OFFSET): New macro.
5172         * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
5174 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
5176         * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
5177         code generation changes in recent gcc.
5179 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
5181         * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
5182         Rename argument to avoid symbol conflict.
5184         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
5185         [__USE_GNU] (O_DIRECT): New macro.
5187 2003-02-24  David Mosberger  <davidm@hpl.hp.com>
5189         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
5190         unwind info.
5192 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
5194         * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
5195         initializer anymore now that res_thread_freeres is more careful.
5197         * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
5198         except the PKTINFO.  Reset interface in PKTINFO.
5199         Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
5201 2003-02-25  Steven Munroe  <sjmunroe@us.ibm.com>
5203         * elf/elf.h: Add new R_PPC64_* relocs for TLS.
5204         * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
5205         Define.
5206         * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
5207         * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
5208         * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
5209         * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
5211         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5212         Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
5214 2003-02-25  Andreas Jaeger  <aj@suse.de>
5216         * manual/memory.texi (Malloc Tunable Parameters): Clarify
5217         behaviour of M_MMAP_THRESHOLD.
5219 2003-02-25  Roland McGrath  <roland@redhat.com>
5221         * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
5222         zero, inidicating _res was not initialized yet.
5224 2003-02-24  Ulrich Drepper  <drepper@redhat.com>
5226         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
5227         test.
5229 2003-02-24  Roland McGrath  <roland@redhat.com>
5231         * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
5233 2003-02-23  Roland McGrath  <roland@redhat.com>
5235         * sysdeps/posix/pause.c: New file.
5236         * sysdeps/unix/common/pause.c: File removed.
5238 2003-02-23  Ulrich Drepper  <drepper@redhat.com>
5240         * sysdeps/generic/bits/confname.h: Remove #ifs.
5242         * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
5243         * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
5245         * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
5246         element to -1.
5248 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
5250         * sysdeps/generic/dl-sysdep.c: Avoid warning.
5252 2003-02-22  Roland McGrath  <roland@redhat.com>
5254         * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
5255         * resolv/Makefile (tests): Add tst-leaks.
5256         ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
5257         (tst-leaks-ENV): New variable.
5258         ($(objpfx)mtrace-tst-leaks): New target.
5259         (tests): Depend on it.
5261         * include/libc-internal.h: Declare __libc_thread_freeres.
5263         * Makerules: Fix last change to use $($(subdir)-version) when set.
5265         * Makerules (install-lib-nosubdir): Depend on installed
5266         libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
5267         regardless of the libfoo.so target's dependencies.
5269         * MakeTAGS (sub-make-vars): New variable, includes generating=t.
5270         Use that in $(MAKE) calls.
5272 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
5274         * catgets/gencat.c (read_input_file): Collision between
5275         auto-assigned numbers and user-defined nubmers is not fatal.
5276         Handle it.
5277         Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
5278         * catgets/Makefile: Add rules to run test2.msg test.
5279         * catgets/test2.msg: New file.
5281         * catgets/gencat.c (main): Return 1 if messages have been printed.
5283         * iconv/iconv_prog.c (main): Unify messages.
5285         * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
5286         when shifting retval.
5287         * stdlib/tst-strtod.c (main): Add strtold test case.
5288         Reported by Fred J. Tydeman <tydeman@tybor.com>.
5290 2003-02-21  Roland McGrath  <roland@redhat.com>
5292         * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
5293         * sunrpc/rpc_thread.c: Likewise for text_set_element use.
5294         (__rpc_thread_destroy): Add it to __libc_subfreeres too.
5296         * include/resolv.h: Add libc_hidden_proto for __res_nclose.
5297         * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
5298         (res_thread_freeres): New function, on __libc_thread_subfreeres and
5299         __libc_subfreeres.
5301         * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
5302         * malloc/thread-freeres.c: New file.
5303         * malloc/Makefile (aux): Add it.
5304         * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
5305         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
5306         "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
5308         * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
5309         * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
5311 2003-02-21  Roland McGrath  <roland@frob.com>
5313         * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
5315         * iconvdata/Makefile (tests): Add bug-iconv3 only if
5316         [$(have-thread-library) = yes].
5318 2003-02-21  Ulrich Drepper  <drepper@redhat.com>
5320         * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
5322         * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
5323         not chechk for errors (unless testing for 32bit variant).
5324         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5325         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5326         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5328 2003-02-21  Jakub Jelinek  <jakub@redhat.com>
5330         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
5331         Check for signed overflow, not unsigned.
5333         * sysdeps/sparc/sparc64/elf/configure.in: New file.
5334         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
5335         Use -fcall-used-g6, not -fcall-used-g7.
5337 2003-02-21  Andreas Jaeger  <aj@suse.de>
5339         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
5340         mode.
5342         * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
5343         clear whole mxcsr but only exceptions.
5345 2003-02-21  Roland McGrath  <roland@redhat.com>
5347         * Makerules: Filter $(install-lib-ldscripts) out of list of targets
5348         for libfoo.so that need $(make-link) rules.
5350 2003-02-21  Roland McGrath  <roland@frob.com>
5352         * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
5353         to match existing struct stat layout in mig protocols.
5355 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
5357         * version.h (VERSION): Bump to 2.3.2.
5359         * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
5360         tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
5361         and dl-sysdep.h.
5362         * sysdeps/generic/Dist: Add sysdep-cancel.h.
5363         * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
5364         * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
5365         * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
5366         * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
5367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
5368         ucontext_i.h.
5369         * Makefile (distribute): Add include/stubs-prologue.h,
5370         include/gnu/stubs.h, scripts/merge-abilist.awk, and
5371         scripts/extract-abilist.awk.
5373 2003-02-20  Roland McGrath  <roland@redhat.com>
5375         * math/Makefile (distribute): Don't add generated files.
5377 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
5379         * math/Makefile: Rearrange variable definitions slightly to get
5380         definition in the right order.
5382 2003-02-20  Roland McGrath  <roland@redhat.com>
5384         * Makerules: Clean up conditional around include of tls.make.
5385         * Make-dist: Export generating=t to prevent using that.
5386         (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
5388 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
5390         * inet/rcmd.c (rresvport_af): Avoid using invliad values.  Wrap
5391         around in search if port IPPORT_RESERVED/2 has been test.
5393 2002-02-20  Paolo Bonzini  <bonzini@gnu.org>
5395         * posix/regcomp.c: Remove inclusions.
5396         * posix/regexec.c: Likewise.
5397         * posix/regex_internal.c: Likewise.
5398         * posix/regex_internal.h: Add inclusions here.
5399         * posix/regex.c: Only include sys/types.h before regex.h.  Include
5400         regex_internal.h here.  Include regex_internal.c before regcomp.c
5401         and regexec.c (might expose more opportunities to the C compiler).
5403         * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
5405         * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
5406         [!_LIBC] (__wcrtomb): New definition.
5407         [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
5408         HAVE_LOCALE_H as well.
5410 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
5412         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
5413         patch to check for system call errors.
5415 2002-07-24  Philip Blundell  <philb@gnu.org>
5417         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
5418         on unknown systems.
5420 2003-02-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5422         * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
5423         * sysdeps/unix/sysv/linux/kernel-features.h
5424         (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
5425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
5426         if possible.
5427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
5428         interprocedure branches.
5429         * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
5430         * sysdeps/powerpc/nofpu/Dist: ...here.
5431         * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
5432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
5433         * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
5434         * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
5435         * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
5437 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
5439         * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
5441 2003-02-20  Philip Blundell  <philb@gnu.org>
5443         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
5444         missing arguments to INTERNAL_SYSCALL_ERROR_P and
5445         INTERNAL_SYSCALL_ERRNO.
5447 2003-02-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5449         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
5450         for __ASSUME_32BITUIDS.
5452 2003-02-20  Andreas Schwab  <schwab@suse.de>
5454         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
5455         POSIX_MADV_* constants.
5457 2003-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5459         * sysdeps/unix/sysv/linux/sh/pread.c: New file.
5460         * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
5461         * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
5462         * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
5464 2003-02-19  Jiro Sekiba  <jir@yamato.ibm.com>
5466         * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
5468 2003-02-16  Roland McGrath  <roland@redhat.com>
5470         * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
5472 2003-02-19  Ulrich Drepper  <drepper@redhat.com>
5474         * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
5475         decimal input digits.
5476         * stdlib/tst-strtod.c (main): Add test for strtof bug.
5478 2003-02-18  Ulrich Drepper  <drepper@redhat.com>
5480         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
5481         invalid file descriptors and missing access permissions.
5483 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
5485         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
5486         been found.
5488         * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
5489         TTY_NAME_MAX and not the _POSIX_* minimal value macros.
5490         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
5491         and LOGIN_NAME_MAX.
5493 2003-02-17  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
5494             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5496         * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
5497         * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
5498         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5499         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5500         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5502 2003-02-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5504         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
5505         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
5506         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
5507         * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
5508         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
5509         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
5511         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
5512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
5513         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
5514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
5516         * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
5517         * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
5518         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
5519         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
5521 2003-02-14  Thorsten Kukuk  <kukuk@suse.de>
5523         * nss/getent.c (print_hosts): Print all IP addresses of one host.
5525 2003-02-15  Roland McGrath  <roland@frob.com>
5527         * sysdeps/mach/hurd/tls.h: New file.
5528         * sysdeps/mach/hurd/i386/tls.h: New file.
5530         * mach/errsystems.awk: Include <errno.h> in generated output.
5532         * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
5533         use target mach-before-compile instead of generated.
5534         (mach-before-compile): New target.
5535         * Makerules: Disable use of tls.make if $(generating) is set.
5536         * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
5537         * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
5538         mach-shortcuts.h so mach/ generation happens before hurd/.
5540 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
5542         * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
5543         of demorm correctly if low word is zero.
5544         Reported by Fred J. Tydeman <tydeman@tybor.com>.
5545         * math/libm-test.inc (nextafter_test): New test, but disabled due
5546         to gcc bug.
5548         * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
5549         counter and only call __exit_thread if this is not the last thread.
5551 2003-02-13  Jakub Jelinek  <jakub@redhat.com>
5553         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
5554         subtracting map->l_tls_offset.
5556 2003-02-12  Ulrich Drepper  <drepper@redhat.com>
5558         * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
5559         _CS_GNU_LIBPTHREAD_VERSION.
5560         * posix/conststr.c: Handle these new values.
5561         * posix/getconf.c: Likewise.
5563         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
5564         masking of version index.
5565         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5567 2003-02-11  Ulrich Drepper  <drepper@redhat.com>
5569         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
5570         correctly.  Reported by Thorsten Kukuk.
5572 2003-02-10  Ulrich Drepper  <drepper@redhat.com>
5574         * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
5575         _BSD_SOURCE to compiler.
5576         * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
5577         Patches by Alan Modra.
5579 2003-02-08  Ulrich Drepper  <drepper@redhat.com>
5581         * io/ftwtest.c: Get current working directory before and after the
5582         nftw call and make sure they match.
5584 2003-02-08  Jim Meyering  <jim@meyering.net>
5586         * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
5587         the current directory, not just when DIR contains a slash.
5588         Reported by Manoj Srivastava.
5590 2003-02-07  Jim Meyering  <jim@meyering.net>
5592         * io/ftw.c: Add autoconf-recommended block of alloca-related code.
5593         Include autoconf-recommended block of dirent/NAMELEN-related
5594         definitions and includes.  Use NAMELEN throughout, rather than
5595         _D_EXACT_NAMLEN.
5596         [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
5597         [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
5598         (stpcpy): Declare, if necessary.
5599         (mempcpy): Define, if necessary.
5600         [!_LIBC] (__stpcpy, __mempcpy): Define.
5601         [!_LIBC] (LXSTAT, XSTAT): Define.
5602         (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
5603         (find_object): Don't use c99-style struct initializer.
5604         Tweak wording in a couple comments.
5606 2003-02-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5608         * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
5609         for SH.
5610         * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
5611         after the trapa instruction.
5612         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
5613         parameters.
5614         * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
5615         (NEED_SYSCALL_INST_PAD): Define.
5616         * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
5617         avoid to use definition for the kernel.
5618         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5619         Save and restore the frame pointer.
5620         (SYSCALL_INST_PAD): Define.
5621         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
5622         (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
5623         after trapa instruction.
5624         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
5625         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
5627 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
5629         * resolv/res_libc.c (_res): Ensure _res is not common symbol,
5630         so that it can have aliases.
5631         * inet/herrno.c (h_errno): Put it into .bss not .data section.
5633 2003-02-07  Ulrich Drepper  <drepper@redhat.com>
5635         * elf/dl-runtime.c (fixup): Correct typo in version index computation.
5636         (profile_fixup): Likewise.
5637         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
5639 2002-11-24  Robert Love  <rml@tech9.net>
5641         * posix/sched.h: Second parameter of sched_setaffinity and
5642         sched_getaffinity is `unsigned int', not `unsigned long'.
5643         * sysdeps/generic/sched_setaffinity.c: Likewise.
5644         * sysdeps/generic/sched_getaffinity.c: Likewise.
5646 2003-02-05  Ulrich Drepper  <drepper@redhat.com>
5648         * debug/catchsegv.sh: Fix typo in error messsage.
5649         Reported by John Levon <levon@movementarian.org>.
5651         * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
5652         * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
5653         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
5654         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5656         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5657         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5659         * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
5660         Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
5662 2003-02-05  Jim Meyering  <jim@meyering.net>
5664         Fix a heap-corrupting bug.
5665         * io/ftw.c: Include <limits.h>.
5666         (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
5667         (process_entry): Allocate enough space to hold the resulting
5668         file name.  Don't presume that 2*dirbufsize is enough.
5669         (ftw_startup): Always use PATH_MAX to compute buffer size, now that
5670         it is guaranteed to be defined.
5672 2003-02-04  Ulrich Drepper  <drepper@redhat.com>
5674         * iconvdata/Makefile: Add rules to build and run bug-iconv3.
5675         * iconvdata/bug-iconv3.c: New file.
5677 2003-02-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5679         * sysdeps/unix/sysv/linux/s390/system.c: New file.
5681 2003-02-03  Jakub Jelinek  <jakub@redhat.com>
5683         * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
5684         check.
5685         * config.h.in (BROKEN_SPARC_WDISP22): Add.
5687 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
5689         * sysdeps/i386/i686/memmove.S: New file.
5691 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
5693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
5694         Include kernel-features.h
5695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
5696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
5698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5700 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
5702         * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
5704 2003-01-25  Jim Meyering  <jim@meyering.net>
5706         * io/ftw.c (object_compare): Compare inode numbers before device
5707         numbers, since the former are much more likely to differ.
5709 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
5711         * time/tzfile.c (__tzfile_compute): Change return value type to
5712         void.  Adjust return statements.
5713         * include/time.h (__tzfile_compute): Adjust prototype.
5715 2003-02-01  Jim Meyering  <jim@meyering.net>
5717         * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
5718         always returns 1.
5720 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
5722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5723         [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
5725 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
5727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5728         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
5729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5730         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5732         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5734         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
5736 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
5738         * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
5739         back to 2.4.19 for powerpc64.
5740         * sysdeps/unix/sysv/linux/kernel-features.h
5741         (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
5742         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
5744 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
5746         * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
5747         platforms with strange alignment requirements on wchar_t.
5749 2003-01-31  Andreas Schwab  <schwab@suse.de>
5751         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
5752         aliases, already added by make-syscalls.sh.
5753         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5754         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5755         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5756         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5757         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5758         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5759         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5760         * sysdeps/unix/inet/syscalls.list: Likewise.
5761         * sysdeps/unix/syscalls.list: Likewise.
5763 2003-01-31  Andreas Schwab  <schwab@suse.de>
5765         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
5766         any more.
5768 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
5770         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
5771         not l to load tls from stack.
5773 2003-01-30  Roland McGrath  <roland@redhat.com>
5775         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
5776         null argument before all else.
5777         Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
5779 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
5781         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
5782         Move to RESOLVE protected part of the header.
5783         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
5784         Likewise.
5786 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
5788         * stdio-common/Makefile (tests): Add bug15.
5789         (bug15-ENV): Define.
5790         * stdio-common/bug15.c: New file.
5792 2002-10-07  Wolfram Gloger  <wg@malloc.de>
5794         * malloc/malloc.c (sYSMALLOc): Only check for breakage due
5795         to foreign sbrk()'s if arena is contiguous.  Bug report from
5796         Bruno Haible <bruno@clisp.org>.
5798 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
5800         * sysdeps/s390/libc-tls.c: Include stdlib.h.
5802 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
5804         * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
5805         ps.__count.
5807 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
5809         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
5810         restoring of %r6.
5811         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
5812         64-bit load.
5813         Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
5815 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
5817         * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
5818         (allocate_static_tls): ...here.  Add __attribute_noinline__.
5819         Don't return on failure.
5820         (_dl_reloc_bad_type): Add __attribute_noinline__.
5821         * elf/do-rel.h (elf_dynamic_do_rel): Add
5822         __attribute__((always_inline)).
5823         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
5824         elf_machine_rel_relative, elf_machine_rela_relative,
5825         elf_machine_lazy_rel): Add prototypes with
5826         __attribute__((always_inline)).
5828 2003-01-29  David Mosberger  <davidm@hpl.hp.com>
5830         * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
5832 2003-01-29  Roland McGrath  <roland@redhat.com>
5834         * configure.in: Barf if configured in $srcdir.
5836 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
5838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5839         (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
5841 2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5843         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
5844         clone parameters to match the order used on ia32.
5845         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5847 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5849         * elf/elf.h: Add new s390 relocs.
5850         * elf/tls-macros.h: Add s390 versions.
5851         * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
5852         * sysdeps/s390/dl-tls.h: New file.
5853         * sysdeps/s390/libc-tls.c: New file.
5854         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
5855         relocs for class PLT.
5856         (elf_machine_rela): Handle TLS relocs.
5857         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5858         * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
5859         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
5860         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
5861         CLONE_CHILD_*TID flags.
5862         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
5863         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
5864         bit offset.
5865         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5866         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
5867         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
5868         Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
5869         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
5870         Likewise.
5871         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
5872         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
5873         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5874         variants.
5875         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
5876         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
5877         direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
5878         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
5879         variants.
5881 2003-01-28  Ulrich Drepper  <drepper@redhat.com>
5883         * sysdeps/unix/common/pause.c (do_pause): New function.  Split
5884         from __libc_pause.  Implement using sigsuspend.
5885         (__libc_pause): Call do_pause to do the real work.
5887         * sysdeps/posix/sigpause.c (do_sigpause): Check range of
5888         sig_or_mask parameter is is_sig != 0.
5890 2003-01-21  Philip Blundell  <philb@gnu.org>
5892         * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
5894 2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>
5896         * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
5898 2003-01-27  Ulrich Drepper  <drepper@redhat.com>
5900         * stdio-common/bug14.c: Use official name for the locale.
5902         * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
5903         instead of __libc_cleanup_region_start and _IO_cleanup_region_end
5904         instead of __libc_cleanup_region_end.
5906         * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
5907         as first parameter to __libc_cleanup_region_start.
5909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
5910         (__fe_nomask_env): Use __prctl not prctl.
5911         * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
5912         prctl syscall.
5914         * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
5916         * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
5918         * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
5919         wrap-around in test.
5921 2003-01-26  Andreas Schwab  <schwab@suse.de>
5923         * sysdeps/wordsize-32/divdi3.c: Export the functions only as
5924         compatibility symbols.  Remove INTDEF for __divdi3.
5925         * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
5926         * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
5927         * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
5928         define.
5929         * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
5931 2003-01-24  Jakub Jelinek  <jakub@redhat.com>
5933         * elf/tls-macros.h: Add SPARC 32-bit definitions.
5934         * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
5935         * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
5936         for the first half of the header.  Include tls.h.
5937         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
5938         relocs too.
5939         (elf_machine_rela): Handle TLS relocs.
5940         * sysdeps/sparc/dl-tls.h: New file.
5942         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
5943         support.
5945         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
5946         * sysdeps/sparc/sparc32/memchr.S: Likewise.
5947         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
5948         * sysdeps/sparc/sparc32/strcat.S: Likewise.
5949         * sysdeps/sparc/sparc32/strchr.S: Likewise.
5950         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
5951         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
5952         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5953         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5954         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5955         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
5956         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
5957         * sysdeps/sparc/sparc64/strcat.S: Likewise.
5958         * sysdeps/sparc/sparc64/strchr.S: Likewise.
5959         * sysdeps/sparc/sparc64/strcmp.S: Likewise.
5960         * sysdeps/sparc/sparc64/strcpy.S: Likewise.
5961         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
5962         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
5963         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5964         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5966 2003-01-24  Andreas Schwab  <schwab@suse.de>
5968         * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
5969         elements, and process them backwards.
5970         * elf/Makefile ($(objpfx)tst-array4): New target.
5971         ($(objpfx)tst-array4.out): Likewise.
5972         (tests) [$(have-initfini-array) = yes]: Add tst-array4.
5973         * elf/tst-array4.c: New file.
5974         * elf/tst-array4.exp: Likewise.
5976 2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
5980 2003-01-27  Guido Guenther  <agx@sigxcpu.org>
5982         * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
5983         * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
5984         cancellation handling and handle both __NR_pread64 and __NR_pread.
5985         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5986         * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
5987         cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
5988         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5989         * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
5990         case, use register names consistently.
5992 2003-01-27  Wolfram Gloger  <wg@malloc.de>
5994         * malloc/hooks.c (mem2chunk_check): Check alignment of mem
5995         pointer, not of the computed chunk.  Bug report from Carlos
5996         O'Donell <carlos@baldric.uwo.ca>.
5998 2003-01-25  Andreas Schwab  <schwab@suse.de>
6000         * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
6001         addressing to save GOT entries.
6003 2003-01-21  Jakub Jelinek  <jakub@redhat.com>
6005         * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
6006         inline_syscall1, inline_syscall2, inline_syscall3,
6007         inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
6008         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
6009         __attribute__((unused)) to ChEcK.
6011 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6013         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
6014         Fix inline assembler constraints.
6015         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
6016         Likewise.
6018         * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
6019         -fPIC.
6021 2003-01-20  Segher Boessenkool  <segher@koffie.nl>
6023         * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
6024         compute the cosine, not the sine, even if x > 0.8.
6026 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
6028         * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
6029         _nss_nis_setspent.  Work around the different prototypes.
6030         * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
6031         internal_nis_endrpcent.
6032         (internal_nis_endrpcent): Change return type to void.  Change callers.
6033         * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
6034         _nss_nis_setpwent.  Work around the different prototypes.
6035         * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
6036         of the function to...
6037         (internal_nis_endprotoent): ... here.  New function.
6038         (internal_nis_setprotoent): Use internal_nis_endprotoent.
6039         * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
6040         _nss_nis_setnetent.  Work around the different prototypes.
6041         * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
6042         of the function to...
6043         (internal_nis_endnetgrent): ... here.  New function.
6044         (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
6046 2003-01-19  Jim Meyering  <jim@meyering.net>
6048         * time/strftime.c: (widen): Merge nearly-identical definitions.
6049         (nl_get_alt_digit) [! defined my_strftime]: Define.
6050         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
6051         _nl_get_alt_digit and _nl_get_walt_digit.
6053 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
6055         * time/strftime.c (my_strftime): Handle very large width
6056         specifications for numeric values correctly.  Improve checks for
6057         overflow.
6058         * time/Makefile (tests): Add tst-strftime.
6059         * time/tst-strftime.c: New file.
6061 2003-01-18  Ulrich Drepper  <drepper@redhat.com>
6063         * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
6064         _nss_nis_sethostent.  Work around the different prototypes.
6065         * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
6066         _nss_nis_setgrent.  Work around the different prototypes.
6067         * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
6068         function.  Split out from _nss_nis_endetherent.
6069         (internal_nis_setetherent): Use internal_nis_endetherent instead of
6070         duplicating the code.
6071         * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
6072         of _nss_nis_setaliasent.
6073         * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
6074         internal_nis_endservent code, don't duplicate it.
6076         * inet/rexec.c (rexec_af): Protect socket operations with
6077         TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
6078         * inet/rcmd.c (rcmd_af): Likewise.
6080 2003-01-17  Roland McGrath  <roland@redhat.com>
6082         * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
6083         Add test of value 0.80190127184058835.
6085         * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
6087 2003-01-17  Richard Henderson  <rth@redhat.com>
6089         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
6090         relocs for class PLT.
6091         * sysdeps/alpha/libc-tls.c: New file.
6092         * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
6093         (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
6095 2003-01-17  Jakub Jelinek  <jakub@redhat.com>
6097         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
6098         __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
6099         on _dl_static_lock.
6101 2003-01-17  Andreas Jaeger  <aj@suse.de>
6103         * stdio-common/bug14.c: Include stdlib.h for exit prototype.
6105 2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>
6107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
6108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
6109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
6110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
6111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
6112         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
6113         * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
6114         is 2.4.21.
6116 2003-01-16  Ulrich Drepper  <drepper@redhat.com>
6118         * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
6119         values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
6120         buffers.
6122         * sysdeps/generic/sysconf.c: Unconditionally implement
6123         _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
6124         * sysdeps/posix/sysconf.c: Likewise.
6126 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
6128         * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
6129         set *err to the returned error, not to REG_ESPACE unconditionally.
6130         (build_word_op): Likewise.
6131         * posix/Makefile (tests): Add bug-regex16.
6132         * posix/bug-regex16.c: New test.
6134 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
6136         * elf/dl-load.c (_dl_map_object_from_fd): Use
6137         GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
6138         been already initialized.
6140 2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>
6142         * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
6144 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
6146         * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
6147         allocated too.  Reported by Al Viro <aviro@redhat.com>.
6149 2003-01-16  Roland McGrath  <roland@redhat.com>
6151         Tweak merged .abilist file format to merge duplicate symbols in
6152         different sets into multi-version stanzas with new "| SET regexp..."
6153         header continuation lines.
6154         * scripts/merge-abilist.awk: Rewritten for new format.
6155         * scripts/extract-abilist.awk: Likewise.
6157 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
6159         * nscd/connections.c (nscd_run): Remove bogus return which isn't
6160         necessary with gcc 3.2+.
6161         (nscd_init): Don't use error() to print message, use dbg_log.
6163         * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
6164         expected size into state.
6165         (UNPACK_BYTES): Do the reverse.
6166         * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
6167         * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
6168         Reported by Al Viro <aviro@redhat.com>.
6170         * stdio-common/Makefile (tests): Add bug14.
6171         * stdio-common/bug14.c: New file.
6173         * stdio-common/vfscanf.c: When recognizing multibyte characters in
6174         string reset the byte counter after mbrtowc reported it is not a
6175         partial character.  Reported by Al Viro <aviro@redhat.com>.
6177 2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>
6179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
6180         sysdep-cancel.h, not sysdep.h.
6182 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
6184         * nscd/connections.c (nscd_run): Protect accept call with
6185         TEMP_FAILURE_RETRY.
6187 2003-01-15  Andreas Schwab  <schwab@suse.de>
6189         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
6190         (common-generated): Add s-proto-bp.d.
6191         * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
6192         of bp thunks.
6193         * sysdeps/unix/s-proto-bp.S: New file.
6194         * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
6195         Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
6196         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
6198 2003-01-15  Roland McGrath  <roland@redhat.com>
6200         * Makerules: Use -include for tls.make, suppresses warning.
6201         Move gen-as-const-headers rules up so before-compile is set in time.
6202         (sed-remove-dotdot): Fix to work right for subdirs or top dir.
6204 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
6206         * nscd/nscd.c (main): Make code to close all file descriptors
6207         faster and more robust.
6209         * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
6210         request with one writev call.  Protect all read calls with
6211         TEMP_FAILURE_RETRY.
6212         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6213         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6215         * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
6216         Protect writev calls with TEMP_FAILURE_RETRY.
6217         * nscd/grpcache.c: Likewise.
6218         * nscd/pwdcache.c: Likewise.
6220         * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
6221         IPv6 address in debug output.
6223 2003-01-14  Roland McGrath  <roland@redhat.com>
6225         * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
6226         $(objpfx) directories, and get rid of vpath directives.  The previous
6227         arrangement resulted in files being written to the source directories
6228         when run in a clean build.  Find all .abilist files in $(..)abilist/.
6229         (update-abi-%): Likewise.
6230         (generated): Don't add .symlist files, they'll be intermediates.
6232         * sysdeps/generic/init-first.c: Add a comment.
6234         * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
6236         * scripts/gen-as-const.awk: Grok lone "--" as a separator between
6237         #includes and expressions.
6239         * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
6240         config list when it already contains cpu-.*-os.* without / part.
6242         * Makerules (sed-remove-dotdot): New variable.
6243         ($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
6244         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
6245         (check-abi-config): New variable, append /tls or /notls to the tuple.
6246         (check-abi-%): Use that for -v config value.
6247         Find .abilist files in abilist/libfoo.abilist, not in subdir.
6248         * Rules: Move bits/stdio_lim.h generation rules to Makerules.
6250 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
6252         * manual/install.texi: Correct description of header preparation for
6253         Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].
6255 2003-01-14  Guido Guenther  <agx@sigxcpu.org>
6257         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
6258         INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6259         INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
6261 2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
6263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6264         (INTERNAL_SYSCALL): Make use of ERR parameter.
6265         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6266         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6267         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
6270 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
6272         * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
6273         == IPPROTO_TCP.
6274         Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
6276         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
6277         Fix entry for bit 31.
6279         * iconvdata/Makefile: Add rules to build IBM866NAV.
6280         * iconvdata/ibm866nav.c: New file.
6281         * iconvdata/tst-tables.sh: Add IBM866NAV.
6282         * iconvdata/gconv-modules: Add entries for IBM866NAV.
6284 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
6286         * string/tester.c (test_strcpy): Use the previously #if 0'ed code
6287         to test void* parameters.
6289         * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
6290         source pointer before dereferencing.
6291         (__STRING_SMALLL_GET32): Likewise.
6292         (__memset_gc): Add missing parenthesis around macro arguments.
6293         Patch by Denis Zaitsev <zzz@cd-club.ru>.
6295         * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
6296         that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
6298 2003-01-14  Jakub Jelinek  <jakub@redhat.com>
6300         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
6301         defining.
6303 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6305         * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
6306         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
6307         here.
6308         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
6310 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6312         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
6313         from here...
6314         (PSEUDO): ... to here.
6315         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
6316         from here...
6317         (PSEUDO): ... to here.
6319 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
6321         * locale/programs/charmap-dir.c (charmap_readdir): Use struct
6322         dirent64 instead of struct dirent for dirent.  Call readdir64
6323         instead of readdir.
6325         * locale/programs/locfile.c (siblings_uncached): Use struct
6326         dirent64 instead of struct dirent for other_dentry.  Call
6327         readdir64 instead of readdir.
6329         * elf/ldconfig.c (direntry): Change type to struct dirent64.
6330         (search_dir): Use readdir64 instead of readdir.
6331         Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
6333 2003-01-12  Roland McGrath  <roland@redhat.com>
6335         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
6336         not strtol.  The former is usable in ld.so, the latter not.
6338         * include/fcntl.h: Declare __libc_creat.
6340         * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
6341         libhurduser-link.so-no-z-defs): New variables.
6343         * malloc/malloc.c: Revert last change.
6344         * malloc/malloc.h (_int_*): Move these decls to ...
6345         * include/malloc.h: ... here.  Add attribute_hidden.
6346         (_int_valloc): Declare it too.
6348 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
6350         * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
6351         search for removed searchlist.  Reported by Roland McGrath.
6353         * io/ftwtest-sh: Add test for case of symlink to nonexisting file
6354         given as start file.
6356         * io/ftw.c (ftw_startup): Use correct name in check for symlink
6357         without existing target.  Patch by Jim Meyering.
6359         * Makerules (build-shlib-helper): Don't use -z defs linker option
6360         if no-z-defs is defined either.
6362 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6364         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
6365         file.
6367 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6369         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
6370         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6372 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
6374         * io/ftwtest-sh: Add test case for relative path with /. at the end.
6376 2003-01-12  Jim Meyering  <jim@meyering.net>
6378         * io/ftw.c (ftw_startup): When trying to stat the starting directory,
6379         use the basename if we've already chdir'd into its parent directory.
6381 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
6383         * io/ftw.c (process_entry): Use relative path when using chdir()
6384         to change directory after call to ftw_dir.
6385         * io/ftwtest-sh: Add test for relative path argument to nftw()
6386         with FTW_CHDIR option.
6388 2002-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6390         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
6391         Define for powerpc.
6392         * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
6393         into account.
6394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6395         (INTERNAL_SYSCALL): Make use of ERR parameter.
6396         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
6397         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
6398         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
6399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
6401 2002-01-09  Richard Henderson  <rth@redhat.com>
6403         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
6404         DTPREL64 and TPREL64 without loadbase applied.
6406 2002-01-09  Richard Henderson  <rth@redhat.com>
6408         * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
6409         for NOT_IN_libc.
6411         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
6412         * sysdeps/unix/alpha/sysdep.h: ... here.
6413         (PSEUDO_LOADGP): Remove.
6414         (PSEUDO_PROLOGUE): Load GP in non-pic case.
6415         (SYSCALL_ERROR_LABEL): New.
6416         (PSEUDO): Use it in error branch.
6417         (PSEUDO_END): Add $syscall_error label.
6419 2003-01-12  Andreas Jaeger  <aj@suse.de>
6421         * math/bits/mathcalls.h: Round is a const function.
6423 2003-01-11  Jim Meyering  <jim@meyering.net>
6425         * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
6426         [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
6427         Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
6428         [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
6429         [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
6430         [!_LIBC] (internal_function, dirent64, MAX): Define.
6431         (__set_errno): Define if not already defined.
6432         (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
6433         the basename, not the entire file name.
6434         (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
6435         the basename, not the entire file name.
6437 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
6439         * string/tester.c (test_strcpy): Disable last added strcpy until
6440         it is fixed.
6442 2003-01-11  Philip Blundell  <philb@gnu.org>
6444         * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
6446 2003-01-11  Andreas Schwab  <schwab@suse.de>
6448         * Makerules: Add vpath for %.dynsym and %.so so that the
6449         implicit rule chaining for check-abi works.
6451 2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6453         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6454         Add non-PIC case.
6456 2003-01-11  Jakub Jelinek  <jakub@redhat.com>
6458         * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
6459         [__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
6460         gp is used early.
6461         [__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
6462         * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
6463         Ensure libc.so in DT_NEEDED.
6464         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
6465         CHECK_STATIC_TLS before l_tls_offset use.
6466         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
6467         Likewise.
6468         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6469         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
6470         Allocate TLS_PRE_TCB_SIZE bytes below result.
6471         (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
6472         * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
6473         TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
6474         segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
6475         bytes below result and add tcb_offset to memsz.
6476         * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
6477         * sysdeps/ia64/dl-machine.h: Include tls.h.
6478         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
6479         too.
6480         (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
6481         Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
6482         * sysdeps/ia64/libc-tls.c: New file.
6484 2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>
6486         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
6487         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
6488         Fix type.  Move definition out of #if.
6489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
6490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
6491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
6492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
6493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
6494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
6495         support.
6496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
6497         ftruncate64, pread64, pwrite64, truncate64 entries.
6498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6499         (INLINE_SYSCALL): New version that supports function call like
6500         syscalls.  Add __builtin_expect.
6501         (LOADARGS_n): Add argument size safety checks.
6502         (INTERNAL_SYSCALL): New Macro.
6503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
6504         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
6505         redefinition of elf_fpreg_t and elf_fpregset_t.
6507 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
6509         * elf/dl-close.c (_dl_close): Add several asserts.  Correct and
6510         simplify test for unloading.  If loader of a DSO is unloaded do not
6511         use its scope anymore.  Fall back to own scope and adjust opencounts.
6512         Fix several comments.
6513         * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
6514         the l_searchlist, not only for l_initfini.
6516         * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
6517         dependencies if objects cannot be removed.  Remove object with the
6518         definition as not unloadable if necessary.
6520         * elf/reldep6.c: Create relocation dependency before closing the first
6521         module.
6523 2003-01-10  Guido Günther  <agx@sigxcpu.org>
6525         * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
6526         * sysdeps/unix/mips/brk.S: Likewise.
6527         * sysdeps/unix/mips/pipe.S: Likewise.
6529 2003-01-10  Andreas Schwab  <schwab@suse.de>
6531         * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
6533         * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
6534         are known to have the vfork syscall.
6536         * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
6538         * sysdeps/unix/sysv/linux/kernel-features.h
6539         (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
6540         (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
6541         (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
6543 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
6545         * elf/Makefile: Add rules to build and run reldep9 test.
6546         * elf/reldep9.c: New file.
6547         * elf/reldep9mod1.c: New file.
6548         * elf/reldep9mod2.c: New file.
6549         * elf/reldep9mod3.c: New file.
6551 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
6553         * elf/Makefile: Add rules to build and run nodelete2 test.
6554         * elf/nodelete2.c: New file.
6555         * elf/nodel2mod1.c: New file.
6556         * elf/nodel2mod2.c: New file.
6557         * elf/nodel2mod3.c: New file.
6559 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
6561         * posix/test-vfork.c (noop): Add __attribute_noinline__.
6562         * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
6563         * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
6564         defining it.
6565         * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
6566         * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
6567         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
6568         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
6569         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
6571 2003-01-09  Andreas Schwab  <schwab@suse.de>
6573         * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
6575 2003-01-08  Ulrich Drepper  <drepper@redhat.com>
6577         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
6578         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6579         argument.
6580         (INTERNAL_SYSCALL_DECL): Define.
6582 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
6584         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
6585         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
6586         argument.
6587         (INTERNAL_SYSCALL_DECL): Define.
6588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
6589         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
6590         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6591         (INLINE_SYSCALL): Adjust.
6592         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6593         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6594         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
6595         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6596         * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
6597         add err argument to INTERNAL_SYSCALL* macros.
6598         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
6599         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
6600         * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
6601         * sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
6602         Likewise.
6603         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
6604         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
6605         INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
6607 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
6609         Unify symbols in user namespace exported by libc.so and libc.a.
6610         * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
6611         argp_fmtstream_free, and argp_fmtstream_printf.
6612         * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
6613         argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
6614         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
6615         argp_fmtstream_point.
6616         * gmon/gmon.c: Don't define write_profiling.
6617         * libio/genops.c: Don't define _cleanup.
6619         * intl/explodename.c (_nl_find_language.c): Mark as static.
6620         * intl/loadinfo.h: Remove _nl_find_language prototype.
6622         * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
6623         * libio/libioP.h: Remove declaration.
6625         * libio/iopopen.c (_IO_proc_jumps): Mark as static.
6626         * libio/libioP.h: Remove declaration.
6628         * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
6629         * sysdeps/generic/framestate.c: Define STATIC before including
6630         unwind-dw2.c.
6632         * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
6634 2003-01-06  Philip Blundell  <philb@gnu.org>
6636         * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
6637         [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
6639         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
6640         directive.
6641         (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
6642         (SYSCALL_ERROR): New.
6643         (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
6644         handling code.
6645         (INTERNAL_SYSCALL): Define.
6646         (INLINE_SYSCALL): Use it.
6647         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
6648         * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
6649         SYSCALL_ERROR in place of __syscall_error.
6651 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
6653         * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6654         __bswap_32, __bswap_64): Put x into temporary variable
6655         to avoid warnings.
6656         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6657         (inline) functions.
6658         * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
6659         __bswap_32, __bswap_64): Put x into temporary variable
6660         to avoid warnings.
6661         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
6662         (inline) functions.
6663         * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
6664         Likewise.
6666 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
6668         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
6669         alias.
6671 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
6673         * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
6674         * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
6676 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
6678         * math/libm-test.inc (significand_test): New function.
6679         (main): Call it.
6681 2003-01-06  Roland McGrath  <roland@redhat.com>
6683         * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
6684         arguments.
6685         (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
6686         (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
6687         (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
6689         * string/tester.c (test_strcpy): Add test with `void *' arguments.
6691 2003-01-06  Ulrich Drepper  <drepper@redhat.com>
6693         * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
6694         return significand and not the exponent.
6695         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6697         * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
6698         taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
6700         * malloc/malloc.c: Mark all _int_* functions as static.
6702 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
6704         * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
6705         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
6706         handling.
6707         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
6709 2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6711         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
6712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
6713         support.
6714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
6715         ftruncate64, truncate64, pread64 and pwrite64 entries.
6716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6717         (INLINE_SYSCALL): Add __builtin_expect.
6718         (LOADARGS_n): Add argument size safety checks.
6719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
6720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
6721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
6722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
6723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
6724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
6726 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
6728         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
6729         * sysdeps/generic/creat.c: Include sysdep-cancel.h.
6730         (LIBC_CANCEL_HANDLED): Add.
6732         * sysdeps/unix/sysv/linux/alpha/sysdep.h
6733         (inline_syscall_r0_constraint): Rename to...
6734         (inline_syscall_r0_out_constraint): ... this.  Add =.
6735         (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
6737 2003-01-06  Andreas Schwab  <schwab@suse.de>
6739         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
6740         sure this is always inlined.
6741         (elf_machine_rela): Likewise.
6743         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
6745 2003-01-04  Roland McGrath  <roland@redhat.com>
6747         * Makeconfig (+mkdep): Add -MP flag.
6748         Suggested by Art Haas <ahaas@airmail.net>.
6750 2003-01-05  Andreas Schwab  <schwab@suse.de>
6752         * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
6754 2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6756         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
6757         SYSCALL_ERROR_HANDLER.
6758         * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
6759         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
6760         Add support for cancellation handling.
6761         * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
6762         SYSCALL_ERROR_HANDLER.
6763         * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
6764         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
6765         Add support for cancellation handling.
6766         (SYSCALL_ERROR_HANDLER): Define PIC variants.
6768 2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
6771         __syscall_pread64 and __syscall_pwrite64 cancelable.
6772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6773         (INTERNAL_SYSCALL): New macro.
6774         (LOADARGS_0, LOADARGS_1): Fix.
6776 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
6778         * Makerules (build-shlip-helper): Unless told otherwise, add
6779         -Wl,-z,defs to linker command line.
6780         * rt/Makefile (librt.so): Link with ld.so.
6781         * dlfcn/Makefile (libdl.so): Likewise.
6783 2003-01-05  Jakub Jelinek  <jakub@redhat.com>
6785         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
6786         cancellation handling.
6787         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6788         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
6790 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
6792         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
6793         order of parameters passed to kill.
6795 2003-01-04  Andreas Schwab  <schwab@suse.de>
6797         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
6799 2002-01-03  Paul Eggert  <eggert@twinsun.com>
6801         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
6802         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
6803         when compiling Bison 1.875's `bitset bset = obstack_alloc
6804         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
6806 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
6808         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
6809         unnecessary code.
6810         Correct reference counter in case SIGQUIT handler installation failed.
6812 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
6814         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
6815         Define using _Pragma(weak ...).
6817 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
6819         * resolv/res_libc.c: Provide declaration for __res_init_weak and
6820         reorder declarations.
6822 2003-01-03  Art Haas  <ahaas@airmail.net>
6824         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
6825         initializer syntax to C99.
6826         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
6827         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
6828         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
6829         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
6830         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
6831         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
6832         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
6833         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
6834         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
6835         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
6836         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
6837         * localedata/tests-mbwc/dat_mblen.c: Likewise.
6838         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
6839         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
6840         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
6841         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
6842         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
6843         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
6844         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
6845         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
6846         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
6847         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
6848         * localedata/tests-mbwc/dat_towlower.c: Likewise.
6849         * localedata/tests-mbwc/dat_towupper.c: Likewise.
6850         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
6851         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
6852         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
6853         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
6854         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
6855         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
6856         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
6857         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
6858         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
6859         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
6860         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
6861         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
6862         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
6863         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
6864         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
6865         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
6866         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
6867         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
6868         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
6869         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
6870         * localedata/tests-mbwc/dat_wctob.c: Likewise.
6871         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
6872         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
6873         * localedata/tests-mbwc/dat_wctype.c: Likewise.
6874         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
6876 2003-01-03  Richard Henderson  <rth@redhat.com>
6878         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
6879         (inline_syscall_r0_constraint): New.
6880         (inline_syscall[0-6]): Use them.
6882 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
6884         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
6885         Add rtld_hidden_proto.
6886         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
6887         (_dl_allocate_tls): Likewise.  Remove INTDEF.
6889 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6891         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
6892         Morita <toshiyasu.morita@hsa.hitachi.com>.
6893         * sysdeps/sh/memcpy.S: Likewise.
6895 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
6897         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
6898         any, but unify the test.
6900 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
6902         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
6903         sigaction): Protect weak_alias and libc_hidden_weak with
6904         #ifndef LIBC_SIGACTION.
6905         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
6906         sigaction): Likewise.
6907         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
6908         sigaction): Likewise.
6909         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
6910         sigaction): Likewise.
6911         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
6912         sigaction): Likewise.
6913         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
6914         sigaction): Likewise.
6915         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
6916         sigaction): Likewise.
6917         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
6918         sigaction): Likewise.  Remove SIGCANCEL handling here.
6919         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
6920         Likewise.
6922 2003-01-02  Art Haas  <ahaas@airmail.net>
6924         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
6926 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
6928         * posix/getconf.c: Update copyright year.
6929         * nss/getent.c: Likewise.
6930         * nscd/nscd_nischeck.c: Likewise.
6931         * iconv/iconvconfig.c: Likewise.
6932         * iconv/iconv_prog.c: Likewise.
6933         * elf/ldconfig.c: Likewise.
6934         * catgets/gencat.c: Likewise.
6935         * csu/version.c: Likewise.
6936         * elf/ldd.bash.in: Likewise.
6937         * elf/sprof.c (print_version): Likewise.
6938         * locale/programs/locale.c: Likewise.
6939         * locale/programs/localedef.c: Likewise.
6940         * nscd/nscd.c (print_version): Likewise.
6941         * debug/xtrace.sh: Likewise.
6942         * malloc/memusage.sh: Likewise.
6943         * malloc/mtrace.pl: Likewise.
6945 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
6947         * io/sys/stat.h: Include time.h with __need_timespec even if
6948         __USE_MISC is defined but __USE_XOPEN is not.
6950 2003-01-01  Andreas Jaeger  <aj@suse.de>
6952         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
6953         type to avoid strict aliasing problem.
6954         (_nss_dns_gethostbyname2_r): Likewise.
6955         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6956         (_nss_dns_getnetbyname_r): Likewise.
6957         * resolv/gethnamaddr.c (_gethtent): Likewise.
6958         (gethostbyname2): Likewise.
6960 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
6962         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
6963         to avoid using the exported symbols.  Define aliases with the
6964         original names separately.
6966         * include/time.h: Add libc_hidden_proto for __strftime_l.
6967         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
6968         * time/strftime.c: Always use libc_hidden_def if _LIBC.
6970         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
6971         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
6973         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
6974         tr_break.
6976         * csu/Makefile (routines): Add dso_handle.
6977         * csu/dso_handle.c: New file.
6979 2002-12-31  Roland McGrath  <roland@redhat.com>
6981         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
6982         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
6983         (S-CPPFLAGS): Add -DASSEMBLER here instead.
6984         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
6986 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
6988         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
6989         is available.
6991 2002-12-31  Andreas Jaeger  <aj@suse.de>
6993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
6994         with Linux kernel.
6995         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
6996         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
6997         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
6999         * sysdeps/unix/sysv/linux/kernel_stat.h
7000         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
7002         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
7003         __unused[1-3] since they're needed by some platforms.  Handle
7004         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
7006         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
7007         for structs stat and stat64.
7008         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7009         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7010         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7011         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7013         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
7015         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
7016         nsec resolution changes.
7017         (xstat64_conv): Likewise.
7018         (xstat32_conv): Likewise.
7020         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
7021         struct kernel_stat.
7023         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
7024         structs stat and stat64.
7026         * time/time.h (__timespec_defined): Define for __USE_MISC.
7028 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
7030         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
7031         and __libc_current_sigrtmax.
7033 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
7035         * include/errno.h (__errno_location): Add prototype.
7036         Use libc_hidden_proto unconditionally.
7037         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
7038         unconditionally.
7039         * include/resolv.h (__res_state): Likewise.
7041         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
7042         * include/sys/socket.h (accept): Add libc_hidden_proto.
7043         * include/errno.h (__errno_location): Likewise.
7044         * include/netdb.h (__h_errno_location): Likewise.
7045         * include/resolv.h (__res_state): Likewise.
7046         * include/unistd.h (__lseek): Likewise.
7047         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
7048         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
7049         * sysdeps/generic/res-state.c (__res_state): Likewise.
7050         * sysdeps/generic/accept.c (accept): Likewise.
7051         * sysdeps/generic/lseek.c (__lseek): Likewise.
7052         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
7053         __libc_current_sigrtmax): Likewise.
7054         * sysdeps/mach/hurd/accept.c (accept): Likewise.
7055         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
7056         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
7057         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
7058         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
7059         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
7060         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
7061         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
7062         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
7063         alias to llseek.
7064         (__GI_accept): New alias to accept.
7065         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
7066         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
7067         New alias to llseek.
7068         (__GI_accept): New alias to accept.
7069         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
7070         Likewise.
7071         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
7072         Likewise.
7073         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
7075         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
7076         strong_alias (name, __GI_name).
7077         * sysdeps/arm/bsd-_setjmp.S : Likewise.
7078         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
7079         * sysdeps/i386/bsd-_setjmp.S : Likewise.
7080         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
7081         * sysdeps/mips/bsd-_setjmp.S : Likewise.
7082         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
7083         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
7084         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
7085         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
7086         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
7087         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
7088         * sysdeps/sh/bsd-_setjmp.S : Likewise.
7089         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
7090         * sysdeps/unix/arm/fork.S : Likewise.
7091         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
7092         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
7093         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
7094         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
7095         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
7096         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
7097         * sysdeps/unix/i386/fork.S : Likewise.
7098         * sysdeps/unix/mips/fork.S : Likewise.
7099         * sysdeps/unix/sparc/fork.S : Likewise.
7100         * sysdeps/unix/sparc/vfork.S : Likewise.
7101         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
7102         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
7103         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
7104         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
7105         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
7106         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
7107         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
7108         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
7109         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
7110         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
7111         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
7112         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
7113         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
7114         * sysdeps/unix/fork.S : Likewise.
7115         * sysdeps/vax/bsd-_setjmp.S : Likewise.
7116         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
7118         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
7119         inclusion.
7121 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
7123         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
7124         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
7125         * sysdeps/mach/hurd/fork.c: Likewise.
7126         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7127         * sysdeps/unix/fork.S: Add __GI___fork alias.
7128         * sysdeps/unix/arm/fork.S: Likewise.
7129         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
7130         * sysdeps/unix/i386/fork.S: Likewise.
7131         * sysdeps/unix/mips/fork.S: Likewise.
7132         * sysdeps/unix/sparc/fork.S: Likewise.
7133         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7134         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
7135         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7136         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
7137         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
7138         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7139         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
7140         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
7141         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
7142         * sysdeps/unix/sparc/vfork.S: Likewise.
7143         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
7144         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
7145         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
7146         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
7147         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
7148         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
7149         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
7150         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
7152         * include/time.h: Add libc_hidden_proto for __nanosleep.
7153         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
7154         * sysdeps/mach/nanosleep.c: Likewise.
7155         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
7156         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
7158         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
7159         _IO_list_unlock, and _IO_list_resetlock.
7160         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
7161         _IO_list_unlock, and _IO_list_resetlock.
7163         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
7164         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7165         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
7166         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
7168         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
7169         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
7170         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
7171         __GI___longjmp alias.
7173         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
7174         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
7175         * sysdeps/arm/bsd-_setjmp.S: Likewise.
7176         * sysdeps/generic/bsd-_setjmp.c: Likewise.
7177         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
7178         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7179         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
7180         * sysdeps/mips/bsd-_setjmp.S: Likewise.
7181         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7182         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
7183         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
7184         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
7185         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
7186         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
7187         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
7188         * sysdeps/sh/bsd-_setjmp.S: Likewise.
7189         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
7190         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7191         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
7192         * sysdeps/vax/bsd-_setjmp.S: Likewise.
7193         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
7195 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
7197         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
7199 2002-12-30  Roland McGrath  <roland@redhat.com>
7201         * Rules (generated): Target removed.
7202         * mach/Makefile (generated): Define it here instead.
7204         * math/Makefile (generated): Add m_*l and m_*f variants too.
7206 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
7208         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
7209         the to-be-deleted objects right away instead of later separately.
7210         The latter fails because the scope data structures of the DSO
7211         might already be gone.
7213         * elf/Makefile: Add rules to build and run reldep8 test.
7214         * elf/reldep8.c: New file.
7215         * elf/reldep8mod1.c: New file.
7216         * elf/reldep8mod2.c: New file.
7217         * elf/reldep8mod3.c: New file.
7218         Contributed by Jakub Jelinek.
7220 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
7222         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
7223         checking of return value ENOSYS from getdents64.
7225 2002-12-28  Andreas Schwab  <schwab@suse.de>
7227         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
7228         ($(common-objpfx)s-%.d): Generalized from
7229         $(common-objpfx)s-proto.d rule.
7230         (common-generated): Add s-proto-cancel.d.
7231         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
7232         cancellable syscalls.
7233         * sysdeps/unix/s-proto-cancel.S: New file.
7235 2002-12-29  Roland McGrath  <roland@redhat.com>
7237         * resolv/res_libc.c: Move _res defn magic after res_init defn
7238         so _res macro is in effect for that code.
7240         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
7241         pattern for prepending $(..) so it doesn't affect $(foo).
7243         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
7245 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
7247         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
7248         in hwcap.
7250 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
7252         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
7254 2002-12-28  Andreas Jaeger  <aj@suse.de>
7256         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
7257         avoid warning.
7258         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
7260 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
7262         * inet/herrno.c (__h_errno_location): Remove.
7263         * inet/Makefile (routines): Add herrno-loc.
7264         * resolv/res_libc.c (__res_state): Remove.
7265         * resolv/Makefile (routines): Add res-state.
7266         * sysdeps/generic/herrno-loc.c: New file.
7267         * sysdeps/generic/res-state.c: New file.
7269 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
7271         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7272         Only define if USE_DL_SYSINFO is defined.
7274 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
7276         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
7277         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
7278         Define. Patch by Richard Henderson and Jes Sorensen.
7279         (PSEUDO): Remove unnecessary ;;.
7280         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
7281         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
7282         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
7283         if not initializing thread pointer.
7284         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
7285         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
7286         make it weak also if NONTLS_INIT_TP.
7287         * sysdeps/unix/common/pause.c: Handle cancellation.
7288         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
7289         (LOADSYSCALL): Remove.
7290         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7291         (SYSCALL_ERROR_HANDLER): Use it.
7292         (PSEUDO): Don't jump around error handler.
7293         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
7294         jump around error handler.
7295         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
7296         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
7297         to __syscall_error_handler on failure.
7298         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
7299         (LOADSYSCALL): Remove.
7300         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
7301         (SYSCALL_ERROR_HANDLER): Use it.
7302         (PSEUDO): Don't jump around error handler.
7303         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
7304         jump around error handler.
7305         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
7306         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
7307         to __syscall_error_handler on failure.
7309 2002-12-27  Roland McGrath  <roland@redhat.com>
7311         * scripts/gen-as-const.awk: New file.
7312         * Makefile (distribute): Add it.
7313         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
7314         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
7315         to the list.
7316         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
7318 2002-12-27  Andreas Schwab  <schwab@suse.de>
7320         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
7322 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
7324         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
7325         _environ is NULL.
7327 2002-12-27  Andreas Schwab  <schwab@suse.de>
7329         * Makerules ($(common-objpfx)%.make): Filter through
7330         $(sed-remove-objpfx).
7332 2002-12-23  Roland McGrath  <roland@redhat.com>
7334         * scripts/abilist.awk: Produce a more compact format, divided into
7335         stanzas for each version set, the set name listed only once.
7336         * scripts/extract-abilist.awk: New file.
7337         * scripts/merge-abilist.awk: New file.
7338         * Makerules (check-abi-%, update-abi-%): New pattern rules.
7339         (update-abi, check-abi): New targets.
7340         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
7342 2002-12-19  Roland McGrath  <roland@redhat.com>
7344         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
7346         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
7347         INTERNAL_SYSCALL.
7349 2002-12-21  Andreas Schwab  <schwab@suse.de>
7351         * elf/check-textrel.c (handle_file): Swap p_type.
7353 2002-12-21  Andreas Schwab  <schwab@suse.de>
7355         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
7356         (INLINE_SYSCALL): Use it.
7357         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
7358         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7360         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
7361         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
7363 2002-12-20  Art Haas  <ahaas@airmail.net>
7365         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
7366         syntax to C99.
7368 2002-12-21  Philip Blundell  <philb@gnu.org>
7370         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
7371         top as seventh arg to __libc_start_main.
7372         Reported by paulnash@wildseed.com.
7374         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
7376         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
7377         compatibility cruft when new enough kernel is assumed.
7379 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
7381         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
7382         instead of INLINE_SYSCALL.
7384 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
7386         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
7387         typo.
7389         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
7390         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7391         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
7392         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7393         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7394         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7395         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7396         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7397         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7398         Patch by William Lee Irwin <wli@holomorphy.com>.
7400 2002-12-20  Andreas Schwab  <schwab@suse.de>
7402         * locale/programs/ld-measurement.c (measurement_output): Fix
7403         index calculation.
7405 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
7407         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
7408         Redefine _IO_flockifle and _IO_funlockfile as inlines.
7410         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
7411         builds add "tls" in the search path.
7412         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
7413         (path_hwcap): Recognize "tls".
7415 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
7417         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
7418         __waitpid instead of waitpid.
7420         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
7421         int $0x80.
7422         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
7423         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
7424         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
7426         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
7427         information for system calls.
7429         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
7430         for ld.so.
7432         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
7434 2002-12-19  Roland McGrath  <roland@redhat.com>
7436         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
7437         * iconvdata/ibm922.h: Likewise.
7438         * iconvdata/ibm930.h: Likewise.
7439         * iconvdata/ibm932.h: Likewise.
7440         * iconvdata/ibm933.h: Likewise.
7441         * iconvdata/ibm935.h: Likewise.
7442         * iconvdata/ibm937.h: Likewise.
7443         * iconvdata/ibm939.h: Likewise.
7444         * iconvdata/ibm943.h: Likewise.
7445         * iconvdata/isiri-3342.h: Likewise.
7447 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
7449         * test-skeleton.c (main): Make sure correct value is seen as
7450         argv[0] after adjustment of argv, and argc.
7452         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
7453         RTLD_CORRECT_DYNAMIC_WEAK is defined.
7455 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
7457         * nscd/connections.c (nscd_run): Shut up warning.
7458         * tst-ungetc.c (assert): Undefined before redefining.
7460 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
7462         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
7463         is used.
7465 2002-12-17  Art Haas  <ahaas@airmail.net>
7467         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
7468         * iconvdata/cp775.h: Likewise.
7469         * iconvdata/ibm1046.h: Likewise.
7470         * iconvdata/ibm1124.h: Likewise.
7471         * iconvdata/ibm1129.h: Likewise.
7472         * iconvdata/ibm1132.h: Likewise.
7473         * iconvdata/ibm1133.h: Likewise.
7474         * iconvdata/ibm1160.h: Likewise.
7475         * iconvdata/ibm1161.h: Likewise.
7476         * iconvdata/ibm1162.h: Likewise.
7477         * iconvdata/ibm1163.h: Likewise.
7478         * iconvdata/ibm1164.h: Likewise.
7480 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
7482         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
7483         __ASSUME_CLONE_THREAD_FLAGS is defined.
7484         * sysdeps/unix/sysv/linux/kernel-features.h
7485         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
7487 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
7489         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
7490         of asm.
7491         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7493         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
7494         _dl_sysinfo.
7495         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7496         code.
7497         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
7498         _rtld_global.
7499         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
7500         code.
7501         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7502         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
7503         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
7504         Add _dl_sysinfo.
7506 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
7508         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
7509         __libc_writev to...
7510         [libc: GLIBC_PRIVATE]: ...here.
7511         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
7512         __libc_msgsnd to...
7513         [libc: GLIBC_PRIVATE]: ...here.
7515 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
7517         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
7518         Use it instead of directly int $0x80.
7519         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
7520         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
7521         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7522         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7523         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7524         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7526 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
7528         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
7530         * elf/elf.h (AT_SYSINFO): New define.
7531         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
7532         AT_SYSINFO.
7534 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
7536         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
7537         Make cancelable.
7538         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
7539         Likewise.
7540         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
7541         Likewise.
7542         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
7543         Likewise.
7544         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
7545         Likewise.
7546         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
7548         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
7549         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
7550         available, otherwise __libc_maybe_call.
7551         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
7552         cancellation handling.
7553         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
7555 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
7557         * posix/regcomp.c (free_workarea_compile): Free the new member
7558         ORG_INDICES.
7559         (analyze): Initialize ORG_INDICES.
7560         (duplicate_node_closure): Search for a existing node, which is
7561         duplicated from the node ORG_DEST and satisfies the constraint
7562         CONSTRAINT.  And use it to avoid inifimite loop.
7563         (search_duplicated_node): New function.
7564         (duplicate_node): Store the index of the original node.
7565         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
7566         if needed.
7567         * posix/regex_internal.h (re_dfa_t): Add new members.
7569 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
7571         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
7573 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
7575         * sysdeps/posix/system.c (do_system): Add support for installation
7576         of cancellation handlers.
7577         * sysdeps/unix/sysv/linux/i386/system.c: New file.
7579         * stdlib/Makefile (tests): Add tst-system.
7580         * stdlib/tst-system.c: New file.
7582         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
7583         CENABLE]: Don't lose content of %ebx.
7585 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
7587         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
7588         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
7590 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
7592         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
7593         fails to return a function pointer don't use it.
7595 2002-12-16  Art Haas  <ahaas@airmail.net>
7597         * io/ftw.c: Convert GCC extension initializer syntax to C99.
7598         * iconvdata/iso-ir-165.c: Likewise.
7599         * iconvdata/jis0208.c: Likewise.
7600         * iconvdata/jis0212.c: Likewise.
7602 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
7604         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
7605         epoll_ctl, and epoll_wait.
7606         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
7607         epoll_create, epoll_ctl, and epoll_wait.
7608         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
7609         Davide Libenzi <davidel@xmailserver.org>.
7610         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
7611         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7612         Add sys/epoll.h.
7614 2002-12-16  Art Haas  <ahaas@airmail.net>
7616         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
7617         syntax to C99
7618         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
7619         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
7620         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
7622 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
7624         * stdio-common/Makefile (routines): Remove lockfile.  Add
7625         flockfile, ftrylockfile, and funlockfile.
7626         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
7627         * sysdeps/generic/flockfile.c: New file.
7628         * sysdeps/generic/ftrylockfile.c: New file.
7629         * sysdeps/generic/funlockfile.c: New file.
7631 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
7633         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
7634         macros instead of doing the calls directly.
7635         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
7636         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
7637         targets.
7639 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
7641         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
7642         * sysdeps/ieee754/bits/nan.h: Likewise.
7644         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
7645         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
7647 2002-12-16  Roland McGrath  <roland@redhat.com>
7649         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
7650         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
7651         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
7653         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
7654         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
7655         s_putpmsg.
7656         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
7657         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
7658         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
7659         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
7660         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
7661         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
7662         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
7663         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
7665 2002-12-13  Paul Eggert  <eggert@twinsun.com>
7667         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
7668         is now u_int, not int.
7669         (struct XDR.x_handy): Now u_int, not int.
7670         * sunrpc/xdr_mem.c: Include <limits.h>.
7671         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
7672         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
7673         x_handy is now unsigned, not signed.
7674         Do not decrement x_handy if no change is made.
7675         (xdrmem_setpos): Check for int overflow.
7676         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
7677         (xdr_sizeof): Remove cast that is now unnecessary, now that
7678         x_handy is unsigned.
7680 2002-12-15  Art Haas  <ahaas@airmail.net>
7682         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
7683         * iconvdata/gap.awk: Likewise.
7684         * iconvdata/gen-8bit-gap-1.sh: Likewise.
7685         * iconvdata/gen-8bit-gap.sh: Likewise.
7686         * locale/C-address.c: Likewise.
7687         * locale/C-collate.c: Likewise.
7688         * locale/C-ctype.c: Likewise.
7689         * locale/C-identification.c: Likewise.
7690         * locale/C-measurement.c: Likewise.
7691         * locale/C-messages.c: Likewise.
7692         * locale/C-monetary.c: Likewise.
7693         * locale/C-name.c: Likewise.
7694         * locale/C-numeric.c: Likewise.
7695         * locale/C-paper.c: Likewise.
7696         * locale/C-telephone.c: Likewise.
7697         * locale/C-time.c: Likewise.
7698         * nscd/connections.c: Likewise.
7699         * nscd/grpcache.c: Likewise.
7700         * nscd/hstcache.c: Likewise.
7701         * nscd/pwdcache.c: Likewise.
7702         * stdio-common/vfprintf.c: Likewise.
7703         * stdlib/random.c: Likewise.
7704         * sysdeps/generic/siglist.c: Likewise.
7705         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7706         * sysdeps/ieee754/bits/nan.h: Likewise.
7707         * sysdeps/posix/sprofil.c: Likewise.
7708         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
7709         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
7710         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
7712 2002-12-15  Roland McGrath  <roland@redhat.com>
7714         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
7716         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
7717         <tls.h> here, no need for it.
7718         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
7720         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
7721         parameter, not varargs parameter.
7723         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
7724         argument so it's not an unused variable.
7726         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
7727         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
7728         for users.
7730         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
7732 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
7734         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
7735         original __libc_fcntl code.  Just renamed.
7737 2002-12-15  Andreas Schwab  <schwab@suse.de>
7739         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
7741 2002-12-14  Olaf Hering  <olh@suse.de>
7743         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
7744         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
7746 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
7748         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
7750         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
7751         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
7753         * sysdeps/unix/sysv/linux/open64.c: New file.
7755         * sysdeps/generic/pselect.c: Add support for cancellation handling.
7756         * sysdeps/posix/open64.c: Likewise.
7757         * sysdeps/posix/sigpause.c: Likewise.
7758         * sysdeps/posix/sigwait.c: Likewise.
7759         * sysdeps/posix/system.c: Likewise.
7760         * sysdeps/posix/waitid.c: Likewise.
7761         * sysdeps/unix/sysv/linux/accept.S: Likewise.
7762         * sysdeps/unix/sysv/linux/connect.S: Likewise.
7763         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
7764         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
7765         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
7766         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7767         * sysdeps/unix/sysv/linux/pread.c: Likewise.
7768         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7769         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
7770         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7771         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7772         * sysdeps/unix/sysv/linux/recv.S: Likewise.
7773         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
7774         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
7775         * sysdeps/unix/sysv/linux/send.S: Likewise.
7776         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
7777         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
7778         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
7779         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
7780         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
7781         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
7782         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
7783         * sysdeps/unix/sysv/linux/wait.c: Likewise.
7784         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
7785         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7786         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7787         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7789 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
7791         * sysdeps/generic/sysdep-cancel.h: New file.
7792         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
7793         cancelable syscall.
7794         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
7795         recvmsg, send, sendmsg, sendto): Make cancelable.
7796         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
7797         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
7798         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7799         sendto, osf_select): Likewise.
7800         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
7801         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
7802         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
7803         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7804         sendto): Likewise.
7805         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
7806         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
7807         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
7808         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7809         sendto): Likewise.
7810         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
7811         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
7812         sendto, select): Likewise.
7813         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
7814         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
7815         Likewise.
7816         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
7817         select, fcntl): Likewise.
7818         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
7819         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
7820         read, readv, select, sigsuspend, write, writev): Likewise.
7822 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
7824         * dirent/bug-readdir1.c: Include unistd.h.
7826 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
7828         * locale/programs/locale.c: Include locarchive.h.
7829         (ARCHIVE_NAME): Define.
7830         (write_archive_locales): New function.
7831         (write_locales): Use it.  Ensure the same locale is not printed
7832         multiple times in verbose mode.
7833         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
7834         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
7835         functions.
7836         (struct nameent): New type.
7837         (nameentcmp): New function.
7839 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
7841         * posix/regex_internal.c (re_string_context_at): Guard wide char
7842         code with #ifdef RE_ENABLE_I18N.
7844 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
7846         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
7848 2002-12-13  Roland McGrath  <roland@redhat.com>
7850         * posix/bug-regex15.c: New file.
7851         * posix/Makefile (tests): Add it.
7853         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
7854         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
7856 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
7858         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
7860         * misc/syslog.c (log_cleanup): Don't use parameter in
7861         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
7862         pass NULL instead of a pointer to syslog_lock.
7864 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
7866         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
7867         linker map for all iconv modules.
7868         (distribute): Add gconv.map.
7869         * iconvdata/gconv.map: New file.
7871         * elf/Makefile: Also check all iconv modules for text relocations.
7873         * stdlib/Makefile: Remove code to automatically import GMP.
7875         * elf/Makefile (tests): Add rules to build and run check-textrel.
7876         * elf/check-textrel.c: New file.
7878         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
7879         directive.
7881 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
7883         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
7884         not st.st[am]time.
7886 2002-04-30  Bruno Haible  <bruno@clisp.org>
7888         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
7889         the encoding if it already has slashes.
7890         Reported by Perry Rapp <prapp@erols.com>.
7892 2002-12-11  Roland McGrath  <roland@redhat.com>
7894         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
7895         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
7896         Turn off PIC for compiling this file.
7898 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
7900         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
7901         definitions.  Not needed.
7902         [_LIBC]: Use definitions from libc-lock.h instead of referencing
7903         pthread routines directly.
7904         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
7905         mutex_init calls.
7906         (arena_get2): Don't look at return value of mutex_lock.
7908 2002-12-11  Roland McGrath  <roland@redhat.com>
7910         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
7911         elf-init.o instead of compiling a PIC version.
7913 2002-12-11  Bruno Haible  <bruno@clisp.org>
7915         * intl/gettext.h: Renamed to ...
7916         * intl/gmo.h: ... here.
7917         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
7918         * intl/gettextP.h: Update.
7919         * intl/loadmsgcat.c: Update.
7921         * intl/gettextP.h (PARAMS): Make more portable.
7922         (attribute_hidden): Define as empty macro if not already defined.
7923         * intl/hash-string.h (PARAMS): Make more portable.
7924         * intl/loadinfo.h (PARAMS): Likewise.
7925         * intl/plural-exp.h (PARAMS): Likewise.
7926         (attribute_hidden): Move definition near the definition of
7927         internal_function.
7929         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
7930         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
7932 2002-07-13  Bruno Haible  <bruno@clisp.org>
7934         * intl/dcigettext.c (freea): New macro.
7935         (FREE_BLOCKS): Free also the registered blocks.
7936         (DCIGETTEXT): Free the 'search' variable.
7937         Reported by Andreas Fischer <a.fischer@asentics.de>.
7939 2002-04-27  Bruno Haible  <bruno@clisp.org>
7941         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
7942         * intl/dcigettext.c: Likewise.
7943         * intl/dcgettext.c: Likewise.
7944         * intl/dgettext.c: Likewise.
7945         * intl/gettext.c: Likewise.
7946         * intl/dcngettext.c: Likewise.
7947         * intl/dngettext.c: Likewise.
7948         * intl/ngettext.c: Likewise.
7949         * intl/textdomain.c: Likewise.
7950         * intl/bindtextdom.c: Likewise.
7951         * intl/plural-exp.h: Likewise.
7953 2002-01-02  Bruno Haible  <bruno@clisp.org>
7955         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
7957 2001-04-30  Bruno Haible  <bruno@clisp.org>
7959         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
7960         default macro definitions.  Needed for mingw32.
7962 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
7964         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
7965         __builtin_constant_p to macro parameter.
7967         * sysdeps/generic/sigpause.c: Define all functions as weak.
7968         * sysdeps/posix/sigpause.c: Likewise.
7970         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
7971         type size_t.
7973 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
7975         * elf/tst-array1.c (preinit_array, init_array, fini_array):
7976         Explicitly align the array to sizeof (void *).
7977         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
7979         * include/libc-symbols.h: Fix a comment typo.
7981         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
7982         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
7983         Likewise.
7984         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
7985         Likewise.
7986         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
7987         (__libc_sigsuspend): Likewise.
7988         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
7989         (__libc_sigsuspend): Likewise.
7990         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
7991         (creat): New weak alias.
7993 2002-12-10  Roland McGrath  <roland@redhat.com>
7995         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
7996         contributes a manual chapter.
7997         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
7998         around xref to it.
8000         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
8001         and move contents to ...
8002         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
8003         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
8004         it instead of duplicating its contents.
8005         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
8007 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
8009         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
8010         defined.
8011         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
8012         function.
8013         (EXTRA_LD_ENVVARS): Use it.
8014         (DL_OSVERSION_INIT): Define.
8015         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
8016         dl-librecon.h.
8017         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
8019 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
8021         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
8023         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
8024         call.  It is not allowed to destroy pthread mutexes which are
8025         still in use even though it is safe for our implementations.  If
8026         somebody still uses the descriptor it is a bug.
8028 2002-12-09  Richard Henderson  <rth@redhat.com>
8030         * csu/abi-note.S: Use .p2align, not .align.
8032 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
8034         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
8035         __libc_select aliases.
8037         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
8038         alias.
8040         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
8042         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
8044         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
8046         * sysdeps/unix/syscalls.list: Define __libc_select alias.
8048         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
8050         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
8051         __libc___xpg_sigpause aliases.
8053         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
8055         * misc/error.c: Remove use of USE_IN_LIBIO.
8057 2002-12-08  Roland McGrath  <roland@redhat.com>
8059         * elf/Makefile (tests): Uncomment tst-array[123].
8060         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
8061         * csu/elf-init.c: New file.
8062         * csu/Makefile (routines, static-only-routines): Add elf-init.
8063         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
8064         and __libc_csu_fini in place of _fini.
8065         * sysdeps/arm/elf/start.S: Likewise.
8066         * sysdeps/cris/elf/start.S: Likewise.
8067         * sysdeps/hppa/elf/start.S: Likewise.
8068         * sysdeps/i386/elf/start.S: Likewise.
8069         * sysdeps/ia64/elf/start.S: Likewise.
8070         * sysdeps/m68k/elf/start.S: Likewise.
8071         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
8072         * sysdeps/mips/elf/start.S: Likewise.
8073         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
8074         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
8075         * sysdeps/s390/s390-32/elf/start.S: Likewise.
8076         * sysdeps/s390/s390-64/elf/start.S: Likewise.
8077         * sysdeps/sh/elf/start.S: Likewise.
8078         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8079         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8080         * sysdeps/x86_64/elf/start.S: Likewise.
8082         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
8083         struct containing function ptr and value, free it.
8084         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
8085         It's not safe to let the new thread use the SIGEV pointer.
8087 2001-10-20  Paul Eggert  <eggert@twinsun.com>
8089         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
8090         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
8091         Use strerror_r that is only a macro, even if it is not a function.
8092         (strerror): Check for HAVE_DECL_STRERROR before declaring.
8093         (private_strerror): Use prototypes, not old-style function definition.
8094         (print_errno_message): New function.
8095         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
8096         char*-flavored one.
8097         (error_tail, error, error_at_line): Use it.
8099 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
8101         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
8103 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
8105         * scripts/output-format.sed: Fix bug in one of the s expressions
8106         which used / for one too many things.
8108         * include/unistd.h: Declare __libc_close.
8110 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
8112         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
8114 2002-12-07  Roland McGrath  <roland@redhat.com>
8116         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
8117         from 2002-12-06, but remove unnecessary memset call without removing
8118         necessary copy of initialization image.
8120         * Makerules ($(common-objpfx)format.lds): New target.
8121         (common-generated): Add it.
8122         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
8123         * scripts/output-format.sed: New file.
8124         * Makefile (distribute): Add it.
8126 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
8128         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
8129         Reported by Art Haas <ahaas@airmail.net>.
8131 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
8133         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
8135 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
8137         * string/test-strncpy.c (do_random_tests): Improve test coverage.
8139 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
8141         * test-skeleton.c (timeout_handler): Allow expected signal to be
8142         SIGALRM.
8144         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
8146         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
8148 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
8150         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
8151         (SYSCALL_ERROR_HANDLER): Fix a pasto.
8152         Reported by Jeff Bailey <jbailey@nisa.net>.
8154 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
8156         * sysdeps/generic/libc-tls.c: Undo last patch.
8158         * include/wctype.h: Define iswalnum with libc_hidden_proto.
8160         * include/signal.h: Define raise with libc_hidden_proto.
8162         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
8163         __execve instead of snprintf and execve.
8165         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
8166         again a bit.
8168 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
8170         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
8171         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
8173 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
8175         * misc/syslog.c (log_cleanup): New function.
8176         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
8177         (closelog): Likewise.
8179         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
8180         * elf/dl-iteratephdr.c: Likewise.
8181         * elf/dl-lookup.c: Likewise.
8182         * elf/dl-misc.c: Likewise.
8183         * elf/dl-open.c: Likewise.
8184         * elf/dl-support.c: Likewise.
8185         * elf/rtld.c: Likewise.
8186         * sysdeps/generic/ldsodefs.h: Likewise.
8187         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
8188         * sysdeps/mach/bits/libc-lock.h: Likewise.
8189         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8191 2002-12-06  Roland McGrath  <roland@redhat.com>
8193         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
8195         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
8196         (malloc_starter, memalign_starter, free_starter): Don't define these.
8197         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
8198         Don't declare them either.
8199         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
8200         __pthread_initialize, so no need to set hooks to *_starter.
8201         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
8202         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
8203         (__libc_malloc_pthread_startup): New function.
8204         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
8206         * malloc/hooks.c (memalign_starter): New function.
8207         * malloc/malloc.c: Declare it.
8208         * malloc/arena.c (save_memalign_hook): New variable.
8209         (ptmalloc_init): Set __memalign_hook to memalign_starter.
8211         * elf/dl-minimal.c (free): Clear the memory.
8212         (calloc): Just call malloc, knowing all memory it returns is cleared.
8214         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
8215         malloc and memset; calloc can avoid the zeroing when redundant.
8216         (_dl_tls_setup): Likewise.
8217         * elf/dl-load.c (decompose_rpath): Likewise.
8218         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
8219         call, since memory from sbrk at startup is already zero.
8221         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
8222         error string for failure, null for success.  Update callers.
8223         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
8224         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8226 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
8228         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
8229         args to i:iipi.
8230         (readahead): Change args to i:iii.
8231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
8232         Change args to i:iii.
8233         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
8234         args to i:iiii.
8236 2002-12-05  Roland McGrath  <roland@redhat.com>
8238         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
8239         call all functions rather than none.
8240         Reported by Mark P. Mitchell <mark@codesourcery.com>.
8242 2002-12-04  Roland McGrath  <roland@redhat.com>
8244         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
8245         on _nl_current_LC_* variables.
8247 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
8249         * dirent/bug-readdir1.c (main): Don't call closedir, just close
8250         the file descriptor.  This is testing what the bug report was about.
8252 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
8254         * po/be.po: New file.
8256         * argp/Makefile (tests): Add tst-argp1.
8258         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
8259         Change type of _attribute to void*.
8260         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8261         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8262         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
8263         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8264         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8266 2002-12-04  Roland McGrath  <roland@redhat.com>
8268         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
8269         members to the end, so a libpthread compiled with !USE_TLS will still
8270         find other members properly.
8272         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
8273         operand for DEST memory.  Fix dummy input operand to use SRC.
8274         Reported by Davin McCall <davmac@ozonline.com.au>.
8276         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
8277         alignment when initializing the DTV entry.
8279         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
8280         when TLS has not been set up, try to set it up if we can.
8281         * elf/tst-tls4.c: Revert last change.
8282         * elf/tst-tls5.c: Likewise.
8283         * elf/tst-tls6.c: Likewise.
8284         * elf/tst-tls7.c: Likewise.
8285         * elf/tst-tls8.c: Likewise.
8286         * elf/tst-tls9.c: Likewise.
8288         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
8289         * sysdeps/generic/ldsodefs.h: Declare it.
8290         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8291         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
8292         function, broken out of __libc_setup_tls.
8293         (init_static_tls): Likewise.
8294         (__libc_setup_tls): Call them.
8295         (_dl_tls_setup): New function, uses new subroutines.
8297         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
8298         Clear the pointer when returning true.
8299         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
8300         first element of the slotinfo list too.
8302         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
8303         [SHARED].
8305         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
8306         (_dl_determine_tlsoffset): Likewise.
8308         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
8309         startup_error_tsd, made global.
8310         (dl_main): Update initialization.
8311         * elf/dl-tsd.c: Likewise.
8312         * sysdeps/generic/ldsodefs.h: Declare it.
8314 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
8316         * manual/texinfo.tex: Update from latest upstream version.
8318 2002-12-03  Roland McGrath  <roland@redhat.com>
8320         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
8321         area surplus in calculation for sbrk call.
8323         * iconvdata/cp1125.c: New file.
8324         * iconvdata/Makefile (distribute): Add it.
8325         (modules): Add CP1125.
8326         (gen-8bit-gap-modules): Add cp1125.
8327         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
8328         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
8330 2002-12-03  Andreas Jaeger  <aj@suse.de>
8332         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8334 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
8336         * sysdeps/posix/system.c (do_system): Make signal handler
8337         installation thread safe.
8339 2002-12-02  Roland McGrath  <roland@redhat.com>
8341         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
8342         caller from EXTRA to -.
8343         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8344         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8345         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8347 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
8349         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
8350         bits of RM are cleared.
8352 2002-12-02  Roland McGrath  <roland@redhat.com>
8354         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
8355         TLS setup is required.
8356         * elf/tst-tls5.c: Likewise.
8357         * elf/tst-tls6.c: Likewise.
8358         * elf/tst-tls7.c: Likewise.
8359         * elf/tst-tls8.c: Likewise.
8360         * elf/tst-tls9.c: Likewise.
8362         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
8363         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
8364         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
8365         for being null before calling free_slotinfo.
8366         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
8367         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
8369 2002-11-30  Bruno Haible  <bruno@clisp.org>
8371         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
8372         (struct __gconv_step): New field __btowc_fct.
8373         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
8374         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
8375         __BUILTIN_TRANS.
8376         (__gconv_btwoc_ascii): New declaration.
8377         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8378         (__gconv_btwoc_ascii): New function.
8379         * iconv/gconv_builtin.h: Add BtowcFct argument to all
8380         BUILTIN_TRANSFORMATION invocations.
8381         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
8382         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
8383         * iconv/gconv_builtin.c (map): New field btowc_fct.
8384         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
8385         btowc_fct field.
8386         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
8387         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
8388         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
8389         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
8390         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
8391         (gconv_init): Initialize __btowc_fct field.
8392         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
8393         * iconv/loop.c: Document ONEBYTE_BODY.
8394         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
8395         Undefine ONEBYTE_BODY at the end.
8396         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
8397         * iconvdata/8bit-gap.c (NONNUL): New macro.
8398         (BODY for FROM_LOOP): Use it.
8399         (ONEBYTE_BODY): New macro.
8400         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
8401         (NONNUL): New macro.
8402         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
8403         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
8404         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
8405         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
8406         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
8407         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
8408         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
8409         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
8410         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
8411         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
8412         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
8413         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
8414         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
8415         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
8416         * iconvdata/ibm932.c: Include <stdbool.h>.
8417         (TRUE, FALSE): Remove macros.
8418         (BODY for FROM_LOOP): Remove unused variable rp1.
8419         (ONEBYTE_BODY): New macro.
8420         (BODY for TO_LOOP): Use bool.
8421         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
8422         * iconvdata/ibm943.c: Include <stdbool.h>.
8423         (TRUE, FALSE): Remove macros.
8424         (BODY for FROM_LOOP): Remove unused variable rp1.
8425         (ONEBYTE_BODY): New macro.
8426         (BODY for TO_LOOP): Use bool.
8427         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
8428         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
8429         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
8430         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
8431         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
8432         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
8433         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
8434         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
8435         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
8436         * iconvdata/gbbig5.c: Tweak comment.
8438 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
8440         * po/fi.po: Update from translation team.
8442 2002-12-01  Roland McGrath  <roland@redhat.com>
8444         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
8445         testing getdents64 return value.
8447         * scripts/versions.awk: Don't pass -n flag to sort command.
8449         * posix/bug-regex13.c: Include <string.h>.
8451         * sysdeps/generic/libc-start.c (__libc_start_main): Do
8452         DL_SYSDEP_OSCHECK here.
8453         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
8454         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
8456         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
8457         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
8459         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
8460         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
8462         * include/link.h: Comment typo fix.
8464 2002-12-01  Roland McGrath  <roland@frob.com>
8466         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
8467         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
8468         _POSIX_MEMORY_PROTECTION): Likewise.
8469         (_POSIX_POLL, _POSIX_SELECT): Removed.
8471 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
8473         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
8474         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
8476 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
8478         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
8479         USE___THREAD.
8480         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
8481         "=v" constraints.
8483 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
8485         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
8486         branch prediction buffers by using unpaired call/ret.
8488 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
8490         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
8491         first parameters constraint string.
8492         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
8494 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
8496         * posix/regcomp.c (parse_expression): Set the bit since the back
8497         reference is used in the regular expression.
8498         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
8499         of malloc failure.
8500         (re_node_set_init_copy): Likewise.
8501         * posix/regex_internal.h (state_array_t): New structure.
8502         (re_sub_match_last_t): Likewise.
8503         (re_sub_match_top_t): Likewise.
8504         (re_match_context_t): Add new members.
8505         (re_dfa_t): Likewise.
8506         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
8507         to check the matching is really correct, and retry if failed.
8508         Move the routin pruning the impossible nodes from here, ...
8509         (prune_impossible_nodes): To this function.
8510         (check_matching): Invoke check_subexp_matching_top, and replace
8511         redundant checking with transit_state_bkref invocation.
8512         (proceed_next_node): Replace strncmp with memcmp.  Reported by
8513         Paolo Bonzini  <bonzini@gnu.org>.
8514         (update_cur_sifted_state): Remove search_subexp invocation.
8515         (search_subexp): Remove this function.
8516         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
8517         optimization.
8518         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
8519         Remove unused invocation of match_ctx_add_entry.
8520         (transit_state): Invoke check_subexp_matching_top.
8521         (check_subexp_matching_top): New function.
8522         (transit_state_bkref): Remove unused array.
8523         Merge transit_state_bkref_loop.
8524         (transit_state_bkref_loop): Use get_subexp instead of
8525         sift_states_backward.  Use search_cur_bkref_entry for optimization.
8526         Merge this function to transit_state_bkref.
8527         (get_subexp): New function.
8528         (get_subexp_sub): Likewise.
8529         (find_subexp_node): Likewise.
8530         (check_arrival): Likewise.
8531         (check_arrival_expand_ecl): Likewise.
8532         (check_arrival_expand_ecl_sub): Likewise.
8533         (expand_bkref_cache): Likewise.
8534         (match_ctx_init): Initialize new members.
8535         (match_ctx_clean): New function.
8536         (match_ctx_free): Release new members.
8537         (match_ctx_free_subtops): New function.
8538         (match_ctx_add_entry): Fix indent.
8539         (search_cur_bkref_entry): New function.
8540         (match_ctx_add_subtop): Likewise.
8541         (match_ctx_add_sublast): Likewise.
8543 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
8545         * iconv/Makefile (tests): Remove tst-iconv4.c
8546         * iconv/tst-iconv4.c: Moved to...
8547         * iconvdata/tst-iconv4.c: ...here.  New file.
8548         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
8550 2002-11-25  Roland McGrath  <roland@redhat.com>
8552         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
8553         Grok AF_LINK if defined.
8554         From Momchil Velikov <velco@fadata.bg>.
8556         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
8557         brdaddr, or dstaddr, just set those pointers to null and don't fail.
8558         Reported by Momchil Velikov <velco@fadata.bg>.
8560         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
8561         is > sizeof IFR->ifa_addr, advance past the whole longer length.
8562         (__ifreq): Count up NIFS that way too.
8563         Reported by Momchil Velikov <velco@fadata.bg>.
8565         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
8567         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
8568         and <fpu_control.h>.
8570 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
8572         * elf/elf.h (EM_ST19): Fix typo.
8574 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
8576         * include/errno.h (__set_errno): Define as errno = val
8577         unconditionally.
8579 2002-11-24  Roland McGrath  <roland@redhat.com>
8581         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
8582         * sysdeps/posix/writev.c: Likewise.
8583         From Momchil Velikov <velco@fadata.bg>.
8585         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
8586         calling *GL(dl_error_catch_tsd) for a thread-local location.
8587         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
8588         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
8589         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
8591         * libio/iofflush.c: Add libc_hidden_def.
8592         * libio/iofwrite.c: Likewise.
8593         * sysdeps/generic/sigtimedwait.c: Likewise.
8594         * sysdeps/generic/sigwaitinfo.c: Likewise.
8595         * sysdeps/posix/sigwait.c: Likewise.
8596         Reported by Momchil Velikov <velco@fadata.bg>.
8598         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
8599         to match <arpa/inet.h> declaration.
8600         * inet/inet_netof.c (inet_netof): Likewise.
8601         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
8602         Reported by Momchil Velikov <velco@fadata.bg>.
8604         * configure.in: Skip AUTOCONF check under --without-cvs.
8605         * configure: Regenerated.
8607         * posix/Makefile (headers): Add bits/pthreadtypes.h.
8608         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
8609         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
8611 2002-11-24  Andreas Schwab  <schwab@suse.de>
8613         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
8614         with six arguments.
8616 2002-11-19  Jim Meyering  <jim@meyering.net>
8618         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
8619         as `static'.
8620         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
8622 2002-11-23  Roland McGrath  <roland@redhat.com>
8624         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
8625         Just produce hex output for datum sizes.
8627         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
8628         Reported by Luca Barbieri <ldb@ldb.ods.org>.
8630 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
8632         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
8633         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8634         and __unused3 fields.
8635         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
8636         [__WORDSIZE == 32]: Only PPC32 requires __unused1
8637         and __unused2 fields.
8638         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
8639         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
8640         __unused3, and __unused4 fields.
8642         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
8643         obtain lowest address for profiling in __monstartup call.
8645 2002-11-21  Roland McGrath  <roland@redhat.com>
8647         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
8648         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
8650         * locale/localeinfo.h (struct locale_data): Revert last change.
8652         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
8653         From Ian Wienand <ianw@gelato.unsw.edu.au>.
8655         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
8656         __NR_pread64 if not defined.
8657         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
8658         From Ian Wienand <ianw@gelato.unsw.edu.au>.
8660 2002-11-21  Roland McGrath  <roland@frob.com>
8662         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
8663         __libc_multiple_libcs here.  Call __setfpucw.
8665 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
8667         * elf/Makefile (tests): Don't run test-arrayX tests for now.
8669         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
8670         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
8671         CLONE_CHILD_*TID flags.
8673 2002-11-20  Andreas Jaeger  <aj@suse.de>
8675         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
8676         We pass struct ucontext on x86-64.
8677         (GET_PC): Adjust.
8678         (GET_FRAME): Adjust.
8679         (GET_STACK): Adjust.
8681 2002-11-20  Roland McGrath  <roland@redhat.com>
8683         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
8684         conditionalize [! DO_VERSIONING] #error.
8686         * scripts/abilist.awk: Grok function descriptor symbols.
8688         * intl/tst-gettext.c (main): Check return values from setlocale.
8689         Add necessary unsetenv's to make LANG=existing-locale check work.
8691         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
8692         so aborted prior runs don't confuse things.
8694         * locale/localeinfo.h (struct locale_data: union locale_data_value):
8695         Use uintptr_t instead of unsigned int for `word' member.
8696         (_NL_CURRENT_WORD): Cast to uint32_t.
8698         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
8699         value.
8701 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
8703         * elf/tls-macros.h: Add IA-64 definitions.
8704         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
8706         * iconv/Makefile (tests): Add tst-iconv4.
8707         * iconv/tst-iconv4.c: New file.
8709         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
8710         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
8711         __GCONV_INCOMPLETE_INPUT.
8712         (ucs4le_internal_loop): Likewise.
8713         (ucs4le_internal_loop_unaligned): Likewise.
8714         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
8715         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
8716         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
8718         * iconv/loop.c (LOOPFCT): First test for empty input then for full
8719         output buffer.
8721         * inet/getnameinfo.c: Use extend_alloca where appropriate.
8722         * sysdeps/posix/getaddrinfo.c: Likewise.
8724         * include/alloca.h (extend_alloca): New define.  Based on stack
8725         direction it'll try to append to the previouls allocated buffer.
8727 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
8729         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
8730         use the same service for AF_INET and AF_INET6.
8732 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
8734         * intl/localealias.c (read_alias_file): Use only about 400 bytes
8735         of stack space instead of 16k.
8737 2002-11-18  Wolfram Gloger  <wg@malloc.de>
8739         * malloc/arena.c
8740         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
8741         nothing if not initialized.  Bug report from Marcus Brinkmann
8742         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
8744 2002-11-19  Roland McGrath  <roland@redhat.com>
8746         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
8747         sched_setaffinity.
8749         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
8750         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
8751         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
8752         * configure: Regenerated.
8754 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
8756         * include/dlfcn.h: __libc_dlopen is now a macro calling
8757         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
8758         (__libc_dlopen_mode): New prototype.
8759         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
8760         new parameter.  Store new parameter in mode field of structure passed
8761         to do_dlopen.
8762         (struct do_dlopen_args): Add new field mode.
8763         (do_dlopen): Pass mode from parameter structure to _dl_open.
8765 2002-11-11  Randolf Chung  <tausq@debian.org>
8767         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
8768         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
8769         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
8771         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
8773         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
8774         Set -mdisable-fpregs for this file.
8776 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
8778         * sysdeps/unix/sysv/linux/configure.in:
8779         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
8780         from gcc-3.0 era for backwards compatibility.
8781         * sysdeps/unix/sysv/linux/configure: Regenerate.
8783         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
8784         Define mcontext_t as a sigcontext.
8786 2002-11-18  Roland McGrath  <roland@redhat.com>
8788         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
8789         Free memory in `last_result' if it was used.
8791         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
8792         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
8793         Do the parsing inline instead of copying strings and calling
8794         inet_network, and properly skip all alias names not matching the form.
8796         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
8798 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
8800         * manual/pattern.texi (Wordexp Example): Fix sample code.
8802         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
8803         childs stack which will be loaded into the %esi register.
8805 2002-11-14  Paul Eggert  <eggert@twinsun.com>
8807         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
8808         overflow when skipping the question part and when unpacking aliases.
8810 2002-11-15  Roland McGrath  <roland@redhat.com>
8812         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
8813         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
8814         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
8816 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
8818         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
8819         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
8821 2002-11-15  Roland McGrath  <roland@redhat.com>
8823         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
8824         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
8825         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
8826         (+make-include-of-dep): New canned sequence.
8828         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
8829         From Dmitry V. Levin <ldv@altlinux.org>.
8831 2002-11-14  Roland McGrath  <roland@redhat.com>
8833         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
8834         * inet/herrno.c (__libc_h_errno): Likewise.
8835         * resolv/res_libc.c (__libc_res): Likewise.
8836         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
8837         (__res_state) [! USE___THREAD]: Don't define as weak.
8838         * csu/Versions: Revert last change.
8839         * resolv/Versions: Revert last change.
8841         * Makerules ($(common-objpfx)%.make): New pattern rule.
8842         * tls.make.c: New file.
8843         * Makefile (distribute): Add it.
8845         * sysdeps/generic/errno.c [! USE___THREAD]
8846         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
8847         with compat_symbol so they are not link-time visible.
8848         [! USE___THREAD] (__libc_errno): New alias for errno.
8849         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
8850         Add __libc_errno here.
8851         * inet/herrno.c [USE___THREAD]: Use this conditional
8852         in place of [USE_TLS && HAVE___THREAD].
8853         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
8854         (h_errno, _h_errno): Declare these with compat_symbol so they are not
8855         link-time visible.
8856         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
8857         * resolv/res_libc.c [! USE___THREAD]
8858         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
8859         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
8860         (__libc_res): Define as alias for _res.
8861         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
8862         Add __libc_h_errno and __libc_res here.
8864 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
8866         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
8867         * resolv/Versions (h_errno, _res): Likewise.
8869 2002-11-14  Roland McGrath  <roland@redhat.com>
8871         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
8872         (%.symlist): Likewise.
8874 2002-11-13  Roland McGrath  <roland@redhat.com>
8876         * scripts/abilist.awk: New file.
8877         * Makefile (distribute): Add it.
8878         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
8879         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
8880         [$(subdir) = elf] (tests): Depend on libc.symlist.
8881         (generated, common-generated): Add those files.
8883         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
8884         * configure: Regenerated.
8885         * config.make.in (OBJDUMP): New variable, substituted by configure.
8887         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
8888         (mallochook, reallochook): Set them up.
8889         (checkhdr): Check HDR->magic2 value.
8890         (freehook): Reset HDR->magic2.
8891         (memalignhook): New static function.
8892         (old_memalign_hook): New static variable.
8893         (mcheck, reallochook): Set __memalign_hook to memalignhook.
8895         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
8896         for the new TCB.
8898 2002-11-13  Andreas Jaeger  <aj@suse.de>
8900         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
8901         attribute.
8902         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8904 2002-11-11  Paul Eggert  <eggert@twinsun.com>
8906         * manual/crypt.texi (Cryptographic Functions): Mention that
8907         the MD5 one-way algorithm is compatible with BSD's.
8909 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
8911         * posix/regex_internal.c (re_string_skip_chars): Also return the last
8912         wide character.
8913         (re_string_reconstruct): Calculate the context by itself when the
8914         offset points out of the valid range.
8915         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
8916         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
8917         (IS_WIDE_WORD_CHAR): New macro.
8918         (IS_WIDE_NEWLINE): New macro.
8920 2002-11-12  Andreas Jaeger  <aj@suse.de>
8922         * sysdeps/x86_64/strchr.S: Don't use one register for two
8923         purposes, this fixes a bug noticed by test-strchr.c.
8925         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
8926         correctly.
8928 2002-11-12  Roland McGrath  <roland@redhat.com>
8930         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
8931         (_G_IO_NO_BACKWARD_COMPAT): Define it.
8933         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
8934         instead of <pt-machine.h>.
8935         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
8936         testandset.
8937         From Ian Wienand <ianw@gelato.unsw.edu.au>.
8939 2002-11-10  Roland McGrath  <roland@redhat.com>
8941         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
8942         Call fputs instead of fwprintf (simpler to follow in debugger).
8944         * crypt/md5-crypt.c: Doc fix.
8946         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
8947         the beginning of generated target commands.
8949         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
8950         dependencies for these in case implicit rule search skipped the
8951         nonexistent source directory.
8952         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
8953         files with $(object-suffixes) as targets too.
8954         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
8955         and a target for it using $(make-target-directory).
8957         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
8959 2002-11-10  Roland McGrath  <roland@frob.com>
8961         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
8962         * sysdeps/generic/bits/pthreadtypes.h: ... here.
8964         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
8965         l_start == 0 and l_len == 1 as we do l_len == 0.
8967 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
8969         * po/da.po: Update from translation team.
8971 2002-11-10  Roland McGrath  <roland@redhat.com>
8973         * config.make.in (includedir): New variable, substituted by configure.
8974         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
8975         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
8977 2002-11-10  Andreas Jaeger  <aj@suse.de>
8979         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
8980         REG_OLDMASK and REG_CR2 to synch with kernel header.
8981         (NGREG): Increase.
8983         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
8984         aliasing problem.
8985         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
8986         * nss/getnssent_r.c (__nss_getent_r): Likewise.
8987         (__nss_setent): Likewise.
8988         (__nss_getent_r): Likewise.
8989         * inet/getnetgrent_r.c (innetgr): Likewise.
8990         (__internal_setnetgrent_reuse): Likewise.
8991         (internal_getnetgrent_r): Likewise.
8992         * inet/ether_hton.c (ether_hostton): Likewise.
8993         * inet/ether_ntoh.c (ether_ntohost): Likewise.
8994         * sunrpc/netname.c (netname2user): Likewise.
8995         * sunrpc/publickey.c (getpublickey): Likewise.
8996         (getsecretkey): Likewise.
8998 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
9000         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
9001         error in range calculation.
9003 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
9005         * string/test-strspn.c (do_test): Ensure zero termination.
9006         * string/test-strpbrk.c (do_test): Likewise.
9007         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
9008         * string/test-strncpy.c (stupid_strncpy): Likewise.
9009         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
9011 2002-10-08  Roland McGrath  <roland@redhat.com>
9013         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
9014         nonzero characters.
9016 2002-09-22  H.J. Lu  <hjl@gnu.org>
9018         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
9019         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
9020         only if __NR_mmap2 is defined.
9022         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
9023         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
9024         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
9025         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
9027 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
9029         * posix/bug-regex13.c (tests): Add new test.
9031         * string/test-strchr.c (stupid_strchr): New function.
9032         (do_random_tests): Make sure the string is zero terminated.
9033         * string/test-strpbrk.c (stupid_strpbrk): New function.
9034         (do_random_tests): Make sure the string is zero terminated.
9035         * string/test-strcmp.c (stupid_strcmp): New function.
9036         (do_random_tests): Make sure the strings are zero terminated.
9037         * string/test-strspn.c (stupid_strspn): New function.
9038         (simple_strspn): Rename rej argument to acc.
9039         (do_random_tests): Make sure the string is zero terminated.
9040         * string/test-strcspn.c (stupid_strcspn): New function.
9041         * string/test-strncpy.c (stupid_strncpy): New function.
9042         * string/test-stpncpy.c (stupid_stpncpy): New function.
9043         * string/test-strncmp.c (stupid_strncmp): New function.
9044         (do_random_tests): Make sure the strings are zero terminated.
9045         * string/test-string.h (impl_t): Change test into long.
9046         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
9048 2002-11-08  Roland McGrath  <roland@redhat.com>
9050         * sysdeps/ia64/elf/configure.in: Add TLS check.
9051         From Ian Wienand <ianw@cse.unsw.edu.au>.
9052         * sysdeps/ia64/elf/configure: Regenerated.
9054 2002-11-07  Roland McGrath  <roland@redhat.com>
9056         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
9057         place of _IO_new_do_write.
9058         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
9059         #undef before versioned_symbol use.
9061 2002-11-07  Richard Henderson  <rth@redhat.com>
9063         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
9064         * configure: Regenerated.
9065         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
9066         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
9067         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
9068         _dl_fini via gp-relative relocations.
9069         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
9071         * elf/tls-macros.h: Add alpha versions.
9072         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
9073         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
9074         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
9075         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
9076         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
9077         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
9078         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
9079         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
9080         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
9081         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
9082         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
9083         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
9084         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
9085         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
9086         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
9087         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
9088         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
9089         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
9091         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
9092         Kill argument registers across the inline syscall.
9094         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
9096         * linuxthreads/sysdeps/alpha/tls.h: New file.
9097         * sysdeps/alpha/dl-tls.h: New file.
9099 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
9101         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
9102         (gmon_initializer): New function.
9103         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
9104         __gmon_start__ here.  Call it from gmon_initializer() instead.
9106 2002-03-12  H.J. Lu  <hjl@gnu.org>
9108         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
9109         tst-array2, and tst-array3.
9110         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
9111         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
9112         ($(objpfx)tst-array1.out): New target.
9113         ($(objpfx)tst-array2): Likewise.
9114         ($(objpfx)tst-array2.out): Likewise.
9115         ($(objpfx)tst-array3.out): Likewise.
9116         * elf/tst-array1.c: New file.
9117         * elf/tst-array1.exp: Likewise.
9118         * elf/tst-array2.c: Likewise.
9119         * elf/tst-array2dep.c: Likewise.
9120         * elf/tst-array2.exp: Likewise.
9121         * elf/tst-array3.c: Likewise.
9123 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
9125         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
9126         Don't add L->l_addr to array entry values.
9128 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
9130         * string/test-string.h: New file.
9131         * string/test-strlen.c: New file.
9132         * string/test-string.h: New file.
9133         * string/test-strcmp.c: New file.
9134         * string/test-strchr.c: New file.
9135         * string/test-strrchr.c: New file.
9136         * string/test-strcpy.c: New file.
9137         * string/test-stpcpy.c: New file.
9138         * string/test-strncpy.c: New file.
9139         * string/test-stpncpy.c: New file.
9140         * string/test-strpbrk.c: New file.
9141         * string/test-strcspn.c: New file.
9142         * string/test-strspn.c: New file.
9143         * string/test-strcat.c: New file.
9144         * string/test-strncmp.c: New file.
9145         * string/test-memchr.c: New file.
9146         * string/test-memcmp.c: New file.
9147         * string/test-memset.c: New file.
9148         * string/test-memcpy.c: New file.
9149         * string/test-mempcpy.c: New file.
9150         * string/test-memmove.c: New file.
9151         * string/Makefile (strop-tests): New variable.
9152         (tests): Add strop-tests.
9153         (distribute): Add test-string.h.
9155 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
9157         * posix/regcomp.c: Use tabs instead of spaces.
9158         * posix/regexec.c: Likewise.
9159         * posix/regex_internal.h: Likewise.
9161         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
9163 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
9165         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
9166         here.
9167         (regcomp): Don't set can_be_null here.
9168         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
9169         (re_compile_internal): Clear can_be_null, set regs_allocated.
9171         * posix/regcomp.c (re_set_fastmap): New function.
9172         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
9173         COMPLEX_BRACKET check.
9174         * posix/regexec.c (re_search_internal): Optimize searching with
9175         fastmap.  Call re_string_reconstruct even if match_first is
9176         smaller than raw_mbs_idx.
9178 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
9180         * posix/regcomp (free_dfa_content): Use free_state.
9181         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
9182         pointers in case that realloc failed.
9183         (re_node_set_merge): Likewise.
9184         (register_state): Likewise.
9185         (create_newstate_common): Invoke memory release functions in case of
9186         error conditions.
9187         (create_ci_newstate): Likewise.
9188         (create_cd_newstate): Likewise.
9189         (free_state): New function.
9190         * posix/regexec.c (re_search_internal): Invoke memory release
9191         functions in case of error conditions.
9192         (sift_states_backward): Likewise.
9193         (merge_state_array): Likewise.
9194         (add_epsilon_src_nodes): Likewise.
9195         (sub_epsilon_src_nodes): Likewise.
9196         (search_subexp): Likewise.
9197         (sift_states_bkref): Likewise.
9198         (transit_state_sb): Likewise.
9199         (transit_state_mb): Likewise.
9200         (transit_state_bkref_loop): Likewise.
9201         (group_nodes_into_DFAstates): Likewise.
9202         (push_fail_stack): Don't edit pointers in case that realloc failed.
9203         (extend_buffers): Likewise.
9204         (match_ctx_add_entry): Likewise.
9206 2002-11-06  Roland McGrath  <roland@redhat.com>
9208         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
9209         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9211         * configure.in: Add checks on as and ld for binutils 2.13 or later.
9212         * configure: Regenerated.
9214 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
9216         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
9217         If re_compile_internal failed free fastmap buffer.
9218         (free_dfa_content): Broken out of regfree function.  Frees all dfa
9219         related data.
9220         (regfree): Add free_dfa_content.
9221         (re_compile_internal): If any of the called functions fails free
9222         all dfa related memory.
9224 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
9226         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
9227         warnings from the kernel headers.
9229 2002-11-05  Roland McGrath  <roland@redhat.com>
9231         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
9232         From Johannes Stezenbach <js@convergence.de>.
9234         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
9235         #errlist-compat magic comment to give 123 as size.
9236         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
9237         (libc: GLIBC_2.2): ... here.
9238         (libc: GLIBC_2.3): Likewise.
9240 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
9242         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
9243         which happens at the beginning so that we can unload modules in
9244         __libc_freeres.
9246 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9248         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
9249         under [__USE_MISC || _ASM].
9251         * elf/elf.h: Remove the obsolete SH TLS relocations.
9253 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
9255         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
9257 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
9260         __NR_pread64 and __NR_pwrite64.
9261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9262         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
9263         and __NR_pwrite64.
9264         Revert change to use INLINE_SYSCALL.
9265         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9266         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9267         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9268         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
9269         INLINE_SYSCALL.
9270         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9273         Update clobber list and add a comment about the syscall ABI.
9275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
9276         s_pwrite64, s_ftruncate, s_truncate): Re-add.
9278 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
9280         * iconv/gconv_dl.c (free_mem): Clear loaded.
9281         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
9282         cleanup if any.
9284 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
9286         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
9288         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
9289         as old code without locking.  _IO_seekoff calls this function after
9290         locking the stream.
9291         * libio/ioseekpos.c: Likewise for _IO_seekpos.
9292         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
9293         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9294         prototypes.
9295         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
9296         of _IO_seekoff_internal.
9297         (_IO_rewind): Likewise.
9298         * libio/ioftell.c: Likewise.
9299         * libio/ftello.c: Likewise.
9300         * libio/ftello64.c: Likewise.
9301         * libio/iofgetpos.c: Likewise.
9302         * libio/iofgetpos64.c: Likewise.
9303         * libio/oldiofgetpos.c: Likewise.
9304         * libio/oldiofgetpos64.c: Likewise.
9305         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
9306         _IO_seekpos_internal.
9307         * libio/iofsetpos64.c: Likewise.
9308         * libio/oldiofsetpos.c: Likewise.
9309         * libio/oldiofsetpos64.c: Likewise.
9311 2002-11-04  Roland McGrath  <roland@redhat.com>
9313         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
9314         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
9315         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
9316         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
9317         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9318         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
9319         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9320         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
9321         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
9322         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
9323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
9324         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
9325         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
9326         Remove these, no longer used.
9328 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
9331         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
9332         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
9333         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
9334         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
9335         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
9336         syscall stubs.
9338         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
9339         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
9340         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
9341         and __NR_pread.
9342         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9343         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
9344         and __NR_pwrite.
9345         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
9347 2002-11-03  Roland McGrath  <roland@redhat.com>
9349         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
9350         `_dl_tls_static_used'.
9351         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
9352         (__libc_setup_tls): Initialize it.  Let the initial value of
9353         _dl_tls_static_size indicate some surplus space in the computed value.
9354         * elf/dl-open.c (_dl_tls_static_size): New variable.
9355         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
9356         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
9357         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
9358         (CHECK_STATIC_TLS): Use it.
9359         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
9360         closed objects occupied a trailing contiguous chunk of static TLS area.
9362 2002-10-18  Bruno Haible  <bruno@clisp.org>
9364         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
9366 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
9368         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
9369         _wide_data->_IO_read_end if adjustment can be made in the current
9370         buffer.
9372         * sysdeps/unix/sysv/linux/fexecve.c: New file.
9374         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
9375         wide oriented streams are used.
9377         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
9378         service hasn't been used [PR libc/4744].
9380         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
9381         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
9383         * manual/examples/dir.c: Don't include <stddef.h>.
9384         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
9385         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
9387 2002-11-02  H.J. Lu  <hjl@gnu.org>
9389         * stdio-common/reg-printf.c: Include <stddef.h>.
9391 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
9393         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
9395         * po/ca.po: Update from translation team.
9396         * po/es.po: Likewise.
9398         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
9399         is defined write out memory map.
9400         * sysdeps/unix/sysv/linux/segfault.c: New file.
9402 2002-11-02  Roland McGrath  <roland@redhat.com>
9404         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
9405         pointers that can alias.
9406         Reported by Daniel Jacobowitz <drow@mvista.com>.
9408         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
9410 2002-11-02  Roland McGrath  <roland@redhat.com>
9412         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
9413         description to be clearer and to say that *RESULT is set to ENTRY.
9415 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
9417         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
9418         dests_ch arrays together.  Alloca or malloc dest_states,
9419         dest_states_word and dest_states_nl arrays together.  Free memory on
9420         error exit.
9422 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
9424         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
9425         and current_saltbits.
9427 2002-11-02  Roland McGrath  <roland@redhat.com>
9429         * stdio-common/reg-printf.c: Include <stdlib.h>.
9431 2002-11-02  H.J. Lu  <hjl@gnu.org>
9433         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
9434         caller to EXTRA instead of execve.
9436 2002-11-01  Roland McGrath  <roland@redhat.com>
9438         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
9439         in place of [!(USE_TLS && HAVE___THREAD)].
9440         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
9442 2002-10-31  Roger Sayle  <roger@eyesopen.com>
9444         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
9445         New macros.
9446         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9448         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
9449         without defining FP_ROUNDMODE.
9451 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
9453         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
9454         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
9455         declare_symbol.
9456         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9457         (OLD_SIGLIST_SIZE): Define.
9458         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
9459         (OLD_SIGLIST_SIZE): Define.
9460         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
9462 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
9464         * sysdeps/ia64/strncpy.S: Fix recovery code.
9466 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
9468         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
9469         New macros.
9470         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
9471         text_set_element.
9472         * elf/dl-libc.c (free_mem): Likewise.
9473         * iconv/gconv_conf.c (free_mem): Likewise.
9474         * iconv/gconv_db.c (free_mem): Likewise.
9475         * iconv/gconv_dl.c (free_mem): Likewise.
9476         * iconv/gconv_cache.c (free_mem): Likewise.
9477         * intl/finddomain.c (free_mem): Likewise.
9478         * intl/dcigettext.c (free_mem): Likewise.
9479         * locale/setlocale.c (free_mem): Likewise.
9480         * misc/fstab.c (fstab_free): Likewise.
9481         * nss/nsswitch.c (free_mem): Likewise.
9482         * posix/regcomp.c (free_mem): Likewise.
9483         * resolv/gai_misc.c (free_res): Likewise.
9484         * stdlib/fmtmsg.c (free_mem): Likewise.
9485         * sunrpc/clnt_perr.c (free_mem): Likewise.
9486         * sysdeps/generic/setenv.c (free_mem): Likewise.
9487         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
9488         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
9489         * time/tzset.c (free_mem): Likewise.
9490         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
9491         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
9492         * malloc/set-freeres.c (__libc_freeres): Likewise.
9494         * login/getutent.c: Include stdlib.h instead of stddef.h.
9495         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9496         (__getutent): Allocate buffer the first time it is run.
9497         * login/getutid.c: Include stdlib.h instead of stddef.h.
9498         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9499         (__getutid): Allocate buffer the first time it is run.
9500         * login/getutline.c: Include stdlib.h instead of stddef.h.
9501         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
9502         (__getutline): Allocate buffer the first time it is run.
9503         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
9504         (mtrace): Allocate malloc_trace_buffer.
9505         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
9506         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
9507         * string/strerror.c: Include libintl.h and errno.h.
9508         (buf): New variable.
9509         (strerror): Only allocate buffer if actually needed (unknown error).
9510         * time/tzfile.c (transitions): Add libc_freeres_ptr.
9511         (freeres): Remove.
9513 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
9515         * include/libc-symbols.h (libc_freeres_ptr): New macro.
9516         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
9517         symbol_set_define.
9518         (__libc_freeres): Free all pointers in that section.
9519         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
9520         commands when creating .lds script.
9521         (LDSEDCMD-c.so): New variable.
9522         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
9523         (rcmd_af): Use strdup to allocate ahostbuf.
9524         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
9525         (rexec_af): Use strdup to allocate ahostbuf.
9526         * stdio-common/reg-printf.c (printf_funcs): Remove.
9527         (__printf_arginfo_table): Change into printf_arginfo_function **.
9528         Add libc_freeres_ptr.
9529         (__register_printf_function): Allocate __printf_arginfo_table
9530         and __printf_function_table the first time it is called.
9531         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
9532         printf_arginfo_function **.
9533         (parse_one_spec): Add __builtin_expect.
9534         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
9535         (free_mem): Remove.
9536         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
9537         (free_mem): Remove.
9538         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
9539         (string_space, map): Add libc_freeres_ptr.
9540         (free_mem): Remove.
9541         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
9542         (free_mem): Remove.
9543         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
9544         (free_mem): Remove.
9545         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
9546         (buffer): Add libc_freeres_ptr.
9547         (free_mem): Remove for _LIBC.
9548         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
9549         (free_mem): Remove.
9550         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
9551         (free_mem): Remove.
9552         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
9553         (free_mem): Remove.
9554         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
9555         (free_mem): Remove.
9556         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
9557         (free_mem): Remove.
9558         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
9559         (free_mem): Remove.
9560         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
9561         libc_freeres_ptr.
9562         (free_mem): Remove.
9563         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
9564         libc_freeres_ptr.
9565         (free_mem): Remove.
9567 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
9569         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
9570         instead of duplicating the whole function in libc.
9572 2002-10-31  Roland McGrath  <roland@redhat.com>
9574         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
9575         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
9577 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
9579         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
9580         32bit-predefine when creating .new32 list and -U for each
9581         32bit-predefine when creating .new64 list.
9582         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
9584 2002-10-29  Andreas Schwab  <schwab@suse.de>
9586         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
9587         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
9589 2002-10-25  Roland McGrath  <roland@redhat.com>
9591         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
9592         * sysdeps/unix/sysv/linux/configure: Regenerated.
9594         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
9595         _dl_starting_up decl.
9597 2002-10-20  H.J. Lu  <hjl@gnu.org>
9599         * sysdeps/unix/sysv/linux/configure.in: Don't check
9600         /lib/modules/`uname -r`/build/include for kernel headers if
9601         cross compiling.
9602         * sysdeps/unix/sysv/linux/configure: Regenerated.
9604 2002-10-25  Roland McGrath  <roland@redhat.com>
9606         * math/math.h (M_LOG2El): Correct the value.
9607         From Stephen L Moshier <steve@moshier.net>.
9609         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
9610         conditional from __libc_multiple_libcs access.  Remove kludge for weak
9611         symbol access with old compilers we no longer support.
9612         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9613         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
9615 2002-10-25  Roland McGrath  <roland@redhat.com>
9617         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
9618         implement SV_RESETHAND by translating it to SA_RESETHAND.
9620 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
9622         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
9623         type on ELF64 platforms.
9625 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
9627         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
9629         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
9631 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
9633         * elf/dl-misc.c: Include <sysdep.h>.
9634         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
9636         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
9637         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9638         (INLINE_SYSCALL): Use that.
9639         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
9640         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9641         (INLINE_SYSCALL): Use that.
9642         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
9643         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
9644         (INLINE_SYSCALL): Use that.
9645         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
9646         dl-sysdep.h.
9647         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9648         (__INTERNAL_SYSCALL_STRING): Define.
9649         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9650         dl-sysdep.h.
9651         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
9652         (__INTERNAL_SYSCALL_STRING): Define.
9653         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
9654         __SYSCALL_STRING to inline_syscall*.
9655         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
9656         New macros.
9657         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
9658         inline_syscall4, inline_syscall5, inline_syscall6): Add string
9659         argument.
9661 2002-10-24  Roland McGrath  <roland@redhat.com>
9663         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
9664         * sysdeps/unix/sysv/linux/init-first.c: Not here.
9665         * sysdeps/powerpc/elf/libc-start.c: Or here.
9666         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
9667         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
9668         * sysdeps/unix/sysv/aix/init-first.c: Or here.
9669         * sysdeps/generic/libc-start.c: Or here.
9670         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
9671         access with [! SHARED].
9672         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
9674         * libio/bug-wfflush.c: New file.
9675         * libio/Makefile (tests): Add bug-wfflush.
9677 2002-10-23  Roland McGrath  <roland@redhat.com>
9679         * stdio-common/tst-fphex.c: New file.
9680         * stdio-common/Makefile (tests): Add tst-fphex.
9681         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
9682         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
9683         chars always before the value digits.
9684         Reported by James Antill <james.antill@redhat.com>.
9686 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
9688         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
9689         (free_mem): New function.
9690         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
9691         if not cross compiling.
9692         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
9693         (bug-regex14-ENV): Set.
9694         (bug-regex14-mem): New target.
9695         * posix/bug-regex14.c: New file.
9697 2002-10-23  Roland McGrath  <roland@redhat.com>
9699         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
9700         target, so we don't touch it when the link fails.
9702         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
9703         Check for the result overflowing off_t and fail with EOVERFLOW.
9704         * libio/ioftell.c (_IO_ftell): Likewise.
9705         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9707         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
9708         use a temporary timeval on the stack for gettimeofday and copy it.
9709         * login/logout.c (logout): Likewise.
9710         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
9712         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
9713         Use __SWORD_TYPE instead of int for member types.
9714         (struct statfs64): Likewise.
9715         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
9716         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
9717         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
9718         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
9719         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
9721         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
9722         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
9723         (ST_NODIRATIME): Restore fixed value of 2048.
9724         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
9725         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
9727         Rearranged <bits/types.h> definitions to reduce duplication.
9728         * sysdeps/generic/bits/types.h: Rewritten, using macros from
9729         <bits/wordsize.h> and new header <bits/typesizes.h>.
9730         * posix/Makefile (headers): Add bits/typesizes.h here.
9731         * sysdeps/generic/bits/typesizes.h: New file.
9732         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
9733         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
9734         * sysdeps/mach/hurd/bits/typesizes.h: New file.
9735         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
9736         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
9737         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
9738         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
9739         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
9740         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
9741         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
9742         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
9743         <bits/pthreadtypes.h> here, not in <bits/types.h>.
9744         * signal/signal.h: Likewise.
9746         * streams/stropts.h: Include <bits/xtitypes.h>.
9747         * streams/Makefile (headers): Add bits/xtitypes.h here.
9748         * sysdeps/generic/bits/xtitypes.h: New file.
9749         * sysdeps/s390/bits/xtitypes.h: New file.
9750         * sysdeps/ia64/bits/xtitypes.h: New file.
9751         * sysdeps/x86_64/bits/xtitypes.h: New file.
9753         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
9754         * sysdeps/generic/bits/ipctypes.h: New file.
9755         * sysdeps/mips/bits/ipctypes.h: New file.
9756         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
9757         * sysdeps/gnu/bits/msq.h: Likewise.
9758         * sysvipc/sys/ipc.h: Likewise.
9760 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
9762         * elf/dl-load.c (struct filebuf): For buf element to have the
9763         alignment of ElfXX_Ehdr since this is what will be stored in it.
9765 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
9767         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
9768         into pointer to locrec_offset.
9769         (add_locale_to_archive): Adjust callers.  Free normalized_name right
9770         before returning, not immediately after add_locale, pass it to
9771         add_alias if not NULL instead of name.  Rename second normalized_name
9772         occurence to nnormalized_codeset_name.
9774         * locale/programs/locarchive.c (enlarge_archive): Make sure
9775         string_size is always a multiple of 4.
9776         Reported by Andreas Schwab <schwab@suse.de>.
9778 2002-10-21  Andreas Schwab  <schwab@suse.de>
9780         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
9781         caller to EXTRA instead of execve, since the latter has a
9782         higher-priority implementation in linuxthreads.
9784 2002-10-21  Roland McGrath  <roland@redhat.com>
9786         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
9787         slotinfo list's len member to the proper size, not just 1.
9788         Initialize static_map.l_tls_initimage.
9790         * elf/dl-open.c (dl_open_worker): Fix loop searching for
9791         dtv_slotinfo_list element containing new modules' l_tls_modid.
9793         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
9794         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
9795         * elf/Makefile (tests): Add tst-tls9.
9796         (tests-static): Add tst-tls9-static.
9797         (tst-tls9-static-ENV): New variable.
9798         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
9800         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
9801         modids used by partially loaded modules being closed can't be known.
9803 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
9805         * posix/Makefile: Add a test case for the bug reported by Aharon
9806         Robbins <arnold@skeeve.com>.
9807         * posix/bug-regex13.c: New file.
9808         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
9810 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
9812         * csu/gmon-start.c: Pretty printing.
9814 2002-10-19  Art Haas  <ahaas@neosoft.com>
9816         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
9817         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
9818         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
9819         * configure: Regenerated.
9821 2002-10-19  Roland McGrath  <roland@redhat.com>
9823         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
9824         and then set $subdirs directly, because the new Autoconf breaks
9825         compatibility in every way imaginable and insists on whining
9826         about usage that worked since the dawn of time.
9827         * configure: Regenerated.
9829         * configure: Regenerated (using Autoconf 2.54).
9830         * sysdeps/alpha/elf/configure: Likewise.
9831         * sysdeps/generic/configure: Likewise.
9832         * sysdeps/i386/elf/configure: Likewise.
9833         * sysdeps/ia64/elf/configure: Likewise.
9834         * sysdeps/mach/hurd/configure: Likewise.
9835         * sysdeps/mach/configure: Likewise.
9836         * sysdeps/unix/configure: Likewise.
9837         * sysdeps/unix/common/configure: Likewise.
9838         * sysdeps/unix/sysv/aix/configure: Likewise.
9839         * sysdeps/unix/sysv/linux/configure: Likewise.
9840         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
9841         * sysdeps/x86_64/elf/configure: Likewise.
9843         * config.make.in: Nix completely-soft nonsense.
9844         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
9845         of machine directories instead of fpu subdirectory.
9846         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
9847         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
9848         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
9849         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
9850         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
9851         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
9852         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
9853         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
9854         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
9855         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
9856         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
9857         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
9858         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
9859         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
9860         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
9861         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
9862         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
9863         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
9864         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
9865         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
9866         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
9867         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
9868         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
9869         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
9870         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
9871         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
9872         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
9873         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
9874         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
9875         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
9876         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
9877         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
9878         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
9879         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
9880         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
9881         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
9882         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
9883         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
9884         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
9885         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
9887 2002-10-19  Bruno Haible  <bruno@clisp.org>
9889         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
9891 2002-10-18  Roland McGrath  <roland@redhat.com>
9893         * io/Makefile (routines): Add lchmod.
9894         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
9895         * sysdeps/generic/lchmod.c: New file.
9896         * sysdeps/mach/hurd/lchmod.c: New file.
9897         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
9899 2002-10-18  Art Haas  <ahaas@neosoft.com>
9901         * configure.in: Remove remaining AC_FD_CC macros, and replace
9902         AC_FD_MSG with AS_MESSAGE_FD.
9904 2002-10-18  Roland McGrath  <roland@redhat.com>
9906         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
9907         typos: VALUE -> FINALADDR.
9909         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
9910         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
9911         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
9912         (inline_syscall6): Move these macros ...
9913         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
9915         * configure.in (libc_link_dests, libc_link_sources): Remove these
9916         variables and the AC_LINK_FILES call.
9918         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
9919         change to put new symbols here instead of in GLIBC_2.2.
9920         * sysdeps/powerpc/Subdirs: Move this file ...
9921         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
9923 2002-10-07  Roland McGrath  <roland@redhat.com>
9925         * sysdeps/generic/bits/time.h: Replaced with contents of the
9926         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
9927         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
9928         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
9929         macros is ok even for architectures that don't now implement them.
9930         * sysdeps/mach/hurd/bits/time.h: File removed.
9931         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
9932         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
9933         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
9934         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
9935         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
9937 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
9939         * configure.in: Replace obsolete AC_OUTPUT syntax with
9940         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
9942         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
9943         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
9945         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
9946         * sysdeps/alpha/elf/configure.in: Likewise.
9947         * sysdeps/i386/elf/configure.in: Likewise.
9948         * sysdeps/mach/hurd/configure.in: Likewise.
9949         * sysdeps/x86_64/elf/configure.in: Likewise.
9951         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
9953         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
9954         * sysdeps/generic/configure.in: Likewise.
9955         * sysdeps/i386/elf/configure.in: Likewise.
9956         * sysdeps/ia64/elf/configure.in: Likewise.
9957         * sysdeps/mach/configure.in: Likewise.
9958         * sysdeps/mach/hurd/configure.in: Likewise.
9959         * sysdeps/unix/configure.in: Likewise.
9960         * sysdeps/unix/common/configure.in: Likewise.
9961         * sysdeps/unix/sysv/aix/configure.in: Likewise.
9962         * sysdeps/unix/sysv/linux/configure.in: Likewise.
9963         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
9964         * sysdeps/x86_64/elf/configure.in: Likewise.
9966         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
9967         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
9968         that it's obvious when extra autoconf machinery is being dragged in.
9970 2002-10-18  Roland McGrath  <roland@redhat.com>
9972         * configure.in: Remove bogus echo included in
9973         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
9974         * configure: Regenerated.
9976 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
9978         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
9979         (statfs_filesize_max): New function.
9980         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
9981         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
9982         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
9983         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
9984         statfs_filesize_max.
9985         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9986         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
9987         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
9989 2002-10-17  Roland McGrath  <roland@redhat.com>
9991         * configure.in (MIG): Just AC_SUBST it here.
9992         * configure: Regenerated.
9993         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
9994         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
9995         * sysdeps/mach/configure: Regenerated.
9997         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
9998         and AC_PROVIDE([_AS_CR_PREPARE]).
10000         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
10001         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
10003         * elf/dl-support.c: Move _dl_tls_* variables to ...
10004         * sysdeps/generic/libc-tls.c: ... here.
10006         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
10007         allow IDX to be one past the current last slotinfo entry.
10008         (_dl_close): Pass IMAP->l_init_called for that parameter.
10010 2002-10-07  Andreas Schwab  <schwab@suse.de>
10012         * aclocal.m4: Fix for autoconf 2.53.
10013         * configure.in: Likewise.  Require autoconf 2.53.
10015 2002-10-08  Richard Henderson  <rth@redhat.com>
10017         * soft-fp/op-4.h: Handle carry correctly in
10018         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
10019         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
10020         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
10022 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
10024         * configure.in: Compute completely-soft.
10025         * config.make.in: Make completely-soft available to sub-makes.
10026         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
10027         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
10028         fe_nomask to libm-support.
10029         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
10030         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
10031         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
10032         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
10033         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
10034         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
10035         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
10036         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
10037         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
10038         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
10039         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
10040         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
10041         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
10042         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
10043         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
10044         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
10045         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
10046         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
10047         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
10048         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
10049         __sim_round_mode.
10050         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
10051         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
10052         FP_HANDLE_EXCEPTIONS.
10053         Define FP_ROUNDMODE.
10054         Redefine FP_* macros to correspond to the FE_* bit positions.
10055         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
10056         Define externs for __sim_exceptions, __sim_disabled_exceptions,
10057         __sim_round_mode, __simulate_exceptions.
10058         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
10059         * sysdeps/powerpc/bits/fenv.h: ...to here.
10061 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
10063         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
10064         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
10065         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
10066         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
10067         __builtin_expect.
10069 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
10071         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
10072         __libc_res_nsend): New prototypes.
10073         * resolv/res_query.c (QUERYSIZE): Define.
10074         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
10075         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
10076         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
10077         res_nsend, pass answerp.
10078         (res_nquery): Changed into wrapper around __libc_res_nquery.
10079         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
10080         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
10081         instead of the non-__libc_ variants, pass them answerp.
10082         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
10083         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
10084         Added answerp argument.  Call __libc_res_nquery instead of
10085         res_nquery, pass answerp.
10086         (res_nquerydomain): Changed into wrapper around
10087         __libc_res_nquerydomain.
10088         * resolv/res_send.c: Include sys/ioctl.h.
10089         (MAXPACKET): Define.
10090         (send_vc): Change arguments.  Reallocate answer buffer if it is
10091         too small.
10092         (send_dg): Likewise.
10093         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
10094         Reallocate answer buffer if it is too small and hooks are in use.
10095         Adjust calls to send_vc and send_dg.
10096         (res_nsend): Changed into wrapper around __libc_res_nsend.
10097         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
10098         just 1K answer buffer on the stack, use __libc_res_nsearch instead
10099         of res_nsearch.
10100         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
10101         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10102         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
10103         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
10104         (gethostbyaddr): Similarly with __libc_res_nquery.
10105         * resolv/Versions (libresolv): Export __libc_res_nquery and
10106         __libc_res_nsearch at GLIBC_PRIVATE.
10108 2002-10-17  Roland McGrath  <roland@redhat.com>
10110         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
10111         * configure: Regenerated.
10113         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
10114         before performing the reloc, not after.
10115         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10117 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
10119         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
10120         * locale/programs/linereader.c (lr_open): Likewise.
10121         * locale/programs/charmap-dir.c (charmap_open): Likewise.
10122         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10124 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
10126         * posix/bug-regex11.c: Add a test case for the bug reported by
10127         Paolo Bonzini <bonzini@gnu.org>.
10128         * posix/regexec.c (sift_states_bkref): Use correct destination of
10129         the back reference.
10131 2002-10-17  Roland McGrath  <roland@redhat.com>
10133         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
10134         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
10135         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
10136         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
10137         Call it after performing TPOFF relocs.
10138         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10139         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10140         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
10142         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
10143         when closing a partially-initialized object.
10145         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
10146         instead of _dl_fatal_printf when we see PT_TLS.
10148         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
10149         instead of $(libof-$<).
10151 2002-10-16  Roland McGrath  <roland@redhat.com>
10153         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
10154         instead of += to append, to be sure $(lib) gets expanded at defn time.
10155         (libof-$(cpp-src)): New variable, define this instead.
10156         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
10157         (lib): Don't use override.
10158         (CPPFLAGS-$(lib)): New variable, put -D's here.
10159         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
10160         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
10161         LIB found by $(libof-*) for basename, target, or source.
10162         * Makerules (CPPFLAGS-nonlib): New variable.
10163         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
10164         * locale/Makefile (lib): Likewise.
10165         * sunrpc/Makefile (lib): Likewise.
10167         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
10168         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
10169         * sysdeps/unix/sysv/linux/pathconf.h: New file.
10170         (statfs_link_max): New function, guts from fpathconf.c.
10171         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
10172         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10173         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
10174         to use the linux/pathconf.c code by #include rather than duplication.
10175         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
10177 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
10179         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10180         Use __libc_errno only for libc itself.
10182 2002-10-16  Andreas Jaeger  <aj@suse.de>
10184         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
10186 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
10188         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
10189         Use __libc_errno only for libc itself.
10191 2002-10-15  Roland McGrath  <roland@redhat.com>
10192             Jakub Jelinek  <jakub@redhat.com>
10194         * sysdeps/unix/sysv/linux/Makefile
10195         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
10196         sparc/Makefile to produce a bi-arch file as needed.
10197         That's now parameterized by the variable $(64bit-predefine).
10198         Use LC_ALL=C for `comm' commands in that rule.
10199         No longer conditional on [$(no_syscall_list_h)].
10200         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
10201         (64bit-predefine): New variable.
10202         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
10203         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
10204         * sysdeps/unix/sysv/linux/powerpc/Makefile
10205         (64bit-predefine): New variable.
10207 2002-10-15  Roland McGrath  <roland@redhat.com>
10209         * sysdeps/unix/sysv/linux/Makefile
10210         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
10212         * login/utmp-private.h: Declare __libc_utmp_lock.
10213         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
10214         and call __libc_utmp_jump_table functions directly, instead of using
10215         __setutent et al.
10217         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
10218         * sysdeps/unix/sysv/linux/configure: Regenerated.
10220         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
10221         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10222         Use int32_t for ll_time.
10223         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
10224         Use int32_t instead of long int for ut_session.
10225         Use an anonymous struct with 32-bit fields for ut_tv.
10226         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
10227         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
10228         here as in utmp.h for `struct utmp'.
10229         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
10230         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
10231         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
10232         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
10233         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
10234         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
10236         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
10237         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
10238         All the following files were identical or equivalent to it.
10239         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
10240         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
10241         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
10242         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
10243         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
10244         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
10245         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
10246         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
10247         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
10248         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
10250         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
10251         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
10252         Other than the previously incorrect sign of msg_iovlen, this is a
10253         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
10254         match their layouts as well, so the following are now identical to it.
10255         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
10256         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
10257         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
10258         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
10259         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
10261 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
10263         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
10264         Define for 2.4+ kernels.
10266         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
10267         are known to have the vfork syscall.  Don't confuse the CPUs
10268         branch prediction unit by jumping to the return address.
10270         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
10271         support for reiserfs and xfs.
10273         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
10274         XFS link count.
10275         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
10276         and XFS_LINK_MAX.
10277         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
10279 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
10281         * include/libc-symbols.h (attribute_tls_model_ie): Define.
10282         * include/errno.h (errno): Define to __libc_errno in libc.so.
10283         Add attribute_tls_model_ie.
10284         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
10285         Add attribute_tls_model_ie.
10286         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
10287         attribute_tls_model_ie.
10288         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
10289         (h_errno): Define.
10290         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
10291         (_res): Define.
10292         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
10293         attribute_tls_model_ie.
10294         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
10295         __thread.
10296         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
10297         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
10298         __libc_errno in USE___THREAD case.
10299         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10300         Likewise.
10301         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
10302         __attribute__((tls_model (""))).
10303         * configure: Rebuilt.
10304         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
10306 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
10308         * timezone/asia: Update from tzdata2002d.
10309         * timezone/australasia: Likewise.
10310         * timezone/iso3166.tab: Likewise.
10311         * timezone/southamerica: Likewise.
10312         * timezone/zone-tab: Likewise.
10314 2002-10-15  Roland McGrath  <roland@redhat.com>
10316         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
10317         Adjust TCB pointer before calling free, so we get the whole block.
10319 2002-10-14  Roland McGrath  <roland@redhat.com>
10321         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
10322         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
10323         extern using attribute_hidden instead of static, avoids warning.
10325 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
10327         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
10328         * sysdeps/unix/sysv/linux/configure: Rebuilt.
10330 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
10332         * po/sv.po: Update from translation team.
10334 2002-10-12  H.J. Lu  <hjl@gnu.org>
10336         * sunrpc/thrsvc.c (PROCQUIT): New.
10337         (struct rpc_arg): New.
10338         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
10339         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
10340         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
10341         (main): Modified for struct rpc_arg *.
10343 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
10345         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
10347 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
10349         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
10350         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
10351         in ld.so even if __thread is supported.
10353 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
10355         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
10356         Add hack to prevent the compiler from clobbering the signal context.
10357         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
10358         Likewise.
10359         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
10360         Likewise.
10362 2002-10-14  Andreas Jaeger  <aj@suse.de>
10364         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
10365         Guido Guenther <agx@sigxcpu.org>.
10367 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
10369         * po/sk.po: Update from translation team.
10371 2002-09-26  Roland McGrath  <roland@redhat.com>
10373         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
10374         dynamic string tag.
10375         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
10376         DL_DST_LIB based on $(slibdir).
10378 2002-10-13  Roland McGrath  <roland@frob.com>
10380         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
10382         * sysdeps/mach/hurd/getresuid.c: New file.
10383         * sysdeps/mach/hurd/getresgid.c: New file.
10384         * sysdeps/mach/hurd/setresuid.c: New file.
10385         * sysdeps/mach/hurd/setresgid.c: New file.
10387         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
10388         setresgid): Declare them.
10389         * NEWS: Mention it.
10390         * include/unistd.h
10391         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
10392         add libc_hidden_proto.
10393         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
10394         getresuid, getresgid, setresuid, setresgid here.
10395         * Versions.def (libc): Define GLIBC_2.3.2 set.
10396         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
10397         Add libc_hidden_def.
10398         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
10399         * sysdeps/generic/setresgid.c: New file.
10400         * sysdeps/generic/setresuid.c: New file.
10401         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10402         (sysdep_routines): Don't add getresuid and getresgid here.
10403         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
10404         (sysdep_routines): Don't add setresuid and setresgid here.
10405         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10406         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10407         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10408         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10409         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10410         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10411         * posix/Makefile (routines): Add them all here instead.
10412         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
10413         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
10414         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
10415         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
10416         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
10417         [! __NR_setresuid]: Include generic file.
10418         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
10419         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
10420         [! __NR_setresuid]: Include generic file.
10421         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
10422         Caller is - now, not EXTRA.
10423         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
10424         (setresuid, setresgid, getresuid, getresgid): Likewise.
10425         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
10426         Add these calls here.
10427         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
10428         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
10429         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10430         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10431         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
10433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
10434         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
10435         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10437         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10438         (sysdep_routines): Add setfsuid and setfsgid here.
10439         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
10440         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
10441         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
10442         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
10443         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10444         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
10445         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10446         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10448         * hurd/errno.c: Renamed to ...
10449         * hurd/errno-loc.c: ... this.
10450         * hurd/Makefile (routines): errno -> errno-loc
10452 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
10454         * po/de.po: Update from translation team.
10456         * MakeTAGS: Add -E flag to xgettext runs.
10458 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
10460         * po/fr.po: Update from translation team.
10462         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
10463         Optimize a bit for use in glibc.
10465 2002-10-12  Roland McGrath  <roland@redhat.com>
10467         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
10468         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
10470 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
10472         * po/sv.po: Update from translation team.
10474 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
10476         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
10477         OP_CONTEXT_NODE.
10478         (regfree): Likewise.
10479         (create_initial_state): Likewise.
10480         (analyze): Remove the substitutions which became useless.
10481         (calc_first): Likewise.
10482         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
10483         epsilon destination.
10484         (duplicate_node_closure): New function.
10485         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
10486         (calc_inveclosure): Likewise.
10487         (calc_eclosure): Likewise.
10488         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
10489         direct invocation of duplicate_node.
10490         (parse): Don't use comma operator in the return to avoid compiler
10491         warning.
10492         (parse_reg_exp): Likewise.
10493         (parse_branch): Likewise.
10494         (parse_expression): Likewise.
10495         (parse_sub_exp): Likewise.
10496         (parse_dup_op): Likewise.
10497         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
10498         which became useless.
10499         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
10500         (create_cd_newstate): Likewise.
10501         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
10502         (re_token_t): Likewise.
10503         (re_dfa_t): Likewise.
10504         (re_node_set_remove): New macro.
10505         * posix/regexec.c (check_matching): Remove the handling
10506         OP_CONTEXT_NODE.
10507         (check_halt_node_context): Likewise.
10508         (proceed_next_node): Likewise.
10509         (pop_fail_stack): Fix the memory leak.
10510         (set_regs): Likewise.
10511         (free_fail_stack_return): New function.
10512         (sift_states_backward): Fix the memory leak.  Remove the handling
10513         OP_CONTEXT_NODE.
10514         (update_cur_sifted_state): Append some if clause to avoid redundant
10515         call.
10516         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
10517         back reference.
10518         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
10519         (check_subexp_limits): Likewise.
10520         (search_subexp): Likewise.
10521         (sift_states_bkref): Likewise.
10522         (transit_state_mb): Likewise.
10523         (transit_state_bkref_loop): Likewise.
10524         (transit_state_bkref_loop): Likewise.
10525         (group_nodes_into_DFAstates): Likewise.
10526         (check_node_accept): Likewise.
10527         (sift_ctx_init): Add initializing.
10529 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
10531         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
10532         __builtin_expect.
10534 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
10536         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
10537         duplicated variable c.
10539         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
10540         if possible.
10542         * sysdeps/unix/sysv/linux/i386/sysdep.h
10543         (INTERNAL_SYSCALL_ERROR_P): New define.
10544         (INTERNAL_SYSCALL_ERRNO): Likewise.
10546         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
10547         Add hack to prevent the compiler from clobbering the signal context.
10549 2002-10-11  Roland McGrath  <roland@redhat.com>
10551         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
10552         Fix typos.
10554         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
10555         * sysdeps/sh/dl-lookupcfg.h: File removed.
10556         * sysdeps/i386/dl-lookupcfg.h: File removed.
10558         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
10559         missing labels and ; from last change.
10561         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
10562         number literals, so they are doubles instead of ints.
10564 2002-10-09  Roland McGrath  <roland@redhat.com>
10566         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
10567         changed from [USE_TLS && HAVE___THREAD].
10569         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
10570         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
10571         * sysdeps/x86_64/dl-machine.h
10572         (elf_machine_type_class, elf_machine_rela): Likewise.
10573         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
10574         Likewise.
10576         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
10577         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
10578         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
10580         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
10581         instead of ___tls_get_addr.
10582         (___tls_get_addr_internal): Add attribute_hidden to decl.
10584         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
10585         _dl_error_catch_tsd.
10586         * elf/rtld.c (startup_error_tsd): New function.
10587         (dl_main): Point _dl_error_catch_tsd at that.
10588         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
10589         use new function pointer instead.
10590         * elf/dl-tsd.c: New file.
10591         * elf/Makefile (routines): Add it.
10593 2002-10-07  Roland McGrath  <roland@redhat.com>
10595         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
10596         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
10597         take _dl_load_lock around calling __writev.
10599         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
10600         (INLINE_SYSCALL): Use that.
10602         * sysdeps/generic/dl-sysdep.h: New file.
10603         * sysdeps/mach/hurd/dl-sysdep.h: New file.
10604         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
10605         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
10606         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
10607         access it directly.
10608         * elf/dl-minimal.c (__errno_location): Removed.
10609         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10610         Use GOTOFF access for errno.
10611         * sysdeps/unix/sysv/linux/i386/sysdep.h
10612         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10614         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
10615         Use PC-relative access for errno.
10616         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10617         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
10619         * include/tls.h: New file.
10620         (USE___THREAD): New macro.
10621         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
10622         libc or libpthread.
10623         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
10624         changed from [USE_TLS && HAVE___THREAD].
10625         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10626         * sysdeps/unix/i386/sysdep.S: Likewise.
10627         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10628         * include/errno.h: Likewise.
10629         * include/netdb.h: Likewise.
10630         * include/resolv.h: Likewise.
10632         * sysdeps/generic/errno.c: New file.
10633         * csu/Makefile (aux): New variable, list errno.
10634         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
10635         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
10636         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
10637         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10638         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10639         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
10640         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
10641         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
10642         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10643         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
10644         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
10645         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
10646         * sysdeps/unix/alpha/sysdep.S: Likewise.
10647         * sysdeps/generic/start.c: Likewise.
10648         * sysdeps/unix/start.c: Likewise.
10649         * sysdeps/unix/arm/start.c: Likewise.
10650         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
10651         * sysdeps/unix/sparc/start.c: Likewise.
10652         * sysdeps/unix/sysv/irix4/start.c: Likewise.
10653         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
10655         * manual/search.texi (Tree Search Function, Hash Search Function):
10656         Mention search.h clearly.
10658 2002-10-05  Roland McGrath  <roland@redhat.com>
10660         * elf/dl-fxstat64.c: File removed.
10661         * elf/dl-xstat64.c: File removed.
10662         * elf/Makefile (rtld-routines): Remove them.
10663         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
10664         Instead, use strong_alias instead of versioned_symbol in the
10665         !SHLIB_COMPAT case.
10666         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
10667         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
10669         * include/shlib-compat.h
10670         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
10671         [! NOT_IN_libc] (IS_IN_libc): Define it.
10672         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
10673         * elf/Makefile (CPPFLAGS-.os): Likewise.
10675         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
10676         Return the status instead of calling exit.
10678         * Makeconfig (CFLAGS): Prepend -std=gnu99.
10679         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
10680         Remove superfluous rm command, whose @ plus make bugs hid
10681         all these commands from the make output.
10683         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
10684         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
10685         Use that file's contents instead of literal echo's for the prologue.
10686         * include/features.h: Include <gnu/stubs.h> unconditionally.
10687         * include/gnu/stubs.h: New file.
10689 2002-09-30  Roland McGrath  <roland@redhat.com>
10691         * elf/rtld-Rules: New file.
10692         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
10693         $(objpfx)rtld-libc.a): New targets.
10694         (generated): Add them.
10695         (reloc-link): Remove -o $@ from the variable.
10696         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
10697         (distribute): Add rtld-Rules.
10698         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
10699         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
10700         (common-mostlyclean, common-clean): Clean up rtld-* files.
10701         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
10703 2003-05-20  Jakub Jelinek  <jakub@redhat.com>
10705         * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
10706         If temp != NULL, copy dynamic entries which need relocation to temp
10707         array before relocating.
10708         (DL_RO_DYN_TEMP_CNT): Define.
10709         * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
10710         * elf/rtld.c (_dl_start): Likewise.
10711         (dl_main): Likewise.  Add dyn_temp static variable.
10713 2002-10-11  Roland McGrath  <roland@redhat.com>
10715         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
10716         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
10718         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
10719         proper set of no-op insn prefixes.
10721         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
10723 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
10725         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
10726         __pthread_kill_other_threads_np.
10728         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
10730 2002-10-08  Roland McGrath  <roland@redhat.com>
10732         * locale/newlocale.c (__newlocale): If setting all categories to "C",
10733         just return &_nl_C_locobj instead of copying it.
10734         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
10735         * locale/duplocale.c (__duplocale): Likewise.
10737 2002-10-07  Roland McGrath  <roland@frob.com>
10739         * config.h.in (HAVE_I386_SET_GDT): New #undef.
10740         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
10741         * sysdeps/mach/configure: Regenerated.
10743 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
10746         Add all necessary register outputs for syscall-clobbered registers.
10748 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
10750         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
10751         Itanium 2 (and Itanium).
10752         Fix unwind directives and make it fit in 80 columns.
10753         * sysdeps/ia64/memset.S: Likewise.
10754         * sysdeps/ia64/memcpy.S: Likewise.
10755         Move jump table to .rodata section.
10757 2002-10-03  Roland McGrath  <roland@frob.com>
10759         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
10760         clobbers to asm.
10762 2002-10-10  Andreas Jaeger  <aj@suse.de>
10764         * sysdeps/x86_64/_mcount.S: Restore correct registers.
10766 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
10768         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
10770 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
10772         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
10773         _dl_allocate_tls_init.  Add rtld_hidden_proto.
10774         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
10775         rtld_hidden_def.
10776         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
10778         * version.h (VERSION): Bump to 2.3.1.
10780         * Make-dist: Add back one of the tar invocations removed before.
10782         * stdlib/Makefile (distribute): Add allocalim.h.
10784         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
10785         (__libc_tsd_address): Use correct variable name.
10786         Patch by Stefan Jones <stefan.jones@multigig.com>.
10788         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
10789         Reported by edwardsg@sgi.com [PR libc/4678].
10791         * Versions.def (libc): Add GLIBC_2.3.1.
10792         (libpthread): Add GLIBC_2.3.1.
10794         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
10795         and __sigtimedwait.
10796         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
10797         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
10798         libc_hidden_def.
10799         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
10800         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
10802         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
10803         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
10804         and make old name an alias.
10805         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
10806         and make old name an alias.
10807         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
10808         __libc_msgsnd.
10810         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
10811         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
10812         __libc_writev.
10813         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
10814         old name an alias.
10815         * sysdeps/posix/readv.c: Likewise
10816         * sysdeps/unix/sysv/aix/readv.c: Likewise.
10817         * sysdeps/unix/sysv/linux/readv.c: Likewise.
10818         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
10819         old name an alias.
10820         * sysdeps/posix/writev.c: Likewise
10821         * sysdeps/unix/sysv/aix/writev.c: Likewise.
10822         * sysdeps/unix/sysv/linux/writev.c: Likewise.
10824         * include/sys/wait.h: Declare __waitid.
10825         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
10826         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
10827         name an alias.
10828         * sysdeps/posix/waitid.c: Likewise.
10829         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
10831         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
10833 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
10835         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
10836         prototypes.
10837         (__MAX_ALLOCA_CUTOFF): Define.
10838         Include allocalim.h.
10839         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
10840         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
10841         host_buffer depending on __libc_use_alloca.
10842         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
10843         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
10844         net_buffer depending on __libc_use_alloca.
10845         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
10846         buf depending on __libc_use_alloca.
10847         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
10848         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
10849         instead of hardcoded constants.
10850         Pass proper size argument to alloca and compute end for wide char
10851         version.
10852         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
10853         instead of hardcoded constants.
10854         * string/strcoll.c (strcoll): Likewise.
10855         * string/strxfrm.c (strxfrm): Likewise.
10856         * sysdeps/posix/readv.c (__readv): Likewise.
10857         * sysdeps/posix/writev.c (__writev): Likewise.
10858         * sysdeps/generic/allocalim.h: New file.
10860 2002-10-08  Roland McGrath  <roland@redhat.com>
10862         * configure.in (aux_missing warning): Change "too old" to
10863         "incompatible versions", since for autoconf it's "too new" right now.
10864         * configure: Regenerated.
10866         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
10867         one found doesn't work on our configure.in.
10868         * configure: Regenerated.
10869         * config.make.in (AUTOCONF): New substituted variable.
10870         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
10871         (autoconf-it): ... here, use that instead of defining conditionally.
10872         Use $(AUTOCONF) instead of literal autoconf.
10873         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
10874         with this condition.
10875         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
10877 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
10879         * Make-dist (dist): Cleanup a bit.  We are not interested in the
10880         14 char filename limit anymore.  Remove intermediate files and
10881         symlinks.
10883 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
10885         * po/sk.po: Update from translation team.
10886         * po/tr.po: Likewise.
10887         * po/gl.po: Likewise.
10889 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10891         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
10893 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
10895         * version.h (RELEASE): Change to stable.
10897 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
10899         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
10900         __syscall_exit_group): New prototypes.
10902 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
10904         * glibc 2.3 released.
10907 See ChangeLog.13 for earlier changes.