initializer syntax to C99.
[glibc.git] / ChangeLog
blobdbf029854a741c926d098022a75af8ef697343de
1 2003-01-04  Andreas Schwab  <schwab@suse.de>
3         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond
4         fields.
6 2002-01-03  Paul Eggert  <eggert@twinsun.com>
8         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
9         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10         when compiling Bison 1.875's `bitset bset = obstack_alloc
11         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
13 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
15         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
16         unnecessary code.
17         Correct reference counter in case SIGQUIT handler installation failed.
19 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
21         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
22         Define using _Pragma(weak ...).
24 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
26         * resolv/res_libc.c: Provide declaration for __res_init_weak and
27         reorder declarations.
29 2003-01-03  Art Haas  <ahaas@airmail.net>
31         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
32         initializer syntax to C99.
33         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
34         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
35         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
36         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
37         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
38         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
39         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
40         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
41         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
42         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
43         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
44         * localedata/tests-mbwc/dat_mblen.c: Likewise.
45         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
46         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
47         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
48         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
49         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
50         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
51         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
52         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
53         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
54         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
55         * localedata/tests-mbwc/dat_towlower.c: Likewise.
56         * localedata/tests-mbwc/dat_towupper.c: Likewise.
57         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
58         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
59         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
60         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
61         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
62         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
63         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
64         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
65         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
66         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
67         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
68         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
69         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
70         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
71         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
72         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
73         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
74         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
75         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
76         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
77         * localedata/tests-mbwc/dat_wctob.c: Likewise.
78         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
79         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
80         * localedata/tests-mbwc/dat_wctype.c: Likewise.
81         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
83 2003-01-03  Richard Henderson  <rth@redhat.com>
85         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
86         (inline_syscall_r0_constraint): New.
87         (inline_syscall[0-6]): Use them.
89 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
91         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
92         Add rtld_hidden_proto.
93         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
94         (_dl_allocate_tls): Likewise.  Remove INTDEF.
96 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
98         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
99         Morita <toshiyasu.morita@hsa.hitachi.com>.
100         * sysdeps/sh/memcpy.S: Likewise.
102 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
104         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
105         any, but unify the test.
107 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
109         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
110         sigaction): Protect weak_alias and libc_hidden_weak with
111         #ifndef LIBC_SIGACTION.
112         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
113         sigaction): Likewise.
114         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
115         sigaction): Likewise.
116         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
117         sigaction): Likewise.
118         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
119         sigaction): Likewise.
120         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
121         sigaction): Likewise.
122         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
123         sigaction): Likewise.
124         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
125         sigaction): Likewise.  Remove SIGCANCEL handling here.
126         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
127         Likewise.
129 2003-01-02  Art Haas  <ahaas@airmail.net>
131         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
133 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
135         * posix/getconf.c: Update copyright year.
136         * nss/getent.c: Likewise.
137         * nscd/nscd_nischeck.c: Likewise.
138         * iconv/iconvconfig.c: Likewise.
139         * iconv/iconv_prog.c: Likewise.
140         * elf/ldconfig.c: Likewise.
141         * catgets/gencat.c: Likewise.
142         * csu/version.c: Likewise.
143         * elf/ldd.bash.in: Likewise.
144         * elf/sprof.c (print_version): Likewise.
145         * locale/programs/locale.c: Likewise.
146         * locale/programs/localedef.c: Likewise.
147         * nscd/nscd.c (print_version): Likewise.
148         * debug/xtrace.sh: Likewise.
149         * malloc/memusage.sh: Likewise.
150         * malloc/mtrace.pl: Likewise.
152 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
154         * io/sys/stat.h: Include time.h with __need_timespec even if
155         __USE_MISC is defined but __USE_XOPEN is not.
157 2003-01-01  Andreas Jaeger  <aj@suse.de>
159         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
160         type to avoid strict aliasing problem.
161         (_nss_dns_gethostbyname2_r): Likewise.
162         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
163         (_nss_dns_getnetbyname_r): Likewise.
164         * resolv/gethnamaddr.c (_gethtent): Likewise.
165         (gethostbyname2): Likewise.
167 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
169         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
170         to avoid using the exported symbols.  Define aliases with the
171         original names separately.
173         * include/time.h: Add libc_hidden_proto for __strftime_l.
174         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
175         * time/strftime.c: Always use libc_hidden_def if _LIBC.
177         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
178         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
180         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
181         tr_break.
183         * csu/Makefile (routines): Add dso_handle.
184         * csu/dso_handle.c: New file.
186 2002-12-31  Roland McGrath  <roland@redhat.com>
188         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
189         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
190         (S-CPPFLAGS): Add -DASSEMBLER here instead.
191         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
193 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
195         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
196         is available.
198 2002-12-31  Andreas Jaeger  <aj@suse.de>
200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
201         with Linux kernel.
202         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
203         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
204         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
206         * sysdeps/unix/sysv/linux/kernel_stat.h
207         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
209         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
210         __unused[1-3] since they're needed by some platforms.  Handle
211         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
213         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
214         for structs stat and stat64.
215         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
216         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
217         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
218         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
220         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
222         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
223         nsec resolution changes.
224         (xstat64_conv): Likewise.
225         (xstat32_conv): Likewise.
227         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
228         struct kernel_stat.
230         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
231         structs stat and stat64.
233         * time/time.h (__timespec_defined): Define for __USE_MISC.
235 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
237         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
238         and __libc_current_sigrtmax.
240 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
242         * include/errno.h (__errno_location): Add prototype.
243         Use libc_hidden_proto unconditionally.
244         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
245         unconditionally.
246         * include/resolv.h (__res_state): Likewise.
248         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
249         * include/sys/socket.h (accept): Add libc_hidden_proto.
250         * include/errno.h (__errno_location): Likewise.
251         * include/netdb.h (__h_errno_location): Likewise.
252         * include/resolv.h (__res_state): Likewise.
253         * include/unistd.h (__lseek): Likewise.
254         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
255         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
256         * sysdeps/generic/res-state.c (__res_state): Likewise.
257         * sysdeps/generic/accept.c (accept): Likewise.
258         * sysdeps/generic/lseek.c (__lseek): Likewise.
259         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
260         __libc_current_sigrtmax): Likewise.
261         * sysdeps/mach/hurd/accept.c (accept): Likewise.
262         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
263         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
264         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
265         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
266         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
267         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
268         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
269         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
270         alias to llseek.
271         (__GI_accept): New alias to accept.
272         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
273         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
274         New alias to llseek.
275         (__GI_accept): New alias to accept.
276         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
277         Likewise.
278         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
279         Likewise.
280         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
282         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
283         strong_alias (name, __GI_name).
284         * sysdeps/arm/bsd-_setjmp.S : Likewise.
285         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
286         * sysdeps/i386/bsd-_setjmp.S : Likewise.
287         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
288         * sysdeps/mips/bsd-_setjmp.S : Likewise.
289         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
290         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
291         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
292         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
293         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
294         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
295         * sysdeps/sh/bsd-_setjmp.S : Likewise.
296         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
297         * sysdeps/unix/arm/fork.S : Likewise.
298         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
299         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
300         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
301         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
302         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
303         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
304         * sysdeps/unix/i386/fork.S : Likewise.
305         * sysdeps/unix/mips/fork.S : Likewise.
306         * sysdeps/unix/sparc/fork.S : Likewise.
307         * sysdeps/unix/sparc/vfork.S : Likewise.
308         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
309         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
310         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
311         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
312         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
313         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
314         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
315         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
316         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
317         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
318         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
319         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
320         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
321         * sysdeps/unix/fork.S : Likewise.
322         * sysdeps/vax/bsd-_setjmp.S : Likewise.
323         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
325         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
326         inclusion.
328 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
330         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
331         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
332         * sysdeps/mach/hurd/fork.c: Likewise.
333         * sysdeps/unix/sysv/aix/fork.c: Likewise.
334         * sysdeps/unix/fork.S: Add __GI___fork alias.
335         * sysdeps/unix/arm/fork.S: Likewise.
336         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
337         * sysdeps/unix/i386/fork.S: Likewise.
338         * sysdeps/unix/mips/fork.S: Likewise.
339         * sysdeps/unix/sparc/fork.S: Likewise.
340         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
341         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
342         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
343         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
344         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
345         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
346         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
347         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
348         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
349         * sysdeps/unix/sparc/vfork.S: Likewise.
350         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
351         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
352         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
353         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
354         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
355         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
356         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
357         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
359         * include/time.h: Add libc_hidden_proto for __nanosleep.
360         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
361         * sysdeps/mach/nanosleep.c: Likewise.
362         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
363         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
365         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
366         _IO_list_unlock, and _IO_list_resetlock.
367         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
368         _IO_list_unlock, and _IO_list_resetlock.
370         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
371         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
372         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
373         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
375         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
376         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
377         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
378         __GI___longjmp alias.
380         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
381         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
382         * sysdeps/arm/bsd-_setjmp.S: Likewise.
383         * sysdeps/generic/bsd-_setjmp.c: Likewise.
384         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
385         * sysdeps/i386/bsd-_setjmp.S: Likewise.
386         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
387         * sysdeps/mips/bsd-_setjmp.S: Likewise.
388         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
389         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
390         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
391         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
392         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
393         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
394         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
395         * sysdeps/sh/bsd-_setjmp.S: Likewise.
396         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
397         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
398         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
399         * sysdeps/vax/bsd-_setjmp.S: Likewise.
400         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
402 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
404         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
406 2002-12-30  Roland McGrath  <roland@redhat.com>
408         * Rules (generated): Target removed.
409         * mach/Makefile (generated): Define it here instead.
411         * math/Makefile (generated): Add m_*l and m_*f variants too.
413 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
415         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
416         the to-be-deleted objects right away instead of later separately.
417         The latter fails because the scope data structures of the DSO
418         might already be gone.
420         * elf/Makefile: Add rules to build and run reldep8 test.
421         * elf/reldep8.c: New file.
422         * elf/reldep8mod1.c: New file.
423         * elf/reldep8mod2.c: New file.
424         * elf/reldep8mod3.c: New file.
425         Contributed by Jakub Jelinek.
427 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
429         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
430         checking of return value ENOSYS from getdents64.
432 2002-12-28  Andreas Schwab  <schwab@suse.de>
434         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
435         ($(common-objpfx)s-%.d): Generalized from
436         $(common-objpfx)s-proto.d rule.
437         (common-generated): Add s-proto-cancel.d.
438         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
439         cancellable syscalls.
440         * sysdeps/unix/s-proto-cancel.S: New file.
442 2002-12-29  Roland McGrath  <roland@redhat.com>
444         * resolv/res_libc.c: Move _res defn magic after res_init defn
445         so _res macro is in effect for that code.
447         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
448         pattern for prepending $(..) so it doesn't affect $(foo).
450         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
452 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
454         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
455         in hwcap.
457 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
459         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
461 2002-12-28  Andreas Jaeger  <aj@suse.de>
463         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
464         avoid warning.
465         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
467 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
469         * inet/herrno.c (__h_errno_location): Remove.
470         * inet/Makefile (routines): Add herrno-loc.
471         * resolv/res_libc.c (__res_state): Remove.
472         * resolv/Makefile (routines): Add res-state.
473         * sysdeps/generic/herrno-loc.c: New file.
474         * sysdeps/generic/res-state.c: New file.
476 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
478         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
479         Only define if USE_DL_SYSINFO is defined.
481 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
483         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
484         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
485         Define. Patch by Richard Henderson and Jes Sorensen.
486         (PSEUDO): Remove unnecessary ;;.
487         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
488         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
489         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
490         if not initializing thread pointer.
491         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
492         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
493         make it weak also if NONTLS_INIT_TP.
494         * sysdeps/unix/common/pause.c: Handle cancellation.
495         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
496         (LOADSYSCALL): Remove.
497         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
498         (SYSCALL_ERROR_HANDLER): Use it.
499         (PSEUDO): Don't jump around error handler.
500         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
501         jump around error handler.
502         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
503         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
504         to __syscall_error_handler on failure.
505         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
506         (LOADSYSCALL): Remove.
507         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
508         (SYSCALL_ERROR_HANDLER): Use it.
509         (PSEUDO): Don't jump around error handler.
510         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
511         jump around error handler.
512         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
513         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
514         to __syscall_error_handler on failure.
516 2002-12-27  Roland McGrath  <roland@redhat.com>
518         * scripts/gen-as-const.awk: New file.
519         * Makefile (distribute): Add it.
520         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
521         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
522         to the list.
523         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
525 2002-12-27  Andreas Schwab  <schwab@suse.de>
527         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
529 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
531         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
532         _environ is NULL.
534 2002-12-27  Andreas Schwab  <schwab@suse.de>
536         * Makerules ($(common-objpfx)%.make): Filter through
537         $(sed-remove-objpfx).
539 2002-12-23  Roland McGrath  <roland@redhat.com>
541         * scripts/abilist.awk: Produce a more compact format, divided into
542         stanzas for each version set, the set name listed only once.
543         * scripts/extract-abilist.awk: New file.
544         * scripts/merge-abilist.awk: New file.
545         * Makerules (check-abi-%, update-abi-%): New pattern rules.
546         (update-abi, check-abi): New targets.
547         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
549 2002-12-19  Roland McGrath  <roland@redhat.com>
551         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
553         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
554         INTERNAL_SYSCALL.
556 2002-12-21  Andreas Schwab  <schwab@suse.de>
558         * elf/check-textrel.c (handle_file): Swap p_type.
560 2002-12-21  Andreas Schwab  <schwab@suse.de>
562         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
563         (INLINE_SYSCALL): Use it.
564         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
565         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
567         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
568         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
570 2002-12-20  Art Haas  <ahaas@airmail.net>
572         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
573         syntax to C99.
575 2002-12-21  Philip Blundell  <philb@gnu.org>
577         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
578         top as seventh arg to __libc_start_main.
579         Reported by paulnash@wildseed.com.
581         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
583         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
584         compatibility cruft when new enough kernel is assumed.
586 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
588         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
589         instead of INLINE_SYSCALL.
591 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
593         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
594         typo.
596         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
597         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
598         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
599         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
600         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
601         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
602         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
603         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
604         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
605         Patch by William Lee Irwin <wli@holomorphy.com>.
607 2002-12-20  Andreas Schwab  <schwab@suse.de>
609         * locale/programs/ld-measurement.c (measurement_output): Fix
610         index calculation.
612 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
614         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
615         Redefine _IO_flockifle and _IO_funlockfile as inlines.
617         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
618         builds add "tls" in the search path.
619         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
620         (path_hwcap): Recognize "tls".
622 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
624         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
625         __waitpid instead of waitpid.
627         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
628         int $0x80.
629         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
630         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
631         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
633         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
634         information for system calls.
636         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
637         for ld.so.
639         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
641 2002-12-19  Roland McGrath  <roland@redhat.com>
643         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
644         * iconvdata/ibm922.h: Likewise.
645         * iconvdata/ibm930.h: Likewise.
646         * iconvdata/ibm932.h: Likewise.
647         * iconvdata/ibm933.h: Likewise.
648         * iconvdata/ibm935.h: Likewise.
649         * iconvdata/ibm937.h: Likewise.
650         * iconvdata/ibm939.h: Likewise.
651         * iconvdata/ibm943.h: Likewise.
652         * iconvdata/isiri-3342.h: Likewise.
654 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
656         * test-skeleton.c (main): Make sure correct value is seen as
657         argv[0] after adjustment of argv, and argc.
659         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
660         RTLD_CORRECT_DYNAMIC_WEAK is defined.
662 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
664         * nscd/connections.c (nscd_run): Shut up warning.
665         * tst-ungetc.c (assert): Undefined before redefining.
667 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
669         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
670         is used.
672 2002-12-17  Art Haas  <ahaas@airmail.net>
674         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
675         * iconvdata/cp775.h: Likewise.
676         * iconvdata/ibm1046.h: Likewise.
677         * iconvdata/ibm1124.h: Likewise.
678         * iconvdata/ibm1129.h: Likewise.
679         * iconvdata/ibm1132.h: Likewise.
680         * iconvdata/ibm1133.h: Likewise.
681         * iconvdata/ibm1160.h: Likewise.
682         * iconvdata/ibm1161.h: Likewise.
683         * iconvdata/ibm1162.h: Likewise.
684         * iconvdata/ibm1163.h: Likewise.
685         * iconvdata/ibm1164.h: Likewise.
687 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
689         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
690         __ASSUME_CLONE_THREAD_FLAGS is defined.
691         * sysdeps/unix/sysv/linux/kernel-features.h
692         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
694 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
696         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
697         of asm.
698         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
700         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
701         _dl_sysinfo.
702         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
703         code.
704         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
705         _rtld_global.
706         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
707         code.
708         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
709         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
710         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
711         Add _dl_sysinfo.
713 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
715         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
716         __libc_writev to...
717         [libc: GLIBC_PRIVATE]: ...here.
718         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
719         __libc_msgsnd to...
720         [libc: GLIBC_PRIVATE]: ...here.
722 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
724         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
725         Use it instead of directly int $0x80.
726         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
727         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
728         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
729         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
730         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
731         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
733 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
735         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
737         * elf/elf.h (AT_SYSINFO): New define.
738         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
739         AT_SYSINFO.
741 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
743         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
744         Make cancelable.
745         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
746         Likewise.
747         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
748         Likewise.
749         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
750         Likewise.
751         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
752         Likewise.
753         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
755         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
756         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
757         available, otherwise __libc_maybe_call.
758         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
759         cancellation handling.
760         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
762 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
764         * posix/regcomp.c (free_workarea_compile): Free the new member
765         ORG_INDICES.
766         (analyze): Initialize ORG_INDICES.
767         (duplicate_node_closure): Search for a existing node, which is
768         duplicated from the node ORG_DEST and satisfies the constraint
769         CONSTRAINT.  And use it to avoid inifimite loop.
770         (search_duplicated_node): New function.
771         (duplicate_node): Store the index of the original node.
772         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
773         if needed.
774         * posix/regex_internal.h (re_dfa_t): Add new members.
776 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
778         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
780 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
782         * sysdeps/posix/system.c (do_system): Add support for installation
783         of cancellation handlers.
784         * sysdeps/unix/sysv/linux/i386/system.c: New file.
786         * stdlib/Makefile (tests): Add tst-system.
787         * stdlib/tst-system.c: New file.
789         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
790         CENABLE]: Don't lose content of %ebx.
792 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
794         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
795         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
797 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
799         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
800         fails to return a function pointer don't use it.
802 2002-12-16  Art Haas  <ahaas@airmail.net>
804         * io/ftw.c: Convert GCC extension initializer syntax to C99.
805         * iconvdata/iso-ir-165.c: Likewise.
806         * iconvdata/jis0208.c: Likewise.
807         * iconvdata/jis0212.c: Likewise.
809 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
811         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
812         epoll_ctl, and epoll_wait.
813         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
814         epoll_create, epoll_ctl, and epoll_wait.
815         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
816         Davide Libenzi <davidel@xmailserver.org>.
817         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
818         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
819         Add sys/epoll.h.
821 2002-12-16  Art Haas  <ahaas@airmail.net>
823         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
824         syntax to C99
825         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
826         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
827         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
829 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
831         * stdio-common/Makefile (routines): Remove lockfile.  Add
832         flockfile, ftrylockfile, and funlockfile.
833         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
834         * sysdeps/generic/flockfile.c: New file.
835         * sysdeps/generic/ftrylockfile.c: New file.
836         * sysdeps/generic/funlockfile.c: New file.
838 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
840         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
841         macros instead of doing the calls directly.
842         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
843         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
844         targets.
846 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
848         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
849         * sysdeps/ieee754/bits/nan.h: Likewise.
851         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
852         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
854 2002-12-16  Roland McGrath  <roland@redhat.com>
856         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
857         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
858         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
860         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
861         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
862         s_putpmsg.
863         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
864         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
865         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
866         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
867         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
868         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
869         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
870         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
872 2002-12-13  Paul Eggert  <eggert@twinsun.com>
874         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
875         is now u_int, not int.
876         (struct XDR.x_handy): Now u_int, not int.
877         * sunrpc/xdr_mem.c: Include <limits.h>.
878         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
879         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
880         x_handy is now unsigned, not signed.
881         Do not decrement x_handy if no change is made.
882         (xdrmem_setpos): Check for int overflow.
883         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
884         (xdr_sizeof): Remove cast that is now unnecessary, now that
885         x_handy is unsigned.
887 2002-12-15  Art Haas  <ahaas@airmail.net>
889         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
890         * iconvdata/gap.awk: Likewise.
891         * iconvdata/gen-8bit-gap-1.sh: Likewise.
892         * iconvdata/gen-8bit-gap.sh: Likewise.
893         * locale/C-address.c: Likewise.
894         * locale/C-collate.c: Likewise.
895         * locale/C-ctype.c: Likewise.
896         * locale/C-identification.c: Likewise.
897         * locale/C-measurement.c: Likewise.
898         * locale/C-messages.c: Likewise.
899         * locale/C-monetary.c: Likewise.
900         * locale/C-name.c: Likewise.
901         * locale/C-numeric.c: Likewise.
902         * locale/C-paper.c: Likewise.
903         * locale/C-telephone.c: Likewise.
904         * locale/C-time.c: Likewise.
905         * nscd/connections.c: Likewise.
906         * nscd/grpcache.c: Likewise.
907         * nscd/hstcache.c: Likewise.
908         * nscd/pwdcache.c: Likewise.
909         * stdio-common/vfprintf.c: Likewise.
910         * stdlib/random.c: Likewise.
911         * sysdeps/generic/siglist.c: Likewise.
912         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
913         * sysdeps/ieee754/bits/nan.h: Likewise.
914         * sysdeps/posix/sprofil.c: Likewise.
915         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
916         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
917         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
919 2002-12-15  Roland McGrath  <roland@redhat.com>
921         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
923         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
924         <tls.h> here, no need for it.
925         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
927         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
928         parameter, not varargs parameter.
930         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
931         argument so it's not an unused variable.
933         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
934         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
935         for users.
937         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
939 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
941         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
942         original __libc_fcntl code.  Just renamed.
944 2002-12-15  Andreas Schwab  <schwab@suse.de>
946         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
948 2002-12-14  Olaf Hering  <olh@suse.de>
950         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
951         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
953 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
955         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
957         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
958         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
960         * sysdeps/unix/sysv/linux/open64.c: New file.
962         * sysdeps/generic/pselect.c: Add support for cancellation handling.
963         * sysdeps/posix/open64.c: Likewise.
964         * sysdeps/posix/sigpause.c: Likewise.
965         * sysdeps/posix/sigwait.c: Likewise.
966         * sysdeps/posix/system.c: Likewise.
967         * sysdeps/posix/waitid.c: Likewise.
968         * sysdeps/unix/sysv/linux/accept.S: Likewise.
969         * sysdeps/unix/sysv/linux/connect.S: Likewise.
970         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
971         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
972         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
973         * sysdeps/unix/sysv/linux/poll.c: Likewise.
974         * sysdeps/unix/sysv/linux/pread.c: Likewise.
975         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
976         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
977         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
978         * sysdeps/unix/sysv/linux/readv.c: Likewise.
979         * sysdeps/unix/sysv/linux/recv.S: Likewise.
980         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
981         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
982         * sysdeps/unix/sysv/linux/send.S: Likewise.
983         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
984         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
985         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
986         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
987         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
988         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
989         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
990         * sysdeps/unix/sysv/linux/wait.c: Likewise.
991         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
992         * sysdeps/unix/sysv/linux/writev.c: Likewise.
993         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
994         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
996 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
998         * sysdeps/generic/sysdep-cancel.h: New file.
999         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
1000         cancelable syscall.
1001         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
1002         recvmsg, send, sendmsg, sendto): Make cancelable.
1003         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
1004         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
1005         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1006         sendto, osf_select): Likewise.
1007         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
1008         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1009         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
1010         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1011         sendto): Likewise.
1012         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
1013         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1014         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
1015         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1016         sendto): Likewise.
1017         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
1018         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1019         sendto, select): Likewise.
1020         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
1021         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
1022         Likewise.
1023         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
1024         select, fcntl): Likewise.
1025         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
1026         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
1027         read, readv, select, sigsuspend, write, writev): Likewise.
1029 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
1031         * dirent/bug-readdir1.c: Include unistd.h.
1033 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
1035         * locale/programs/locale.c: Include locarchive.h.
1036         (ARCHIVE_NAME): Define.
1037         (write_archive_locales): New function.
1038         (write_locales): Use it.  Ensure the same locale is not printed
1039         multiple times in verbose mode.
1040         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
1041         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
1042         functions.
1043         (struct nameent): New type.
1044         (nameentcmp): New function.
1046 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
1048         * posix/regex_internal.c (re_string_context_at): Guard wide char
1049         code with #ifdef RE_ENABLE_I18N.
1051 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
1053         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
1055 2002-12-13  Roland McGrath  <roland@redhat.com>
1057         * posix/bug-regex15.c: New file.
1058         * posix/Makefile (tests): Add it.
1060         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
1061         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
1063 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
1065         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
1067         * misc/syslog.c (log_cleanup): Don't use parameter in
1068         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
1069         pass NULL instead of a pointer to syslog_lock.
1071 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
1073         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
1074         linker map for all iconv modules.
1075         (distribute): Add gconv.map.
1076         * iconvdata/gconv.map: New file.
1078         * elf/Makefile: Also check all iconv modules for text relocations.
1080         * stdlib/Makefile: Remove code to automatically import GMP.
1082         * elf/Makefile (tests): Add rules to build and run check-textrel.
1083         * elf/check-textrel.c: New file.
1085         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
1086         directive.
1088 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
1090         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
1091         not st.st[am]time.
1093 2002-04-30  Bruno Haible  <bruno@clisp.org>
1095         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
1096         the encoding if it already has slashes.
1097         Reported by Perry Rapp <prapp@erols.com>.
1099 2002-12-11  Roland McGrath  <roland@redhat.com>
1101         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
1102         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
1103         Turn off PIC for compiling this file.
1105 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
1107         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
1108         definitions.  Not needed.
1109         [_LIBC]: Use definitions from libc-lock.h instead of referencing
1110         pthread routines directly.
1111         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
1112         mutex_init calls.
1113         (arena_get2): Don't look at return value of mutex_lock.
1115 2002-12-11  Roland McGrath  <roland@redhat.com>
1117         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
1118         elf-init.o instead of compiling a PIC version.
1120 2002-12-11  Bruno Haible  <bruno@clisp.org>
1122         * intl/gettext.h: Renamed to ...
1123         * intl/gmo.h: ... here.
1124         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
1125         * intl/gettextP.h: Update.
1126         * intl/loadmsgcat.c: Update.
1128         * intl/gettextP.h (PARAMS): Make more portable.
1129         (attribute_hidden): Define as empty macro if not already defined.
1130         * intl/hash-string.h (PARAMS): Make more portable.
1131         * intl/loadinfo.h (PARAMS): Likewise.
1132         * intl/plural-exp.h (PARAMS): Likewise.
1133         (attribute_hidden): Move definition near the definition of
1134         internal_function.
1136         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
1137         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
1139 2002-07-13  Bruno Haible  <bruno@clisp.org>
1141         * intl/dcigettext.c (freea): New macro.
1142         (FREE_BLOCKS): Free also the registered blocks.
1143         (DCIGETTEXT): Free the 'search' variable.
1144         Reported by Andreas Fischer <a.fischer@asentics.de>.
1146 2002-04-27  Bruno Haible  <bruno@clisp.org>
1148         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
1149         * intl/dcigettext.c: Likewise.
1150         * intl/dcgettext.c: Likewise.
1151         * intl/dgettext.c: Likewise.
1152         * intl/gettext.c: Likewise.
1153         * intl/dcngettext.c: Likewise.
1154         * intl/dngettext.c: Likewise.
1155         * intl/ngettext.c: Likewise.
1156         * intl/textdomain.c: Likewise.
1157         * intl/bindtextdom.c: Likewise.
1158         * intl/plural-exp.h: Likewise.
1160 2002-01-02  Bruno Haible  <bruno@clisp.org>
1162         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
1164 2001-04-30  Bruno Haible  <bruno@clisp.org>
1166         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
1167         default macro definitions.  Needed for mingw32.
1169 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
1171         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
1172         __builtin_constant_p to macro parameter.
1174         * sysdeps/generic/sigpause.c: Define all functions as weak.
1175         * sysdeps/posix/sigpause.c: Likewise.
1177         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
1178         type size_t.
1180 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
1182         * elf/tst-array1.c (preinit_array, init_array, fini_array):
1183         Explicitly align the array to sizeof (void *).
1184         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
1186         * include/libc-symbols.h: Fix a comment typo.
1188         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
1189         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
1190         Likewise.
1191         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
1192         Likewise.
1193         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
1194         (__libc_sigsuspend): Likewise.
1195         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
1196         (__libc_sigsuspend): Likewise.
1197         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
1198         (creat): New weak alias.
1200 2002-12-10  Roland McGrath  <roland@redhat.com>
1202         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
1203         contributes a manual chapter.
1204         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
1205         around xref to it.
1207         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
1208         and move contents to ...
1209         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
1210         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
1211         it instead of duplicating its contents.
1212         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
1214 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
1216         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
1217         defined.
1218         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
1219         function.
1220         (EXTRA_LD_ENVVARS): Use it.
1221         (DL_OSVERSION_INIT): Define.
1222         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
1223         dl-librecon.h.
1224         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
1226 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
1228         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
1230         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
1231         call.  It is not allowed to destroy pthread mutexes which are
1232         still in use even though it is safe for our implementations.  If
1233         somebody still uses the descriptor it is a bug.
1235 2002-12-09  Richard Henderson  <rth@redhat.com>
1237         * csu/abi-note.S: Use .p2align, not .align.
1239 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
1241         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
1242         __libc_select aliases.
1244         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
1245         alias.
1247         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
1249         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
1251         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
1253         * sysdeps/unix/syscalls.list: Define __libc_select alias.
1255         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
1257         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
1258         __libc___xpg_sigpause aliases.
1260         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
1262         * misc/error.c: Remove use of USE_IN_LIBIO.
1264 2002-12-08  Roland McGrath  <roland@redhat.com>
1266         * elf/Makefile (tests): Uncomment tst-array[123].
1267         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
1268         * csu/elf-init.c: New file.
1269         * csu/Makefile (routines, static-only-routines): Add elf-init.
1270         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
1271         and __libc_csu_fini in place of _fini.
1272         * sysdeps/arm/elf/start.S: Likewise.
1273         * sysdeps/cris/elf/start.S: Likewise.
1274         * sysdeps/hppa/elf/start.S: Likewise.
1275         * sysdeps/i386/elf/start.S: Likewise.
1276         * sysdeps/ia64/elf/start.S: Likewise.
1277         * sysdeps/m68k/elf/start.S: Likewise.
1278         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
1279         * sysdeps/mips/elf/start.S: Likewise.
1280         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1281         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1282         * sysdeps/s390/s390-32/elf/start.S: Likewise.
1283         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1284         * sysdeps/sh/elf/start.S: Likewise.
1285         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1286         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1287         * sysdeps/x86_64/elf/start.S: Likewise.
1289         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
1290         struct containing function ptr and value, free it.
1291         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
1292         It's not safe to let the new thread use the SIGEV pointer.
1294 2001-10-20  Paul Eggert  <eggert@twinsun.com>
1296         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
1297         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
1298         Use strerror_r that is only a macro, even if it is not a function.
1299         (strerror): Check for HAVE_DECL_STRERROR before declaring.
1300         (private_strerror): Use prototypes, not old-style function definition.
1301         (print_errno_message): New function.
1302         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
1303         char*-flavored one.
1304         (error_tail, error, error_at_line): Use it.
1306 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
1308         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
1310 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
1312         * scripts/output-format.sed: Fix bug in one of the s expressions
1313         which used / for one too many things.
1315         * include/unistd.h: Declare __libc_close.
1317 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
1319         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
1321 2002-12-07  Roland McGrath  <roland@redhat.com>
1323         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
1324         from 2002-12-06, but remove unnecessary memset call without removing
1325         necessary copy of initialization image.
1327         * Makerules ($(common-objpfx)format.lds): New target.
1328         (common-generated): Add it.
1329         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
1330         * scripts/output-format.sed: New file.
1331         * Makefile (distribute): Add it.
1333 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
1335         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
1336         Reported by Art Haas <ahaas@airmail.net>.
1338 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
1340         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
1342 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
1344         * string/test-strncpy.c (do_random_tests): Improve test coverage.
1346 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
1348         * test-skeleton.c (timeout_handler): Allow expected signal to be
1349         SIGALRM.
1351         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
1353         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
1355 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
1357         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
1358         (SYSCALL_ERROR_HANDLER): Fix a pasto.
1359         Reported by Jeff Bailey <jbailey@nisa.net>.
1361 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
1363         * sysdeps/generic/libc-tls.c: Undo last patch.
1365         * include/wctype.h: Define iswalnum with libc_hidden_proto.
1367         * include/signal.h: Define raise with libc_hidden_proto.
1369         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
1370         __execve instead of snprintf and execve.
1372         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
1373         again a bit.
1375 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
1377         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
1378         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
1380 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
1382         * misc/syslog.c (log_cleanup): New function.
1383         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
1384         (closelog): Likewise.
1386         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
1387         * elf/dl-iteratephdr.c: Likewise.
1388         * elf/dl-lookup.c: Likewise.
1389         * elf/dl-misc.c: Likewise.
1390         * elf/dl-open.c: Likewise.
1391         * elf/dl-support.c: Likewise.
1392         * elf/rtld.c: Likewise.
1393         * sysdeps/generic/ldsodefs.h: Likewise.
1394         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
1395         * sysdeps/mach/bits/libc-lock.h: Likewise.
1396         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1398 2002-12-06  Roland McGrath  <roland@redhat.com>
1400         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
1402         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
1403         (malloc_starter, memalign_starter, free_starter): Don't define these.
1404         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
1405         Don't declare them either.
1406         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
1407         __pthread_initialize, so no need to set hooks to *_starter.
1408         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
1409         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
1410         (__libc_malloc_pthread_startup): New function.
1411         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
1413         * malloc/hooks.c (memalign_starter): New function.
1414         * malloc/malloc.c: Declare it.
1415         * malloc/arena.c (save_memalign_hook): New variable.
1416         (ptmalloc_init): Set __memalign_hook to memalign_starter.
1418         * elf/dl-minimal.c (free): Clear the memory.
1419         (calloc): Just call malloc, knowing all memory it returns is cleared.
1421         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
1422         malloc and memset; calloc can avoid the zeroing when redundant.
1423         (_dl_tls_setup): Likewise.
1424         * elf/dl-load.c (decompose_rpath): Likewise.
1425         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
1426         call, since memory from sbrk at startup is already zero.
1428         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
1429         error string for failure, null for success.  Update callers.
1430         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1431         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1433 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
1435         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
1436         args to i:iipi.
1437         (readahead): Change args to i:iii.
1438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
1439         Change args to i:iii.
1440         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
1441         args to i:iiii.
1443 2002-12-05  Roland McGrath  <roland@redhat.com>
1445         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
1446         call all functions rather than none.
1447         Reported by Mark P. Mitchell <mark@codesourcery.com>.
1449 2002-12-04  Roland McGrath  <roland@redhat.com>
1451         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
1452         on _nl_current_LC_* variables.
1454 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
1456         * dirent/bug-readdir1.c (main): Don't call closedir, just close
1457         the file descriptor.  This is testing what the bug report was about.
1459 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
1461         * po/be.po: New file.
1463         * argp/Makefile (tests): Add tst-argp1.
1465         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
1466         Change type of _attribute to void*.
1467         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1468         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1469         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1470         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1471         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1473 2002-12-04  Roland McGrath  <roland@redhat.com>
1475         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
1476         members to the end, so a libpthread compiled with !USE_TLS will still
1477         find other members properly.
1479         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
1480         operand for DEST memory.  Fix dummy input operand to use SRC.
1481         Reported by Davin McCall <davmac@ozonline.com.au>.
1483         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
1484         alignment when initializing the DTV entry.
1486         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
1487         when TLS has not been set up, try to set it up if we can.
1488         * elf/tst-tls4.c: Revert last change.
1489         * elf/tst-tls5.c: Likewise.
1490         * elf/tst-tls6.c: Likewise.
1491         * elf/tst-tls7.c: Likewise.
1492         * elf/tst-tls8.c: Likewise.
1493         * elf/tst-tls9.c: Likewise.
1495         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
1496         * sysdeps/generic/ldsodefs.h: Declare it.
1497         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1498         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
1499         function, broken out of __libc_setup_tls.
1500         (init_static_tls): Likewise.
1501         (__libc_setup_tls): Call them.
1502         (_dl_tls_setup): New function, uses new subroutines.
1504         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
1505         Clear the pointer when returning true.
1506         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
1507         first element of the slotinfo list too.
1509         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
1510         [SHARED].
1512         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
1513         (_dl_determine_tlsoffset): Likewise.
1515         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
1516         startup_error_tsd, made global.
1517         (dl_main): Update initialization.
1518         * elf/dl-tsd.c: Likewise.
1519         * sysdeps/generic/ldsodefs.h: Declare it.
1521 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
1523         * manual/texinfo.tex: Update from latest upstream version.
1525 2002-12-03  Roland McGrath  <roland@redhat.com>
1527         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
1528         area surplus in calculation for sbrk call.
1530         * iconvdata/cp1125.c: New file.
1531         * iconvdata/Makefile (distribute): Add it.
1532         (modules): Add CP1125.
1533         (gen-8bit-gap-modules): Add cp1125.
1534         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
1535         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
1537 2002-12-03  Andreas Jaeger  <aj@suse.de>
1539         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1541 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
1543         * sysdeps/posix/system.c (do_system): Make signal handler
1544         installation thread safe.
1546 2002-12-02  Roland McGrath  <roland@redhat.com>
1548         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
1549         caller from EXTRA to -.
1550         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1551         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1552         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1554 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
1556         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
1557         bits of RM are cleared.
1559 2002-12-02  Roland McGrath  <roland@redhat.com>
1561         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
1562         TLS setup is required.
1563         * elf/tst-tls5.c: Likewise.
1564         * elf/tst-tls6.c: Likewise.
1565         * elf/tst-tls7.c: Likewise.
1566         * elf/tst-tls8.c: Likewise.
1567         * elf/tst-tls9.c: Likewise.
1569         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
1570         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
1571         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
1572         for being null before calling free_slotinfo.
1573         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
1574         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
1576 2002-11-30  Bruno Haible  <bruno@clisp.org>
1578         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
1579         (struct __gconv_step): New field __btowc_fct.
1580         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
1581         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
1582         __BUILTIN_TRANS.
1583         (__gconv_btwoc_ascii): New declaration.
1584         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1585         (__gconv_btwoc_ascii): New function.
1586         * iconv/gconv_builtin.h: Add BtowcFct argument to all
1587         BUILTIN_TRANSFORMATION invocations.
1588         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1589         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
1590         * iconv/gconv_builtin.c (map): New field btowc_fct.
1591         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
1592         btowc_fct field.
1593         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
1594         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
1595         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
1596         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
1597         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
1598         (gconv_init): Initialize __btowc_fct field.
1599         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
1600         * iconv/loop.c: Document ONEBYTE_BODY.
1601         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
1602         Undefine ONEBYTE_BODY at the end.
1603         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
1604         * iconvdata/8bit-gap.c (NONNUL): New macro.
1605         (BODY for FROM_LOOP): Use it.
1606         (ONEBYTE_BODY): New macro.
1607         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
1608         (NONNUL): New macro.
1609         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
1610         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
1611         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
1612         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
1613         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
1614         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
1615         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
1616         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
1617         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
1618         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
1619         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
1620         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
1621         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
1622         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
1623         * iconvdata/ibm932.c: Include <stdbool.h>.
1624         (TRUE, FALSE): Remove macros.
1625         (BODY for FROM_LOOP): Remove unused variable rp1.
1626         (ONEBYTE_BODY): New macro.
1627         (BODY for TO_LOOP): Use bool.
1628         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
1629         * iconvdata/ibm943.c: Include <stdbool.h>.
1630         (TRUE, FALSE): Remove macros.
1631         (BODY for FROM_LOOP): Remove unused variable rp1.
1632         (ONEBYTE_BODY): New macro.
1633         (BODY for TO_LOOP): Use bool.
1634         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
1635         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
1636         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
1637         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
1638         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
1639         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
1640         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
1641         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
1642         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
1643         * iconvdata/gbbig5.c: Tweak comment.
1645 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
1647         * po/fi.po: Update from translation team.
1649 2002-12-01  Roland McGrath  <roland@redhat.com>
1651         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
1652         testing getdents64 return value.
1654         * scripts/versions.awk: Don't pass -n flag to sort command.
1656         * posix/bug-regex13.c: Include <string.h>.
1658         * sysdeps/generic/libc-start.c (__libc_start_main): Do
1659         DL_SYSDEP_OSCHECK here.
1660         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
1661         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
1663         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
1664         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
1666         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
1667         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
1669         * include/link.h: Comment typo fix.
1671 2002-12-01  Roland McGrath  <roland@frob.com>
1673         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
1674         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
1675         _POSIX_MEMORY_PROTECTION): Likewise.
1676         (_POSIX_POLL, _POSIX_SELECT): Removed.
1678 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
1680         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
1681         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
1683 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
1685         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
1686         USE___THREAD.
1687         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
1688         "=v" constraints.
1690 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
1692         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
1693         branch prediction buffers by using unpaired call/ret.
1695 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
1697         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
1698         first parameters constraint string.
1699         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
1701 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
1703         * posix/regcomp.c (parse_expression): Set the bit since the back
1704         reference is used in the regular expression.
1705         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
1706         of malloc failure.
1707         (re_node_set_init_copy): Likewise.
1708         * posix/regex_internal.h (state_array_t): New structure.
1709         (re_sub_match_last_t): Likewise.
1710         (re_sub_match_top_t): Likewise.
1711         (re_match_context_t): Add new members.
1712         (re_dfa_t): Likewise.
1713         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
1714         to check the matching is really correct, and retry if failed.
1715         Move the routin pruning the impossible nodes from here, ...
1716         (prune_impossible_nodes): To this function.
1717         (check_matching): Invoke check_subexp_matching_top, and replace
1718         redundant checking with transit_state_bkref invocation.
1719         (proceed_next_node): Replace strncmp with memcmp.  Reported by
1720         Paolo Bonzini  <bonzini@gnu.org>.
1721         (update_cur_sifted_state): Remove search_subexp invocation.
1722         (search_subexp): Remove this function.
1723         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
1724         optimization.
1725         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
1726         Remove unused invocation of match_ctx_add_entry.
1727         (transit_state): Invoke check_subexp_matching_top.
1728         (check_subexp_matching_top): New function.
1729         (transit_state_bkref): Remove unused array.
1730         Merge transit_state_bkref_loop.
1731         (transit_state_bkref_loop): Use get_subexp instead of
1732         sift_states_backward.  Use search_cur_bkref_entry for optimization.
1733         Merge this function to transit_state_bkref.
1734         (get_subexp): New function.
1735         (get_subexp_sub): Likewise.
1736         (find_subexp_node): Likewise.
1737         (check_arrival): Likewise.
1738         (check_arrival_expand_ecl): Likewise.
1739         (check_arrival_expand_ecl_sub): Likewise.
1740         (expand_bkref_cache): Likewise.
1741         (match_ctx_init): Initialize new members.
1742         (match_ctx_clean): New function.
1743         (match_ctx_free): Release new members.
1744         (match_ctx_free_subtops): New function.
1745         (match_ctx_add_entry): Fix indent.
1746         (search_cur_bkref_entry): New function.
1747         (match_ctx_add_subtop): Likewise.
1748         (match_ctx_add_sublast): Likewise.
1750 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
1752         * iconv/Makefile (tests): Remove tst-iconv4.c
1753         * iconv/tst-iconv4.c: Moved to...
1754         * iconvdata/tst-iconv4.c: ...here.  New file.
1755         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
1757 2002-11-25  Roland McGrath  <roland@redhat.com>
1759         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
1760         Grok AF_LINK if defined.
1761         From Momchil Velikov <velco@fadata.bg>.
1763         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
1764         brdaddr, or dstaddr, just set those pointers to null and don't fail.
1765         Reported by Momchil Velikov <velco@fadata.bg>.
1767         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
1768         is > sizeof IFR->ifa_addr, advance past the whole longer length.
1769         (__ifreq): Count up NIFS that way too.
1770         Reported by Momchil Velikov <velco@fadata.bg>.
1772         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
1774         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
1775         and <fpu_control.h>.
1777 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
1779         * elf/elf.h (EM_ST19): Fix typo.
1781 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
1783         * include/errno.h (__set_errno): Define as errno = val
1784         unconditionally.
1786 2002-11-24  Roland McGrath  <roland@redhat.com>
1788         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
1789         * sysdeps/posix/writev.c: Likewise.
1790         From Momchil Velikov <velco@fadata.bg>.
1792         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
1793         calling *GL(dl_error_catch_tsd) for a thread-local location.
1794         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
1795         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
1796         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
1798         * libio/iofflush.c: Add libc_hidden_def.
1799         * libio/iofwrite.c: Likewise.
1800         * sysdeps/generic/sigtimedwait.c: Likewise.
1801         * sysdeps/generic/sigwaitinfo.c: Likewise.
1802         * sysdeps/posix/sigwait.c: Likewise.
1803         Reported by Momchil Velikov <velco@fadata.bg>.
1805         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
1806         to match <arpa/inet.h> declaration.
1807         * inet/inet_netof.c (inet_netof): Likewise.
1808         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
1809         Reported by Momchil Velikov <velco@fadata.bg>.
1811         * configure.in: Skip AUTOCONF check under --without-cvs.
1812         * configure: Regenerated.
1814         * posix/Makefile (headers): Add bits/pthreadtypes.h.
1815         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
1816         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
1818 2002-11-24  Andreas Schwab  <schwab@suse.de>
1820         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
1821         with six arguments.
1823 2002-11-19  Jim Meyering  <jim@meyering.net>
1825         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
1826         as `static'.
1827         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
1829 2002-11-23  Roland McGrath  <roland@redhat.com>
1831         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
1832         Just produce hex output for datum sizes.
1834         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
1835         Reported by Luca Barbieri <ldb@ldb.ods.org>.
1837 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
1839         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
1840         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1841         and __unused3 fields.
1842         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
1843         [__WORDSIZE == 32]: Only PPC32 requires __unused1
1844         and __unused2 fields.
1845         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
1846         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1847         __unused3, and __unused4 fields.
1849         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
1850         obtain lowest address for profiling in __monstartup call.
1852 2002-11-21  Roland McGrath  <roland@redhat.com>
1854         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
1855         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
1857         * locale/localeinfo.h (struct locale_data): Revert last change.
1859         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
1860         From Ian Wienand <ianw@gelato.unsw.edu.au>.
1862         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
1863         __NR_pread64 if not defined.
1864         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
1865         From Ian Wienand <ianw@gelato.unsw.edu.au>.
1867 2002-11-21  Roland McGrath  <roland@frob.com>
1869         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
1870         __libc_multiple_libcs here.  Call __setfpucw.
1872 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
1874         * elf/Makefile (tests): Don't run test-arrayX tests for now.
1876         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
1877         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
1878         CLONE_CHILD_*TID flags.
1880 2002-11-20  Andreas Jaeger  <aj@suse.de>
1882         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
1883         We pass struct ucontext on x86-64.
1884         (GET_PC): Adjust.
1885         (GET_FRAME): Adjust.
1886         (GET_STACK): Adjust.
1888 2002-11-20  Roland McGrath  <roland@redhat.com>
1890         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
1891         conditionalize [! DO_VERSIONING] #error.
1893         * scripts/abilist.awk: Grok function descriptor symbols.
1895         * intl/tst-gettext.c (main): Check return values from setlocale.
1896         Add necessary unsetenv's to make LANG=existing-locale check work.
1898         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
1899         so aborted prior runs don't confuse things.
1901         * locale/localeinfo.h (struct locale_data: union locale_data_value):
1902         Use uintptr_t instead of unsigned int for `word' member.
1903         (_NL_CURRENT_WORD): Cast to uint32_t.
1905         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
1906         value.
1908 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
1910         * elf/tls-macros.h: Add IA-64 definitions.
1911         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
1913         * iconv/Makefile (tests): Add tst-iconv4.
1914         * iconv/tst-iconv4.c: New file.
1916         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
1917         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
1918         __GCONV_INCOMPLETE_INPUT.
1919         (ucs4le_internal_loop): Likewise.
1920         (ucs4le_internal_loop_unaligned): Likewise.
1921         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
1922         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
1923         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
1925         * iconv/loop.c (LOOPFCT): First test for empty input then for full
1926         output buffer.
1928         * inet/getnameinfo.c: Use extend_alloca where appropriate.
1929         * sysdeps/posix/getaddrinfo.c: Likewise.
1931         * include/alloca.h (extend_alloca): New define.  Based on stack
1932         direction it'll try to append to the previouls allocated buffer.
1934 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
1936         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
1937         use the same service for AF_INET and AF_INET6.
1939 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
1941         * intl/localealias.c (read_alias_file): Use only about 400 bytes
1942         of stack space instead of 16k.
1944 2002-11-18  Wolfram Gloger  <wg@malloc.de>
1946         * malloc/arena.c
1947         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
1948         nothing if not initialized.  Bug report from Marcus Brinkmann
1949         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1951 2002-11-19  Roland McGrath  <roland@redhat.com>
1953         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
1954         sched_setaffinity.
1956         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
1957         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
1958         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
1959         * configure: Regenerated.
1961 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
1963         * include/dlfcn.h: __libc_dlopen is now a macro calling
1964         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
1965         (__libc_dlopen_mode): New prototype.
1966         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
1967         new parameter.  Store new parameter in mode field of structure passed
1968         to do_dlopen.
1969         (struct do_dlopen_args): Add new field mode.
1970         (do_dlopen): Pass mode from parameter structure to _dl_open.
1972 2002-11-11  Randolf Chung  <tausq@debian.org>
1974         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
1975         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
1976         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
1978         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
1980         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
1981         Set -mdisable-fpregs for this file.
1983 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
1985         * sysdeps/unix/sysv/linux/configure.in:
1986         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
1987         from gcc-3.0 era for backwards compatibility.
1988         * sysdeps/unix/sysv/linux/configure: Regenerate.
1990         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
1991         Define mcontext_t as a sigcontext.
1993 2002-11-18  Roland McGrath  <roland@redhat.com>
1995         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
1996         Free memory in `last_result' if it was used.
1998         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
1999         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
2000         Do the parsing inline instead of copying strings and calling
2001         inet_network, and properly skip all alias names not matching the form.
2003         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
2005 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
2007         * manual/pattern.texi (Wordexp Example): Fix sample code.
2009         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
2010         childs stack which will be loaded into the %esi register.
2012 2002-11-14  Paul Eggert  <eggert@twinsun.com>
2014         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
2015         overflow when skipping the question part and when unpacking aliases.
2017 2002-11-15  Roland McGrath  <roland@redhat.com>
2019         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
2020         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
2021         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
2023 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
2025         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
2026         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
2028 2002-11-15  Roland McGrath  <roland@redhat.com>
2030         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
2031         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
2032         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
2033         (+make-include-of-dep): New canned sequence.
2035         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
2036         From Dmitry V. Levin <ldv@altlinux.org>.
2038 2002-11-14  Roland McGrath  <roland@redhat.com>
2040         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
2041         * inet/herrno.c (__libc_h_errno): Likewise.
2042         * resolv/res_libc.c (__libc_res): Likewise.
2043         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
2044         (__res_state) [! USE___THREAD]: Don't define as weak.
2045         * csu/Versions: Revert last change.
2046         * resolv/Versions: Revert last change.
2048         * Makerules ($(common-objpfx)%.make): New pattern rule.
2049         * tls.make.c: New file.
2050         * Makefile (distribute): Add it.
2052         * sysdeps/generic/errno.c [! USE___THREAD]
2053         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
2054         with compat_symbol so they are not link-time visible.
2055         [! USE___THREAD] (__libc_errno): New alias for errno.
2056         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2057         Add __libc_errno here.
2058         * inet/herrno.c [USE___THREAD]: Use this conditional
2059         in place of [USE_TLS && HAVE___THREAD].
2060         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
2061         (h_errno, _h_errno): Declare these with compat_symbol so they are not
2062         link-time visible.
2063         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
2064         * resolv/res_libc.c [! USE___THREAD]
2065         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
2066         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
2067         (__libc_res): Define as alias for _res.
2068         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2069         Add __libc_h_errno and __libc_res here.
2071 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
2073         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
2074         * resolv/Versions (h_errno, _res): Likewise.
2076 2002-11-14  Roland McGrath  <roland@redhat.com>
2078         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
2079         (%.symlist): Likewise.
2081 2002-11-13  Roland McGrath  <roland@redhat.com>
2083         * scripts/abilist.awk: New file.
2084         * Makefile (distribute): Add it.
2085         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
2086         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
2087         [$(subdir) = elf] (tests): Depend on libc.symlist.
2088         (generated, common-generated): Add those files.
2090         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
2091         * configure: Regenerated.
2092         * config.make.in (OBJDUMP): New variable, substituted by configure.
2094         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
2095         (mallochook, reallochook): Set them up.
2096         (checkhdr): Check HDR->magic2 value.
2097         (freehook): Reset HDR->magic2.
2098         (memalignhook): New static function.
2099         (old_memalign_hook): New static variable.
2100         (mcheck, reallochook): Set __memalign_hook to memalignhook.
2102         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
2103         for the new TCB.
2105 2002-11-13  Andreas Jaeger  <aj@suse.de>
2107         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
2108         attribute.
2109         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2111 2002-11-11  Paul Eggert  <eggert@twinsun.com>
2113         * manual/crypt.texi (Cryptographic Functions): Mention that
2114         the MD5 one-way algorithm is compatible with BSD's.
2116 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
2118         * posix/regex_internal.c (re_string_skip_chars): Also return the last
2119         wide character.
2120         (re_string_reconstruct): Calculate the context by itself when the
2121         offset points out of the valid range.
2122         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
2123         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
2124         (IS_WIDE_WORD_CHAR): New macro.
2125         (IS_WIDE_NEWLINE): New macro.
2127 2002-11-12  Andreas Jaeger  <aj@suse.de>
2129         * sysdeps/x86_64/strchr.S: Don't use one register for two
2130         purposes, this fixes a bug noticed by test-strchr.c.
2132         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
2133         correctly.
2135 2002-11-12  Roland McGrath  <roland@redhat.com>
2137         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
2138         (_G_IO_NO_BACKWARD_COMPAT): Define it.
2140         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
2141         instead of <pt-machine.h>.
2142         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
2143         testandset.
2144         From Ian Wienand <ianw@gelato.unsw.edu.au>.
2146 2002-11-10  Roland McGrath  <roland@redhat.com>
2148         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
2149         Call fputs instead of fwprintf (simpler to follow in debugger).
2151         * crypt/md5-crypt.c: Doc fix.
2153         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
2154         the beginning of generated target commands.
2156         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
2157         dependencies for these in case implicit rule search skipped the
2158         nonexistent source directory.
2159         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
2160         files with $(object-suffixes) as targets too.
2161         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
2162         and a target for it using $(make-target-directory).
2164         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
2166 2002-11-10  Roland McGrath  <roland@frob.com>
2168         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
2169         * sysdeps/generic/bits/pthreadtypes.h: ... here.
2171         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
2172         l_start == 0 and l_len == 1 as we do l_len == 0.
2174 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
2176         * po/da.po: Update from translation team.
2178 2002-11-10  Roland McGrath  <roland@redhat.com>
2180         * config.make.in (includedir): New variable, substituted by configure.
2181         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
2182         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
2184 2002-11-10  Andreas Jaeger  <aj@suse.de>
2186         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
2187         REG_OLDMASK and REG_CR2 to synch with kernel header.
2188         (NGREG): Increase.
2190         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
2191         aliasing problem.
2192         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
2193         * nss/getnssent_r.c (__nss_getent_r): Likewise.
2194         (__nss_setent): Likewise.
2195         (__nss_getent_r): Likewise.
2196         * inet/getnetgrent_r.c (innetgr): Likewise.
2197         (__internal_setnetgrent_reuse): Likewise.
2198         (internal_getnetgrent_r): Likewise.
2199         * inet/ether_hton.c (ether_hostton): Likewise.
2200         * inet/ether_ntoh.c (ether_ntohost): Likewise.
2201         * sunrpc/netname.c (netname2user): Likewise.
2202         * sunrpc/publickey.c (getpublickey): Likewise.
2203         (getsecretkey): Likewise.
2205 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
2207         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
2208         error in range calculation.
2210 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
2212         * string/test-strspn.c (do_test): Ensure zero termination.
2213         * string/test-strpbrk.c (do_test): Likewise.
2214         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
2215         * string/test-strncpy.c (stupid_strncpy): Likewise.
2216         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
2218 2002-10-08  Roland McGrath  <roland@redhat.com>
2220         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
2221         nonzero characters.
2223 2002-09-22  H.J. Lu  <hjl@gnu.org>
2225         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
2226         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
2227         only if __NR_mmap2 is defined.
2229         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
2230         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
2231         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
2232         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
2234 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
2236         * posix/bug-regex13.c (tests): Add new test.
2238         * string/test-strchr.c (stupid_strchr): New function.
2239         (do_random_tests): Make sure the string is zero terminated.
2240         * string/test-strpbrk.c (stupid_strpbrk): New function.
2241         (do_random_tests): Make sure the string is zero terminated.
2242         * string/test-strcmp.c (stupid_strcmp): New function.
2243         (do_random_tests): Make sure the strings are zero terminated.
2244         * string/test-strspn.c (stupid_strspn): New function.
2245         (simple_strspn): Rename rej argument to acc.
2246         (do_random_tests): Make sure the string is zero terminated.
2247         * string/test-strcspn.c (stupid_strcspn): New function.
2248         * string/test-strncpy.c (stupid_strncpy): New function.
2249         * string/test-stpncpy.c (stupid_stpncpy): New function.
2250         * string/test-strncmp.c (stupid_strncmp): New function.
2251         (do_random_tests): Make sure the strings are zero terminated.
2252         * string/test-string.h (impl_t): Change test into long.
2253         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
2255 2002-11-08  Roland McGrath  <roland@redhat.com>
2257         * sysdeps/ia64/elf/configure.in: Add TLS check.
2258         From Ian Wienand <ianw@cse.unsw.edu.au>.
2259         * sysdeps/ia64/elf/configure: Regenerated.
2261 2002-11-07  Roland McGrath  <roland@redhat.com>
2263         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
2264         place of _IO_new_do_write.
2265         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
2266         #undef before versioned_symbol use.
2268 2002-11-07  Richard Henderson  <rth@redhat.com>
2270         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
2271         * configure: Regenerated.
2272         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
2273         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
2274         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
2275         _dl_fini via gp-relative relocations.
2276         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
2278         * elf/tls-macros.h: Add alpha versions.
2279         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
2280         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
2281         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
2282         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
2283         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2284         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2285         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2286         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2287         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2288         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2289         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
2290         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2291         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2292         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2293         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
2294         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
2295         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2296         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2298         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
2299         Kill argument registers across the inline syscall.
2301         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
2303         * linuxthreads/sysdeps/alpha/tls.h: New file.
2304         * sysdeps/alpha/dl-tls.h: New file.
2306 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
2308         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
2309         (gmon_initializer): New function.
2310         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
2311         __gmon_start__ here.  Call it from gmon_initializer() instead.
2313 2002-03-12  H.J. Lu  <hjl@gnu.org>
2315         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
2316         tst-array2, and tst-array3.
2317         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
2318         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
2319         ($(objpfx)tst-array1.out): New target.
2320         ($(objpfx)tst-array2): Likewise.
2321         ($(objpfx)tst-array2.out): Likewise.
2322         ($(objpfx)tst-array3.out): Likewise.
2323         * elf/tst-array1.c: New file.
2324         * elf/tst-array1.exp: Likewise.
2325         * elf/tst-array2.c: Likewise.
2326         * elf/tst-array2dep.c: Likewise.
2327         * elf/tst-array2.exp: Likewise.
2328         * elf/tst-array3.c: Likewise.
2330 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
2332         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
2333         Don't add L->l_addr to array entry values.
2335 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
2337         * string/test-string.h: New file.
2338         * string/test-strlen.c: New file.
2339         * string/test-string.h: New file.
2340         * string/test-strcmp.c: New file.
2341         * string/test-strchr.c: New file.
2342         * string/test-strrchr.c: New file.
2343         * string/test-strcpy.c: New file.
2344         * string/test-stpcpy.c: New file.
2345         * string/test-strncpy.c: New file.
2346         * string/test-stpncpy.c: New file.
2347         * string/test-strpbrk.c: New file.
2348         * string/test-strcspn.c: New file.
2349         * string/test-strspn.c: New file.
2350         * string/test-strcat.c: New file.
2351         * string/test-strncmp.c: New file.
2352         * string/test-memchr.c: New file.
2353         * string/test-memcmp.c: New file.
2354         * string/test-memset.c: New file.
2355         * string/test-memcpy.c: New file.
2356         * string/test-mempcpy.c: New file.
2357         * string/test-memmove.c: New file.
2358         * string/Makefile (strop-tests): New variable.
2359         (tests): Add strop-tests.
2360         (distribute): Add test-string.h.
2362 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
2364         * posix/regcomp.c: Use tabs instead of spaces.
2365         * posix/regexec.c: Likewise.
2366         * posix/regex_internal.h: Likewise.
2368         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
2370 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
2372         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
2373         here.
2374         (regcomp): Don't set can_be_null here.
2375         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
2376         (re_compile_internal): Clear can_be_null, set regs_allocated.
2378         * posix/regcomp.c (re_set_fastmap): New function.
2379         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
2380         COMPLEX_BRACKET check.
2381         * posix/regexec.c (re_search_internal): Optimize searching with
2382         fastmap.  Call re_string_reconstruct even if match_first is
2383         smaller than raw_mbs_idx.
2385 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
2387         * posix/regcomp (free_dfa_content): Use free_state.
2388         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
2389         pointers in case that realloc failed.
2390         (re_node_set_merge): Likewise.
2391         (register_state): Likewise.
2392         (create_newstate_common): Invoke memory release functions in case of
2393         error conditions.
2394         (create_ci_newstate): Likewise.
2395         (create_cd_newstate): Likewise.
2396         (free_state): New function.
2397         * posix/regexec.c (re_search_internal): Invoke memory release
2398         functions in case of error conditions.
2399         (sift_states_backward): Likewise.
2400         (merge_state_array): Likewise.
2401         (add_epsilon_src_nodes): Likewise.
2402         (sub_epsilon_src_nodes): Likewise.
2403         (search_subexp): Likewise.
2404         (sift_states_bkref): Likewise.
2405         (transit_state_sb): Likewise.
2406         (transit_state_mb): Likewise.
2407         (transit_state_bkref_loop): Likewise.
2408         (group_nodes_into_DFAstates): Likewise.
2409         (push_fail_stack): Don't edit pointers in case that realloc failed.
2410         (extend_buffers): Likewise.
2411         (match_ctx_add_entry): Likewise.
2413 2002-11-06  Roland McGrath  <roland@redhat.com>
2415         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
2416         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
2418         * configure.in: Add checks on as and ld for binutils 2.13 or later.
2419         * configure: Regenerated.
2421 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
2423         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
2424         If re_compile_internal failed free fastmap buffer.
2425         (free_dfa_content): Broken out of regfree function.  Frees all dfa
2426         related data.
2427         (regfree): Add free_dfa_content.
2428         (re_compile_internal): If any of the called functions fails free
2429         all dfa related memory.
2431 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
2433         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
2434         warnings from the kernel headers.
2436 2002-11-05  Roland McGrath  <roland@redhat.com>
2438         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
2439         From Johannes Stezenbach <js@convergence.de>.
2441         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
2442         #errlist-compat magic comment to give 123 as size.
2443         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
2444         (libc: GLIBC_2.2): ... here.
2445         (libc: GLIBC_2.3): Likewise.
2447 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
2449         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
2450         which happens at the beginning so that we can unload modules in
2451         __libc_freeres.
2453 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2455         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
2456         under [__USE_MISC || _ASM].
2458         * elf/elf.h: Remove the obsolete SH TLS relocations.
2460 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
2462         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
2464 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
2467         __NR_pread64 and __NR_pwrite64.
2468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2469         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
2470         and __NR_pwrite64.
2471         Revert change to use INLINE_SYSCALL.
2472         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2473         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2474         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2475         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
2476         INLINE_SYSCALL.
2477         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2480         Update clobber list and add a comment about the syscall ABI.
2482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
2483         s_pwrite64, s_ftruncate, s_truncate): Re-add.
2485 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
2487         * iconv/gconv_dl.c (free_mem): Clear loaded.
2488         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
2489         cleanup if any.
2491 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
2493         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
2495         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
2496         as old code without locking.  _IO_seekoff calls this function after
2497         locking the stream.
2498         * libio/ioseekpos.c: Likewise for _IO_seekpos.
2499         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
2500         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
2501         prototypes.
2502         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
2503         of _IO_seekoff_internal.
2504         (_IO_rewind): Likewise.
2505         * libio/ioftell.c: Likewise.
2506         * libio/ftello.c: Likewise.
2507         * libio/ftello64.c: Likewise.
2508         * libio/iofgetpos.c: Likewise.
2509         * libio/iofgetpos64.c: Likewise.
2510         * libio/oldiofgetpos.c: Likewise.
2511         * libio/oldiofgetpos64.c: Likewise.
2512         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
2513         _IO_seekpos_internal.
2514         * libio/iofsetpos64.c: Likewise.
2515         * libio/oldiofsetpos.c: Likewise.
2516         * libio/oldiofsetpos64.c: Likewise.
2518 2002-11-04  Roland McGrath  <roland@redhat.com>
2520         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
2521         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
2522         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2523         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
2524         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2525         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2526         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2527         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
2528         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2529         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
2531         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
2532         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
2533         Remove these, no longer used.
2535 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
2538         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
2539         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
2540         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
2541         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
2542         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
2543         syscall stubs.
2545         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
2546         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2547         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
2548         and __NR_pread.
2549         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2550         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
2551         and __NR_pwrite.
2552         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2554 2002-11-03  Roland McGrath  <roland@redhat.com>
2556         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
2557         `_dl_tls_static_used'.
2558         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
2559         (__libc_setup_tls): Initialize it.  Let the initial value of
2560         _dl_tls_static_size indicate some surplus space in the computed value.
2561         * elf/dl-open.c (_dl_tls_static_size): New variable.
2562         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
2563         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
2564         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
2565         (CHECK_STATIC_TLS): Use it.
2566         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
2567         closed objects occupied a trailing contiguous chunk of static TLS area.
2569 2002-10-18  Bruno Haible  <bruno@clisp.org>
2571         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
2573 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
2575         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
2576         _wide_data->_IO_read_end if adjustment can be made in the current
2577         buffer.
2579         * sysdeps/unix/sysv/linux/fexecve.c: New file.
2581         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
2582         wide oriented streams are used.
2584         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
2585         service hasn't been used [PR libc/4744].
2587         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
2588         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
2590         * manual/examples/dir.c: Don't include <stddef.h>.
2591         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
2592         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
2594 2002-11-02  H.J. Lu  <hjl@gnu.org>
2596         * stdio-common/reg-printf.c: Include <stddef.h>.
2598 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
2600         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
2602         * po/ca.po: Update from translation team.
2603         * po/es.po: Likewise.
2605         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
2606         is defined write out memory map.
2607         * sysdeps/unix/sysv/linux/segfault.c: New file.
2609 2002-11-02  Roland McGrath  <roland@redhat.com>
2611         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
2612         pointers that can alias.
2613         Reported by Daniel Jacobowitz <drow@mvista.com>.
2615         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
2617 2002-11-02  Roland McGrath  <roland@redhat.com>
2619         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
2620         description to be clearer and to say that *RESULT is set to ENTRY.
2622 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
2624         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
2625         dests_ch arrays together.  Alloca or malloc dest_states,
2626         dest_states_word and dest_states_nl arrays together.  Free memory on
2627         error exit.
2629 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2631         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
2632         and current_saltbits.
2634 2002-11-02  Roland McGrath  <roland@redhat.com>
2636         * stdio-common/reg-printf.c: Include <stdlib.h>.
2638 2002-11-02  H.J. Lu  <hjl@gnu.org>
2640         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
2641         caller to EXTRA instead of execve.
2643 2002-11-01  Roland McGrath  <roland@redhat.com>
2645         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
2646         in place of [!(USE_TLS && HAVE___THREAD)].
2647         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
2649 2002-10-31  Roger Sayle  <roger@eyesopen.com>
2651         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
2652         New macros.
2653         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2655         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
2656         without defining FP_ROUNDMODE.
2658 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
2660         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
2661         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
2662         declare_symbol.
2663         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
2664         (OLD_SIGLIST_SIZE): Define.
2665         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
2666         (OLD_SIGLIST_SIZE): Define.
2667         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
2669 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
2671         * sysdeps/ia64/strncpy.S: Fix recovery code.
2673 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
2675         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
2676         New macros.
2677         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
2678         text_set_element.
2679         * elf/dl-libc.c (free_mem): Likewise.
2680         * iconv/gconv_conf.c (free_mem): Likewise.
2681         * iconv/gconv_db.c (free_mem): Likewise.
2682         * iconv/gconv_dl.c (free_mem): Likewise.
2683         * iconv/gconv_cache.c (free_mem): Likewise.
2684         * intl/finddomain.c (free_mem): Likewise.
2685         * intl/dcigettext.c (free_mem): Likewise.
2686         * locale/setlocale.c (free_mem): Likewise.
2687         * misc/fstab.c (fstab_free): Likewise.
2688         * nss/nsswitch.c (free_mem): Likewise.
2689         * posix/regcomp.c (free_mem): Likewise.
2690         * resolv/gai_misc.c (free_res): Likewise.
2691         * stdlib/fmtmsg.c (free_mem): Likewise.
2692         * sunrpc/clnt_perr.c (free_mem): Likewise.
2693         * sysdeps/generic/setenv.c (free_mem): Likewise.
2694         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
2695         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
2696         * time/tzset.c (free_mem): Likewise.
2697         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
2698         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
2699         * malloc/set-freeres.c (__libc_freeres): Likewise.
2701         * login/getutent.c: Include stdlib.h instead of stddef.h.
2702         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2703         (__getutent): Allocate buffer the first time it is run.
2704         * login/getutid.c: Include stdlib.h instead of stddef.h.
2705         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2706         (__getutid): Allocate buffer the first time it is run.
2707         * login/getutline.c: Include stdlib.h instead of stddef.h.
2708         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2709         (__getutline): Allocate buffer the first time it is run.
2710         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
2711         (mtrace): Allocate malloc_trace_buffer.
2712         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
2713         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
2714         * string/strerror.c: Include libintl.h and errno.h.
2715         (buf): New variable.
2716         (strerror): Only allocate buffer if actually needed (unknown error).
2717         * time/tzfile.c (transitions): Add libc_freeres_ptr.
2718         (freeres): Remove.
2720 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
2722         * include/libc-symbols.h (libc_freeres_ptr): New macro.
2723         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
2724         symbol_set_define.
2725         (__libc_freeres): Free all pointers in that section.
2726         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
2727         commands when creating .lds script.
2728         (LDSEDCMD-c.so): New variable.
2729         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
2730         (rcmd_af): Use strdup to allocate ahostbuf.
2731         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
2732         (rexec_af): Use strdup to allocate ahostbuf.
2733         * stdio-common/reg-printf.c (printf_funcs): Remove.
2734         (__printf_arginfo_table): Change into printf_arginfo_function **.
2735         Add libc_freeres_ptr.
2736         (__register_printf_function): Allocate __printf_arginfo_table
2737         and __printf_function_table the first time it is called.
2738         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
2739         printf_arginfo_function **.
2740         (parse_one_spec): Add __builtin_expect.
2741         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
2742         (free_mem): Remove.
2743         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
2744         (free_mem): Remove.
2745         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
2746         (string_space, map): Add libc_freeres_ptr.
2747         (free_mem): Remove.
2748         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
2749         (free_mem): Remove.
2750         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
2751         (free_mem): Remove.
2752         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
2753         (buffer): Add libc_freeres_ptr.
2754         (free_mem): Remove for _LIBC.
2755         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
2756         (free_mem): Remove.
2757         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
2758         (free_mem): Remove.
2759         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
2760         (free_mem): Remove.
2761         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
2762         (free_mem): Remove.
2763         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
2764         (free_mem): Remove.
2765         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
2766         (free_mem): Remove.
2767         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
2768         libc_freeres_ptr.
2769         (free_mem): Remove.
2770         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
2771         libc_freeres_ptr.
2772         (free_mem): Remove.
2774 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
2776         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
2777         instead of duplicating the whole function in libc.
2779 2002-10-31  Roland McGrath  <roland@redhat.com>
2781         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
2782         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
2784 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
2786         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
2787         32bit-predefine when creating .new32 list and -U for each
2788         32bit-predefine when creating .new64 list.
2789         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
2791 2002-10-29  Andreas Schwab  <schwab@suse.de>
2793         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
2794         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
2796 2002-10-25  Roland McGrath  <roland@redhat.com>
2798         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
2799         * sysdeps/unix/sysv/linux/configure: Regenerated.
2801         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
2802         _dl_starting_up decl.
2804 2002-10-20  H.J. Lu  <hjl@gnu.org>
2806         * sysdeps/unix/sysv/linux/configure.in: Don't check
2807         /lib/modules/`uname -r`/build/include for kernel headers if
2808         cross compiling.
2809         * sysdeps/unix/sysv/linux/configure: Regenerated.
2811 2002-10-25  Roland McGrath  <roland@redhat.com>
2813         * math/math.h (M_LOG2El): Correct the value.
2814         From Stephen L Moshier <steve@moshier.net>.
2816         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
2817         conditional from __libc_multiple_libcs access.  Remove kludge for weak
2818         symbol access with old compilers we no longer support.
2819         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
2820         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
2822 2002-10-25  Roland McGrath  <roland@redhat.com>
2824         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
2825         implement SV_RESETHAND by translating it to SA_RESETHAND.
2827 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
2829         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
2830         type on ELF64 platforms.
2832 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
2834         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
2836         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
2838 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
2840         * elf/dl-misc.c: Include <sysdep.h>.
2841         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
2843         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
2844         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2845         (INLINE_SYSCALL): Use that.
2846         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
2847         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2848         (INLINE_SYSCALL): Use that.
2849         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
2850         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2851         (INLINE_SYSCALL): Use that.
2852         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
2853         dl-sysdep.h.
2854         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
2855         (__INTERNAL_SYSCALL_STRING): Define.
2856         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
2857         dl-sysdep.h.
2858         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
2859         (__INTERNAL_SYSCALL_STRING): Define.
2860         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
2861         __SYSCALL_STRING to inline_syscall*.
2862         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
2863         New macros.
2864         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
2865         inline_syscall4, inline_syscall5, inline_syscall6): Add string
2866         argument.
2868 2002-10-24  Roland McGrath  <roland@redhat.com>
2870         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
2871         * sysdeps/unix/sysv/linux/init-first.c: Not here.
2872         * sysdeps/powerpc/elf/libc-start.c: Or here.
2873         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
2874         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
2875         * sysdeps/unix/sysv/aix/init-first.c: Or here.
2876         * sysdeps/generic/libc-start.c: Or here.
2877         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
2878         access with [! SHARED].
2879         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
2881         * libio/bug-wfflush.c: New file.
2882         * libio/Makefile (tests): Add bug-wfflush.
2884 2002-10-23  Roland McGrath  <roland@redhat.com>
2886         * stdio-common/tst-fphex.c: New file.
2887         * stdio-common/Makefile (tests): Add tst-fphex.
2888         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
2889         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
2890         chars always before the value digits.
2891         Reported by James Antill <james.antill@redhat.com>.
2893 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
2895         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
2896         (free_mem): New function.
2897         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
2898         if not cross compiling.
2899         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
2900         (bug-regex14-ENV): Set.
2901         (bug-regex14-mem): New target.
2902         * posix/bug-regex14.c: New file.
2904 2002-10-23  Roland McGrath  <roland@redhat.com>
2906         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
2907         target, so we don't touch it when the link fails.
2909         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
2910         Check for the result overflowing off_t and fail with EOVERFLOW.
2911         * libio/ioftell.c (_IO_ftell): Likewise.
2912         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
2914         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
2915         use a temporary timeval on the stack for gettimeofday and copy it.
2916         * login/logout.c (logout): Likewise.
2917         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
2919         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
2920         Use __SWORD_TYPE instead of int for member types.
2921         (struct statfs64): Likewise.
2922         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
2923         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
2924         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
2925         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
2926         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
2928         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
2929         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
2930         (ST_NODIRATIME): Restore fixed value of 2048.
2931         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
2932         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
2934         Rearranged <bits/types.h> definitions to reduce duplication.
2935         * sysdeps/generic/bits/types.h: Rewritten, using macros from
2936         <bits/wordsize.h> and new header <bits/typesizes.h>.
2937         * posix/Makefile (headers): Add bits/typesizes.h here.
2938         * sysdeps/generic/bits/typesizes.h: New file.
2939         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
2940         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
2941         * sysdeps/mach/hurd/bits/typesizes.h: New file.
2942         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
2943         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
2944         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
2945         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
2946         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
2947         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
2948         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
2949         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
2950         <bits/pthreadtypes.h> here, not in <bits/types.h>.
2951         * signal/signal.h: Likewise.
2953         * streams/stropts.h: Include <bits/xtitypes.h>.
2954         * streams/Makefile (headers): Add bits/xtitypes.h here.
2955         * sysdeps/generic/bits/xtitypes.h: New file.
2956         * sysdeps/s390/bits/xtitypes.h: New file.
2957         * sysdeps/ia64/bits/xtitypes.h: New file.
2958         * sysdeps/x86_64/bits/xtitypes.h: New file.
2960         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
2961         * sysdeps/generic/bits/ipctypes.h: New file.
2962         * sysdeps/mips/bits/ipctypes.h: New file.
2963         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
2964         * sysdeps/gnu/bits/msq.h: Likewise.
2965         * sysvipc/sys/ipc.h: Likewise.
2967 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
2969         * elf/dl-load.c (struct filebuf): For buf element to have the
2970         alignment of ElfXX_Ehdr since this is what will be stored in it.
2972 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
2974         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
2975         into pointer to locrec_offset.
2976         (add_locale_to_archive): Adjust callers.  Free normalized_name right
2977         before returning, not immediately after add_locale, pass it to
2978         add_alias if not NULL instead of name.  Rename second normalized_name
2979         occurence to nnormalized_codeset_name.
2981         * locale/programs/locarchive.c (enlarge_archive): Make sure
2982         string_size is always a multiple of 4.
2983         Reported by Andreas Schwab <schwab@suse.de>.
2985 2002-10-21  Andreas Schwab  <schwab@suse.de>
2987         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
2988         caller to EXTRA instead of execve, since the latter has a
2989         higher-priority implementation in linuxthreads.
2991 2002-10-21  Roland McGrath  <roland@redhat.com>
2993         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
2994         slotinfo list's len member to the proper size, not just 1.
2995         Initialize static_map.l_tls_initimage.
2997         * elf/dl-open.c (dl_open_worker): Fix loop searching for
2998         dtv_slotinfo_list element containing new modules' l_tls_modid.
3000         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
3001         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
3002         * elf/Makefile (tests): Add tst-tls9.
3003         (tests-static): Add tst-tls9-static.
3004         (tst-tls9-static-ENV): New variable.
3005         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
3007         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
3008         modids used by partially loaded modules being closed can't be known.
3010 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
3012         * posix/Makefile: Add a test case for the bug reported by Aharon
3013         Robbins <arnold@skeeve.com>.
3014         * posix/bug-regex13.c: New file.
3015         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
3017 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
3019         * csu/gmon-start.c: Pretty printing.
3021 2002-10-19  Art Haas  <ahaas@neosoft.com>
3023         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
3024         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
3025         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
3026         * configure: Regenerated.
3028 2002-10-19  Roland McGrath  <roland@redhat.com>
3030         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
3031         and then set $subdirs directly, because the new Autoconf breaks
3032         compatibility in every way imaginable and insists on whining
3033         about usage that worked since the dawn of time.
3034         * configure: Regenerated.
3036         * configure: Regenerated (using Autoconf 2.54).
3037         * sysdeps/alpha/elf/configure: Likewise.
3038         * sysdeps/generic/configure: Likewise.
3039         * sysdeps/i386/elf/configure: Likewise.
3040         * sysdeps/ia64/elf/configure: Likewise.
3041         * sysdeps/mach/hurd/configure: Likewise.
3042         * sysdeps/mach/configure: Likewise.
3043         * sysdeps/unix/configure: Likewise.
3044         * sysdeps/unix/common/configure: Likewise.
3045         * sysdeps/unix/sysv/aix/configure: Likewise.
3046         * sysdeps/unix/sysv/linux/configure: Likewise.
3047         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
3048         * sysdeps/x86_64/elf/configure: Likewise.
3050         * config.make.in: Nix completely-soft nonsense.
3051         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
3052         of machine directories instead of fpu subdirectory.
3053         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
3054         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
3055         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
3056         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
3057         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
3058         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
3059         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
3060         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
3061         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
3062         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
3063         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
3064         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
3065         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
3066         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
3067         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
3068         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
3069         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
3070         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
3071         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
3072         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
3073         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
3074         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
3075         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
3076         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
3077         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
3078         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
3079         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
3080         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
3081         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
3082         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
3083         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
3084         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
3085         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
3086         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
3087         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
3088         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
3089         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
3090         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
3091         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
3092         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
3094 2002-10-19  Bruno Haible  <bruno@clisp.org>
3096         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
3098 2002-10-18  Roland McGrath  <roland@redhat.com>
3100         * io/Makefile (routines): Add lchmod.
3101         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
3102         * sysdeps/generic/lchmod.c: New file.
3103         * sysdeps/mach/hurd/lchmod.c: New file.
3104         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
3106 2002-10-18  Art Haas  <ahaas@neosoft.com>
3108         * configure.in: Remove remaining AC_FD_CC macros, and replace
3109         AC_FD_MSG with AS_MESSAGE_FD.
3111 2002-10-18  Roland McGrath  <roland@redhat.com>
3113         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
3114         typos: VALUE -> FINALADDR.
3116         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
3117         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
3118         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
3119         (inline_syscall6): Move these macros ...
3120         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
3122         * configure.in (libc_link_dests, libc_link_sources): Remove these
3123         variables and the AC_LINK_FILES call.
3125         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
3126         change to put new symbols here instead of in GLIBC_2.2.
3127         * sysdeps/powerpc/Subdirs: Move this file ...
3128         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
3130 2002-10-07  Roland McGrath  <roland@redhat.com>
3132         * sysdeps/generic/bits/time.h: Replaced with contents of the
3133         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
3134         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
3135         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
3136         macros is ok even for architectures that don't now implement them.
3137         * sysdeps/mach/hurd/bits/time.h: File removed.
3138         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
3139         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
3140         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
3141         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
3142         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
3144 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
3146         * configure.in: Replace obsolete AC_OUTPUT syntax with
3147         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
3149         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
3150         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
3152         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
3153         * sysdeps/alpha/elf/configure.in: Likewise.
3154         * sysdeps/i386/elf/configure.in: Likewise.
3155         * sysdeps/mach/hurd/configure.in: Likewise.
3156         * sysdeps/x86_64/elf/configure.in: Likewise.
3158         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
3160         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
3161         * sysdeps/generic/configure.in: Likewise.
3162         * sysdeps/i386/elf/configure.in: Likewise.
3163         * sysdeps/ia64/elf/configure.in: Likewise.
3164         * sysdeps/mach/configure.in: Likewise.
3165         * sysdeps/mach/hurd/configure.in: Likewise.
3166         * sysdeps/unix/configure.in: Likewise.
3167         * sysdeps/unix/common/configure.in: Likewise.
3168         * sysdeps/unix/sysv/aix/configure.in: Likewise.
3169         * sysdeps/unix/sysv/linux/configure.in: Likewise.
3170         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
3171         * sysdeps/x86_64/elf/configure.in: Likewise.
3173         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
3174         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
3175         that it's obvious when extra autoconf machinery is being dragged in.
3177 2002-10-18  Roland McGrath  <roland@redhat.com>
3179         * configure.in: Remove bogus echo included in
3180         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
3181         * configure: Regenerated.
3183 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
3185         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
3186         (statfs_filesize_max): New function.
3187         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
3188         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
3189         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
3190         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
3191         statfs_filesize_max.
3192         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3193         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
3194         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
3196 2002-10-17  Roland McGrath  <roland@redhat.com>
3198         * configure.in (MIG): Just AC_SUBST it here.
3199         * configure: Regenerated.
3200         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
3201         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
3202         * sysdeps/mach/configure: Regenerated.
3204         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
3205         and AC_PROVIDE([_AS_CR_PREPARE]).
3207         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
3208         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
3210         * elf/dl-support.c: Move _dl_tls_* variables to ...
3211         * sysdeps/generic/libc-tls.c: ... here.
3213         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
3214         allow IDX to be one past the current last slotinfo entry.
3215         (_dl_close): Pass IMAP->l_init_called for that parameter.
3217 2002-10-07  Andreas Schwab  <schwab@suse.de>
3219         * aclocal.m4: Fix for autoconf 2.53.
3220         * configure.in: Likewise.  Require autoconf 2.53.
3222 2002-10-08  Richard Henderson  <rth@redhat.com>
3224         * soft-fp/op-4.h: Handle carry correctly in
3225         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
3226         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
3227         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
3229 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
3231         * configure.in: Compute completely-soft.
3232         * config.make.in: Make completely-soft available to sub-makes.
3233         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
3234         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
3235         fe_nomask to libm-support.
3236         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
3237         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
3238         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
3239         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
3240         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
3241         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
3242         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
3243         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
3244         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
3245         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
3246         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
3247         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
3248         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
3249         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
3250         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
3251         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
3252         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
3253         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
3254         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
3255         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
3256         __sim_round_mode.
3257         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
3258         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
3259         FP_HANDLE_EXCEPTIONS.
3260         Define FP_ROUNDMODE.
3261         Redefine FP_* macros to correspond to the FE_* bit positions.
3262         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
3263         Define externs for __sim_exceptions, __sim_disabled_exceptions,
3264         __sim_round_mode, __simulate_exceptions.
3265         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
3266         * sysdeps/powerpc/bits/fenv.h: ...to here.
3268 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
3270         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3271         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
3272         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
3273         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
3274         __builtin_expect.
3276 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
3278         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
3279         __libc_res_nsend): New prototypes.
3280         * resolv/res_query.c (QUERYSIZE): Define.
3281         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
3282         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
3283         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
3284         res_nsend, pass answerp.
3285         (res_nquery): Changed into wrapper around __libc_res_nquery.
3286         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
3287         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
3288         instead of the non-__libc_ variants, pass them answerp.
3289         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
3290         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
3291         Added answerp argument.  Call __libc_res_nquery instead of
3292         res_nquery, pass answerp.
3293         (res_nquerydomain): Changed into wrapper around
3294         __libc_res_nquerydomain.
3295         * resolv/res_send.c: Include sys/ioctl.h.
3296         (MAXPACKET): Define.
3297         (send_vc): Change arguments.  Reallocate answer buffer if it is
3298         too small.
3299         (send_dg): Likewise.
3300         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
3301         Reallocate answer buffer if it is too small and hooks are in use.
3302         Adjust calls to send_vc and send_dg.
3303         (res_nsend): Changed into wrapper around __libc_res_nsend.
3304         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
3305         just 1K answer buffer on the stack, use __libc_res_nsearch instead
3306         of res_nsearch.
3307         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
3308         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3309         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
3310         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
3311         (gethostbyaddr): Similarly with __libc_res_nquery.
3312         * resolv/Versions (libresolv): Export __libc_res_nquery and
3313         __libc_res_nsearch at GLIBC_PRIVATE.
3315 2002-10-17  Roland McGrath  <roland@redhat.com>
3317         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
3318         * configure: Regenerated.
3320         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
3321         before performing the reloc, not after.
3322         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3324 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
3326         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
3327         * locale/programs/linereader.c (lr_open): Likewise.
3328         * locale/programs/charmap-dir.c (charmap_open): Likewise.
3329         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
3331 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
3333         * posix/bug-regex11.c: Add a test case for the bug reported by
3334         Paolo Bonzini <bonzini@gnu.org>.
3335         * posix/regexec.c (sift_states_bkref): Use correct destination of
3336         the back reference.
3338 2002-10-17  Roland McGrath  <roland@redhat.com>
3340         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
3341         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
3342         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
3343         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
3344         Call it after performing TPOFF relocs.
3345         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3346         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3347         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
3349         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
3350         when closing a partially-initialized object.
3352         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
3353         instead of _dl_fatal_printf when we see PT_TLS.
3355         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
3356         instead of $(libof-$<).
3358 2002-10-16  Roland McGrath  <roland@redhat.com>
3360         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
3361         instead of += to append, to be sure $(lib) gets expanded at defn time.
3362         (libof-$(cpp-src)): New variable, define this instead.
3363         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
3364         (lib): Don't use override.
3365         (CPPFLAGS-$(lib)): New variable, put -D's here.
3366         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
3367         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
3368         LIB found by $(libof-*) for basename, target, or source.
3369         * Makerules (CPPFLAGS-nonlib): New variable.
3370         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
3371         * locale/Makefile (lib): Likewise.
3372         * sunrpc/Makefile (lib): Likewise.
3374         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
3375         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
3376         * sysdeps/unix/sysv/linux/pathconf.h: New file.
3377         (statfs_link_max): New function, guts from fpathconf.c.
3378         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
3379         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3380         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
3381         to use the linux/pathconf.c code by #include rather than duplication.
3382         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
3384 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
3386         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3387         Use __libc_errno only for libc itself.
3389 2002-10-16  Andreas Jaeger  <aj@suse.de>
3391         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
3393 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
3395         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3396         Use __libc_errno only for libc itself.
3398 2002-10-15  Roland McGrath  <roland@redhat.com>
3399             Jakub Jelinek  <jakub@redhat.com>
3401         * sysdeps/unix/sysv/linux/Makefile
3402         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
3403         sparc/Makefile to produce a bi-arch file as needed.
3404         That's now parameterized by the variable $(64bit-predefine).
3405         Use LC_ALL=C for `comm' commands in that rule.
3406         No longer conditional on [$(no_syscall_list_h)].
3407         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
3408         (64bit-predefine): New variable.
3409         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
3410         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3411         * sysdeps/unix/sysv/linux/powerpc/Makefile
3412         (64bit-predefine): New variable.
3414 2002-10-15  Roland McGrath  <roland@redhat.com>
3416         * sysdeps/unix/sysv/linux/Makefile
3417         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
3419         * login/utmp-private.h: Declare __libc_utmp_lock.
3420         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
3421         and call __libc_utmp_jump_table functions directly, instead of using
3422         __setutent et al.
3424         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
3425         * sysdeps/unix/sysv/linux/configure: Regenerated.
3427         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
3428         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3429         Use int32_t for ll_time.
3430         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3431         Use int32_t instead of long int for ut_session.
3432         Use an anonymous struct with 32-bit fields for ut_tv.
3433         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
3434         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
3435         here as in utmp.h for `struct utmp'.
3436         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
3437         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
3438         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
3439         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
3440         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
3441         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
3443         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
3444         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
3445         All the following files were identical or equivalent to it.
3446         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
3447         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
3448         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
3449         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
3450         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
3451         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
3452         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
3453         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
3454         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
3455         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
3457         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
3458         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
3459         Other than the previously incorrect sign of msg_iovlen, this is a
3460         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
3461         match their layouts as well, so the following are now identical to it.
3462         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
3463         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
3464         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
3465         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
3466         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
3468 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
3470         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
3471         Define for 2.4+ kernels.
3473         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
3474         are known to have the vfork syscall.  Don't confuse the CPUs
3475         branch prediction unit by jumping to the return address.
3477         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
3478         support for reiserfs and xfs.
3480         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
3481         XFS link count.
3482         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
3483         and XFS_LINK_MAX.
3484         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
3486 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
3488         * include/libc-symbols.h (attribute_tls_model_ie): Define.
3489         * include/errno.h (errno): Define to __libc_errno in libc.so.
3490         Add attribute_tls_model_ie.
3491         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
3492         Add attribute_tls_model_ie.
3493         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
3494         attribute_tls_model_ie.
3495         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
3496         (h_errno): Define.
3497         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
3498         (_res): Define.
3499         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
3500         attribute_tls_model_ie.
3501         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
3502         __thread.
3503         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
3504         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
3505         __libc_errno in USE___THREAD case.
3506         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3507         Likewise.
3508         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
3509         __attribute__((tls_model (""))).
3510         * configure: Rebuilt.
3511         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
3513 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
3515         * timezone/asia: Update from tzdata2002d.
3516         * timezone/australasia: Likewise.
3517         * timezone/iso3166.tab: Likewise.
3518         * timezone/southamerica: Likewise.
3519         * timezone/zone-tab: Likewise.
3521 2002-10-15  Roland McGrath  <roland@redhat.com>
3523         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
3524         Adjust TCB pointer before calling free, so we get the whole block.
3526 2002-10-14  Roland McGrath  <roland@redhat.com>
3528         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
3529         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
3530         extern using attribute_hidden instead of static, avoids warning.
3532 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
3534         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
3535         * sysdeps/unix/sysv/linux/configure: Rebuilt.
3537 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
3539         * po/sv.po: Update from translation team.
3541 2002-10-12  H.J. Lu  <hjl@gnu.org>
3543         * sunrpc/thrsvc.c (PROCQUIT): New.
3544         (struct rpc_arg): New.
3545         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
3546         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
3547         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
3548         (main): Modified for struct rpc_arg *.
3550 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
3552         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
3554 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
3556         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
3557         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
3558         in ld.so even if __thread is supported.
3560 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
3562         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
3563         Add hack to prevent the compiler from clobbering the signal context.
3564         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
3565         Likewise.
3566         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
3567         Likewise.
3569 2002-10-14  Andreas Jaeger  <aj@suse.de>
3571         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
3572         Guido Guenther <agx@sigxcpu.org>.
3574 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
3576         * po/sk.po: Update from translation team.
3578 2002-09-26  Roland McGrath  <roland@redhat.com>
3580         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
3581         dynamic string tag.
3582         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
3583         DL_DST_LIB based on $(slibdir).
3585 2002-10-13  Roland McGrath  <roland@frob.com>
3587         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
3589         * sysdeps/mach/hurd/getresuid.c: New file.
3590         * sysdeps/mach/hurd/getresgid.c: New file.
3591         * sysdeps/mach/hurd/setresuid.c: New file.
3592         * sysdeps/mach/hurd/setresgid.c: New file.
3594         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
3595         setresgid): Declare them.
3596         * NEWS: Mention it.
3597         * include/unistd.h
3598         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
3599         add libc_hidden_proto.
3600         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
3601         getresuid, getresgid, setresuid, setresgid here.
3602         * Versions.def (libc): Define GLIBC_2.3.2 set.
3603         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
3604         Add libc_hidden_def.
3605         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
3606         * sysdeps/generic/setresgid.c: New file.
3607         * sysdeps/generic/setresuid.c: New file.
3608         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3609         (sysdep_routines): Don't add getresuid and getresgid here.
3610         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
3611         (sysdep_routines): Don't add setresuid and setresgid here.
3612         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
3613         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
3614         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3615         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
3616         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3617         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3618         * posix/Makefile (routines): Add them all here instead.
3619         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
3620         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
3621         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
3622         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
3623         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
3624         [! __NR_setresuid]: Include generic file.
3625         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
3626         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
3627         [! __NR_setresuid]: Include generic file.
3628         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
3629         Caller is - now, not EXTRA.
3630         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3631         (setresuid, setresgid, getresuid, getresgid): Likewise.
3632         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
3633         Add these calls here.
3634         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
3635         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3636         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3637         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3638         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
3640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3641         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3642         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3644         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3645         (sysdep_routines): Add setfsuid and setfsgid here.
3646         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
3647         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
3648         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
3649         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
3650         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3651         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
3652         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3653         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3655         * hurd/errno.c: Renamed to ...
3656         * hurd/errno-loc.c: ... this.
3657         * hurd/Makefile (routines): errno -> errno-loc
3659 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
3661         * po/de.po: Update from translation team.
3663         * MakeTAGS: Add -E flag to xgettext runs.
3665 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
3667         * po/fr.po: Update from translation team.
3669         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
3670         Optimize a bit for use in glibc.
3672 2002-10-12  Roland McGrath  <roland@redhat.com>
3674         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
3675         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
3677 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
3679         * po/sv.po: Update from translation team.
3681 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
3683         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
3684         OP_CONTEXT_NODE.
3685         (regfree): Likewise.
3686         (create_initial_state): Likewise.
3687         (analyze): Remove the substitutions which became useless.
3688         (calc_first): Likewise.
3689         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
3690         epsilon destination.
3691         (duplicate_node_closure): New function.
3692         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
3693         (calc_inveclosure): Likewise.
3694         (calc_eclosure): Likewise.
3695         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
3696         direct invocation of duplicate_node.
3697         (parse): Don't use comma operator in the return to avoid compiler
3698         warning.
3699         (parse_reg_exp): Likewise.
3700         (parse_branch): Likewise.
3701         (parse_expression): Likewise.
3702         (parse_sub_exp): Likewise.
3703         (parse_dup_op): Likewise.
3704         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
3705         which became useless.
3706         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
3707         (create_cd_newstate): Likewise.
3708         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
3709         (re_token_t): Likewise.
3710         (re_dfa_t): Likewise.
3711         (re_node_set_remove): New macro.
3712         * posix/regexec.c (check_matching): Remove the handling
3713         OP_CONTEXT_NODE.
3714         (check_halt_node_context): Likewise.
3715         (proceed_next_node): Likewise.
3716         (pop_fail_stack): Fix the memory leak.
3717         (set_regs): Likewise.
3718         (free_fail_stack_return): New function.
3719         (sift_states_backward): Fix the memory leak.  Remove the handling
3720         OP_CONTEXT_NODE.
3721         (update_cur_sifted_state): Append some if clause to avoid redundant
3722         call.
3723         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
3724         back reference.
3725         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
3726         (check_subexp_limits): Likewise.
3727         (search_subexp): Likewise.
3728         (sift_states_bkref): Likewise.
3729         (transit_state_mb): Likewise.
3730         (transit_state_bkref_loop): Likewise.
3731         (transit_state_bkref_loop): Likewise.
3732         (group_nodes_into_DFAstates): Likewise.
3733         (check_node_accept): Likewise.
3734         (sift_ctx_init): Add initializing.
3736 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
3738         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
3739         __builtin_expect.
3741 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
3743         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
3744         duplicated variable c.
3746         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
3747         if possible.
3749         * sysdeps/unix/sysv/linux/i386/sysdep.h
3750         (INTERNAL_SYSCALL_ERROR_P): New define.
3751         (INTERNAL_SYSCALL_ERRNO): Likewise.
3753         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
3754         Add hack to prevent the compiler from clobbering the signal context.
3756 2002-10-11  Roland McGrath  <roland@redhat.com>
3758         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3759         Fix typos.
3761         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
3762         * sysdeps/sh/dl-lookupcfg.h: File removed.
3763         * sysdeps/i386/dl-lookupcfg.h: File removed.
3765         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
3766         missing labels and ; from last change.
3768         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
3769         number literals, so they are doubles instead of ints.
3771 2002-10-09  Roland McGrath  <roland@redhat.com>
3773         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
3774         changed from [USE_TLS && HAVE___THREAD].
3776         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
3777         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
3778         * sysdeps/x86_64/dl-machine.h
3779         (elf_machine_type_class, elf_machine_rela): Likewise.
3780         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
3781         Likewise.
3783         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
3784         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
3785         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
3787         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
3788         instead of ___tls_get_addr.
3789         (___tls_get_addr_internal): Add attribute_hidden to decl.
3791         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
3792         _dl_error_catch_tsd.
3793         * elf/rtld.c (startup_error_tsd): New function.
3794         (dl_main): Point _dl_error_catch_tsd at that.
3795         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
3796         use new function pointer instead.
3797         * elf/dl-tsd.c: New file.
3798         * elf/Makefile (routines): Add it.
3800 2002-10-07  Roland McGrath  <roland@redhat.com>
3802         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
3803         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
3804         take _dl_load_lock around calling __writev.
3806         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
3807         (INLINE_SYSCALL): Use that.
3809         * sysdeps/generic/dl-sysdep.h: New file.
3810         * sysdeps/mach/hurd/dl-sysdep.h: New file.
3811         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
3812         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
3813         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
3814         access it directly.
3815         * elf/dl-minimal.c (__errno_location): Removed.
3816         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
3817         Use GOTOFF access for errno.
3818         * sysdeps/unix/sysv/linux/i386/sysdep.h
3819         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
3821         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
3822         Use PC-relative access for errno.
3823         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
3824         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
3826         * include/tls.h: New file.
3827         (USE___THREAD): New macro.
3828         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
3829         libc or libpthread.
3830         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
3831         changed from [USE_TLS && HAVE___THREAD].
3832         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3833         * sysdeps/unix/i386/sysdep.S: Likewise.
3834         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3835         * include/errno.h: Likewise.
3836         * include/netdb.h: Likewise.
3837         * include/resolv.h: Likewise.
3839         * sysdeps/generic/errno.c: New file.
3840         * csu/Makefile (aux): New variable, list errno.
3841         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
3842         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3843         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
3844         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3845         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3846         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
3847         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
3848         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
3849         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
3850         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
3851         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
3852         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
3853         * sysdeps/unix/alpha/sysdep.S: Likewise.
3854         * sysdeps/generic/start.c: Likewise.
3855         * sysdeps/unix/start.c: Likewise.
3856         * sysdeps/unix/arm/start.c: Likewise.
3857         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
3858         * sysdeps/unix/sparc/start.c: Likewise.
3859         * sysdeps/unix/sysv/irix4/start.c: Likewise.
3860         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
3862         * manual/search.texi (Tree Search Function, Hash Search Function):
3863         Mention search.h clearly.
3865 2002-10-05  Roland McGrath  <roland@redhat.com>
3867         * elf/dl-fxstat64.c: File removed.
3868         * elf/dl-xstat64.c: File removed.
3869         * elf/Makefile (rtld-routines): Remove them.
3870         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
3871         Instead, use strong_alias instead of versioned_symbol in the
3872         !SHLIB_COMPAT case.
3873         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3874         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3876         * include/shlib-compat.h
3877         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
3878         [! NOT_IN_libc] (IS_IN_libc): Define it.
3879         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
3880         * elf/Makefile (CPPFLAGS-.os): Likewise.
3882         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
3883         Return the status instead of calling exit.
3885         * Makeconfig (CFLAGS): Prepend -std=gnu99.
3886         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
3887         Remove superfluous rm command, whose @ plus make bugs hid
3888         all these commands from the make output.
3890         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
3891         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
3892         Use that file's contents instead of literal echo's for the prologue.
3893         * include/features.h: Include <gnu/stubs.h> unconditionally.
3894         * include/gnu/stubs.h: New file.
3896 2002-09-30  Roland McGrath  <roland@redhat.com>
3898         * elf/rtld-Rules: New file.
3899         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
3900         $(objpfx)rtld-libc.a): New targets.
3901         (generated): Add them.
3902         (reloc-link): Remove -o $@ from the variable.
3903         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
3904         (distribute): Add rtld-Rules.
3905         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
3906         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
3907         (common-mostlyclean, common-clean): Clean up rtld-* files.
3908         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
3910 2002-10-11  Roland McGrath  <roland@redhat.com>
3912         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
3913         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
3915         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
3916         proper set of no-op insn prefixes.
3918         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
3920 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
3922         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
3923         __pthread_kill_other_threads_np.
3925         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
3927 2002-10-08  Roland McGrath  <roland@redhat.com>
3929         * locale/newlocale.c (__newlocale): If setting all categories to "C",
3930         just return &_nl_C_locobj instead of copying it.
3931         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
3932         * locale/duplocale.c (__duplocale): Likewise.
3934 2002-10-07  Roland McGrath  <roland@frob.com>
3936         * config.h.in (HAVE_I386_SET_GDT): New #undef.
3937         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
3938         * sysdeps/mach/configure: Regenerated.
3940 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
3943         Add all necessary register outputs for syscall-clobbered registers.
3945 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
3947         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
3948         Itanium 2 (and Itanium).
3949         Fix unwind directives and make it fit in 80 columns.
3950         * sysdeps/ia64/memset.S: Likewise.
3951         * sysdeps/ia64/memcpy.S: Likewise.
3952         Move jump table to .rodata section.
3954 2002-10-03  Roland McGrath  <roland@frob.com>
3956         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
3957         clobbers to asm.
3959 2002-10-10  Andreas Jaeger  <aj@suse.de>
3961         * sysdeps/x86_64/_mcount.S: Restore correct registers.
3963 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
3965         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
3967 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
3969         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
3970         _dl_allocate_tls_init.  Add rtld_hidden_proto.
3971         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
3972         rtld_hidden_def.
3973         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
3975         * version.h (VERSION): Bump to 2.3.1.
3977         * Make-dist: Add back one of the tar invocations removed before.
3979         * stdlib/Makefile (distribute): Add allocalim.h.
3981         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
3982         (__libc_tsd_address): Use correct variable name.
3983         Patch by Stefan Jones <stefan.jones@multigig.com>.
3985         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
3986         Reported by edwardsg@sgi.com [PR libc/4678].
3988         * Versions.def (libc): Add GLIBC_2.3.1.
3989         (libpthread): Add GLIBC_2.3.1.
3991         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
3992         and __sigtimedwait.
3993         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
3994         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
3995         libc_hidden_def.
3996         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
3997         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
3999         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
4000         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
4001         and make old name an alias.
4002         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
4003         and make old name an alias.
4004         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
4005         __libc_msgsnd.
4007         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
4008         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
4009         __libc_writev.
4010         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
4011         old name an alias.
4012         * sysdeps/posix/readv.c: Likewise
4013         * sysdeps/unix/sysv/aix/readv.c: Likewise.
4014         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4015         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
4016         old name an alias.
4017         * sysdeps/posix/writev.c: Likewise
4018         * sysdeps/unix/sysv/aix/writev.c: Likewise.
4019         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4021         * include/sys/wait.h: Declare __waitid.
4022         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
4023         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
4024         name an alias.
4025         * sysdeps/posix/waitid.c: Likewise.
4026         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
4028         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
4030 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
4032         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
4033         prototypes.
4034         (__MAX_ALLOCA_CUTOFF): Define.
4035         Include allocalim.h.
4036         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
4037         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
4038         host_buffer depending on __libc_use_alloca.
4039         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
4040         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
4041         net_buffer depending on __libc_use_alloca.
4042         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
4043         buf depending on __libc_use_alloca.
4044         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
4045         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
4046         instead of hardcoded constants.
4047         Pass proper size argument to alloca and compute end for wide char
4048         version.
4049         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
4050         instead of hardcoded constants.
4051         * string/strcoll.c (strcoll): Likewise.
4052         * string/strxfrm.c (strxfrm): Likewise.
4053         * sysdeps/posix/readv.c (__readv): Likewise.
4054         * sysdeps/posix/writev.c (__writev): Likewise.
4055         * sysdeps/generic/allocalim.h: New file.
4057 2002-10-08  Roland McGrath  <roland@redhat.com>
4059         * configure.in (aux_missing warning): Change "too old" to
4060         "incompatible versions", since for autoconf it's "too new" right now.
4061         * configure: Regenerated.
4063         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
4064         one found doesn't work on our configure.in.
4065         * configure: Regenerated.
4066         * config.make.in (AUTOCONF): New substituted variable.
4067         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
4068         (autoconf-it): ... here, use that instead of defining conditionally.
4069         Use $(AUTOCONF) instead of literal autoconf.
4070         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
4071         with this condition.
4072         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
4074 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
4076         * Make-dist (dist): Cleanup a bit.  We are not interested in the
4077         14 char filename limit anymore.  Remove intermediate files and
4078         symlinks.
4080 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
4082         * po/sk.po: Update from translation team.
4083         * po/tr.po: Likewise.
4084         * po/gl.po: Likewise.
4086 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4088         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
4090 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
4092         * version.h (RELEASE): Change to stable.
4094 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
4096         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
4097         __syscall_exit_group): New prototypes.
4099 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
4101         * glibc 2.3 released.
4104 See ChangeLog.13 for earlier changes.