ba25039d0396a2d8ae4640b24a39a587fddc1ba0
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2002-08-26  Roland McGrath  <roland@redhat.com>
2
3         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
4         macro with inline function.
5         (sigset_get_old_mask): Likewise.
6         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
7         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
8         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
9         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
10         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
11         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
12         values.
13         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
14         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
15
16 2002-07-06  Bruno Haible  <bruno@clisp.org>
17
18         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
19         sigset_get_old_mask): Make it work with larger sigset_t.
20         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
21         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
22         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
23
24 2002-08-26  Roland McGrath  <roland@redhat.com>
25
26         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
27         * manual/filesys.texi (File Times): Document lutimes and futimes.
28         * misc/Makefile (routines): Add them.
29         * misc/Versions (libc: GLIBC_2.3): Likewise.
30         * sysdeps/generic/lutimes.c: New file.
31         * sysdeps/generic/futimes.c: New file.
32         * sysdeps/mach/hurd/lutimes.c: New file.
33         * sysdeps/mach/hurd/futimes.c: New file.
34
35         * manual/filesys.texi (File Times): Add explicit note about null
36         pointer argument to utimes.
37
38 2002-08-26  Roland McGrath  <roland@frob.com>
39
40         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
41         (__ifreq): Add a cast.  Remove an unused variable.
42
43         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
44         _HURD_THREADVAR_LOCALE.
45
46 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
47
48         * posix/regexec.c (re_search_stub): Return correct match length
49         if start != 0.
50         * posix/bug-regex10.c: New test.
51         * posix/Makefile (tests): Add bug-regex10.
52
53 2002-08-26  Brian Youmans  <3diff@gnu.org>
54
55         * COPYING.LIB: Replaced with fresh copy from
56         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
57         suggested copying permission notice now says version 2.1 instead
58         of version 2.
59
60         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
61         from Library GPL.
62         * crypt/crypt_util.c: Likewise.
63         * crypt/ufc.c: Likewise.
64         * elf/dl-conflict.c: Likewise.
65         * elf/dl-iteratephdr.c: Likewise.
66         * iconv/iconvconfig.h: Likewise.
67         * malloc/arena.c: Likewise.
68         * malloc/hooks.c: Likewise.
69         * malloc/malloc.c: Likewise.
70         * posix/glob/Makefile.ami: Likewise.
71         * posix/glob/Makefile.in: Likewise.
72         * stdlib/gmp-impl.h: Likewise.
73         * stdlib/gmp.h: Likewise.
74         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
75         * sysdeps/generic/strnlen.c: Likewise.
76         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
77         * sysdeps/mach/hurd/recvmsg.c: Likewise.
78         * sysdeps/mach/hurd/sendmsg.c: Likewise.
79         * sysdeps/mach/hurd/spawni.c: Likewise.
80         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
81         * sysdeps/mach/powerpc/sysdep.h: Likewise.
82         * sysdeps/mach/powerpc/thread_state.h: Likewise.
83         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
84         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
85         * sysdeps/x86_64/gmp-mparam.h: Likewise.
86
87         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
88         Lesser GPL copying permission notice from 2 to 2.1.
89         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
90         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
91         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
92         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
93         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
94         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
95         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
96         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
97         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
98         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
99         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
100         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
101         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
102         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
103         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
104         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
105         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
106         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
107         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
108         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
109         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
110         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
111         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
112         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
113         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
114         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
115         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
116         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
117         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
118         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
119         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
120         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
121         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
122         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
123         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
124         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
125         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
126         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
127         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
128         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
129         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
130         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
131         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
132         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
133         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
134         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
135         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
136         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
137         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
138         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
139         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
140         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
141         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
142         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
143         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
144
145         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
146         Moshier and Lesser GPL copying permission notice, per license from
147         Moshier.
148         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
149         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
150         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
151         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
152         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
153         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
154         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
155         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
156         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
157         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
158         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
159         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
160         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
161         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
162
163         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
164         notice, per license from copyright holder Stephen Moshier.
165         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
166         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
167         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
168         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
169         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
170         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
171         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
172         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
173         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
174
175 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
176
177         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
178         (shared-only-routines): Likewise.
179
180 2002-08-26  Roland McGrath  <roland@redhat.com>
181
182         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
183         name of "", store a null pointer instead.
184
185         * configure.in (elf): Set to yes for freebsd*, netbsd*.
186         * configure: Regenerated.
187
188         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
189         Initialize this instead of __libc_tsd_LOCALE_data.
190
191         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
192         ptsname_r to EINVAL.
193
194         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
195
196         * rt/Makefile: Revert last change, it was inappropriate to presume aio
197         implementations depend on pthreads.
198         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
199         * rt/tst-aio64.c (do_test): Likewise.
200         * rt/tst-aio2.c (do_test): Likewise.
201         * rt/tst-aio3.c (do_test): Likewise.
202         * rt/tst-aio4.c (do_test): Likewise.
203         * rt/tst-aio5.c (do_test): Likewise.
204         * rt/tst-aio6.c (do_test): Likewise.
205         * rt/tst-aio7.c (do_test): Likewise.
206
207         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
208         void so as to avoid compiler warnings.
209
210         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
211         _IO_wide_data_FD, which is never used here.
212
213         * libio/iofread.c
214         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
215         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
216         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
217
218         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
219         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
220
221         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
222         (closelog): Likewise.
223
224 2002-07-06  Bruno Haible  <bruno@clisp.org>
225
226         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
227
228         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
229         * sysdeps/unix/alpha/pipe.S: ... here.
230         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
231
232         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
233
234         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
235         * sysdeps/unix/i386/fork.S: Likewise.
236         * sysdeps/unix/i386/pipe.S: Likewise.
237         * sysdeps/unix/i386/wait.S: Likewise.
238
239         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
240         * sysdeps/unix/arm/fork.S: Likewise.
241
242         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
243         arguments.
244         (DO_CALL): Swap argument order.
245         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
246         arguments.
247         (DO_CALL): Swap argument order.
248         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
249         arguments.
250         (DO_CALL): Swap argument order.
251         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
252         arguments.
253         (DO_CALL): Swap argument order.
254         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
255         arguments.
256         (DO_CALL): Swap argument order.
257         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
258         arguments.
259         (DO_CALL): Swap argument order.
260         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
261         arguments.
262         (DO_CALL): Swap argument order.
263
264         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
265         (L): Define right for ELF.
266         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
267         Now defined in sysdeps/i386/sysdep.h.
268
269         * sysdeps/posix/readv.c: Ansify function definition.
270         * sysdeps/posix/writev.c: Likewise.
271
272         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
273         have the same size. Avoid direct cast from size_t to off_t.
274
275         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
276         nul byte in entry[n].ut_user.
277         (simulate_logout): Likewise.
278
279         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
280         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
281         existence of corresponding members of 'struct utmp'.
282         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
283         !_HAVE_UT_TYPE.
284
285         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
286         allocate a buffer of at least BUFSIZ bytes, not just of
287         sizeof (struct dirent).
288
289         * sysdeps/generic/glob.c: Include <limits.h>.
290         (NAME_MAX): Define a fallback.
291         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
292         stack.
293         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
294         (main): Allocate enough room for a 'struct dirent64' on the stack.
295         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
296         'struct dirent'.
297
298         * sysdeps/unix/sysv/linux/init-first.c: Don't include
299         kernel-features.h.
300
301         * inet/htontest.c: Include <sys/types.h>.
302
303         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
304
305         * include/sys/sysctl.h: Comment fix.
306
307         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
308         _dl_load_lock.
309         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
310
311         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
312
313         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
314         (__getpeername): New alias.
315         (__getsockname): New alias.
316         (__socket): New alias.
317
318         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
319
320         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
321         (__fcntl_internal): New alias.
322         (__profil): New alias.
323
324 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
325
326         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
327         entry was for getaddr* lookup or not.  Add only matching cache
328         entry.  Change all callers [PR libc/4317].
329
330         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
331         finding the read position [PR libc/4265].
332         * libio/Makefile (tests): Add bug-rewind2.
333         * libio/bug-rewind2.c: New file.
334
335         * libio/bug-rewind.c: Fix creation of temp file.
336
337 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
338
339         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
340         neither SUCCESS nor TRYAGAIN [PR libc/4259].
341         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
342         to ENOENT if no entry is found.
343         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
344         failure.
345         * nis/nss_compat/compat-initgroups.c: Likewise.
346         * nis/nss_compat/compat-pwd.c: Likewise.
347         * nis/nss_compat/compat-spwd.c: Likewise.
348         * nis/nss_nis/nis-alias.c: Likewise.
349         * nis/nss_nis/nis-ethers.c: Likewise.
350         * nis/nss_nis/nis-grp.c: Likewise.
351         * nis/nss_nis/nis-hosts.c: Likewise.
352         * nis/nss_nis/nis-initgroups.c: Likewise.
353         * nis/nss_nis/nis-netgrp.c: Likewise.
354         * nis/nss_nis/nis-network.c: Likewise.
355         * nis/nss_nis/nis-proto.c: Likewise.
356         * nis/nss_nis/nis-publickey.c: Likewise.
357         * nis/nss_nis/nis-pwd.c: Likewise.
358         * nis/nss_nis/nis-rpc.c: Likewise.
359         * nis/nss_nis/nis-service.c: Likewise.
360         * nis/nss_nis/nis-spwd.c: Likewise.
361         * resolv/nss_dns/dns-host.c: Likewise.
362         * resolv/nss_dns/dns-network.c: Likewise.
363         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
364         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
365         * nis/nss_nisplus/nisplus-grp.c: Likewise.
366         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
367         * nis/nss_nisplus/nisplus-network.c: Likewise.
368         * nis/nss_nisplus/nisplus-proto.c: Likewise.
369         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
370         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
371         * nis/nss_nisplus/nisplus-service.c: Likewise.
372         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
373         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
374         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
375         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
376         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
377
378         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
379         declaring __restore and __restore_rt as hidden (if possible).
380
381 2002-08-25  Roland McGrath  <roland@redhat.com>
382
383         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
384
385         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
386         (getutent_r_file, internal_getut_r): Updated all callers.
387         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
388
389 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
390
391         * locale/programs/locale.c: Don't print aliases for non-existing
392         locales for 'locale -a'.
393         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
394
395 2002-07-19  H.J. Lu  <hjl@gnu.org>
396
397         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
398
399 2002-07-16  H.J. Lu  <hjl@gnu.org>
400
401         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
402         sys/personality.h.
403         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
404
405 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
406
407         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
408         not moved ahead of the fputs call.
409         * elf/tst-tlsmod2.c (in_dso): Likewise.
410         * elf/tst-tlsmod3.c (in_dso2): Likewise.
411         * elf/tst-tlsmod4.c (in_dso): Likewise.
412
413 2002-08-25  Andreas Schwab  <schwab@suse.de>
414
415         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
416
417 2002-08-25  Roland McGrath  <roland@redhat.com>
418
419         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
420         resetting handler, to avoid the possibility of a spurious SIGALRM
421         delivered to the user's handler.
422         Reported by Amit D. Chaudhary <amitc@brocade.com>,
423
424         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
425         set -fkeep-inline-functions, which is not needed for the current file.
426
427         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
428         (_dl_setup_hash): Add attribute_hidden.
429         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
430         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
431         (_dl_new_object, _dl_map_object_deps): Likewise.
432         (_dl_map_object_deps_internal): Remove decl.
433         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
434
435         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
436         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
437         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
438         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
439         instead relying on the compiler to produce only GOTOFF variable refs.
440
441 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
442
443         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
444
445         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
446         inline to avoid defining it in every file which includes this header.
447
448         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
449         defining DONT_USE_BOOTSTRAP_MAP.
450
451         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
452         * libio/tst-mmap-setvbuf.c (main): Likewise.
453         * libio/tst-widetext.c (main): Likewise.
454
455         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
456         message.
457         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
458         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
459
460         * sysdeps/i386/elf/configure.in: Unconditionally define
461         PI_STATIC_AND_HIDDEN.
462         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
463         PI_STATIC_AND_HIDDEN is defined as well.
464         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
465
466 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
467
468         * sysdeps/ia64/bzero.S: Define __bzero as well.
469
470         * locale/programs/charmap.c (charmap_new_char): Don't use
471         ULONG_MAX as maximum UCS4 value.
472
473         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
474
475         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
476
477         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
478         * malloc/malloc.c (mALLINFo): Likewise.
479
480         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
481
482         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
483         examining result of _IO_do_flush call.
484
485         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
486         Use prec not spec when sizing buffers.
487
488         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
489         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
490         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
491         * stdio-common/vfscanf.c (inchar): Likewise.
492         * misc/efgcvt_r.c (fcvt_r): Likewise.
493         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
494         * elf/readlib.c (process_file): Likewise.
495         * elf/sprof.c (load_profdata): Likewise.
496         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
497         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
498         * locale/programs/charmap.c (charmap_read): Likewise.
499         * libio/fileops.c: Likewise.
500         * libio/fmemopen.c: Likewise.
501         * stdlib/strtod.c: Likewise.
502         * elf/dl-load.c: Likewise.
503         * iconv/iconvconfig.c: Likewise.
504         * iconv/iconv_prog.c (process_block): Likewise.
505         * elf/rtld.c (dl_main): Likewise.
506
507         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
508         macro to calm down the compiler.
509
510         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
511
512         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
513
514         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
515         placement of errno definition.
516         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
517         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
518         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
519         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
520         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
521
522         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
523         from 1024 to 65536, to avoid buffer overrun.
524
525 2002-08-16  Paul Eggert  <eggert@twinsun.com>
526
527         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
528         from 1024 to 65536, to avoid buffer overrun.
529         * resolv/res_query.c (MAXPACKET): Likewise.
530
531 2002-08-24  Andreas Jaeger  <aj@suse.de>
532
533         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
534
535 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
536
537         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
538         two52 locally.
539         (log2): Likewise.
540         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
541         Patch by Simon Gee <simong@agile.tv>.
542
543         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
544         Prefer reading /proc/stat since it is more uniform across
545         architectures.
546
547         * manual/texinfo.tex: Update to latest official version.
548
549         * sysvipc/sys/shm.h: Remove SHMLBA definition.
550         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
551         * sysdeps/gnu/bits/shm.h: Likewise.
552         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
553         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
554         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
555         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
556         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
557         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
558         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
559         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
560         since this is what the kernel says.
561
562         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
563         since ssize_t is needed as well.  Replace const with __const.
564
565 2002-08-23  Roland McGrath  <roland@redhat.com>
566
567         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
568         __malloc_hook, __realloc_hook, __memalign_hook,
569         __after_morecore_hook): Variable definitions moved to ...
570         * malloc/malloc.c: ... here, so as to be before all references.
571
572         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
573         global variable reference in an unused asm parameter, to ensure the
574         compiler has set up the GOT register before we use it.
575
576         * malloc/hooks.c: Move variable definitions ahead of uses.
577         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
578         initializers that make reference to variables they define.
579
580 2002-08-23  Andreas Jaeger  <aj@suse.de>
581
582         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
583         alloca, free, qsort.
584
585         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
586
587         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
588         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
589
590         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
591         <hch@lst.de>.
592         * sysdeps/generic/fgetxattr.c: New file.
593         * sysdeps/generic/flistxattr.c: New file.
594         * sysdeps/generic/fremovexattr.c: New file.
595         * sysdeps/generic/fsetxattr.c: New file.
596         * sysdeps/generic/getxattr.c: New file.
597         * sysdeps/generic/listxattr.c: New file.
598         * sysdeps/generic/lgetxattr.c: New file.
599         * sysdeps/generic/llistxattr.c: New file.
600         * sysdeps/generic/lremovexattr.c: New file.
601         * sysdeps/generic/lsetxattr.c: New file.
602         * sysdeps/generic/removexattr.c: New file.
603         * sysdeps/generic/setxattr.c: New file.
604         * misc/Makefile (headers): Add sys/xattr.h.
605         (routines): Add *xattr calls.
606         * misc/Versions: Add *xattr calls with version 2.3.
607         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
608         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
609         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
610         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
611         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
612         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
613         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
614         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
615
616 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
617
618         * sysdeps/powerpc/elf/libc-start.c
619         (__cache_line_size): Declare.
620         (__aux_init_cache): New.
621         (__libc_start_main): Change type of `auxvec' parameter to
622         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
623         __aux_init_cache.
624         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
625         (__cache_line_size): Declare.
626         (__aux_init_cache): New.
627         (DL_PLATFORM_INIT): Define.
628         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
629         value to select the correct stride for dcbz.
630
631 2002-08-22  Andreas Jaeger  <aj@suse.de>
632
633         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
634         shmat.
635
636 2002-08-22  Roland McGrath  <roland@redhat.com>
637
638         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
639         position indicated by locrectab against file bounds before rounding to
640         page size.  In mapping loop, always set TO before breaking out of
641         contiguous range coalescing loop.
642
643         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
644         (or MAP_COPY if available) instead of MAP_SHARED.
645
646         * scripts/firstversions.awk: When encountering a version newer than
647         the specified earliest version, be sure to emit the specified earliest
648         version first if any renaming of an older version to that has been.
649
650 2002-08-21  Roland McGrath  <roland@redhat.com>
651
652         * configure.in: Make GCC version check require 3.[2-9]* and no others.
653         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
654         (Configuring and compiling): Don't mention older GCC versions any more.
655         * INSTALL: Regenerated.
656
657         * manual/install.texi (Configuring and compiling, Installation,
658         Running make install, Linux): Linux -> GNU/Linux where appropriate.
659
660         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
661         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
662         and with noinline otherwise.  Remove hack alloca use to prevent
663         inlining, we can ask for it explicitly nowadays.
664
665         * dlfcn/bug-dlsym1.c: New file.
666         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
667         * dlfcn/Makefile (distribute): Add them.
668         (tests): Add bug-dlsym1 here.
669         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
670         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
671         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
672
673 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
674
675         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
676         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
677         before relocation.
678         (_dl_start): Don't use local bootstrap_map variable if
679         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
680         pass bootstrap_map to _dl_start_final in this case either.  Don't
681         pass start_time to _dl_start_final ever.
682         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
683
684         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
685         This cripples the scope lists necessary to search for symbols in
686         dependencies which are not in the global scope.
687
688         * include/setjmp.h (__libc_longjmp): Add declaration.
689
690 2002-08-21  Andreas Jaeger  <aj@suse.de>
691
692         * sysdeps/x86_64/_mcount.S: Fix assembler.
693
694         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
695         with biarch support.
696
697 2002-08-21  Andreas Jaeger  <aj@suse.de>
698
699         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
700
701         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
702
703         * sysdeps/x86_64/machine-gmon.h: New file.
704         * sysdeps/x86_64/_mcount.S: New file.
705
706 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
707
708         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
709         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
710         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
711         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
712         to TL_INIT_TP.  Otherwise pass 1.
713         * include/link.h (struct link_map): Add l_tls_tp_initialized.
714         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
715
716 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
717
718         * locale/programs/localedef.c (add_to_readlist): Error about
719         circular dependencies only if the locale in question hasn't
720         been finished.
721         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
722         CTYPE_LOCALE to load_locale.
723         * locale/programs/locfile.c (locfile_read): Don't include
724         unneeded but available locales in locale_mask.
725
726         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
727         print any messages about enlarging archive.
728
729 2002-08-20  Brian Youmans  <3diff@gnu.org>
730
731         * manual/contrib.texi: Removed licenses, added acknowledgements
732         for contributions by Intel, IBM, Craig Metz.
733         * LICENSES: New file, contains the text of all non-FSF licenses in the
734         distribution that require putting the notice in the accompanying
735         documentation.
736         * README.template, README: Mention LICENSES.
737
738         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
739         new one modelled on the modern BSD license, per recent letter
740         of permission from CMU.
741         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
742
743         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
744         from IBM to FSF, per the recent Software Letter.  Changed the
745         distribution terms from GPL to LGPL.
746
747         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
748         copying permission notice (Lesser GPL), per recent IBM Software Letter.
749         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
750         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
751         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
752         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
753         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
754         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
755         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
756         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
757
758         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
759         from IBM to FSF, per the recent Software Letter.  Corrected the
760         text of the copying permission notice to say Lesser GPL instead
761         of GPL in warranty disclaimer paragraph.
762         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
763         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
764         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
765         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
766         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
767         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
768         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
769         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
770         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
771         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
772         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
773         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
774         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
775         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
776         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
777         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
778         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
779         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
780         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
781         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
782         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
783
784         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
785         permission notice to say Lesser GPL instead of GPL in warranty
786         disclaimer paragraph.
787         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
788         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
789         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
790         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
791         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
792         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
793         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
794         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
795         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
796         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
797         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
798         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
799         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
800         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
801         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
802         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
803         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
804         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
805         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
806         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
807         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
808         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
809         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
810
811 2002-08-20  Roland McGrath  <roland@redhat.com>
812
813         Fix ABI compatibility with libc compiled with old tools on powerpc.
814         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
815         and Jack Howarth <howarth@bromo.med.uc.edu>.
816         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
817         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
818         pass -DHAVE_DOT_HIDDEN for these files.
819         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
820         __floatdisf.
821         * sysdeps/powerpc/divdi3.c: New file.
822         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
823         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
824
825 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
826
827         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
828         partially overlapping mappings.  Remove unneeded (char *) casts.
829         Never allow duplication of ranges in mapped areas.
830
831 2002-08-20  Roland McGrath  <roland@redhat.com>
832
833         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
834         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
835
836 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
837
838         * include/unistd.h: Don't hide _exit.
839
840         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
841         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
842         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
843         argument 1 to TLS_INIT_TP.
844         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
845
846         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
847
848         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
849         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
850         memory allocation to...
851         (allocate_dtv): ...here.  New function.
852         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
853         call allocate_dtv instead of _dl_allocate_tls_storage.
854         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
855         (_dl_get_tls_static_info): New function.
856         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
857         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
858
859 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
860
861         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
862         immediately if result == NULL.
863
864 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
865
866         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
867
868 2002-08-18  Roland McGrath  <roland@frob.com>
869
870         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
871         instead of __file_name_split.
872         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
873
874         * sysdeps/mach/hurd/dl-sysdep.c
875         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
876         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
877
878 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
879
880         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
881         in change before last: MAX -> MIN.
882
883 2002-08-15  Roland McGrath  <roland@redhat.com>
884
885         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
886         if seek would go past it.
887         (mmap_remap_check): If file position is at or past EOF after check,
888         leave read pointers at EOF and don't seek.
889
890         * libio/tst-mmap-offend.c: New file.
891         * libio/Makefile (tests): Add it.
892
893         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
894         the name as passed, rather than the name in the archive dictionary.
895
896 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
897
898         * csu/Makefile: Define elide-routines.os not static-only-routines.
899
900         * include/sched.h (__clone): Add varargs at the end.
901
902         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
903         case.
904         (TLS_INIT_HELPER): If defined, use it.
905         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
906
907 2002-08-15  Roland McGrath  <roland@redhat.com>
908
909         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
910         on L->l_prev; it can happen under rtld --verify too.
911
912         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
913         header separately, just map an initial window of 2MB from the file
914         and remap if that is not large enough to cover the whole header.
915
916 2002-08-15  Andreas Jaeger  <aj@suse.de>
917
918         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
919         version 2.3.
920         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
921         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
922         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
923         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
924         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
925         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
926         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
927         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
928         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
929         Patch by Andreas Gruenbacher <agruen@suse.de>.
930
931         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
932
933 2002-08-14  Roland McGrath  <roland@redhat.com>
934
935         * locale/locarchive.h (struct locale_category_data): Give this name to
936         the type of locale_data_t's elements.
937         * locale/programs/locarchive.c (cmpcategorysize): New static function.
938         (add_locale): Use that to sort the categories by size and put all
939         those that fit into two pages into the LC_ALL block, instead of
940         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
941         (show_archive_content): Detect categories inside LC_ALL block
942         directly, instead of hard-coding.
943         (oldlocrecentcmp): Compare just on file locations used.
944
945 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
946
947         * locale/programs/locarchive.c (struct oldlocrecent): New.
948         (oldlocrecentcmp): New.
949         (enlarge_archive): Re-add locales in the order they were added
950         to the archive.
951         (add_locale): Put all the small locale files together, if the small
952         locale file block would occupy less pages if page size aligned, align
953         it.
954         (show_archive_content): Adjust for locale archives optimized for speed.
955
956 2002-08-14  Roland McGrath  <roland@frob.com>
957
958         * configure.in: Use "MISSING" as not-found value for MIG.
959         * sysdeps/mach/configure.in: Fatal if mig not found.
960         * configure, sysdeps/mach/configure: Regenerated.
961
962 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
963
964         * locale/loadarchive.c (archfname): Add missing slash.
965
966         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
967         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
968
969 2002-08-12  Roland McGrath  <roland@redhat.com>
970
971         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
972         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
973         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
974         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
975         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
976         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
977         * sysdeps/generic/waitpid.c: Likewise.
978
979         * include/net/if.h: New file.  Use libc_hidden_proto
980         for if_nametoindex and if_indextoname.
981         * sysdeps/generic/if_index.c: Add libc_hidden_def.
982         * sysdeps/mach/hurd/if_index.c: Likewise.
983         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
984
985         * include/grp.h (setgroups): Add libc_hidden_proto.
986         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
987         * sysdeps/mach/hurd/setgroups.c: Likewise.
988         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
989         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
990
991 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
992
993         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
994         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
995         * sysdeps/generic/setegid.c (setegid): Likewise.
996         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
997         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
998         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
999         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
1000         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
1001         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
1002         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
1003         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
1004         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
1005         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1006         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
1007         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
1008         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
1009
1010         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
1011         __lxstat_internal, __lxstat64_internal): Remove.
1012         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
1013         Add hidden_proto.
1014         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
1015         Remove INTDEF where present, remove #undef at the beginning.
1016         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
1017         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
1018         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
1019         * sysdeps/generic/xstat.c (__xstat): Likewise.
1020         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
1021         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
1022         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1023         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1024         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1025         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1026         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
1027         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
1028         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
1029         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
1030         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
1031         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
1032         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
1033         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
1034         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
1035         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
1036         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
1037         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
1038         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
1039         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
1040         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
1041         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
1042         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1043         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1044         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1045         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1046         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
1047         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1048         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
1049         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1050         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
1051         * sysdeps/unix/xstat.c (__xstat): Likewise.
1052
1053         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
1054         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
1055         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
1056         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
1057         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
1058         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
1059         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
1060
1061         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
1062         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
1063         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
1064         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
1065         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
1066         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
1067         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
1068         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
1069         Likewise.
1070         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
1071         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
1072         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
1073         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
1074         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
1075         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
1076         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
1077         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
1078
1079         * include/string.h (strcoll): Add libc_hidden_proto.
1080         * string/strcoll.c (strcoll): Add libc_hidden_def.
1081
1082         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
1083
1084 2002-08-11  Philip Blundell  <philb@gnu.org>
1085
1086         * sysdeps/arm/Makefile: New file.
1087
1088 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1089
1090         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
1091         by another '|', end of regex or enclosing ')', clear branch.
1092         * posix/bug-regex9.c: New test.
1093         * posix/Makefile (tests): Add bug-regex9.
1094
1095 2002-08-12  Roland McGrath  <roland@redhat.com>
1096
1097         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
1098         start count condition, use TOTAL instead of variable that was never
1099         set.  Fix outer loop termination condition to TOTAL >= after update.
1100
1101         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
1102         dl_tls_static_align and dl_tls_static_nelem.
1103
1104 2002-08-11  Roland McGrath  <roland@redhat.com>
1105
1106         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
1107         of the TLS macros, otherwise the compiler might not have initialized
1108         the PIC register yet when we use the PLT via asm.
1109         * elf/tst-tlsmod3.c (in_dso2): Likewise.
1110         * elf/tst-tlsmod2.c (in_dso): Likewise.
1111
1112         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
1113
1114         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
1115         Evaluate argument exactly once.  Remove __volatile__ from asm's.
1116
1117         * include/unistd.h: Use libc_hidden_proto for getdomainname
1118         and getlogin_r.
1119         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
1120         * sysdeps/mach/hurd/getdomain.c: Likewise.
1121         * sysdeps/unix/getlogin_r.c: Likewise.
1122         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
1123         * sysdeps/generic/getlogin_r.c: Likewise.
1124
1125         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
1126         * sunrpc/rtime.c: Add libc_hidden_def.
1127
1128         * include/string.h: Use libc_hidden_proto for basename.
1129         * string/basename.c [_LIBC]: Add libc_hidden_def.
1130
1131         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
1132
1133         * locale/loadarchive.c: munmap -> __munmap throughout.
1134
1135         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
1136         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
1137         * sysdeps/generic/gai_strerror.c: Likewise.
1138
1139         * include/sys/errno.h: New file.
1140
1141         * include/signal.h: No libc_hidden_proto for raise,
1142         __libc_current_sigrtmin, __libc_current_sigrtmax.
1143         These need to be overridden by linuxthreads.
1144         * sysdeps/posix/raise.c: Reverted.
1145         * sysdeps/generic/raise.c: Reverted.
1146         * signal/allocrtsig.c: Reverted.
1147
1148         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
1149
1150 2002-08-10  Roland McGrath  <roland@redhat.com>
1151
1152         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
1153         * locale/localeinfo.h: Declare it.
1154         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
1155         current locale if it's not in the file list.
1156         Call _nl_archive_subfreeres.
1157
1158 2002-08-10  Andreas Jaeger  <aj@suse.de>
1159
1160         * sysdeps/i386/strchr.S: Add comment.
1161
1162 2002-08-10  Roland McGrath  <roland@redhat.com>
1163
1164         * include/wchar.h (putwc): Use libc_hidden_proto.
1165         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
1166         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
1167         * stdio-common/dprintf.c: Add libc_hidden_def.
1168         * stdio-common/fprintf.c: Likewise.
1169         * stdio-common/sprintf.c: Likewise.
1170         * stdio-common/sscanf.c: Likewise.
1171         * libio/iofwrite.c: Likewise.
1172         * libio/memstream.c: Likewise.
1173         * libio/putwc.c: Likewise.
1174         * stdio-common/perror.c: Likewise.
1175         * sysdeps/posix/remove.c: Likewise.
1176         * sysdeps/generic/remove.c: Likewise.
1177         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
1178         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
1179
1180 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
1181
1182         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1183         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
1184         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
1185         towlower, towupper): Add libc_hidden_weak.
1186
1187         * include/bits/dlfcn.h: New file.
1188         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
1189
1190         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
1191         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
1192         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
1193         * include/pwd.h (_nss_files_parse_pwent): Likewise.
1194         * include/shadow.h (_nss_files_parse_spent): Likewise.
1195         * include/netdb.h (_nss_files_parse_protoent,
1196         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
1197         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
1198         (LINE_PARSER): Use it.
1199         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
1200         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
1201
1202         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
1203         #endif.
1204
1205         * manual/debug.texi (%MENU%): Remove trailing dot.
1206         Reported by <hayastan132@hotmail.com>.
1207
1208         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
1209         aliases.
1210         (lseek): Dummy.
1211         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
1212         Likewise.
1213
1214 2002-08-09  Roland McGrath  <roland@redhat.com>
1215
1216         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
1217         name to find codeset name (if any) and normalize it.  If the
1218         normalized name differs, look up only that in the archive.
1219         * locale/programs/locarchive.c (add_locale_to_archive): If the name
1220         contains a codeset, normalize the codeset store only the normalized
1221         name in the archive.  If not, add an alias containing the locale's
1222         normalized codeset name.  Apply codeset name normalization when
1223         matching entries in the alias file.
1224
1225         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
1226         decrement HEAD->namehash_used here.
1227         (add_locale): Only need to insert name string when name_offset != 0.
1228
1229         * locale/programs/localedef.c (options): Add -A/--alias-file.
1230         (alias_file): New variable.
1231         (parse_opt): Grok -A, set that.
1232         * locale/programs/localedef.h: Declare it.
1233
1234         * locale/locarchive.h (struct locrecent): Add `refs' member.
1235         * locale/programs/locarchive.c (insert_name): New function, broken out
1236         of ...
1237         (add_locale_to_archive): ... here.  Call that.
1238         (add_alias): New function.
1239         (add_locale): New static function, add_locale_to_archive renamed.
1240         (add_locale_to_archive): Call that and use add_alias to add an alias
1241         for the name with codeset if the given name lacks it.
1242         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
1243
1244         * locale/Makefile (routines): Add loadarchive.
1245         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
1246         (_nl_load_locale_from_archive): New function.
1247         * locale/localeinfo.h: Declare it.
1248         * locale/findlocale.c (_nl_find_locale): If using default locale path,
1249         try _nl_load_locale_from_archive first.
1250
1251         * locale/loadlocale.c (_nl_intern_locale_data): New function,
1252         broken out of _nl_load_locale.
1253         (_nl_load_locale): Call that.
1254         * locale/localeinfo.h: Declare it.
1255         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
1256         (struct locale_data): Remove unused member `options'.
1257         * locale/findlocale.c (_nl_remove_locale): Update uses.
1258         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1259         * locale/C-collate.c: Update initializer.
1260         * locale/C-identification.c: Likewise.
1261         * locale/C-measurement.c: Likewise.
1262         * locale/C-telephone.c: Likewise.
1263         * locale/C-address.c: Likewise.
1264         * locale/C-name.c: Likewise.
1265         * locale/C-paper.c: Likewise.
1266         * locale/C-time.c: Likewise.
1267         * locale/C-numeric.c: Likewise.
1268         * locale/C-monetary.c: Likewise.
1269         * locale/C-messages.c : Likewise.
1270         * locale/C-ctype.c: Likewise.
1271
1272         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
1273         use CHAR_BIT instead of BITSPERBYTE.
1274
1275         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
1276         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
1277         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
1278         (_nl_remove_locale): Likewise.
1279         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
1280
1281         * locale/findlocale.c (_nl_default_locale_path): New variable.
1282         (_nl_find_locale): If LOCALE_PATH is null, default to that.
1283         * locale/localeinfo.h: Declare it.
1284         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
1285         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
1286         * locale/newlocale.c (__newlocale): Likewise.
1287
1288         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
1289         * inet/rexec.c (rexec_af): Add libc_hidden_def.
1290         * sysdeps/generic/morecore.c: Likewise.
1291         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
1292         (__libc_current_sigrtmax): Likewise.
1293
1294 2002-08-08  Roland McGrath  <roland@redhat.com>
1295
1296         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
1297         * catgets/open_catalog.c (__open_catalog): Likewise.
1298
1299         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
1300         from typo INITIAL_NUM_NANES.
1301         (create_archive): Update use.
1302
1303 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
1304
1305         * sysdeps/unix/sysv/linux/sigwait.c: New file.
1306
1307 2002-08-08  Roland McGrath  <roland@frob.com>
1308
1309         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
1310
1311 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1312
1313         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
1314         else and undefine after including wcstol_l.c.
1315         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
1316
1317 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
1318
1319         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
1320
1321 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
1322
1323         * configure.in: Make the test for broken_alias_attribute stricter.
1324
1325 2002-05-24  Robert Love  <rml@tech9.net>
1326
1327         * posix/Makefile (routines): Add sched_getaffinity and
1328         sched_setaffinity.
1329         * posix/sched.h: Add declarations for sched_getaffinity and
1330         sched_setaffinity.
1331         * sysdeps/generic/sched_getaffinity.c: New file.
1332         * sysdeps/generic/sched_setaffinity.c: New file.
1333         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
1334         sched_setaffinity.
1335
1336 2002-08-06  Andreas Schwab  <schwab@suse.de>
1337
1338         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
1339
1340 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
1341
1342         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
1343         message.
1344
1345         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
1346         It is known to be defined.
1347
1348         * include/string.h: Define index and rindex only if _ISOMAC is not
1349         defined.
1350
1351         * elf/rtld.c: Include <errno.h>.
1352         * sysdeps/generic/libc-tls.c: Likewise.
1353
1354 2002-08-07  Roland McGrath  <roland@redhat.com>
1355
1356         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
1357         it internally.
1358         (precsize_aton): Likewise.
1359
1360         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
1361         the static symbols added in the last change (doofus is me).
1362
1363         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
1364         loop to notice missing categories in a composite name.
1365
1366         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
1367         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
1368         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
1369         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
1370
1371 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
1372
1373         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
1374
1375 2002-08-07  Roland McGrath  <roland@redhat.com>
1376
1377         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
1378         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
1379         Reported by Jakub Jelinek  <jakub@redhat.com>.
1380
1381 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
1382
1383         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
1384         division.
1385
1386 2002-08-06  Roland McGrath  <roland@redhat.com>
1387
1388         * include/getopt.h: Put private decls inside [_GETOPT_H].
1389         Use libc_hidden_proto for getopt_long, getopt_long_only.
1390         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
1391         Add libc_hidden_def.
1392
1393         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
1394         Define as a macro for __dl_iterate_phdr.
1395
1396         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
1397         made static.  Add __ name as a strong alias.
1398         (internal_endnetgrent): Likewise.
1399         (internal_getnetgrent_r): Likewise.
1400
1401         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
1402         with no __ prefix.
1403         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
1404         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
1405         all *_l functions with no __ prefix.
1406         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
1407         * ctype/ctype_l.c: Likewise.
1408         * locale/nl_langinfo.c: Likewise.
1409         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
1410         * stdlib/stdlib.h [__USE_GNU]: Likewise.
1411         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
1412         * wctype/wctype.h [__USE_GNU]: Likewise.
1413         * string/strcoll_l.c (strcoll_l): Define as weak alias.
1414         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
1415         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
1416         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
1417         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
1418         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
1419         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
1420         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
1421         (__wcscasecmp_l): Add libc_hidden_def.
1422         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
1423         (__wcsncasecmp_l): Add libc_hidden_def.
1424         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
1425         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
1426         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
1427         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
1428         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
1429         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
1430         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
1431         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
1432         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
1433         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
1434         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
1435         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
1436         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
1437         * wctype/wctype_l.c (wctype_l) Define as weak alias.
1438
1439 2002-08-05  Roland McGrath  <roland@redhat.com>
1440
1441         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
1442         netname2user, host2netname, user2netname, key_gendes.
1443         * sunrpc/netname.c: Add libc_hidden_def.
1444         * sunrpc/key_call.c: Likewise.
1445
1446         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
1447         freeaddrinfo.
1448         * inet/getnameinfo.c: Add libc_hidden_def.
1449         * sysdeps/generic/getaddrinfo.c: Likewise.
1450         * sysdeps/posix/getaddrinfo.c: Likewise.
1451
1452         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
1453         * wcsmbs/wmemchr.c: Add libc_hidden_def.
1454         * wcsmbs/wmemset.c: Add libc_hidden_def.
1455
1456         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
1457         (index, rindex): Define as macros for strchr, strrchr.
1458
1459         * string/envz.c (envz_strip): index -> strchr
1460
1461         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
1462         * sunrpc/rpc_prot.c: Add libc_hidden_def.
1463
1464         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
1465         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
1466
1467         * include/stdlib.h: Use libc_hidden_proto for wctomb.
1468         * stdlib/wctomb.c: Add libc_hidden_def.
1469
1470         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
1471         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
1472         * resolv/herror.c: Likewise.
1473         * inet/rcmd.c: Add libc_hidden_def.
1474         * inet/ruserpass.c: Likewise.
1475         * inet/getnetgrent_r.c: Likewise.
1476
1477         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
1478         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
1479         for svcerr_auth, svcerr_noprog, svcerr_progvers.
1480         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
1481         libc_hidden_def.
1482         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
1483         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
1484
1485         * sysdeps/posix/system.c (do_system): New function, guts broken out of
1486         __libc_system.
1487         (__libc_system): Call it, putting just the line == NULL test here.
1488
1489         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
1490         variables work right.
1491
1492         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
1493         * elf/dl-close.c (_dl_close): Likewise.
1494
1495         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
1496         in6addr_any, in6addr_loopback.  Remove decls for
1497         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
1498         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
1499         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
1500         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
1501         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
1502         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
1503         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
1504         in6addr_loopback.
1505         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
1506
1507         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
1508         ether_aton_r.
1509         * inet/ether_aton_r.c: Add libc_hidden_def.
1510         * inet/ether_ntoa_r.c: Likewise.
1511
1512         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
1513         xprt_unregister.
1514         * sunrpc/svc.c: Add libc_hidden_def.
1515         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
1516         pmap_set, pmap_unset.
1517         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
1518         * sunrpc/pm_getport.c: Likewise.
1519         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
1520         * sunrpc/publickey.c: Add libc_hidden_def.
1521
1522 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1523
1524         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
1525         the other memset call in this function.
1526
1527         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
1528         at correct index.  Clear BSS region now that memalign is used.
1529
1530 2002-08-05  Roland McGrath  <roland@redhat.com>
1531
1532         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1533         * sysdeps/generic/uname.c: Add libc_hidden_def.
1534         * sysdeps/mach/hurd/uname.c: Likewise.
1535
1536 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1537
1538         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1539         wcspbrk): Add libc_hidden_proto.
1540         * time/strftime.c (my_strftime): Add libc_hidden_def.
1541         (strftime): Remove libc_hidden_def.
1542         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
1543         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1544         * wcsmbs/wcsspn.c (wcsspn): Likewise.
1545         * wcsmbs/wcscmp.c (wcscmp): Likewise.
1546         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1547         * wcsmbs/wcscoll.c (wcscoll): Likewise.
1548
1549         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1550         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1551         __rpc_thread_createerr): Add libc_hidden_proto.
1552         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1553         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1554         __rpc_thread_createerr): Add libc_hidden_def.
1555
1556         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1557         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1558         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1559         clnt_perror, clnt_sperror): Add libc_hidden_def.
1560         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1561
1562         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1563         libc_hidden_proto.
1564         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1565         * sunrpc/des_soft.c (des_setparity): Likewise.
1566
1567         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1568         Add libc_hidden_proto.
1569         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1570         Add libc_hidden_def.
1571
1572 2002-08-05  Roland McGrath  <roland@redhat.com>
1573
1574         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1575         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1576         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1577         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1578         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1579         old data, abandoning the original memory allocated by rtld at startup,
1580         instead of calling realloc normally.
1581
1582 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1583
1584         * po/fr.po: Update from translation team.
1585
1586 2002-08-04  Roland McGrath  <roland@redhat.com>
1587
1588         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1589         then generate a dummy module under the given name, obeying the
1590         normal rules for the "caller" field.
1591
1592         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1593         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
1594
1595         * include/pthread.h: Don't declare __pthread_initialize_minimal as
1596         weak here; we declare it weak or strong in the one place we use it.
1597         * sysdeps/generic/libc-start.c: ... which is here.
1598         Don't make the decl weak if [USE_TLS], since static programs need TLS
1599         setup even when single-threaded.
1600
1601         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1602
1603         * elf/Makefile (test-srcs): Add $(modules-names) to it.
1604         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1605         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1606         all these variables.
1607
1608 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1609
1610         * include/stdio.h: Don't define macro magic to redirect function
1611         calls if _ISOMAC is defined.
1612
1613         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1614         ldouble asin tests.
1615
1616 2002-08-04  Roland McGrath  <roland@redhat.com>
1617
1618         * stdlib/lrand48_r.c: Add libc_hidden_def.
1619
1620         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1621         TCB with __libc_memalign instead of mmap.
1622         (_dl_deallocate_tls): Free it with free instead of munmap.
1623
1624         * Makerules (cpp-srcs-left): When setting this to run
1625         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1626         words.  Combine the two loops into one on the concatenated list,
1627         including those as well as $(test-srcs).
1628
1629         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1630         since we align here with optimally minimal waste anyway.
1631         (malloc): Just call that.
1632
1633         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1634         the right variable.
1635
1636         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1637         to compute memory location for l_tls_initimage.
1638         * elf/rtld.c (_dl_start): Likewise.
1639         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1640
1641         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1642         because the .d file is generated in the non-shared case and
1643         so fails to catch them otherwise.
1644
1645         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1646         split out of _dl_allocate_tls.
1647         (_dl_allocate_tls_init): Likewise.
1648         (_dl_allocate_tls): Call those.
1649         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1650         * elf/rtld.c (dl_main): Call them separately instead of calling
1651         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
1652         is finished, so that the initializer data has been relocated before we
1653         copy it into the main thread's TLS block.
1654
1655         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
1656         loop conditions, prevented the last used module from being initialized.
1657
1658 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1659
1660         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
1661         if glob resp. globfree are not macros.
1662         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
1663         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
1664         Add libc_hidden_ver.
1665         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
1666         libc_hidden_def.
1667         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
1668         instead of libc_hidden_weak.
1669         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
1670         libc_hidden_ver instead of libc_hidden_def.
1671         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
1672         libc_hidden_ver instead of libc_hidden_def.
1673         (wcstoll, wcstoq): Remove libc_hidden_weak.
1674         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
1675         libc_hidden_ver.
1676         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
1677         libc_hidden_ver.
1678         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
1679         libc_hidden_ver.
1680         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
1681         libc_hidden_ver.
1682
1683 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1684
1685         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
1686         to access _sys_siglist.
1687         * string/strsignal.c: Likewise.
1688         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
1689         * sysdeps/gnu/siglist.c: Likewise.
1690         * sysdeps/unix/siglist.c: Likewise.
1691         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
1692
1693         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
1694
1695         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
1696
1697         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
1698         alias and use it.
1699         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
1700
1701         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
1702         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
1703         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
1704
1705         * include/time.h: Add libc_hidden_proto for __gmtime_r.
1706         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
1707
1708         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
1709         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
1710         and __gconv_get_cache respectively.
1711         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
1712         defined static.  Change all users.
1713         (__gconv_get_cache): New function.
1714         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
1715         (__gconv_get_alias_db): New function.
1716         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
1717         (__conv_modules_db): Likewise.
1718         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
1719         and __gconv_get_alias_db.
1720         * iconv/iconv_prog.c: Use the new functions instead of accessing the
1721         variables.
1722
1723         * include/stdlib.h: Add prototype and libc_hidden_proto for
1724         __default_morecore.
1725         * sysdeps/generic/morecore.c: Include <stdlib.h>.
1726
1727         * malloc/obstack.c: Remove fputs macro.
1728
1729         * malloc/mtrace.c: Remove fopen macro.
1730
1731 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1732
1733         * manual/debug.texi: Fix spelling to programmatically.
1734         Reported by <hayastan132@hotmail.com>.
1735
1736 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1737
1738         * include/libio.h: Add libc_hidden_proto for __uflow.
1739         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
1740         fgetpos to _IO_* names.
1741         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
1742         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
1743         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
1744         putwc_unlocked, vswscanf.
1745         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
1746         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
1747         * libio/fseek.c: Likewise.
1748         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
1749         not fopencookie.
1750         * libio/genops.c (__uflow): Add libc_hidden_def.
1751         * libio/iofflush_u.c (fflush_unlocked): Likewise.
1752         * libio/iofgets_u.c (fgets_unlocked): Likewise.
1753         * libio/iofputs_u.c (fputs_unlocked): Likewise.
1754         * libio/iofputws_u.c (fputws_unlocked): Likewise.
1755         * libio/iofread_u.c (fread_unlocked): Likewise.
1756         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1757         * libio/iovswscanf.c (vswscanf): Likewise.
1758         * libio/putwc_u.c (putwc_unlocked): Likewise.
1759         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
1760         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
1761         * malloc/mtrace.c: Likewise.
1762
1763         * sunrpc/clnt_perr.c: Remove fputs macro.
1764         * sunrpc/svc_simple.c: Likewise.
1765         * sunrpc/svc_tcp.c: Likewise.
1766         * sunrpc/svc_udp.c: Likewise.
1767         * sunrpc/xdr_rec.c: Likewise.
1768         * sunrpc/xdr_ref.c: Likewise.
1769
1770         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
1771         iconv_prog, linereader, and charmap-dir.
1772         * locale/Makefile: Likewise for locale and charmap-dir.
1773         * malloc/Makefile: Likewise for memusagestat.
1774         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
1775         * sunrpc/Makefile: Likewise for rpc_main.
1776         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
1777         * timezone/Makefile: Likewise for zic.
1778
1779         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
1780
1781         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
1782         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
1783         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
1784         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
1785         _dl_close.
1786
1787         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
1788         __wunderflow.
1789         * libio/genops.c (__underflow): Add libc_hidden_def.
1790         * libio/wgenops.c (__wuflow): Likewise.
1791         (__wunderflow): Likewise.
1792
1793         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
1794         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
1795
1796         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
1797         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
1798
1799         * include/string.h: Add libc_hidden_proto for __strverscmp.
1800         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
1801
1802         * include/unistd.h: Add libc_hidden_proto for __sysconf.
1803         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
1804         * sysdeps/posix/sysconf.c: Likewise.
1805         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1806         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1807
1808         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
1809         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1810         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1811         __iswxdigit_l, __towlower_l, __towupper_l.
1812         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
1813         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
1814
1815         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
1816         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
1817         * sysdeps/mach/hurd/xmknod.c: Likewise.
1818         * sysdeps/unix/xmknod.c: Likewise.
1819         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1820         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1821         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1822
1823         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
1824
1825 2002-08-03  Roland McGrath  <roland@redhat.com>
1826
1827         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
1828         setpriority.
1829         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
1830         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1831         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
1832         * sysdeps/mach/hurd/setpriority.c: Likewise.
1833         * sysdeps/mach/hurd/getpriority.c: Likewise.
1834         * sysdeps/generic/setpriority.c: Likewise.
1835         * sysdeps/generic/getpriority.c: Likewise.
1836
1837         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
1838         * malloc/mcheck.c: Add libc_hidden_def.
1839
1840         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
1841         * misc/hsearch_r.c: Add libc_hidden_def.
1842
1843         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
1844         * posix/fnmatch.c: Add libc_hidden_weak.
1845
1846         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
1847         execl, execle, execlp, execvp, getpid, getsid.
1848         * sysdeps/generic/alarm.c: Add libc_hidden_def.
1849         * sysdeps/unix/alarm.c: Likewise.
1850         * posix/confstr.c: Likewise.
1851         * posix/execvp.c: Likewise.
1852         * posix/execlp.c: Likewise.
1853         * posix/execle.c: Likewise.
1854         * posix/execl.c: Likewise.
1855         * sysdeps/generic/getsid.c: Likewise.
1856         * sysdeps/mach/hurd/getsid.c: Likewise.
1857         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
1858         * sysdeps/mach/hurd/getpid.c: Likewise.
1859
1860         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
1861         qecvt_r, qfcvt_r, lrand48_r.
1862         * misc/efgcvt_r.c: Add libc_hidden_def.
1863
1864         * include/wordexp.h: Use libc_hidden_proto for wordfree.
1865         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
1866
1867         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
1868         * locale/nl_langinfo.c: Add libc_hidden_def.
1869
1870         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
1871         * sysdeps/generic/glob.c: Add libc_hidden_def.
1872         * sysdeps/generic/glob64.c: Likewise.
1873         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
1874
1875         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
1876
1877         * elf/Makefile (CFLAGS-vismod2.c): New variable.
1878
1879         * locale/setlocale.c (_nl_current_names): Variable moved ...
1880         * locale/localename.c (_nl_current_names): ... here, new file.
1881         Make it global, with attribute_hidden.
1882         * locale/localeinfo.h: Declare it.
1883         * locale/Makefile (aux): Add localename.
1884         * locale/localename.c (__current_locale_name): New function.
1885         * include/locale.h (__current_locale_name): Declare it.
1886         * intl/dcigettext.c (guess_category_value): Use that instead of
1887         calling setlocale.
1888
1889         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
1890         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
1891         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
1892         * locale/newlocale.c: Add alias to __ name.
1893         * locale/duplocale.c: Likewise.
1894         * locale/freelocale.c: Likewise.
1895         * locale/uselocale.c: New file.
1896         * locale/Makefile (routines): Add it.
1897         * locale/Versions (libc: GLIBC_2.3): New set.
1898         Add newlocale, duplocale, freelocale, uselocale.
1899         (libc: GLIBC_PRIVATE): Add __uselocale.
1900
1901         * locale/localeinfo.h [SHARED]
1902         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1903         (_NL_CURRENT_DATA): Define using that.
1904         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1905         (_NL_CURRENT_DEFINE): Define to empty.
1906         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1907         conditionalized on this.
1908         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1909         taking initializer of _nl_C_locobj.
1910         [SHARED] (_nl_global_locale): New variable, using that initializer.
1911         (_nl_C_locobj): Use new macro for initialzier.
1912         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1913         [! SHARED] (CATEGORY_USED): New macro.
1914         [SHARED] (CATEGORY_USED, _nl_C): New macros.
1915         (setdata, setlocale): Use that macro instead of examining _nl_current.
1916         (setdata): Set the slot in _nl_global_locale.
1917         Conditionalize setting of _nl_current on [! SHARED].
1918         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1919         declaration as an extern.
1920         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1921
1922         * include/locale.h: Use libc_hidden_proto for setlocale.
1923         * locale/setlocale.c: Add libc_hidden_def.
1924
1925         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1926
1927         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1928         * misc/hsearch_r.c: Add libc_hidden_def.
1929         * misc/lsearch.c: Likewise.
1930
1931         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1932         endttyent.
1933         * misc/getttyent.c: Add libc_hidden_def.
1934
1935         * include/mcheck.h: Use libc_hidden_proto for mcheck.
1936         * malloc/mcheck.c: Add libc_hidden_def.
1937
1938         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1939         * include/argz.h: Use libc_hidden_proto for argz_delete.
1940         * string/argz-delete.c: Add libc_hidden_def.
1941         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
1942
1943         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1944         HIDDEN_JUMPTARGET for _exit.
1945         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1946         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1947         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1948         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1949
1950         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1951         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1952         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1953         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1954
1955         * include/stdlib.h: Use libc_hidden_proto for abort,
1956         __strtof_internal, __strtod_internal, __strtold_internal,
1957         __strtol_internal, __strtoll_internal, __strtoul_internal,
1958         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1959         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1960         __strtoul_l_internal, __strtoull_l_internal.
1961         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1962         __wcstod_internal, __wcstold_internal, __wcstol_internal,
1963         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1964         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1965         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1966         __wcsncasecmp_l.
1967         * sysdeps/generic/abort.c: Add libc_hidden_def.
1968         * stdlib/strtod.c: Likewise.
1969         * sysdeps/generic/strtol.c: Likewise.
1970         * sysdeps/wordsize-64/strtol.c: Likewise.
1971         * sysdeps/wordsize-64/wcstol.c: Likewise.
1972         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1973
1974         * include/stdlib.h: Use libc_hidden_proto for qsort.
1975         * stdlib/msort.c: Add libc_hidden_def.
1976
1977         * include/utime.h: Use libc_hidden_proto for utime.
1978         * sysdeps/generic/utime.c: Add libc_hidden_def.
1979         * sysdeps/unix/utime.c: Likewise.
1980
1981         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1982         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1983         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1984         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1985         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1986
1987         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1988         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1989         and __libc_current_sigrtmax.
1990         * signal/sigismem.c: Add libc_hidden_def.
1991         * signal/sigfillset.c: Likewise.
1992         * signal/sigempty.c: Likewise.
1993         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1994         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1995         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1996         * sysdeps/posix/raise.c: Likewise.
1997         * sysdeps/generic/raise.c: Likewise.
1998
1999 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2000
2001         * include/string.h: Use libc_hidden_proto for __stpcpy.
2002         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
2003         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
2004         * sysdeps/generic/stpcpy.c: Likewise.
2005         * sysdeps/i386/stpcpy.S: Likewise.
2006         * sysdeps/i386/i586/stpcpy.S: Likewise.
2007         * sysdeps/powerpc/stpcpy.S: Likewise.
2008         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2009         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
2010
2011         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
2012         __strncasecmp_l, __strdup, __strndup, __strerror_r.
2013         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
2014         libc_hidden_def.
2015         * string/strdup.c (__strdup): Likewise.
2016         * string/strndup.c (__strndup): Likewise.
2017         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
2018         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
2019
2020 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2021
2022         * include/libio.h: New file.
2023         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
2024         * libio/iolibio.h: #include <libio.h>, not "libio.h".
2025         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
2026         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
2027         * sysdeps/unix/common/syscalls.list: Likewise.
2028         * sysdeps/unix/inet/syscalls.list: Likewise.
2029         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
2030         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2031         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2032         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2033         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2034         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2035         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2036         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2037         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2038         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
2039         * sysdeps/unix/syscalls.list: Likewise.
2040
2041 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2042             Ulrich Drepper  <drepper@redhat.com>
2043
2044         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
2045         the arguments is big enough to cause an overflow.
2046
2047 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
2048
2049         * assert/assert.c: Use hidden_def not INTDEF.
2050
2051 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
2052
2053         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
2054         not defined.
2055
2056 2002-08-03  Roland McGrath  <roland@redhat.com>
2057
2058         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
2059         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
2060         verr, verrx.
2061         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
2062         * misc/syslog.c: Add libc_hidden_def.
2063         * misc/err.c: Likewise.
2064         * stdlib/exit.c: Likewise.
2065         * stdlib/bsearch.c: Likewise.
2066         * sysdeps/generic/getenv.c: Likewise.
2067
2068         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
2069
2070         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
2071         libc_hidden_weak for every system call symbol defined.
2072
2073         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
2074         timelocal, localtime, strftime.
2075         * time/asctime.c: Add libc_hidden_def.
2076         * time/mktime.c: Likewise.
2077         * time/localtime.c: Likewise.
2078         * time/strftime.c: Likewise.
2079         * time/strptime.c: Likewise.
2080         * sysdeps/generic/time.c: Likewise.
2081         * sysdeps/unix/time.c: Likewise.
2082         * sysdeps/unix/sysv/i386/time.S: Likewise.
2083         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2084
2085         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
2086         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
2087         * resolv/inet_ntop.c: Likewise.
2088         * resolv/inet_pton.c: Likewise.
2089         * inet/inet_mkadr.c: Add libc_hidden_def.
2090         * inet/inet_netof.c: Likewise.
2091         * resolv/inet_addr.c: Likewise.
2092
2093         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
2094         clauses from conditionals for now.  Will have to be fixed later
2095         for older compilers.
2096
2097         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
2098
2099 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2100
2101         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
2102         broken alias attribute handling.
2103         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
2104
2105 2002-08-02  Roland McGrath  <roland@frob.com>
2106
2107         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
2108         since it sets the variables we use in a -D switch.
2109
2110 2002-08-02  Roland McGrath  <roland@redhat.com>
2111
2112         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
2113         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
2114         matches long int, not int.
2115
2116         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
2117         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
2118         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2119         * wctype/wctrans.c (wctrans): Likewise.
2120         * wctype/wctype.c (__wctype): Likewise.
2121         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
2122
2123 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2124
2125         * assert/assert.c (__assert_fail): Fix typo in comment.
2126
2127         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
2128         * sunrpc/rpc_thread.c: Define it without static.
2129         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
2130
2131 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2132
2133         * assert/assert.c (__assert_fail): Remove undef.
2134         Replace INTDEF with libc_hidden_def.
2135         * assert/__assert.c (__assert): Remove INTUSE.
2136         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
2137         libc_hidden_weak.
2138         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
2139         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
2140         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
2141         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
2142         libm_hiden_ver): Define.
2143         * include/assert.h (__assert_fail_internal): Remove.
2144         (__assert_fail): Add prototype.  Add hidden_proto.
2145         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
2146         libc_hidden_proto.
2147         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
2148         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
2149         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
2150         Add libc_hidden_proto.
2151         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
2152         __fcntl): Add libc_hidden_proto.  Remove macros.
2153         (__open_internal, __fcntl_internal): Remove.
2154         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
2155         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
2156         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
2157         libc_hiden_proto.
2158         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
2159         libc_hidden_def.
2160         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
2161         Add libc_hidden_def.
2162         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
2163         * sysdeps/generic/open.c (__open): Remove undef.
2164         Add libc_hidden_def.  Remove INTDEF.
2165         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
2166         Add libc_hidden_def.
2167         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
2168         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
2169         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
2170         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2171         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
2172         (__libc_fcntl): Add libc_hidden_def.
2173         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
2174         (__open): Remove INTDEF2.  Add libc_hidden_weak.
2175         (__libc_open): Add libc_hidden_def.
2176         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
2177         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
2178         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
2179         Add libc_hidden_def.
2180         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
2181         Add libc_hidden_def.
2182         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
2183         undef.
2184         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
2185         (__libc_fcntl): Add libc_hidden_def.
2186         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
2187         __getpgid_internal, __chown_internal): Remove.
2188         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
2189         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
2190         __GI___chown): Add.
2191         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
2192         __getpid_internal, __open_internal, __write_internal): Remove.
2193         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
2194         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
2195         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
2196         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
2197         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
2198         Replace INTDEF with libc_hidden_def.
2199         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
2200         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
2201         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
2202         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
2203         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
2204         Add libc_hidden_proto.
2205         * include/sys/poll.h (__poll): Add libc_hidden_proto.
2206         * include/sys/select.h (__select): Likewise.
2207         * include/sys/socket.h (__send): Likewise.
2208         * include/sys/statfs.h (__statfs): Likewise.
2209         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
2210         __getpid, __getpgid, __setpgid, __close, __read, __write,
2211         __getpagesize, __sbrk): Likewise.
2212         (__chown_internal, __dup2_internal, __getpid_internal,
2213         __getpgid_internal, __close_internal, __write_internal,
2214         __getpagesize_internal): Remove.
2215         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
2216         Remove macros.
2217         * include/printf.h (__printf_fp): Add libc_hidden_proto.
2218         * include/sched.h (__sched_setscheduler): Likewise.
2219         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
2220         * include/stdlib.h (__secure_getenv): Likewise.
2221         * include/signal.h (__sigaction, __sigsuspend): Likewise.
2222         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
2223         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
2224         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
2225         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
2226         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
2227         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
2228         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
2229         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
2230         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
2231         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
2232         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
2233         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
2234         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
2235         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
2236         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
2237         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2238         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2239         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2240         * libio/genops.c (__overflow): Add libc_hidden_def.
2241         * libio/iovdprintf.c: Remove libio.h include.
2242         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
2243         libc_hidden_weak): Define to nothing if not defined.
2244         (__overflow, __woverflow): Add libc_hidden_proto.
2245         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
2246         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
2247         (DB_LOOKUP_FCT): Add libc_hidden_proto.
2248         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
2249         (DB_LOOKUP_FCT): Add libc_hidden_proto.
2250         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
2251         and libc_hidden_def.
2252         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
2253         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
2254         (__getpgid): Add libc_hidden_proto.
2255         (__bsd_getpgrp): Remove INTUSE.
2256         * resolv/res_init.c (__res_ninit, __res_randomid): Add
2257         libc_hidden_def.
2258         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
2259         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
2260         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
2261         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
2262         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
2263         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
2264         __rpc_thread_createerr): Add libc_hidden_def.
2265         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
2266         libc_hidden_def.
2267         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
2268         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
2269         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
2270         * sysdeps/generic/chown.c (__chown): Likewise.
2271         * sysdeps/generic/close.c (__close): Likewise.
2272         * sysdeps/generic/dup2.c (__dup2): Likewise.
2273         * sysdeps/generic/pipe.c (__pipe): Likewise.
2274         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
2275         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
2276         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
2277         * sysdeps/generic/read.c (__libc_read): Likewise.
2278         (__read): Add libc_hidden_weak.
2279         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
2280         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
2281         * sysdeps/generic/select.c (__select): Likewise.
2282         * sysdeps/generic/send.c (__send): Likewise.
2283         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
2284         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
2285         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
2286         * sysdeps/generic/statfs.c (__statfs): Likewise.
2287         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
2288         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
2289         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
2290         Remove undef and INTDEF.
2291         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
2292         * sysdeps/generic/getpid.c (__getpid): Likewise.
2293         * sysdeps/generic/write.c (__libc_write): Likewise.
2294         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
2295         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
2296         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2297         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
2298         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
2299         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
2300         Remove undef and INTDEF.
2301         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
2302         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
2303         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2304         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2305         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
2306         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
2307         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
2308         (__pipe): Add libc_hidden_def.
2309         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
2310         libc_hidden_weak.
2311         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
2312         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
2313         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
2314         (__read): Add libc_hidden_weak.
2315         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
2316         (__libc_pwrite64): Add libc_hidden_def.
2317         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2318         * sysdeps/mach/hurd/select.c (__select): Likewise.
2319         * sysdeps/mach/hurd/send.c (__send): Likewise.
2320         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
2321         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2322         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
2323         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2324         * sysdeps/posix/dup2.c: Likewise.
2325         Remove undef and INTDEF.
2326         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
2327         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
2328         (__pwrite64): Add libc_hidden_weak.
2329         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
2330         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
2331         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
2332         * sysdeps/standalone/close.c (__close): Likewise.
2333         * sysdeps/standalone/write.c (__libc_write): Likewise.
2334         (__write): Add libc_hidden_weak.
2335         * sysdeps/standalone/read.c (__read): Likewise.
2336         (__libc_read): Add libc_hidden_def.
2337         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
2338         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
2339         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
2340         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
2341         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
2342         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
2343         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
2344         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
2345         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
2346         __GI___sigaction): Add.
2347         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
2348         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
2349         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
2350         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
2351         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
2352         __GI___setpgid): Add.
2353         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
2354         Remove undef and INTDEF.
2355         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
2356         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
2357         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
2358         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
2359         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
2360         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
2361         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
2362         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
2363         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
2364         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
2365         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
2366         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
2367         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
2368         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
2369         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
2370         __GI___statfs, __GI___send): Add.
2371         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
2372         libc_hidden_ver resp. libc_hidden_def.
2373         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
2374         libc_hidden_def.
2375         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
2376         Likewise.  Remove undef and INTDEF.
2377         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
2378         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
2379         __GI___statfs, __GI___send): Add.
2380         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
2381         libc_hidden_def.
2382         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
2383         Likewise.
2384         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
2385         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
2386         libc_hidden_ver resp. libc_hidden_def.
2387         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
2388         __GI___send): Add.
2389         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
2390         Add libc_hidden_weak.
2391         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
2392         Add libc_hidden_def.
2393         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
2394         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
2395         libc_hidden_weak.
2396         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
2397         resp. libc_hidden_def.
2398         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
2399         libc_hidden_weak.
2400         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
2401         INTDEF.
2402         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2403         Likewise.  Remove undef.
2404         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
2405         libc_hidden_weak.
2406         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
2407         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
2408         libc_hidden_weak.
2409         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
2410         libc_hidden_def.
2411         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
2412         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2413         Likewise.  Remove undef and INTDEF.
2414         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
2415         libc_hidden_def.
2416         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
2417         libc_hidden_weak.
2418         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
2419         libc_hidden_def.
2420         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2421         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
2422         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
2423         libc_hidden_weak.
2424         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
2425         Add libc_hidden_def.
2426         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
2427         __GI___statfs): Add.
2428         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
2429         libc_hidden_weak.
2430         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
2431         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
2432         Remove undef and INTDEF.
2433         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
2434         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
2435         libc_hidden_def.
2436         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
2437         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
2438         libc_hidden_weak.
2439         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
2440         libc_hidden_def.
2441         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
2442         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
2443         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
2444         Add.
2445         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
2446         libc_hidden_def.  Remove undef and INTDEF.
2447         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
2448         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
2449         libc_hidden_def.
2450         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
2451         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
2452         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
2453         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
2454         Remove undef and INTDEF.
2455         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
2456         broken visibility attribute handling.
2457         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
2458
2459 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2460
2461         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
2462         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
2463
2464         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
2465         previous patch.
2466
2467 2002-06-29  Todd Fries  <todd@openbsd.org>
2468
2469         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
2470
2471 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2472
2473         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
2474
2475 2002-07-30  Roland McGrath  <roland@redhat.com>
2476
2477         * resolv/resolv.h (_res): Define macro unconditionally.
2478         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
2479         * include/resolv.h: ... here.
2480         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
2481         as a __thread variable.
2482         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
2483         a __thread variable instead of a global.
2484         * resolv/res_data.c [_LIBC]: Don't #undef _res.
2485
2486         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
2487         time we test it.
2488
2489         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
2490
2491         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
2492         decls of memset and memcpy.
2493
2494         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
2495         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
2496
2497         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
2498
2499         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
2500         (__libc_tsd_define): Define using __thread.
2501
2502         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
2503         (__rpc_thread_variables): Use __libc_tsd_get.
2504         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
2505         __rpc_thread_variables, which might allocate what we're about to free.
2506
2507         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
2508         thread-local variable.
2509         * resolv/netdb.h (h_errno): Define macro unconditionally.
2510         [_LIBC] (__set_h_errno): Macro moved to ...
2511         * include/netdb.h: ... here.
2512         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
2513         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
2514         [! _LIBC_REENTRANT]: #undef h_errno here.
2515
2516         * include/errno.h: Protect from multiple inclusion.
2517
2518         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
2519         before defining them, since Linux's <linux/posix_types.h> might have
2520         defined them.
2521
2522 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2523
2524         * malloc/malloc.c (public_cALLOc): Check for overflow on
2525         multiplication.
2526         * sunrpc/xdr_array.c (xdr_array): Likewise.
2527         * sunrpc/rpc/types.h (mem_free): Add comment.
2528         Patch by Solar Designer <solar@openwall.com>.
2529
2530 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2531
2532         * sysdeps/unix/sysv/linux/kernel-features.h
2533         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2534
2535 2002-08-01  Roland McGrath  <roland@redhat.com>
2536
2537         * libio/fileops.c (_IO_file_sync_mmap): New function.
2538         (_IO_file_jumps_mmap): Use it.
2539         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
2540         repeat the stat check and resize the mapped buffer as necessary.
2541
2542 2002-07-31  Roland McGrath  <roland@redhat.com>
2543
2544         * libio/fileops.c (decide_maybe_mmap): New static function.
2545         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2546         mmap the file contents.  Then switch the jump tables to the mmap
2547         tables if it worked, or the vanilla file tables if not.
2548         (_IO_file_underflow_maybe_mmap): New function.
2549         (_IO_file_seekoff_maybe_mmap): New function.
2550         (_IO_file_xsgetn_maybe_mmap): New function.
2551         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2552         * libio/libioP.h: Declare those.
2553         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2554         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2555         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2556         If the stream is read-only, set its jump tables to those new ones.
2557         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2558         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2559         We need the tables set before _IO_file_attach.
2560
2561         * libio/tst-mmap-eofsync.c: New file.
2562         * libio/tst-mmap-fflushsync.c: New file.
2563         * libio/bug-mmap-fflush.c: New file.
2564         * libio/tst-mmap2-eofsync.c: New file.
2565         * libio/Makefile (tests): Add them.
2566
2567         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2568         _IO_file_underflow_mmap fails, it already set the appropriate bit.
2569
2570 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
2571
2572         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2573         Declarations moved to <bits/sys_errlist.h>.  Include that file.
2574         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2575         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
2576         declare sys_errlist and sys_nerr.
2577         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
2578         provide declarations.
2579
2580 2002-07-31  Roland McGrath  <roland@redhat.com>
2581
2582         * elf/rtld.c (dl_main): Fix typo in error message.
2583
2584 2002-07-31  Roland McGrath  <roland@frob.com>
2585
2586         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2587         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
2588         sysdeps/mach/hurd/dl-sysdep.c change.
2589
2590 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
2591
2592         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2593         -r`/build/include for kernel headers.
2594
2595         * po/fi.po: New file.
2596
2597 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
2598
2599         * configure.in (static_nss): Set to `yes' if --disable-shared.
2600
2601 2002-07-23  Bruno Haible  <bruno@clisp.org>
2602
2603         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2604         is set.
2605
2606 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2607
2608         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2609         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2610         arguments.
2611
2612 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2613
2614         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2615         alias.
2616
2617 2002-07-21  Bruno Haible  <bruno@clisp.org>
2618
2619         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2620         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2621         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2622         trans_sysdep_tab_offset.
2623         (struct sysdep_segment): New type.
2624         (struct sysdep_string): New type.
2625         (SEGMENTS_END): New macro.
2626         * intl/gettextP.h (struct sysdep_string_desc): New type.
2627         (struct loaded_domain): New fields malloced, n_sysdep_strings,
2628         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2629         orig_tab, trans_tab, hash_tab to const pointers because they point
2630         into read-only memory.
2631         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2632         (PRI*): Define fallback values.
2633         (get_sysdep_segment_value): New function.
2634         (_nl_load_domain): Distinguish major and minor revision parts. Add
2635         support for minor revision 1 with system dependent strings.
2636         (_nl_unload_domain): Also free the 'malloced' field.
2637         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2638         now done in loadmsgcat.c. Add support for system dependent strings.
2639
2640 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2641
2642         * posix/bug-regex7.c: New file.
2643         * posix/bug-regex8.c: New file.
2644         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2645
2646 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2647
2648         * posix/bug-regex4.c (main): Fix typos.
2649         * posix/bug-regex6.c (main): Likewise.
2650
2651 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
2652
2653         * posix/bug-regex6.c (main): Fix warnings.
2654
2655         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
2656
2657         * iconv/iconv_prog.c (main): Improve error message for the cases
2658         where -t and/or -f parameter are missing.
2659
2660 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
2661
2662         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
2663         (re_search): Likewise.
2664         (re_match_2): Likewise.
2665         (re_search_2): Likewise.
2666         (re_search_stub): New function.
2667         (re_search_2_stub): New function.
2668         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
2669
2670 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
2671
2672         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
2673         (re_string_eoi): Use STOP instead of LEN.
2674         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
2675         (re_string_construct): Likewise.
2676         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
2677         * posix/regexec.c (re_search_internal): Add a new argument STOP
2678         so that it can handle the argument STOP of re_search_2 and re_match_2
2679         correctly.
2680         (regexec): Adapt to new I/F of re_search_internal.
2681         (re_search_stub): Likewise.
2682
2683 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
2684
2685         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
2686
2687         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
2688
2689         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
2690         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
2691         of __divdi3.
2692
2693         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
2694         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
2695         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
2696         alias for adjtimex syscall.
2697
2698         * elf/dl-minimal.c: Define __assert_fail_internal.
2699         * assert/assert.c: Likewise.
2700         * include/assert.h: Define __assert_file macro if !SHARED and not
2701         NOT_IN_libc.
2702
2703         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
2704         programs.
2705         * locale/Makefile: Likewise.
2706         * nscd/Makefile: Likewise.
2707         * catgets/Makefile: Likewise.
2708
2709 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2710
2711         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
2712         compute current position.
2713
2714         * stdio-common/tst-fseek.c (main): Improve error messages.
2715
2716         * libio/tst-freopen.c (main): Remove unused variable.
2717
2718         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
2719         succesful seek call.  Simplify error checking.
2720
2721 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2722
2723         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
2724         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2725
2726 2002-07-19  Roland McGrath  <roland@frob.com>
2727
2728         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
2729         __libc_enable_secure is set.
2730
2731 2002-07-24  Roland McGrath  <roland@frob.com>
2732
2733         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
2734         This implementation supports only IPv4.
2735         * inet/ifaddrs.h: New file.
2736         * sysdeps/generic/ifaddrs.c: New file.
2737         * sysdeps/gnu/ifaddrs.c: New file.
2738         * inet/test-ifaddrs.c: New file.
2739         * inet/Makefile (routines): Add ifaddrs.
2740         (headers): Add ifaddrs.h here.
2741         (tests): Add test-ifaddrs.
2742         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
2743
2744         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
2745         socket call to get an AF_INET socket, instead of using __opensock.
2746         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
2747
2748         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
2749         if not -1 use it instead of calling __opensock.
2750         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
2751         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
2752         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
2753
2754         * sysdeps/mach/hurd/ifreq.h: New file.
2755         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
2756         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
2757         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2758
2759         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
2760         which gets moved around.  Calculate size of mmap'd buffer instead.
2761
2762 2002-07-24  Philip Blundell  <philb@gnu.org>
2763
2764         * sysdeps/unix/arm/brk.S: Improve schedule.
2765         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
2766         efficient instruction.
2767         (__socket): Optimize return sequence.
2768
2769 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2770
2771         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
2772         sockets on old kernels.
2773
2774 2002-07-22  Philip Blundell  <philb@gnu.org>
2775
2776         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
2777         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
2778         alias.
2779
2780 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2781
2782         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
2783         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
2784
2785         * locale/programs/locarchive.c (add_locale_to_archive): Correct
2786         test to detect duplicate locales.
2787
2788         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
2789         position would be before beginning of file.
2790         (_IO_file_seekoff_mmap): Likewise.
2791         * libio/Makefile (tests): Add bug-fseek.
2792         * libio/bug-fseek.c: New file.
2793
2794         * intl/explodename.c: Remove support for CEN-style locale variables.
2795         It was never used and shouldn't be since it's not portable.
2796         * intl/finddomain.c: Likewise.
2797         * intl/l10nflist.c: Likewise.
2798         * intl/loadinfo.h: Likewise.
2799         * locale/findlocale.c: Likewise.
2800
2801 2002-07-24  Roland McGrath  <roland@frob.com>
2802
2803         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
2804         position, calculate it to take into account an active pushback buffer.
2805
2806         * libio/Makefile (tests): Add bug-ungetc.
2807         * libio/bug-ungetc.c: New file.
2808
2809 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
2810
2811         * sysdeps/generic/libc-tls.c: New file.
2812         * csu/Makefile (routines): Add libc-tls.
2813         (static-only-routines): Add libc-tls.
2814         * elf/dl-support.c (_dl_phdr): New variable.
2815         (_dl_phnum): New variable.
2816         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
2817         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
2818         for !SHARED.  First look through auxiliary vector.  If TLS always
2819         call __pthread_initialize_minimal.
2820
2821         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
2822         in mmap call is never zero.
2823
2824 2002-07-23  Andreas Jaeger  <aj@suse.de>
2825
2826         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
2827         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2828
2829 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
2830
2831         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
2832         creation and removal of the temp file.
2833
2834         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
2835         file creation.
2836         * test-skeleton.c (create_temp_file): New function.
2837
2838 2002-07-22  Andreas Jaeger  <aj@suse.de>
2839
2840         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
2841         local label.
2842
2843 2002-07-21  Roland McGrath  <roland@frob.com>
2844
2845         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
2846         put -I../include before -I../stdlib so we get the right errno.h et al.
2847         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
2848         (CFLAGS-wcstof.c): Likewise.
2849         (CFLAGS-wcstold.c): Likewise.
2850         (CFLAGS-wcstod_l.c): Likewise.
2851         (CFLAGS-wcstof_l.c): Likewise.
2852         (CFLAGS-wcstold_l.c): Likewise.
2853
2854 2002-07-19  Roland McGrath  <roland@frob.com>
2855
2856         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
2857
2858 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
2859
2860         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
2861         __ASSUME_AT_XID is defined.
2862         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
2863         for 2.4.1 and up.
2864         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
2865         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
2866
2867         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
2868         (CFLAGS-wcstof.c): Likewise.
2869         (CFLAGS-wcstold.c): Likewise.
2870         (CFLAGS-wcstod_l.c): Likewise.
2871         (CFLAGS-wcstof_l.c): Likewise.
2872         (CFLAGS-wcstold_l.c): Likewise.
2873
2874 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
2875
2876         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
2877         __priority_which_t): Always typedef to int for C++.
2878
2879 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
2880
2881         * configure.in: Add test for __thread support in compiler.
2882         * config.h.in: Add HAVE___THREAD.
2883         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
2884         * include/sys/errno.h: Moved to...
2885         * stdlib/sys/errno.h: ...here.  New file.
2886         * stdlib/errno.h: New file.  Moved from...
2887         * include/errno.h: ...here.  Changed into an internal header defining
2888         libc-local things like __set_errno.
2889         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
2890         bits/errno.h.
2891         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
2892         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
2893         either.
2894         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2895         from...
2896         (_dl_start_final): ...here.  Add code to initialize tls elements from
2897         bootstrap_map.
2898         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2899         if USE_TLS && HAVE___THREAD.
2900         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2901         * sysdeps/mach/hurd/bits/errno.h: Likewise.
2902         * sysdeps/standalone/arm/bits/errno.h: Likewise.
2903         * sysdeps/standalone/bits/errno.h: Likewise.
2904         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2905         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2906         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2907         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2908         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2909         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2910         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2911         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2912         use GL(dl_rtld_map), use map parameter.
2913         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2914         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2915         USE_TLS && HAVE___THREAD.
2916         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2917         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
2918         TLS code sequence.
2919         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2920
2921         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2922         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2923         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2924         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2925         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2926         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2927
2928 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
2929
2930         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2931         MS_INVALIDATE values.
2932
2933 2002-07-17  Andreas Schwab  <schwab@suse.de>
2934             Ulrich Drepper  <drepper@redhat.com>
2935
2936         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2937         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2938         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2939         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2940
2941 2002-07-01  H.J. Lu  <hjl@gnu.org>
2942
2943         * elf/circleload1.c (load_dso): Call "circlemod1" and check
2944         return value.
2945
2946         * elf/circlemod1.c (circlemod1): Return int.
2947         * elf/circlemod2.c (circlemod2): Likewise.
2948         * elf/circlemod2a.c (circlemod2): Likewise.
2949         * elf/circlemod3.c (circlemod3): Likewise.
2950         (circlemod3a): A new function.
2951
2952 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
2953
2954         * catgets/tst-catgets.c (main): Don't expect results for
2955         untranslated messages.
2956
2957         * glibcbug.in: Fix little typo.  Remove STDIO.
2958
2959         * config.h.in: Fail if __FAST_MATH__ is defined.
2960         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2961         (CPPFLAGS-test-idouble.c): Likewise.
2962         (CPPFLAGS-test-ildouble.c): Likewise.
2963
2964 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2965
2966         * intl/tst-gettext.sh: Pass -f option to msgfmt.
2967         * intl/tst-gettext.c: Correctly handle untranslated messages in
2968         positive tests.
2969
2970         * po/de.po: Update from translation team.
2971
2972 2002-07-02  H.J. Lu  <hjl@gnu.org>
2973
2974         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
2975         use ll/sc.
2976         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2977
2978         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2979         to 2.4.0 for mips.
2980
2981 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2982
2983         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2984         TLS fail if USE_TLS is not defined.
2985
2986         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2987         and adjust state for seek position.  [PR libc/4070]
2988         * libio/Makefile (tests): Add bug-rewind.
2989         * libio/bug-rewind.c: New file.
2990
2991 2002-07-12  Philip Blundell  <philb@gnu.org>
2992
2993         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2994         (__backtrace): Use it.
2995         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
2996
2997 2002-07-12  Philip Blundell  <philb@gnu.org>
2998
2999         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
3000         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3001         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3002         (elf_machine_rela): Remove unused variable.
3003
3004         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
3005         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
3006         define.
3007
3008 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
3009
3010         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
3011
3012 2002-07-14  Andreas Jaeger  <aj@suse.de>
3013
3014         * sysdeps/x86_64/bits/link.h: Add biarch support.
3015
3016 2002-07-13  Andreas Jaeger  <aj@suse.de>
3017
3018         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
3019         Use correct indices.
3020         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
3021
3022 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3023
3024         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
3025         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
3026         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
3027         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
3028         * sysdeps/s390/s390-32/bits/link.h: Remove.
3029         * sysdeps/s390/s390-64/bits/link.h: Remove.
3030         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
3031         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
3032         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
3033         * sysdeps/s390/bits/wordsize.h: New file.
3034         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
3035         elfclass.h.
3036         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
3037         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
3038         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
3039         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
3040         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
3041         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
3042         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
3043         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
3044         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
3045         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
3046         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
3047         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
3048         resource.h.
3049         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
3050         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
3051         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
3052         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
3053         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
3054         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
3055         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
3056         sigaction.h.
3057         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
3058         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
3059         siginfo.h.
3060         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
3061         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
3062         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
3063         socket.h.
3064         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
3065         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
3066         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
3067         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
3068         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
3069         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
3070         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
3071         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
3072         procfs.h.
3073         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
3074         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
3075         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
3076         ucontext.h.
3077         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
3078         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
3079
3080 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3081
3082         * Versions.def (libc): Add GLIBC_2.3.
3083         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
3084         * stdlib/canonicalize.c: Add compatibility version for realpath
3085         and make new code available in GLIBC_2.3.
3086
3087 2002-07-06  Bruno Haible  <bruno@clisp.org>
3088
3089         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
3090
3091 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
3092
3093         * resolv/res_hconf.c (_res_hconf_init): Move code into new
3094         function do_init.  Use __libc_once.
3095         (do_init): New function.
3096
3097         * iconvdata/iso8859-11.h: Removed.
3098         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
3099         (distribute): Remove iso8859-11.h.
3100         * iconvdata/tst-tables.sh: Add ISO-8859-11.
3101
3102         * stdio-common/vfscanf.c (inchar): Restore errno from previous
3103         underflow operation if c == (W)EOF.
3104
3105 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3106
3107         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
3108         non-zero, adjust exponent.
3109         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
3110         Remove NO_LONG_DOUBLE aliases.
3111         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
3112         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
3113         (__log1pl): Raise divide by zero and invalid exceptions when needed.
3114         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
3115         1**y and -1**+-Inf.
3116         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
3117         Fix BITS_PER_MP_LIMB 32 extraction.
3118         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
3119         exceptions for qNaNs.
3120         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3121         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
3122         Raise exceptions when needed.  Don't recurse unnecessarily.
3123         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
3124         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
3125         exceptions for qNaNs.
3126         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
3127         to fix *quo return value sign.
3128         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
3129         case -Inf argument.
3130         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
3131
3132 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
3133
3134         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
3135         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
3136         -DNDEBUG.
3137
3138 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
3139
3140         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
3141         the result.
3142
3143         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
3144         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
3145
3146         * Versions.def (libthread_db): Add GLIBC_2.3.
3147
3148 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
3149
3150         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
3151         new stream if possible.
3152         * libio/freopen64.c (freopen64): Likewise.
3153         * libio/Makefile (tests): Add tst-freopen.
3154         * libio/tst-freopen.c: New file.
3155
3156 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3157
3158         * libio/stdio.h (obstack_printf): Add format attribute.
3159         (obstack_vprintf): Likewise.
3160
3161 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
3162
3163         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
3164         resp. 16 bytes on 32-bit resp. 64-bit platforms.
3165         (re_charset_t, re_string_t): Reorder structure members for 64-bit
3166         architectures.
3167
3168 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
3169
3170         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
3171         (init_dfa): ...here.
3172
3173 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3174
3175         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
3176         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
3177         nodes in parse trees.
3178         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
3179         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
3180         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
3181         nodes which can epsilon transit.
3182         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
3183         to IS_EPSILON_NODE macro.
3184         * posix/regexec.c (update_regs): New function to update registers
3185         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
3186         (proceed_next_node): Use the entities of the nodes to determine
3187         whether the node can transit to.
3188         (set_regs): Use update_regs function to update registers.
3189
3190 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
3191
3192         * posix/bug-regex4.c (main): Remove duplicate setlocale.
3193         * posix/bug-regex6.c: New file.
3194         * posix/Makefile (tests): Add bug-regex6.
3195         (bug-regex6-ENV): Set LOCPATH.
3196
3197 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
3198
3199         * Versions.def [libpthread]: Add GLIBC_2.2.6.
3200         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
3201
3202 2002-07-06  Bruno Haible  <bruno@clisp.org>
3203
3204         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
3205
3206 2002-07-06  Bruno Haible  <bruno@clisp.org>
3207
3208         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
3209         declarations.
3210
3211         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
3212
3213         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
3214
3215         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
3216         not _UTSNAME_H.
3217         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
3218
3219         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
3220         * sysdeps/generic/bits/ustat.h: Likewise.
3221
3222         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
3223
3224 2002-07-08  Andreas Jaeger  <aj@suse.de>
3225
3226         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
3227
3228 2002-07-08  Andreas Jaeger  <aj@suse.de>
3229
3230         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
3231
3232 2002-07-06  Andreas Jaeger  <aj@suse.de>
3233
3234         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
3235         * sysdeps/x86_64/fpu/s_copysign.S: New.
3236         * sysdeps/x86_64/fpu/s_copysignf.S: New.
3237         * sysdeps/x86_64/fpu/s_copysignl.S: New.
3238         * sysdeps/x86_64/fpu/s_finitel.S: New.
3239         * sysdeps/x86_64/fpu/s_fmax.S: New.
3240         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
3241         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
3242         * sysdeps/x86_64/fpu/s_fmin.S: New.
3243         * sysdeps/x86_64/fpu/s_fminf.S: New.
3244         * sysdeps/x86_64/fpu/s_fminl.S: New.
3245
3246 2002-06-05  Brian Youmans <3diff@gnu.org>
3247
3248         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
3249         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
3250         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
3251         * sysdeps/ia64/fpu/e_asin.S: Likewise.
3252         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
3253         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
3254         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
3255         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
3256         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3257         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3258         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
3259         * sysdeps/ia64/fpu/e_exp.S: Likewise.
3260         * sysdeps/ia64/fpu/e_expf.S: Likewise.
3261         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
3262         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
3263         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
3264         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
3265         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
3266         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
3267         * sysdeps/ia64/fpu/e_log.S: Likewise.
3268         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3269         * sysdeps/ia64/fpu/e_pow.S: Likewise.
3270         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3271         * sysdeps/ia64/fpu/e_powl.S: Likewise.
3272         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
3273         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
3274         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
3275         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
3276         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
3277         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
3278         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3279         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3280         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
3281         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
3282         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
3283         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
3284         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
3285         * sysdeps/ia64/fpu/libm_error.c: Likewise.
3286         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
3287         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
3288         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
3289         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
3290         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
3291         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
3292         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
3293         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
3294         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
3295         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
3296         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
3297         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
3298         * sysdeps/ia64/fpu/s_logb.S: Likewise.
3299         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
3300         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
3301         * sysdeps/ia64/fpu/s_modf.S: Likewise.
3302         * sysdeps/ia64/fpu/s_modff.S: Likewise.
3303         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
3304         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
3305         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
3306         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
3307         * sysdeps/ia64/fpu/s_rint.S: Likewise.
3308         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
3309         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
3310         * sysdeps/ia64/fpu/s_round.S: Likewise.
3311         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
3312         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
3313         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
3314         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
3315         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
3316         * sysdeps/ia64/fpu/s_significand.S: Likewise.
3317         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
3318         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
3319         * sysdeps/ia64/fpu/s_tan.S: Likewise.
3320         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
3321         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
3322         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
3323         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
3324         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
3325         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
3326         reflect IBM donation of math library to FSF
3327         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3328         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3329         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3330         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3331         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3332         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3333         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3334         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3335         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3336         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3337         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3338         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3339         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3340         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3341         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3342         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3343         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3344         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3345         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3346         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3347         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3348         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3349         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
3350         * sysdeps/vax/__longjmp.c: Likewise.
3351         * sysdeps/vax/setjmp.c: Likewise.
3352         * libio/filedoalloc.c: Fixed BSD copying permission notice to
3353         remove advertising clause
3354         * sysdeps/vax/htonl.s: Likewise.
3355         * sysdeps/vax/htons.s: Likewise.
3356         * libio/wfiledoalloc.c: Likewise.
3357         * stdlib/random.c: Likewise.
3358         * stdlib/random_r.c: Likewise.
3359         * sysdeps/mach/sys/reboot.h: Likewise.
3360         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
3361         * sysdeps/posix/getaddrinfo.c: Likewise.
3362         * sunrpc/des_impl.c: Updated license permission notice to Lesser
3363         GPL and corrected pointer to point to the correct license.
3364
3365 2002-07-04  Andreas Jaeger  <aj@suse.de>
3366
3367         * scripts/config.guess: New upstream version.
3368         * scripts/config.sub: Likewise.
3369
3370 2002-07-02  Andreas Schwab  <schwab@suse.de>
3371
3372         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
3373         in parallel to bumping up the buffer pointer.
3374
3375 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
3376
3377         * math/libm-test.inc (acos_test): Add missing L suffix for
3378         expected result.
3379         (cpow_test): Likewise.
3380         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
3381         error for acos (0.0625).
3382
3383 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
3384
3385         * locale/iso-639.def: Add entry for Ganda.
3386         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
3387         definition.
3388         (address_finish): Handle entries with two letter ISO 639 code.
3389
3390         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
3391         directory if it existed before.
3392         * iconv/iconvconfig.c: Implement --prefix option.
3393
3394         * math/libm-test.inc (cexp_test): Add missing L suffix for
3395         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
3396         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
3397         1.25 i).
3398
3399 2002-05-29  H.J. Lu  <hjl@gnu.org>
3400
3401         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
3402         is turned on.
3403
3404 2002-05-28  H.J. Lu  <hjl@gnu.org>
3405
3406         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
3407         are not dlopened on the dependency list of a dlopened object.
3408
3409 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
3410
3411         * elf/dl-lookup.c (add_dependency): It is not necessary to add
3412         dependencies if they are created between objects which are created
3413         while processing RTLD_NOW for objects loaded as part of the same
3414         dlopen call.
3415
3416 2002-06-14  H.J. Lu  <hjl@gnu.org>
3417
3418         * elf/Makefile (tests): Add circleload1.
3419         (modules-names): Add circlemod1, circlemod2, circlemod3,
3420         circlemod1a, circlemod2a and circlemod3a.
3421         ($(objpfx)circleload1): New target.
3422         ($(objpfx)circleload1.out): Likewise.
3423         ($(objpfx)circlemod1.so): Likewise.
3424         ($(objpfx)circlemod2.so): Likewise.
3425         ($(objpfx)circlemod1a.so): Likewise.
3426         ($(objpfx)circlemod2a.so): Likewise.
3427         * elf/circleload1.c: New file.
3428         * elf/circlemod1.c: New file.
3429         * elf/circlemod1a.c: New file.
3430         * elf/circlemod2.c: New file.
3431         * elf/circlemod2a.c: New file.
3432         * elf/circlemod3.c: New file.
3433         * elf/circlemod3a.c: New file.
3434
3435 2002-06-18  Amos Waterland  <apw@us.ibm.com>
3436
3437         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
3438         file descriptor.
3439         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
3440         add check for fd not open for writing.
3441
3442         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
3443         completed element(s) and do not suspend thread if so.  Patch
3444         heavily modified by drepper.
3445
3446         * rt/tst-aio7.c: New file.  Regression test for problems which the
3447         above three changes fix.
3448         * rt/Makefile (tests): Add tst-aio7.
3449
3450 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
3451
3452         * rt/tst-aio6.c: Fix comment.
3453
3454         * catgets/gencat.c (read_input_file): Handle more than one slash
3455         at end of line correctly [PR libc/3926].
3456         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
3457
3458         * catgets/sample.SJIS: Add test case for above bug.
3459         * catgets/test-gencat.c: Adjust test code.
3460         * catgets/test-gencat.sh: Adjust expected results.
3461
3462         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
3463         to skip relative relocations.
3464         Patch by Geoff Keating <geoffk@redhat.com>.
3465
3466 2002-05-26  Bruno Haible  <bruno@clisp.org>
3467
3468         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
3469         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
3470         All callers changed.
3471         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
3472         STANDARD_FROM_LOOP_ERR_HANDLER.
3473         (utf8_internal_loop): Likewise.
3474         (ucs2_internal_loop): Likewise.
3475         (internal_ucs2_loop): Perform error handling like in
3476         STANDARD_FROM_LOOP_ERR_HANDLER.
3477         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
3478         in STANDARD_FROM_LOOP_ERR_HANDLER.
3479         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3480         handling.
3481         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
3482         in STANDARD_FROM_LOOP_ERR_HANDLER.
3483         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3484         handling.
3485         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
3486         in STANDARD_FROM_LOOP_ERR_HANDLER.
3487         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3488         handling.
3489         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
3490         STANDARD_FROM_LOOP_ERR_HANDLER.
3491         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3492         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
3493         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
3494         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
3495         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
3496         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
3497         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
3498         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
3499         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
3500         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
3501         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
3502         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
3503         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
3504         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
3505         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
3506         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
3507         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
3508         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
3509         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3510         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
3511         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
3512         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
3513         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
3514         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3515         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
3516         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
3517         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
3518         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
3519         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
3520         an error, still set result = __GCONV_ILLEGAL_INPUT.
3521         (BODY for TO_LOOP): Likewise.
3522         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
3523         STANDARD_FROM_LOOP_ERR_HANDLER.
3524         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3525         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
3526         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3527         handling.
3528         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3529         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
3530         STANDARD_FROM_LOOP_ERR_HANDLER.
3531         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3532         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3533         STANDARD_FROM_LOOP_ERR_HANDLER.
3534         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3535         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3536         STANDARD_FROM_LOOP_ERR_HANDLER.
3537         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3538         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3539         STANDARD_FROM_LOOP_ERR_HANDLER.
3540         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3541         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
3542         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3543         handling.
3544         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3545         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3546         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3547         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3548
3549 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3550
3551         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3552         labels in assembler instructions.
3553
3554 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
3555
3556         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3557         not enough content is available.
3558         * libio/tst-eof.c: New file.
3559         * libio/Makefile (tests): Add tst-eof.
3560
3561         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3562         update atime.
3563         * libio/tst-atime.c: New file.
3564         * libio/Makefile (tests): Add tst-atime.
3565
3566         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3567         handling of overly long words.
3568
3569 2002-06-25  Andreas Jaeger  <aj@suse.de>
3570
3571         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3572         to not use 32-bit pc relative relocations.
3573         (elf_machine_dynamic): Likewise.
3574
3575 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3576
3577         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3578         (__GETDENTS): Check for failed getdents64 syscall.
3579         * dirent/Makefile (tests): Add bug-readdir1.
3580         * dirent/bug-readdir1.c: New file.
3581
3582 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
3583
3584         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3585         lookups.
3586         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3587         code.  Print TLS modid and offset for modules containing PT_TLS
3588         segments.
3589
3590 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3591
3592         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3593         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3594         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3595         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3596
3597 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3598
3599         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3600         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3601         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3602         * nss/getXXent_r.c (NEW, NEW1): Define.
3603         (NEW (REENTRANT_GETNAME)): Strong alias to
3604         INTERNAL (REENTRANT_GETNAME).
3605         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3606
3607 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3608
3609         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3610         (_IO_file_jumps_mmap): Use it.
3611         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3612         * libio/libioP.h: Remove _IO_wdefault_setbuf and
3613         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
3614         prototype.
3615         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3616         (_IO_wfile_jumps_mmap): Don't use it anymore.
3617         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3618         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3619         _IO_wdefault_setbuf.
3620         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3621         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3622         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3623
3624 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
3625
3626         * libio/Makefile (tests): Add tst-mmap-setvbuf.
3627         * libio/tst-mmap-setvbuf.c: New test.
3628
3629 2002-06-21  Andreas Jaeger  <aj@suse.de>
3630
3631         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3632
3633 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
3634
3635         * include/unistd.h (__fork_internal): Remove.
3636         (__fork): Don't define to __fork_internal.
3637         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3638         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3639         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3640         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3641         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3642
3643 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3644
3645         * po/hr.po: New file.
3646
3647 2002-06-11  Wolfram Gloger  <wg@malloc.de>
3648
3649         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3650         Reported by Michael Meissner <meissner@redhat.com>.
3651
3652 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3653
3654         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
3655         Patch by Hans Boehm <hans_boehm@hp.com>.
3656
3657 2002-06-20  Andreas Jaeger  <aj@suse.de>
3658
3659         * math/libm-test.inc: Use exact values as input parameters,
3660         compute output parameters with 36 digits for 128-bit long doubles.
3661         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3662         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
3663         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3664
3665 2002-06-13  Stephen L Moshier  <steve@moshier.net>
3666
3667         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
3668         argument or result is subnormal.
3669
3670 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
3671
3672         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
3673         quotient.
3674         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3675         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3676
3677         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
3678
3679 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
3680
3681         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
3682         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
3683         Reported by Peter A. Buhr.
3684
3685 2002-06-15  Roland McGrath  <roland@frob.com>
3686
3687         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
3688         warning.
3689
3690         * sysdeps/mach/hurd/getcwd.c
3691         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
3692
3693         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
3694         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
3695
3696         * sysdeps/alpha/divrem.h: Use local label instead of global one for
3697         jump to local subroutine.
3698
3699 2002-06-14  Roland McGrath  <roland@frob.com>
3700
3701         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
3702         * sysdeps/mach/hurd/Makeconfig: ... here.
3703
3704 2002-06-13  Andreas Schwab  <schwab@suse.de>
3705
3706         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
3707         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3708         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3709
3710 2002-06-13  Roland McGrath  <roland@frob.com>
3711
3712         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
3713         * hurd/hurdstartup.c (_hurd_startup): Likewise.
3714         Use intptr_t instead of int for argc in stack layout.
3715         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
3716         (_dl_init_first): Likewise.
3717         (_hurd_stack_setup): Likewise.
3718         (init1): Add a cast.
3719         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
3720
3721         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
3722         argument to pfinet_siocgifconf RPC.
3723
3724 2002-06-13  Andreas Schwab  <schwab@suse.de>
3725
3726         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
3727         expansion order.
3728
3729 2002-06-12  Roland McGrath  <roland@frob.com>
3730
3731         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
3732         if already defined.
3733         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
3734         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
3735
3736 2002-06-11  Roland McGrath  <roland@frob.com>
3737
3738         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
3739         file on [!RTLD_STAT64].
3740         * sysdeps/mach/hurd/fxstat64.c: Likewise.
3741
3742         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
3743         (__fdopen): Use INTUSE.
3744         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
3745
3746         * stdio-common/tmpfile64.c: File removed.
3747         * sysdeps/generic/tmpfile64.c: New file.
3748         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
3749         if not already defined.
3750         (tmpfile): Use it in place of __GT_FILE.
3751
3752         * include/unistd.h: Declare __chown_internal.
3753
3754         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
3755         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
3756
3757 2002-06-09  Roland McGrath  <roland@frob.com>
3758
3759         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
3760         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
3761         value of HURD_INTERFACE_VERSION >= 20020609.
3762         * sysdeps/mach/hurd/configure: Regenerated.
3763         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
3764         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
3765         convert a struct stat64 into a struct stat and return 0 or -1
3766         with errno set to EOVERFLOW.
3767         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
3768         for struct statfs64 to struct statfs.
3769         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
3770         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
3771         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3772         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3773         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3774         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3775         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3776         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
3777         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
3778         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
3779         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
3780         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
3781         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
3782         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
3783         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
3784         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
3785         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
3786         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
3787         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
3788         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
3789         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
3790         Use struct stat64 for io_stat argument.
3791         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
3792         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
3793         to io_seek.
3794         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
3795         * hurd/fd-write.c (_hurd_fd_write): Likewise.
3796         * hurd/hurd/fd.h: Update decls.
3797         * sysdeps/mach/hurd/getcwd.c
3798         (_hurd_canonicalize_directory_name_internal): Use ino64_t
3799         and struct dirent64.
3800         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
3801         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
3802         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
3803         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
3804
3805 2002-06-08  Roland McGrath  <roland@frob.com>
3806
3807         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
3808         instead of unsigned long int for __allocation and __size members.
3809
3810 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3811
3812         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3813         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3814         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3815         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3816
3817 2002-06-07  Roland McGrath  <roland@frob.com>
3818
3819         * sysdeps/mach/hurd/bits/environments.h: File removed.
3820
3821 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3822
3823         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
3824         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
3825         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
3826         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
3827         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
3828         (sendfile64): Likewise.
3829         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
3830         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
3831         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
3832         Likewise.
3833         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
3834
3835         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
3836         already defined.
3837
3838 2002-06-04  Bruno Haible  <bruno@clisp.org>
3839
3840         * sysdeps/cris/stackinfo.h: New file.
3841
3842         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
3843         to an integer type before performing bit operations on it.
3844
3845 2002-06-05  Roland McGrath  <roland@frob.com>
3846
3847         * sysdeps/generic/sendfile.c: Include <errno.h>.
3848         * sysdeps/generic/sendfile64.c: Likewise.
3849
3850         * io/Makefile (routines): Add sendfile and sendfile64.
3851         (headers): Add sys/sendfile.h to the list.
3852         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
3853         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
3854         * io/sys/sendfile.h: ... here.
3855         * sysdeps/generic/sendfile.c: New file.
3856         * sysdeps/generic/sendfile64.c: New file.
3857
3858         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
3859         Move sendfile, sendfile64 to ...
3860         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
3861         * sysdeps/mach/hurd/sendfile.c: New file.
3862         * sysdeps/mach/hurd/sendfile64.c: New file.
3863
3864         * sysdeps/mach/nanosleep.c: New file.
3865
3866 2002-06-04  Roland McGrath  <roland@frob.com>
3867
3868         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
3869         * sysdeps/alpha/elf/configure: New file (generated).
3870
3871 2002-06-02  Roland McGrath  <roland@frob.com>
3872
3873         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
3874
3875 2002-06-01  Roland McGrath  <roland@frob.com>
3876
3877         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
3878         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
3879
3880 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3881
3882         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
3883         Add nsmap.
3884         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
3885         Remove nstimes setting.
3886         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
3887         * resolv/res_send.c (res_nsend): Don't close unconditionally if
3888         there is mix of IPv6 and IPv4 nameservers.
3889         Use nsmap array to find free slots and preserve nameserver ordering.
3890         Fix RES_ROTATE.
3891
3892 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3893
3894         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3895         use this header with LFS.
3896
3897         * po/sk.po: Update from translation team.
3898
3899 2002-05-28  Andreas Schwab  <schwab@suse.de>
3900
3901         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3902         message when finding object of wrong class.
3903
3904 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
3905
3906         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3907         Patch by <radu@netsoft.ro>.
3908
3909 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3910
3911         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3912         Add readahead.
3913         * sysdeps/unix/sysv/linux/readahead.c: New file.
3914         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3915         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3916         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3917         Add sendfile64 alias to sendfile syscall.
3918         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3919         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3920         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3921         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3922         syscall.
3923
3924         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3925         special section for PIC register loading.
3926         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3927
3928         * config.h.in: Define HAVE_HIDDEN.
3929         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3930
3931         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3932
3933 2002-05-28  Roland McGrath  <roland@frob.com>
3934
3935         * sysdeps/mach/alpha/setfpucw.c: New file.
3936
3937 2002-05-26  Roland McGrath  <roland@frob.com>
3938
3939         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3940         Use integer_t instead of int for IOC_VOID case.
3941
3942 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
3943
3944         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3945
3946 2002-05-26  Bruno Haible  <bruno@clisp.org>
3947
3948         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3949         end of the ISO-8859-7 from idx table.
3950
3951 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
3952
3953         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3954
3955 2002-05-24  David S. Miller  <davem@redhat.com>
3956
3957         * string/bits/string2.h (memset): Do not try to optimize when
3958         not _STRING_ARCH_unaligned if GCC will do the right thing.
3959
3960 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
3961
3962         * posix/regex.c: Define `inline' as a macro into nothing for the
3963         compilers which lack the keyword.
3964         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3965         for the compatibility of gawk.
3966         * posix/regcomp.c: Add fake implementation of isblank() for the
3967         environments which lack the function.
3968         Don't use free_charset() in case of non-i18n envs.
3969         (build_range_exp): Don't use i18n related code in case of non-i18n
3970         envs.
3971         (build_collating_symbol): Likewise.
3972         (build_equiv_class): Likewise.
3973         (build_charclass): Likewise.
3974         (re_compile_fastmap_iter): Likewise.
3975         (parse_bracket_exp): Likewise.
3976         (build_word_op): Likewise.
3977         (regfree): Don't use free_charset() in case of non-i18n envs.
3978         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3979         re_token_type_t in case of non-i18n envs.
3980         Don't define re_charset_t in case of non-i18n envs.
3981         Change the type of wcs of re_string_t from wchar_t to wint_t,
3982         since we store also WEOF.
3983         * posix/regex_internal.c: (re_string_realloc_buffers): Change
3984         the type of wcs of re_string_t from wchar_t to wint_t.
3985         (re_string_reconstruct): Likewise.
3986         (create_ci_newstate): Don't use i18n related code in case of
3987         non-i18n envs.
3988         (create_cd_newstate): Likewise.
3989
3990 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
3991
3992         * iconv/loop.c: Fix typo.
3993
3994 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3995
3996         * inet/ether_line.c (ether_line): Fix a typo causing only
3997         lower 4 bits of each ethernet address byte being assigned.
3998         Don't modify what line points to.
3999         * inet/tst-ether_aton.c (main): Add ether_line tests.
4000
4001 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
4002
4003         * manual/filesys.texi: Don't make readlink example leak memory
4004         when readlink fails.
4005
4006 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
4007
4008         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
4009         some more security checks.
4010
4011 2002-05-17  David S. Miller  <davem@redhat.com>
4012
4013         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
4014
4015 2002-05-16  David S. Miller  <davem@redhat.com>
4016
4017         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
4018         (elf_machine_dynamic): Use it to force PIC register to be loaded.
4019         (elf_machine_load_address): Likewise.
4020         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
4021
4022         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
4023         is unaligned, do not forget to fully initialize %g1 magic value.
4024
4025         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
4026         register definitions and provide 32-bit variants of structures
4027         during 64-bit builds.
4028
4029         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
4030         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
4031         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
4032         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
4033         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
4034         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
4035         Do not clear implicit one bit here, it must be done post-rounding.
4036         Only pad to the left using left shift if value uses less than the
4037         available fractional bits.
4038
4039 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4040
4041         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
4042         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
4043         (shared-only-routines): Likewise.
4044         * sysdeps/powerpc/libgcc-compat.c: New file.
4045         * sysdeps/wordsize-32/cmpdi2.c: Removed.
4046         * sysdeps/wordsize-32/fixdfdi.c: Removed.
4047         * sysdeps/wordsize-32/fixsfdi.c: Removed.
4048</