Update.
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2002-07-17  Andreas Schwab  <schwab@suse.de>
2             Ulrich Drepper  <drepper@redhat.com>
3
4         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
8
9 2002-07-01  H.J. Lu  <hjl@gnu.org>
10
11         * elf/circleload1.c (load_dso): Call "circlemod1" and check
12         return value.
13
14         * elf/circlemod1.c (circlemod1): Return int.
15         * elf/circlemod2.c (circlemod2): Likewise.
16         * elf/circlemod2a.c (circlemod2): Likewise.
17         * elf/circlemod3.c (circlemod3): Likewise.
18         (circlemod3a): A new function.
19
20 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
21
22         * catgets/tst-catgets.c (main): Don't expect results for
23         untranslated messages.
24
25         * glibcbug.in: Fix little typo.  Remove STDIO.
26
27         * config.h.in: Fail if __FAST_MATH__ is defined.
28         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
29         (CPPFLAGS-test-idouble.c): Likewise.
30         (CPPFLAGS-test-ildouble.c): Likewise.
31
32 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
33
34         * intl/tst-gettext.sh: Pass -f option to msgfmt.
35         * intl/tst-gettext.c: Correctly handle untranslated messages in
36         positive tests.
37
38         * po/de.po: Update from translation team.
39
40 2002-07-02  H.J. Lu  <hjl@gnu.org>
41
42         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
43         use ll/sc.
44         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
45
46         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
47         to 2.4.0 for mips.
48
49 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
50
51         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
52         TLS fail if USE_TLS is not defined.
53
54         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
55         and adjust state for seek position.  [PR libc/4070]
56         * libio/Makefile (tests): Add bug-rewind.
57         * libio/bug-rewind.c: New file.
58
59 2002-07-12  Philip Blundell  <philb@gnu.org>
60
61         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
62         (__backtrace): Use it.
63         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
64
65 2002-07-12  Philip Blundell  <philb@gnu.org>
66
67         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
68         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
69         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
70         (elf_machine_rela): Remove unused variable.
71
72         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
73         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
74         define.
75
76 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
77
78         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
79
80 2002-07-14  Andreas Jaeger  <aj@suse.de>
81
82         * sysdeps/x86_64/bits/link.h: Add biarch support.
83
84 2002-07-13  Andreas Jaeger  <aj@suse.de>
85
86         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
87         Use correct indices.
88         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
89
90 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
91
92         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
93         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
94         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
95         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
96         * sysdeps/s390/s390-32/bits/link.h: Remove.
97         * sysdeps/s390/s390-64/bits/link.h: Remove.
98         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
99         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
100         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
101         * sysdeps/s390/bits/wordsize.h: New file.
102         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
103         elfclass.h.
104         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
105         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
106         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
107         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
108         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
109         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
110         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
111         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
112         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
113         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
114         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
115         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
116         resource.h.
117         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
118         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
119         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
120         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
121         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
122         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
123         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
124         sigaction.h.
125         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
126         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
127         siginfo.h.
128         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
129         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
130         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
131         socket.h.
132         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
133         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
134         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
135         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
136         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
137         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
138         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
139         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
140         procfs.h.
141         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
142         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
143         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
144         ucontext.h.
145         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
146         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
147
148 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
149
150         * Versions.def (libc): Add GLIBC_2.3.
151         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
152         * stdlib/canonicalize.c: Add compatibility version for realpath
153         and make new code available in GLIBC_2.3.
154
155 2002-07-06  Bruno Haible  <bruno@clisp.org>
156
157         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
158
159 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
160
161         * resolv/res_hconf.c (_res_hconf_init): Move code into new
162         function do_init.  Use __libc_once.
163         (do_init): New function.
164
165         * iconvdata/iso8859-11.h: Removed.
166         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
167         (distribute): Remove iso8859-11.h.
168         * iconvdata/tst-tables.sh: Add ISO-8859-11.
169
170         * stdio-common/vfscanf.c (inchar): Restore errno from previous
171         underflow operation if c == (W)EOF.
172
173 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
174
175         * stdio-common/printf_fp.c (__printf_fp.c): If _FPIO_CONST_SHIFT is
176         non-zero, adjust exponent.
177         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
178         Remove NO_LONG_DOUBLE aliases.
179         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
180         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
181         (__log1pl): Raise divide by zero and invalid exceptions when needed.
182         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
183         1**y and -1**+-Inf.
184         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
185         Fix BITS_PER_MP_LIMB 32 extraction.
186         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
187         exceptions for qNaNs.
188         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
189         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
190         Raise exceptions when needed.  Don't recurse unnecessarily.
191         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
192         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
193         exceptions for qNaNs.
194         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
195         to fix *quo return value sign.
196         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
197         case -Inf argument.
198         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
199
200 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
201
202         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
203         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
204         -DNDEBUG.
205
206 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
207
208         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
209         the result.
210
211         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
212         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
213
214         * Versions.def (libthread_db): Add GLIBC_2.3.
215
216 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
217
218         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
219         new stream if possible.
220         * libio/freopen64.c (freopen64): Likewise.
221         * libio/Makefile (tests): Add tst-freopen.
222         * libio/tst-freopen.c: New file.
223
224 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
225
226         * libio/stdio.h (obstack_printf): Add format attribute.
227         (obstack_vprintf): Likewise.
228
229 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
230
231         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
232         resp. 16 bytes on 32-bit resp. 64-bit platforms.
233         (re_charset_t, re_string_t): Reorder structure members for 64-bit
234         architectures.
235
236 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
237
238         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
239         (init_dfa): ...here.
240
241 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
242
243         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
244         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
245         nodes in parse trees.
246         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
247         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
248         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
249         nodes which can epsilon transit.
250         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
251         to IS_EPSILON_NODE macro.
252         * posix/regexec.c (update_regs): New function to update registers
253         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
254         (proceed_next_node): Use the entities of the nodes to determine
255         whether the node can transit to.
256         (set_regs): Use update_regs function to update registers.
257
258 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
259
260         * posix/bug-regex4.c (main): Remove duplicate setlocale.
261         * posix/bug-regex6.c: New file.
262         * posix/Makefile (tests): Add bug-regex6.
263         (bug-regex6-ENV): Set LOCPATH.
264
265 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
266
267         * Versions.def [libpthread]: Add GLIBC_2.2.6.
268         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
269
270 2002-07-06  Bruno Haible  <bruno@clisp.org>
271
272         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
273
274 2002-07-06  Bruno Haible  <bruno@clisp.org>
275
276         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
277         declarations.
278
279         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
280
281         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
282
283         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
284         not _UTSNAME_H.
285         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
286
287         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
288         * sysdeps/generic/bits/ustat.h: Likewise.
289
290         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
291
292 2002-07-08  Andreas Jaeger  <aj@suse.de>
293
294         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
295
296 2002-07-08  Andreas Jaeger  <aj@suse.de>
297
298         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
299
300 2002-07-06  Andreas Jaeger  <aj@suse.de>
301
302         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
303         * sysdeps/x86_64/fpu/s_copysign.S: New.
304         * sysdeps/x86_64/fpu/s_copysignf.S: New.
305         * sysdeps/x86_64/fpu/s_copysignl.S: New.
306         * sysdeps/x86_64/fpu/s_finitel.S: New.
307         * sysdeps/x86_64/fpu/s_fmax.S: New.
308         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
309         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
310         * sysdeps/x86_64/fpu/s_fmin.S: New.
311         * sysdeps/x86_64/fpu/s_fminf.S: New.
312         * sysdeps/x86_64/fpu/s_fminl.S: New.
313
314 2002-06-05  Brian Youmans <3diff@gnu.org>
315
316         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
317         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
318         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
319         * sysdeps/ia64/fpu/e_asin.S: Likewise.
320         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
321         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
322         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
323         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
324         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
325         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
326         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
327         * sysdeps/ia64/fpu/e_exp.S: Likewise.
328         * sysdeps/ia64/fpu/e_expf.S: Likewise.
329         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
330         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
331         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
332         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
333         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
334         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
335         * sysdeps/ia64/fpu/e_log.S: Likewise.
336         * sysdeps/ia64/fpu/e_logf.S: Likewise.
337         * sysdeps/ia64/fpu/e_pow.S: Likewise.
338         * sysdeps/ia64/fpu/e_powf.S: Likewise.
339         * sysdeps/ia64/fpu/e_powl.S: Likewise.
340         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
341         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
342         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
343         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
344         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
345         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
346         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
347         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
348         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
349         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
350         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
351         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
352         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
353         * sysdeps/ia64/fpu/libm_error.c: Likewise.
354         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
355         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
356         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
357         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
358         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
359         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
360         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
361         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
362         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
363         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
364         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
365         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
366         * sysdeps/ia64/fpu/s_logb.S: Likewise.
367         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
368         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
369         * sysdeps/ia64/fpu/s_modf.S: Likewise.
370         * sysdeps/ia64/fpu/s_modff.S: Likewise.
371         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
372         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
373         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
374         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
375         * sysdeps/ia64/fpu/s_rint.S: Likewise.
376         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
377         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
378         * sysdeps/ia64/fpu/s_round.S: Likewise.
379         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
380         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
381         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
382         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
383         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
384         * sysdeps/ia64/fpu/s_significand.S: Likewise.
385         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
386         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
387         * sysdeps/ia64/fpu/s_tan.S: Likewise.
388         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
389         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
390         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
391         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
392         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
393         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
394         reflect IBM donation of math library to FSF
395         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
396         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
397         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
398         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
399         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
400         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
401         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
402         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
403         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
404         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
405         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
406         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
407         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
408         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
409         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
410         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
411         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
412         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
413         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
414         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
415         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
416         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
417         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
418         * sysdeps/vax/__longjmp.c: Likewise.
419         * sysdeps/vax/setjmp.c: Likewise.
420         * libio/filedoalloc.c: Fixed BSD copying permission notice to
421         remove advertising clause
422         * sysdeps/vax/htonl.s: Likewise.
423         * sysdeps/vax/htons.s: Likewise.
424         * libio/wfiledoalloc.c: Likewise.
425         * stdlib/random.c: Likewise.
426         * stdlib/random_r.c: Likewise.
427         * sysdeps/mach/sys/reboot.h: Likewise.
428         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
429         * sysdeps/posix/getaddrinfo.c: Likewise.
430         * sunrpc/des_impl.c: Updated license permission notice to Lesser
431         GPL and corrected pointer to point to the correct license.
432
433 2002-07-04  Andreas Jaeger  <aj@suse.de>
434
435         * scripts/config.guess: New upstream version.
436         * scripts/config.sub: Likewise.
437
438 2002-07-02  Andreas Schwab  <schwab@suse.de>
439
440         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
441         in parallel to bumping up the buffer pointer.
442
443 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
444
445         * math/libm-test.inc (acos_test): Add missing L suffix for
446         expected result.
447         (cpow_test): Likewise.
448         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
449         error for acos (0.0625).
450
451 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
452
453         * locale/iso-639.def: Add entry for Ganda.
454         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
455         definition.
456         (address_finish): Handle entries with two letter ISO 639 code.
457
458         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
459         directory if it existed before.
460         * iconv/iconvconfig.c: Implement --prefix option.
461
462         * math/libm-test.inc (cexp_test): Add missing L suffix for
463         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
464         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
465         1.25 i).
466
467 2002-05-29  H.J. Lu  <hjl@gnu.org>
468
469         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
470         is turned on.
471
472 2002-05-28  H.J. Lu  <hjl@gnu.org>
473
474         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
475         are not dlopened on the dependency list of a dlopened object.
476
477 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
478
479         * elf/dl-lookup.c (add_dependency): It is not necessary to add
480         dependencies if they are created between objects which are created
481         while processing RTLD_NOW for objects loaded as part of the same
482         dlopen call.
483
484 2002-06-14  H.J. Lu  <hjl@gnu.org>
485
486         * elf/Makefile (tests): Add circleload1.
487         (modules-names): Add circlemod1, circlemod2, circlemod3,
488         circlemod1a, circlemod2a and circlemod3a.
489         ($(objpfx)circleload1): New target.
490         ($(objpfx)circleload1.out): Likewise.
491         ($(objpfx)circlemod1.so): Likewise.
492         ($(objpfx)circlemod2.so): Likewise.
493         ($(objpfx)circlemod1a.so): Likewise.
494         ($(objpfx)circlemod2a.so): Likewise.
495         * elf/circleload1.c: New file.
496         * elf/circlemod1.c: New file.
497         * elf/circlemod1a.c: New file.
498         * elf/circlemod2.c: New file.
499         * elf/circlemod2a.c: New file.
500         * elf/circlemod3.c: New file.
501         * elf/circlemod3a.c: New file.
502
503 2002-06-18  Amos Waterland  <apw@us.ibm.com>
504
505         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
506         file descriptor.
507         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
508         add check for fd not open for writing.
509
510         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
511         completed element(s) and do not suspend thread if so.  Patch
512         heavily modified by drepper.
513
514         * rt/tst-aio7.c: New file.  Regression test for problems which the
515         above three changes fix.
516         * rt/Makefile (tests): Add tst-aio7.
517
518 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
519
520         * rt/tst-aio6.c: Fix comment.
521
522         * catgets/gencat.c (read_input_file): Handle more than one slash
523         at end of line correctly [PR libc/3926].
524         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
525
526         * catgets/sample.SJIS: Add test case for above bug.
527         * catgets/test-gencat.c: Adjust test code.
528         * catgets/test-gencat.sh: Adjust expected results.
529
530         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
531         to skip relative relocations.
532         Patch by Geoff Keating <geoffk@redhat.com>.
533
534 2002-05-26  Bruno Haible  <bruno@clisp.org>
535
536         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
537         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
538         All callers changed.
539         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
540         STANDARD_FROM_LOOP_ERR_HANDLER.
541         (utf8_internal_loop): Likewise.
542         (ucs2_internal_loop): Likewise.
543         (internal_ucs2_loop): Perform error handling like in
544         STANDARD_FROM_LOOP_ERR_HANDLER.
545         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
546         in STANDARD_FROM_LOOP_ERR_HANDLER.
547         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
548         handling.
549         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
550         in STANDARD_FROM_LOOP_ERR_HANDLER.
551         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
552         handling.
553         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
554         in STANDARD_FROM_LOOP_ERR_HANDLER.
555         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
556         handling.
557         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
558         STANDARD_FROM_LOOP_ERR_HANDLER.
559         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
560         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
561         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
562         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
563         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
564         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
565         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
566         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
567         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
568         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
569         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
570         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
571         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
572         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
573         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
574         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
575         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
576         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
577         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
578         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
579         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
580         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
581         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
582         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
583         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
584         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
585         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
586         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
587         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
588         an error, still set result = __GCONV_ILLEGAL_INPUT.
589         (BODY for TO_LOOP): Likewise.
590         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
591         STANDARD_FROM_LOOP_ERR_HANDLER.
592         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
593         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
594         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
595         handling.
596         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
597         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
598         STANDARD_FROM_LOOP_ERR_HANDLER.
599         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
600         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
601         STANDARD_FROM_LOOP_ERR_HANDLER.
602         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
603         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
604         STANDARD_FROM_LOOP_ERR_HANDLER.
605         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
606         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
607         STANDARD_FROM_LOOP_ERR_HANDLER.
608         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
609         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
610         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
611         handling.
612         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
613         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
614         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
615         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
616
617 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
618
619         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
620         labels in assembler instructions.
621
622 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
623
624         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
625         not enough content is available.
626         * libio/tst-eof.c: New file.
627         * libio/Makefile (tests): Add tst-eof.
628
629         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
630         update atime.
631         * libio/tst-atime.c: New file.
632         * libio/Makefile (tests): Add tst-atime.
633
634         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
635         handling of overly long words.
636
637 2002-06-25  Andreas Jaeger  <aj@suse.de>
638
639         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
640         to not use 32-bit pc relative relocations.
641         (elf_machine_dynamic): Likewise.
642
643 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
644
645         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
646         (__GETDENTS): Check for failed getdents64 syscall.
647         * dirent/Makefile (tests): Add bug-readdir1.
648         * dirent/bug-readdir1.c: New file.
649
650 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
651
652         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
653         lookups.
654         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
655         code.  Print TLS modid and offset for modules containing PT_TLS
656         segments.
657
658 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
659
660         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
661         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
662         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
663         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
664
665 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
666
667         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
668         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
669         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
670         * nss/getXXent_r.c (NEW, NEW1): Define.
671         (NEW (REENTRANT_GETNAME)): Strong alias to
672         INTERNAL (REENTRANT_GETNAME).
673         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
674
675 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
676
677         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
678         (_IO_file_jumps_mmap): Use it.
679         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
680         * libio/libioP.h: Remove _IO_wdefault_setbuf and
681         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
682         prototype.
683         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
684         (_IO_wfile_jumps_mmap): Don't use it anymore.
685         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
686         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
687         _IO_wdefault_setbuf.
688         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
689         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
690         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
691
692 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
693
694         * libio/Makefile (tests): Add tst-mmap-setvbuf.
695         * libio/tst-mmap-setvbuf.c: New test.
696
697 2002-06-21  Andreas Jaeger  <aj@suse.de>
698
699         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
700
701 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
702
703         * include/unistd.h (__fork_internal): Remove.
704         (__fork): Don't define to __fork_internal.
705         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
706         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
707         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
708         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
709         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
710
711 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
712
713         * po/hr.po: New file.
714
715 2002-06-11  Wolfram Gloger  <wg@malloc.de>
716
717         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
718         Reported by Michael Meissner <meissner@redhat.com>.
719
720 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
721
722         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
723         Patch by Hans Boehm <hans_boehm@hp.com>.
724
725 2002-06-20  Andreas Jaeger  <aj@suse.de>
726
727         * math/libm-test.inc: Use exact values as input parameters,
728         compute output parameters with 36 digits for 128-bit long doubles.
729         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
730         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
731         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
732
733 2002-06-13  Stephen L Moshier  <steve@moshier.net>
734
735         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
736         argument or result is subnormal.
737
738 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
739
740         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
741         quotient.
742         * sysdeps/i386/fpu/s_remquof.S: Likewise.
743         * sysdeps/i386/fpu/s_remquol.S: Likewise.
744
745         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
746
747 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
748
749         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
750         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
751         Reported by Peter A. Buhr.
752
753 2002-06-15  Roland McGrath  <roland@frob.com>
754
755         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
756         warning.
757
758         * sysdeps/mach/hurd/getcwd.c
759         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
760
761         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
762         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
763
764         * sysdeps/alpha/divrem.h: Use local label instead of global one for
765         jump to local subroutine.
766
767 2002-06-14  Roland McGrath  <roland@frob.com>
768
769         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
770         * sysdeps/mach/hurd/Makeconfig: ... here.
771
772 2002-06-13  Andreas Schwab  <schwab@suse.de>
773
774         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
775         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
776         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
777
778 2002-06-13  Roland McGrath  <roland@frob.com>
779
780         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
781         * hurd/hurdstartup.c (_hurd_startup): Likewise.
782         Use intptr_t instead of int for argc in stack layout.
783         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
784         (_dl_init_first): Likewise.
785         (_hurd_stack_setup): Likewise.
786         (init1): Add a cast.
787         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
788
789         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
790         argument to pfinet_siocgifconf RPC.
791
792 2002-06-13  Andreas Schwab  <schwab@suse.de>
793
794         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
795         expansion order.
796
797 2002-06-12  Roland McGrath  <roland@frob.com>
798
799         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
800         if already defined.
801         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
802         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
803
804 2002-06-11  Roland McGrath  <roland@frob.com>
805
806         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
807         file on [!RTLD_STAT64].
808         * sysdeps/mach/hurd/fxstat64.c: Likewise.
809
810         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
811         (__fdopen): Use INTUSE.
812         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
813
814         * stdio-common/tmpfile64.c: File removed.
815         * sysdeps/generic/tmpfile64.c: New file.
816         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
817         if not already defined.
818         (tmpfile): Use it in place of __GT_FILE.
819
820         * include/unistd.h: Declare __chown_internal.
821
822         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
823         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
824
825 2002-06-09  Roland McGrath  <roland@frob.com>
826
827         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
828         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
829         value of HURD_INTERFACE_VERSION >= 20020609.
830         * sysdeps/mach/hurd/configure: Regenerated.
831         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
832         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
833         convert a struct stat64 into a struct stat and return 0 or -1
834         with errno set to EOVERFLOW.
835         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
836         for struct statfs64 to struct statfs.
837         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
838         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
839         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
840         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
841         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
842         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
843         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
844         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
845         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
846         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
847         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
848         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
849         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
850         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
851         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
852         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
853         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
854         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
855         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
856         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
857         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
858         Use struct stat64 for io_stat argument.
859         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
860         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
861         to io_seek.
862         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
863         * hurd/fd-write.c (_hurd_fd_write): Likewise.
864         * hurd/hurd/fd.h: Update decls.
865         * sysdeps/mach/hurd/getcwd.c
866         (_hurd_canonicalize_directory_name_internal): Use ino64_t
867         and struct dirent64.
868         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
869         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
870         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
871         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
872
873 2002-06-08  Roland McGrath  <roland@frob.com>
874
875         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
876         instead of unsigned long int for __allocation and __size members.
877
878 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
879
880         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
881         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
882         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
883         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
884
885 2002-06-07  Roland McGrath  <roland@frob.com>
886
887         * sysdeps/mach/hurd/bits/environments.h: File removed.
888
889 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
890
891         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
892         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
893         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
894         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
895         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
896         (sendfile64): Likewise.
897         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
898         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
899         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
900         Likewise.
901         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
902
903         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
904         already defined.
905
906 2002-06-04  Bruno Haible  <bruno@clisp.org>
907
908         * sysdeps/cris/stackinfo.h: New file.
909
910         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
911         to an integer type before performing bit operations on it.
912
913 2002-06-05  Roland McGrath  <roland@frob.com>
914
915         * sysdeps/generic/sendfile.c: Include <errno.h>.
916         * sysdeps/generic/sendfile64.c: Likewise.
917
918         * io/Makefile (routines): Add sendfile and sendfile64.
919         (headers): Add sys/sendfile.h to the list.
920         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
921         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
922         * io/sys/sendfile.h: ... here.
923         * sysdeps/generic/sendfile.c: New file.
924         * sysdeps/generic/sendfile64.c: New file.
925
926         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
927         Move sendfile, sendfile64 to ...
928         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
929         * sysdeps/mach/hurd/sendfile.c: New file.
930         * sysdeps/mach/hurd/sendfile64.c: New file.
931
932         * sysdeps/mach/nanosleep.c: New file.
933
934 2002-06-04  Roland McGrath  <roland@frob.com>
935
936         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
937         * sysdeps/alpha/elf/configure: New file (generated).
938
939 2002-06-02  Roland McGrath  <roland@frob.com>
940
941         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
942
943 2002-06-01  Roland McGrath  <roland@frob.com>
944
945         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
946         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
947
948 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
949
950         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
951         Add nsmap.
952         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
953         Remove nstimes setting.
954         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
955         * resolv/res_send.c (res_nsend): Don't close unconditionally if
956         there is mix of IPv6 and IPv4 nameservers.
957         Use nsmap array to find free slots and preserve nameserver ordering.
958         Fix RES_ROTATE.
959
960 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
961
962         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
963         use this header with LFS.
964
965         * po/sk.po: Update from translation team.
966
967 2002-05-28  Andreas Schwab  <schwab@suse.de>
968
969         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
970         message when finding object of wrong class.
971
972 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
973
974         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
975         Patch by <radu@netsoft.ro>.
976
977 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
978
979         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
980         Add readahead.
981         * sysdeps/unix/sysv/linux/readahead.c: New file.
982         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
983         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
984         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
985         Add sendfile64 alias to sendfile syscall.
986         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
987         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
988         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
989         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
990         syscall.
991
992         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
993         special section for PIC register loading.
994         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
995
996         * config.h.in: Define HAVE_HIDDEN.
997         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
998
999         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
1000
1001 2002-05-28  Roland McGrath  <roland@frob.com>
1002
1003         * sysdeps/mach/alpha/setfpucw.c: New file.
1004
1005 2002-05-26  Roland McGrath  <roland@frob.com>
1006
1007         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
1008         Use integer_t instead of int for IOC_VOID case.
1009
1010 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
1011
1012         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
1013
1014 2002-05-26  Bruno Haible  <bruno@clisp.org>
1015
1016         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
1017         end of the ISO-8859-7 from idx table.
1018
1019 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
1020
1021         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
1022
1023 2002-05-24  David S. Miller  <davem@redhat.com>
1024
1025         * string/bits/string2.h (memset): Do not try to optimize when
1026         not _STRING_ARCH_unaligned if GCC will do the right thing.
1027
1028 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
1029
1030         * posix/regex.c: Define `inline' as a macro into nothing for the
1031         compilers which lack the keyword.
1032         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
1033         for the compatibility of gawk.
1034         * posix/regcomp.c: Add fake implementation of isblank() for the
1035         environments which lack the function.
1036         Don't use free_charset() in case of non-i18n envs.
1037         (build_range_exp): Don't use i18n related code in case of non-i18n
1038         envs.
1039         (build_collating_symbol): Likewise.
1040         (build_equiv_class): Likewise.
1041         (build_charclass): Likewise.
1042         (re_compile_fastmap_iter): Likewise.
1043         (parse_bracket_exp): Likewise.
1044         (build_word_op): Likewise.
1045         (regfree): Don't use free_charset() in case of non-i18n envs.
1046         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
1047         re_token_type_t in case of non-i18n envs.
1048         Don't define re_charset_t in case of non-i18n envs.
1049         Change the type of wcs of re_string_t from wchar_t to wint_t,
1050         since we store also WEOF.
1051         * posix/regex_internal.c: (re_string_realloc_buffers): Change
1052         the type of wcs of re_string_t from wchar_t to wint_t.
1053         (re_string_reconstruct): Likewise.
1054         (create_ci_newstate): Don't use i18n related code in case of
1055         non-i18n envs.
1056         (create_cd_newstate): Likewise.
1057
1058 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
1059
1060         * iconv/loop.c: Fix typo.
1061
1062 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1063
1064         * inet/ether_line.c (ether_line): Fix a typo causing only
1065         lower 4 bits of each ethernet address byte being assigned.
1066         Don't modify what line points to.
1067         * inet/tst-ether_aton.c (main): Add ether_line tests.
1068
1069 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
1070
1071         * manual/filesys.texi: Don't make readlink example leak memory
1072         when readlink fails.
1073
1074 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
1075
1076         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
1077         some more security checks.
1078
1079 2002-05-17  David S. Miller  <davem@redhat.com>
1080
1081         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
1082
1083 2002-05-16  David S. Miller  <davem@redhat.com>
1084
1085         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
1086         (elf_machine_dynamic): Use it to force PIC register to be loaded.
1087         (elf_machine_load_address): Likewise.
1088         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
1089
1090         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
1091         is unaligned, do not forget to fully initialize %g1 magic value.
1092
1093         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
1094         register definitions and provide 32-bit variants of structures
1095         during 64-bit builds.
1096
1097         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
1098         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
1099         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
1100         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
1101         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
1102         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
1103         Do not clear implicit one bit here, it must be done post-rounding.
1104         Only pad to the left using left shift if value uses less than the
1105         available fractional bits.
1106
1107 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1108
1109         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
1110         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
1111         (shared-only-routines): Likewise.
1112         * sysdeps/powerpc/libgcc-compat.c: New file.
1113         * sysdeps/wordsize-32/cmpdi2.c: Removed.
1114         * sysdeps/wordsize-32/fixdfdi.c: Removed.
1115         * sysdeps/wordsize-32/fixsfdi.c: Removed.
1116         * sysdeps/wordsize-32/shdi3.c: Removed.
1117
1118 2002-05-16  Bruno Haible  <bruno@clisp.org>
1119
1120         * MakeTAGS (libc.pot): Don't sort the output.
1121         * po/header.pot: Update to match xgettext 0.11 output.
1122
1123 2002-05-16  Bruno Haible  <bruno@clisp.org>
1124
1125         * MakeTAGS (subdirs): Remove duplicates.
1126
1127 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1128
1129         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
1130         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1131         alias.
1132
1133 2002-05-19  Andreas Jaeger  <aj@suse.de>
1134
1135         * sysdeps/unix/sysv/linux/configure.in: Warn against an
1136         installation in /usr/local.
1137
1138 2002-05-16  Bruno Haible  <bruno@clisp.org>
1139
1140         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
1141         string as argument of #error.
1142
1143 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
1146         don't define static.  Remove old __realpath function.  TC1 of
1147         POSIX 2001 will allow the second parameter to be NULL.
1148         * stdlib/test-canon.c: Comment out test for NULL as second
1149         parameter of realpath.
1150
1151         * time/offtime.c (__offtime): Set errno if overflow is detected.
1152
1153         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
1154         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
1155         dl-brk and dl-sbrk.
1156
1157         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
1158         (fdimf): Likewise.
1159
1160 2002-05-15  Roland McGrath  <roland@frob.com>
1161
1162         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
1163
1164 2002-05-12  Bruno Haible  <bruno@clisp.org>
1165
1166         * iconvdata/testdata/EUC-JISX0213: New file.
1167         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
1168         * iconvdata/testdata/SHIFT_JISX0213: New file.
1169         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
1170         * iconvdata/testdata/ISO-2022-JP-3: New file.
1171         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
1172         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
1173         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
1174         contains comments indicating precomposed characters.
1175
1176 2002-04-21  Bruno Haible  <bruno@clisp.org>
1177
1178         * iconvdata/iso-2022-jp-3.c: New file.
1179         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
1180         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
1181         (LDFLAGS-ISO-2022-JP-3.so): New variable.
1182         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
1183         (distribute): Add iso-2022-jp-3.c.
1184
1185 2002-05-12  Bruno Haible  <bruno@clisp.org>
1186
1187         * iconvdata/tst-table-to.c (main): Restore handling of
1188         transliterations, broken by last patch.
1189
1190 2002-05-12  Bruno Haible  <bruno@clisp.org>
1191
1192         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
1193
1194 2002-05-12  Bruno Haible  <bruno@clisp.org>
1195
1196         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
1197         when there is not enough room in the output buffer.
1198         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1199
1200 2002-04-20  Bruno Haible  <bruno@clisp.org>
1201
1202         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
1203         macros.
1204         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1205         Also make this macro work if FROM_DIRECTION evaluates to 0.
1206         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1207         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
1208         of consume_incomplete.
1209         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1210         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
1211         4, not 8.
1212         * iconvdata/cp1258.c: Likewise.
1213         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1214         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
1215         not 2.
1216         * iconvdata/ibm933.c: Likewise.
1217         * iconvdata/ibm935.c: Likewise.
1218         * iconvdata/ibm937.c: Likewise.
1219         * iconvdata/ibm939.c: Likewise.
1220         * iconvdata/iso-2022-cn.c: Define
1221         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1222         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
1223         * iconvdata/iso-2022-cn-ext.c: Likewise.
1224         * iconvdata/iso-2022-jp.c: Define
1225         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1226         {MIN,MAX}_NEEDED_{FROM,TO}.
1227         * iconvdata/tcvn5712-1.c: Define
1228         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1229         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
1230         * iconvdata/euc-jisx0213.c: Define
1231         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1232         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
1233         * iconvdata/shift_jisx0213.c: Likewise.
1234
1235 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1236
1237         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
1238         shdi3, fixdfdi, fixsfdi in csu dir.
1239         (shared-only-routines): Likewise.
1240         * sysdeps/wordsize-32/cmpdi2.c: New file.
1241         * sysdeps/wordsize-32/shdi3.c: New file.
1242         * sysdeps/wordsize-32/fixdfdi.c: New file.
1243         * sysdeps/wordsize-32/fixsfdi.c: New file.
1244         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
1245         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
1246         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
1247
1248         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
1249         Only use va_arg if the argument will be used [PR libc/3259].
1250
1251 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
1252
1253         * catgets/catgets.c (catopen): Free buffer if internal catalog
1254         open fails.
1255
1256 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1257
1258         * debug/xtrace.sh: Make more robust.  For realtime tracking use
1259         non-buffering methods.
1260         * debug/pcprofiledump.c: Implement -u option.
1261         Patch by Roger Luethi <rl@hellgate.ch>.
1262
1263 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
1264
1265         * include/netinet/in.h (bindresvport_internal): Add prototype.
1266         * include/rpc/auth.h  (authunix_create_internal,
1267         authunix_create_default_internal, authnone_create_internal,
1268         authdes_pk_create_internal): Add prototypes.
1269         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
1270         clntudp_create_internal, clntudp_bufcreate_internal,
1271         clntunix_create_internal): Add prototypes.
1272         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
1273         svc_getreq_internal, svc_getreq_common_internal,
1274         svc_getreqset_internal, svc_getreq_poll_internal,
1275         svc_register_internal, svc_unregister_internal,
1276         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
1277         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
1278         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
1279         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
1280         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
1281         * inet/rcmd.c (rcmd_af): Use __listen.
1282         (rresvport_af): Use __bind.
1283         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
1284         authunix_create, authunix_create_default, authnone_create,
1285         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
1286         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
1287         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
1288         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
1289         _authenticate, add INTDEF after such function definitions.
1290         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
1291         __setsockopt, __getsockname instead of non-__ variants.
1292         * sunrpc/pmap_rmt.c: Likewise.
1293         * sunrpc/rtime.c: Likewise.
1294         * sunrpc/svc_udp.c: Likewise.
1295         * sunrpc/clnt_unix.c: Likewise.
1296         * sunrpc/svc_unix.c: Likewise.
1297         * sunrpc/bindrsvprt.c: Likewise.
1298         * sunrpc/svc_tcp.c: Likewise.
1299         * sunrpc/auth_none.c: Likewise.
1300         * sunrpc/clnt_raw.c: Likewise.
1301         * sunrpc/clnt_tcp.c: Likewise.
1302         * sunrpc/auth_unix.c: Likewise.
1303         * sunrpc/key_call.c: Likewise.
1304         * sunrpc/clnt_gen.c: Likewise.
1305         * sunrpc/pm_getmaps.c: Likewise.
1306         * sunrpc/clnt_simp.c: Likewise.
1307         * sunrpc/pmap_clnt.c: Likewise.
1308         * sunrpc/svc_run.c: Likewise.
1309         * sunrpc/svc.c: Likewise.
1310         * sunrpc/svc_simple.c: Likewise.
1311         * sunrpc/pm_getport.c: Likewise.
1312         * sunrpc/auth_des.c: Likewise.
1313         * sunrpc/svc_auth.c: Likewise.
1314         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
1315         __register_frame_info_table_bases, __deregister_frame_info_bases):
1316         Add INTDEF.
1317         (__register_frame_info_bases_internal,
1318         __register_frame_info_table_bases_internal,
1319         __deregister_frame_info_bases_internal): Add prototypes.
1320         (__register_frame_info, __register_frame): Use INTUSE in call to
1321         __register_frame_info_bases.
1322         (__register_frame_info_table): Similarly.
1323         (__deregister_frame_info, __deregister_frame): Similarly.
1324         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
1325         sendto as weak alias.
1326         * sysdeps/mach/hurd/sendto.c: Likewise.
1327         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
1328         recvfrom as weak alias.
1329         * sysdeps/mach/hurd/recvfrom.c: Likewise.
1330         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
1331         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
1332         recvmsg as weak alias.
1333         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
1334         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
1335         sendmsg as weak alias.
1336         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
1337         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
1338         setsockopt, add setsockopt as weak alias.
1339         * sysdeps/mach/hurd/setsockopt.c: Likewise.
1340         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
1341         weak alias.
1342         * sysdeps/mach/hurd/bind.c: Likewise.
1343         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
1344         as weak alias.
1345         * sysdeps/mach/hurd/listen.c: Likewise.
1346         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
1347         getsockname, add getsockname as weak alias.
1348         * sysdeps/mach/hurd/getsockname.c: Likewise.
1349         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
1350         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
1351         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
1352         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
1353         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
1354         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
1355         Add aliases.
1356         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1357         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1358         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1359         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1360         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
1361         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
1362         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
1363         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
1364         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
1365         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
1366         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
1367         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
1368
1369 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1370
1371         * locale/programs/localedef.h (show_archive_content): Add verbose
1372         argument.
1373         * locale/programs/localedef.c (main): Adjust caller.
1374         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
1375         (nameentcmp, dataentcmp): New functions.
1376         (xstrcmp): Remove.
1377         (show_archive_content): Print verbose listing with --list-archive -v.
1378
1379 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1380
1381         * locale/programs/locarchive.c (open_archive): Take extra argument
1382         readonly.  If true open file with O_RDONLY and don't create the
1383         archive if it doesn't exist.
1384         Adapt all callers.
1385         (close_archive): Don't do anything if fd element is -1.
1386         * locale/programs/localedef.h (open_archive): Adjust prototype.
1387         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
1388         call.
1389
1390         * malloc/malloc.c (__posix_memalign): Correct check for size of
1391         alignment value [PR libc/3444].
1392
1393         * include/stdio.h: Remove references to old stdio implementation.
1394
1395         * libio/Makefile (bug-ungetwc2-ENV): Define.
1396
1397 2002-05-13  Roland McGrath  <roland@frob.com>
1398
1399         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
1400
1401         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
1402
1403 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
1404
1405         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1406         Allocate three, not two, more than LEN when appending '/.'.
1407         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
1408         if NAME ends with '/.' if it is shorter than 2 chars.
1409
1410 2002-05-12  Roland McGrath  <roland@frob.com>
1411
1412         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
1413         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
1414
1415         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
1416         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
1417
1418 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1419
1420         * sysdeps/ia64/Makefile: Remove extra endif.
1421         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
1422
1423 2002-05-10  Andreas Schwab  <schwab@suse.de>
1424
1425         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
1426
1427 2002-05-09  Andreas Jaeger  <aj@suse.de>
1428
1429         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
1430         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
1431         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
1432
1433         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
1434         * sysdeps/wordsize-64/glob.c: ...here.
1435         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
1436         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
1437         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
1438
1439 2002-05-08  Roland McGrath  <roland@frob.com>
1440
1441         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
1442         O_NOTRANS flag in "." lookup.
1443
1444 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
1445
1446         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
1447
1448 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
1449
1450         * locale/duplocale.c (__duplocale): Update special members only
1451         when allocation succeeded.
1452
1453 2002-05-03  Roland McGrath  <roland@frob.com>
1454
1455         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
1456         we can only build libc.so.0.3(GLIBC_2.2.6) now.
1457
1458 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
1459
1460         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
1461         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
1462         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
1463         * sysdeps/ia64/ia64libgcc.S: New file.
1464
1465 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
1466
1467         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
1468
1469         * malloc/memusage.c: Distinguish anonymous mmap.
1470
1471 2002-05-01  Roland McGrath  <roland@frob.com>
1472
1473         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
1474         and use INTDEF on it.
1475         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
1476
1477         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
1478
1479         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
1480
1481 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
1482
1483         * malloc/memusage.c: Add support for tracking mmap & friends.
1484         * malloc/memusage.sh: Implement -m/--mmap option.
1485
1486 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1487
1488         * locale/programs/locarchive.c (create_archive): Add archivefname
1489         argument, create fname from it.
1490         (enlarge_archive): Honour output_prefix.
1491         (open_archive): Likewise.
1492
1493 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1494
1495         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
1496         too many stpcpy macros.
1497
1498 2002-04-26  Bruno Haible  <bruno@clisp.org>
1499
1500         * locale/programs/ld-collate.c (collate_read): Cast first argument
1501         for "%.*s" to int.
1502
1503 2002-04-26  Bruno Haible  <bruno@clisp.org>
1504
1505         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
1506         __dcngettext_internal): New declarations.
1507         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
1508         attribute declarations.
1509
1510 2002-04-30  Roland McGrath  <roland@frob.com>
1511
1512         Removed old GNU stdio implementation; GNU libio is now the only option.
1513         * configure.in: Removed --enable-libio option and @stdio@ subst var.
1514         Define USE_IN_LIBIO unconditionally.
1515         * configure: Regenerated.
1516         * Makeconfig (stdio): Set to libio by default.
1517         * config.make.in (stdio): Variable removed.
1518         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
1519         * sysdeps/unix/sysv/linux/configure: Regenerated.
1520         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
1521         * sysdeps/mach/hurd/configure: Regenerated.
1522         * stdio/.cvsignore: File removed.
1523         * stdio/Makefile: File removed.
1524         * stdio/Versions: File removed.
1525         * stdio/__fbufsize.c: File removed.
1526         * stdio/__flbf.c: File removed.
1527         * stdio/__fpending.c: File removed.
1528         * stdio/__fpurge.c: File removed.
1529         * stdio/__freadable.c: File removed.
1530         * stdio/__freading.c: File removed.
1531         * stdio/__fsetlocking.c: File removed.
1532         * stdio/__fwritable.c: File removed.
1533         * stdio/__fwriting.c: File removed.
1534         * stdio/clearerr.c: File removed.
1535         * stdio/fclose.c: File removed.
1536         * stdio/fcloseall.c: File removed.
1537         * stdio/feof.c: File removed.
1538         * stdio/ferror.c: File removed.
1539         * stdio/fflush.c: File removed.
1540         * stdio/fgetc.c: File removed.
1541         * stdio/fgetpos.c: File removed.
1542         * stdio/fgets.c: File removed.
1543         * stdio/fileno.c: File removed.
1544         * stdio/fmemopen.c: File removed.
1545         * stdio/fopen.c: File removed.
1546         * stdio/fopncook.c: File removed.
1547         * stdio/fputc.c: File removed.
1548         * stdio/fputs.c: File removed.
1549         * stdio/fread.c: File removed.
1550         * stdio/freopen.c: File removed.
1551         * stdio/fseek.c: File removed.
1552         * stdio/fsetpos.c: File removed.
1553         * stdio/ftell.c: File removed.
1554         * stdio/fwrite.c: File removed.
1555         * stdio/getc.c: File removed.
1556         * stdio/getchar.c: File removed.
1557         * stdio/getdelim.c: File removed.
1558         * stdio/gets.c: File removed.
1559         * stdio/glue.c: File removed.
1560         * stdio/internals.c: File removed.
1561         * stdio/linewrap.c: File removed.
1562         * stdio/linewrap.h: File removed.
1563         * stdio/memstream.c: File removed.
1564         * stdio/newstream.c: File removed.
1565         * stdio/obstream.c: File removed.
1566         * stdio/putc.c: File removed.
1567         * stdio/putchar.c: File removed.
1568         * stdio/puts.c: File removed.
1569         * stdio/rewind.c: File removed.
1570         * stdio/setbuf.c: File removed.
1571         * stdio/setbuffer.c: File removed.
1572         * stdio/setlinebuf.c: File removed.
1573         * stdio/setvbuf.c: File removed.
1574         * stdio/stdio.h: File removed.
1575         * stdio/ungetc.c: File removed.
1576         * stdio/vasprintf.c: File removed.
1577         * stdio/vscanf.c: File removed.
1578         * stdio/vsnprintf.c: File removed.
1579         * stdio/vsprintf.c: File removed.
1580         * stdio/vsscanf.c: File removed.
1581         * sysdeps/generic/defs.c: File removed.
1582         * sysdeps/generic/fdopen.c: File removed.
1583         * sysdeps/generic/pipestream.c: File removed.
1584         * sysdeps/generic/stdio_init.c: File removed.
1585         * sysdeps/generic/sysd-stdio.c: File removed.
1586         * sysdeps/generic/vdprintf.c: File removed.
1587         * sysdeps/mach/hurd/defs.c: File removed.
1588         * sysdeps/mach/hurd/fdopen.c: File removed.
1589         * sysdeps/mach/hurd/pipestream.c: File removed.
1590         * sysdeps/mach/hurd/stdio_init.c: File removed.
1591         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
1592         * sysdeps/mach/hurd/vdprintf.c: File removed.
1593         * sysdeps/posix/defs.c: File removed.
1594         * sysdeps/posix/fdopen.c: File removed.
1595         * sysdeps/posix/pipestream.c: File removed.
1596         * sysdeps/posix/stdio_init.c: File removed.
1597         * sysdeps/posix/vdprintf.c: File removed.
1598         * sysdeps/unix/pipestream.c: File removed.
1599         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
1600         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
1601         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
1602
1603 2002-04-29  Roland McGrath  <roland@frob.com>
1604
1605         * include/libc-symbols.h (link_warning): Use `unused' attribute.
1606
1607 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
1608
1609         * sysdeps/generic/tls.h: Describe what must be defined.
1610
1611         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
1612         glob_in_dir [PR libc/3385].
1613         * posix/globtest.sh: Add test case.
1614
1615         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
1616         //TRANSLIT twice.
1617
1618 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
1619
1620         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
1621         _internal symbol handling.
1622         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1623
1624 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
1625
1626         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
1627         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
1628
1629 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
1630
1631         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
1632         not _LIBC and RE_ENABLE_I18N.
1633         (build_range_exp): Implement for not _LIBC.
1634         (build_collating_symbol): Likewise.
1635         (parse_bracket_exp): Unify redundant error handlings.
1636         Don't erase mbcset for non matching list in multibyte envs.
1637         (build_word_op): Add '_' to matching list for \w operator.
1638         * posix/regex_internal.c (re_string_construct): Invoke
1639         build_upper_buffer in case of not RE_ENABLE_I18N.
1640         (re_string_reconstruct): Don't touch cur_state in case of not
1641         RE_ENABLE_I18N.
1642         * posix/regex_internal.h (attribute_hidden): New macro in case of
1643         not _LIBC.
1644         (re_charset_t): Define range_starts/ends in case of not _LIBC.
1645         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
1646         RE_ENABLE_I18N.
1647         (transit_state_mb): Likewise.
1648         (check_node_accept_bytes): Implement the code evaluating range
1649         expression in case of not _LIBC.
1650         (find_collation_sequence_value): Hide in case of not _LIBC.
1651
1652 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
1653
1654         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
1655         i386/semctl.c.
1656         (__old_semctl, __new_semctl): Only use va_arg if the argument will
1657         be used.
1658
1659 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
1660
1661         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
1662
1663         * sysdeps/ia64/strncpy.S: Fix recovery code.
1664         Patch by David Mosberger <davidm@hpl.hp.com>.
1665
1666 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1667
1668         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
1669         GLIBC_2.2.6.
1670
1671 2002-04-14  Bruno Haible  <bruno@clisp.org>
1672
1673         * posix/regex.c (re_max_failures): Add back symbol for binary
1674         compatibility.
1675
1676 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
1677
1678         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
1679         of buffer building functions.
1680         * posix/regex_internal.c (re_string_allocate): New function.
1681         (re_string_realloc_buffers): New function.
1682         (re_string_skip_chars): New function.
1683         (re_string_reconstruct): New function.
1684         (re_string_construct): Adapt it to new interface of buffer building
1685         functions.
1686         (re_string_construct_common): Likewise.
1687         (build_wcs_buffer): Likewise.
1688         (build_wcs_upper_buffer): Likewise.
1689         (build_upper_buffer): Likewise.
1690         (re_string_translate_buffer): Likewise.
1691         (re_string_context_at): Adapt it to variable length buffers.
1692         * posix/regex_internal.h (re_string_t): Add new fields to handle
1693         variable length buffers.
1694         (re_match_context_t): Likewise.
1695         * posix/regexec.c (re_search_internal): Adapt it to new interface
1696         of re_string_t and re_match_context_t.
1697         (acquire_init_state_context): Likewise.
1698         (check_matching): Likewise.
1699         (check_halt_state_context): Likewise.
1700         (proceed_next_node): Likewise.
1701         (set_regs): Likewise.
1702         (sift_states_backward): Likewise.
1703         (clean_state_log_if_need): Likewise.
1704         (sift_states_iter_mb): Likewise.
1705         (sift_states_iter_bkref): Likewise.
1706         (add_epsilon_backreference): Likewise.
1707         (transit_state): Likewise.
1708         (transit_state_sb): Likewise.
1709         (transit_state_mb): Likewise.
1710         (transit_state_bkref): Likewise.
1711         (transit_state_bkref_loop): Likewise.
1712         (check_node_accept): Likewise.
1713         (match_ctx_init): Likewise.
1714         (extend_buffers): New function.
1715
1716 2002-04-21  Bruno Haible  <bruno@clisp.org>
1717
1718         * iconvdata/tst-table.sh: For the second check, use the truncated
1719         GB18030 charmap table, like for the first check.
1720
1721 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1722
1723         * elf/dl-load.c (open_verify): Correct __lseek parameters.
1724         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
1725
1726 2002-04-23  H.J. Lu  <hjl@gnu.org>
1727
1728         * include/math.h (isfinite): Fix a typo.
1729
1730 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1731
1732         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
1733         which is created by the test suite.
1734
1735 2002-04-20  Bruno Haible  <bruno@clisp.org>
1736
1737         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
1738         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
1739
1740 2002-04-20  Bruno Haible  <bruno@clisp.org>
1741
1742         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
1743         to avoid gcc warning.
1744
1745 2002-04-20  Bruno Haible  <bruno@clisp.org>
1746
1747         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
1748         of data->__statep->__count.
1749
1750 2002-04-20  Bruno Haible  <bruno@clisp.org>
1751
1752         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1753         tag characters.
1754         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1755
1756 2002-04-24  Roland McGrath  <roland@frob.com>
1757
1758         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1759         use END macro instead of our own .end directive.
1760         Use `callsys' insn mnemonic instead of `call_pal'.
1761
1762         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1763
1764         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1765         macro; we need this for Hurd.
1766
1767         Log entry was missing for 2002/03/24 commit of rev 1.8,
1768         goes with 2002-03-17 changes.
1769         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1770         (sysdep_routines): Append ioperm here.
1771         (sysdep_headers): Append sys/io.h here.
1772
1773 2002-04-23  Roland McGrath  <roland@frob.com>
1774
1775         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1776         * sysdeps/mach/hurd/sendto.c: Likewise.
1777         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1778         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1779         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1780
1781 2002-04-22  Roland McGrath  <roland@frob.com>
1782
1783         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1784         failure from i386_io_perm_* RPCs to ENOSYS.
1785
1786 2002-04-22  Andreas Jaeger  <aj@suse.de>
1787
1788         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1789
1790         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1791
1792         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1793         register instead of destroying %rbx.
1794
1795 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
1796
1797         * string/string.h: Declare strerror_r also for XPG6.
1798
1799 2002-04-19  Roland McGrath  <roland@frob.com>
1800
1801         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1802
1803 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
1804
1805         * Makefile: Add handling of xtests and xcheck targets.
1806         * MakeTAGS: Likewise.
1807         * Makeconfig: Likewise.
1808         * Makerules: Likewise.
1809         * Rules: Likewise.
1810         * manual/Makefile: Likewise.
1811         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1812         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
1813
1814 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
1815
1816         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1817         authnone_private_s.
1818         * sunrpc/auth_none.c: Include bits/libc-lock.h.
1819         Delete #ifdef _RPC_THREAD_SAFE_ block.
1820         (authnone_private): Make a struct, not a pointer to struct.
1821         (authnone_private_guard): New once-control variable.
1822         (authnone_create_once): New function, split out of
1823         authnone_create.  No need to allocate memory.
1824         (authnone_create): Just call authnone_create_once via
1825         __libc_once, then return &authnone_private->no_client.
1826         (authnone_marshal): Access private data via CLIENT argument,
1827         not authnone_private pointer.
1828         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1829         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1830         authnone_private_s.
1831
1832 2002-04-12  H.J. Lu  <hjl@gnu.org>
1833
1834         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1835
1836 2002-04-18  Bruno Haible  <bruno@clisp.org>
1837
1838         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1839         FROM_DIRECTION): Make the FROM direction stateless.
1840         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1841         FROM_DIRECTION): Likewise.
1842
1843 2002-04-15  Bruno Haible  <bruno@clisp.org>
1844
1845         * iconvdata/JISX0213.TXT: New file.
1846         * iconvdata/jisx0213.h: New file.
1847         * iconvdata/jisx0213.c: New file.
1848         * iconvdata/euc-jisx0213.c: New file.
1849         * iconvdata/shift_jisx0213.c: New file.
1850         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1851         * iconvdata/EUC-JISX0213.precomposed: New file.
1852         * iconvdata/SHIFT_JISX0213.precomposed: New file.
1853         * iconvdata/SHIFT_JISX0213.irreversible: New file.
1854         * iconvdata/tst-table-to.c (main): Make it work for encodings for
1855         which the "to" direction is stateful.
1856         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1857         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1858         SHIFT_JISX0213.
1859         (libJISX0213-routines): New variable.
1860         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1861         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1862         (LDFLAGS-libJISX0213.so): New variable.
1863         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1864         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1865         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1866
1867 2002-04-15  Bruno Haible  <bruno@clisp.org>
1868
1869         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1870         uint32_t.  Update to Unicode 3.2.
1871         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1872         (BODY for TO_LOOP): Handle the ASCII range specially.
1873         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1874         * iconvdata/testdata/BIG5HKSCS: Remove a character.
1875         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1876
1877 2002-04-15  Bruno Haible  <bruno@clisp.org>
1878
1879         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1880         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1881
1882 2002-04-15  Bruno Haible  <bruno@clisp.org>
1883
1884         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1885         (ucs4_to_cns11643): Update.
1886         * iconvdata/cns11643.c: Update to Unicode 3.2.
1887         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1888         __cns11643_from_ucs4p2_tab): Regenerated.
1889         (__cns11643_from_ucs4p2c_tab): New array.
1890         * iconvdata/cvs11643l1.c: Update comments.
1891         * iconvdata/EUC-TW.irreversible: Remove two entries.
1892
1893 2002-04-15  Bruno Haible  <bruno@clisp.org>
1894
1895         * locale/C-translit.h.in: Update to Unicode 3.2.
1896         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1897         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1898
1899 2002-04-15  Bruno Haible  <bruno@clisp.org>
1900
1901         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1902         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1903
1904 2002-04-15  Bruno Haible  <bruno@clisp.org>
1905
1906         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1907         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1908         always one byte, not 0 bytes in some cases and 2 bytes in others.
1909
1910         * iconvdata/tst-table-from.c (main): Correct the usage message.
1911
1912 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
1913
1914         * posix/regcomp.c (parse_expression): Fix incorrect error code.
1915         (parse_dup_op): Fix error handling like "a{}".
1916         (parse_bracket_exp): Add error handling.
1917         (fetch_number): Add error handling for "a{<very_large_number>}".
1918
1919 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
1920
1921         * posix/regcomp.c (parse_bracket_symbol): Add error handling
1922         in case that the symbol name is too long.
1923         (build_charclass): Handle [:lower:]/[:uppper:] correctly
1924         in case of REG_ICASE.
1925
1926 2002-04-19  Andreas Jaeger  <aj@suse.de>
1927
1928         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1929         <hartvige@mips.com>.
1930
1931 2002-04-15  H.J. Lu  <hjl@gnu.org>
1932
1933         * include/math.h (__finitel_internal): Declare only if
1934         __NO_LONG_DOUBLE_MATH is not defined.
1935         (__isinfl_internal): Likewise.
1936         (__isnanl_internal): Likewise.
1937
1938         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1939         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1940         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1941         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1942         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1943         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1944         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1945
1946         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
1947         __fcntl_internal.
1948
1949         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
1950         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
1951
1952 2002-04-15  Bruno Haible  <bruno@clisp.org>
1953
1954         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
1955         (BODY for TO_LOOP): Likewise.
1956         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
1957         * iconvdata/tst-table.sh: Add support for encodings which contain
1958         precomposed Unicode characters, known to the iconv converter in both
1959         directions but not listed in the charmap.
1960         * iconvdata/IBM856.irreversible: New file.
1961         * iconvdata/IBM922.irreversible: New file.
1962         * iconvdata/IBM1132.irreversible: New file.
1963         * iconvdata/IBM1133.irreversible: New file.
1964         * iconvdata/IBM1160.irreversible: New file.
1965         * iconvdata/IBM1161.irreversible: New file.
1966         * iconvdata/IBM1163.irreversible: New file.
1967         * iconvdata/IBM1164.irreversible: New file.
1968         * iconvdata/ARMSCII-8.irreversible: New file.
1969         * iconvdata/TCVN5712-1.precomposed: New file.
1970         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
1971         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
1972         ARMSCII-8, TCVN5712-1.
1973         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
1974         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
1975         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
1976         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
1977
1978 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
1979
1980         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
1981         for EVENING69.  Include offsets in TZ environment variable.
1982
1983 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
1984
1985         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
1986         avoid compiler warnings.
1987
1988         * locale/programs/localedef.c (main): Always call
1989         construct_output_path.
1990
1991         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
1992
1993         * locale/programs/locfile.c (to_archive): New variable.  To collect
1994         data which has to be added to the locale archive.
1995         (write_all_categories): Take new third parameter with locale name.
1996         Unless no_archive flag set add new locale data to the archive
1997         (write_locale_data): Unless no-archive flag set store generated data
1998         in to_archive data structure instead of generation output file.
1999         Add new parameter with locale category index.
2000         * locale/programs/locfile.h: Add new parameters in declaractions of
2001         write_all_categories and write_locale_data.
2002         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
2003         --add-to-archive, and --delete-from-archive options.  Pass extra
2004         parameter to write_all_categories.
2005         * locale/programs/localedef.h: Add prototypes for functions in
2006         locarchive.c.
2007         * locale/locarchive.h: New file.
2008         * locale/programs/locarchive.c: New file.
2009         * locale/Makefile (distribute): Add programs/locarchive.c and
2010         locarchive.h.
2011         (localedef-modules): Add md5 and locarchive.
2012         Add vpath to crypt subdir for md5.c.
2013
2014         * locale/programs/ld-address.c: Pass locale category ID as new second
2015         parameter to write_locale_data.
2016         * locale/programs/ld-collate.c: Likewise.
2017         * locale/programs/ld-ctype.c: Likewise.
2018         * locale/programs/ld-identification.c: Likewise.
2019         * locale/programs/ld-measurement.c: Likewise.
2020         * locale/programs/ld-messages.c: Likewise.
2021         * locale/programs/ld-monetary.c: Likewise.
2022         * locale/programs/ld-name.c: Likewise.
2023         * locale/programs/ld-numeric.c: Likewise.
2024         * locale/programs/ld-paper.c: Likewise.
2025         * locale/programs/ld-telephone.c: Likewise.
2026         * locale/programs/ld-time.c: Likewise.
2027
2028         * locale/simple-hash.c: Move compute_hashval function from here...
2029         * locale/hashval.h: ...to here.  New file.
2030         * locale/simple-hash.h: Add prototype for compute_hashval.
2031
2032         * include/libintl.h: Minor cleanups.
2033
2034 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
2035
2036         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
2037
2038 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
2039
2040         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
2041
2042 2002-04-14  Bruno Haible  <bruno@clisp.org>
2043
2044         * locale/programs/charmap.c (charmap_read): Don't access result if
2045         result == NULL.
2046
2047 2002-02-17  Andreas Schwab  <schwab@suse.de>
2048
2049         * elf/reldep7.c: New file.
2050         * elf/reldep7mod1.c: New file.
2051         * elf/reldep7mod2.c: New file.
2052         * elf/Makefile: Add rules to build and run reldep7.
2053
2054 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
2055
2056         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
2057         the end of the function.  Pass original flags to recursive call if
2058         add_dependency failed.
2059         (_dl_lookup_versioned_symbol): Likewise.
2060
2061 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
2062
2063         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
2064         early, but check whether it overflowed afterwards.
2065         * time/tst-mktime.c (main): Add new tests.
2066
2067 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
2068
2069         * debug/xtrace.sh: Fix program name in help message.
2070         Patch by Roger Luethi <rl@hellgate.ch>.
2071
2072         * include/sys/stat.h: Add prototypes for __lxstat_internal and
2073         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
2074         NOT_IN_libc.
2075         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
2076         * sysdeps/mach/hurd/lxstat.c: Likewise.
2077         * sysdeps/unix/common/lxstat.c: Likewise.
2078         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
2079         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2080         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2081         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2082         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2083         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
2084         * sysdeps/mach/hurd/lxstat64.c: Likewise.
2085         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
2086         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2087
2088         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
2089         prototypes.  Add __mbrlen and __mbrtowc macros.
2090         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
2091         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
2092
2093         * include/unistd.h: Add prototype for __write_internal and add
2094         __libc_write macro is SHARED.
2095         * sysdeps/generic/write.c: Use INTDEF for __write.
2096         * sysdeps/mach/hurd/write.c: Likewise.
2097         * sysdeps/unix/sysv/aix/write.c: Likewise.
2098         * sysdeps/unix/syscalls.list: Add __libc_write alias.
2099
2100         * assert/assert.c: Replace STR_N_SIZE with something usable in
2101         macro arguments.
2102         * assert/assert-perr.c: Likewise.
2103
2104         * include/sys/socket.h: Declare __libc_sa_len_internal and define
2105         SA_LEN macro to use it if not NOT_IN_libc.
2106         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
2107
2108         * include/fcntl.h: Declare __open_internal and define __open and
2109         __libc_open macros if not NOT_IN_libc.
2110         * sysdeps/generic/open.c: Use INTDEF for __open.
2111         * sysdeps/mach/hurd/open.c: Likewise.
2112         * sysdeps/unix/sysv/aix/open.c: Likewise.
2113         * sysdeps/unix/syscalls.list: Add __open_internal alias.
2114
2115         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
2116         has correct number.
2117
2118         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
2119         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
2120         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2121         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2122
2123         * include/wctype.h: Declare __iswalpha_l_internal,
2124         __iswdigit_l_internal, __iswspace_l_internal,
2125         __iswxdigit_l_internal, and __iswctype_internal.  Define
2126         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
2127         __iswxdigit_l macros if not NOT_IN_libc.
2128         * wctype/iswctype.c: Use INTDEF for __iswctype.
2129         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
2130
2131         * include/math.h: Declare __isinf_internal, __isinfl_internal,
2132         __isnan_internal, and __isnanl_internal.
2133         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
2134         __isnan, and __isnanl.
2135         * stdio-common/printf_size.c: Likewise.
2136         * sysdeps/generic/printf_fphex.c: Likewise.
2137         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
2138         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2139         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
2140         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
2141         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2142         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2143         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2144         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2145         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2146         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2147         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2148         * sysdeps/m68k/s_isinfl.c: Likewise.
2149         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
2150         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2151
2152         * include/sys/time.h: Declare __gettimeofday_internal and define
2153         __gettimeofday macro if not NOT_IN_libc.
2154         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
2155         * sysdeps/mach/gettimeofday.c: Likewise.
2156         * sysdeps/posix/gettimeofday.c: Likewise.
2157         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2158         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
2159         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2160         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
2161
2162         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
2163         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
2164         Remove __lstat and __fstat inline functions.
2165         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
2166         * sysdeps/mach/hurd/fxstat.c: Likewise.
2167         * sysdeps/unix/fxstat.c: Likewise.
2168         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
2169         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2170         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2171         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2172         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
2173         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
2174         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2175         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
2176         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2177
2178         * include/unistd.h: Declare __getpid_internal and define
2179         __getpid macro if not NOT_IN_libc.
2180         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
2181         * sysdeps/generic/getpid.c: Likewise.
2182         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
2183         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
2184
2185         * include/unistd.h: Declare __getpgid_internal and define
2186         __getpgid macro if not NOT_IN_libc.
2187         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
2188         * sysdeps/mach/hurd/getpgid.c: Likewise.
2189         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
2190         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
2191         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
2192         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
2193
2194         * include/unistd.h: Declare __getpagesize_internal and define
2195         __getpagesize macro if not NOT_IN_libc.
2196         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
2197         __getpagesize.
2198         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
2199         * sysdeps/mach/getpagesize.c: Likewise.
2200         * sysdeps/posix/getpagesize.c: Likewise.
2201         * sysdeps/unix/getpagesize.c: Likewise.
2202         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2203         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2204         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
2205         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
2206
2207 2002-04-13  Andreas Jaeger  <aj@suse.de>
2208
2209         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
2210         as clobber to reduce register pressure.
2211         (__strpbrk_cg): Likewise.
2212         (__mempcpy_by4): Likewise.
2213         (__strstr_cg): Likewise.
2214         Add prototype for __memrchr.
2215
2216 2002-04-13  Andreas Schwab  <schwab@suse.de>
2217
2218         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
2219         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2220         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2221
2222 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
2223
2224         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
2225         check whether the caller prefers getting the most recent version of
2226         a symbol of the earliest version.
2227         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
2228         _dl_do_lookup to also take the new parameter and pass it on.
2229         Change 'explicit' parameter of _dl_lookup_symbol and
2230         _dl_lookup_versioned_symbol to flags.  Adjust tests.
2231         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2232         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
2233         _dl_lookup_versioned_symbol.
2234         * elf/dl-reloc.c: Likewise.
2235         * elf/dl-runtime.c: Likewise.
2236         * elf/dl-sym.c: Likewise.
2237         * sysdeps/mips/dl-machine.h: Likewise.
2238
2239 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2240
2241         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
2242         in a token.
2243         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
2244
2245 2002-04-10  Andreas Jaeger  <aj@suse.de>
2246
2247         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
2248
2249         * include/argz.h: Remove extra char from last patch.
2250
2251 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
2252
2253         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
2254         * sysdeps/unix/sysv/aix/chown.c: Likewise.
2255         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
2256         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2257         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2258         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
2259         __chown_internal.
2260         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2261
2262         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
2263         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
2264         * intl/ngettext.c: Likewise.
2265
2266         * include/sys/socket.h: Declare __connect_internal and define
2267         __connect macro if not NOT_IN_libc.
2268         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
2269         * sysdeps/unix/sysv/aix/connect.c: Likewise.
2270         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
2271
2272         * include/unistd.h: Declare __close_internal and define __close macro
2273         if not NOT_IN_libc.
2274         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
2275         WJUMP3): Add extra parenthesis to avoid expanding element names with
2276         macors like __close.
2277         * sysdeps/unix/syscalls.list: Add __close_internal alias.
2278
2279         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
2280         if not NOT_IN_libc.
2281         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
2282         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
2283         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
2284
2285         * include/unistd.h: Declare __fork_internal and define __fork macro
2286         if not NOT_IN_libc.
2287         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
2288         * sysdeps/unix/sysv/aix/fork.c: Likewise.
2289         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
2290
2291         * include/stdio_ext.h: Declare __fsetlocking_internal and define
2292         __fsetlocking macro to use it if not NOT_IN_libc.
2293         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
2294
2295         * libio/__fbufsize.c: Correct copyright.
2296         * libio/__flbf.c: Likewise.
2297         * libio/__fpending.c: Likewise.
2298         * libio/__fpurge.c: Likewise.
2299         * libio/__freadable.c: Likewise.
2300         * libio/__freading.c: Likewise.
2301         * libio/__fsetlocking.c: Likewise.
2302         * libio/__fwritable.c: Likewise.
2303         * libio/__fwriting.c: Likewise.
2304
2305         * include/stdio.h: Declare __asprintf_internal and define __asprintf
2306         macro to use it if not NOT_IN_libc.
2307         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
2308
2309         * include/mntent.h: Declare __setmntent_internal,
2310         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
2311         __getmntent_r, and __endmntent macros to use these functions if not
2312         NOT_IN_libc.
2313         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
2314         __endmntent.
2315
2316         * include/math.h: Declare __finite_internal, __finitef_internal, and
2317         __finitel_internal.  Redefine isfinite macro if in libc or libm using
2318         these functions.
2319         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
2320         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
2321         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
2322         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
2323         * sysdeps/i386/fpu/s_finitef.S: Likewise.
2324         * sysdeps/i386/fpu/s_finitel.S: Likewise.
2325         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2326         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2327         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2328         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2329
2330         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
2331         to use this function if not NOT_IN_libc.
2332         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
2333         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
2334         * sysdeps/mach/hurd/fcntl.c: Likewise.
2335         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2336         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2337
2338         * include/argz.h: Declare __argz_count_internal and
2339         __argz_stringify_internal.
2340         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
2341         __argz_stringify.
2342         * string/argz-count.c: Use INTDEF for __argz_count.
2343         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
2344
2345         * include/stdlib.h: Declare __cxa_atexit_internal and define
2346         __cxa_atexit macro if not NOT_IN_libc.
2347         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
2348         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
2349
2350         * assert/assert.c: Use INTDEF for __assert_fail.
2351         * assert/__assert.c: Use INTUSE for call to __assert_fail.
2352         * include/assert.h: Declare __assert_fail_internal.
2353
2354         * extra-lib.mk: Mark assignment to lib with override.
2355
2356 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2357
2358         * Makerules: Use cppflags-iterator.mk to add defines for all test
2359         source files.
2360
2361 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2362
2363         * elf/elf.h: Define R_SH_TLS_xxx macros.
2364         * elf/rtld.c: Remove an extra parenthesis.
2365         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
2366         TLS_GD macros.
2367         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
2368         * sysdeps/sh/dl-lookupcfg.h: New file.
2369         * sysdeps/sh/dl-tls.h: New file.
2370         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
2371         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
2372         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
2373         R_SH_TLS_TPOFF32 relocations.
2374
2375 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2376
2377         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
2378         of NOT_IN_LIBC.
2379         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
2380         * include/stdlib.h: Likewise.
2381
2382 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
2383
2384         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
2385         instead of _RTLD_LOCAL.
2386         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
2387         * include/unistd.h: Likewise.
2388         * sysdeps/generic/ldsodefs.h: Likewise.
2389
2390         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
2391         if in libc or ld.so.
2392
2393 2002-04-08  Andreas Jaeger  <aj@suse.de>
2394
2395         * elf/cache.c (print_entry): Support x86-64.
2396
2397 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2398
2399         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
2400         with one accessing the locale data structures directly.
2401         * stdio-common/printf-prs.c: Include localeinfo.h for new
2402         MB_CUR_MAX definition.
2403
2404         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
2405         is the name of the source file without extension.
2406         * Makefile (distribute): Add cppflags-iterator.mk.
2407         * cppflags-iterator.mk: New file.
2408         * extra-lib.mk: For the sources of the library run
2409         cppflags-iterator.mk.
2410
2411         * include/libintl.h: Declare __dcgettext_internal and
2412         _libc_intl_domainname_internal.  Define __dcgettext using these
2413         two symbols if used in libc itself.
2414         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
2415         _libc_intl_domainname_internal.
2416         * argp/argp-parse.c: Likewise.
2417         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
2418         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
2419         * intl/gettext.c: Likewise.
2420         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
2421         alias.
2422         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
2423         __dcgettext.
2424         * posix/regex_internal.c (gettext): Likewise.
2425
2426 2002-04-08  Andreas Jaeger  <aj@suse.de>
2427
2428         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
2429
2430         * sysdeps/x86_64/fpu/s_llrint.S: New.
2431         * sysdeps/x86_64/fpu/s_llrintf.S: New.
2432         * sysdeps/x86_64/fpu/s_llrintl.S: New.
2433         * sysdeps/x86_64/fpu/s_lrint.S: New.
2434         * sysdeps/x86_64/fpu/s_lrintf.S: New
2435         * sysdeps/x86_64/fpu/s_lrintl.S: New.
2436
2437 2002-04-08  Roland McGrath  <roland@frob.com>
2438
2439         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
2440         widening __hurd_fail value.
2441
2442 2002-04-07  Roland McGrath  <roland@frob.com>
2443
2444         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
2445         <mach/machine/alpha_instruction.h>.
2446         (_hurd_setup_sighandler): Take proper arguments for current decls.
2447         Update code to use _hurdsig_catch_fault.
2448         Use `callsys' instruction instead of `call_pal'.
2449         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
2450
2451         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
2452         (ALIGN, at, AT, fp): New macros.
2453
2454 2002-04-06  Roland McGrath  <roland@frob.com>
2455
2456         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
2457
2458         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
2459         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
2460
2461         * sysdeps/mach/hurd/bind.c: Use prototype definition.
2462         * sysdeps/mach/hurd/connect.c: Likewise.
2463         * sysdeps/mach/hurd/getsockopt.c: Likewise.
2464         * sysdeps/mach/hurd/setsockopt.c: Likewise.
2465
2466         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
2467         __msg_sig_post RPC.
2468
2469         * hurd/catch-exc.c: Use integer_t instead of int.
2470         * hurd/hurdfault.c: Likewise.
2471
2472         * sysdeps/mach/hurd/alpha/exc2signal.c
2473         (_hurd_exception2signal): Rewritten.
2474         * sysdeps/mach/hurd/alpha/longjmp-ts.c
2475         (_hurd_longjmp_thread_state): Rewritten.
2476
2477 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
2478
2479         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
2480         DB_LOOKUP_FCT prototype.
2481         * nss/getXXent_r.c: Likewise.
2482         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
2483         * inet/getaliasname_r.c: Likewise.
2484         * inet/getnetbyad_r.c: Likewise.
2485         * inet/getnetbynm_r.c: Likewise.
2486         * inet/getnetent_r.c: Likewise.
2487         * inet/getproto_r.c: Likewise.
2488         * inet/getprtent_r.c: Likewise.
2489         * inet/getprtname_r.c: Likewise.
2490         * inet/getrpcbyname_r.c: Likewise.
2491         * inet/getrpcbynumber_r.c: Likewise.
2492         * inet/getrpcent_r.c: Likewise.
2493         * inet/getservent_r.c: Likewise.
2494         * inet/getsrvbynm_r.c: Likewise.
2495         * inet/getsrvbypt_r.c: Likewise.
2496         * shadow/getspent_r.c: Likewise.
2497         * shadow/getspnam_r.c: Likewise.
2498
2499         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
2500
2501         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
2502         Use i686-friendly PIC code.
2503         * sysdeps/i386/elf/setjmp.S: Likewise.
2504
2505         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
2506
2507         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
2508         list.
2509         * elf/Versions: Remove it here.
2510
2511 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
2512
2513         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
2514         direction.  Reported by H . J . Lu <hjl@lucon.org>.
2515
2516 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
2517
2518         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
2519         test just before the test runs.
2520         * intl/tst-translit.sh: Likewise.
2521         * intl/tst-codeset.sh: Likewise.
2522
2523         * timezone/zic.c: Update from tzcode2002c.
2524         * timezone/asia: Update from tzdata2002c.
2525         * timezone/backward: Likewise.
2526         * timezone/europe: Likewise.
2527         * timezone/northamerica: Likewise.
2528         * timezone/northamerica: Likewise.
2529         * timezone/northamerica: Likewise.
2530         * timezone/southamerica: Likewise.
2531         * timezone/zone.tab: Likewise.
2532
2533 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
2534
2535         * sysdeps/generic/brk.c (__curbrk): Declare.
2536         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
2537         * sysdeps/generic/dl-sbrk.c: Likewise.
2538         * sysdeps/unix/arm/dl-brk.S: New file.
2539         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
2540         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
2541         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
2542         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
2543         * sysdeps/unix/i386/dl-brk.S: New file.
2544         * sysdeps/unix/mips/dl-brk.S: New file.
2545         * sysdeps/unix/sparc/dl-brk.S: New file.
2546         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
2547         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
2548         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
2549         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
2550
2551 2002-04-03  Andreas Schwab  <schwab@suse.de>
2552
2553         * Makefile (headers): Add gnu/lib-names.h here instead of
2554         install-others.
2555         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
2556         installation rule.
2557         (install-headers): Add dependency on install-headers-nosubdir.
2558         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
2559         instead of install-others.
2560         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
2561         installation rule.
2562
2563 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
2564
2565         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
2566         Reported by Sam Roberts <sroberts@uniserve.com>.
2567
2568 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2569
2570         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
2571         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
2572         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2573         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2574
2575 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
2576
2577         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
2578         (RTLD_START): Ditto.
2579         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
2580         dependency violation.
2581
2582 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2583
2584         * time/mktime.c (__mktime_internal): Move check for year < 70 below
2585         all variable declarations.
2586
2587 2002-04-04  Andreas Schwab  <schwab@suse.de>
2588
2589         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
2590
2591 2002-04-04  Andreas Jaeger  <aj@suse.de>
2592
2593         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
2594         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
2595
2596         * sysdeps/x86_64/fpu/s_fabs.c: New file.
2597         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
2598         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
2599
2600         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
2601
2602         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
2603
2604         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
2605         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
2606
2607         * configure.in: Handle all mips entries the same.
2608
2609         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
2610         * sysdeps/mips/mips3/*: Likewise.
2611         * sysdeps/mips/p40/bits/endian.h: Likewise.
2612
2613 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
2614
2615         * misc/dirname.c (dirname): Ignore trailing slashes at end of
2616         non-null result [PR libc/2600].
2617
2618         * misc/tst-dirname.c: Add more tests.
2619
2620 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
2621
2622         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
2623         define a code_set_name provide one based on the filename.
2624
2625         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
2626
2627 2001-12-28  Andreas Jaeger  <aj@suse.de>
2628
2629         * time/mktime.c (__mktime_internal): Check for year < 70
2630         [PR libc/2738].
2631
2632 2002-04-03  Andreas Jaeger  <aj@suse.de>
2633
2634         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
2635         shmat.
2636         Reported by Andi Kleen <ak@suse.de>.
2637
2638 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
2639
2640         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
2641         * sysdeps/generic/w_lgammaf.c: Likewise.
2642         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
2643
2644         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
2645         Adjust for new output format of the backtrace functions.
2646
2647         * misc/syslog.c (vsyslog): Only use cleanup handler if
2648         _LIBC_REENTRANT is defined [PR libc/2924].
2649
2650         * libio/Makefile (tests): Add bug-ungetwc2.
2651         * libio/bug-ungetwc2.c: New file.
2652
2653         * manual/install.texi: Typographical and grammatical cleanup.
2654         Patch by Dennis Grace <dgrace@us.ibm.com>.
2655
2656         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
2657         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
2658
2659         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
2660         always "&".  Adjust callers.
2661         Add "_" prefix to several generated definitions.
2662         Patch by paul@serice.net [PR libc/3158].
2663
2664 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2665
2666         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
2667         size of _dl_arm_cap_flags.
2668         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
2669
2670         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2671         Define as 8.
2672
2673 2002-03-22  H.J. Lu  <hjl@gnu.org>
2674
2675         * scripts/firstversions.awk: Check the first version.
2676
2677 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2678
2679         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
2680         dependencies must be stable to work correctly.
2681         Reported by martin.lubich@datacon.at.
2682
2683         * libio/bug-ungetwc1.c: New file.
2684         * libio/Makefile (tests): Add bug-ungetwc1.
2685
2686         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
2687         if stream was last used for writing.
2688
2689         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
2690         number [PR libc/3111].
2691
2692         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
2693         to ...
2694         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
2695
2696 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
2697
2698         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
2699         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2700         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
2701         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
2702         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
2703
2704 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
2705
2706         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
2707         dynamic tags.
2708
2709 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2710
2711         * sysdeps/i386/fpu/s_fabs.S: New file.
2712         * sysdeps/i386/fpu/s_fabsf.S: New file.
2713         * sysdeps/i386/fpu/s_fabsl.S: New file.
2714         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
2715         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
2716         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
2717
2718 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2719
2720         * rt/tst-shm.c (do_test): Add one more test for size of shared
2721         memory object.
2722
2723 2002-03-29  Wolfram Gloger  <wg@malloc.de>
2724
2725         * malloc/malloc.c: Add short description and prototypes for
2726         malloc_get_state, malloc_set_state and posix_memalign, for
2727         consistency and to avoid warnings with -Wstrict-prototypes.
2728         Reported by Andreas Jaeger <aj@suse.de>.
2729
2730 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2731
2732         * po/gl.po: Update from translation team.
2733
2734 2002-03-31  Roland McGrath  <roland@frob.com>
2735
2736         * hurd/hurdselect.c (_hurd_select): Fix
2737         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
2738         Use a union rather than casts to compare mach_msg_type_t as int.
2739
2740 2002-03-25  Roland McGrath  <roland@frob.com>
2741
2742         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
2743         check off the end of NAME when it's shorter than 2 chars.
2744         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
2745
2746 2002-03-17  Roland McGrath  <roland@frob.com>
2747
2748         * sysdeps/mach/hurd/i386/sys/io.h: New file.
2749         * sysdeps/mach/hurd/i386/ioperm.c: New file.
2750         * sysdeps/mach/hurd/i386/Dist: Add them.
2751         * sysdeps/mach/hurd/i386/Versions
2752         (libc: GLIBC_2.2.6): New set, add ioperm.
2753         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2754         (mach_interface_list): Check for mach_i386.defs.
2755         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2756         * sysdeps/mach/configure: Regenerated.
2757
2758 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
2759
2760         * po/fr.po: Update from translation team.
2761
2762 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2763
2764         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2765         getpriority from syscalls list.
2766
2767 2002-03-28  Andreas Jaeger  <aj@suse.de>
2768
2769         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2770         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2771         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2772         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
2773
2774 2002-03-27  Andreas Jaeger  <aj@suse.de>
2775
2776         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2777         sigcontext): Follow further kernel change.
2778
2779         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2780         kernel change.
2781
2782         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2783         Change for struct sigcontext change.
2784
2785         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2786         Follow changes in struct sigcontext.
2787
2788         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2789         sysycall, use wrapper instead.
2790
2791 2002-03-26  Andreas Jaeger  <aj@suse.de>
2792
2793         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2794         read and write accesses as detailed as possible.
2795         (__memcpy_by2): Likewise.
2796         (__memcpy_g): Likewise.
2797         (memmove): Likewise.
2798         (memcmp): Likewise.
2799         (__memset_ccn_by4): Likewise.
2800         (__memset_ccn_by2): Likewise.
2801         (__memset_gcn_by4): Likewise.
2802         (__memset_gcn_by2): Likewise.
2803         (memchr): Likewise.
2804         (__memrchr): Likewise.
2805         (rawmemchr): Likewise.
2806         (__strlen_g): Likewise.
2807         (__strcpy_g): Likewise.
2808         (__mempcpy_by4): Likewise.
2809         (__mempcpy_by2): Likewise.
2810         (__mempcpy_byn): Likewise.
2811         (__stpcpy_g): Likewise.
2812         (__strncpy_by4): Likewise.
2813         (__strncpy_by2): Likewise.
2814         (__strncpy_byn): Likewise.
2815         (__strncpy_gg): Likewise.
2816         (__strcat_c): Likewise.
2817         (__strcat_g): Likewise.
2818         (__strncat_g): Likewise.
2819         (__strcmp_gg): Likewise.
2820         (__strncmp_g): Likewise.
2821         (__strchr_c): Likewise.
2822         (__strchr_g): Likewise.
2823         (__strchrnul_c): Likewise.
2824         (__strchrnul_g): Likewise.
2825         (__strrchr_c): Likewise.
2826         (__strrchr_g): Likewise.
2827         (__strrchr_c): Likewise.
2828         (__strrchr_g): Likewise.
2829         (__strcspn_c1): Likewise.
2830         (__strcspn_cg): Likewise.
2831         (__strcspn_g): Likewise.
2832         (__strcspn_g): Likewise.
2833         (__strspn_c1): Likewise.
2834         (__strspn_cg): Likewise.
2835         (__strspn_g): Likewise.
2836         (__strspn_g): Likewise.
2837         (__strpbrk_cg): Likewise.
2838         (__strpbrk_g): Likewise.
2839         (__strstr_cg): Likewise.
2840         (__strstr_g): Likewise.
2841
2842         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
2843         Michal Ludvig <mludvig@suse.cz>.
2844
2845         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2846         compatibilty, adjust for kernel changes.
2847
2848         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2849         sigcontext): Adjust for kernel changes.
2850
2851 2002-03-25  Andreas Jaeger  <aj@suse.de>
2852
2853         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2854         little endian.
2855         Reported by Artur Zaprzala <zybi@talex.com.pl>.
2856
2857 2002-03-24  Andreas Jaeger  <aj@suse.de>
2858
2859         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2860
2861         * stdio-common/tst-fdopen.c (main): Remove unused variable.
2862
2863         * iconv/tst-iconv3.c (main): Use correct printf strings.
2864
2865 2002-03-18  Roland McGrath  <roland@frob.com>
2866
2867         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2868         (CMGROUP_MAX): New macro.
2869
2870 2002-03-23  Roland McGrath  <roland@frob.com>
2871
2872         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2873         * sysdeps/posix/shm_unlink.c: Likewise.
2874
2875 2002-03-22  Roland McGrath  <roland@frob.com>
2876
2877         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2878         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2879         under --enable-libio.
2880         * sysdeps/mach/hurd/configure: Regenerated.
2881
2882 2002-03-23  Roland McGrath  <roland@frob.com>
2883
2884         * sysdeps/mach/hurd/i386/Makefile
2885         (sysdep_routines, shared-only-routines): Don't add framestate,
2886         reverting 2001-10-02 change.
2887         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2888         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2889         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2890         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2891         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2892         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2893         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2894         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2895         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2896         Do it here instead, only if [$(unwind-find-fde) = yes].
2897
2898 2002-03-23  Andreas Jaeger  <aj@suse.de>
2899
2900         * signal/signal.h: Fix typo. Patch by Steve Kemp
2901         <skx@tardis.ed.ac.uk>.
2902
2903 2002-03-22  Andreas Jaeger  <aj@suse.de>
2904
2905         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2906         getresuid.
2907
2908         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2909         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2910         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2911         user_fpregs_struct): Rename fwd.
2912
2913         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2914         Follow sigcontext changes.
2915
2916 2002-03-22  Andreas Jaeger  <aj@suse.de>
2917
2918         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
2919         changes for NaNs on MIPS.
2920         Patch by Hartvig Ekner <hartvige@mips.com>.
2921
2922 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
2923
2924         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2925         Use realloc if too large.
2926         (addgrbyid): Likewise.
2927         * nscd/hstcache.c (addhstbyname): Likewise.
2928         (addhstbyaddr): Likewise.
2929         (addhstbynamev6): Likewise.
2930         (addhstbyaddrv6): Likewise.
2931         * nscd/pwdcache.c (addpwbyname): Likewise.
2932         (addpwbyuid): Likewise.
2933
2934 2002-03-21  Andreas Jaeger  <aj@suse.de>
2935
2936         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2937         _fpstate): Add separate struct for x86-64.
2938
2939         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2940         user_fpregs_struct): Change member names to follow kernel.
2941
2942 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
2943
2944         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2945         Correctly close the UDP connection right away [PR libc/3120].
2946
2947 2002-03-20  Andreas Jaeger  <aj@suse.de>
2948
2949         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2950         user_fpregs_struct): Fix for changed kernel struct.
2951         (struct user_regs_struct): Likewise.
2952         (struct user): Likewise.
2953         Add 32-bit x86 compatibility.
2954
2955         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
2956
2957 2002-03-19  Andreas Jaeger  <aj@suse.de>
2958
2959         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
2960
2961 2002-03-18  Andreas Jaeger  <aj@suse.de>
2962
2963         * iconvdata/Makefile: Only run tests when shared libs are
2964         available.
2965
2966 2002-03-17  Andreas Jaeger  <aj@suse.de>
2967
2968         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
2969
2970         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
2971
2972         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
2973         bits.
2974
2975         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
2976         (CAUSE_SHIFT): New.
2977         Patch by Hartvig Ekner <hartvige@mips.com>.
2978
2979         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
2980         * sysdeps/generic/unwind-pe.h: Likewise.
2981
2982         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
2983         type to _IO_setb.
2984
2985         * libio/stdio.c (AL2): Define variant when visibility attribute is
2986         not supported.
2987
2988         * include/libc-symbols.h (_INTVARDEF): Define variant when
2989         visibility attribute is not supported.
2990
2991 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
2992
2993         * po/fr.po: Update from translation team.
2994
2995 2002-02-25  Bruno Haible  <bruno@clisp.org>
2996
2997         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
2998
2999 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3000
3001         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
3002         buffers if _IO_file_attach failed.
3003
3004         * libio/fileops.c (_IO_file_open): Close file descriptor if
3005         _IO_SEEKOFF call failed.
3006
3007 2002-03-15  H.J. Lu  <hjl@gnu.org>
3008             Ulrich Drepper  <drepper@redhat.com>
3009
3010         * configure.in: Check for availability of
3011         init_array/fini_array/preinit_array handling in binutils.
3012         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
3013         * config.make.in (have-initfini-array): New variable.
3014
3015 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3016
3017         * stdio-common/tst-printf.c (main): Comment out one test which
3018         checked the compiler's ability to fold floating-point constants
3019         but not really printf.
3020         (rfg3): Make s const.
3021         * stdio-common/tst-printf.sh: Adjust for removed test.
3022
3023         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
3024         internal function.  Adjust for internal_function calling convention.
3025         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
3026         as internal_function.
3027
3028         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
3029         hidden.
3030
3031         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
3032         declaration and definition.
3033         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
3034         declaration.
3035         * nss/getXXent_r.c: Likewise.
3036         * nss/nsswitch.h (db_lookup_function): Add internal_function to
3037         definition.
3038
3039         * include/time.h: Declare __localtime_r as hidden.
3040
3041         * include/aliases.h: Declare __getaliasent_r as hidden.
3042         * include/grp.h: Declare __getgrent_r as hidden.
3043         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
3044         __getservent_r, and __getprotoent_r as hidden.
3045         * include/pwd.h: Declare __getpwent_r as hidden.
3046         * include/shadow.h: Declare __getspent_r as hidden.
3047         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
3048
3049         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
3050         and __gconv_transliterate as hidden.
3051         Add internal_function to __gconv_get_path declaration.
3052         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
3053         definition.  Add attribute_hidden to __gconv_read_conf definition.
3054
3055 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
3056
3057         * elf/rtld.c: Declare _environ as hidden.
3058         * sysdeps/generic/dl-environ.c: Likewise.
3059         * sysdeps/generic/dl-sysdep.c: Likewise.
3060
3061         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
3062         _dl_mcount_internal as hidden.
3063
3064         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
3065         * sysdeps/generic/dl-brk.c: New file.
3066         * sysdeps/generic/dl-sbrk.c: New file.
3067         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
3068         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
3069
3070         * elf/dl-minimal.c (malloc): Declare _end as hidden.
3071         (__errno_location): New function.  Declare errno as hidden.
3072         * elf/rtld.c (_dl_argc): Define as hidden.
3073         (_dl_skip_args): Define as hidden.
3074         (_begin, _end): Declare as hidden.
3075         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
3076         * sysdeps/generic/entry.h (_start): Declare as hidden.
3077         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
3078         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
3079         _dl_runtime_resolve and _dl_runtime_profile as hidden.
3080         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
3081
3082 2002-03-14  Roland McGrath  <roland@frob.com>
3083
3084         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
3085
3086         * Makeconfig (%.v.i, %.v): New implicit rules.
3087         (preprocess-versions): Variable removed.
3088         ($(common-objpfx)shlib-versions.v.i): New target giving just the
3089         shlib-versions input files as dependencies.
3090         ($(common-objpfx)soversions.i): Depend on that instead of the input
3091         files.  Use it as input instead of using a pipeline.
3092         (postclean-generated): Append soversions.i, shlib-versions.v, and
3093         shlib-versions.v.i here.
3094         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
3095         the Versions.def input files as dependencies.
3096         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
3097         ($(common-objpfx)Versions.all): Depend on that instead of the input
3098         files.  Use it as input instead of using a pipeline.
3099         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
3100         (postclean-generated): Append those .v and .v.i files here.
3101
3102 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3103
3104         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
3105         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
3106         Remove.
3107
3108 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3109
3110         * sysdeps/generic/mp_clz_tab.c: New file.
3111         * sysdeps/i386/mp_clz_tab.c: New file.
3112         * sysdeps/hppa/mp_clz_tab.c: New file.
3113         * sysdeps/powerpc/mp_clz_tab.c: New file.
3114         * stdlib/Makefile (aux): Revert last patch.
3115         * math/Makefile (gmp-objs): Likewise.
3116
3117 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3118
3119         * time/strftime.c: Comment fixes for references to obsolescent
3120         standards, In most cases the simplest fix is to remove the
3121         confusing comments.  Cross-referencing all the standards properly
3122         is a bit of a pain, and it should be enough to put that info in
3123         the documentation as I did in my recent time.texi patch.
3124
3125 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3126
3127         * manual/time.texi (Formatting Calendar Time):
3128         ISO C99 also specifies the E and O modifiers.
3129         %P is a GNU extension, and is not in ISO C99.
3130         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
3131         %T is also in ISO C99.
3132         The RFC 822 example is not valid in arbitrary locales.
3133         Reword the POSIX.2 wording slightly, to make it a bit clearer
3134         that POSIX.2 formats are also supported by later POSIX versions.
3135         If a format was introduced in ISO C99 it is also required by
3136         POSIX.1-2001.
3137
3138 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
3139
3140         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
3141         _sys_nerr_internal with INTVARDEF2.
3142         * include/libc-symbols.h (INTVARDEF2): New macro.
3143         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
3144         (_sys_nerr_internal): Library.
3145
3146         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
3147         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
3148
3149         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
3150
3151 2002-03-13  Wolfram Gloger  <wg@malloc.de>
3152
3153         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
3154
3155 2002-03-02  Andreas Schwab  <schwab@suse.de>
3156
3157         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
3158         'h' flag and positional arg.
3159         * stdio-common/tst-printf.c (rfg3): New function to test
3160         positional arguments.
3161         (main): Fix some warnings.
3162
3163 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3164
3165         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
3166         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
3167
3168 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
3169
3170         * grp/initgroups.c (__nss_group_data): Declare as hidden.
3171
3172         * include/locale.h (_nl_C_locobj): Declare as hidden.
3173
3174         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
3175         * time/strptime.c (_nl_C_LC_TIME): Likewise.
3176
3177         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
3178
3179         * include/sys/gmon.h: Declare _gmonparam as hidden.
3180
3181         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
3182         (__ctype32_wctrans): Likewise.
3183         (__ctype32_width): Likewise.
3184
3185         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
3186         use of __ttyname.
3187
3188         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
3189         Define as hidden.
3190         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
3191         hidden.  Change all users of these variables.
3192
3193         * posix/regex_internal.h (__re_error_msgid): Renamed from
3194         re_error_msgid.  Declare as hidden.
3195         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
3196         hidden.
3197
3198         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
3199         (__printf_function_table): Likewise.
3200         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
3201         hidden.
3202         (__printf_function_table): Likewise.
3203
3204         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
3205         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
3206
3207         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
3208         * nss/nsswitch.c: Declare _nss_*_database as hidden.
3209
3210         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
3211         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
3212
3213 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
3214
3215         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
3216         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3217         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3218         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3219         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3220         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3221         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3222         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3223         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
3224         _nl_C_LC_CTYPE_width: Declare as hidden.
3225         * include/locale.h: Declare _nl_locale_file_list.
3226         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
3227         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
3228         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
3229         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
3230         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
3231         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
3232         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
3233         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
3234         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
3235         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
3236         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
3237         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
3238         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3239         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3240         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3241         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3242         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3243         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3244         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3245         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
3246         _nl_C_LC_CTYPE_width, and as hidden.
3247         * locale/findlocale.c: Declare _nl_C as hidden.
3248         * locale/newlocale.c: Likewise.
3249         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
3250         _nl_locale_file_list.
3251         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
3252         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
3253         Define _nl_C_locobj as hidden.
3254
3255         * malloc/mtrace.c (_mtrace_file): Define as hidden.
3256         (_mtrace_line): Likewise.
3257
3258         * include/time.h: Declare __mon_yday as hidden.
3259         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
3260
3261         * libio/libioP.h: Declare __libio_codecvt as hidden.
3262         * libio/fileops.c: Declare __libio_translit as hidden.
3263         * libio/iofwide.c: Define __libio_translit as hidden.
3264
3265         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
3266         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
3267         * login/getutline_r.c: Likewise.
3268         * login/utmpname.c: Likewise.
3269
3270         * login/utmp-private.h: Declare __libc_utmp_file_functions,
3271         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
3272         __libc_utmp_file_name as hidden.
3273
3274         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
3275         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
3276         * locale/freelocale.c: Likewise.
3277         * locale/lc-time.c: Likewise.
3278
3279         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
3280         (__libc_ptyname2): Likewise.
3281         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
3282         hidden.
3283         (__libc_ptyname2): Likewise.
3284
3285         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
3286         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
3287         * sysdeps/generic/init-first.c: Likewise.
3288         * sysdeps/i386/init-first.c: Likewise.
3289         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3290         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3291         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3292         * sysdeps/sh/init-first.c: Likewise.
3293         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3294         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3295
3296         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
3297         (_itowa_upper_digits): Likewise.
3298
3299         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
3300         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
3301         as hidden.
3302
3303         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
3304         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
3305         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
3306         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
3307
3308         * gmon/gmon.c (__bb_head): Define as hidden.
3309         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
3310
3311         * argp/argp-parse.c (_argp_hang): Define as static.
3312
3313         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
3314         handling in latest compilers.
3315
3316         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
3317         define alias.
3318         * libio/fileops.c (_IO_file_jumps): Likewise.
3319         * libio/stdfiles.c (_IO_list_all): Likewise.
3320         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
3321
3322         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
3323         include/malloc.h.
3324         * include/malloc.h: Add __libc_malloc_initialized declaration
3325         here.  Mark variable hidden.
3326         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
3327
3328         * elf/dl-open.c (__libc_argc): Declare as hidden.
3329         (__libc_argv): Likewise.
3330         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
3331         (__libc_argv): Likewise.
3332         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
3333         __libc_argv as hidden.
3334         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3335         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3336         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3337         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3338
3339         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
3340         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
3341         * stdlib/erand48.c: Likewise.
3342         * stdlib/jrand48.c: Likewise.
3343         * stdlib/lcong48.c: Likewise.
3344         * stdlib/lrand48.c: Likewise.
3345         * stdlib/mrand48.c: Likewise.
3346         * stdlib/nrand48.c: Likewise.
3347         * stdlib/seed48.c: Likewise.
3348         * stdlib/srand48.c: Likewise.
3349
3350         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
3351         (_itoa_lower_digits_internal): New declaration.
3352         (_itoa_upper_digits_internal): New declaration.
3353         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
3354         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
3355         (_itoa_upper_digits_internal): New declaration.
3356         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
3357         _itoa_lower_digits.
3358         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
3359         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
3360
3361         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
3362         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
3363
3364         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
3365         (_itowa_lower_digits): Likewise.
3366         (_itowa_upper_digits): Likewise.
3367         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
3368         (_itowa_upper_digits): Likewise.
3369
3370         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
3371         not already defined.
3372         (GERMANIC_PLURAL): Declare as hidden.
3373
3374         * posix/getopt.c (__getopt_initialized): Declare as hidden.
3375         (attribute_hidden): Define as empty macro if not already defined.
3376
3377         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
3378         (__gconv_max_path_elem_len): Likewise.
3379         (__gconv_path_envvar): Likewise.
3380
3381         * math/Makefile (gmp-objs): Remove mp_clz_tab.
3382         * stdlib/Makefile (aux): Remove mp_clz_tab.
3383         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
3384
3385         * stdlib/exit.h (__exit_funcs): Declare as hidden.
3386
3387         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
3388
3389         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
3390         _nl_category_names, _nl_category_name_sizes, _nl_current,
3391         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
3392
3393         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
3394         (_nl_current_default_domain): Likewise
3395         (_nl_state_lock): Likewise.
3396         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
3397         (_nl_current_default_domain): Likewise
3398         (_nl_state_lock): Likewise.
3399         * intl/bindtextdom.c (_nl_state_lock): Likewise.
3400
3401         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
3402         (_fpioconst_pow10): Likewise.
3403
3404         * include/time.h (_tmbuf): Add attribute_hidden.
3405
3406         * time/tzset.c (tzstring_list): Define as static.
3407
3408         * include/time.h: Add attribute_hidden to __tzname_cur_max and
3409         __use_tzfile declaration.
3410
3411         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
3412         and __wcsmbs_last_locale declaration.
3413
3414 2002-02-25  Paul Eggert  <eggert@twinsun.com>
3415
3416         * timezone/Makefile (tzbases): Move systemv from here...
3417         (tzlinks): to here, since the entries in systemv were all changed
3418         from Zone to Link lines in tz-2001a.  Bug reported (and patch
3419         tested) by Peter Breitenlohner.
3420
3421 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
3422
3423         * time/tst-posixtz.c (tests): Add new tests.
3424         (main): Test whether tzset() sets daylight properly.
3425
3426 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3427
3428         * time/tzset.c (tz_compute): Move __daylight, __tzname and
3429         __tzname_cur_max setting...
3430         (tzset_internal): ...here.
3431
3432 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3433
3434         * time/tzset.c (compute_change): Don't return any value.
3435         (tz_compute): Likewise.  Don't handle southern hemisphere here.
3436         (__tz_convert): But here.
3437
3438 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3439
3440         * manual/examples/mkfsock.c: Include <string.h> as well.
3441         Patch by Alain De Carolis <alaind@wseurope.com>.
3442
3443 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
3444
3445         * posix/regexec.c (re_match): Fix incorrect register sizes.
3446         (re_search): Likewise.
3447
3448 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3449
3450         * posix/regcomp.c (regfree): Remove a disused condition.
3451         * posix/regex_internal.c (re_acquire_state): Likewise.
3452         (re_acquire_state_context): Likewise.
3453         (register_state): Remove a redundant malloc invocation.
3454         * posix/regex_internal.h: (re_state_table_entry): Simplify
3455         the structure.
3456
3457 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3458
3459         * posix/regcomp.c (regcomp): Add __builtin_expect to error
3460         handling conditions.
3461         (regerror): Likewise.
3462         (regfree): Likewise.
3463         (re_compile_internal): Likewise.
3464         (init_dfa): Likewise.
3465         (init_word_char): Likewise.
3466         (create_initial_state): Likewise.
3467         (analyze): Likewise.
3468         (analyze_tree): Likewise.
3469         (duplicate_node): Likewise.
3470         (calc_eclosure): Likewise.
3471         (calc_eclosure_iter): Likewise.
3472         (parse): Likewise.
3473         (parse_reg_exp): Likewise.
3474         (parse_branch): Likewise.
3475         (parse_expression): Likewise.
3476         (parse_subexp): Likewise.
3477         (parse_dup_op): Likewise.
3478         (parse_bracket_exp): Likewise.
3479         (build_equiv_class): Likewise.
3480         (build_charclass): Likewise.
3481         (build_word_op): Likewise.
3482         (fetch_number): Likewise.
3483         (create_tree): Likewise.
3484         (duplicate_tree): Likewise.
3485         * posix/regex.c (BE): New macro.
3486         * posix/regexec.c (re_match): Add __builtin_expect to error
3487         handling conditions.
3488         (re_match_2): Likewise.
3489         (re_search): Likewise.
3490         (re_search_internal): Likewise.
3491         (check_matching): Likewise.
3492         (proceed_next_node): Likewise.
3493         (set_regs): Likewise.
3494         (sift_states_backward): Likewise.
3495         (add_epsilon_backreference): Likewise.
3496         (transit_state): Likewise.
3497         (transit_state_sb): Likewise.
3498         (transit_state_mb): Likewise.
3499         (transit_state_bkref): Likewise.
3500         (transit_state_bkref_loop): Likewise.
3501         (build_trtable): Likewise.
3502         (group_nodes_into_DFAstates): Likewise.
3503         (match_ctx_init): Likewise.
3504         (match_ctx_add_entry): Likewise.
3505         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
3506         to error handling conditions.
3507         (re_string_construct_toupper): Likewise.
3508         (build_wcs_buffer): Likewise.
3509         (build_wcs_upper_buffer): Likewise.
3510         (build_upper_buffer): Likewise.
3511         (re_string_translate_buffer): Likewise.
3512         (re_node_set_alloc): Likewise.
3513         (re_node_set_init_1): Likewise.
3514         (re_node_set_init_2): Likewise.
3515         (re_node_set_init_copy): Likewise.
3516         (re_node_set_intersect): Likewise.
3517         (re_node_set_init_union): Likewise.
3518         (re_node_set_merge): Likewise.
3519         (re_node_set_insert): Likewise.
3520         (re_dfa_add_node): Likewise.
3521         (re_acquire_state): Likewise.
3522         (re_acquire_state_context): Likewise.
3523         (create_new_state_common): Likewise.
3524         (register_state): Likewise.
3525         (create_ci_new_state): Likewise.
3526         (create_cd_new_state): Likewise.
3527         (re_string_context_at): Remove redundant condition.
3528
3529 2002-01-16  Roger Sayle  <roger@eyesopen.com>
3530
3531         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
3532
3533         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
3534
3535 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
3536
3537         * sysdeps/i386/elf/configure.in: Fix comment.
3538
3539         * sysdeps/sparc/sparc64/configure.in: New.
3540         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
3541         if .dynamic comes before .got.
3542         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
3543
3544         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
3545         HP_TIMING_ACCUM): Fix typos.
3546
3547 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3548
3549         * string/strfry.c: Add some more randomness to the seed.
3550         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
3551
3552         * po/es.po: Update from translation team.
3553         * po/fr.po: Likewise.
3554
3555         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
3556
3557         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
3558         when determining type of format.
3559         Patch by James Antill <james@anqd.org> [PR libc/2787].
3560
3561 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
3562
3563         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
3564
3565 2002-03-11  Roland McGrath  <roland@frob.com>
3566
3567         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
3568
3569         * Versions.def (libc): Add GLIBC_2.2.6.
3570         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
3571         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
3572         __errno_location instead of __hurd_errno_location, and don't inline it.
3573         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
3574         * hurd/errno.c: New file.
3575         * hurd/Makefile (routines): Add errno.
3576
3577 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3578
3579         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
3580         ridiculously large widths and precisions [PR libc/3026].
3581
3582 2002-03-11  Andreas Jaeger  <aj@suse.de>
3583
3584         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
3585         support.
3586         Patch by Susanne Oberhauser <froh@SuSE.de>.
3587
3588 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3589
3590         * inet/rexec.c (ahostbuf): Define as static.
3591
3592         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
3593         (__ctype32_wctrans): Likewise.
3594         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
3595         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
3596         (__ctype32_wctrans): Likewise.
3597         (__ctype32_width): Likewise.
3598
3599         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
3600         They were never exported anyway.
3601
3602         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
3603         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
3604         exported.
3605         * include/sys/gmon.h: Declare _gmonparam.
3606
3607         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
3608         symbols for getdents64.  They were never exported.
3609
3610 2002-03-09  Roland McGrath  <roland@frob.com>
3611
3612         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
3613         Reported by Jon Arney <jarney1@cox.net>.
3614
3615 2002-02-23  Roland McGrath  <roland@frob.com>
3616
3617         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
3618         declaration.
3619         (__hurd_errno_location): Function removed.
3620
3621 2002-03-06  Andreas Jaeger  <aj@suse.de>
3622
3623         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
3624         32-bit.
3625
3626 2002-03-04  Andreas Jaeger  <aj@suse.de>
3627
3628         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
3629
3630         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
3631         x86-64.
3632
3633         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
3634
3635         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
3636
3637         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
3638
3639         * sysdeps/x86_64/bits/setjmp.h: New.
3640
3641         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
3642
3643         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
3644
3645         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
3646         for x86.
3647         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
3648         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
3649
3650 2002-02-28  Bo Thorsen  <bo@suse.de>
3651
3652         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
3653         version.
3654
3655 2002-03-03  Andreas Jaeger  <aj@suse.de>
3656
3657         * sysdeps/x86_64/bits/wordsize.h: New file.
3658
3659         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
3660         * elf/tst-tlsmod1.c: Likewise.
3661
3662         * posix/regcomp.c: Get regex.h from include dir for internal
3663         prototypes.
3664
3665         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
3666         to libc-internal.h and include it.
3667         * include/libc-internal.h: Add __init_misc.
3668
3669         * misc/init-misc.c: Include libc-internal.h for prototypes.
3670
3671         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
3672
3673         * misc/error.c [_LIBC]: Include libioP.h for prototype of
3674         _IO_putc_internal.
3675
3676 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
3677
3678         * posix/regcomp.c: Compatibility changes to allow using the code
3679         outside glibc.
3680
3681 2002-02-28  Hartvig Ekner <hartvige@mips.com>
3682
3683         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
3684         compiled non-PIC.
3685
3686 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
3689         of .str elements in the returned data structure.
3690
3691         * elf/elf.h: Add Alpha TLS bits.
3692
3693 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3694
3695         * sysdeps/unix/sysv/linux/nice.c: New file.
3696
3697 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
3698
3699         * elf/Makefile (dl-routines): Add dl-origin.
3700         (elide-routines.os): Add dl-origin.
3701         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
3702         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
3703         _dl_debug_state.
3704         * include/libc-symbols.c: Define attribute_hidden depending on
3705         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
3706
3707         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
3708         * elf/dl-load.c: Likewise.
3709         * elf/rtld.c: Likewise.
3710         * include/unistd.h: Declare __libc_enable_secure_internal.
3711         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
3712         Use INTUSE with __libc_enable_secure.
3713         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3714
3715         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
3716         * elf/dl-error.c: Likewise,
3717         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
3718
3719         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
3720         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
3721         function definition.  Use INTDEF with _dl_get_origin.
3722         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3723
3724         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
3725         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
3726
3727         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
3728         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
3729         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
3730
3731         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
3732         * elf/dl-deps.c: Likewise.
3733         * elf/dl-error.c: Likewise.
3734         * elf/dl-fini.c: Likewise.
3735         * elf/dl-init.c: Likewise.
3736         * elf/dl-load.c: Likewise.
3737         * elf/dl-lookup.c: Likewise.
3738         * elf/dl-reloc.c: Likewise.
3739         * elf/dl-version.c: Likewise.
3740         * elf/do-lookup.h: Likewise.
3741         * sysdeps/arm/dl-machine.h: Likewise.
3742         * sysdeps/cris/dl-machine.h: Likewise.
3743         * sysdeps/hppa/dl-machine.h: Likewise.
3744         * sysdeps/i386/dl-machine.h: Likewise.
3745         * sysdeps/m68k/dl-machine.h: Likewise.
3746         * sysdeps/powerpc/dl-machine.h: Likewise.
3747         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3748         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3749         * sysdeps/sh/dl-machine.h: Likewise.
3750         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
3751         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3752         * sysdeps/x86_64/dl-machine.h: Likewise.
3753         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
3754         _dl_argv[0].  Use INTUSE with _dl_argv.
3755         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3756         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3757
3758 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3759
3760         * elf/rtld.c (_rtld_global): Remove .protected.
3761         (_rtld_local): Strong alias to _rtld_global.
3762         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3763         only .os object.
3764         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3765         _rtld_local instead of _rtld_global.
3766         (_rtld_local): Add hidden extern, possibly in .sdata section.
3767         * configure.in: Add tests for visibility attribute and .sdata.
3768         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3769         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3770         * sysdeps/arm/dl-machine.h: Likewise.
3771         * sysdeps/generic/ldsodefs.h: Likewise.
3772         * sysdeps/hppa/dl-machine.h: Likewise.
3773         * sysdeps/cris/dl-machine.h: Likewise.
3774         * sysdeps/i386/dl-machine.h: Likewise.
3775         * sysdeps/ia64/dl-machine.h: Likewise.
3776         * sysdeps/m68k/dl-machine.h: Likewise.
3777         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3778         * sysdeps/mips/dl-machine.h: Likewise.
3779         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3780         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3781         * sysdeps/sh/dl-machine.h: Likewise.
3782         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3783         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3784         * sysdeps/x86_64/dl-machine.h: Likewise.
3785
3786 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3787
3788         * login/login.c (login): Always initialize ut_line field
3789         [PR libc/2991].
3790
3791 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3792
3793         * sysdeps/i386/Makefile (sysdep_routines): Add
3794         divdi3 in csu dir.
3795         (shared-only-routines): Likewise.
3796         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3797         (shared-only-routines): Likewise.
3798         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3799         (shared-only-routines): Likewise.
3800         * sysdeps/wordsize-32/divdi3.c: New file.
3801
3802 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3803
3804         * locale/iso-4217.def: Remove obsolete currencies for countries
3805         with Euro.
3806
3807 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
3808
3809         * posix/regcomp.c (regcomp): Remove a redundant condition.
3810         (init_word_char): Add a check on malloc failure.
3811         (create_initial_state): Likewise.
3812         (duplicate_node): Likewise.
3813         (calc_eclosure): Likewise.
3814         (calc_eclosure_iter): Likewise.
3815         (parse_expression): Likewise.
3816         (parse_bracket_exp): Remove unnecessary malloc invocations.
3817         (build_equiv_class): Likewise.
3818         (build_charclass): Likewise.
3819         * posix/regex_internal.c (re_node_set_intersect): Add a check
3820         on malloc failure.
3821         (re_node_set_add_intersect): Likewise.
3822         (re_node_set_merge): Likewise.
3823         (re_acquire_state): Likewise.
3824         (re_acquire_state_context): Likewise.
3825         (create_newstate_common): Likewise.
3826         (register_state): Likewise.
3827         (create_ci_newstate): Likewise.
3828         (create_cd_newstate): Likewise.
3829         * posix/regex_internal.h: Fix prototypes of re_acquire_state
3830         and re_acquire_state_context.
3831         * posix/regexec.c (regexec): Suit it to the error handling of
3832         re_search_internal.
3833         (re_match): Likewise.
3834         (re_search): Likewise.
3835         (re_search_internal): Add a check on malloc failure.
3836         (acquire_init_state_context): Likewise.
3837         (check_matching): Likewise.
3838         (proceed_next_node): Likewise.
3839         (set_regs): Likewise.
3840         (sift_states_backward): Likewise.
3841         (sift_states_iter_bkref): Likewise.
3842         (add_epsilon_backreference): Likewise.
3843         (transit_state): Likewise.
3844         (transit_state_sb): Likewise.
3845         (transit_state_mb): Likewise.
3846         (transit_state_bkref_loop): Likewise.
3847         (build_trtable): Likewise.
3848         (group_nodes_into_DFAstates): Likewise.
3849         (match_ctx_init): Likewise.
3850         (match_ctx_add_entry): Likewise.
3851
3852 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3853
3854         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3855         l_libname if profiling is enabled [PR libc/2916].
3856
3857         * sysdeps/ia64/dl-tls.h: New file.
3858
3859 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
3860
3861         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3862         Work around an Alpha gas bug.
3863
3864 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3865
3866         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3867         uses read to load the catalog.
3868         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3869
3870 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
3871
3872         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3873         regex_internal.c, and regex_internal.h.
3874         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3875         * posix/regex.c: Complete rewrite.
3876         * posix/regexec.c: New file.
3877         * posix/regcomp.c: New file.
3878         * posix/regex_internal.c: New file.
3879         * posix/regex_internal.h: New file.
3880         * posix/regex.h (RE_ICASE): New macro.
3881         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3882
3883         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3884         ungetwc.  It's a macro.
3885         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3886         implementation.
3887         Reported by Jason Merrill <jason@redhat.com>.
3888
3889 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
3890
3891         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3892         position to fp->_offset if it is set.
3893         * stdio-common/Makefile (tests): Add tst-fdopen.
3894         * stdio-common/tst-fdopen.c: New test.
3895
3896 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
3897
3898         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3899         * stdio-common/tst-ungetc.c (main): Add another test.
3900
3901 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
3902
3903         * assert/assert-perr.c: Use INTUSE to reference functions and variables
3904         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
3905         aliases.  Add prototypes for the new aliases.
3906         * assert/assert.c: Likewise.
3907         * include/libc-symbols.h: Likewise.
3908         * include/stdio.h: Likewise.
3909         * include/netinet/in.h: Likewise.
3910         * include/rpc/auth.h: Likewise.
3911         * include/rpc/auth_unix.h: Likewise.
3912         * include/rpc/key_prot.h: Likewise.
3913         * include/rpc/pmap_prot.h: Likewise.
3914         * include/rpc/pmap_rmt.h: Likewise.
3915         * include/rpc/rpc_msg.h: Likewise.
3916         * include/rpc/xdr.h: Likewise.
3917         * inet/gethstbyad_r.c: Likewise.
3918         * inet/gethstbynm2_r.c: Likewise.
3919         * inet/gethstbynm_r.c: Likewise.
3920         * inet/gethstent_r.c: Likewise.
3921         * inet/in6_addr.c: Likewise.
3922         * libio/__fpurge.c: Likewise.
3923         * libio/filedoalloc.c: Likewise.
3924         * libio/fileops.c: Likewise.
3925         * libio/ftello.c: Likewise.
3926         * libio/ftello64.c: Likewise.
3927         * libio/genops.c: Likewise.
3928         * libio/iofclose.c: Likewise.
3929         * libio/iofdopen.c: Likewise.
3930         * libio/iofflush.c: Likewise.
3931         * libio/iofflush_u.c: Likewise.
3932         * libio/iofgetpos.c: Likewise.
3933         * libio/iofgetpos64.c: Likewise.
3934         * libio/iofgets.c: Likewise.
3935         * libio/iofgets_u.c: Likewise.
3936         * libio/iofopen.c: Likewise.
3937         * libio/iofopncook.c: Likewise.
3938         * libio/iofputs.c: Likewise.
3939         * libio/iofread.c: Likewise.
3940         * libio/iofread_u.c: Likewise.
3941         * libio/iofsetpos.c: Likewise.
3942         * libio/iofsetpos64.c: Likewise.
3943         * libio/ioftell.c: Likewise.
3944         * libio/iofwrite.c: Likewise.
3945         * libio/iogetline.c: Likewise.
3946         * libio/iogets.c: Likewise.
3947         * libio/iogetwline.c: Likewise.
3948         * libio/iolibio.h: Likewise.
3949         * libio/iopadn.c: Likewise.
3950         * libio/iopopen.c: Likewise.
3951         * libio/ioseekoff.c: Likewise.
3952         * libio/ioseekpos.c: Likewise.
3953         * libio/iosetbuffer.c: Likewise.
3954         * libio/iosetvbuf.c: Likewise.
3955         * libio/ioungetc.c: Likewise.
3956         * libio/ioungetwc.c: Likewise.
3957         * libio/iovdprintf.c: Likewise.
3958         * libio/iovsprintf.c: Likewise.
3959         * libio/iovsscanf.c: Likewise.
3960         * libio/libioP.h: Likewise.
3961         * libio/memstream.c: Likewise.
3962         * libio/obprintf.c: Likewise.
3963         * libio/oldfileops.c: Likewise.
3964         * libio/oldiofclose.c: Likewise.
3965         * libio/oldiofdopen.c: Likewise.
3966         * libio/oldiofgetpos.c: Likewise.
3967         * libio/oldiofgetpos64.c: Likewise.
3968         * libio/oldiofopen.c: Likewise.
3969         * libio/oldiofsetpos.c: Likewise.
3970         * libio/oldiofsetpos64.c: Likewise.
3971         * libio/oldiopopen.c: Likewise.
3972         * libio/oldstdfiles.c: Likewise.
3973         * libio/putc.c: Likewise.
3974         * libio/setbuf.c: Likewise.
3975         * libio/setlinebuf.c: Likewise.
3976         * libio/stdfiles.c: Likewise.
3977         * libio/stdio.c: Likewise.
3978         * libio/strops.c: Likewise.
3979         * libio/vasprintf.c: Likewise.
3980         * libio/vscanf.c: Likewise.
3981         * libio/vsnprintf.c: Likewise.
3982         * libio/vswprintf.c: Likewise.
3983         * libio/wfiledoalloc.c: Likewise.
3984         * libio/wfileops.c: Likewise.
3985         * libio/wgenops.c: Likewise.
3986         * libio/wstrops.c: Likewise.
3987         * malloc/mtrace.c: Likewise.
3988         * misc/error.c: Likewise.
3989         * misc/syslog.c: Likewise.
3990         * nss/getXXbyYY_r.c: Likewise.
3991         * nss/getXXent_r.c: Likewise.
3992         * nss/hosts-lookup.c: Likewise.
3993         * stdio-common/getw.c
3994         * stdio-common/printf-prs.c: Likewise.
3995         * stdio-common/printf_fp.c: Likewise.
3996         * stdio-common/printf_size.c: Likewise.
3997         * stdio-common/putw.c: Likewise.
3998         * stdio-common/scanf.c: Likewise.
3999         * stdio-common/sprintf.c: Likewise.
4000         * stdio-common/tmpfile64.c: Likewise.
4001         * stdio-common/vfprintf.c: Likewise.
4002         * stdio-common/vfscanf.c: Likewise.
4003         * stdlib/strfmon.c: Likewise.
4004         * sunrpc/auth_des.c: Likewise.
4005         * sunrpc/auth_none.c: Likewise.
4006         * sunrpc/auth_unix.c: Likewise.
4007         * sunrpc/authdes_prot.c: Likewise.
4008         * sunrpc/authuxprot.c: Likewise.
4009         * sunrpc/clnt_perr.c: Likewise.
4010         * sunrpc/clnt_raw.c: Likewise.
4011         * sunrpc/clnt_tcp.c: Likewise.
4012         * sunrpc/clnt_udp.c: Likewise.
4013         * sunrpc/clnt_unix.c: Likewise.
4014         * sunrpc/key_call.c: Likewise.
4015         * sunrpc/key_prot.c: Likewise.
4016         * sunrpc/openchild.c: Likewise.
4017         * sunrpc/pm_getmaps.c: Likewise.
4018         * sunrpc/pm_getport.c: Likewise.
4019         * sunrpc/pmap_clnt.c: Likewise.
4020         * sunrpc/pmap_prot.c: Likewise.
4021         * sunrpc/pmap_prot2.c: Likewise.
4022         * sunrpc/pmap_rmt.c: Likewise.
4023         * sunrpc/rpc_cmsg.c: Likewise.
4024         * sunrpc/rpc_prot.c: Likewise.
4025         * sunrpc/svc_authux.c: Likewise.
4026         * sunrpc/svc_raw.c: Likewise.
4027         * sunrpc/svc_simple.c: Likewise.
4028         * sunrpc/svc_tcp.c: Likewise.
4029         * sunrpc/svc_udp.c: Likewise.
4030         * sunrpc/svc_unix.c: Likewise.
4031         * sunrpc/xdr.c: Likewise.
4032         * sunrpc/xdr_array.c: Likewise.
4033         * sunrpc/xdr_mem.c: Likewise.
4034         * sunrpc/xdr_rec.c: Likewise.
4035         * sunrpc/xdr_ref.c: Likewise.
4036         * sunrpc/xdr_stdio.c: Likewise.
4037         * sysdeps/generic/_strerror.c: Likewise.
4038         * sysdeps/generic/printf_fphex.c: Likewise.
4039         * sysdeps/generic/tmpfile.c: Likewise.
4040         * sysdeps/gnu/errlist.awk: Likewise.
4041         * sysdeps/gnu/errlist.c: Likewise.
4042
4043         * libio/Makefile (routines): Remove iosprint.
4044         * libio/iosprintf.c: Removed
4045
4046
4047 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
4048
4049         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
4050         non_dynamic_init and exported now.
4051         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
4052         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
4053         !SHARED.
4054         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4055         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4056         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4057
4058 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
4059
4060         * elf/dl-close.c (free_slotinfo): Check for end of list and return
4061         true in this case.
4062
4063         * locale/iso-639.def: Add language codes for Walloon.
4064
4065         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
4066         total number of relocations performed.
4067
4068         * elf/sprof.c (load_profdata): If do_test provide information as
4069         to why loading failed.
4070         * elf/dl-profile.c (_dl_start_profile): Initialize all of
4071         hist_hdr.dimen.
4072
4073         * csu/set-init.c: Moved to...
4074         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
4075         * csu/Makefile: Don't compile set-init.
4076         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
4077         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
4078         to __libc_init.
4079         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4080         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4081         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
4082         __libc_init.
4083         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
4084         __libc_subinit.
4085
4086 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
4087
4088         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
4089         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
4090         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
4091         (_dl_deallocate_tls): New function.
4092         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
4093         _dl_deallocate_tls.
4094
4095 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4096
4097         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
4098         * stdio-common/tst-fseek.c (main): Add test for this.
4099
4100 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
4101
4102         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
4103
4104 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
4105
4106         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
4107         pointer before dereferencing.
4108
4109 2002-02-18  Roland McGrath  <roland@frob.com>
4110
4111         * sysdeps/mach/hurd/times.c: Fix typo in last change.
4112
4113         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
4114         Use task_policy in place of task_priority.
4115
4116         * sysdeps/generic/bits/mman.h
4117         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
4118         * sysdeps/mach/msync.c: New file.
4119
4120         * sysdeps/mach/powerpc/syscall.S: New file.
4121
4122         * mach/msg.c [MACH_MSG_OVERWRITE]
4123         (__mach_msg_trap, __mach_msg_overwrite): New functions.
4124         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
4125
4126         * sysdeps/mach/configure.in: Check for clock.defs to put into
4127         mach_interface_list.
4128         * sysdeps/mach/configure: Regenerated.
4129
4130         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
4131         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
4132         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
4133         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
4134         (mach-shortcuts): Add device_read_overwrite_request,
4135         device_read_overwrite, vm_read_overwrite, thread_switch.
4136
4137         * configure.in (base_machine): Set to $machine by default.
4138         * configure: Regenerated.
4139
4140         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
4141         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
4142         * sysdeps/mach/configure: Regenerated.
4143         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
4144
4145         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
4146
4147         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
4148
4149         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
4150         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
4151
4152 2002-02-17  Roland McGrath  <roland@frob.com>
4153
4154         * sysdeps/mach/hurd/times.c
4155         [NO_CREATION_TIME] (startup_time): New static variable.
4156         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
4157         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
4158         creation_time from task_basic_info.
4159         (__times): Use __gettimeofday instead of __host_get_time.
4160
4161         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
4162         Use untyped Mach IPC message format.
4163
4164         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
4165
4166         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
4167         _S_catch_exception_raise_state_identity,
4168         _hurdsig_fault_catch_exception_raise_state,
4169         _hurdsig_fault_catch_exception_raise_state_identity.
4170
4171         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
4172
4173         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
4174         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
4175
4176         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
4177         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
4178
4179         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
4180         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
4181         them as no-op macros.
4182         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
4183         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
4184
4185         * sysdeps/powerpc/dl-machine.h
4186         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
4187
4188         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
4189         Use untyped Mach IPC message format.
4190
4191         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
4192         Handle untyped Mach IPC message formats.
4193
4194         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
4195         Expect different argument conventions when this is defined.
4196         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
4197         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
4198         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
4199         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
4200         for OSF Mach variant.
4201         (faulted): Use mig_reply_error_t for REPLY.
4202         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
4203         in __thread_set_exception_ports call.
4204         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
4205         __mach_port_set_attributes in place of __mach_port_set_qlimit.
4206
4207         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
4208         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
4209         on Darwin, which includes bogons.
4210
4211         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
4212         variable LOADBASE so it's not declared when it's not used.
4213
4214 2002-02-16  Roland McGrath  <roland@frob.com>
4215
4216         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
4217         to use BI.creation_time.
4218
4219         * mach/Machrules (MIG): Add -x c to CPP value passed down.
4220
4221         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
4222         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
4223         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
4224         host_page_size instead of vm_statistics.
4225
4226         * sysdeps/mach/Makefile (mach-before-compile): Don't include
4227         mach_interface.h here, since not all variants use that name.
4228
4229         * sysdeps/mach/configure.in: Add some checks for Mach headers
4230         to ensure a sane installation.
4231         (mach_interface_list): Define this variable by checking for .defs
4232         files found in various variants.
4233         * configure.in (mach_interface_list): AC_SUBST this.
4234         * config.make.in (mach-interface-list): New substituted variable.
4235         * mach/Makefile (user-interfaces): Define this using the value
4236         of $(mach-interface-list) instead of mach, mach4.
4237         Updated other references to mach_interface to use it as well.
4238
4239         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
4240
4241         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
4242         mig_reply_error_t for OSF Mach variant.
4243
4244         * mach/Makefile (routines): Remove bootprivport.
4245         * mach/bootprivport.c: File removed.  It has never been used.
4246
4247         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
4248         Grok the OSF flavor of message format.
4249         (mach_msg_destroy_port): For MAKE_SEND and
4250         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
4251         no-senders notification.
4252
4253 2002-02-06  Roland McGrath  <roland@frob.com>
4254
4255         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
4256         to here if 2.0 compatibility enabled ...
4257         (libc: GLIBC_2.1.3): ... from here.
4258
4259 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
4260
4261         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
4262         generation counter.
4263         * elf/dl-close.c (_dl_close): Likewise.
4264
4265 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
4266
4267         * elf/Makefile: Add rules to build and run tst-tls8.
4268         * elf/tst-tls8.c: New file.
4269         * elf/tst-tlsmod4.c: New file.
4270
4271         * stdlib/test-a64l.c (tests): Add more test cases.
4272
4273         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
4274         Reported by Walter Harms <WHarms@bfs.de>.
4275
4276 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
4277
4278         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
4279         definitions for struct sigcontext.
4280         Suggested by David Mosberger-Tang.
4281
4282 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
4283
4284         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
4285         for removing reference of module in slotinfo list.
4286         (_dl_close): Use remove_slotinfo.
4287         * sysdeps/generic/dl-tls.c: General pretty printing.
4288         (oom): Define only if SHARED.
4289         (_dl_next_tls_modid): Correct starting point for the case we assume
4290         there is a gap.  Add missing instruction grouping (doh!).  Correct
4291         tests for reaching maximum index.
4292         * elf/Makefile: Add rules to build and run tst-tls7.
4293         * elf/tst-tls7.c: New file.
4294         * elf/tst-tlsmod3.c: New file.
4295
4296         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
4297         USE_TLS.
4298         * elf/tst-tlsmod2.c: Likewise.
4299
4300         * elf/dl-close.c (_dl_close): When closing an object using TLS
4301         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
4302         true.  Increment dl_tls_generation only if we closed any TLS-using
4303         object.
4304         * elf/tst-tls6.c: New file.
4305         * elf/Makefile: Add rules to build and run tst-tls6.
4306
4307         * po/da.po: Update from translation team.
4308
4309         * locale/categories.def: Fix typo [PR libc/2948].
4310         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
4311         [PR libc/2949].
4312         * locale/iso-4217.def: Update from official version [PR libc/2950].
4313         * glibcbug.in: Honor TMPDIR [PR libc/2951].
4314         * locale/programs/ld-collate.c (collate_finish): Bail out with a
4315         message if input is too confusion instead of using assert.
4316         (collate_read): Don't crash on unknown symbol [PR libc/2952].
4317         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
4318
4319         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
4320         * elf/tst-tls2.c: Likewise.
4321         * elf/tst-tls3.c: Likewise.
4322
4323 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
4324
4325         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
4326
4327 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
4328
4329         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
4330         if this is really necessary.
4331
4332         * elf/dl-close.c (_dl_close): Implement freeing entries in the
4333         slotinfo array.
4334         (free_mem): Free memory for the slotinfo array if possible.
4335
4336 2002-02-12  Andreas Schwab  <schwab@suse.de>
4337
4338         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
4339
4340 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
4341
4342         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
4343         TLS_DTV_UNALLOCATE.
4344         (oom): New function.
4345         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
4346         (_dl_determine_tlsoffset): Likewise.
4347         (_dl_allocate_tls): Likewise.
4348         (__TLS_GET_ADDR): Define if not already defined.
4349         (_dl_tls_symaddr): New function.
4350         (allocate_and_init): New function.
4351         (__tls_get_addr): Actually implement handling of generation counter
4352         and deferred allocation.
4353         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
4354         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
4355         _dl_tls_generation.
4356         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
4357         Declare _dl_tls_symaddr.
4358         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
4359         SHARED.
4360         * include/link.h (struct link_map):  Remove l_tls_nextimage and
4361         l_tls_previmage.
4362         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
4363         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
4364         (_dl_vsym): Likewise.
4365         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
4366         layout.
4367         (dl_main): Allow PT_TLS be present for empty segment.  Remove
4368         nextimage list handling.  Instead add all modules using TLS to
4369         dl_tls_dtv_slotinfo_list.
4370         * elf/dl-open.c (dl_open_worker): After successfully loading all
4371         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
4372         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
4373         empty segment don't do anything.  Remove handling of initimage list.
4374         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
4375         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
4376         * elf/dl-minimal.c: Define __libc_memalign.
4377         * elf/dl-support.c: Remove _dl_initimage_list.  Add
4378         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
4379         _dl_tls_generation.
4380         * include/stdlib.h: Declare __libc_memalign.
4381
4382         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
4383         * elf/tst-tls4.c: New file.
4384         * elf/tst-tls5.c: New file.
4385         * elf/tst-tlsmod2.c: New file.
4386
4387         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
4388
4389         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
4390
4391         * elf/tst-tls1.c: Use test-skeleton.c.
4392         * elf/tst-tls2.c: Likewise.
4393         * elf/tst-tls3.c: Likewise.
4394
4395         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
4396
4397 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
4398
4399         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
4400
4401 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
4402
4403         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
4404
4405         * elf/tst-tls3.c: New file.
4406         * elf/tst-tlsmod1.c: New file.
4407         * elf/Makefile: Add rules to build and run tst-tls3.
4408
4409         * sysdeps/i386/dl-machine.h: Include <tls.h>.
4410         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
4411         TLS relocations.
4412
4413         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
4414
4415         * po/fr.po: Update from translation team.
4416
4417         * elf/tls-macros.h: Add alternative macros for use in PIC.
4418
4419         * elf/dl-lookup.c: Include <tls.h>.
4420         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
4421
4422         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
4423         required by passing pointer to last element of the list.
4424
4425         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
4426         l_tls_initimage to a place where it actually is performed.
4427
4428         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
4429         after globfree() calls.
4430
4431         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
4432         (openaux): Pass open_mode as new last argument to _dl_map_object.
4433         (_dl_map_object_deps): Add new argument open_mode.  Initialize
4434         open_mode element of args variable with it.
4435         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
4436         _dl_map_object_deps.
4437         * elf/rtld.c (dl_main): Add zero as last parameter to
4438         _dl_map_object_deps call.
4439         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
4440         * elf/nodlopen2.c: New file.
4441         * elf/nodlopenmod2.c: New file.
4442         * elf/Makefile: Add rules to build and run nodlopen2.
4443
4444         * elf/tst-tls1.c: Move TLS helper macros to...
4445         * elf/tls-macros.h: ...here.  New file.
4446         * elf/tst-tls2.c: New file.
4447         * elf/Makefile (tests): Add tst-tls2.
4448         (distribute): Add tls-macros.h.
4449
4450         * po/sv.po: Update from translation team.
4451
4452         * elf/tst-tls1.c (main): Add complete set of tests.  Split
4453         architecture specific definitions from the actual test code.
4454
4455         * po/tr.po: Update from translation team.
4456
4457 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
4458
4459         * elf/Makefile (tests): Add tst-tls1.
4460         * elf/tst-tls1.c: New file.
4461
4462         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
4463         alignment of TCB for now.
4464
4465         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
4466         initialization image for the application itself.
4467
4468         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
4469         loop to initialize TLS block.
4470
4471 2002-02-08  Richard Henderson  <rth@redhat.com>
4472
4473         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
4474         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
4475
4476         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
4477
4478 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
4479
4480         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
4481
4482 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
4483
4484         * po/ca.po: Update from translation team.
4485         * po/sk.po: Likewise.
4486
4487         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
4488         (dl_main): Move dtv/static TLS handling before relocation.
4489         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
4490         TLS_INIT_TP to allocate and install the dtv/static TLS block.
4491         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
4492         so far uses TLS initialize GL(dl_tls_static_size) and
4493         GL(dl_tls_static_align) to account for the TCB.
4494         (_dl_allocate_tls): New function.
4495         * sysdeps/generic/ldsodefs.h (rtld_global): Add
4496         _dl_initial_dtv_malloced.
4497
4498         * configure.in: Test for __builtin_memset more realistically.
4499
4500         * csu/version.c (banner): If TLS support is available say so.
4501
4502 2002-02-04  H.J. Lu  <hjl@gnu.org>
4503
4504         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
4505         __attribute_used__.
4506         (__dl_runtime_resolve): Likewise.
4507
4508         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
4509         declaration.
4510
4511 2001-11-15  H.J. Lu  <hjl@gnu.org>
4512
4513         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
4514         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
4515
4516         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
4517
4518 2002-02-07  H.J. Lu  <hjl@gnu.org>
4519
4520         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
4521         ".set noreorder".
4522         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
4523         Likewise.
4524
4525 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
4526
4527         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
4528
4529         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
4530         ___tls_get_addr_internal.
4531         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
4532
4533         * po/ko.po: Update from translation team.
4534
4535 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
4536
4537         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
4538         attribute, change __pad{1,2} type to unsigned int.
4539         (struct stat64): Remove packed attribute.
4540
4541 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
4542
4543         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
4544
4545 2002-02-07  Andreas Schwab  <schwab@suse.de>
4546
4547         * configure.in: Fix check for -zcombreloc.
4548
4549 2002-02-06  H.J. Lu  <hjl@gnu.org>
4550
4551         * config.h.in (HAVE_BUILTIN_MEMSET): New.
4552         * configure.in: Check if __builtin_memset really works.
4553         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
4554         __GNUC_PREREQ (2, 96) before using __builtin_memset.
4555
4556 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
4557
4558         * io/bug-ftw3.c (main): Don't try the test if root.
4559
4560 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4561
4562         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
4563         constraints.
4564         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
4565         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
4566         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
4567         Likewise.
4568         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
4569         a weak alias for __clone.
4570         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
4571         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
4572         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
4573         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
4574         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
4575         a weak alias for __mmap64.
4576
4577 2002-02-05  H.J. Lu  <hjl@gnu.org>
4578
4579         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
4580         (atomic_add): Likewise.
4581         (compare_and_swap): Likewise.
4582         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
4583
4584 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
4585
4586         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
4587
4588         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
4589         alignment of the TCB and store total size and alignment of static
4590         TLS block in _dl_tls_static_size and _dl_tls_static_align.
4591         tls_index is a typedef.
4592         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
4593         _dl_tls_static_align.
4594         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
4595         * elf/dl-support.c: Define _dl_tls_static_size and
4596         _dl_tls_static_align.
4597
4598 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
4599
4600         * configure.in: Add --without-tls option.
4601         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
4602         --without-tls is given.
4603
4604         * sysdeps/generic/dl-tls.c: Include <tls.h>.
4605
4606         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
4607
4608 2002-02-06  Roland McGrath  <roland@frob.com>
4609
4610         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
4611         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
4612
4613         * scripts/versions.awk: Improve error message for missing version.
4614         Each version inherits from the last one only if they have the same
4615         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
4616         but not GLIBC_x and FOO_y.
4617
4618         * scripts/firstversions.awk: Handle libraries that don't have each
4619         particular version named in the third column of shlib-versions.
4620
4621         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
4622
4623 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
4624
4625         * Versions.def [ld]: Add GLIBC_2.3.
4626         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
4627         * elf/Makefile (dl-routines): Add dl-tls.
4628         (distribute): Add dl-tls.h.
4629         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4630         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4631         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
4632         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
4633         along with the other info in the link map.  Change queueing of init
4634         images for double linked list.  Use _dl_next_tls_modid to compute
4635         l_tls_modid.
4636         * elf/rtld.c (_dl_start_final): Store alignment requirement
4637         along with the other info in rtld map and executable map.
4638         (dl_main): Add ld.so to the init image list if necessary.  Compute
4639         final module ID with _dl_next_tls_modid.
4640         * include/link.h (struct link_map): Add l_tls_previmage and
4641         l_tls_align.
4642         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4643         * sysdeps/i386/elf/Versions: New file.
4644         * sysdeps/generic/dl-tls.c: New file.
4645         * sysdeps/generic/dl-tls.h: New file.
4646         * sysdeps/i386/dl-tls.h: New file.
4647
4648 2002-02-06  Roland McGrath  <roland@frob.com>
4649
4650         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
4651         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
4652
4653 2002-01-05  Roland McGrath  <roland@frob.com>
4654
4655         * sysdeps/mach/configure.in: New file.
4656         * sysdeps/mach/configure: New generated file.
4657
4658         * mach/Makefile (user-interfaces): Remove default_pager_helper.
4659         It has never been used by anything.
4660
4661 2002-02-06  H.J. Lu  <hjl@gnu.org>
4662
4663         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
4664         is included.
4665
4666 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
4667
4668         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
4669         attribute((packed)) to counter stupid people misusing gcc options.
4670         (struct stat64): Likewise.
4671
4672 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4673
4674         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
4675         the variables which are used as booleans.
4676
4677 2002-02-06  Andreas Jaeger  <aj@suse.de>
4678
4679         * include/libc-symbols.h (INTUSE): Renamed from INT.
4680         * elf/dl-deps.c: Change users.
4681         * sysdeps/generic/dl-sysdep.c: Likewise.
4682         * sysdeps/generic/dl-cache.c: Likewise.
4683         * elf/dl-reloc.c: Likewise.
4684         * elf/rtld.c: Likewise.
4685         * elf/dl-version.c: Likewise.
4686         * elf/dl-load.c: Likewise.
4687         * elf/dl-dst.h: Likewise.
4688         * elf/dl-init.c: Likewise.
4689         * elf/dl-error.c: Likewise.
4690         * elf/dl-fini.c: Likewise.
4691         * elf/dl-runtime.c: Likewise.
4692         * elf/do-lookup.h: Likewise.
4693
4694         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
4695         definition.
4696         * stdio-common/_itowa.h: Likewise.
4697
4698 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4699
4700         * elf/dl-minimal.c: Define _itoa_lower_digits.
4701
4702         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
4703         DT_FLAGS set.
4704
4705         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
4706         loading modules with the DF_STATIC_TLS flag set.
4707         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
4708         element.
4709         * include/link.h (struct link_map): Add l_flags field.
4710         * elf/elf.h (DF_STATIC_TLS): New definition.
4711
4712         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
4713         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
4714
4715         * elf/rtld.c (process_dl_debug): Correct printing help message.
4716         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
4717         for %s.
4718
4719         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
4720         definition and pass &errno in use of this variable.
4721         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
4722
4723 2002-02-04  Andreas Schwab  <schwab@suse.de>
4724
4725         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
4726         * locale/programs/charmap-dir.c: Wrap calls that output messages
4727         with WITH_CUR_LOCALE.  Include "localedef.h" first.
4728         * locale/programs/charmap.c: Likewise.
4729         * locale/programs/ld-address.c: Likewise.
4730         * locale/programs/ld-collate.c: Likewise.
4731         * locale/programs/ld-ctype.c: Likewise.
4732         * locale/programs/ld-identification.c: Likewise.
4733         * locale/programs/ld-measurement.c: Likewise.
4734         * locale/programs/ld-messages.c: Likewise.
4735         * locale/programs/ld-monetary.c: Likewise.
4736         * locale/programs/ld-name.c: Likewise.
4737         * locale/programs/ld-numeric.c: Likewise.
4738         * locale/programs/ld-paper.c: Likewise.
4739         * locale/programs/ld-telephone.c: Likewise.
4740         * locale/programs/ld-time.c: Likewise.
4741         * locale/programs/linereader.c: Likewise.
4742         * locale/programs/linereader.h: Likewise.
4743         * locale/programs/localedef.c: Likewise.
4744         * locale/programs/locfile.c: Likewise.
4745         * locale/programs/repertoire.c: Likewise.
4746
4747 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4748
4749         * elf/rtld.c (_dl_start_final): Determine load address to locate
4750         ehdr with GL(dl_rtld_map).l_map_start.
4751
4752         * po/ca.po: Update from translation team.
4753
4754         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
4755         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
4756         header entry.
4757         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4758         _dl_tls_module_cnt.
4759         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
4760
4761 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
4762
4763         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
4764         * include/link.h (struct link_map): Add various members for TLS
4765         information.
4766         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4767         _rtld_tlsoffset, add _dl_initimage_list.
4768         * sysdeps/i386/dl-lookupcfg.h: New file.
4769         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
4770         TLS relocation.  When using TLS we now use RESOLVE_MAP.
4771         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
4772         is used.
4773
4774         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4775         unused.
4776
4777         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4778         thread-pointer as soon as possible.
4779         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
4780         elements in rtld_global.
4781         * sysdeps/generic/tls.h: New file.
4782         * elf/Makefile (distribute): Add tls.h.
4783         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4784         relocations.  Not complete yet.
4785
4786         * resolv/resolv.h: Allow user to define __need_res_state and only
4787         define __res_start structure then.
4788         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4789
4790         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4791         dl_cpuclock_offset initialization to _dl_start_final.
4792         (_dl_show_auxv): Avoid unnecessary sign extension.
4793         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4794
4795 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
4796
4797         * config.h.in: Add HAVE_TLS_SUPPORT.
4798         * sysdeps/i386/elf/configure.in: New file.
4799
4800 2002-02-03  Andreas Schwab  <schwab@suse.de>
4801
4802         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4803         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
4804
4805 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
4806
4807         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4808         alloca if the memory reqirements are too high.
4809
4810 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
4811
4812         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4813         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4814         the former is available anyway and speed isn't important here.
4815         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4816         * elf/dl-version.c (match_symbol): Likewise.
4817         (_dl_check_map_versions): Likewise.
4818         * elf/rtld.c (process_envvars): Likewise.
4819         (print_statistics): Likewise.
4820         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4821         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
4822         bases.  Add assert to catch uses of unimplemented features.
4823         (__strsep): Add assert to catch uses of unimplemented features.
4824         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
4825         and avoid inline optimization.
4826         * elf/rtld.c (process_envvars): Likewise.
4827         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4828         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4829         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4830
4831 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4832
4833         * stdio-common/_itoa.h: Minor simplifications of the code.
4834         * stdio-common/_itoa.c: Likewise.
4835
4836         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4837         instead of _dl_printf for debugging info output.
4838
4839         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4840         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4841
4842 2002-02-01  H.J. Lu  <hjl@gnu.org>
4843
4844         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4845         (atomic_add): Likewise.
4846         (compare_and_swap): Return 0 only when failed to compare. Use
4847         branch likely.
4848
4849         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4850         branch likely.
4851
4852 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4853
4854         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4855
4856 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4857
4858         * elf/dl-minimal.c (__strsep): New minimal implementation.
4859
4860 2002-02-02  Paul Eggert  <eggert@twinsun.com>
4861
4862         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4863         (__mktime_internal): If no tm_isdst is requested, prefer solutions
4864         with tm_isdst > 0 when the requested time falls within a
4865         spring-forward gap [PR libc/2894].
4866
4867 2002-02-03  Andreas Schwab  <schwab@suse.de>
4868
4869         * stdio-common/tst-rndseek.c: Increase timeout.
4870
4871 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4872
4873         Change ld.so to not use functions which are exported.  One cannot
4874         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
4875         definitions.
4876         * include/libc-symbols.h: Define INT and INTDEF.
4877         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4878         _dl_signal_error_internal, _dl_map_object_internal,
4879         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4880         _dl_lookup_versioned_symbol_internal,
4881         _dl_relocate_object_internal, _dl_debug_state_internal,
4882         _dl_start_profile_internal, and _dl_unload_cache_internal.
4883         * include/dlfcn.h: Declare _dl_catch_error_internal.
4884         * elf/rtld.c: Use INT for calls to any of the *_internal functions
4885         above.  Add INTDEF to function definitions.
4886         * elf/dl-debug.c: Likewise.
4887         * elf/dl-deps.c: Likewise.
4888         * elf/dl-dst.h: Likewise.
4889         * elf/dl-error.c: Likewise.
4890         * elf/dl-fini.c: Likewise.
4891         * elf/dl-init.c: Likewise.
4892         * elf/dl-load.c: Likewise.
4893         * elf/dl-lookup.c: Likewise.
4894         * elf/dl-misc.c: Likewise.
4895         * elf/dl-open.c: Likewise.
4896         * elf/dl-profile.c: Likewise.
4897         * elf/dl-reloc.c: Likewise.
4898         * elf/dl-runtime.c: Likewise.
4899         * elf/dl-version.c: Likewise.
4900         * elf/do-lookup.h: Likewise.
4901         * sysdeps/generic/dl-cache.c: Likewise.
4902         * sysdeps/generic/dl-sysdep.c: Likewise.
4903         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4904         instead of _dl_init.
4905         * sysdeps/arm/dl-machine.h: Likewise.
4906         * sysdeps/cris/dl-machine.h: Likewise.
4907         * sysdeps/hppa/dl-machine.h: Likewise.
4908         * sysdeps/i386/dl-machine.h: Likewise.
4909         * sysdeps/ia64/dl-machine.h: Likewise.
4910         * sysdeps/m68k/dl-machine.h: Likewise.
4911         * sysdeps/mips/dl-machine.h: Likewise.
4912         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4913         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4914         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4915         * sysdeps/sh/dl-machine.h: Likewise.
4916         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4917         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4918         * sysdeps/x86_64/dl-machine.h: Likewise.
4919         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4920
4921         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4922         and _dl_debug_initialize.
4923
4924         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
4925         more information.
4926         * elf/rtld.c (dl_main): Avoid strrchr.
4927         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4928         result of readlink.  Search from the back for '/'.
4929
4930         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4931         strncpy if possible.
4932
4933         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
4934         strncmp.
4935         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
4936         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4937         strspn, and strcspn.
4938         (process_envvars): Don't use strcspn.
4939
4940         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4941         (_dl_dst_substitute): Likewise.
4942
4943 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
4944
4945         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
4946         code which is never used when relocating ld.so itself.
4947
4948         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4949         starting ld.so itself.  Move l_addr variable initialization closer
4950         to use.
4951         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
4952
4953 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
4954
4955         * Versions.def (libc): Add GLIBC_PRIVATE.
4956         (libdb, libnss_db, libdb1): Remove.
4957         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
4958         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
4959         (libpthread): Add GLIBC_PRIVATE.
4960         (libresolv): Likewise, remove GLIBC_2.1.
4961         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
4962         GLIBC_2.2.3, GLIBC_2.3.
4963         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
4964         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
4965         _dl_sym, _dl_vsym): Likewise.
4966         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
4967         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
4968         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
4969         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
4970         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
4971         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
4972         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
4973         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
4974         Likewise.
4975         (_dl_object_relocation_scope): Remove.
4976         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
4977         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
4978         __gconv_cache): Move to GLIBC_PRIVATE.
4979         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
4980         __internal_setnetgrent): Likewise.
4981         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
4982         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
4983         * locale/Versions (__collate_element_hash, __collate_element_strings,
4984         __collate_symbol_classes, __collate_symbol_hash,
4985         __collate_symbol_strings, _nl_current_LC_COLLATE,
4986         _nl_current_LC_CTYPE): Likewise.
4987         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
4988         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
4989         (libnss_nis, libnss_nisplus): Likewise.
4990         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
4991         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
4992         (libnss_files): Move all symbols to GLIBC_PRIVATE.
4993         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
4994         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
4995         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
4996         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
4997         __ns_get16, __ns_samename): Likewise.
4998         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
4999         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
5000         GLIBC_PRIVATE.
5001         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
5002         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
5003         __libc_connect): Likewise.
5004         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
5005         Likewise.
5006         * stdlib/Versions (__libc_system): Likewise.
5007         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
5008         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
5009         * sysdeps/ia64/fpu/Versions: Likewise.
5010         * sysdeps/ia64/Versions: Likewise.
5011         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
5012         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
5013         to GLIBC_PRIVATE.
5014         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
5015         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
5016         __libc_sigaction): Likewise.
5017         * termios/Versions (__libc_tcdrain): Likewise.
5018
5019         * misc/sys/cdefs (__attribute_noinline__): Define.
5020         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
5021         __attribute_noinline__.
5022
5023         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
5024         * elf/dl-xstat64.c: New file.
5025         * elf/dl-fxstat64.c: New file.
5026         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
5027         don't export __fxstat64 at multiple versions.
5028         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
5029         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
5030
5031 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
5032
5033         * locale/program/ld-collate.c (collate_finish): Assign a wide
5034         char collation sequence value to multi character collating
5035         elements, and avoid over writing by non-character elements.
5036
5037 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
5038
5039         * elf/Makefile (distribute): Add dl-procinfo.c.
5040         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
5041         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
5042
5043 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
5044
5045         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
5046         definition.
5047         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
5048         _rtld_global struct.
5049         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5050         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
5051         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5052         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
5053         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
5054         _dl_fpu_control_set): Remove unused externs.
5055         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
5056         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
5057         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
5058         related variables in _rtld_global struct.
5059         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
5060         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
5061         unused extern.
5062
5063 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
5064
5065         * sysdeps/generic/dl-procinfo.c: New file.
5066
5067 2002-02-01  Andreas Schwab  <schwab@suse.de>
5068
5069         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
5070
5071 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
5072
5073         * elf/rtld.c (_dl_start): Mark as internal_function.
5074         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
5075         in register.
5076         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
5077         General pretty printing.
5078
5079 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
5080
5081         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
5082         * elf/dl-reloc.c: Pretty printing.
5083         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
5084         procinfo-related variables in rtld_global struct.
5085         * elf/dl-support.c: Likewise.
5086         * elf/rtld.c: Likewise.
5087         * sysdeps/i386/i686/Makefile: Likewise.
5088         * sysdeps/i386/i686/hp-timing.c: Likewise.
5089         * sysdeps/i386/i686/hp-timing.h: Likewise.
5090         * sysdeps/ia64/Makefile: Likewise.
5091         * sysdeps/ia64/hp-timing.c: Likewise.
5092         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
5093         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
5094         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
5095         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
5096         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5097         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
5098         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
5099         * sysdeps/x86_64/Makefile: Likewise.
5100
5101         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
5102         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
5103         _dl_debug_fd to rtld_global.
5104         * elf/Versions: Likewise.
5105         * elf/dl-close.c: Likewise.
5106         * elf/dl-iteratephdr.c: Likewise.
5107         * elf/dl-lookup.c: Likewise.
5108         * elf/dl-misc.c: Likewise.
5109         * elf/dl-open.c: Likewise.
5110         * elf/dl-support.c: Likewise.
5111         * elf/do-lookup.h: Likewise.
5112         * elf/rtld.c: Likewise.
5113         * sysdeps/generic/dl-cache.c: Likewise.
5114         * sysdeps/generic/dl-sysdep.c: Likewise.
5115         * sysdeps/ia64/Versions: Likewise.
5116         * sysdeps/unix/clock_gettime.c: Likewise.
5117         * sysdeps/unix/clock_settime.c: Likewise.
5118         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5119         * sysdeps/sparc/Versions: Removed.
5120         * sysdeps/i386/i686/Versions : Removed.
5121         * sysdeps/x86_64/Versions: Removed.
5122         * configure.in: Define HAVE_PROTECTED if .protected is available.
5123         * config.h.in: Add entry for HAVE_PROTECTED.
5124
5125 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
5126
5127         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
5128         code in struct _rtld_global.  Export this struct, remove all
5129         exports for the signal variables.
5130         * sysdeps/arm/dl-machine: Likewise.
5131         * sysdeps/generic/dl-origin: Likewise.
5132         * sysdeps/generic/dl-sysdep: Likewise.
5133         * sysdeps/generic/dl-cache: Likewise.
5134         * sysdeps/hppa/dl-fptr: Likewise.
5135         * sysdeps/hppa/dl-machine: Likewise.
5136         * sysdeps/cris/dl-machine: Likewise.
5137         * sysdeps/i386/dl-machine: Likewise.
5138         * sysdeps/ia64/dl-machine: Likewise.
5139         * sysdeps/m68k/dl-machine: Likewise.
5140         * sysdeps/mach/hurd/dl-sysdep: Likewise.
5141         * sysdeps/mips/mips64/dl-machine: Likewise.
5142         * sysdeps/mips/dl-machine: Likewise.
5143         * sysdeps/powerpc/elf/libc-start: Likewise.
5144         * sysdeps/powerpc/dl-machine: Likewise.
5145         * sysdeps/powerpc/dl-start: Likewise.
5146         * sysdeps/sparc/sparc32/dl-machine: Likewise.
5147         * sysdeps/sparc/sparc64/dl-machine: Likewise.
5148         * sysdeps/sh/dl-machine: Likewise.
5149         * sysdeps/s390/s390-32/dl-machine: Likewise.
5150         * sysdeps/s390/s390-64/dl-machine: Likewise.
5151         * sysdeps/unix/sysv/aix/libc-start: Likewise.
5152         * sysdeps/unix/sysv/aix/start-libc: Likewise.
5153         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
5154         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
5155         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
5156         * sysdeps/x86_64/dl-machine: Likewise.
5157
5158 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
5159
5160         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
5161         are too high.
5162
5163 2002-01-31  Andreas Schwab  <schwab@suse.de>
5164
5165         * sysdeps/posix/readv.c: Check for ssize_t overflow.
5166
5167 2002-01-31  Andreas Schwab  <schwab@suse.de>
5168
5169         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
5170         reference to _dl_pagesize.
5171
5172 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
5173
5174         * Versions.def [ld]: Add GLIBC_2.3.
5175         * elf/dl-addr.c: Move global variables for SHARED code in struct
5176         _rtld_global.  Export this struct, remove all exports for the
5177         signal variables.
5178         * elf/dl-close.c: Likewise.
5179         * elf/dl-conflict.c: Likewise.
5180         * elf/dl-debug.c: Likewise.
5181         * elf/dl-deps.c: Likewise.
5182         * elf/dl-dst.h: Likewise.
5183         * elf/dl-error.c: Likewise.
5184         * elf/dl-fini.c: Likewise.
5185         * elf/dl-init.c: Likewise.
5186         * elf/dl-iteratephdr.c: Likewise.
5187         * elf/dl-libc.c: Likewise.
5188         * elf/dl-load.c: Likewise.
5189         * elf/dl-lookup.c: Likewise.
5190         * elf/dl-minimal.c: Likewise.
5191         * elf/dl-object.c: Likewise.
5192         * elf/dl-open.c: Likewise.
5193         * elf/dl-profile.c: Likewise.
5194         * elf/dl-profstub.c: Likewise.
5195         * elf/dl-reloc.c: Likewise.
5196         * elf/dl-runtime.c: Likewise.
5197         * elf/dl-support.c: Likewise.
5198         * elf/dl-sym.c: Likewise.
5199         * elf/dl-version.c: Likewise.
5200         * elf/do-lookup.h: Likewise.
5201         * elf/do-rel.h: Likewise.
5202         * elf/dynamic-link.h: Likewise.
5203         * elf/rtld.c: Likewise.
5204         * sysdeps/generic/dl-cache.c: Likewise.
5205         * sysdeps/generic/dl-sysdep.c: Likewise.
5206         * sysdeps/generic/ldsodefs.h: Likewise.
5207         * sysdeps/generic/libc-start.c: Likewise.
5208         * sysdeps/i386/dl-machine.h: Likewise.
5209         * sysdeps/ia64/dl-fptr.c: Likewise.
5210         * sysdeps/ia64/dl-machine.h: Likewise.
5211         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
5212         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5213         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5214         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
5215         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
5216         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5217         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
5218         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
5219
5220 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
5221
5222         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
5223         to avoid warning
5224         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
5225
5226         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
5227         SHARED version.
5228         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
5229
5230         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
5231
5232 2002-01-29  Ben Collins  <bcollins@debian.org>
5233
5234         * string/bits/string2.h (__mempcpy): Protect size arg for
5235         addition when using __builtin_memcpy.
5236
5237 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
5238
5239         * stdlib/Makefile (tests): Add tst-qsort.
5240         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
5241
5242         * manual/signal.texi (Process Signal Mask): Document that
5243         pthread_sigmask, not sigprocmask, must be used in MT programs.
5244         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
5245
5246         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
5247         found.
5248         * misc/Makefile (tests): Add tst-hsearch.
5249         * misc/tst-hsearch.c: New file.
5250
5251 2002-01-18  Wolfram Gloger  <wg@malloc.de>
5252
5253         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
5254         * malloc/malloc.h: Likewise.
5255         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
5256         * malloc/arena.c: New file.
5257         * malloc/hooks.c: New file.
5258         * malloc/tst-mallocstate.c: New file.
5259         * malloc/Makefile: Add new testcase tst-mallocstate.
5260         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
5261
5262 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
5263
5264         * stdlib/msort.c: Remove last patch.  The optimization violates the
5265         same rule which qsort.c had problems with.
5266
5267 2002-01-27  Paul Eggert  <eggert@twinsun.com>
5268
5269         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
5270         to a pivot element that lies outside the array to be sorted, as
5271         ISO C99 requires that the comparison function be called only with
5272         addresses of array elements [PR libc/2880].
5273
5274 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
5275
5276         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
5277         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
5278
5279         * timezone/asia: Update from tzdata2002b.
5280         * timezone/australasia: Likewise.
5281         * timezone/backward: Likewise.
5282         * timezone/europe: Likewise.
5283         * timezone/leapseconds: Likewise.
5284         * timezone/iso3166.tab: Likewise.
5285         * timezone/zone.tab: Likewise.
5286
5287 2002-01-23  Richard Henderson  <rth@redhat.com>
5288
5289         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
5290
5291 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
5292
5293         * string/strxfrm.c: Allocate one more byte for rulearr and clear
5294         this element [PR libc/2855].
5295
5296         * string/strcoll.c: Handle zero-length arguments specially
5297         [PR libc/2856].
5298
5299 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
5300
5301         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
5302         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
5303         short lengths and constant src.
5304         (strcpy): Don't optimize for gcc 3.0+.
5305         (__stpcpy): For gcc 3.0+, don't use
5306         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
5307         for short string literal src.
5308
5309 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5310
5311         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5312         Set for arm, too.
5313
5314 2001-01-22  Paul Eggert  <eggert@twinsun.com>
5315
5316         * manual/llio.texi (Linked Channels, Cleaning Streams):
5317         Make it clearer that a just-opened input stream might need cleaning.
5318
5319 2002-01-21  H.J. Lu  <hjl@gnu.org>
5320
5321         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
5322         Don't use label at end of compound statement.
5323
5324 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
5325
5326         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
5327         Remove test for negative integer arg; sin_pi does it correctly.
5328
5329 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
5330
5331         * nscd/Makefile (distribute): Filter out xmalloc.c.
5332
5333 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
5334
5335         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
5336         Set offset if read end wasn't the buffer end.
5337         (_IO_file_seekoff_mmap): New function.
5338         (_IO_file_xsgetn_mmap): New function.
5339         (_IO_file_jumps_mmap): Use the two new functions.
5340         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
5341         != end buffer.
5342         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
5343         _IO_file_underflow_mmap.
5344         * libio/iofopen.c: Don't position file descriptor at end of file.
5345         * libio/tst-widetext.c: Improve error messages.
5346         * stdio-common/tst-rndseek.c: Likewise.
5347
5348 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
5349
5350         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
5351         end of enum for !_GNU_SOURCE.
5352         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
5353         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
5354         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
5355         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
5356         values unless _GNU_SOURCE.
5357
5358         * iconvdata/tcvn5712-1.c: Minor cleanups.
5359
5360 2002-01-18  Andreas Schwab  <schwab@suse.de>
5361
5362         * sysdeps/unix/sysv/linux/configure.in
5363         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
5364
5365 2002-01-16  Roger Sayle  <roger@eyesopen.com>
5366
5367         * stdlib/msort.c (msort_with_tmp): Replace implementation with
5368         more efficient "Towers of Hanoi" mergesort.
5369         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
5370         for generic, sizeof(int) and sizeof(long) variants respectively.
5371
5372 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
5373
5374         * manual/syslog.texi (openlog): Describe possible problems with
5375         first parameter.
5376         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
5377
5378         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
5379         * nscd/connections.c (begin_drop_privileges): New function.
5380         (finish_drop_privileges): New function.
5381         (nscd_init): Call the new functions which also install all groups
5382         for the server user.
5383         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
5384         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
5385
5386 2002-01-17  H.J. Lu  <hjl@gnu.org>
5387
5388         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
5389         `const' from `got'.
5390
5391 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5392
5393         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
5394         instructions for pointer operations.
5395         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
5396
5397 2002-01-17  Andreas Jaeger  <aj@suse.de>
5398
5399         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
5400         __uint128_t build-in.
5401
5402         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
5403         PowerPC, sync with 2.2 branch.
5404
5405 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
5406
5407         * posix/getconf.c: Update copyright year.
5408         * nss/getent.c: Likewise.
5409         * nscd/nscd_nischeck.c: Likewise.
5410         * iconv/iconvconfig.c: Likewise.
5411         * iconv/iconv_prog.c: Likewise.
5412         * elf/ldconfig.c: Likewise.
5413         * catgets/gencat.c: Likewise.
5414         * csu/version.c: Likewise.
5415         * elf/ldd.bash.in: Likewise.
5416         * elf/sprof.c (print_version): Likewise.
5417         * locale/programs/locale.c: Likewise.
5418         * locale/programs/localedef.c: Likewise.
5419         * nscd/nscd.c (print_version): Likewise.
5420         * debug/xtrace.sh: Likewise.
5421         * malloc/memusage.sh: Likewise.
5422         * malloc/mtrace.pl: Likewise.
5423
5424 2002-01-16  Andreas Schwab  <schwab@suse.de>
5425
5426         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
5427         reliably remove "-ia64" from rtld name.
5428
5429 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
5430
5431         * iconvdata/gb18030.c: Bug fixes and support for more characters.
5432         Patch by Yu Shao <yshao@redhat.com>.
5433
5434 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5435
5436         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
5437         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
5438         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
5439
5440 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5441
5442         * sysdeps/s390/fpu/libm-test-ulps: Update.
5443
5444 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
5445
5446         * elf/elf.h: Update x86 relocations.
5447
5448 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
5449
5450         * locale/programs/charmap.c (new_width): Check whether byte
5451         sequences for both ends of range have the same length.
5452
5453 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
5454
5455         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
5456
5457 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
5458
5459         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
5460         string literals.
5461         (__full_ieee754_sqrt): Add __attribute_used__.
5462
5463 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
5464
5465         * sysdeps/generic/group_member.c (__group_member): Also check
5466         groups[0] [PR libc/2781].
5467
5468 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
5469
5470         * Makefile (distribute): Add scripts/cpp.
5471         * elf/Makefile (distribute): Add reldep6mod[01234].c,
5472         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
5473         unwind-dw2-fde.h, and dwarf2.h.
5474         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
5475         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
5476         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
5477         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
5478
5479 2002-01-07  Roland McGrath  <roland@frob.com>
5480
5481         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
5482         volatile on type of ARGC so the compiler doesn't get clever.
5483
5484 2002-01-07  Andreas Jaeger  <aj@suse.de>
5485
5486         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
5487         * sysdeps/i386/bits/byteswap.h: Likewise.
5488         * sysdeps/ia64/bits/byteswap.h: Likewise.
5489         * sysdeps/m68k/bits/byteswap.h: Likewise.
5490         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
5491         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
5492
5493 2002-01-02  Bruno Haible  <bruno@clisp.org>
5494
5495         * intl/plural.y: Fix %expect count.
5496
5497 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
5498
5499         * elf/Makefile (routines, shared-only-routines): Add
5500         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
5501         * elf/elf.h (PT_GNU_EH_FRAME): Define.
5502         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
5503         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
5504         Optimize if .eh_frame section contains no FDEs.
5505         (__register_frame, __deregister_frame_info_bases,
5506         __deregister_frame): Likewise.
5507         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
5508         DW_CFA_restore handling.
5509
5510 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
5511
5512         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
5513
5514         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
5515         for x < 0.25 and restore original range reduction method.
5516         (__ieee754_lgammal_r): Make sure signgam is set before returning.
5517
5518 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
5519
5520         * libio/fileops.c (_IO_file_underflow_mmap): New function.
5521         (_IO_file_close_mmap): New function.
5522         (_IO_file_jumps_mmap): New variable.
5523         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
5524         trying to convert rest of byte buffer.
5525         (_IO_wfile_underflow_mmap): New function.
5526         (_IO_wfile_jumps_mmap): New variable.
5527         * libio/iofopen.c (__fopen_maybe_mmap): New function.
5528         (__fopen_internal): New function.  Split out from _IO_new_fopen.
5529         (_IO_new_fopen): Call __fopen_internal.
5530         * libio/iofopen64.c: Just call __fopen_internal.
5531         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
5532         successfully.
5533         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
5534         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
5535         _IO_file_close_mmap.
5536
5537         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
5538         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
5539
5540         * stdio-common/Makefile (tests): Add tst-rndseek.
5541         * stdio-common/tst-rndseek.c: New file.
5542
5543 2002-01-05  Roland McGrath  <roland@frob.com>
5544
5545         * config.h.in (HAVE_MIG_RETCODE): New #undef.
5546         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
5547         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
5548         * sysdeps/mach/hurd/configure: Regenerated.
5549
5550 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
5551
5552         * elf/elf.h: Add more TLS definitions.
5553
5554 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
5555
5556         * include/features.h (__GLIBC_MINOR__): Bump to 3.
5557
5558 2002-01-02  Roland McGrath  <roland@frob.com>
5559
5560         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
5561         __sigisemptyset.  Don't use MASK uninitialized.
5562
5563         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
5564         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
5565         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
5566         __sigdelset, __sigaddset, __sigorset.
5567
5568         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
5569         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
5570
5571         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
5572         _hurd_ports is null.
5573
5574         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
5575         for old CMU and new OSF Mach interface flavors.
5576         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
5577         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5578
5579         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
5580
5581         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
5582         Pass extra arguments to task_create for OSF variant.
5583         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5584
5585         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
5586         conditional on [HAVE_AUX_VECTOR].
5587
5588         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
5589         mach_msg_timeout_t as type of final argument.
5590
5591         * hurd/privports.c (__get_privileged_ports):
5592         Change host_priv_t to mach_port_t in argument type.
5593         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
5594         Update decls.
5595
5596         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
5597         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
5598         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
5599         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
5600         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
5601         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
5602
5603 2002-01-01  Roland McGrath  <roland@frob.com>
5604
5605         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
5606
5607 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
5608
5609         * include/stdlib.h: Define inlines for the _l variants of the strto*
5610         functions.
5611
5612 2002-01-01  Roland McGrath  <roland@frob.com>
5613
5614         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
5615
5616         * mach/Machrules (MIG): Set CPP as well as CC.
5617
5618 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
5619
5620         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
5621         locale to parse /proc/loadavg [PR libc/2760].
5622
5623 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
5624
5625         * elf/dl-conflict.c: Include sys/param.h.
5626         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
5627         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
5628         warning.
5629         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
5630         literals to avoid warnings.
5631
5632 2001-12-31  Andreas Jaeger  <aj@suse.de>
5633
5634         * configure.in: Don't check for gsed since we do not use it anywhere.
5635
5636 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
5637
5638         * io/fts.c: Update from BSD to fix memory leaks.
5639
5640 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
5641
5642         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
5643         * elf/chroot_canon.c: Likewise.
5644         * elf/dl-object.c: Likewise.
5645         * iconv/iconv_charmap.c: Likewise.
5646         * iconv/iconv_prog.c: Likewise.
5647         * libio/iogetdelim.c: Likewise.
5648         * locale/lc-time.c: Likewise.
5649         * stdlib/canonicalize.c: Likewise.
5650         * sunrpc/svc.c: Likewise.
5651         * sysdeps/generic/glob.c: Likewise.
5652
5653 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5654
5655         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
5656         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
5657         remove high order bit from the program counter.
5658         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
5659
5660 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5661
5662         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
5663         unnecessary code and add missing reloc types.
5664         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
5665         case for reloc type R_390_NONE.
5666
5667 2001-12-28  Andreas Jaeger  <aj@suse.de>
5668
5669         * io/bug-ftw3.c: Include string.h for prototypes.
5670
5671         * crypt/md5test.c (main): Remove unused variable.
5672
5673         * dlfcn/modstatic.c: Add prototype to avoid warning.
5674
5675 2001-12-26  Roland McGrath  <roland@frob.com>
5676
5677         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
5678         check only (SS->pending & MASK) for the signal to return.
5679         From Jeroen Dekkers <jeroen@dekkers.cx>.
5680
5681 2001-12-22  Roland McGrath  <roland@frob.com>
5682
5683         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
5684         Use preprocessor #if conditionals instead of `if' to avoid
5685         warnings about divide by zero in dead code.
5686
5687         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
5688         _hurd_port_init, and __hurd_self_sigstate.
5689
5690         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
5691
5692 2001-12-21  Andreas Jaeger  <aj@suse.de>
5693
5694         * elf/dblloadmod1.c: Add prototype to avoid warning.
5695         * elf/dblloadmod2.c: Likewise.
5696         * elf/dblloadmod3.c: Likewise.
5697         * elf/reldepmod5.c: Likewise.
5698         * elf/reldepmod6.c: Likewise.
5699
5700         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
5701         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
5702         used on all architectures.
5703
5704         * sunrpc/svc_tcp.c: Add noreturn attribute for
5705         svctcp_rendezvous_abort.
5706         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
5707
5708         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
5709         to avoid warning.
5710
5711 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
5712
5713         * manual/llio.texi (aio_fsync): Fix a typo.
5714         Patch by Tammy Fox <tfox@redhat.com>.
5715
5716 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
5717
5718         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
5719         stack bias from child stack pointer before passing it to clone syscall.
5720
5721 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
5722
5723         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
5724         _SC_TZNAME_MAX.
5725         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
5726         Reported by Thorsten Kukuk <kukuk@suse.de>.
5727
5728         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
5729         add some casts.
5730
5731         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
5732
5733 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
5734
5735         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
5736         conforming: return EBADF if file descriptor is invalid and EINVAL
5737         if file descriptor is no valid tty.
5738         * login/tst-grantpt.c: New file.
5739         * login/Makefile (tests): Add tst-grantpt.
5740
5741 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
5742
5743         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
5744         different than implemented in last patch.
5745         * io/bug-ftw3.c: Adjust test for changed handling of
5746         inaccessibility of toplevel dir.
5747
5748 2001-12-16  Roland McGrath  <roland@frob.com>
5749
5750         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
5751         * grp/initgroups.c (internal_getgrouplist): Likewise.
5752
5753         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
5754         `default:' to silence new GCC warning.
5755         Rewrite cast of lvalue to silence new GCC warning.
5756
5757         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
5758
5759         * sysdeps/mach/hurd/spawni.c: New file, by me with a
5760         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
5761
5762 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
5763
5764         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
5765         Patch by Stephen R. van den Berg.
5766
5767         * crypt/md5.h: Define md5_uintptr.
5768
5769 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
5770
5771         * libio/tst_swprintf.c (main): Add test for string argument with
5772         zero precision.
5773         * stdio-common/Makefile (tests): Add tst-sprintf.
5774         * stdio-common/tst-sprintf.c: New file.
5775
5776 2001-12-13  Andreas Schwab  <schwab@suse.de>
5777
5778         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5779         zero precision with wide character string format.
5780
5781 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
5782
5783         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5784         but have a user supplied buffer, return the empty buffer, not NULL.
5785
5786 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
5787
5788         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5789         Patch by Eric Sharkey <sharkey@netrics.com>.
5790
5791         * crypt/md5test.c (main): Add test for multiple calls to
5792         __md5_process_bytes to itererate over input string.
5793
5794 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
5795
5796         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5797         from __nis_findfastest.  Take timeout value from parameter.
5798         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5799         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5800         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
5801
5802 2001-12-12  Andreas Jaeger  <aj@suse.de>
5803
5804         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5805         combreloc test so that it works in this case.
5806
5807         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5808
5809 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
5810
5811         * sysdeps/sh/Makefile: New file.
5812         * sysdeps/sh/_mcount.S: New file.
5813         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5814         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5815
5816 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
5817
5818         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5819         limitation [PR libc/2564].
5820
5821 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
5822
5823         * elf/Makefile (dl-routines): Add conflict.
5824         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5825         (ld.so): Add _begin local symbol.
5826         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5827         Define.
5828         * elf/dl-deps.c (_dl_build_local_scope): New.
5829         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5830         of all libraries.
5831         * elf/do-rel.h (VALIDX): Define.
5832         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5833         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5834         can be skipped.
5835         * elf/dl-conflict.c: New file.
5836         * elf/dl-lookup.c (_dl_debug_bindings): New.
5837         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
5838         non-NULL.
5839         (_dl_lookup_symbol_skip): Likewise.
5840         (_dl_lookup_versioned_symbol): Likewise.
5841         (_dl_lookup_versioned_symbol_skip): Likewise.
5842         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5843         define to ElfW(Rel).
5844         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5845         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5846         ranges.
5847         Don't adjust address dynamic tags if l_addr is 0.
5848         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5849         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5850         (VALIDX, ADDRIDX): Define.
5851         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5852         (dl_main): Print library list for LD_TRACE_PRELINKING.
5853         If prelinking information can be used, skip relocating libraries and
5854         call _dl_resolve_conflicts instead.
5855         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5856         * elf/dl-load.c (_dl_map_object): Don't create fake libs
5857         if LD_TRACE_PRELINKING.
5858         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5859         + DT_ADDRNUM.
5860         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5861         (DL_DEBUG_PRELINK): Define.
5862         (_dl_resolve_conflicts): Add prototype.
5863
5864         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5865         .plt for prelinked libraries where prelinking info cannot be used.
5866         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5867         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5868         * sysdeps/arm/bits/link.h: New file.
5869         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5870         content of .got[1].
5871         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5872         (ELF_MACHINE_PLT_REL): Define.
5873         (elf_machine_rela, elf_machine_rela_relative): New.
5874         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5875         of adjusting it if prelinked and prelinking cannot be used.
5876         * sysdeps/i386/bits/link.h: New file.
5877         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5878         content of .got[1].
5879         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5880         (ELF_MACHINE_PLT_REL): Define.
5881         (elf_machine_rela, elf_machine_rela_relative): New.
5882         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5883         of adjusting it if prelinked and prelinking cannot be used.
5884         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5885         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
5886         to find out map for R_PPC_JMP_SLOT relocs.
5887         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5888         (OPCODE_BA): Define.
5889         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5890         libraries where prelinking info cannot be used.
5891         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5892         (elf_machine_fixup_plt): Call sparc_fixup_plt.
5893         (elf_machine_rela): Set value to 0 if relocating conflicts.
5894         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5895         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5896         (sparc64_fixup_plt): Fix a typo.
5897         (elf_machine_rela): Set value to 0 if relocating conflicts.
5898         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5899         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5900         libraries where prelinking info cannot be used.
5901         * sysdeps/sh/bits/link.h: New file.
5902         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5903         content of .got[1].
5904         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5905         of adjusting it if prelinked and prelinking cannot be used.
5906         * sysdeps/s390/s390-32/bits/link.h: New file.
5907         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5908         Save original content of .got[1].
5909         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5910         of adjusting it if prelinked and prelinking cannot be used.
5911         * sysdeps/s390/s390-64/bits/link.h: New file.
5912         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5913         Save original content of .got[1].
5914         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5915         of adjusting it if prelinked and prelinking cannot be used.
5916         * sysdeps/x86_64/bits/link.h: New file.
5917         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5918         Save original content of .got[1].
5919         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5920         of adjusting it if prelinked and prelinking cannot be used.
5921
5922 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
5923
5924         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5925         where appropriate instead of numbers.  Little optimizations.
5926
5927 2001-12-10  Roland McGrath  <roland@frob.com>
5928
5929         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5930         set it.
5931
5932         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5933         set to GLIBC_2.2.5, not GLIBC_2.2.4.
5934
5935         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5936         Fix conditionals so this is set by default for stdio and not for libio.
5937         * sysdeps/mach/hurd/configure: Regenerated.
5938
5939 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
5940
5941         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5942
5943 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
5944
5945         * io/Makefile (tests): Add bug-ftw3.
5946         * io/bug-ftw3.c: New file.
5947
5948         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
5949         matches and GLOB_NOCHECK is set.
5950         * posix/globtest.sh: Correct expected result for NOCHECK test.
5951
5952         * po/ca.po: Update from translation team.
5953
5954 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
5955
5956         Implement transliteration of characters in strings of the locale
5957         definitions.
5958         * locale/programs/linereader.c: Adjust for additional parameter to
5959         lr_token.
5960         (get_string): If character <Uxxxx> is not found try to transliterate
5961         it.
5962         * locale/programs/ld-ctype.c: Adjust for additional parameter to
5963         lr_token.  Add const to charmap parameter of all functions.
5964         (find_translit, find_translit2): New functions.
5965         * locale/programs/charmap.c: Adjust for additional parameter to
5966         lr_token.
5967         * locale/programs/repertoire.c: Likewise.
5968         * locale/programs/linereader.h: Likewise.
5969         * locale/programs/ld-address.c: Likewise.  Add const to charmap
5970         parameter of all functions.
5971         * locale/programs/ld-collate.c: Likewise.
5972         * locale/programs/ld-identification.c: Likewise.
5973         * locale/programs/ld-measurement.c: Likewise.
5974         * locale/programs/ld-messages.c: Likewise.
5975         * locale/programs/ld-monetary.c: Likewise.
5976         * locale/programs/ld-name.c: Likewise.
5977         * locale/programs/ld-numeric.c: Likewise.
5978         * locale/programs/ld-paper.c: Likewise.
5979         * locale/programs/ld-paper.c: Likewise.
5980         * locale/programs/ld-telephone.c: Likewise.
5981         * locale/programs/ld-time.c: Likewise.
5982         * locale/programs/locfile.c: Likewise.
5983         * locale/programs/localedef.c: Likewise.
5984         * locale/programs/localedef.h: Likewise.
5985         * locale/programs/locfile.h: Likewise.  Add declaration for
5986         find_translit.
5987         * locale/programs/simple-hash.c: Add const to first parameter of
5988         find_entry, iterate_table, and lookup.
5989         * locale/programs/simple-hash.h: Likewise.
5990         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
5991         instead.
5992         * include/locale.h: Define __LC_LAST.
5993         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
5994
5995 2001-12-07  Geoff Keating  <geoffk@redhat.com>
5996
5997         * sysdeps/powerpc/Dist: Update for recent FP changes.
5998         * sysdeps/powerpc/fpu/Dist: Likewise.
5999
6000 2001-12-07  Andreas Schwab  <schwab@suse.de>
6001
6002         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
6003
6004 2001-12-06  Geoff Keating  <geoffk@redhat.com>
6005
6006         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
6007         save/restore functions here.
6008         (libm-support): Don't define these functions here.
6009         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
6010         functions here.
6011         * sysdeps/powerpc/fe_nomask.c: Move to...
6012         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
6013         * sysdeps/powerpc/fprrest.S: Move to...
6014         * sysdeps/powerpc/fpu/fprrest.S: ... here.
6015         * sysdeps/powerpc/fprsave.S: Move to...
6016         * sysdeps/powerpc/fpu/fprsave.S: ... here.
6017
6018 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * sysdeps/unix/sysv/linux/opensock.c: New file.
6021
6022 2001-12-06  Geoff Keating  <geoffk@redhat.com>
6023
6024         * config.make.in (with-fp): Define from configure.
6025         * configure.in: Substitute with_fp.
6026         * configure: Regenerate.
6027         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
6028         specified, and don't change FPU environment.
6029
6030 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
6031
6032         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
6033         * assert/assert.c: Check result of __asprintf call and don't use
6034         string if it failed.
6035         * assert/assert-perr.c: Likewise.
6036         * inet/rcmd.c: Likewise.
6037         * locale/programs/localedef.c (main): Check result of
6038         construct_output_path and exit if it failed.
6039         (construct_output_path): Check result of asprintf and mkdir calls and
6040         fail if they failed.
6041         * posix/getopt.c: Check result of __asprintf calls and fail if
6042         they failed.
6043         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
6044
6045 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
6046
6047         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
6048         patch.
6049         * sysdeps/generic/strncase.c: Likewise.
6050         * string/tester.c: Add tests for strcasecmp and strncasecmp.
6051
6052 2001-12-05  Geoff Keating  <geoffk@redhat.com>
6053
6054         * scripts/cpp: Test the exit status from 'type', not 'awk'.
6055
6056         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
6057         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
6058         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
6059         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
6060         * sysdeps/powerpc/fclrexcpt.c: Move to...
6061         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
6062         * sysdeps/powerpc/fpu_control.h: Move to...
6063         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
6064
6065 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
6066
6067         * iconvdata/ibm1129.h: Remove duplicate mappings.
6068         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
6069         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
6070         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6071
6072         * timezone/zic.c: Fix handling of turnaround times.
6073         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
6074
6075 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
6076
6077         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
6078         overflow problem.
6079
6080 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
6081
6082         * posix/regex.c: For use outside glibc defined bounded pointer
6083         macros here.  Patch by Jim Meyering <jim@meyering.net>.
6084
6085         * iconvdata/Makefile (modules): Add TCVN5712-1.
6086         * iconvdata/TESTS: Add TCVN5712-1.
6087         * iconvdata/gconv-modules: Likewise.
6088         * iconvdata/tcvn5712-1.c: New file.
6089         * iconvdata/testdata/TCVN-5712: New file.
6090         * iconvdata/testdata/TCVN-5712..UTF8: New file.
6091
6092 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
6093
6094         * iconvdata/cp1258.c: Optimize conversion from UCS4.
6095
6096 2001-12-02  Roland McGrath  <roland@frob.com>
6097
6098         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
6099
6100         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
6101         Reported by Jeff Bailey <jbailey@nisa.net>.
6102
6103         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
6104         Reported by Jeff Bailey <jbailey@nisa.net>.
6105
6106         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
6107         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
6108         Reported by Jeff Bailey <jbailey@nisa.net>.
6109
6110 2001-12-01  Roland McGrath  <roland@frob.com>
6111
6112         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
6113         missing backslash in test arguments.
6114         * sysdeps/mach/hurd/configure: Regenerated.
6115
6116 2001-11-26  Roland McGrath  <roland@frob.com>
6117
6118         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
6119         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
6120
6121 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
6122
6123         * iconvdata/Makefile (modules): Add ARMSCII-8.
6124         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
6125         * iconvdata/armscii-8.c: New file.
6126
6127 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
6128
6129         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
6130         don't match, fix {{a,b},c} globbing, clean up.
6131         Patch by Flavio Veloso <flaviovs@magnux.com>.
6132         * posix/globtest.sh: Add new tests.
6133
6134 2001-11-29  Andreas Jaeger  <aj@suse.de>
6135
6136         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
6137         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
6138
6139         * sysdeps/generic/abort.c: Include libioP.h for
6140         _IO_flush_all_lockp prototype.
6141
6142 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
6143
6144         * posix/regex.h: Define __restrict_arr correctly.
6145
6146 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
6147
6148         * iconvdata/ibm1163.c: New file.
6149         * iconvdata/ibm1163.h: New file.
6150         * iconvdata/ibm1164.c: New file.
6151         * iconvdata/ibm1164.h: New file.
6152         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
6153         * iconvdata/Makefile: Likewise.
6154         * iconvdata/testdata/IBM1163: New file.
6155         * iconvdata/testdata/IBM1163..UTF8: New file.
6156         * iconvdata/testdata/IBM1164: New file.
6157         * iconvdata/testdata/IBM1164..UTF8: New file.
6158         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6159
6160         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
6161         * iconvdata/ibm1124.h: Likewise.
6162         * iconvdata/ibm1132.h: Likewise.
6163         * iconvdata/ibm1133.h: Likewise.
6164         * iconvdata/ibm1160.h: Likewise.
6165         * iconvdata/ibm1161.h: Likewise.
6166         * iconvdata/ibm1162.h: Likewise.
6167         * iconvdata/ibm856.h: Likewise.
6168         * iconvdata/ibm922.h: Likewise.
6169         * iconvdata/ibm930.h: Likewise.
6170         * iconvdata/ibm932.h: Likewise.
6171         * iconvdata/ibm933.h: Likewise.
6172         * iconvdata/ibm935.h: Likewise.
6173         * iconvdata/ibm937.h: Likewise.
6174         * iconvdata/ibm939.h: Likewise.
6175         * iconvdata/ibm943.h: Likewise.
6176         * iconvdata/ibm930.c: Pretty printing.
6177         * iconvdata/ibm937.c: Avoid access accross array boundary.
6178
6179         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
6180         the current locale's codeset.
6181         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
6182         empty input string.
6183         * iconv/iconv_prog.c: Pass empty strings as default value for to-
6184         and from-charset.  Don't determine locale's charset here.
6185
6186         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
6187         as the old _IO_flush_all but lock only if parameter is nonzero.
6188         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
6189         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
6190         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
6191         if libio is used [PR libc/2575].
6192
6193 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
6194
6195         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
6196         __signbitl): Only define for ISO C99.
6197
6198 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
6199
6200         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
6201         herrnop to NETDB_INTERNAL if we run out of buffer space.
6202
6203 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
6204
6205         * nss/nss_files/files-XXX.c (internal_getent): Correct input
6206         overflow test for platforms with signed char.
6207         Reported by Andrew Haley <aph@cambridge.redhat.com>.
6208
6209 2001-11-28  Bruno Haible  <bruno@clisp.org>
6210
6211         * locale/programs/simple-hash.c (lookup_2): Remove function.
6212         (insert_entry_2): Call lookup instead of lookup_2.
6213
6214 2001-03-04  Bruno Haible  <bruno@clisp.org>
6215
6216         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
6217
6218 2001-10-31  Bruno Haible  <bruno@clisp.org>
6219
6220         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
6221
6222 2001-03-21  Bruno Haible  <bruno@clisp.org>
6223
6224         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
6225         chokes on empty macro arguments.
6226         * intl/plural.y: Add #pragma for alloca on AIX 3.
6227
6228 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
6229
6230         * intl/dcigettext.c (guess_category_value): Only implement for
6231         glibc.  Otherwise rely on function _nl_locale_name which isn't
6232         present in the glibc sources.
6233
6234 2001-09-24  Bruno Haible  <bruno@clisp.org>
6235
6236         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
6237         transliteration when building on a glibc system but outside glibc.
6238
6239 2001-09-22  Bruno Haible  <bruno@clisp.org>
6240
6241         * intl/plural-eval.c: New file, extracted from dcigettext.c.
6242         * intl/dcigettext.c (plural_eval): Remove function, moved to
6243         intl/plural-eval.c.
6244         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
6245         Include plural-eval.c.
6246
6247 2001-09-22  Bruno Haible  <bruno@clisp.org>
6248
6249         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
6250         don't start with a digit; nplurals must be positive.
6251
6252 2001-09-02  Bruno Haible  <bruno@clisp.org>
6253
6254         * intl/plural-exp.h: New file, extracted from gettextP.h.
6255         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
6256         * intl/gettextP.h (struct expression, struct parse_args,
6257         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
6258         * intl/loadmsgcat.c: Include plural-exp.h.
6259         (PLURAL_PARSE): Move macro to plural-exp.h.
6260         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
6261         plural-exp.c.
6262         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
6263         EXTRACT_PLURAL_EXPRESSION.
6264         (_nl_unload_domain): Update.
6265         * intl/dcigettext.c: Include plural-exp.h.
6266         * intl/plural.y: Include plural-exp.h, not gettextP.h.
6267         (FREE_EXPRESSION): Move macro to plural-exp.h.
6268         * intl/Makefile (routines): Add plural-exp.
6269         (distribute): Add plural-exp.h.
6270
6271 2001-07-28  Bruno Haible  <bruno@clisp.org>
6272
6273         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
6274         isdigit, tolower argument to 'unsigned char'.
6275         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
6276         'unsigned char'.
6277         * intl/localealias.c (read_alias_file): Cast isspace argument to
6278         'unsigned char'.
6279
6280 2001-10-20  Bruno Haible  <bruno@clisp.org>
6281
6282         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
6283         anyway.)
6284         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
6285         with the variable 'index' in plural_lookup.
6286         * intl/l10nflist.c (strchr): Likewise.
6287         * intl/localealias.c (strchr): Likewise.
6288
6289         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
6290         * intl/bindtextdom.c: Likewise.
6291         * intl/dcigettext.c: Likewise.
6292         * intl/dgettext.c: Likewise.
6293         * intl/dngettext.c: Likewise.
6294         * intl/explodename.c: Likewise.
6295         * intl/finddomain.c: Likewise.
6296         * intl/gettext.c: Likewise.
6297         * intl/l10nflist.c: Likewise.
6298         * intl/loadmsgcat.c: Likewise.
6299         * intl/localealias.c: Likewise.
6300         * intl/ngettext.c: Likewise.
6301         * intl/textdomain.c: Likewise.
6302         * intl/gettext.h: Assume <limits.h> exists.
6303
6304 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
6305
6306         * stdio-common/Makefile (tests): Add scanf11.
6307         * stdio-common/scanf11.c: New file.
6308
6309 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
6310
6311         * version.h (RELEASE): Define as development.
6312         (VERSION): Set to 2.2.90.
6313
6314 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
6315
6316         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
6317         * nis/nss_nis/nis-grp.c: Likewise.
6318         * nis/nss_nisplus/nisplus-grp.c: Likewise.
6319
6320         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
6321         * nis/nss_nis/nis-pwd.c: Likewise.
6322         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
6323
6324         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
6325         * nis/nss_nisplus/nisplus-parser.c: Likewise.
6326         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
6327
6328         * nscd/grpcache.c: Use strtoul instead of atol.
6329         * nscd/pwdcache.c: Likewise.
6330         * nss/getent.c: Likewise.
6331
6332 2001-11-27  Paul Eggert  <eggert@twinsun.com>
6333
6334         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
6335         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
6336
6337 2001-11-19  Bruno Haible  <bruno@clisp.org>
6338
6339         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
6340         90%.
6341         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
6342         improves the quality of the hash function, especially for short
6343         strings.
6344
6345 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
6346
6347         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
6348         are found call conv_error and not input_error [PR libc/2669].
6349
6350         * math/bits/mathcalls.h: Mark ceil and floor as const.
6351         Reported by David Mosberger.
6352
6353 2001-11-21  Jim Meyering  <meyering@lucent.com>
6354
6355         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
6356         Define to be __-prefixed.
6357         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
6358
6359 2001-11-26  Andreas Jaeger  <aj@suse.de>
6360
6361         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
6362         avoid warning.
6363
6364 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
6365
6366         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
6367         initialization.
6368
6369         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
6370         unused variables.  Fix threshold for returning 1.0.
6371
6372         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
6373         argument.
6374
6375         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
6376         remove unused variables.
6377
6378         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
6379
6380         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
6381         include local math header files.
6382
6383 2001-11-22  Andreas Jaeger  <aj@suse.de>
6384
6385         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
6386         avoid warning.
6387
6388 2001-11-21  Andreas Jaeger  <aj@suse.de>
6389
6390         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
6391
6392         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
6393         sys/debugreg.h
6394
6395 2001-11-15  Andreas Jaeger  <aj@suse.de>
6396
6397         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
6398         compilers that support it.
6399
6400         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
6401         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6402         * stdlib/stdlib.h: Likewise.
6403
6404 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
6405
6406         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
6407         statement with gotos.
6408         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
6409
6410 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
6411
6412         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
6413
6414 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
6415
6416         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
6417
6418 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
6419             H.J. Lu  <hjl@gnu.org>
6420
6421         * Versions.def (libc): Add GCC_3.0.
6422         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
6423         if gcc supports this flag.
6424         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
6425         (gcc3): Allow glibc to be compiled with gcc 3.x.
6426         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
6427         * config.make.in (static-libgcc, unwind-find-fde): Add.
6428         * Makerules (build-shlib-helper, build-module-helper): Use it.
6429         * scripts/versions.awk: Make sure GLIBC_ versions come first.
6430         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
6431         necessary.
6432         (_fini): Call __deregister_frame_info_bases if
6433         __register_frame_info_bases was used to register.
6434         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
6435         for GLIBC_2.0.
6436         (__register_frame_info_bases, __register_frame_info_table_bases,
6437         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
6438         * elf/Makefile (routines): Add unwind-dw2-fde.
6439         (shared-only-routines): Add unwind-dw2-fde.
6440         * sysdeps/alpha/gccframe.h: New file.
6441         * sysdeps/arm/gccframe.h: New file.
6442         * sysdeps/generic/framestate.c: New file.
6443         * sysdeps/generic/dwarf2.h: New file.
6444         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
6445         * sysdeps/generic/unwind-dw2-fde.c: New file.
6446         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
6447         * sysdeps/generic/unwind-dw2-fde.h: New file.
6448         * sysdeps/generic/unwind-dw2.c: New file.
6449         * sysdeps/generic/unwind-pe.h: New file.
6450         * sysdeps/generic/unwind.h: New file.
6451         * sysdeps/hppa/gccframe.h: New file.
6452         * sysdeps/i386/gccframe.h: New file.
6453         * sysdeps/m68k/gccframe.h: New file.
6454         * sysdeps/mips/gccframe.h: New file.
6455         * sysdeps/powerpc/gccframe.h: New file.
6456         * sysdeps/s390/gccframe.h: New file.
6457         * sysdeps/sh/gccframe.h: New file.
6458         * sysdeps/sparc/gccframe.h: New file.
6459         * sysdeps/vax/gccframe.h: New file.
6460         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6461         Set on all architectures except ia64.
6462         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
6463         for i386.
6464         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
6465         __deregister_frame_info): Move to elf/Versions.
6466         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
6467         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
6468         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
6469         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
6470         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
6471         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
6472         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
6473         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
6474         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
6475         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
6476         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6477         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6478         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6479         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6480         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6481         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6482         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6483         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6484
6485 2001-11-15  Jeff Law  <law@redhat.com>
6486
6487         * posix/regex.c (uintptr_t): Do not provide a definition if the
6488         system provided one.
6489
6490 2001-11-13  Roland McGrath  <roland@frob.com>
6491
6492         * stdio-common/tmpfile.c: Moved to ...
6493         * sysdeps/generic/tmpfile.c: ... here.
6494         * sysdeps/mach/hurd/tmpfile.c: New file.
6495
6496         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
6497         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
6498         (fopenport): Define as weak alias.
6499
6500         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
6501         * libio/libioP.h: ... to here.
6502
6503 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
6504
6505         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
6506         program header twice.  Construct list with the needed information.
6507
6508 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
6509
6510         * po/ca.po: Update from translation team.
6511
6512         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
6513         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
6514         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
6515         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6516
6517 2001-11-10  Andreas Jaeger  <aj@suse.de>
6518
6519         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
6520         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6521         Contributed by Stephen L Moshier <moshier@mediaone.net>.
6522
6523 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
6524
6525         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
6526         correctly.
6527         * elf/dl-load.c (is_dst): New function.
6528         (_dl_dst_count): Use is_dst to check for DST variable.
6529         (_dl_dst_substitute): Likewise.
6530
6531 2001-11-09  Roland McGrath  <roland@frob.com>
6532
6533         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
6534         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
6535         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
6536         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
6537         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
6538         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
6539         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
6540         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
6541         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
6542         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
6543         * sysdeps/mach/hurd/powerpc/Dist: New file.
6544
6545         * hurd/privports.c (__get_privileged_ports):
6546         Only contact the proc server if necessary for this call.
6547         Suggested by Neal H Walfield <neal@cs.uml.edu>.
6548         Check error return for mach_port_mod_refs.
6549
6550 2001-11-09  Andreas Schwab  <schwab@suse.de>
6551
6552         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
6553
6554 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
6555
6556         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
6557         object is always the last in the list.
6558         (_dl_map_object_from_fd): Delete code to remove from object list
6559         when DF_1_NOOPEN is seen.  This is done in lose.
6560
6561 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
6562
6563         * elf/dl-object.c (_dl_new_object): Various small optimizations.
6564
6565 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
6566
6567         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
6568         HWCAP_CHECK macro code.
6569
6570         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
6571         Now returns MAP_FAILED on error.
6572         * elf/rtld.c: Adjust caller.
6573         * sysdeps/generic/dl-cache.c: Likewise.
6574         * sysdeps/generic/ldsodefs.h: Adjust description.
6575
6576         * elf/dl-version.c (match_symbol): Optimize error handling for size.
6577         (_dl_check_map_versions): Likewise.
6578
6579 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
6580
6581         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
6582         _dl_signal_error directly, always use lose.  Set fd to -1 after
6583         file is closed.
6584         (lose): Don't call close if fd == -1.
6585
6586 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
6587
6588         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
6589          Also fix typo @code {mbsinit} to @code{mbsinit}.
6590
6591 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
6592
6593         * elf/dl-profile.c: Replace state variable with simple flag named
6594         running.  Remove commented-out code.
6595
6596         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
6597         (_dl_init_paths): Likewise.
6598         (_dl_map_object_from_fd): Likewise.
6599         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6600
6601 2001-11-06  Roland McGrath  <roland@frob.com>
6602
6603         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
6604         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
6605
6606         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
6607         sysdeps/powerpc/elf/sysdep.h.
6608         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
6609
6610 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
6611
6612         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
6613         speed.
6614         (process_envvars): Some more optimizations.
6615         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
6616
6617         * elf/elf.h: Add dynamic tag definitions for prelinking.
6618
6619         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
6620         Rewrite code to remove environment varables for SUID binaries.
6621         Small optimization in LD_PROFILE handling.
6622         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
6623         changes.
6624         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6625
6626         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
6627
6628         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
6629         strings.  Change type of second parameter.
6630         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
6631         for last change.
6632
6633         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
6634
6635 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6636
6637         * manual/string.texi: Fix typos.
6638         * manual/examples/argp-ex2.c: Likewise.
6639
6640 2001-11-05  Roland McGrath  <roland@frob.com>
6641
6642         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
6643         the more-specific unix/sysv/linux/powerpc file and breaks everything.
6644         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
6645         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
6646         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
6647         here, put under [__ELF__].
6648
6649 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
6650
6651         * manual/charset.texi: Extensive editing work.
6652         * manual/nss.texi: Likewise.
6653         Changes by Dennis Grace <dgrace@us.ibm.com>.
6654
6655 2001-11-04  Roland McGrath  <roland@frob.com>
6656
6657         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
6658         parameter to dir_mkfile.
6659
6660 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
6661
6662         * string/bits/string2.h (__strndup): If n is smaller than len, set
6663         len to n + 1.
6664         * string/tester.c (test_strndup): New function.
6665         (main): Call it.
6666
6667 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
6668
6669         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
6670
6671         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
6672         * scripts/cpp: New file.
6673
6674         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
6675         for rtld_search_dirs content.  Minor optimizations.
6676
6677 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
6678
6679         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
6680         avoiding unnecessary duplication.
6681
6682 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
6683
6684         * elf/dl-load.c (_dl_map_object): If library was found using
6685         LD_LIBRARY_PATH, don't try RUNPATH list.
6686
6687 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6688
6689         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
6690         Correct second argument of register_dump call.
6691         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
6692         Likewise.
6693
6694 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
6695
6696         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
6697         modules.
6698         * iconvdata/TESTS: Likewise.
6699         * iconvdata/gconv-modules: Likewise.
6700         * iconvdata/ibm1132.c: New file.
6701         * iconvdata/ibm1132.h: New file.
6702         * iconvdata/ibm1133.c: New file.
6703         * iconvdata/ibm1133.h: New file.
6704         * iconvdata/ibm1162.c: New file.
6705         * iconvdata/ibm1162.h: New file.
6706         * iconvdata/testdata/IBM1132: New file.
6707         * iconvdata/testdata/IBM1132..UTF8: New file.
6708         * iconvdata/testdata/IBM1133: New file.
6709         * iconvdata/testdata/IBM1133..UTF8: New file.
6710         * iconvdata/testdata/IBM1162: New file.
6711         * iconvdata/testdata/IBM1162..UTF8: New file.
6712         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
6713
6714         * string/string.h: Fix typo in comment.
6715         * wcsmbs/wchar.h: Likewise.
6716
6717 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
6718
6719         * manual/getopt.texi (getopt_long, getopt_long_only): Include
6720         const in type of longopts parameter.
6721
6722 2001-10-29  Andreas Jaeger  <aj@suse.de>
6723
6724         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
6725
6726 2001-10-29  Kevin Ryde  <user42@zip.com.au>
6727
6728         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
6729         output, clarify `#' behaviour on 0.
6730         (Floating-Point Conversions): Clarify that %g only uses %e when
6731         the exponent would be greater than 1.
6732
6733 2001-10-28  Roland McGrath  <roland@frob.com>
6734
6735         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
6736         * sysdeps/mach/powerpc/machine-sp.h: New file.
6737         * sysdeps/mach/powerpc/sysdep.h: New file.
6738         * sysdeps/mach/powerpc/thread_state.h: New file.
6739
6740         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
6741         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
6742         expect to need the same thing on every platform.
6743
6744         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
6745         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
6746
6747         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
6748         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
6749         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
6750         Move all these assembly-related definitions to ...
6751         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
6752
6753         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
6754         by Peter Bruin <pjbruin@dds.nl>.
6755
6756         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
6757         packing results for a `poll' call.
6758
6759 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
6760
6761         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
6762         correctly.
6763         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
6764         bracket expression.
6765
6766         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6767         nrules value.
6768         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
6769
6770 2001-10-24  H.J. Lu  <hjl@gnu.org>
6771
6772         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
6773         Use __BEGIN_DECLS/__END_DECLS around prototypes.
6774         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
6775
6776 2001-10-21  Jim Meyering  <meyering@lucent.com>
6777
6778         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
6779         this code would end up calling gettext even in packages built
6780         with --disable-nls.
6781         * posix/getopt.c (_): Likewise.
6782         * posix/regex.c (_): Likewise.
6783
6784 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
6785
6786         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6787         lookup not ip6.int.
6788         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6789         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6790
6791 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
6792
6793         * misc/sys/cdefs.h (__attribute_used__): Define.
6794         * elf/rtld.c (_dl_start): Add __attribute_used__.
6795         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6796
6797 2001-10-25  Andreas Schwab  <schwab@suse.de>
6798
6799         * stdlib/a64l.c: Expect least significant digit first.
6800         * stdlib/l64a.c: Produce least significant digit first.
6801         * stdlib/Makefile (tests): Add test-a64l.
6802         * stdlib/test-a64l.c: New file.
6803         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6804
6805 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
6806
6807         * po/sk.po: Update from translation team.
6808
6809 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
6810
6811         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6812
6813 2001-10-18  Andreas Schwab  <schwab@suse.de>
6814
6815         * math/libm-test.inc (print_ulps): Print ulp values rounded to
6816         next whole number.
6817         (print_function_ulps): Likewise.
6818         (print_complex_function_ulps): Likewise.
6819         (print_max_error): Likewise.
6820         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
6821
6822 2001-10-16  Andreas Schwab  <schwab@suse.de>
6823
6824         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6825         implementation.
6826
6827         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6828         BSD_SETJMP or BSD__SETJMP is defined, resp.
6829         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6830         a tail call to __sigsetjmp that would require extending the
6831         caller's frame.
6832         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6833         * sysdeps/m68k/bsd-setjmp.S: Deleted.
6834         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6835         Reported by Jes Sorensen <jes@trained-monkey.org>.
6836
6837 2001-10-16  Andreas Jaeger  <aj@suse.de>
6838
6839         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6840         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
6841         close PR libc/2589.
6842
6843 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
6844
6845         * po/ca.po: New file.  Contributed by the translation team.
6846
6847 2001-10-15  Ralf Baechle  <ralf@gnu.org>
6848
6849         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6850         a varargs prototype.  Remove dependency from kernel header files.
6851
6852         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6853         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6854
6855 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
6856
6857         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6858         to generate hexadecimal identifier.
6859         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6860
6861 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
6862
6863         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6864
6865 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
6866
6867         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6868         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6869         Contributed by Stephen L Moshier <moshier@mediaone.net>.
6870
6871         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6872         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6873         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6874         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6875         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6876         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6877
6878         * timezone/africa: Update from tzdata2001d.
6879         * timezone/asia: Likewise.
6880         * timezone/australasia: Likewise.
6881         * timezone/backward: Likewise.
6882         * timezone/europe: Likewise.
6883         * timezone/leapseconds: Likewise.
6884         * timezone/northamerica: Likewise.
6885         * timezone/southamerica: Likewise.
6886         * timezone/zone.tab: Likewise.
6887
6888 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6889
6890         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6891         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6892
6893 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
6894
6895         * elf/elf.h (PT_TLS): New definition.
6896
6897 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
6898
6899         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6900         bits/errno.h
6901
6902 2001-10-07  Roland McGrath  <roland@frob.com>
6903
6904         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6905
6906 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
6907
6908         * elf/elf.h: Add more ELFOSABI_* constants.
6909
6910 2001-10-04  Ben Collins  <bcollins@debian.org>
6911
6912         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6913         decleration of __need_wchar_t.
6914
6915 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
6916
6917         * string/bits/string2.h (__strsep_g): Add prototype.
6918         (__strsep): Use it.
6919         * string/Versions (__strsep): Remove.
6920         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6921
6922 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
6923
6924         * manua/llio.texi: Clarify file references added by mmap.
6925         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6926
6927 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
6928
6929         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6930         Add sc_loadrs and sc_rbs_bas to match current kernel.
6931
6932 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
6933
6934         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6935
6936         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6937
6938 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
6939
6940         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6941         object has been bumped because of relocation dependency, avoid
6942         duplicates in l_scope.
6943         (show_scope): Fix typos.
6944         * elf/Makefile: Add rules to build and run reldep6.
6945         * elf/reldep6.c: New file.
6946         * elf/reldep6mod0.c: New file.
6947         * elf/reldep6mod1.c: New file.
6948         * elf/reldep6mod2.c: New file.
6949         * elf/reldep6mod3.c: New file.
6950         * elf/reldep6mod4.c: New file.
6951
6952 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
6953
6954         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
6955         sparc64_fixup_plt.
6956         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
6957         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
6958         for non-lazy binding. Fix .plt[32768+] handling.
6959         (elf_machine_plt_value): Don't add addend.
6960         (elf_machine_rela): Call sparc64_fixup_plt instead of
6961         elf_machine_fixup_plt.
6962         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
6963         dynamic linker at 0xfffff800XXXXXXXX.
6964
6965         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
6966
6967 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
6968
6969         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
6970
6971 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
6972
6973         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
6974         declare __cmsg_data field if its size would be bigger than 0.
6975         (CMSG_DATA): Adjust accordingly.
6976         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6977         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
6978         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
6979         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
6980         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6981         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6982         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6983
6984 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
6985
6986         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
6987         * iconvdata/testdata/IBM1160: New file.
6988         * iconvdata/testdata/IBM1160..UTF8: New file.
6989         * iconvdata/testdata/IBM1161: New file.
6990         * iconvdata/testdata/IBM1161..UTF8: New file.
6991         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6992
6993 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
6994
6995         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
6996         UL_SETFSIZE computations better.
6997
6998         * rt/Makefile: Remove use of filter for librt again.
6999
7000         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
7001         UL_SETFSIZE computations better.
7002
7003         * string/Versions: Export __strsep for GLIBC_2.2.5.
7004         * string/bits/string2.h: Define all __STRING_INLINE functions if
7005         _FORCE_INLINES is defined.
7006         Use int instead of char of parameter types.
7007         (__strsep): Don't use __strsep_g.  Don't define it.
7008         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
7009         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
7010         __strcpy_small.
7011         (__stpcpy_a_small): Renamed from __stpcpy_small.
7012         (__strcspn_c1): Don't define if _FORCE_INLINES.
7013         (__strspn_c1): Likewise.
7014
7015 2001-09-22  Ben Collins  <bcollins@debian.org>
7016
7017         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
7018         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
7019         * sysdeps/ia64/bits/sigaction.h: Likewise.
7020         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
7021
7022 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
7023
7024         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
7025
7026 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
7027
7028         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
7029
7030 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
7031
7032         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
7033
7034 2001-09-20  H.J. Lu  <hjl@gnu.org>
7035
7036         * include/dlfcn.h (__RTLD_SPROF): New definiton.
7037         * elf/dl-open.c (dl_open_worker): Return immediately after loading
7038         for __RTLD_SPROF.
7039         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
7040         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
7041
7042 2001-09-20  H.J. Lu  <hjl@gnu.org>
7043
7044         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
7045         don't add 1.
7046
7047 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
7048
7049         * nss/getent.c: Accept -s parameter to overwrite rules in
7050         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
7051
7052         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
7053         with as many ".0" as necessary to form a complete address
7054         inet_network understands.
7055
7056         * nss/getent.c: Various cleanups.  Use simpler and fewer function
7057         calls.
7058
7059 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7060
7061         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
7062         _JMPBUF_UNWINDS.
7063         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
7064
7065 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
7066
7067         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
7068         IBM1161.
7069         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
7070         * iconvdata/ibm1160.c: New file.
7071         * iconvdata/ibm1160.h: New file.
7072         * iconvdata/ibm1161.c: New file.
7073         * iconvdata/ibm1161.h: New file.
7074         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7075
7076 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
7077
7078         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
7079         difference between base address and first PT_LOAD's virtual address,
7080         not the base address.
7081
7082 2001-09-11  Tom Rix  <trix@redhat.com>
7083
7084         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
7085         ifdef for __getopt_clean_environment.
7086         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
7087
7088 2001-09-22  Andreas Jaeger  <aj@suse.de>
7089
7090         * elf/reldep4.c (main): Add proper prototype to fix warning.
7091
7092         * elf/reldep5.c (main): Remove unused variable.
7093
7094         * math/math_private.h: Add prototypes.
7095
7096 2001-09-21  Andreas Jaeger  <aj@suse.de>
7097
7098         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
7099         * sysdeps/x86_64/Dist: New file.
7100         * sysdeps/x86_64/soft-fp/Dist: New file.
7101
7102         * sysdeps/gnu/Dist: Remove eval.c.
7103
7104 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
7105
7106         * malloc/memusage.c (realloc): Don't count already allocated
7107         memory in the sums.
7108         (me): Always use dlsym() to find the real implementations.
7109
7110         * malloc/memusage.sh: Make -n option actually do something.
7111
7112 2001-09-20  Andreas Jaeger  <aj@suse.de>
7113
7114         * elf/elf.h (R_390_NUM): Correct value.
7115
7116         * Versions.def: Add missing versions 2.2.3 for libthread_db and
7117         libpthread.
7118
7119         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
7120         for x86-64, install x86-64 into */lib64.
7121
7122         * shlib-versions: Add x86-64.
7123
7124         * elf/elf.h: Add x86-64 relocations.
7125
7126 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
7127
7128         * po/fr.po: Update from translation team.
7129
7130 2001-09-19  Andreas Jaeger  <aj@suse.de>
7131
7132         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
7133         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
7134         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
7135         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
7136         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
7137         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
7138         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
7139         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
7140         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
7141         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
7142         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
7143         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
7144         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
7145         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
7146         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
7147         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
7148         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
7149         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
7150         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
7151         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
7152         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
7153         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
7154         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
7155         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
7156         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
7157         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
7158         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
7159         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
7160         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
7161         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
7162         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
7163         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
7164         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
7165         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
7166         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
7167         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
7168         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
7169         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
7170         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
7171         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
7172         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
7173         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
7174         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
7175         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
7176         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
7177         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
7178         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
7179         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
7180         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
7181         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
7182         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
7183         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
7184         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
7185         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
7186         * sysdeps/unix/x86_64/sysdep.S: New file.
7187         * sysdeps/unix/x86_64/sysdep.h: New file.
7188         * sysdeps/x86_64/Implies: New file.
7189         * sysdeps/x86_64/Makefile: New file.
7190         * sysdeps/x86_64/Versions: New file.
7191         * sysdeps/x86_64/__longjmp.S: New file.
7192         * sysdeps/x86_64/abort-instr.h: New file.
7193         * sysdeps/x86_64/atomicity.h: New file.
7194         * sysdeps/x86_64/bits/endian.h: New file.
7195         * sysdeps/x86_64/bits/setjmp.h: New file.
7196         * sysdeps/x86_64/bits/string.h: New file.
7197         * sysdeps/x86_64/bp-asm.h: New file.
7198         * sysdeps/x86_64/bsd-_setjmp.S: New file.
7199         * sysdeps/x86_64/bsd-setjmp.S: New file.
7200         * sysdeps/x86_64/dl-machine.h: New file.
7201         * sysdeps/x86_64/elf/initfini.c: New file.
7202         * sysdeps/x86_64/elf/start.S: New file.
7203         * sysdeps/x86_64/ffs.c: New file.
7204         * sysdeps/x86_64/ffsll.c: New file.
7205         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
7206         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
7207         * sysdeps/x86_64/fpu/e_acosl.c: New file.
7208         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
7209         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
7210         * sysdeps/x86_64/fpu/e_expl.c: New file.
7211         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
7212         * sysdeps/x86_64/fpu/e_log10l.S: New file.
7213         * sysdeps/x86_64/fpu/e_log2l.S: New file.
7214         * sysdeps/x86_64/fpu/e_logl.S: New file.
7215         * sysdeps/x86_64/fpu/e_powl.S: New file.
7216         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
7217         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
7218         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
7219         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
7220         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
7221         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
7222         * sysdeps/x86_64/fpu/fegetenv.c: New file.
7223         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
7224         * sysdeps/x86_64/fpu/fegetround.c: New file.
7225         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
7226         * sysdeps/x86_64/fpu/fesetenv.c: New file.
7227         * sysdeps/x86_64/fpu/fesetround.c: New file.
7228         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
7229         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
7230         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
7231         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
7232         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
7233         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
7234         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
7235         * sysdeps/x86_64/fpu/s_atanl.c: New file.
7236         * sysdeps/x86_64/fpu/s_cosl.S: New file.
7237         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
7238         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
7239         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
7240         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
7241         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
7242         * sysdeps/x86_64/fpu/s_logbl.c: New file.
7243         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
7244         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
7245         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
7246         * sysdeps/x86_64/fpu/s_rintl.c: New file.
7247         * sysdeps/x86_64/fpu/s_significandl.c: New file.
7248         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
7249         * sysdeps/x86_64/fpu/s_sinl.S: New file.
7250         * sysdeps/x86_64/fpu/s_tanl.S: New file.
7251         * sysdeps/x86_64/gmp-mparam.h: New file.
7252         * sysdeps/x86_64/hp-timing.c: New file.
7253         * sysdeps/x86_64/hp-timing.h: New file.
7254         * sysdeps/x86_64/htonl.S: New file.
7255         * sysdeps/x86_64/memusage.h: New file.
7256         * sysdeps/x86_64/setjmp.S: New file.
7257         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
7258         * sysdeps/x86_64/stackinfo.h: New file.
7259         * sysdeps/x86_64/sysdep.h: New file.
7260         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
7261
7262         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
7263         L Moshier.
7264
7265 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
7266
7267         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
7268         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
7269
7270 2001-09-18  Andreas Schwab  <schwab@suse.de>
7271
7272         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
7273         list, now that l_scope is a pointer.
7274
7275         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
7276         scope list.
7277
7278 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7279
7280         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
7281         (elf_machine_rela_relative): Add a missing declaration.
7282
7283 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
7284
7285         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
7286         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
7287         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
7288         ldd-rewrite scripts.
7289
7290 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
7291
7292         * elf/ldd.bash.in: Update copyright message.
7293
7294 2001-09-17  H.J. Lu  <hjl@gnu.org>
7295
7296         * hurd/hurdmalloc.c (bcopy): Removed.
7297         (realloc): Replace bcopy with memcpy.
7298         * hurd/path-lookup.c (file_name_path_scan): Likewise.
7299         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
7300         * sunrpc/rpcinfo.c (pmapdump): Likewise.
7301
7302         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
7303         (gethostbyaddr): Likewise.
7304         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
7305
7306 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
7307
7308         * sysdeps/gnu/eval.c: Removed.
7309
7310 2001-09-18  Andreas Jaeger  <aj@suse.de>
7311
7312         * sysdeps/i386/fpu/s_logbl.S: Move to ...
7313         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
7314
7315         * sysdeps/i386/fpu/s_rintl.S: Move to ...
7316         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
7317
7318         * sysdeps/i386/fpu/s_significandl.S: Move to ...
7319         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
7320
7321 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
7322
7323         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
7324         nrules value.
7325
7326 2001-09-14  H.J. Lu  <hjl@gnu.org>
7327
7328         * sysdeps/mips/fpu/libm-test-ulps: Updated.
7329
7330 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
7331
7332         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
7333         Patch by Florian La Roche <laroche@redhat.com>.
7334
7335         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
7336
7337         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
7338         ETHER_CRC_LEN.
7339
7340 2001-09-14  Andreas Schwab  <schwab@suse.de>
7341
7342         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
7343         Sumner <bls@sgi.com>.
7344         * posix/execlp.c: Likewise.
7345
7346 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
7347
7348         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
7349         is already found earlier in the search scope.
7350
7351 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
7352
7353         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
7354         filter.
7355
7356 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
7357
7358         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
7359
7360 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
7361
7362         * config.h.in: Enforce optimization to be used.
7363         * Makeconfig (preprocess-versions): Define ASSEMBLER.
7364         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
7365         * posix/Makefile (annexc-CFLAGS): Define to -O.
7366         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
7367
7368 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
7369
7370         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
7371         Patch by Stephan Kulow.
7372
7373 2001-09-08  Ben Collins  <bcollins@debian.org>
7374
7375         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
7376         usage of RESOLVE() (r_type, not reloc->r_type).
7377
7378 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
7379
7380         * elf/dl-object.c: Avoid allocating extra memory block for name.
7381         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
7382         allocated separately.
7383         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
7384
7385 2001-09-08  H.J. Lu  <hjl@gnu.org>
7386
7387         * po/zh_TW.po: Fix a typo.
7388
7389 2001-09-07  Tom Rix  <trix@redhat.com>
7390
7391         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
7392
7393 2001-08-26  Tom Rix  <trix@redhat.com>
7394
7395         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
7396         command line options.
7397         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
7398         * sysdeps/unix/sysv/aix/start.c: Removed.
7399         * sysdeps/unix/sysv/aix/start-libc.c: New file.
7400         * sysdeps/unix/sysv/aix/init-first.c: New file.
7401         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
7402
7403 2001-09-08  Ben Collins  <bcollins@debian.org>
7404
7405         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
7406         * sysdeps/generic/dl-machine.h: Likewise.
7407         * sysdeps/hppa/dl-fptr.c: Likewise.
7408         * sysdeps/ia64/dl-fptr.c: Likewise.
7409         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7410         * sysdeps/mips/dl-machine.h: Likewise.
7411         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7412         * sysdeps/powerpc/dl-machine.c: Likewise.
7413
7414 2001-09-07  Ben Collins  <bcollins@debian.org>
7415
7416         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
7417
7418         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
7419
7420 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
7421
7422         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
7423         dependencies if necessary.
7424
7425         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
7426         loaded directly) determine length if l_initfini list by iterating
7427         over its elements.  Minor optimizations.
7428         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
7429         for dependency objects.
7430         If object was already loaded check whether any of the dependencies
7431         is already on the relocation dependency list.  If yes, remove the
7432         latter.  Minor optimizations.
7433         * elf/dl-lookup.c (add_dependency): Add check for self reference of
7434         maps here.  Search l_initfini list only if the object was loaded
7435         directly and not only as a dependency.
7436         (_dl_lookup_symbol): Add relocation dependency also if object
7437         is not in global scope.  Remove test for self-reference here.
7438         (_dl_lookup_versioned_symbol): Likewise.
7439         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
7440         element of first name record.
7441         * elf/loadtest.c: Add some more test to recognize early if an object
7442         wasn't unloaded.
7443         * elf/Makefile: Add rules to build and run reldep5.
7444         * elf/reldep5.c: New file.
7445         * elf/reldepmod5.c: New file.
7446         * elf/reldepmod6.c: New file.
7447
7448         * elf/reldep2.c: Fix typo.
7449
7450 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
7451
7452         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
7453         elements.  Change l_scope to be a pointer only.
7454         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
7455         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
7456         here add searchlist of newly open file to the dependency's scope.
7457         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
7458         only searchlist from its scope.  Free own scope array if necessary.
7459         * elf/Makefile (tests): Add dblload and dblunload now.
7460
7461 2001-09-06  Andreas Jaeger  <aj@suse.de>
7462
7463         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
7464         Stephen L Moshier.
7465
7466 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
7467
7468         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
7469         they both fail.
7470         * elf/dblload.c: New file.
7471         * elf/dblloadmod1.c: New file.
7472         * elf/dblloadmod2.c: New file.
7473         * elf/dblloadmod3.c: New file.
7474         * elf/dblunload.c: New file.
7475
7476 2001-09-04  Richard Henderson  <rth@redhat.com>
7477
7478         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
7479         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
7480
7481 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
7482
7483         Correct very misleading message for error in failed runtime relocation.
7484         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
7485         place of the error.
7486         (_dl_signal_cerror): Likewise.
7487         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7488         * elf/dl-close.c: Likewise.
7489         * elf/dl-deps.c: Likewise.
7490         * elf/dl-load.c: Likewise.
7491         * elf/dl-lookup.c: Likewise.
7492         * elf/dl-open.c: Likewise.
7493         * elf/dl-reloc.c: Likewise.
7494         * elf/dl-sym.c: Likewise.
7495         * elf/dl-version.c: Likewise.
7496         * sysdeps/generic/dl-sysdep.c: Likewise.
7497
7498 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
7499
7500         * iconv/strtab.c (strtabinit): Initialize null Strent.
7501         (newstring): Move len == 0 handling...
7502         (strtabadd): ...here.
7503         If len == 1, return null Strent.
7504         When inserting a suffix of an existing string, check if
7505         it is not equal to some suffix already recorded.
7506         Copy left and right members over if adding longer string.
7507
7508 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
7509
7510         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
7511
7512         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
7513         (__syscall_gethostname): Add prototype.
7514
7515 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
7516
7517         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
7518
7519 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
7520
7521         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
7522
7523 2001-08-27  Roland McGrath  <roland@frob.com>
7524
7525         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
7526         short, copy that much into NAME anyway before returning error.
7527
7528 2001-09-01  Richard Henderson  <rth@redhat.com>
7529
7530         * sysdeps/alpha/elf/Dist: Remove file.
7531         * sysdeps/alpha/elf/Makefile: Remove file.
7532         * sysdeps/alpha/elf/crtbegin.S: Remove file.
7533         * sysdeps/alpha/elf/crtend.S: Remove file.
7534         * sysdeps/alpha/elf/initfini.c: New file.
7535
7536 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
7537
7538         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
7539         * iconv/tst-iconv3.c: Likewise.
7540
7541 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
7542
7543         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
7544
7545 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
7546
7547         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
7548         export it.
7549         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
7550         * iconv/iconv_prog.c (insert_cache): New function.
7551         (print_known_names): If cache is used call insert_cache to use the
7552         information from the cache [PR libc/2509].
7553
7554 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
7555
7556         * time/strptime.c (strptime_internal): Recognize 'l' format and
7557         handle it like 'I' for symmetry with strftime.
7558
7559 2001-08-31  Richard Henderson  <rth@redhat.com>
7560
7561         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
7562         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
7563         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
7564         (print_statistics): Make scalar unsigned long long.
7565         * sysdeps/alpha/hp-timing.h: New file.
7566
7567 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
7568
7569         * stdio-common/perror.c (perror): Save errno early, pass it
7570         down to perror_internal.
7571         (perror_internal): Add errnum argument.
7572
7573 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
7574
7575         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
7576         Don't add old memory content for R_ALPHA_REFQUAD.
7577
7578 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
7579
7580         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
7581         memory correctly.
7582
7583         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
7584         instead of open, __close instead of close, __getpagesize instead
7585         of getpagesize.
7586
7587         * string/argz-stringify.c (__argz_stringify): Use __strnlen
7588         instead of strnlen.
7589         * include/string.h (strndupa): Redefine here to use __strnlen
7590         instead of strnlen.
7591         * string/strndup.c (__strndup): Use __strnlen not strnlen.
7592
7593         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
7594         connected).
7595
7596 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
7597
7598         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
7599         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
7600         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
7601         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
7602         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
7603         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
7604         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
7605
7606 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
7607
7608         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
7609
7610 2001-08-30  Andreas Jaeger  <aj@suse.de>
7611
7612         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
7613         contributed Stephen L Moshier.
7614
7615 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
7616
7617         * sunrpc/etc.rpc (sgi_fam): Add.
7618
7619 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
7620
7621         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
7622
7623 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
7624
7625         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
7626         first is from a previous call.
7627         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
7628
7629 2001-08-29  Andreas Schwab  <schwab@suse.de>
7630
7631         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
7632
7633 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7634
7635         * config.make.in (INSTALL_SCRIPT): Define.
7636         * Makeconfig (INSTALL_SCRIPT): Define.
7637         * Makerules (do-install-script): New macro to install scripts using
7638         INSTALL_SCRIPT.
7639         (install-bin-script): New rule to install scripts with
7640         do-install-script.
7641         (install-bin-script-nosubdir): New rule.
7642         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
7643         (distinfo-vars): Add $(install-bin-script).
7644         * Rules (others): Likewise.
7645         * Makefile (glibcbug): Install with install-bin-script.
7646         * debug/Makefile (xtrace): Likewise.
7647         (catchsegv): Likewise.
7648         * elf/Makefile (ldd): Likewise.
7649         * malloc/Makefile (mtrace): Likewise.
7650         * timezone/Makefile (tzselect): Likewise.
7651
7652 2001-08-29  H.J. Lu  <hjl@gnu.org>
7653
7654         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
7655         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
7656         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
7657
7658 2001-08-29  Andreas Schwab  <schwab@suse.de>
7659
7660         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
7661
7662 2001-08-28  H.J. Lu  <hjl@gnu.org>
7663
7664         * Makeconfig (combreloc-LDFLAGS): New variable.
7665         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
7666         * config.make.in (have-z-combreloc): New variable.
7667         * configure.in: Substitute libc_cv_z_combreloc.
7668
7669 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
7670
7671         * po/sv.po: Update from translation team.
7672         * po/fr.po: Likewise.
7673         * po/da.po: Likewise.
7674
7675 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7676
7677         * Makerules: Fix a typo: MD% -> MD5.
7678
7679 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
7680
7681         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
7682         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
7683
7684 2001-08-28  Andreas Jaeger  <aj@suse.de>
7685
7686         * manual/libc-texinfo.sh: Add entry about free manuals.
7687
7688         * manual/contrib.texi (Contributors): Fix cross reference.
7689
7690         * manual/libc.texinfo (Copying): Include freemanuals.
7691
7692         * manual/Makefile (appendices): Add freemanuals.
7693
7694         * manual/freemanuals.texi: New file.
7695         Patch by Brian Youmans <3diff@gnu.org>.
7696
7697         * manual/libm-err-tab.pl: Pretty print more platforms, print a
7698         smaller table.
7699
7700         * manual/math.texi (Errors in Math Functions): Fix grammar, start
7701         table on separate page.
7702         Patch by Brian Youmans <3diff@gnu.org>.
7703
7704 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
7705
7706         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
7707         the connection went down after we first used it try to connect
7708         again and resend the message before printing to the console.
7709         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
7710
7711 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
7712
7713         * string/tst-strlen.c (main): Test strnlen (, -1) too.
7714         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
7715         bit set.
7716
7717 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
7718
7719         * iconv/strtab.c (searchstring): Use correct length for comparison.
7720         (strtabadd): Account total size correct if new string has old string as
7721         substring.
7722
7723 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
7724
7725         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
7726
7727 2001-08-27  Andreas Jaeger  <aj@suse.de>
7728
7729         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
7730
7731         * math/libm-test.inc (j0_test): Add extra tests.
7732         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
7733         not x, in Hankel approximation.
7734         Patches by Stephen L Moshier.
7735
7736 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7737
7738         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
7739         link_map.
7740
7741         * configure.in: Fix test for .rela.dyn section.
7742
7743         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
7744
7745 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
7746
7747         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
7748         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
7749         Pass type_class to _dl_lookup_*.
7750         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
7751         Pass around just type_class instead of noexec, noplt pair.
7752         (_dl_lookup_versioned_symbol): Likewise.
7753         (_dl_lookup_symbol_skip): Pass around just type_class instead of
7754         noexec, noplt pair.
7755         (_dl_lookup_versioned_symbol_skip): Likewise.
7756         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
7757         * elf/do-lookup.h (do_lookup): Likewise.
7758         * include/link.h (struct link_map): Replace noexec and noplt fields
7759         in l_lookup_cache with type_class field.
7760         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
7761         ELF_RTYPE_CLASS_COPY): Define.
7762         Adjust prototypes for _dl_lookup_symbol and
7763         _dl_lookup_versioned_symbol.
7764         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
7765         elf_machine_lookup_noexec_p): Remove.
7766         (elf_machine_type_class): Define.
7767         * sysdeps/arm/dl-machine.h: Likewise.
7768         * sysdeps/hppa/dl-machine.h: Likewise.
7769         * sysdeps/cris/dl-machine.h: Likewise.
7770         * sysdeps/i386/dl-machine.h: Likewise.
7771         * sysdeps/ia64/dl-machine.h: Likewise.
7772         * sysdeps/m68k/dl-machine.h: Likewise.
7773         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7774         * sysdeps/mips/dl-machine.h: Likewise.
7775         * sysdeps/powerpc/dl-machine.h: Likewise.
7776         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7777         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7778         * sysdeps/sh/dl-machine.h: Likewise.
7779         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7780         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7781
7782 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7783
7784         * manual/message.texi (Advanced gettext functions): Change
7785         description of plural forms for Slovak.
7786         Reported by Marcel Telka <marcel@telka.sk>.
7787
7788         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7789         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7790
7791 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
7792
7793         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7794         typo.  Patch by Florian La Roche <laroche@redhat.com>.
7795
7796 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7797
7798         * include/link.h (struct link_map): Add l_lookup_cache element.
7799         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7800         (RESOLVE_MAP): Likewise.
7801         (_dl_relocate_object): Remove cache initialization.
7802         * elf/dl-lookup.c: Rip out cache handling code.
7803         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7804         declarations.
7805
7806         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7807         remove some __builtin_expect.
7808         (_dl_lookup_versioned_symbol): Likewise.
7809
7810         * config.h.in: Add HAVE_Z_COMBRELOC.
7811         * configure.in: Add test for -z combreloc.
7812
7813         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7814         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
7815         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
7816         case to almost no code.
7817
7818 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
7819
7820         * po/tr.po: Update from translation team.
7821
7822 2001-08-24  Andreas Jaeger  <aj@suse.de>
7823
7824         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7825         make clean works.
7826
7827 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7828
7829         * elf/rtld.c (print_statistics): Printf % after percent values.
7830         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7831
7832         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7833         don't have to compute the hash value and initialize current_value.
7834         Move reference_name variable to where it is needed.
7835         (_dl_lookup_versioned_symbol): Likewise.
7836
7837 2001-08-24  Roland McGrath  <roland@frob.com>
7838
7839         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7840         Just test that strerror returns non-null for a few errno codes.
7841
7842 2001-08-23  Roland McGrath  <roland@frob.com>
7843
7844         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7845         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7846
7847         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7848
7849         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7850         __mach_reply_port.
7851
7852 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7853
7854         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7855         returns NULL.
7856
7857         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7858         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7859         doesn't do it.
7860         * elf/rtld.c: Include <sys/param.h>.
7861         * elf/dl-reloc.c: Likewise.
7862
7863 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7864
7865         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7866         empty to prevent junk from being generated.
7867         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7868
7869 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
7870
7871         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7872         records.  Rename endrel to relative, initialize it to r, and use it
7873         in elf_machine_rel_relative calls.  Point r after relative relocs.
7874
7875 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7876
7877         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7878         of R_386_NONE.
7879
7880 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
7881
7882         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7883         necessary.  Undefine newly defined macros at the end.
7884         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7885         Rename from elf_machine_rel_relative.
7886         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7887         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7888         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7889         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7890         Likewise.
7891         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7892         Likewise.
7893         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7894         Fix argument types.
7895         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7896         Fix argument types.
7897         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7898         Likewise.  Fix argument types.
7899         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7900         Likewise.  Fix argument types.
7901         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7902         Fix argument types.
7903         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7904         ElfW(Rel) in argument.
7905         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7906         function.
7907
7908 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
7909
7910         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7911
7912 2001-08-24  Andreas Jaeger  <aj@suse.de>
7913
7914         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7915         Stephen L Moshier <moshier@mediaone.net>.
7916
7917 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7918
7919         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7920         first if RELCOUNT is set.
7921
7922         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7923         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7924         elf_machine_rel_relative.
7925         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7926         Minor optimizations.
7927         * sysdeps/arm/dl-machine.h: Likewise.
7928         * sysdeps/cris/dl-machine.h: Likewise.
7929         * sysdeps/hppa/dl-machine.h: Likewise.
7930         * sysdeps/i386/dl-machine.h: Likewise.
7931         * sysdeps/ia64/dl-machine.h: Likewise.
7932         * sysdeps/m68k/dl-machine.h: Likewise.
7933         * sysdeps/mips/dl-machine.h: Likewise.
7934         * sysdeps/powerpc/dl-machine.h: Likewise.
7935         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7936         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7937         * sysdeps/sh/dl-machine.h: Likewise.
7938         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7939         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7940
7941 2001-08-23  Roland McGrath  <roland@frob.com>
7942
7943         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7944
7945         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
7946         sysdeps/mach version.  Implement counting ("recursive") mutexes
7947         on top of cthreads mutexes.
7948         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
7949
7950         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
7951         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
7952         (__libc_cleanup_region_start, __libc_cleanup_region_end,
7953         __libc_clean_end): Define these to call the cleanup function after
7954         normal exit when they're supposed to.
7955
7956         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
7957         Take new first arg DOIT, a boolean saying whether to really install
7958         any cleanup handler.
7959         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
7960         (__libc_cleanup_end): Likewise.
7961         * sysdeps/generic/bits/libc-lock.h: Same changes.
7962         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
7963         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
7964         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
7965         Likewise.
7966         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
7967         * sysdeps/generic/bits/stdio-lock.h
7968         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
7969
7970 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
7971
7972         * elf/ldconfig.c (search_dir): Remove stale symlinks.
7973
7974 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
7975
7976         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
7977         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
7978         lookups in cache.
7979         (_dl_lookup_versioned_symbol): Likewise.
7980         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
7981         relocation lookup.
7982         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
7983         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
7984         (lookup_cache, lookup_cache_versioned): Add declarations.
7985
7986 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
7987
7988         * stdlib/tst-random.c (main): Swap parameters in fail call.
7989         Patch by Pete Bevin <pete@petebevin.com>.
7990
7991 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
7992
7993         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
7994
7995 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
7996
7997         * malloc/obstack.c: Indent preprocessor directives.
7998         Patch by Jim Meyering <meyering@ascend.com>.
7999
8000         * po/ja.po: Update from translation team.
8001
8002 2001-08-23  Roland McGrath  <roland@frob.com>
8003
8004         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
8005
8006         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
8007         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
8008
8009 2001-08-22  Roland McGrath  <roland@frob.com>
8010
8011         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
8012         __libc_lock_define_recursive.
8013         * elf/dl-open.c: Don't declare it here any more.
8014         * elf/dl-close.c: Likewise.
8015         * elf/dl-lookup.c: Likewise.
8016         * elf/dl-iteratephdr.c: Likewise.
8017         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
8018         __libc_lock_unlock_recursive.
8019         * elf/dl-close.c (_dl_close): Likewise
8020         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
8021         * elf/dl-open.c (_dl_open): Likewise
8022
8023         * sysdeps/generic/bits/libc-lock.h
8024         (__libc_lock_define_recursive): New macro.
8025         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
8026         (_IO_lock_lock): Use __libc_lock_lock_recursive.
8027         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
8028
8029         * conform/conformtest.pl (checknamespace): Sort the output list.
8030
8031         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
8032         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
8033         definitions conditional on [__USE_XOPEN].
8034
8035         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
8036         these unconditionally, not only use [__USE_BSD], so as to match
8037         the sysdeps/unix/sysv/linux files.
8038
8039 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
8040
8041         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
8042         avoid warnings.
8043
8044         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
8045         DL_LOOKUP_ADDRESS.
8046
8047 2001-08-22  Roland McGrath  <roland@frob.com>
8048
8049         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
8050         conditionalization of sa_handler/sa_sigaction member types to
8051         match the sysdeps/unix/sysv/linux file.
8052
8053 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
8054
8055         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
8056         symbol sizes a bit better.
8057
8058         * sysdeps/ia64/strncpy.S: Complete rewrite.
8059         Contributed by Jakub Jelinek <jakub@redhat.com>.
8060
8061         * string/stratcliff.c (main): Add strncpy test.
8062
8063 2001-08-22  Roland McGrath  <roland@frob.com>
8064
8065         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
8066         and don't declare unsetenv or _environ directly.
8067         (unsetenv): Return int, not void.  Use __environ instead of _environ.
8068
8069 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
8070
8071         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
8072         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
8073         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
8074         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
8075         test for cmsg struct size.
8076
8077 2001-04-23  Paul Eggert  <eggert@twinsun.com>
8078
8079         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
8080         Rename __argc to ___argc in prototypes to avoid compatibility
8081         problems with systems that reserve the identifier "__argc".
8082         Similarly for __argv.
8083
8084 2001-08-21  Roland McGrath  <roland@frob.com>
8085
8086         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
8087
8088         * mach/Makefile (tests): Removed.
8089         * mach/hello.c: File removed.
8090
8091 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
8092
8093         * po/sv.po: Update from translation team.
8094
8095         * stdio-common/vfscanf.c: Fix handling of %l[].
8096         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
8097
8098         * libio/Makefile (tests): Add tst-sscanf.
8099         * libio/tst-sscanf.c: New file.
8100
8101         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
8102         * malloc/mtrace.c (tr_where): dli_sname always points to a
8103         non-empty string if != NULL.
8104         Reported by Tim Janik <timj@gtk.org>.
8105
8106 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
8107
8108         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
8109         buf.  Free resources on failure.
8110         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
8111         (makefd_xprt): Likewise.
8112         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8113         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
8114         * sunrpc/auth_unix.c (authunix_create): Likewise.
8115
8116 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
8117
8118         * string/strnlen.c: Remove.
8119         * sysdeps/generic/strnlen.c: New file.
8120         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
8121
8122 2001-08-21  Roland McGrath  <roland@frob.com>
8123
8124         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
8125         as a macro, not an extern inline function.
8126
8127         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
8128         * Versions.def (libc): Add GLIBC_2.2.5 set.
8129         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
8130         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
8131
8132 2001-08-20  Roland McGrath  <roland@frob.com>
8133
8134         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
8135         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
8136
8137 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
8138
8139         * string/bits/string2.h: Remove strnlen optimization here.
8140         * sysdeps/i386/i486/bits/string.h: Add it here.
8141
8142 2001-08-21  Wolfram Gloger  <wg@malloc.de>
8143
8144         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
8145
8146 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
8147
8148         * po/gl.po: Update from translation team.
8149
8150 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
8151
8152         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
8153         * misc/err.c (convert_and_print): Likewise.
8154
8155         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
8156         function calls.
8157
8158 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8159
8160         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
8161         change of the gregset_t type.
8162         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8163
8164 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8165
8166         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
8167
8168 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
8169
8170         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
8171
8172         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
8173
8174 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
8175
8176         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
8177         before calling the cthreads initialization code.
8178
8179 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
8180
8181         * argp/argp-help.c: Fix two problems introduced in last change.
8182
8183         * include/dirent.h: Include <dirstream.h> first.
8184
8185 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
8186
8187         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
8188
8189         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
8190         * sunrpc/xdr_rec.c: Likewise.
8191         * sunrpc/xdr_mem.c: Likewise.
8192         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
8193         * sunrpc/rpc_cmsg.c: Likewise.
8194         * sunrpc/getrpcport.c (getrpcport): Likewise.
8195         * sunrpc/clnt_simp.c (callrpc): Likewise.
8196         * sunrpc/clnt_gen.c (clnt_create): Likewise.
8197         * string/envz.c: Likewise.
8198
8199         * po/ko.po: Update from translation team.
8200
8201         * argp/argp-help.c: Handle wide oriented stderr stream.
8202
8203 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
8204
8205         * sysdeps/generic/strtol.c: Little optimizations.  Add some
8206         __builtin_expect.
8207
8208         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
8209
8210         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
8211         * wcsmbs/wcwidth.c (wcwdith): Likewise.
8212         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
8213
8214         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
8215
8216         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
8217
8218         * time/time.h (struct timespec): Use __time_t for tv_sec element.
8219
8220         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
8221         wchar_t for function declarations and defintions.
8222
8223         * misc/sys/select.h: Define __need_time_t before including <time.h>.
8224         Define suseconds_t if it hasn't happened yet.
8225
8226         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
8227
8228         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
8229
8230         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
8231         <stddef.h>.
8232
8233         * conform/data/stddef.h-data: Remove wint_t.
8234
8235         * conform/conformtest.pl: Change namespace test to take #undef
8236         lines into account.
8237
8238         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
8239
8240         * conform/data/sys/socket.h-data: Add sockatmark.
8241
8242 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
8243
8244         * io/fts.c: Update from recent BSD source.
8245
8246 2001-08-17  Roland McGrath  <roland@frob.com>
8247
8248         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
8249         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
8250         Likewise.
8251
8252 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
8253
8254         * locale/duplocale.c (__duplocale): Also initialize the special
8255         __ctype_* elements.
8256
8257         * conform/data/netdb.h-data: Adjust gai_strerror return type.
8258
8259 2001-08-17  Andreas Jaeger  <aj@suse.de>
8260
8261         * misc/getpass.c: Include wchar.h for prototypes.
8262         * malloc/obstack.c: Likewise.
8263
8264 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
8265
8266         * sunrpc/svc_simple.c (universal): Use __write instead of write.
8267
8268         * wcsmbs/wcscoll.c: Also define __wcscoll.
8269         * include/wchar.h: Declare __wcscoll.
8270
8271         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
8272         * libio/vwprintf.c: Likewise.
8273         * libio/wprintf.c: Likewise.
8274
8275         * iconv/gconv_cache.c: Use __munmap instead of munmap.
8276
8277 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
8278
8279         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
8280         instead of mbrtowc.
8281         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
8282         wcslen, and __wcscoll instead of wcscoll.
8283
8284         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
8285
8286         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
8287         __getuid instead of getuid.
8288
8289         * stdio-common/perror.c (perror): Use __close instead of close.
8290         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8291         * libio/freopen.c (freopen): Likewise.
8292         * libio/freopen64.c (freopen64): Likewise.
8293
8294         * libio/tst-ungetwc2.c (main): Define str const.
8295
8296         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
8297         * libio/fwprintf.c: Also define __fwprintf.
8298         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
8299         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
8300         * assert/assert-perr.c: Likewise.
8301         * assert/assert.c: Likewise.
8302         * gmon/gmon.c: Likewise.
8303         * inet/rcmd.c: Likewise.
8304         * malloc/obstack.c: Likewise.
8305         * misc/err.c: Likewise.
8306         * misc/error.c: Likewise.
8307         * misc/getpass.c: Likewise.
8308         * posix/getopt.c: Likewise.
8309         * resolv/res_hconf.c: Likewise.
8310         * stdio-common/perror.c: Likewise.
8311         * stdio-common/psignal.c: Likewise.
8312         * stdlib/fmtmsg.c: Likewise.
8313         * sunrpc/auth_unix.c: Likewise.
8314         * sunrpc/clnt_perr.c: Likewise.
8315         * sunrpc/clnt_tcp.c: Likewise.
8316         * sunrpc/clnt_udp.c: Likewise.
8317         * sunrpc/clnt_unix.c: Likewise.
8318         * sunrpc/svc_simple.c: Likewise.
8319         * sunrpc/svc_tcp.c: Likewise.
8320         * sunrpc/svc_udp.c: Likewise.
8321         * sunrpc/svc_unix.c: Likewise.
8322         * sunrpc/xdr.c: Likewise.
8323         * sunrpc/xdr_array.c: Likewise.
8324         * sunrpc/xdr_rec.c: Likewise.
8325         * sunrpc/xdr_ref.c: Likewise.
8326         * sysdeps/generic/wordexp.c: Likewise.
8327
8328         * po/it.po: Update from translation team.
8329
8330         * misc/err.c: Handle wide oriented stderr stream.
8331
8332 2001-08-14  Tom Rix  <trix@redhat.com>
8333
8334         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
8335         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
8336
8337 2001-08-13  Tom Rix  <trix@redhat.com>
8338
8339         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
8340         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
8341         and __intptr_t.
8342
8343 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8344
8345         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
8346         Store the access registers to the ucontext structure.
8347         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
8348         Likewise.
8349
8350         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
8351         Load the access registers from the ucontext structure.
8352         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
8353         Likewise.
8354
8355         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
8356         offsets to the new ucontext layout.
8357         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
8358
8359         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
8360         of the ucontext structure.
8361         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8362
8363 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
8364
8365         * misc/error.c (error): Handle wide oriented stderr stream correctly.
8366         (error_at_line): Likewise.
8367
8368         * stdio-common/perror.c (perror): Implement according to standard.
8369         The stream orientation must not be changed if the stream was not
8370         oriented before the call.
8371         * stdio-common/Makefile (tests): Add tst-perror.
8372         * stdio-common/tst-perror.c: New file.
8373
8374
8375 See ChangeLog.12 for earlier changes.