da3231c0e001dbeafa17feffa7bbd2e697935689
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2
3         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4         broken alias attribute handling.
5         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
6
7 2002-08-02  Roland McGrath  <roland@redhat.com>
8
9         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
10         * sunrpc/rpc_thread.c: Define it without static.
11
12 2002-08-02  Roland McGrath  <roland@frob.com>
13
14         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
15         since it sets the variables we use in a -D switch.
16
17 2002-08-02  Roland McGrath  <roland@redhat.com>
18
19         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
20         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
21         matches long int, not int.
22
23         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
24         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
25         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
26         * wctype/wctrans.c (wctrans): Likewise.
27         * wctype/wctype.c (__wctype): Likewise.
28         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
29
30 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
31
32         * assert/assert.c (__assert_fail): Fix typo in comment.
33
34         * include/rpc/rpc.h: Declare __libc_tsd_RPC_VARS if USE_TLS &&
35         HAVE___THREAD.
36         * sunrpc/rpc_thread.c: Don't define __libc_tsd_RPC_VARS as static
37         if USE_TLS && HAVE___THREAD.
38         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
39
40 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
41
42         * assert/assert.c (__assert_fail): Remove undef.
43         Replace INTDEF with libc_hidden_def.
44         * assert/__assert.c (__assert): Remove INTUSE.
45         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
46         libc_hidden_weak.
47         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
48         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
49         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
50         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
51         libm_hiden_ver): Define.
52         * include/assert.h (__assert_fail_internal): Remove.
53         (__assert_fail): Add prototype.  Add hidden_proto.
54         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
55         libc_hidden_proto.
56         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
57         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
58         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
59         Add libc_hidden_proto.
60         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
61         __fcntl): Add libc_hidden_proto.  Remove macros.
62         (__open_internal, __fcntl_internal): Remove.
63         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
64         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
65         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
66         libc_hiden_proto.
67         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
68         libc_hidden_def.
69         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
70         Add libc_hidden_def.
71         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
72         * sysdeps/generic/open.c (__open): Remove undef.
73         Add libc_hidden_def.  Remove INTDEF.
74         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
75         Add libc_hidden_def.
76         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
77         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
78         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
79         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
80         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
81         (__libc_fcntl): Add libc_hidden_def.
82         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
83         (__open): Remove INTDEF2.  Add libc_hidden_weak.
84         (__libc_open): Add libc_hidden_def.
85         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
86         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
87         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
88         Add libc_hidden_def.
89         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
90         Add libc_hidden_def.
91         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
92         undef.
93         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
94         (__libc_fcntl): Add libc_hidden_def.
95         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
96         __getpgid_internal, __chown_internal): Remove.
97         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
98         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
99         __GI___chown): Add.
100         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
101         __getpid_internal, __open_internal, __write_internal): Remove.
102         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
103         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
104         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
105         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
106         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
107         Replace INTDEF with libc_hidden_def.
108         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
109         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
110         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
111         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
112         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
113         Add libc_hidden_proto.
114         * include/sys/poll.h (__poll): Add libc_hidden_proto.
115         * include/sys/select.h (__select): Likewise.
116         * include/sys/socket.h (__send): Likewise.
117         * include/sys/statfs.h (__statfs): Likewise.
118         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
119         __getpid, __getpgid, __setpgid, __close, __read, __write,
120         __getpagesize, __sbrk): Likewise.
121         (__chown_internal, __dup2_internal, __getpid_internal,
122         __getpgid_internal, __close_internal, __write_internal,
123         __getpagesize_internal): Remove.
124         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
125         Remove macros.
126         * include/printf.h (__printf_fp): Add libc_hidden_proto.
127         * include/sched.h (__sched_setscheduler): Likewise.
128         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
129         * include/stdlib.h (__secure_getenv): Likewise.
130         * include/signal.h (__sigaction, __sigsuspend): Likewise.
131         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
132         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
133         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
134         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
135         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
136         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
137         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
138         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
139         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
140         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
141         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
142         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
143         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
144         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
145         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
146         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
147         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
148         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
149         * libio/genops.c (__overflow): Add libc_hidden_def.
150         * libio/iovdprintf.c: Remove libio.h include.
151         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
152         libc_hidden_weak): Define to nothing if not defined.
153         (__overflow, __woverflow): Add libc_hidden_proto.
154         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
155         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
156         (DB_LOOKUP_FCT): Add libc_hidden_proto.
157         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
158         (DB_LOOKUP_FCT): Add libc_hidden_proto.
159         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
160         and libc_hidden_def.
161         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
162         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
163         (__getpgid): Add libc_hidden_proto.
164         (__bsd_getpgrp): Remove INTUSE.
165         * resolv/res_init.c (__res_ninit, __res_randomid): Add
166         libc_hidden_def.
167         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
168         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
169         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
170         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
171         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
172         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
173         __rpc_thread_createerr): Add libc_hidden_def.
174         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
175         libc_hidden_def.
176         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
177         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
178         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
179         * sysdeps/generic/chown.c (__chown): Likewise.
180         * sysdeps/generic/close.c (__close): Likewise.
181         * sysdeps/generic/dup2.c (__dup2): Likewise.
182         * sysdeps/generic/pipe.c (__pipe): Likewise.
183         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
184         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
185         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
186         * sysdeps/generic/read.c (__libc_read): Likewise.
187         (__read): Add libc_hidden_weak.
188         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
189         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
190         * sysdeps/generic/select.c (__select): Likewise.
191         * sysdeps/generic/send.c (__send): Likewise.
192         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
193         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
194         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
195         * sysdeps/generic/statfs.c (__statfs): Likewise.
196         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
197         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
198         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
199         Remove undef and INTDEF.
200         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
201         * sysdeps/generic/getpid.c (__getpid): Likewise.
202         * sysdeps/generic/write.c (__libc_write): Likewise.
203         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
204         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
205         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
206         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
207         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
208         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
209         Remove undef and INTDEF.
210         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
211         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
212         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
213         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
214         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
215         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
216         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
217         (__pipe): Add libc_hidden_def.
218         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
219         libc_hidden_weak.
220         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
221         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
222         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
223         (__read): Add libc_hidden_weak.
224         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
225         (__libc_pwrite64): Add libc_hidden_def.
226         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
227         * sysdeps/mach/hurd/select.c (__select): Likewise.
228         * sysdeps/mach/hurd/send.c (__send): Likewise.
229         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
230         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
231         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
232         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
233         * sysdeps/posix/dup2.c: Likewise.
234         Remove undef and INTDEF.
235         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
236         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
237         (__pwrite64): Add libc_hidden_weak.
238         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
239         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
240         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
241         * sysdeps/standalone/close.c (__close): Likewise.
242         * sysdeps/standalone/write.c (__libc_write): Likewise.
243         (__write): Add libc_hidden_weak.
244         * sysdeps/standalone/read.c (__read): Likewise.
245         (__libc_read): Add libc_hidden_def.
246         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
247         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
248         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
249         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
250         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
251         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
252         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
253         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
254         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
255         __GI___sigaction): Add.
256         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
257         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
258         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
259         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
260         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
261         __GI___setpgid): Add.
262         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
263         Remove undef and INTDEF.
264         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
265         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
266         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
267         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
268         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
269         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
270         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
271         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
272         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
273         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
274         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
275         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
276         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
277         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
278         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
279         __GI___statfs, __GI___send): Add.
280         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
281         libc_hidden_ver resp. libc_hidden_def.
282         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
283         libc_hidden_def.
284         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
285         Likewise.  Remove undef and INTDEF.
286         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
287         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
288         __GI___statfs, __GI___send): Add.
289         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
290         libc_hidden_def.
291         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
292         Likewise.
293         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
294         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
295         libc_hidden_ver resp. libc_hidden_def.
296         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
297         __GI___send): Add.
298         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
299         Add libc_hidden_weak.
300         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
301         Add libc_hidden_def.
302         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
303         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
304         libc_hidden_weak.
305         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
306         resp. libc_hidden_def.
307         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
308         libc_hidden_weak.
309         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
310         INTDEF.
311         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
312         Likewise.  Remove undef.
313         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
314         libc_hidden_weak.
315         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
316         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
317         libc_hidden_weak.
318         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
319         libc_hidden_def.
320         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
321         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
322         Likewise.  Remove undef and INTDEF.
323         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
324         libc_hidden_def.
325         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
326         libc_hidden_weak.
327         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
328         libc_hidden_def.
329         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
330         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
331         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
332         libc_hidden_weak.
333         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
334         Add libc_hidden_def.
335         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
336         __GI___statfs): Add.
337         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
338         libc_hidden_weak.
339         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
340         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
341         Remove undef and INTDEF.
342         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
343         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
344         libc_hidden_def.
345         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
346         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
347         libc_hidden_weak.
348         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
349         libc_hidden_def.
350         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
351         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
352         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
353         Add.
354         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
355         libc_hidden_def.  Remove undef and INTDEF.
356         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
357         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
358         libc_hidden_def.
359         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
360         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
361         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
362         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
363         Remove undef and INTDEF.
364         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
365         broken visibility attribute handling.
366         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
367
368 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
369
370         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
371         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
372
373         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
374         previous patch.
375
376 2002-06-29  Todd Fries  <todd@openbsd.org>
377
378         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
379
380 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
381
382         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
383
384 2002-07-30  Roland McGrath  <roland@redhat.com>
385
386         * resolv/resolv.h (_res): Define macro unconditionally.
387         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
388         * include/resolv.h: ... here.
389         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
390         as a __thread variable.
391         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
392         a __thread variable instead of a global.
393         * resolv/res_data.c [_LIBC]: Don't #undef _res.
394
395         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
396         time we test it.
397
398         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
399
400         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
401         decls of memset and memcpy.
402
403         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
404         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
405
406         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
407
408         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
409         (__libc_tsd_define): Define using __thread.
410
411         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
412         (__rpc_thread_variables): Use __libc_tsd_get.
413         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
414         __rpc_thread_variables, which might allocate what we're about to free.
415
416         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
417         thread-local variable.
418         * resolv/netdb.h (h_errno): Define macro unconditionally.
419         [_LIBC] (__set_h_errno): Macro moved to ...
420         * include/netdb.h: ... here.
421         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
422         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
423         [! _LIBC_REENTRANT]: #undef h_errno here.
424
425         * include/errno.h: Protect from multiple inclusion.
426
427         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
428         before defining them, since Linux's <linux/posix_types.h> might have
429         defined them.
430
431 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
432
433         * malloc/malloc.c (public_cALLOc): Check for overflow on
434         multiplication.
435         * sunrpc/xdr_array.c (xdr_array): Likewise.
436         * sunrpc/rpc/types.h (mem_free): Add comment.
437         Patch by Solar Designer <solar@openwall.com>.
438
439 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
440
441         * sysdeps/unix/sysv/linux/kernel-features.h
442         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
443
444 2002-08-01  Roland McGrath  <roland@redhat.com>
445
446         * libio/fileops.c (_IO_file_sync_mmap): New function.
447         (_IO_file_jumps_mmap): Use it.
448         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
449         repeat the stat check and resize the mapped buffer as necessary.
450
451 2002-07-31  Roland McGrath  <roland@redhat.com>
452
453         * libio/fileops.c (decide_maybe_mmap): New static function.
454         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
455         mmap the file contents.  Then switch the jump tables to the mmap
456         tables if it worked, or the vanilla file tables if not.
457         (_IO_file_underflow_maybe_mmap): New function.
458         (_IO_file_seekoff_maybe_mmap): New function.
459         (_IO_file_xsgetn_maybe_mmap): New function.
460         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
461         * libio/libioP.h: Declare those.
462         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
463         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
464         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
465         If the stream is read-only, set its jump tables to those new ones.
466         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
467         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
468         We need the tables set before _IO_file_attach.
469
470         * libio/tst-mmap-eofsync.c: New file.
471         * libio/tst-mmap-fflushsync.c: New file.
472         * libio/bug-mmap-fflush.c: New file.
473         * libio/tst-mmap2-eofsync.c: New file.
474         * libio/Makefile (tests): Add them.
475
476         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
477         _IO_file_underflow_mmap fails, it already set the appropriate bit.
478
479 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
480
481         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
482         Declarations moved to <bits/sys_errlist.h>.  Include that file.
483         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
484         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
485         declare sys_errlist and sys_nerr.
486         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
487         provide declarations.
488
489 2002-07-31  Roland McGrath  <roland@redhat.com>
490
491         * elf/rtld.c (dl_main): Fix typo in error message.
492
493 2002-07-31  Roland McGrath  <roland@frob.com>
494
495         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
496         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
497         sysdeps/mach/hurd/dl-sysdep.c change.
498
499 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
500
501         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
502         -r`/build/include for kernel headers.
503
504         * po/fi.po: New file.
505
506 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
507
508         * configure.in (static_nss): Set to `yes' if --disable-shared.
509
510 2002-07-23  Bruno Haible  <bruno@clisp.org>
511
512         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
513         is set.
514
515 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
516
517         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
518         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
519         arguments.
520
521 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
522
523         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
524         alias.
525
526 2002-07-21  Bruno Haible  <bruno@clisp.org>
527
528         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
529         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
530         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
531         trans_sysdep_tab_offset.
532         (struct sysdep_segment): New type.
533         (struct sysdep_string): New type.
534         (SEGMENTS_END): New macro.
535         * intl/gettextP.h (struct sysdep_string_desc): New type.
536         (struct loaded_domain): New fields malloced, n_sysdep_strings,
537         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
538         orig_tab, trans_tab, hash_tab to const pointers because they point
539         into read-only memory.
540         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
541         (PRI*): Define fallback values.
542         (get_sysdep_segment_value): New function.
543         (_nl_load_domain): Distinguish major and minor revision parts. Add
544         support for minor revision 1 with system dependent strings.
545         (_nl_unload_domain): Also free the 'malloced' field.
546         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
547         now done in loadmsgcat.c. Add support for system dependent strings.
548
549 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
550
551         * posix/bug-regex7.c: New file.
552         * posix/bug-regex8.c: New file.
553         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
554
555 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
556
557         * posix/bug-regex4.c (main): Fix typos.
558         * posix/bug-regex6.c (main): Likewise.
559
560 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
561
562         * posix/bug-regex6.c (main): Fix warnings.
563
564         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
565
566         * iconv/iconv_prog.c (main): Improve error message for the cases
567         where -t and/or -f parameter are missing.
568
569 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
570
571         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
572         (re_search): Likewise.
573         (re_match_2): Likewise.
574         (re_search_2): Likewise.
575         (re_search_stub): New function.
576         (re_search_2_stub): New function.
577         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
578
579 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
580
581         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
582         (re_string_eoi): Use STOP instead of LEN.
583         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
584         (re_string_construct): Likewise.
585         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
586         * posix/regexec.c (re_search_internal): Add a new argument STOP
587         so that it can handle the argument STOP of re_search_2 and re_match_2
588         correctly.
589         (regexec): Adapt to new I/F of re_search_internal.
590         (re_search_stub): Likewise.
591
592 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
593
594         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
595
596         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
597
598         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
599         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
600         of __divdi3.
601
602         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
603         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
604         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
605         alias for adjtimex syscall.
606
607         * elf/dl-minimal.c: Define __assert_fail_internal.
608         * assert/assert.c: Likewise.
609         * include/assert.h: Define __assert_file macro if !SHARED and not
610         NOT_IN_libc.
611
612         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
613         programs.
614         * locale/Makefile: Likewise.
615         * nscd/Makefile: Likewise.
616         * catgets/Makefile: Likewise.
617
618 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
619
620         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
621         compute current position.
622
623         * stdio-common/tst-fseek.c (main): Improve error messages.
624
625         * libio/tst-freopen.c (main): Remove unused variable.
626
627         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
628         succesful seek call.  Simplify error checking.
629
630 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
631
632         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
633         * sysdeps/ia64/fpu/libm_support.h: Likewise.
634
635 2002-07-19  Roland McGrath  <roland@frob.com>
636
637         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
638         __libc_enable_secure is set.
639
640 2002-07-24  Roland McGrath  <roland@frob.com>
641
642         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
643         This implementation supports only IPv4.
644         * inet/ifaddrs.h: New file.
645         * sysdeps/generic/ifaddrs.c: New file.
646         * sysdeps/gnu/ifaddrs.c: New file.
647         * inet/test-ifaddrs.c: New file.
648         * inet/Makefile (routines): Add ifaddrs.
649         (headers): Add ifaddrs.h here.
650         (tests): Add test-ifaddrs.
651         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
652
653         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
654         socket call to get an AF_INET socket, instead of using __opensock.
655         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
656
657         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
658         if not -1 use it instead of calling __opensock.
659         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
660         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
661         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
662
663         * sysdeps/mach/hurd/ifreq.h: New file.
664         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
665         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
666         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
667
668         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
669         which gets moved around.  Calculate size of mmap'd buffer instead.
670
671 2002-07-24  Philip Blundell  <philb@gnu.org>
672
673         * sysdeps/unix/arm/brk.S: Improve schedule.
674         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
675         efficient instruction.
676         (__socket): Optimize return sequence.
677
678 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
679
680         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
681         sockets on old kernels.
682
683 2002-07-22  Philip Blundell  <philb@gnu.org>
684
685         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
686         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
687         alias.
688
689 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
690
691         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
692         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
693
694         * locale/programs/locarchive.c (add_locale_to_archive): Correct
695         test to detect duplicate locales.
696
697         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
698         position would be before beginning of file.
699         (_IO_file_seekoff_mmap): Likewise.
700         * libio/Makefile (tests): Add bug-fseek.
701         * libio/bug-fseek.c: New file.
702
703         * intl/explodename.c: Remove support for CEN-style locale variables.
704         It was never used and shouldn't be since it's not portable.
705         * intl/finddomain.c: Likewise.
706         * intl/l10nflist.c: Likewise.
707         * intl/loadinfo.h: Likewise.
708         * locale/findlocale.c: Likewise.
709
710 2002-07-24  Roland McGrath  <roland@frob.com>
711
712         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
713         position, calculate it to take into account an active pushback buffer.
714
715         * libio/Makefile (tests): Add bug-ungetc.
716         * libio/bug-ungetc.c: New file.
717
718 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
719
720         * sysdeps/generic/libc-tls.c: New file.
721         * csu/Makefile (routines): Add libc-tls.
722         (static-only-routines): Add libc-tls.
723         * elf/dl-support.c (_dl_phdr): New variable.
724         (_dl_phnum): New variable.
725         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
726         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
727         for !SHARED.  First look through auxiliary vector.  If TLS always
728         call __pthread_initialize_minimal.
729
730         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
731         in mmap call is never zero.
732
733 2002-07-23  Andreas Jaeger  <aj@suse.de>
734
735         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
736         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
737
738 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
739
740         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
741         creation and removal of the temp file.
742
743         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
744         file creation.
745         * test-skeleton.c (create_temp_file): New function.
746
747 2002-07-22  Andreas Jaeger  <aj@suse.de>
748
749         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
750         local label.
751
752 2002-07-21  Roland McGrath  <roland@frob.com>
753
754         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
755         put -I../include before -I../stdlib so we get the right errno.h et al.
756         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
757         (CFLAGS-wcstof.c): Likewise.
758         (CFLAGS-wcstold.c): Likewise.
759         (CFLAGS-wcstod_l.c): Likewise.
760         (CFLAGS-wcstof_l.c): Likewise.
761         (CFLAGS-wcstold_l.c): Likewise.
762
763 2002-07-19  Roland McGrath  <roland@frob.com>
764
765         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
766
767 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
768
769         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
770         __ASSUME_AT_XID is defined.
771         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
772         for 2.4.1 and up.
773         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
774         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
775
776         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
777         (CFLAGS-wcstof.c): Likewise.
778         (CFLAGS-wcstold.c): Likewise.
779         (CFLAGS-wcstod_l.c): Likewise.
780         (CFLAGS-wcstof_l.c): Likewise.
781         (CFLAGS-wcstold_l.c): Likewise.
782
783 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
784
785         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
786         __priority_which_t): Always typedef to int for C++.
787
788 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
789
790         * configure.in: Add test for __thread support in compiler.
791         * config.h.in: Add HAVE___THREAD.
792         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
793         * include/sys/errno.h: Moved to...
794         * stdlib/sys/errno.h: ...here.  New file.
795         * stdlib/errno.h: New file.  Moved from...
796         * include/errno.h: ...here.  Changed into an internal header defining
797         libc-local things like __set_errno.
798         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
799         bits/errno.h.
800         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
801         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
802         either.
803         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
804         from...
805         (_dl_start_final): ...here.  Add code to initialize tls elements from
806         bootstrap_map.
807         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
808         if USE_TLS && HAVE___THREAD.
809         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
810         * sysdeps/mach/hurd/bits/errno.h: Likewise.
811         * sysdeps/standalone/arm/bits/errno.h: Likewise.
812         * sysdeps/standalone/bits/errno.h: Likewise.
813         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
814         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
815         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
816         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
817         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
818         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
819         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
820         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
821         use GL(dl_rtld_map), use map parameter.
822         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
823         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
824         USE_TLS && HAVE___THREAD.
825         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
826         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
827         TLS code sequence.
828         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
829
830         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
831         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
832         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
833         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
834         * sysdeps/unix/sysv/linux/readv.c: Likewise.
835         * sysdeps/unix/sysv/linux/writev.c: Likewise.
836
837 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
838
839         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
840         MS_INVALIDATE values.
841
842 2002-07-17  Andreas Schwab  <schwab@suse.de>
843             Ulrich Drepper  <drepper@redhat.com>
844
845         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
846         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
847         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
848         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
849
850 2002-07-01  H.J. Lu  <hjl@gnu.org>
851
852         * elf/circleload1.c (load_dso): Call "circlemod1" and check
853         return value.
854
855         * elf/circlemod1.c (circlemod1): Return int.
856         * elf/circlemod2.c (circlemod2): Likewise.
857         * elf/circlemod2a.c (circlemod2): Likewise.
858         * elf/circlemod3.c (circlemod3): Likewise.
859         (circlemod3a): A new function.
860
861 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
862
863         * catgets/tst-catgets.c (main): Don't expect results for
864         untranslated messages.
865
866         * glibcbug.in: Fix little typo.  Remove STDIO.
867
868         * config.h.in: Fail if __FAST_MATH__ is defined.
869         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
870         (CPPFLAGS-test-idouble.c): Likewise.
871         (CPPFLAGS-test-ildouble.c): Likewise.
872
873 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
874
875         * intl/tst-gettext.sh: Pass -f option to msgfmt.
876         * intl/tst-gettext.c: Correctly handle untranslated messages in
877         positive tests.
878
879         * po/de.po: Update from translation team.
880
881 2002-07-02  H.J. Lu  <hjl@gnu.org>
882
883         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
884         use ll/sc.
885         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
886
887         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
888         to 2.4.0 for mips.
889
890 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
891
892         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
893         TLS fail if USE_TLS is not defined.
894
895         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
896         and adjust state for seek position.  [PR libc/4070]
897         * libio/Makefile (tests): Add bug-rewind.
898         * libio/bug-rewind.c: New file.
899
900 2002-07-12  Philip Blundell  <philb@gnu.org>
901
902         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
903         (__backtrace): Use it.
904         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
905
906 2002-07-12  Philip Blundell  <philb@gnu.org>
907
908         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
909         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
910         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
911         (elf_machine_rela): Remove unused variable.
912
913         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
914         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
915         define.
916
917 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
918
919         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
920
921 2002-07-14  Andreas Jaeger  <aj@suse.de>
922
923         * sysdeps/x86_64/bits/link.h: Add biarch support.
924
925 2002-07-13  Andreas Jaeger  <aj@suse.de>
926
927         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
928         Use correct indices.
929         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
930
931 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
932
933         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
934         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
935         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
936         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
937         * sysdeps/s390/s390-32/bits/link.h: Remove.
938         * sysdeps/s390/s390-64/bits/link.h: Remove.
939         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
940         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
941         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
942         * sysdeps/s390/bits/wordsize.h: New file.
943         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
944         elfclass.h.
945         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
946         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
947         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
948         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
949         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
950         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
951         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
952         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
953         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
954         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
955         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
956         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
957         resource.h.
958         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
959         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
960         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
961         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
962         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
963         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
964         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
965         sigaction.h.
966         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
967         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
968         siginfo.h.
969         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
970         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
971         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
972         socket.h.
973         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
974         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
975         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
976         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
977         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
978         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
979         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
980         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
981         procfs.h.
982         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
983         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
984         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
985         ucontext.h.
986         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
987         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
988
989 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
990
991         * Versions.def (libc): Add GLIBC_2.3.
992         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
993         * stdlib/canonicalize.c: Add compatibility version for realpath
994         and make new code available in GLIBC_2.3.
995
996 2002-07-06  Bruno Haible  <bruno@clisp.org>
997
998         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
999
1000 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
1001
1002         * resolv/res_hconf.c (_res_hconf_init): Move code into new
1003         function do_init.  Use __libc_once.
1004         (do_init): New function.
1005
1006         * iconvdata/iso8859-11.h: Removed.
1007         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1008         (distribute): Remove iso8859-11.h.
1009         * iconvdata/tst-tables.sh: Add ISO-8859-11.
1010
1011         * stdio-common/vfscanf.c (inchar): Restore errno from previous
1012         underflow operation if c == (W)EOF.
1013
1014 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1015
1016         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
1017         non-zero, adjust exponent.
1018         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1019         Remove NO_LONG_DOUBLE aliases.
1020         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1021         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1022         (__log1pl): Raise divide by zero and invalid exceptions when needed.
1023         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1024         1**y and -1**+-Inf.
1025         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1026         Fix BITS_PER_MP_LIMB 32 extraction.
1027         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1028         exceptions for qNaNs.
1029         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1030         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1031         Raise exceptions when needed.  Don't recurse unnecessarily.
1032         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1033         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1034         exceptions for qNaNs.
1035         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1036         to fix *quo return value sign.
1037         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1038         case -Inf argument.
1039         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1040
1041 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
1042
1043         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1044         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1045         -DNDEBUG.
1046
1047 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
1048
1049         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1050         the result.
1051
1052         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1053         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
1054
1055         * Versions.def (libthread_db): Add GLIBC_2.3.
1056
1057 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
1058
1059         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1060         new stream if possible.
1061         * libio/freopen64.c (freopen64): Likewise.
1062         * libio/Makefile (tests): Add tst-freopen.
1063         * libio/tst-freopen.c: New file.
1064
1065 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1066
1067         * libio/stdio.h (obstack_printf): Add format attribute.
1068         (obstack_vprintf): Likewise.
1069
1070 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
1071
1072         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
1073         resp. 16 bytes on 32-bit resp. 64-bit platforms.
1074         (re_charset_t, re_string_t): Reorder structure members for 64-bit
1075         architectures.
1076
1077 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
1078
1079         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
1080         (init_dfa): ...here.
1081
1082 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1083
1084         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
1085         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
1086         nodes in parse trees.
1087         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
1088         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
1089         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
1090         nodes which can epsilon transit.
1091         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
1092         to IS_EPSILON_NODE macro.
1093         * posix/regexec.c (update_regs): New function to update registers
1094         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
1095         (proceed_next_node): Use the entities of the nodes to determine
1096         whether the node can transit to.
1097         (set_regs): Use update_regs function to update registers.
1098
1099 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1100
1101         * posix/bug-regex4.c (main): Remove duplicate setlocale.
1102         * posix/bug-regex6.c: New file.
1103         * posix/Makefile (tests): Add bug-regex6.
1104         (bug-regex6-ENV): Set LOCPATH.
1105
1106 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
1107
1108         * Versions.def [libpthread]: Add GLIBC_2.2.6.
1109         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
1110
1111 2002-07-06  Bruno Haible  <bruno@clisp.org>
1112
1113         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
1114
1115 2002-07-06  Bruno Haible  <bruno@clisp.org>
1116
1117         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
1118         declarations.
1119
1120         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
1121
1122         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
1123
1124         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
1125         not _UTSNAME_H.
1126         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
1127
1128         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
1129         * sysdeps/generic/bits/ustat.h: Likewise.
1130
1131         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
1132
1133 2002-07-08  Andreas Jaeger  <aj@suse.de>
1134
1135         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
1136
1137 2002-07-08  Andreas Jaeger  <aj@suse.de>
1138
1139         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
1140
1141 2002-07-06  Andreas Jaeger  <aj@suse.de>
1142
1143         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
1144         * sysdeps/x86_64/fpu/s_copysign.S: New.
1145         * sysdeps/x86_64/fpu/s_copysignf.S: New.
1146         * sysdeps/x86_64/fpu/s_copysignl.S: New.
1147         * sysdeps/x86_64/fpu/s_finitel.S: New.
1148         * sysdeps/x86_64/fpu/s_fmax.S: New.
1149         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
1150         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
1151         * sysdeps/x86_64/fpu/s_fmin.S: New.
1152         * sysdeps/x86_64/fpu/s_fminf.S: New.
1153         * sysdeps/x86_64/fpu/s_fminl.S: New.
1154
1155 2002-06-05  Brian Youmans <3diff@gnu.org>
1156
1157         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
1158         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1159         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1160         * sysdeps/ia64/fpu/e_asin.S: Likewise.
1161         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1162         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1163         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1164         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1165         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1166         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1167         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1168         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1169         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1170         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1171         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1172         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1173         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1174         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1175         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1176         * sysdeps/ia64/fpu/e_log.S: Likewise.
1177         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1178         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1179         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1180         * sysdeps/ia64/fpu/e_powl.S: Likewise.
1181         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1182         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1183         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1184         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1185         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1186         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1187         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1188         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1189         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1190         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1191         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1192         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1193         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
1194         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1195         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
1196         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
1197         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1198         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1199         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1200         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1201         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1202         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1203         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1204         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1205         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1206         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1207         * sysdeps/ia64/fpu/s_logb.S: Likewise.
1208         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1209         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1210         * sysdeps/ia64/fpu/s_modf.S: Likewise.
1211         * sysdeps/ia64/fpu/s_modff.S: Likewise.
1212         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1213         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1214         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1215         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1216         * sysdeps/ia64/fpu/s_rint.S: Likewise.
1217         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1218         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1219         * sysdeps/ia64/fpu/s_round.S: Likewise.
1220         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1221         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1222         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1223         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1224         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1225         * sysdeps/ia64/fpu/s_significand.S: Likewise.
1226         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1227         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1228         * sysdeps/ia64/fpu/s_tan.S: Likewise.
1229         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1230         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1231         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1232         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1233         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1234         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
1235         reflect IBM donation of math library to FSF
1236         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1237         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1238         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1239         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1240         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1241         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1242         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1243         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1244         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1245         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1246         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1247         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1248         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1249         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1250         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1251         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1252         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1253         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1254         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1255         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1256         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1257         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1258         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
1259         * sysdeps/vax/__longjmp.c: Likewise.
1260         * sysdeps/vax/setjmp.c: Likewise.
1261         * libio/filedoalloc.c: Fixed BSD copying permission notice to
1262         remove advertising clause
1263         * sysdeps/vax/htonl.s: Likewise.
1264         * sysdeps/vax/htons.s: Likewise.
1265         * libio/wfiledoalloc.c: Likewise.
1266         * stdlib/random.c: Likewise.
1267         * stdlib/random_r.c: Likewise.
1268         * sysdeps/mach/sys/reboot.h: Likewise.
1269         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
1270         * sysdeps/posix/getaddrinfo.c: Likewise.
1271         * sunrpc/des_impl.c: Updated license permission notice to Lesser
1272         GPL and corrected pointer to point to the correct license.
1273
1274 2002-07-04  Andreas Jaeger  <aj@suse.de>
1275
1276         * scripts/config.guess: New upstream version.
1277         * scripts/config.sub: Likewise.
1278
1279 2002-07-02  Andreas Schwab  <schwab@suse.de>
1280
1281         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
1282         in parallel to bumping up the buffer pointer.
1283
1284 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
1285
1286         * math/libm-test.inc (acos_test): Add missing L suffix for
1287         expected result.
1288         (cpow_test): Likewise.
1289         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
1290         error for acos (0.0625).
1291
1292 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
1293
1294         * locale/iso-639.def: Add entry for Ganda.
1295         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
1296         definition.
1297         (address_finish): Handle entries with two letter ISO 639 code.
1298
1299         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
1300         directory if it existed before.
1301         * iconv/iconvconfig.c: Implement --prefix option.
1302
1303         * math/libm-test.inc (cexp_test): Add missing L suffix for
1304         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
1305         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
1306         1.25 i).
1307
1308 2002-05-29  H.J. Lu  <hjl@gnu.org>
1309
1310         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
1311         is turned on.
1312
1313 2002-05-28  H.J. Lu  <hjl@gnu.org>
1314
1315         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
1316         are not dlopened on the dependency list of a dlopened object.
1317
1318 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
1319
1320         * elf/dl-lookup.c (add_dependency): It is not necessary to add
1321         dependencies if they are created between objects which are created
1322         while processing RTLD_NOW for objects loaded as part of the same
1323         dlopen call.
1324
1325 2002-06-14  H.J. Lu  <hjl@gnu.org>
1326
1327         * elf/Makefile (tests): Add circleload1.
1328         (modules-names): Add circlemod1, circlemod2, circlemod3,
1329         circlemod1a, circlemod2a and circlemod3a.
1330         ($(objpfx)circleload1): New target.
1331         ($(objpfx)circleload1.out): Likewise.
1332         ($(objpfx)circlemod1.so): Likewise.
1333         ($(objpfx)circlemod2.so): Likewise.
1334         ($(objpfx)circlemod1a.so): Likewise.
1335         ($(objpfx)circlemod2a.so): Likewise.
1336         * elf/circleload1.c: New file.
1337         * elf/circlemod1.c: New file.
1338         * elf/circlemod1a.c: New file.
1339         * elf/circlemod2.c: New file.
1340         * elf/circlemod2a.c: New file.
1341         * elf/circlemod3.c: New file.
1342         * elf/circlemod3a.c: New file.
1343
1344 2002-06-18  Amos Waterland  <apw@us.ibm.com>
1345
1346         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
1347         file descriptor.
1348         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
1349         add check for fd not open for writing.
1350
1351         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
1352         completed element(s) and do not suspend thread if so.  Patch
1353         heavily modified by drepper.
1354
1355         * rt/tst-aio7.c: New file.  Regression test for problems which the
1356         above three changes fix.
1357         * rt/Makefile (tests): Add tst-aio7.
1358
1359 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
1360
1361         * rt/tst-aio6.c: Fix comment.
1362
1363         * catgets/gencat.c (read_input_file): Handle more than one slash
1364         at end of line correctly [PR libc/3926].
1365         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
1366
1367         * catgets/sample.SJIS: Add test case for above bug.
1368         * catgets/test-gencat.c: Adjust test code.
1369         * catgets/test-gencat.sh: Adjust expected results.
1370
1371         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
1372         to skip relative relocations.
1373         Patch by Geoff Keating <geoffk@redhat.com>.
1374
1375 2002-05-26  Bruno Haible  <bruno@clisp.org>
1376
1377         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
1378         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
1379         All callers changed.
1380         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
1381         STANDARD_FROM_LOOP_ERR_HANDLER.
1382         (utf8_internal_loop): Likewise.
1383         (ucs2_internal_loop): Likewise.
1384         (internal_ucs2_loop): Perform error handling like in
1385         STANDARD_FROM_LOOP_ERR_HANDLER.
1386         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
1387         in STANDARD_FROM_LOOP_ERR_HANDLER.
1388         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1389         handling.
1390         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
1391         in STANDARD_FROM_LOOP_ERR_HANDLER.
1392         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1393         handling.
1394         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
1395         in STANDARD_FROM_LOOP_ERR_HANDLER.
1396         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1397         handling.
1398         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
1399         STANDARD_FROM_LOOP_ERR_HANDLER.
1400         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1401         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
1402         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
1403         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
1404         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
1405         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
1406         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
1407         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
1408         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
1409         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
1410         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
1411         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
1412         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
1413         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
1414         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
1415         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
1416         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
1417         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
1418         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1419         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
1420         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
1421         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
1422         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
1423         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1424         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
1425         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
1426         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
1427         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
1428         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
1429         an error, still set result = __GCONV_ILLEGAL_INPUT.
1430         (BODY for TO_LOOP): Likewise.
1431         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
1432         STANDARD_FROM_LOOP_ERR_HANDLER.
1433         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1434         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
1435         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1436         handling.
1437         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1438         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
1439         STANDARD_FROM_LOOP_ERR_HANDLER.
1440         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1441         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
1442         STANDARD_FROM_LOOP_ERR_HANDLER.
1443         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1444         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
1445         STANDARD_FROM_LOOP_ERR_HANDLER.
1446         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1447         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
1448         STANDARD_FROM_LOOP_ERR_HANDLER.
1449         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1450         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
1451         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1452         handling.
1453         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1454         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
1455         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
1456         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
1457
1458 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1459
1460         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
1461         labels in assembler instructions.
1462
1463 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
1464
1465         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
1466         not enough content is available.
1467         * libio/tst-eof.c: New file.
1468         * libio/Makefile (tests): Add tst-eof.
1469
1470         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
1471         update atime.
1472         * libio/tst-atime.c: New file.
1473         * libio/Makefile (tests): Add tst-atime.
1474
1475         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
1476         handling of overly long words.
1477
1478 2002-06-25  Andreas Jaeger  <aj@suse.de>
1479
1480         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
1481         to not use 32-bit pc relative relocations.
1482         (elf_machine_dynamic): Likewise.
1483
1484 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
1485
1486         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
1487         (__GETDENTS): Check for failed getdents64 syscall.
1488         * dirent/Makefile (tests): Add bug-readdir1.
1489         * dirent/bug-readdir1.c: New file.
1490
1491 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
1492
1493         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
1494         lookups.
1495         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
1496         code.  Print TLS modid and offset for modules containing PT_TLS
1497         segments.
1498
1499 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
1500
1501         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1502         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1503         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1504         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1505
1506 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
1507
1508         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
1509         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
1510         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
1511         * nss/getXXent_r.c (NEW, NEW1): Define.
1512         (NEW (REENTRANT_GETNAME)): Strong alias to
1513         INTERNAL (REENTRANT_GETNAME).
1514         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
1515
1516 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
1517
1518         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
1519         (_IO_file_jumps_mmap): Use it.
1520         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
1521         * libio/libioP.h: Remove _IO_wdefault_setbuf and
1522         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
1523         prototype.
1524         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
1525         (_IO_wfile_jumps_mmap): Don't use it anymore.
1526         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
1527         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
1528         _IO_wdefault_setbuf.
1529         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
1530         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
1531         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
1532
1533 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
1534
1535         * libio/Makefile (tests): Add tst-mmap-setvbuf.
1536         * libio/tst-mmap-setvbuf.c: New test.
1537
1538 2002-06-21  Andreas Jaeger  <aj@suse.de>
1539
1540         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
1541
1542 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
1543
1544         * include/unistd.h (__fork_internal): Remove.
1545         (__fork): Don't define to __fork_internal.
1546         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
1547         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
1548         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
1549         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
1550         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
1551
1552 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
1553
1554         * po/hr.po: New file.
1555
1556 2002-06-11  Wolfram Gloger  <wg@malloc.de>
1557
1558         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
1559         Reported by Michael Meissner <meissner@redhat.com>.
1560
1561 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
1562
1563         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
1564         Patch by Hans Boehm <hans_boehm@hp.com>.
1565
1566 2002-06-20  Andreas Jaeger  <aj@suse.de>
1567
1568         * math/libm-test.inc: Use exact values as input parameters,
1569         compute output parameters with 36 digits for 128-bit long doubles.
1570         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1571         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
1572         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1573
1574 2002-06-13  Stephen L Moshier  <steve@moshier.net>
1575
1576         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
1577         argument or result is subnormal.
1578
1579 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
1580
1581         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
1582         quotient.
1583         * sysdeps/i386/fpu/s_remquof.S: Likewise.
1584         * sysdeps/i386/fpu/s_remquol.S: Likewise.
1585
1586         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
1587
1588 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
1589
1590         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
1591         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
1592         Reported by Peter A. Buhr.
1593
1594 2002-06-15  Roland McGrath  <roland@frob.com>
1595
1596         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
1597         warning.
1598
1599         * sysdeps/mach/hurd/getcwd.c
1600         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
1601
1602         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
1603         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
1604
1605         * sysdeps/alpha/divrem.h: Use local label instead of global one for
1606         jump to local subroutine.
1607
1608 2002-06-14  Roland McGrath  <roland@frob.com>
1609
1610         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
1611         * sysdeps/mach/hurd/Makeconfig: ... here.
1612
1613 2002-06-13  Andreas Schwab  <schwab@suse.de>
1614
1615         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
1616         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1617         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1618
1619 2002-06-13  Roland McGrath  <roland@frob.com>
1620
1621         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
1622         * hurd/hurdstartup.c (_hurd_startup): Likewise.
1623         Use intptr_t instead of int for argc in stack layout.
1624         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
1625         (_dl_init_first): Likewise.
1626         (_hurd_stack_setup): Likewise.
1627         (init1): Add a cast.
1628         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
1629
1630         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
1631         argument to pfinet_siocgifconf RPC.
1632
1633 2002-06-13  Andreas Schwab  <schwab@suse.de>
1634
1635         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
1636         expansion order.
1637
1638 2002-06-12  Roland McGrath  <roland@frob.com>
1639
1640         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
1641         if already defined.
1642         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
1643         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
1644
1645 2002-06-11  Roland McGrath  <roland@frob.com>
1646
1647         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
1648         file on [!RTLD_STAT64].
1649         * sysdeps/mach/hurd/fxstat64.c: Likewise.
1650
1651         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
1652         (__fdopen): Use INTUSE.
1653         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
1654
1655         * stdio-common/tmpfile64.c: File removed.
1656         * sysdeps/generic/tmpfile64.c: New file.
1657         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
1658         if not already defined.
1659         (tmpfile): Use it in place of __GT_FILE.
1660
1661         * include/unistd.h: Declare __chown_internal.
1662
1663         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
1664         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
1665
1666 2002-06-09  Roland McGrath  <roland@frob.com>
1667
1668         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
1669         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
1670         value of HURD_INTERFACE_VERSION >= 20020609.
1671         * sysdeps/mach/hurd/configure: Regenerated.
1672         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
1673         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
1674         convert a struct stat64 into a struct stat and return 0 or -1
1675         with errno set to EOVERFLOW.
1676         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
1677         for struct statfs64 to struct statfs.
1678         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
1679         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
1680         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1681         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1682         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1683         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1684         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1685         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
1686         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
1687         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
1688         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
1689         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
1690         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
1691         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
1692         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
1693         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
1694         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
1695         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
1696         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
1697         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
1698         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
1699         Use struct stat64 for io_stat argument.
1700         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
1701         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
1702         to io_seek.
1703         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
1704         * hurd/fd-write.c (_hurd_fd_write): Likewise.
1705         * hurd/hurd/fd.h: Update decls.
1706         * sysdeps/mach/hurd/getcwd.c
1707         (_hurd_canonicalize_directory_name_internal): Use ino64_t
1708         and struct dirent64.
1709         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
1710         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
1711         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
1712         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
1713
1714 2002-06-08  Roland McGrath  <roland@frob.com>
1715
1716         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
1717         instead of unsigned long int for __allocation and __size members.
1718
1719 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
1720
1721         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1722         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1723         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1724         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1725
1726 2002-06-07  Roland McGrath  <roland@frob.com>
1727
1728         * sysdeps/mach/hurd/bits/environments.h: File removed.
1729
1730 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
1731
1732         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
1733         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
1734         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
1735         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
1736         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
1737         (sendfile64): Likewise.
1738         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
1739         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
1740         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
1741         Likewise.
1742         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
1743
1744         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
1745         already defined.
1746
1747 2002-06-04  Bruno Haible  <bruno@clisp.org>
1748
1749         * sysdeps/cris/stackinfo.h: New file.
1750
1751         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
1752         to an integer type before performing bit operations on it.
1753
1754 2002-06-05  Roland McGrath  <roland@frob.com>
1755
1756         * sysdeps/generic/sendfile.c: Include <errno.h>.
1757         * sysdeps/generic/sendfile64.c: Likewise.
1758
1759         * io/Makefile (routines): Add sendfile and sendfile64.
1760         (headers): Add sys/sendfile.h to the list.
1761         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
1762         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
1763         * io/sys/sendfile.h: ... here.
1764         * sysdeps/generic/sendfile.c: New file.
1765         * sysdeps/generic/sendfile64.c: New file.
1766
1767         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
1768         Move sendfile, sendfile64 to ...
1769         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
1770         * sysdeps/mach/hurd/sendfile.c: New file.
1771         * sysdeps/mach/hurd/sendfile64.c: New file.
1772
1773         * sysdeps/mach/nanosleep.c: New file.
1774
1775 2002-06-04  Roland McGrath  <roland@frob.com>
1776
1777         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
1778         * sysdeps/alpha/elf/configure: New file (generated).
1779
1780 2002-06-02  Roland McGrath  <roland@frob.com>
1781
1782         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
1783
1784 2002-06-01  Roland McGrath  <roland@frob.com>
1785
1786         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
1787         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
1788
1789 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1790
1791         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
1792         Add nsmap.
1793         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
1794         Remove nstimes setting.
1795         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
1796         * resolv/res_send.c (res_nsend): Don't close unconditionally if
1797         there is mix of IPv6 and IPv4 nameservers.
1798         Use nsmap array to find free slots and preserve nameserver ordering.
1799         Fix RES_ROTATE.
1800
1801 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1802
1803         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
1804         use this header with LFS.
1805
1806         * po/sk.po: Update from translation team.
1807
1808 2002-05-28  Andreas Schwab  <schwab@suse.de>
1809
1810         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
1811         message when finding object of wrong class.
1812
1813 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
1814
1815         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
1816         Patch by <radu@netsoft.ro>.
1817
1818 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1819
1820         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
1821         Add readahead.
1822         * sysdeps/unix/sysv/linux/readahead.c: New file.
1823         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
1824         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
1825         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
1826         Add sendfile64 alias to sendfile syscall.
1827         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1828         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1829         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1830         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
1831         syscall.
1832
1833         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
1834         special section for PIC register loading.
1835         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1836
1837         * config.h.in: Define HAVE_HIDDEN.
1838         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
1839
1840         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
1841
1842 2002-05-28  Roland McGrath  <roland@frob.com>
1843
1844         * sysdeps/mach/alpha/setfpucw.c: New file.
1845
1846 2002-05-26  Roland McGrath  <roland@frob.com>
1847
1848         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
1849         Use integer_t instead of int for IOC_VOID case.
1850
1851 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
1852
1853         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
1854
1855 2002-05-26  Bruno Haible  <bruno@clisp.org>
1856
1857         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
1858         end of the ISO-8859-7 from idx table.
1859
1860 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
1861
1862         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
1863
1864 2002-05-24  David S. Miller  <davem@redhat.com>
1865
1866         * string/bits/string2.h (memset): Do not try to optimize when
1867         not _STRING_ARCH_unaligned if GCC will do the right thing.
1868
1869 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
1870
1871         * posix/regex.c: Define `inline' as a macro into nothing for the
1872         compilers which lack the keyword.
1873         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
1874         for the compatibility of gawk.
1875         * posix/regcomp.c: Add fake implementation of isblank() for the
1876         environments which lack the function.
1877         Don't use free_charset() in case of non-i18n envs.
1878         (build_range_exp): Don't use i18n related code in case of non-i18n
1879         envs.
1880         (build_collating_symbol): Likewise.
1881         (build_equiv_class): Likewise.
1882         (build_charclass): Likewise.
1883         (re_compile_fastmap_iter): Likewise.
1884         (parse_bracket_exp): Likewise.
1885         (build_word_op): Likewise.
1886         (regfree): Don't use free_charset() in case of non-i18n envs.
1887         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
1888         re_token_type_t in case of non-i18n envs.
1889         Don't define re_charset_t in case of non-i18n envs.
1890         Change the type of wcs of re_string_t from wchar_t to wint_t,
1891         since we store also WEOF.
1892         * posix/regex_internal.c: (re_string_realloc_buffers): Change
1893         the type of wcs of re_string_t from wchar_t to wint_t.
1894         (re_string_reconstruct): Likewise.
1895         (create_ci_newstate): Don't use i18n related code in case of
1896         non-i18n envs.
1897         (create_cd_newstate): Likewise.
1898
1899 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
1900
1901         * iconv/loop.c: Fix typo.
1902
1903 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1904
1905         * inet/ether_line.c (ether_line): Fix a typo causing only
1906         lower 4 bits of each ethernet address byte being assigned.
1907         Don't modify what line points to.
1908         * inet/tst-ether_aton.c (main): Add ether_line tests.
1909
1910 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
1911
1912         * manual/filesys.texi: Don't make readlink example leak memory
1913         when readlink fails.
1914
1915 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
1916
1917         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
1918         some more security checks.
1919
1920 2002-05-17  David S. Miller  <davem@redhat.com>
1921
1922         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
1923
1924 2002-05-16  David S. Miller  <davem@redhat.com>
1925
1926         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
1927         (elf_machine_dynamic): Use it to force PIC register to be loaded.
1928         (elf_machine_load_address): Likewise.
1929         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
1930
1931         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
1932         is unaligned, do not forget to fully initialize %g1 magic value.
1933
1934         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
1935         register definitions and provide 32-bit variants of structures
1936         during 64-bit builds.
1937
1938         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
1939         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
1940         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
1941         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
1942         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
1943         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
1944         Do not clear implicit one bit here, it must be done post-rounding.
1945         Only pad to the left using left shift if value uses less than the
1946         available fractional bits.
1947
1948 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1949
1950         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
1951         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
1952         (shared-only-routines): Likewise.
1953         * sysdeps/powerpc/libgcc-compat.c: New file.
1954         * sysdeps/wordsize-32/cmpdi2.c: Removed.
1955         * sysdeps/wordsize-32/fixdfdi.c: Removed.
1956         * sysdeps/wordsize-32/fixsfdi.c: Removed.
1957         * sysdeps/wordsize-32/shdi3.c: Removed.
1958
1959 2002-05-16  Bruno Haible  <bruno@clisp.org>
1960
1961         * MakeTAGS (libc.pot): Don't sort the output.
1962         * po/header.pot: Update to match xgettext 0.11 output.
1963
1964 2002-05-16  Bruno Haible  <bruno@clisp.org>
1965
1966         * MakeTAGS (subdirs): Remove duplicates.
1967
1968 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1969
1970         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
1971         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1972         alias.
1973
1974 2002-05-19  Andreas Jaeger  <aj@suse.de>
1975
1976         * sysdeps/unix/sysv/linux/configure.in: Warn against an
1977         installation in /usr/local.
1978
1979 2002-05-16  Bruno Haible  <bruno@clisp.org>
1980
1981         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
1982         string as argument of #error.
1983
1984 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
1985
1986         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
1987         don't define static.  Remove old __realpath function.  TC1 of
1988         POSIX 2001 will allow the second parameter to be NULL.
1989         * stdlib/test-canon.c: Comment out test for NULL as second
1990         parameter of realpath.
1991
1992         * time/offtime.c (__offtime): Set errno if overflow is detected.
1993
1994         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
1995         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
1996         dl-brk and dl-sbrk.
1997
1998         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
1999         (fdimf): Likewise.
2000
2001 2002-05-15  Roland McGrath  <roland@frob.com>
2002
2003         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2004
2005 2002-05-12  Bruno Haible  <bruno@clisp.org>
2006
2007         * iconvdata/testdata/EUC-JISX0213: New file.
2008         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2009         * iconvdata/testdata/SHIFT_JISX0213: New file.
2010         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2011         * iconvdata/testdata/ISO-2022-JP-3: New file.
2012         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2013         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2014         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2015         contains comments indicating precomposed characters.
2016
2017 2002-04-21  Bruno Haible  <bruno@clisp.org>
2018
2019         * iconvdata/iso-2022-jp-3.c: New file.
2020         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2021         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2022         (LDFLAGS-ISO-2022-JP-3.so): New variable.
2023         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2024         (distribute): Add iso-2022-jp-3.c.
2025
2026 2002-05-12  Bruno Haible  <bruno@clisp.org>
2027
2028         * iconvdata/tst-table-to.c (main): Restore handling of
2029         transliterations, broken by last patch.
2030
2031 2002-05-12  Bruno Haible  <bruno@clisp.org>
2032
2033         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2034
2035 2002-05-12  Bruno Haible  <bruno@clisp.org>
2036
2037         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2038         when there is not enough room in the output buffer.
2039         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2040
2041 2002-04-20  Bruno Haible  <bruno@clisp.org>
2042
2043         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2044         macros.
2045         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2046         Also make this macro work if FROM_DIRECTION evaluates to 0.
2047         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2048         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2049         of consume_incomplete.
2050         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2051         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2052         4, not 8.
2053         * iconvdata/cp1258.c: Likewise.
2054         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2055         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2056         not 2.
2057         * iconvdata/ibm933.c: Likewise.
2058         * iconvdata/ibm935.c: Likewise.
2059         * iconvdata/ibm937.c: Likewise.
2060         * iconvdata/ibm939.c: Likewise.
2061         * iconvdata/iso-2022-cn.c: Define
2062         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2063         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
2064         * iconvdata/iso-2022-cn-ext.c: Likewise.
2065         * iconvdata/iso-2022-jp.c: Define
2066         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2067         {MIN,MAX}_NEEDED_{FROM,TO}.
2068         * iconvdata/tcvn5712-1.c: Define
2069         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2070         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
2071         * iconvdata/euc-jisx0213.c: Define
2072         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2073         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
2074         * iconvdata/shift_jisx0213.c: Likewise.
2075
2076 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2077
2078         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
2079         shdi3, fixdfdi, fixsfdi in csu dir.
2080         (shared-only-routines): Likewise.
2081         * sysdeps/wordsize-32/cmpdi2.c: New file.
2082         * sysdeps/wordsize-32/shdi3.c: New file.
2083         * sysdeps/wordsize-32/fixdfdi.c: New file.
2084         * sysdeps/wordsize-32/fixsfdi.c: New file.
2085         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
2086         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
2087         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
2088
2089         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
2090         Only use va_arg if the argument will be used [PR libc/3259].
2091
2092 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
2093
2094         * catgets/catgets.c (catopen): Free buffer if internal catalog
2095         open fails.
2096
2097 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
2098
2099         * debug/xtrace.sh: Make more robust.  For realtime tracking use
2100         non-buffering methods.
2101         * debug/pcprofiledump.c: Implement -u option.
2102         Patch by Roger Luethi <rl@hellgate.ch>.
2103
2104 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
2105
2106         * include/netinet/in.h (bindresvport_internal): Add prototype.
2107         * include/rpc/auth.h  (authunix_create_internal,
2108         authunix_create_default_internal, authnone_create_internal,
2109         authdes_pk_create_internal): Add prototypes.
2110         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
2111         clntudp_create_internal, clntudp_bufcreate_internal,
2112         clntunix_create_internal): Add prototypes.
2113         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
2114         svc_getreq_internal, svc_getreq_common_internal,
2115         svc_getreqset_internal, svc_getreq_poll_internal,
2116         svc_register_internal, svc_unregister_internal,
2117         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
2118         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
2119         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
2120         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
2121         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
2122         * inet/rcmd.c (rcmd_af): Use __listen.
2123         (rresvport_af): Use __bind.
2124         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
2125         authunix_create, authunix_create_default, authnone_create,
2126         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
2127         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
2128         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
2129         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
2130         _authenticate, add INTDEF after such function definitions.
2131         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
2132         __setsockopt, __getsockname instead of non-__ variants.
2133         * sunrpc/pmap_rmt.c: Likewise.
2134         * sunrpc/rtime.c: Likewise.
2135         * sunrpc/svc_udp.c: Likewise.
2136         * sunrpc/clnt_unix.c: Likewise.
2137         * sunrpc/svc_unix.c: Likewise.
2138         * sunrpc/bindrsvprt.c: Likewise.
2139         * sunrpc/svc_tcp.c: Likewise.
2140         * sunrpc/auth_none.c: Likewise.
2141         * sunrpc/clnt_raw.c: Likewise.
2142         * sunrpc/clnt_tcp.c: Likewise.
2143         * sunrpc/auth_unix.c: Likewise.
2144         * sunrpc/key_call.c: Likewise.
2145         * sunrpc/clnt_gen.c: Likewise.
2146         * sunrpc/pm_getmaps.c: Likewise.
2147         * sunrpc/clnt_simp.c: Likewise.
2148         * sunrpc/pmap_clnt.c: Likewise.
2149         * sunrpc/svc_run.c: Likewise.
2150         * sunrpc/svc.c: Likewise.
2151         * sunrpc/svc_simple.c: Likewise.
2152         * sunrpc/pm_getport.c: Likewise.
2153         * sunrpc/auth_des.c: Likewise.
2154         * sunrpc/svc_auth.c: Likewise.
2155         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
2156         __register_frame_info_table_bases, __deregister_frame_info_bases):
2157         Add INTDEF.
2158         (__register_frame_info_bases_internal,
2159         __register_frame_info_table_bases_internal,
2160         __deregister_frame_info_bases_internal): Add prototypes.
2161         (__register_frame_info, __register_frame): Use INTUSE in call to
2162         __register_frame_info_bases.
2163         (__register_frame_info_table): Similarly.
2164         (__deregister_frame_info, __deregister_frame): Similarly.
2165         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
2166         sendto as weak alias.
2167         * sysdeps/mach/hurd/sendto.c: Likewise.
2168         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
2169         recvfrom as weak alias.
2170         * sysdeps/mach/hurd/recvfrom.c: Likewise.
2171         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
2172         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
2173         recvmsg as weak alias.
2174         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
2175         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
2176         sendmsg as weak alias.
2177         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
2178         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
2179         setsockopt, add setsockopt as weak alias.
2180         * sysdeps/mach/hurd/setsockopt.c: Likewise.
2181         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
2182         weak alias.
2183         * sysdeps/mach/hurd/bind.c: Likewise.
2184         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
2185         as weak alias.
2186         * sysdeps/mach/hurd/listen.c: Likewise.
2187         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
2188         getsockname, add getsockname as weak alias.
2189         * sysdeps/mach/hurd/getsockname.c: Likewise.
2190         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
2191         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
2192         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
2193         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
2194         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
2195         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
2196         Add aliases.
2197         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2198         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2199         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2200         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2201         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
2202         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
2203         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
2204         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
2205         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
2206         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
2207         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
2208         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
2209
2210 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2211
2212         * locale/programs/localedef.h (show_archive_content): Add verbose
2213         argument.
2214         * locale/programs/localedef.c (main): Adjust caller.
2215         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
2216         (nameentcmp, dataentcmp): New functions.
2217         (xstrcmp): Remove.
2218         (show_archive_content): Print verbose listing with --list-archive -v.
2219
2220 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
2221
2222         * locale/programs/locarchive.c (open_archive): Take extra argument
2223         readonly.  If true open file with O_RDONLY and don't create the
2224         archive if it doesn't exist.
2225         Adapt all callers.
2226         (close_archive): Don't do anything if fd element is -1.
2227         * locale/programs/localedef.h (open_archive): Adjust prototype.
2228         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
2229         call.
2230
2231         * malloc/malloc.c (__posix_memalign): Correct check for size of
2232         alignment value [PR libc/3444].
2233
2234         * include/stdio.h: Remove references to old stdio implementation.
2235
2236         * libio/Makefile (bug-ungetwc2-ENV): Define.
2237
2238 2002-05-13  Roland McGrath  <roland@frob.com>
2239
2240         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
2241
2242         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
2243
2244 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
2245
2246         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2247         Allocate three, not two, more than LEN when appending '/.'.
2248         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
2249         if NAME ends with '/.' if it is shorter than 2 chars.
2250
2251 2002-05-12  Roland McGrath  <roland@frob.com>
2252
2253         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
2254         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
2255
2256         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
2257         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
2258
2259 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2260
2261         * sysdeps/ia64/Makefile: Remove extra endif.
2262         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
2263
2264 2002-05-10  Andreas Schwab  <schwab@suse.de>
2265
2266         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
2267
2268 2002-05-09  Andreas Jaeger  <aj@suse.de>
2269
2270         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
2271         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
2272         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
2273
2274         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
2275         * sysdeps/wordsize-64/glob.c: ...here.
2276         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
2277         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
2278         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
2279
2280 2002-05-08  Roland McGrath  <roland@frob.com>
2281
2282         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
2283         O_NOTRANS flag in "." lookup.
2284
2285 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
2286
2287         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
2288
2289 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
2290
2291         * locale/duplocale.c (__duplocale): Update special members only
2292         when allocation succeeded.
2293
2294 2002-05-03  Roland McGrath  <roland@frob.com>
2295
2296         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
2297         we can only build libc.so.0.3(GLIBC_2.2.6) now.
2298
2299 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2300
2301         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
2302         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
2303         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
2304         * sysdeps/ia64/ia64libgcc.S: New file.
2305
2306 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
2307
2308         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
2309
2310         * malloc/memusage.c: Distinguish anonymous mmap.
2311
2312 2002-05-01  Roland McGrath  <roland@frob.com>
2313
2314         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
2315         and use INTDEF on it.
2316         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
2317
2318         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
2319
2320         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
2321
2322 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
2323
2324         * malloc/memusage.c: Add support for tracking mmap & friends.
2325         * malloc/memusage.sh: Implement -m/--mmap option.
2326
2327 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
2328
2329         * locale/programs/locarchive.c (create_archive): Add archivefname
2330         argument, create fname from it.
2331         (enlarge_archive): Honour output_prefix.
2332         (open_archive): Likewise.
2333
2334 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
2335
2336         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
2337         too many stpcpy macros.
2338
2339 2002-04-26  Bruno Haible  <bruno@clisp.org>
2340
2341         * locale/programs/ld-collate.c (collate_read): Cast first argument
2342         for "%.*s" to int.
2343
2344 2002-04-26  Bruno Haible  <bruno@clisp.org>
2345
2346         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
2347         __dcngettext_internal): New declarations.
2348         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
2349         attribute declarations.
2350
2351 2002-04-30  Roland McGrath  <roland@frob.com>
2352
2353         Removed old GNU stdio implementation; GNU libio is now the only option.
2354         * configure.in: Removed --enable-libio option and @stdio@ subst var.
2355         Define USE_IN_LIBIO unconditionally.
2356         * configure: Regenerated.
2357         * Makeconfig (stdio): Set to libio by default.
2358         * config.make.in (stdio): Variable removed.
2359         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
2360         * sysdeps/unix/sysv/linux/configure: Regenerated.
2361         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
2362         * sysdeps/mach/hurd/configure: Regenerated.
2363         * stdio/.cvsignore: File removed.
2364         * stdio/Makefile: File removed.
2365         * stdio/Versions: File removed.
2366         * stdio/__fbufsize.c: File removed.
2367         * stdio/__flbf.c: File removed.
2368         * stdio/__fpending.c: File removed.
2369         * stdio/__fpurge.c: File removed.
2370         * stdio/__freadable.c: File removed.
2371         * stdio/__freading.c: File removed.
2372         * stdio/__fsetlocking.c: File removed.
2373         * stdio/__fwritable.c: File removed.
2374         * stdio/__fwriting.c: File removed.
2375         * stdio/clearerr.c: File removed.
2376         * stdio/fclose.c: File removed.
2377         * stdio/fcloseall.c: File removed.
2378         * stdio/feof.c: File removed.
2379         * stdio/ferror.c: File removed.
2380         * stdio/fflush.c: File removed.
2381         * stdio/fgetc.c: File removed.
2382         * stdio/fgetpos.c: File removed.
2383         * stdio/fgets.c: File removed.
2384         * stdio/fileno.c: File removed.
2385         * stdio/fmemopen.c: File removed.
2386         * stdio/fopen.c: File removed.
2387         * stdio/fopncook.c: File removed.
2388         * stdio/fputc.c: File removed.
2389         * stdio/fputs.c: File removed.
2390         * stdio/fread.c: File removed.
2391         * stdio/freopen.c: File removed.
2392         * stdio/fseek.c: File removed.
2393         * stdio/fsetpos.c: File removed.
2394         * stdio/ftell.c: File removed.
2395         * stdio/fwrite.c: File removed.
2396         * stdio/getc.c: File removed.
2397         * stdio/getchar.c: File removed.
2398         * stdio/getdelim.c: File removed.
2399         * stdio/gets.c: File removed.
2400         * stdio/glue.c: File removed.
2401         * stdio/internals.c: File removed.
2402         * stdio/linewrap.c: File removed.
2403         * stdio/linewrap.h: File removed.
2404         * stdio/memstream.c: File removed.
2405         * stdio/newstream.c: File removed.
2406         * stdio/obstream.c: File removed.
2407         * stdio/putc.c: File removed.
2408         * stdio/putchar.c: File removed.
2409         * stdio/puts.c: File removed.
2410         * stdio/rewind.c: File removed.
2411         * stdio/setbuf.c: File removed.
2412         * stdio/setbuffer.c: File removed.
2413         * stdio/setlinebuf.c: File removed.
2414         * stdio/setvbuf.c: File removed.
2415         * stdio/stdio.h: File removed.
2416         * stdio/ungetc.c: File removed.
2417         * stdio/vasprintf.c: File removed.
2418         * stdio/vscanf.c: File removed.
2419         * stdio/vsnprintf.c: File removed.
2420         * stdio/vsprintf.c: File removed.
2421         * stdio/vsscanf.c: File removed.
2422         * sysdeps/generic/defs.c: File removed.
2423         * sysdeps/generic/fdopen.c: File removed.
2424         * sysdeps/generic/pipestream.c: File removed.
2425         * sysdeps/generic/stdio_init.c: File removed.
2426         * sysdeps/generic/sysd-stdio.c: File removed.
2427         * sysdeps/generic/vdprintf.c: File removed.
2428         * sysdeps/mach/hurd/defs.c: File removed.
2429         * sysdeps/mach/hurd/fdopen.c: File removed.
2430         * sysdeps/mach/hurd/pipestream.c: File removed.
2431         * sysdeps/mach/hurd/stdio_init.c: File removed.
2432         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
2433         * sysdeps/mach/hurd/vdprintf.c: File removed.
2434         * sysdeps/posix/defs.c: File removed.
2435         * sysdeps/posix/fdopen.c: File removed.
2436         * sysdeps/posix/pipestream.c: File removed.
2437         * sysdeps/posix/stdio_init.c: File removed.
2438         * sysdeps/posix/vdprintf.c: File removed.
2439         * sysdeps/unix/pipestream.c: File removed.
2440         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
2441         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
2442         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
2443
2444 2002-04-29  Roland McGrath  <roland@frob.com>
2445
2446         * include/libc-symbols.h (link_warning): Use `unused' attribute.
2447
2448 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
2449
2450         * sysdeps/generic/tls.h: Describe what must be defined.
2451
2452         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
2453         glob_in_dir [PR libc/3385].
2454         * posix/globtest.sh: Add test case.
2455
2456         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
2457         //TRANSLIT twice.
2458
2459 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
2460
2461         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
2462         _internal symbol handling.
2463         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2464
2465 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
2466
2467         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
2468         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
2469
2470 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
2471
2472         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
2473         not _LIBC and RE_ENABLE_I18N.
2474         (build_range_exp): Implement for not _LIBC.
2475         (build_collating_symbol): Likewise.
2476         (parse_bracket_exp): Unify redundant error handlings.
2477         Don't erase mbcset for non matching list in multibyte envs.
2478         (build_word_op): Add '_' to matching list for \w operator.
2479         * posix/regex_internal.c (re_string_construct): Invoke
2480         build_upper_buffer in case of not RE_ENABLE_I18N.
2481         (re_string_reconstruct): Don't touch cur_state in case of not
2482         RE_ENABLE_I18N.
2483         * posix/regex_internal.h (attribute_hidden): New macro in case of
2484         not _LIBC.
2485         (re_charset_t): Define range_starts/ends in case of not _LIBC.
2486         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
2487         RE_ENABLE_I18N.
2488         (transit_state_mb): Likewise.
2489         (check_node_accept_bytes): Implement the code evaluating range
2490         expression in case of not _LIBC.
2491         (find_collation_sequence_value): Hide in case of not _LIBC.
2492
2493 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
2494
2495         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
2496         i386/semctl.c.
2497         (__old_semctl, __new_semctl): Only use va_arg if the argument will
2498         be used.
2499
2500 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
2501
2502         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
2503
2504         * sysdeps/ia64/strncpy.S: Fix recovery code.
2505         Patch by David Mosberger <davidm@hpl.hp.com>.
2506
2507 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
2508
2509         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
2510         GLIBC_2.2.6.
2511
2512 2002-04-14  Bruno Haible  <bruno@clisp.org>
2513
2514         * posix/regex.c (re_max_failures): Add back symbol for binary
2515         compatibility.
2516
2517 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
2518
2519         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
2520         of buffer building functions.
2521         * posix/regex_internal.c (re_string_allocate): New function.
2522         (re_string_realloc_buffers): New function.
2523         (re_string_skip_chars): New function.
2524         (re_string_reconstruct): New function.
2525         (re_string_construct): Adapt it to new interface of buffer building
2526         functions.
2527         (re_string_construct_common): Likewise.
2528         (build_wcs_buffer): Likewise.
2529         (build_wcs_upper_buffer): Likewise.
2530         (build_upper_buffer): Likewise.
2531         (re_string_translate_buffer): Likewise.
2532         (re_string_context_at): Adapt it to variable length buffers.
2533         * posix/regex_internal.h (re_string_t): Add new fields to handle
2534         variable length buffers.
2535         (re_match_context_t): Likewise.
2536         * posix/regexec.c (re_search_internal): Adapt it to new interface
2537         of re_string_t and re_match_context_t.
2538         (acquire_init_state_context): Likewise.
2539         (check_matching): Likewise.
2540         (check_halt_state_context): Likewise.
2541         (proceed_next_node): Likewise.
2542         (set_regs): Likewise.
2543         (sift_states_backward): Likewise.
2544         (clean_state_log_if_need): Likewise.
2545         (sift_states_iter_mb): Likewise.
2546         (sift_states_iter_bkref): Likewise.
2547         (add_epsilon_backreference): Likewise.
2548         (transit_state): Likewise.
2549         (transit_state_sb): Likewise.
2550         (transit_state_mb): Likewise.
2551         (transit_state_bkref): Likewise.
2552         (transit_state_bkref_loop): Likewise.
2553         (check_node_accept): Likewise.
2554         (match_ctx_init): Likewise.
2555         (extend_buffers): New function.
2556
2557 2002-04-21  Bruno Haible  <bruno@clisp.org>
2558
2559         * iconvdata/tst-table.sh: For the second check, use the truncated
2560         GB18030 charmap table, like for the first check.
2561
2562 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
2563
2564         * elf/dl-load.c (open_verify): Correct __lseek parameters.
2565         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
2566
2567 2002-04-23  H.J. Lu  <hjl@gnu.org>
2568
2569         * include/math.h (isfinite): Fix a typo.
2570
2571 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
2572
2573         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
2574         which is created by the test suite.
2575
2576 2002-04-20  Bruno Haible  <bruno@clisp.org>
2577
2578         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
2579         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
2580
2581 2002-04-20  Bruno Haible  <bruno@clisp.org>
2582
2583         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
2584         to avoid gcc warning.
2585
2586 2002-04-20  Bruno Haible  <bruno@clisp.org>
2587
2588         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
2589         of data->__statep->__count.
2590
2591 2002-04-20  Bruno Haible  <bruno@clisp.org>
2592
2593         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
2594         tag characters.
2595         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
2596
2597 2002-04-24  Roland McGrath  <roland@frob.com>
2598
2599         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
2600         use END macro instead of our own .end directive.
2601         Use `callsys' insn mnemonic instead of `call_pal'.
2602
2603         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
2604
2605         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
2606         macro; we need this for Hurd.
2607
2608         Log entry was missing for 2002/03/24 commit of rev 1.8,
2609         goes with 2002-03-17 changes.
2610         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
2611         (sysdep_routines): Append ioperm here.
2612         (sysdep_headers): Append sys/io.h here.
2613
2614 2002-04-23  Roland McGrath  <roland@frob.com>
2615
2616         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
2617         * sysdeps/mach/hurd/sendto.c: Likewise.
2618         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
2619         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
2620         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
2621
2622 2002-04-22  Roland McGrath  <roland@frob.com>
2623
2624         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
2625         failure from i386_io_perm_* RPCs to ENOSYS.
2626
2627 2002-04-22  Andreas Jaeger  <aj@suse.de>
2628
2629         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
2630
2631         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
2632
2633         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
2634         register instead of destroying %rbx.
2635
2636 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
2637
2638         * string/string.h: Declare strerror_r also for XPG6.
2639
2640 2002-04-19  Roland McGrath  <roland@frob.com>
2641
2642         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
2643
2644 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
2645
2646         * Makefile: Add handling of xtests and xcheck targets.
2647         * MakeTAGS: Likewise.
2648         * Makeconfig: Likewise.
2649         * Makerules: Likewise.
2650         * Rules: Likewise.
2651         * manual/Makefile: Likewise.
2652         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
2653         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
2654
2655 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
2656
2657         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
2658         authnone_private_s.
2659         * sunrpc/auth_none.c: Include bits/libc-lock.h.
2660         Delete #ifdef _RPC_THREAD_SAFE_ block.
2661         (authnone_private): Make a struct, not a pointer to struct.
2662         (authnone_private_guard): New once-control variable.
2663         (authnone_create_once): New function, split out of
2664         authnone_create.  No need to allocate memory.
2665         (authnone_create): Just call authnone_create_once via
2666         __libc_once, then return &authnone_private->no_client.
2667         (authnone_marshal): Access private data via CLIENT argument,
2668         not authnone_private pointer.
2669         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
2670         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
2671         authnone_private_s.
2672
2673 2002-04-12  H.J. Lu  <hjl@gnu.org>
2674
2675         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
2676
2677 2002-04-18  Bruno Haible  <bruno@clisp.org>
2678
2679         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2680         FROM_DIRECTION): Make the FROM direction stateless.
2681         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2682         FROM_DIRECTION): Likewise.
2683
2684 2002-04-15  Bruno Haible  <bruno@clisp.org>
2685
2686         * iconvdata/JISX0213.TXT: New file.
2687         * iconvdata/jisx0213.h: New file.
2688         * iconvdata/jisx0213.c: New file.
2689         * iconvdata/euc-jisx0213.c: New file.
2690         * iconvdata/shift_jisx0213.c: New file.
2691         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
2692         * iconvdata/EUC-JISX0213.precomposed: New file.
2693         * iconvdata/SHIFT_JISX0213.precomposed: New file.
2694         * iconvdata/SHIFT_JISX0213.irreversible: New file.
2695         * iconvdata/tst-table-to.c (main): Make it work for encodings for
2696         which the "to" direction is stateful.
2697         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
2698         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
2699         SHIFT_JISX0213.
2700         (libJISX0213-routines): New variable.
2701         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
2702         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
2703         (LDFLAGS-libJISX0213.so): New variable.
2704         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
2705         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
2706         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
2707
2708 2002-04-15  Bruno Haible  <bruno@clisp.org>
2709
2710         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
2711         uint32_t.  Update to Unicode 3.2.
2712         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
2713         (BODY for TO_LOOP): Handle the ASCII range specially.
2714         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
2715         * iconvdata/testdata/BIG5HKSCS: Remove a character.
2716         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
2717
2718 2002-04-15  Bruno Haible  <bruno@clisp.org>
2719
2720         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
2721         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
2722
2723 2002-04-15  Bruno Haible  <bruno@clisp.org>
2724
2725         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
2726         (ucs4_to_cns11643): Update.
2727         * iconvdata/cns11643.c: Update to Unicode 3.2.
2728         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
2729         __cns11643_from_ucs4p2_tab): Regenerated.
2730         (__cns11643_from_ucs4p2c_tab): New array.
2731         * iconvdata/cvs11643l1.c: Update comments.
2732         * iconvdata/EUC-TW.irreversible: Remove two entries.
2733
2734 2002-04-15  Bruno Haible  <bruno@clisp.org>
2735
2736         * locale/C-translit.h.in: Update to Unicode 3.2.
2737         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
2738         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
2739
2740 2002-04-15  Bruno Haible  <bruno@clisp.org>
2741
2742         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
2743         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
2744
2745 2002-04-15  Bruno Haible  <bruno@clisp.org>
2746
2747         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
2748         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
2749         always one byte, not 0 bytes in some cases and 2 bytes in others.
2750
2751         * iconvdata/tst-table-from.c (main): Correct the usage message.
2752
2753 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
2754
2755         * posix/regcomp.c (parse_expression): Fix incorrect error code.
2756         (parse_dup_op): Fix error handling like "a{}".
2757         (parse_bracket_exp): Add error handling.
2758         (fetch_number): Add error handling for "a{<very_large_number>}".
2759
2760 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
2761
2762         * posix/regcomp.c (parse_bracket_symbol): Add error handling
2763         in case that the symbol name is too long.
2764         (build_charclass): Handle [:lower:]/[:uppper:] correctly
2765         in case of REG_ICASE.
2766
2767 2002-04-19  Andreas Jaeger  <aj@suse.de>
2768
2769         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
2770         <hartvige@mips.com>.
2771
2772 2002-04-15  H.J. Lu  <hjl@gnu.org>
2773
2774         * include/math.h (__finitel_internal): Declare only if
2775         __NO_LONG_DOUBLE_MATH is not defined.
2776         (__isinfl_internal): Likewise.
2777         (__isnanl_internal): Likewise.
2778
2779         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
2780         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2781         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2782         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2783         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2784         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2785         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2786
2787         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
2788         __fcntl_internal.
2789
2790         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
2791         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
2792
2793 2002-04-15  Bruno Haible  <bruno@clisp.org>
2794
2795         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
2796         (BODY for TO_LOOP): Likewise.
2797         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
2798         * iconvdata/tst-table.sh: Add support for encodings which contain
2799         precomposed Unicode characters, known to the iconv converter in both
2800         directions but not listed in the charmap.
2801         * iconvdata/IBM856.irreversible: New file.
2802         * iconvdata/IBM922.irreversible: New file.
2803         * iconvdata/IBM1132.irreversible: New file.
2804         * iconvdata/IBM1133.irreversible: New file.
2805         * iconvdata/IBM1160.irreversible: New file.
2806         * iconvdata/IBM1161.irreversible: New file.
2807         * iconvdata/IBM1163.irreversible: New file.
2808         * iconvdata/IBM1164.irreversible: New file.
2809         * iconvdata/ARMSCII-8.irreversible: New file.
2810         * iconvdata/TCVN5712-1.precomposed: New file.
2811         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
2812         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
2813         ARMSCII-8, TCVN5712-1.
2814         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
2815         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
2816         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
2817         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
2818
2819 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2820
2821         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
2822         for EVENING69.  Include offsets in TZ environment variable.
2823
2824 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
2825
2826         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
2827         avoid compiler warnings.
2828
2829         * locale/programs/localedef.c (main): Always call
2830         construct_output_path.
2831
2832         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
2833
2834         * locale/programs/locfile.c (to_archive): New variable.  To collect
2835         data which has to be added to the locale archive.
2836         (write_all_categories): Take new third parameter with locale name.
2837         Unless no_archive flag set add new locale data to the archive
2838         (write_locale_data): Unless no-archive flag set store generated data
2839         in to_archive data structure instead of generation output file.
2840         Add new parameter with locale category index.
2841         * locale/programs/locfile.h: Add new parameters in declaractions of
2842         write_all_categories and write_locale_data.
2843         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
2844         --add-to-archive, and --delete-from-archive options.  Pass extra
2845         parameter to write_all_categories.
2846         * locale/programs/localedef.h: Add prototypes for functions in
2847         locarchive.c.
2848         * locale/locarchive.h: New file.
2849         * locale/programs/locarchive.c: New file.
2850         * locale/Makefile (distribute): Add programs/locarchive.c and
2851         locarchive.h.
2852         (localedef-modules): Add md5 and locarchive.
2853         Add vpath to crypt subdir for md5.c.
2854
2855         * locale/programs/ld-address.c: Pass locale category ID as new second
2856         parameter to write_locale_data.
2857         * locale/programs/ld-collate.c: Likewise.
2858         * locale/programs/ld-ctype.c: Likewise.
2859         * locale/programs/ld-identification.c: Likewise.
2860         * locale/programs/ld-measurement.c: Likewise.
2861         * locale/programs/ld-messages.c: Likewise.
2862         * locale/programs/ld-monetary.c: Likewise.
2863         * locale/programs/ld-name.c: Likewise.
2864         * locale/programs/ld-numeric.c: Likewise.
2865         * locale/programs/ld-paper.c: Likewise.
2866         * locale/programs/ld-telephone.c: Likewise.
2867         * locale/programs/ld-time.c: Likewise.
2868
2869         * locale/simple-hash.c: Move compute_hashval function from here...
2870         * locale/hashval.h: ...to here.  New file.
2871         * locale/simple-hash.h: Add prototype for compute_hashval.
2872
2873         * include/libintl.h: Minor cleanups.
2874
2875 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
2876
2877         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
2878
2879 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
2880
2881         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
2882
2883 2002-04-14  Bruno Haible  <bruno@clisp.org>
2884
2885         * locale/programs/charmap.c (charmap_read): Don't access result if
2886         result == NULL.
2887
2888 2002-02-17  Andreas Schwab  <schwab@suse.de>
2889
2890         * elf/reldep7.c: New file.
2891         * elf/reldep7mod1.c: New file.
2892         * elf/reldep7mod2.c: New file.
2893         * elf/Makefile: Add rules to build and run reldep7.
2894
2895 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
2896
2897         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
2898         the end of the function.  Pass original flags to recursive call if
2899         add_dependency failed.
2900         (_dl_lookup_versioned_symbol): Likewise.
2901
2902 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
2903
2904         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
2905         early, but check whether it overflowed afterwards.
2906         * time/tst-mktime.c (main): Add new tests.
2907
2908 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
2909
2910         * debug/xtrace.sh: Fix program name in help message.
2911         Patch by Roger Luethi <rl@hellgate.ch>.
2912
2913         * include/sys/stat.h: Add prototypes for __lxstat_internal and
2914         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
2915         NOT_IN_libc.
2916         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
2917         * sysdeps/mach/hurd/lxstat.c: Likewise.
2918         * sysdeps/unix/common/lxstat.c: Likewise.
2919         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
2920         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2921         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2922         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2923         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2924         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
2925         * sysdeps/mach/hurd/lxstat64.c: Likewise.
2926         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
2927         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2928
2929         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
2930         prototypes.  Add __mbrlen and __mbrtowc macros.
2931         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
2932         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
2933
2934         * include/unistd.h: Add prototype for __write_internal and add
2935         __libc_write macro is SHARED.
2936         * sysdeps/generic/write.c: Use INTDEF for __write.
2937         * sysdeps/mach/hurd/write.c: Likewise.
2938         * sysdeps/unix/sysv/aix/write.c: Likewise.
2939         * sysdeps/unix/syscalls.list: Add __libc_write alias.
2940
2941         * assert/assert.c: Replace STR_N_SIZE with something usable in
2942         macro arguments.
2943         * assert/assert-perr.c: Likewise.
2944
2945         * include/sys/socket.h: Declare __libc_sa_len_internal and define
2946         SA_LEN macro to use it if not NOT_IN_libc.
2947         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
2948
2949         * include/fcntl.h: Declare __open_internal and define __open and
2950         __libc_open macros if not NOT_IN_libc.
2951         * sysdeps/generic/open.c: Use INTDEF for __open.
2952         * sysdeps/mach/hurd/open.c: Likewise.
2953         * sysdeps/unix/sysv/aix/open.c: Likewise.
2954         * sysdeps/unix/syscalls.list: Add __open_internal alias.
2955
2956         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
2957         has correct number.
2958
2959         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
2960         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
2961         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2962         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2963
2964         * include/wctype.h: Declare __iswalpha_l_internal,
2965         __iswdigit_l_internal, __iswspace_l_internal,
2966         __iswxdigit_l_internal, and __iswctype_internal.  Define
2967         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
2968         __iswxdigit_l macros if not NOT_IN_libc.
2969         * wctype/iswctype.c: Use INTDEF for __iswctype.
2970         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
2971
2972         * include/math.h: Declare __isinf_internal, __isinfl_internal,
2973         __isnan_internal, and __isnanl_internal.
2974         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
2975         __isnan, and __isnanl.
2976         * stdio-common/printf_size.c: Likewise.
2977         * sysdeps/generic/printf_fphex.c: Likewise.
2978         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
2979         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2980         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
2981         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
2982         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2983         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2984         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2985         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2986         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2987         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2988         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2989         * sysdeps/m68k/s_isinfl.c: Likewise.
2990         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
2991         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2992
2993         * include/sys/time.h: Declare __gettimeofday_internal and define
2994         __gettimeofday macro if not NOT_IN_libc.
2995         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
2996         * sysdeps/mach/gettimeofday.c: Likewise.
2997         * sysdeps/posix/gettimeofday.c: Likewise.
2998         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2999         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
3000         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3001         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
3002
3003         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
3004         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
3005         Remove __lstat and __fstat inline functions.
3006         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
3007         * sysdeps/mach/hurd/fxstat.c: Likewise.
3008         * sysdeps/unix/fxstat.c: Likewise.
3009         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
3010         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
3011         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3012         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3013         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3014         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
3015         * sysdeps/mach/hurd/fxstat64.c: Likewise.
3016         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
3017         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3018
3019         * include/unistd.h: Declare __getpid_internal and define
3020         __getpid macro if not NOT_IN_libc.
3021         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
3022         * sysdeps/generic/getpid.c: Likewise.
3023         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
3024         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
3025
3026         * include/unistd.h: Declare __getpgid_internal and define
3027         __getpgid macro if not NOT_IN_libc.
3028         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
3029         * sysdeps/mach/hurd/getpgid.c: Likewise.
3030         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
3031         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3032         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3033         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
3034
3035         * include/unistd.h: Declare __getpagesize_internal and define
3036         __getpagesize macro if not NOT_IN_libc.
3037         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
3038         __getpagesize.
3039         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
3040         * sysdeps/mach/getpagesize.c: Likewise.
3041         * sysdeps/posix/getpagesize.c: Likewise.
3042         * sysdeps/unix/getpagesize.c: Likewise.
3043         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3044         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3045         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
3046         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
3047
3048 2002-04-13  Andreas Jaeger  <aj@suse.de>
3049
3050         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
3051         as clobber to reduce register pressure.
3052         (__strpbrk_cg): Likewise.
3053         (__mempcpy_by4): Likewise.
3054         (__strstr_cg): Likewise.
3055         Add prototype for __memrchr.
3056
3057 2002-04-13  Andreas Schwab  <schwab@suse.de>
3058
3059         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
3060         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3061         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3062
3063 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
3064
3065         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
3066         check whether the caller prefers getting the most recent version of
3067         a symbol of the earliest version.
3068         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
3069         _dl_do_lookup to also take the new parameter and pass it on.
3070         Change 'explicit' parameter of _dl_lookup_symbol and
3071         _dl_lookup_versioned_symbol to flags.  Adjust tests.
3072         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3073         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
3074         _dl_lookup_versioned_symbol.
3075         * elf/dl-reloc.c: Likewise.
3076         * elf/dl-runtime.c: Likewise.
3077         * elf/dl-sym.c: Likewise.
3078         * sysdeps/mips/dl-machine.h: Likewise.
3079
3080 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
3081
3082         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
3083         in a token.
3084         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
3085
3086 2002-04-10  Andreas Jaeger  <aj@suse.de>
3087
3088         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
3089
3090         * include/argz.h: Remove extra char from last patch.
3091
3092 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
3093
3094         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
3095         * sysdeps/unix/sysv/aix/chown.c: Likewise.
3096         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
3097         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3098         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3099         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
3100         __chown_internal.
3101         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3102
3103         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
3104         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
3105         * intl/ngettext.c: Likewise.
3106
3107         * include/sys/socket.h: Declare __connect_internal and define
3108         __connect macro if not NOT_IN_libc.
3109         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
3110         * sysdeps/unix/sysv/aix/connect.c: Likewise.
3111         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
3112
3113         * include/unistd.h: Declare __close_internal and define __close macro
3114         if not NOT_IN_libc.
3115         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
3116         WJUMP3): Add extra parenthesis to avoid expanding element names with
3117         macors like __close.
3118         * sysdeps/unix/syscalls.list: Add __close_internal alias.
3119
3120         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
3121         if not NOT_IN_libc.
3122         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
3123         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
3124         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
3125
3126         * include/unistd.h: Declare __fork_internal and define __fork macro
3127         if not NOT_IN_libc.
3128         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
3129         * sysdeps/unix/sysv/aix/fork.c: Likewise.
3130         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
3131
3132         * include/stdio_ext.h: Declare __fsetlocking_internal and define
3133         __fsetlocking macro to use it if not NOT_IN_libc.
3134         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
3135
3136         * libio/__fbufsize.c: Correct copyright.
3137         * libio/__flbf.c: Likewise.
3138         * libio/__fpending.c: Likewise.
3139         * libio/__fpurge.c: Likewise.
3140         * libio/__freadable.c: Likewise.
3141         * libio/__freading.c: Likewise.
3142         * libio/__fsetlocking.c: Likewise.
3143         * libio/__fwritable.c: Likewise.
3144         * libio/__fwriting.c: Likewise.
3145
3146         * include/stdio.h: Declare __asprintf_internal and define __asprintf
3147         macro to use it if not NOT_IN_libc.
3148         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
3149
3150         * include/mntent.h: Declare __setmntent_internal,
3151         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
3152         __getmntent_r, and __endmntent macros to use these functions if not
3153         NOT_IN_libc.
3154         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
3155         __endmntent.
3156
3157         * include/math.h: Declare __finite_internal, __finitef_internal, and
3158         __finitel_internal.  Redefine isfinite macro if in libc or libm using
3159         these functions.
3160         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
3161         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
3162         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
3163         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
3164         * sysdeps/i386/fpu/s_finitef.S: Likewise.
3165         * sysdeps/i386/fpu/s_finitel.S: Likewise.
3166         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3167         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3168         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3169         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3170
3171         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
3172         to use this function if not NOT_IN_libc.
3173         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
3174         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
3175         * sysdeps/mach/hurd/fcntl.c: Likewise.
3176         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3177         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3178
3179         * include/argz.h: Declare __argz_count_internal and
3180         __argz_stringify_internal.
3181         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
3182         __argz_stringify.
3183         * string/argz-count.c: Use INTDEF for __argz_count.
3184         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
3185
3186         * include/stdlib.h: Declare __cxa_atexit_internal and define
3187         __cxa_atexit macro if not NOT_IN_libc.
3188         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
3189         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
3190
3191         * assert/assert.c: Use INTDEF for __assert_fail.
3192         * assert/__assert.c: Use INTUSE for call to __assert_fail.
3193         * include/assert.h: Declare __assert_fail_internal.
3194
3195         * extra-lib.mk: Mark assignment to lib with override.
3196
3197 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
3198
3199         * Makerules: Use cppflags-iterator.mk to add defines for all test
3200         source files.
3201
3202 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3203
3204         * elf/elf.h: Define R_SH_TLS_xxx macros.
3205         * elf/rtld.c: Remove an extra parenthesis.
3206         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
3207         TLS_GD macros.
3208         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
3209         * sysdeps/sh/dl-lookupcfg.h: New file.
3210         * sysdeps/sh/dl-tls.h: New file.
3211         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
3212         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
3213         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
3214         R_SH_TLS_TPOFF32 relocations.
3215
3216 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
3217
3218         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
3219         of NOT_IN_LIBC.
3220         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
3221         * include/stdlib.h: Likewise.
3222
3223 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
3224
3225         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
3226         instead of _RTLD_LOCAL.
3227         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
3228         * include/unistd.h: Likewise.
3229         * sysdeps/generic/ldsodefs.h: Likewise.
3230
3231         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
3232         if in libc or ld.so.
3233
3234 2002-04-08  Andreas Jaeger  <aj@suse.de>
3235
3236         * elf/cache.c (print_entry): Support x86-64.
3237
3238 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
3239
3240         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
3241         with one accessing the locale data structures directly.
3242         * stdio-common/printf-prs.c: Include localeinfo.h for new
3243         MB_CUR_MAX definition.
3244
3245         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
3246         is the name of the source file without extension.
3247         * Makefile (distribute): Add cppflags-iterator.mk.
3248         * cppflags-iterator.mk: New file.
3249         * extra-lib.mk: For the sources of the library run
3250         cppflags-iterator.mk.
3251
3252         * include/libintl.h: Declare __dcgettext_internal and
3253         _libc_intl_domainname_internal.  Define __dcgettext using these
3254         two symbols if used in libc itself.
3255         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
3256         _libc_intl_domainname_internal.
3257         * argp/argp-parse.c: Likewise.
3258         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
3259         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
3260         * intl/gettext.c: Likewise.
3261         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
3262         alias.
3263         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
3264         __dcgettext.
3265         * posix/regex_internal.c (gettext): Likewise.
3266
3267 2002-04-08  Andreas Jaeger  <aj@suse.de>
3268
3269         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
3270
3271         * sysdeps/x86_64/fpu/s_llrint.S: New.
3272         * sysdeps/x86_64/fpu/s_llrintf.S: New.
3273         * sysdeps/x86_64/fpu/s_llrintl.S: New.
3274         * sysdeps/x86_64/fpu/s_lrint.S: New.
3275         * sysdeps/x86_64/fpu/s_lrintf.S: New
3276         * sysdeps/x86_64/fpu/s_lrintl.S: New.
3277
3278 2002-04-08  Roland McGrath  <roland@frob.com>
3279
3280         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
3281         widening __hurd_fail value.
3282
3283 2002-04-07  Roland McGrath  <roland@frob.com>
3284
3285         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
3286         <mach/machine/alpha_instruction.h>.
3287         (_hurd_setup_sighandler): Take proper arguments for current decls.
3288         Update code to use _hurdsig_catch_fault.
3289         Use `callsys' instruction instead of `call_pal'.
3290         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
3291
3292         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
3293         (ALIGN, at, AT, fp): New macros.
3294
3295 2002-04-06  Roland McGrath  <roland@frob.com>
3296
3297         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
3298
3299         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
3300         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
3301
3302         * sysdeps/mach/hurd/bind.c: Use prototype definition.
3303         * sysdeps/mach/hurd/connect.c: Likewise.
3304         * sysdeps/mach/hurd/getsockopt.c: Likewise.
3305         * sysdeps/mach/hurd/setsockopt.c: Likewise.
3306
3307         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
3308         __msg_sig_post RPC.
3309
3310         * hurd/catch-exc.c: Use integer_t instead of int.
3311         * hurd/hurdfault.c: Likewise.
3312
3313         * sysdeps/mach/hurd/alpha/exc2signal.c
3314         (_hurd_exception2signal): Rewritten.
3315         * sysdeps/mach/hurd/alpha/longjmp-ts.c
3316         (_hurd_longjmp_thread_state): Rewritten.
3317
3318 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
3319
3320         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
3321         DB_LOOKUP_FCT prototype.
3322         * nss/getXXent_r.c: Likewise.
3323         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
3324         * inet/getaliasname_r.c: Likewise.
3325         * inet/getnetbyad_r.c: Likewise.
3326         * inet/getnetbynm_r.c: Likewise.
3327         * inet/getnetent_r.c: Likewise.
3328         * inet/getproto_r.c: Likewise.
3329         * inet/getprtent_r.c: Likewise.
3330         * inet/getprtname_r.c: Likewise.
3331         * inet/getrpcbyname_r.c: Likewise.
3332         * inet/getrpcbynumber_r.c: Likewise.
3333         * inet/getrpcent_r.c: Likewise.
3334         * inet/getservent_r.c: Likewise.
3335         * inet/getsrvbynm_r.c: Likewise.
3336         * inet/getsrvbypt_r.c: Likewise.
3337         * shadow/getspent_r.c: Likewise.
3338         * shadow/getspnam_r.c: Likewise.
3339
3340         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
3341
3342         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
3343         Use i686-friendly PIC code.
3344         * sysdeps/i386/elf/setjmp.S: Likewise.
3345
3346         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
3347
3348         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
3349         list.
3350         * elf/Versions: Remove it here.
3351
3352 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
3353
3354         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
3355         direction.  Reported by H . J . Lu <hjl@lucon.org>.
3356
3357 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
3358
3359         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
3360         test just before the test runs.
3361         * intl/tst-translit.sh: Likewise.
3362         * intl/tst-codeset.sh: Likewise.
3363
3364         * timezone/zic.c: Update from tzcode2002c.
3365         * timezone/asia: Update from tzdata2002c.
3366         * timezone/backward: Likewise.
3367         * timezone/europe: Likewise.
3368         * timezone/northamerica: Likewise.
3369         * timezone/northamerica: Likewise.
3370         * timezone/northamerica: Likewise.
3371         * timezone/southamerica: Likewise.
3372         * timezone/zone.tab: Likewise.
3373
3374 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
3375
3376         * sysdeps/generic/brk.c (__curbrk): Declare.
3377         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
3378         * sysdeps/generic/dl-sbrk.c: Likewise.
3379         * sysdeps/unix/arm/dl-brk.S: New file.
3380         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
3381         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
3382         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
3383         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
3384         * sysdeps/unix/i386/dl-brk.S: New file.
3385         * sysdeps/unix/mips/dl-brk.S: New file.
3386         * sysdeps/unix/sparc/dl-brk.S: New file.
3387         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
3388         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
3389         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
3390         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
3391
3392 2002-04-03  Andreas Schwab  <schwab@suse.de>
3393
3394         * Makefile (headers): Add gnu/lib-names.h here instead of
3395         install-others.
3396         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
3397         installation rule.
3398         (install-headers): Add dependency on install-headers-nosubdir.
3399         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
3400         instead of install-others.
3401         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
3402         installation rule.
3403
3404 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
3405
3406         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
3407         Reported by Sam Roberts <sroberts@uniserve.com>.
3408
3409 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3410
3411         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
3412         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
3413         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3414         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3415
3416 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
3417
3418         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
3419         (RTLD_START): Ditto.
3420         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
3421         dependency violation.
3422
3423 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3424
3425         * time/mktime.c (__mktime_internal): Move check for year < 70 below
3426         all variable declarations.
3427
3428 2002-04-04  Andreas Schwab  <schwab@suse.de>
3429
3430         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
3431
3432 2002-04-04  Andreas Jaeger  <aj@suse.de>
3433
3434         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
3435         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
3436
3437         * sysdeps/x86_64/fpu/s_fabs.c: New file.
3438         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
3439         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
3440
3441         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
3442
3443         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
3444
3445         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
3446         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
3447
3448         * configure.in: Handle all mips entries the same.
3449
3450         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
3451         * sysdeps/mips/mips3/*: Likewise.
3452         * sysdeps/mips/p40/bits/endian.h: Likewise.
3453
3454 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
3455
3456         * misc/dirname.c (dirname): Ignore trailing slashes at end of
3457         non-null result [PR libc/2600].
3458
3459         * misc/tst-dirname.c: Add more tests.
3460
3461 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
3462
3463         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
3464         define a code_set_name provide one based on the filename.
3465
3466         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
3467
3468 2001-12-28  Andreas Jaeger  <aj@suse.de>
3469
3470         * time/mktime.c (__mktime_internal): Check for year < 70
3471         [PR libc/2738].
3472
3473 2002-04-03  Andreas Jaeger  <aj@suse.de>
3474
3475         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
3476         shmat.
3477         Reported by Andi Kleen <ak@suse.de>.
3478
3479 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
3480
3481         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
3482         * sysdeps/generic/w_lgammaf.c: Likewise.
3483         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
3484
3485         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
3486         Adjust for new output format of the backtrace functions.
3487
3488         * misc/syslog.c (vsyslog): Only use cleanup handler if
3489         _LIBC_REENTRANT is defined [PR libc/2924].
3490
3491         * libio/Makefile (tests): Add bug-ungetwc2.
3492         * libio/bug-ungetwc2.c: New file.
3493
3494         * manual/install.texi: Typographical and grammatical cleanup.
3495         Patch by Dennis Grace <dgrace@us.ibm.com>.
3496
3497         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
3498         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
3499
3500         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
3501         always "&".  Adjust callers.
3502         Add "_" prefix to several generated definitions.
3503         Patch by paul@serice.net [PR libc/3158].
3504
3505 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3506
3507         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
3508         size of _dl_arm_cap_flags.
3509         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
3510
3511         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
3512         Define as 8.
3513
3514 2002-03-22  H.J. Lu  <hjl@gnu.org>
3515
3516         * scripts/firstversions.awk: Check the first version.
3517
3518 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3519
3520         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
3521         dependencies must be stable to work correctly.
3522         Reported by martin.lubich@datacon.at.
3523
3524         * libio/bug-ungetwc1.c: New file.
3525         * libio/Makefile (tests): Add bug-ungetwc1.
3526
3527         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
3528         if stream was last used for writing.
3529
3530         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
3531         number [PR libc/3111].
3532
3533         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
3534         to ...
3535         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
3536
3537 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
3538
3539         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
3540         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
3541         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
3542         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
3543         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
3544
3545 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3546
3547         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
3548         dynamic tags.
3549
3550 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3551
3552         * sysdeps/i386/fpu/s_fabs.S: New file.
3553         * sysdeps/i386/fpu/s_fabsf.S: New file.
3554         * sysdeps/i386/fpu/s_fabsl.S: New file.
3555         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
3556         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
3557         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
3558
3559 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3560
3561         * rt/tst-shm.c (do_test): Add one more test for size of shared
3562         memory object.
3563
3564 2002-03-29  Wolfram Gloger  <wg@malloc.de>
3565
3566         * malloc/malloc.c: Add short description and prototypes for
3567         malloc_get_state, malloc_set_state and posix_memalign, for
3568         consistency and to avoid warnings with -Wstrict-prototypes.
3569         Reported by Andreas Jaeger <aj@suse.de>.
3570
3571 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3572
3573         * po/gl.po: Update from translation team.
3574
3575 2002-03-31  Roland McGrath  <roland@frob.com>
3576
3577         * hurd/hurdselect.c (_hurd_select): Fix
3578         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
3579         Use a union rather than casts to compare mach_msg_type_t as int.
3580
3581 2002-03-25  Roland McGrath  <roland@frob.com>
3582
3583         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
3584         check off the end of NAME when it's shorter than 2 chars.
3585         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
3586
3587 2002-03-17  Roland McGrath  <roland@frob.com>
3588
3589         * sysdeps/mach/hurd/i386/sys/io.h: New file.
3590         * sysdeps/mach/hurd/i386/ioperm.c: New file.
3591         * sysdeps/mach/hurd/i386/Dist: Add them.
3592         * sysdeps/mach/hurd/i386/Versions
3593         (libc: GLIBC_2.2.6): New set, add ioperm.
3594         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
3595         (mach_interface_list): Check for mach_i386.defs.
3596         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
3597         * sysdeps/mach/configure: Regenerated.
3598
3599 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
3600
3601         * po/fr.po: Update from translation team.
3602
3603 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3604
3605         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
3606         getpriority from syscalls list.
3607
3608 2002-03-28  Andreas Jaeger  <aj@suse.de>
3609
3610         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
3611         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
3612         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
3613         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
3614
3615 2002-03-27  Andreas Jaeger  <aj@suse.de>
3616
3617         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3618         sigcontext): Follow further kernel change.
3619
3620         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
3621         kernel change.
3622
3623         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
3624         Change for struct sigcontext change.
3625
3626         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3627         Follow changes in struct sigcontext.
3628
3629         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
3630         sysycall, use wrapper instead.
3631
3632 2002-03-26  Andreas Jaeger  <aj@suse.de>
3633
3634         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
3635         read and write accesses as detailed as possible.
3636         (__memcpy_by2): Likewise.
3637         (__memcpy_g): Likewise.
3638         (memmove): Likewise.
3639         (memcmp): Likewise.
3640         (__memset_ccn_by4): Likewise.
3641         (__memset_ccn_by2): Likewise.
3642         (__memset_gcn_by4): Likewise.
3643         (__memset_gcn_by2): Likewise.
3644         (memchr): Likewise.
3645         (__memrchr): Likewise.
3646         (rawmemchr): Likewise.
3647         (__strlen_g): Likewise.
3648         (__strcpy_g): Likewise.
3649         (__mempcpy_by4): Likewise.
3650         (__mempcpy_by2): Likewise.
3651         (__mempcpy_byn): Likewise.
3652         (__stpcpy_g): Likewise.
3653         (__strncpy_by4): Likewise.
3654         (__strncpy_by2): Likewise.
3655         (__strncpy_byn): Likewise.
3656         (__strncpy_gg): Likewise.
3657         (__strcat_c): Likewise.
3658         (__strcat_g): Likewise.
3659         (__strncat_g): Likewise.
3660         (__strcmp_gg): Likewise.
3661         (__strncmp_g): Likewise.
3662         (__strchr_c): Likewise.
3663         (__strchr_g): Likewise.
3664         (__strchrnul_c): Likewise.
3665         (__strchrnul_g): Likewise.
3666         (__strrchr_c): Likewise.
3667         (__strrchr_g): Likewise.
3668         (__strrchr_c): Likewise.
3669         (__strrchr_g): Likewise.
3670         (__strcspn_c1): Likewise.
3671         (__strcspn_cg): Likewise.
3672         (__strcspn_g): Likewise.
3673         (__strcspn_g): Likewise.
3674         (__strspn_c1): Likewise.
3675         (__strspn_cg): Likewise.
3676         (__strspn_g): Likewise.
3677         (__strspn_g): Likewise.
3678         (__strpbrk_cg): Likewise.
3679         (__strpbrk_g): Likewise.
3680         (__strstr_cg): Likewise.
3681         (__strstr_g): Likewise.
3682
3683         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
3684         Michal Ludvig <mludvig@suse.cz>.
3685
3686         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
3687         compatibilty, adjust for kernel changes.
3688
3689         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3690         sigcontext): Adjust for kernel changes.
3691
3692 2002-03-25  Andreas Jaeger  <aj@suse.de>
3693
3694         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
3695         little endian.
3696         Reported by Artur Zaprzala <zybi@talex.com.pl>.
3697
3698 2002-03-24  Andreas Jaeger  <aj@suse.de>
3699
3700         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
3701
3702         * stdio-common/tst-fdopen.c (main): Remove unused variable.
3703
3704         * iconv/tst-iconv3.c (main): Use correct printf strings.
3705
3706 2002-03-18  Roland McGrath  <roland@frob.com>
3707
3708         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
3709         (CMGROUP_MAX): New macro.
3710
3711 2002-03-23  Roland McGrath  <roland@frob.com>
3712
3713         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
3714         * sysdeps/posix/shm_unlink.c: Likewise.
3715
3716 2002-03-22  Roland McGrath  <roland@frob.com>
3717
3718         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
3719         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
3720         under --enable-libio.
3721         * sysdeps/mach/hurd/configure: Regenerated.
3722
3723 2002-03-23  Roland McGrath  <roland@frob.com>
3724
3725         * sysdeps/mach/hurd/i386/Makefile
3726         (sysdep_routines, shared-only-routines): Don't add framestate,
3727         reverting 2001-10-02 change.
3728         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3729         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3730         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3731         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3732         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3733         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3734         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3735         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3736         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
3737         Do it here instead, only if [$(unwind-find-fde) = yes].
3738
3739 2002-03-23  Andreas Jaeger  <aj@suse.de>
3740
3741         * signal/signal.h: Fix typo. Patch by Steve Kemp
3742         <skx@tardis.ed.ac.uk>.
3743
3744 2002-03-22  Andreas Jaeger  <aj@suse.de>
3745
3746         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
3747         getresuid.
3748
3749         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3750         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
3751         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3752         user_fpregs_struct): Rename fwd.
3753
3754         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3755         Follow sigcontext changes.
3756
3757 2002-03-22  Andreas Jaeger  <aj@suse.de>
3758
3759         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
3760         changes for NaNs on MIPS.
3761         Patch by Hartvig Ekner <hartvige@mips.com>.
3762
3763 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
3764
3765         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
3766         Use realloc if too large.
3767         (addgrbyid): Likewise.
3768         * nscd/hstcache.c (addhstbyname): Likewise.
3769         (addhstbyaddr): Likewise.
3770         (addhstbynamev6): Likewise.
3771         (addhstbyaddrv6): Likewise.
3772         * nscd/pwdcache.c (addpwbyname): Likewise.
3773         (addpwbyuid): Likewise.
3774
3775 2002-03-21  Andreas Jaeger  <aj@suse.de>
3776
3777         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3778         _fpstate): Add separate struct for x86-64.
3779
3780         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3781         user_fpregs_struct): Change member names to follow kernel.
3782
3783 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
3784
3785         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
3786         Correctly close the UDP connection right away [PR libc/3120].
3787
3788 2002-03-20  Andreas Jaeger  <aj@suse.de>
3789
3790         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3791         user_fpregs_struct): Fix for changed kernel struct.
3792         (struct user_regs_struct): Likewise.
3793         (struct user): Likewise.
3794         Add 32-bit x86 compatibility.
3795
3796         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
3797
3798 2002-03-19  Andreas Jaeger  <aj@suse.de>
3799
3800         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
3801
3802 2002-03-18  Andreas Jaeger  <aj@suse.de>
3803
3804         * iconvdata/Makefile: Only run tests when shared libs are
3805         available.
3806
3807 2002-03-17  Andreas Jaeger  <aj@suse.de>
3808
3809         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
3810
3811         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
3812
3813         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
3814         bits.
3815
3816         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
3817         (CAUSE_SHIFT): New.
3818         Patch by Hartvig Ekner <hartvige@mips.com>.
3819
3820         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
3821         * sysdeps/generic/unwind-pe.h: Likewise.
3822
3823         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
3824         type to _IO_setb.
3825
3826         * libio/stdio.c (AL2): Define variant when visibility attribute is
3827         not supported.
3828
3829         * include/libc-symbols.h (_INTVARDEF): Define variant when
3830         visibility attribute is not supported.
3831
3832 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
3833
3834         * po/fr.po: Update from translation team.
3835
3836 2002-02-25  Bruno Haible  <bruno@clisp.org>
3837
3838         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
3839
3840 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3841
3842         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
3843         buffers if _IO_file_attach failed.
3844
3845         * libio/fileops.c (_IO_file_open): Close file descriptor if
3846         _IO_SEEKOFF call failed.
3847
3848 2002-03-15  H.J. Lu  <hjl@gnu.org>
3849             Ulrich Drepper  <drepper@redhat.com>
3850
3851         * configure.in: Check for availability of
3852         init_array/fini_array/preinit_array handling in binutils.
3853         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
3854         * config.make.in (have-initfini-array): New variable.
3855
3856 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3857
3858         * stdio-common/tst-printf.c (main): Comment out one test which
3859         checked the compiler's ability to fold floating-point constants
3860         but not really printf.
3861         (rfg3): Make s const.
3862         * stdio-common/tst-printf.sh: Adjust for removed test.
3863
3864         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
3865         internal function.  Adjust for internal_function calling convention.
3866         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
3867         as internal_function.
3868
3869         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
3870         hidden.
3871
3872         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
3873         declaration and definition.
3874         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
3875         declaration.
3876         * nss/getXXent_r.c: Likewise.
3877         * nss/nsswitch.h (db_lookup_function): Add internal_function to
3878         definition.
3879
3880         * include/time.h: Declare __localtime_r as hidden.
3881
3882         * include/aliases.h: Declare __getaliasent_r as hidden.
3883         * include/grp.h: Declare __getgrent_r as hidden.
3884         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
3885         __getservent_r, and __getprotoent_r as hidden.
3886         * include/pwd.h: Declare __getpwent_r as hidden.
3887         * include/shadow.h: Declare __getspent_r as hidden.
3888         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
3889
3890         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
3891         and __gconv_transliterate as hidden.
3892         Add internal_function to __gconv_get_path declaration.
3893         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
3894         definition.  Add attribute_hidden to __gconv_read_conf definition.
3895
3896 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
3897
3898         * elf/rtld.c: Declare _environ as hidden.
3899         * sysdeps/generic/dl-environ.c: Likewise.
3900         * sysdeps/generic/dl-sysdep.c: Likewise.
3901
3902         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
3903         _dl_mcount_internal as hidden.
3904
3905         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
3906         * sysdeps/generic/dl-brk.c: New file.
3907         * sysdeps/generic/dl-sbrk.c: New file.
3908         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
3909         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
3910
3911         * elf/dl-minimal.c (malloc): Declare _end as hidden.
3912         (__errno_location): New function.  Declare errno as hidden.
3913         * elf/rtld.c (_dl_argc): Define as hidden.
3914         (_dl_skip_args): Define as hidden.
3915         (_begin, _end): Declare as hidden.
3916         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
3917         * sysdeps/generic/entry.h (_start): Declare as hidden.
3918         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
3919         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
3920         _dl_runtime_resolve and _dl_runtime_profile as hidden.
3921         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
3922
3923 2002-03-14  Roland McGrath  <roland@frob.com>
3924
3925         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
3926
3927         * Makeconfig (%.v.i, %.v): New implicit rules.
3928         (preprocess-versions): Variable removed.
3929         ($(common-objpfx)shlib-versions.v.i): New target giving just the
3930         shlib-versions input files as dependencies.
3931         ($(common-objpfx)soversions.i): Depend on that instead of the input
3932         files.  Use it as input instead of using a pipeline.
3933         (postclean-generated): Append soversions.i, shlib-versions.v, and
3934         shlib-versions.v.i here.
3935         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
3936         the Versions.def input files as dependencies.
3937         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
3938         ($(common-objpfx)Versions.all): Depend on that instead of the input
3939         files.  Use it as input instead of using a pipeline.
3940         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
3941         (postclean-generated): Append those .v and .v.i files here.
3942
3943 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3944
3945         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
3946         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
3947         Remove.
3948
3949 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3950
3951         * sysdeps/generic/mp_clz_tab.c: New file.
3952         * sysdeps/i386/mp_clz_tab.c: New file.
3953         * sysdeps/hppa/mp_clz_tab.c: New file.
3954         * sysdeps/powerpc/mp_clz_tab.c: New file.
3955         * stdlib/Makefile (aux): Revert last patch.
3956         * math/Makefile (gmp-objs): Likewise.
3957
3958 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3959
3960         * time/strftime.c: Comment fixes for references to obsolescent
3961         standards, In most cases the simplest fix is to remove the
3962         confusing comments.  Cross-referencing all the standards properly
3963         is a bit of a pain, and it should be enough to put that info in
3964         the documentation as I did in my recent time.texi patch.
3965
3966 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3967
3968         * manual/time.texi (Formatting Calendar Time):
3969         ISO C99 also specifies the E and O modifiers.
3970         %P is a GNU extension, and is not in ISO C99.
3971         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
3972         %T is also in ISO C99.
3973         The RFC 822 example is not valid in arbitrary locales.
3974         Reword the POSIX.2 wording slightly, to make it a bit clearer
3975         that POSIX.2 formats are also supported by later POSIX versions.
3976         If a format was introduced in ISO C99 it is also required by
3977         POSIX.1-2001.
3978
3979 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
3980
3981         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
3982         _sys_nerr_internal with INTVARDEF2.
3983         * include/libc-symbols.h (INTVARDEF2): New macro.
3984         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
3985         (_sys_nerr_internal): Library.
3986
3987         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
3988         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
3989
3990         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
3991
3992 2002-03-13  Wolfram Gloger  <wg@malloc.de>
3993
3994         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
3995
3996 2002-03-02  Andreas Schwab  <schwab@suse.de>
3997
3998         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
3999         'h' flag and positional arg.
4000         * stdio-common/tst-printf.c (rfg3): New function to test
4001         positional arguments.
4002         (main): Fix some warnings.
4003
4004 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4005
4006         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
4007         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
4008
4009 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
4010
4011         * grp/initgroups.c (__nss_group_data): Declare as hidden.
4012
4013         * include/locale.h (_nl_C_locobj): Declare as hidden.
4014
4015         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
4016         * time/strptime.c (_nl_C_LC_TIME): Likewise.
4017
4018         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
4019
4020         * include/sys/gmon.h: Declare _gmonparam as hidden.
4021
4022         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
4023         (__ctype32_wctrans): Likewise.
4024         (__ctype32_width): Likewise.
4025
4026         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
4027         use of __ttyname.
4028
4029         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
4030         Define as hidden.
4031         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
4032         hidden.  Change all users of these variables.
4033
4034         * posix/regex_internal.h (__re_error_msgid): Renamed from
4035         re_error_msgid.  Declare as hidden.
4036         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
4037         hidden.
4038
4039         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
4040         (__printf_function_table): Likewise.
4041         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
4042         hidden.
4043         (__printf_function_table): Likewise.
4044
4045         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
4046         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
4047
4048         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
4049         * nss/nsswitch.c: Declare _nss_*_database as hidden.
4050
4051         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
4052         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
4053
4054 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
4055
4056         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
4057         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4058         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4059         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4060         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4061         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4062         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4063         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4064         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
4065         _nl_C_LC_CTYPE_width: Declare as hidden.
4066         * include/locale.h: Declare _nl_locale_file_list.
4067         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
4068         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
4069         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
4070         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
4071         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
4072         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
4073         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
4074         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
4075         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
4076         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
4077         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
4078         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
4079         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
4080         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
4081         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
4082         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
4083         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
4084         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
4085         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
4086         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
4087         _nl_C_LC_CTYPE_width, and as hidden.
4088         * locale/findlocale.c: Declare _nl_C as hidden.
4089         * locale/newlocale.c: Likewise.
4090         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
4091         _nl_locale_file_list.
4092         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
4093         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
4094         Define _nl_C_locobj as hidden.
4095
4096         * malloc/mtrace.c (_mtrace_file): Define as hidden.
4097         (_mtrace_line): Likewise.
4098
4099         * include/time.h: Declare __mon_yday as hidden.
4100         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
4101
4102         * libio/libioP.h: Declare __libio_codecvt as hidden.
4103         * libio/fileops.c: Declare __libio_translit as hidden.
4104         * libio/iofwide.c: Define __libio_translit as hidden.
4