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