2002-09-10 Alan Modra <amodra@bigpond.net.au>
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-10  Alan Modra <amodra@bigpond.net.au>
2
3         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
4         defined in entry.h.
5         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
6         lowest address for profiling in  __monstartup call.
7         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
8
9 2002-09-14  Roland McGrath  <roland@redhat.com>
10
11         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
12         instead of __NR_pread.
13         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
14         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
15         instead of __NR_pwrite.
16         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
17
18 2002-09-13  Roland McGrath  <roland@redhat.com>
19
20         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
21
22 2002-09-13  Andreas Jaeger  <aj@suse.de>
23
24         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
25         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
26
27 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
28
29         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
30
31 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
32
33         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
34         reading the headers.
35
36 2002-09-12  Roland McGrath  <roland@redhat.com>
37
38         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
39         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
40         find the ELF header.
41
42         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
43         executable if needed, in case it's actually a shared object.
44
45 2002-09-11  Roland McGrath  <roland@redhat.com>
46
47         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
48         l_map_start to adjust l_tls_initimage.
49
50         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
51         when using h_errno and it's not set to NETDB_INTERNAL.
52         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
53
54         * Makefile ($(common-objpfx)testrun.sh): New target.
55         (others): Depend on it.
56         (postclean-generated): Append it.
57
58         * nss/bug-erange.c: New file.
59         * nss/Makefile (tests): Add it.
60
61         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
62         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
63
64         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
65         strncmp, keeps the code smaller for a non-performance-critical case.
66
67         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
68         no longer wrongly matches arbitrary prefixes of NAME.
69         Reported by Jakub Jelinek <jakub@redhat.com>.
70
71 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
72
73         * posix/bug-regex11.c (tests): New array.
74         (main): Rewritten to run more different tests.
75
76 2002-09-10  Roland McGrath  <roland@redhat.com>
77
78         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
79         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
80         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
81
82         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
83         well so we don't get it declared by include/math.h's hidden_proto.
84         Then do hidden_proto for __isnanf locally so hidden_def works right.
85
86         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
87         a cast to turn nl_langinfo return value into an integer.
88
89 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
90
91         * posix/regexec.c (build_trtable): Fix the destination of
92         newline to prevent wrong states from overwriting.
93         Append break statements to optimization.
94
95 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
96
97         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
98         (build_range_exp): Add castings to strlen invocations.
99         (build_collating_symbol): Restore the type of characters from "char"
100         to "unsigned char", and supplement castings.
101         (build_collating_symbol): Likewise.
102         (build_equiv_class): Likewise.
103         (build_charclass): Likewise.
104         (seek_collating_symbol_entry): Likewise.
105         (parse_bracket_exp): Likewise.
106         (build_word_op): Supplement a casting.
107         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
108         (re_string_allocate): Fix castings.
109         (re_string_construct): Likewise.
110         (re_string_construct_common): Likewise.
111         (re_string_realloc_buffers): Likewise.
112         (build_wcs_buffer): Likewise.
113         (build_wcs_upper_buffer): Likewise.
114         (re_string_skip_chars): Likewise.
115         (re_string_reconstruct): Likewise.
116         * posix/regex_internal.h: Restore the type of characters in
117         re_string_t and bracket_elem_t from "char" to "unsigned char".
118         (re_string_elem_size_at): Fix castings.
119         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
120         (transit_state_bkref_loop): Restore the type of characters from
121         "char" to "unsigned char", and append a cast to "char*" pointer in
122         array subscript.
123         (check_node_accept_bytes): Likewise.
124         (find_collation_sequence_value): Likewise.
125
126 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
127
128         * sysdeps/mips/memcpy.S: New file.
129         * sysdeps/mips/memset.S: New file.
130         * sysdeps/mips/fpu/e_sqrt.c:  New file.
131         * sysdeps/mips/fpu/e_sqrtf.c: New file.
132
133         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
134         functional before. Also removed all SHLIB_COMPAT stuff.
135         * fpu/fegetenv.c: Likewise.
136         * fpu/fesetenv.c:: Likewise.
137         * fpu/feupdateenv.c: Likewise.
138         * fpu/fgetexcptflg.c: Likewise.
139         * fpu/fraiseexcpt.c: Likewise.
140
141         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
142
143 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
144
145         * include/math.h (__finite_internal, __finitef_internal,
146         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
147         (isfinite): Remove.
148         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
149         __isinfl, __isnanl): Add hidden_proto.
150         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
151         libm_hidden_proto.
152         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
153         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
154         __is{inf,nan} calls.
155         * stdio-common/printf_size.c (printf_size): Likewise.
156         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
157         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
158         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
159         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
160         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
161         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
162         (__finite): Add hidden_def.
163         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
164         (__finitef): Add hidden_def.
165         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
166         (__finitel): Add hidden_def.
167         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
168         hidden_def.
169         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
170         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
171         libm_hidden_def.
172         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
173         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
174         hidden_def.
175         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
176         (__isinfl): Remove INTDEF.
177         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
178         hidden_def.
179         (__isnanl): Remove INTDEF.
180         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
181         libm_hidden_def.
182         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
183         instead of sin and cos.
184         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
185         Add hidden_def.
186         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
187         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
188         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
189         libm_hidden_def.
190         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
191         Add hidden_def.
192         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
193         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
194         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
195         libm_hidden_def.
196         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
197         libm_hidden_def.
198         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
199         Add hidden_def.
200         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
201         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
202         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
203         libm_hidden_def.
204         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
205         __finitel_internal): Remove aliases.
206         (__finite, __finitef, __finitel): Add hidden_def.
207         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
208         __isnanl_internal): Remove aliases.
209         (__isnan, __isnanf, __isnanl): Add hidden_def.
210         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
211         __isinfl_internal): Remove aliases.
212         (__isinf, __isinff, __isinfl): Add hidden_def.
213         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
214         __fpclassifyl): Add libm_hidden_def.
215         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
216         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
217         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
218         (hidden_defx): Define and use.
219         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
220         libm_hidden_def.
221         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
222         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
223         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
224         Remove INTDEF.
225         (__isnan, __isnanf): Add hidden_def.
226         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
227         (__finitel): Add libm_hidden_def.
228         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
229
230         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
231         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
232         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
233         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
234         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
235         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
236         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
237         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
238         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
239         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
240         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
241         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
242         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
243         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
244         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
245         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
246         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
247         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
248         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
249         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
250         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
251         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
252         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
253         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
254         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
255         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
256         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
257
258 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
259
260         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
261
262 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
263
264         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
265         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
266
267 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
268
269         * string/stratcliff.c: Some more strncpy tests.
270         Patch by Daniel Jacobowitz <drow@mvista.com>.
271
272 2002-09-08  Roland McGrath  <roland@redhat.com>
273
274         * resolv/resolv.h: Include <sys/types.h> for u_long even in
275         the [__need_res_state] case.
276         Reported by Bruno Haible <bruno@clisp.org>.
277
278 2002-09-04  Bruno Haible  <bruno@clisp.org>
279
280         * sysdeps/generic/bits/ustat.h: Comment fix.
281         * io/sys/sendfile.h: Comment fix.
282         * sysdeps/posix/pread.c: Comment fix.
283         * sysdeps/posix/pread64.c: Comment fix.
284         * sysdeps/posix/pwrite.c: Comment fix.
285         * sysdeps/posix/pwrite64.c: Comment fix.
286
287 2002-09-06  Roland McGrath  <roland@redhat.com>
288
289         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
290         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
291         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
292         (_UTSNAME_MACHINE_LENGTH): Likewise.
293         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
294
295 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
296
297         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
298         test for filesystem type name of mount points.
299
300         * include/errno.h: Use errno definition with __thread for now only
301         in libc and ld.so.
302
303         * test-skeleton.c (main): Improve error message for unexpected
304         signal case.
305
306 2002-09-05  Roland McGrath  <roland@redhat.com>
307
308         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
309         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
310
311 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
312
313         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
314         case of failure.
315
316 2002-09-04  Bruno Haible  <bruno@clisp.org>
317
318         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
319         sigset_get_old_mask): Turn into inline functions.
320         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
321         sigset_get_old_mask): Likewise.
322         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
323         sigset_get_old_mask): Likewise.
324         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
325         syntax.
326
327         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
328
329         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
330         default definitions.
331         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
332         _sys_nerr_internal instead of _sys_nerr.
333
334         * nscd/connections.c (handle_request): Declare CALLER inside #if.
335
336 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
337
338         * sysdeps/powerpc/__longjmp.S: Moved to...
339         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
340         * sysdeps/powerpc/add_n.S: Moved to...
341         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
342         * sysdeps/powerpc/addmul_1.S: Moved to...
343         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
344         * sysdeps/powerpc/atomicity.h: Moved to...
345         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
346         * sysdeps/powerpc/backtrace.c: Moved to...
347         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
348         * sysdeps/powerpc/bp-asm.h: Moved to...
349         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
350         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
351         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
352         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
353         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
354         * sysdeps/powerpc/dl-machine.c: Moved to...
355         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
356         * sysdeps/powerpc/dl-machine.h: Moved to...
357         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
358         * sysdeps/powerpc/dl-start.S: Moved to...
359         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
360         * sysdeps/powerpc/gprrest0.S: Moved to...
361         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
362         * sysdeps/powerpc/gprrest1.S: Moved to...
363         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
364         * sysdeps/powerpc/gprsave0.S: Moved to...
365         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
366         * sysdeps/powerpc/gprsave1.S: Moved to...
367         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
368         * sysdeps/powerpc/lshift.S: Moved to...
369         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
370         * sysdeps/powerpc/memset.S: Moved to...
371         * sysdeps/powerpc/powerpc32/memset.S: ...here.
372         * sysdeps/powerpc/mul_1.S: Moved to...
373         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
374         * sysdeps/powerpc/ppc-mcount.S: Moved to...
375         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
376         * sysdeps/powerpc/register-dump.h: Moved to...
377         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
378         * sysdeps/powerpc/rshift.S: Moved to...
379         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
380         * sysdeps/powerpc/setjmp.S: Moved to...
381         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
382         * sysdeps/powerpc/stpcpy.S: Moved to...
383         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
384         * sysdeps/powerpc/strchr.S: Moved to...
385         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
386         * sysdeps/powerpc/strcmp.S: Moved to...
387         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
388         * sysdeps/powerpc/strcpy.S: Moved to...
389         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
390         * sysdeps/powerpc/strlen.S: Moved to...
391         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
392         * sysdeps/powerpc/sub_n.S: Moved to...
393         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
394         * sysdeps/powerpc/submul_1.S: Moved to...
395         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
396         * sysdeps/powerpc/elf/bzero.S: Moved to...
397         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
398         * sysdeps/powerpc/elf/start.S: Moved to...
399         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
400         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
401         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
402         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
403         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
404         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
405         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
406         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
407         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
408         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
409         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
410         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
411         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
412         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
414         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
416         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
418         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
420         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
422         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
424         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
426         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
427         powerpc/powerpc64.
428
429 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
430
431         * FAQ.in: Add powerpc64 to supported targets list. Also state the
432         minimum gcc version is 3.2
433         * README: Add powerpc64 to supported targets list.
434         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
435         Add powerpc64 and machine=powerpc/powerpc64.
436         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
437         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
438         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
439         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
440         * sysdeps/powerpc/powerpc32/Dist: New file.
441         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
442         * sysdeps/powerpc/powerpc32/Implies: New file.
443         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
444         ($(with-fp) = no): Move test to powerpc32/Makefile.
445         ($(subdir) = misc): Move to powerpc32/Makefile.
446         ($(build-shared) = yes): Move to powerpc32/Makefile.
447         ($(subdir) = csu): Move to powerpc32/Makefile.
448         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
449         * sysdeps/powerpc/powerpc32/Makefile: New file.
450         * sysdeps/powerpc/Versions: Remove libgcc functions.
451         * sysdeps/powerpc/powerpc32/Versions: New file.
452         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
453         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
454         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
455         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
456         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
457         ($machine): Add powerpc/powerpc64 to if ... | for
458         libc_cv_slibdir=/libc64.
459         (powerpc*): Set ldd_rewrite_script.
460         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
461         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
463         Add clone.S.
464         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
465         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
466         functions.  Remove GLIBC_2.2 functions except getrlimit and
467         setrlimit.  Moved them to ...
468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
469
470 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
471
472         * libio/tst-atime.c: Include <errno.h>.
473         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
474
475 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
476
477         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
478         warnings of some compilers.
479         (build_collating_symbol): Change the type of characters from
480         "unsigned char" to "char", and append a cast to "char*" pointer in
481         array subscript.
482         (build_collating_symbol): Likewise.
483         (build_equiv_class): Likewise.
484         (build_charclass): Likewise.
485         (re_compile_pattern): Remove incorrect cast.
486         (re_compile_fastmap_iter): Change the type of characters from
487         "unsigned char" to "char", and append a cast to "char*" pointer
488         in array subscript.
489         (parse_bracket_exp): Likewise.
490         * posix/regex_internal.c (re_string_construct_common): Likewise.
491         (re_string_allocate): Likewise.
492         (re_string_construct): Likewise.
493         (re_string_realloc_buffers): Likewise.
494         (build_wcs_buffer): Likewise.
495         (re_string_reconstruct): Likewise.
496         * posix/regex_internal.h: Change the type of characters in
497         re_string_t and bracket_elem_t from "unsigned char" to "char".
498         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
499         warnings of some compilers.
500         (transit_state_bkref_loop): Change the type of characters from
501         "unsigned char" to "char", and append a cast to "char*" pointer in
502         array subscript.
503         (check_node_accept_bytes): Likewise.
504         (find_collation_sequence_value): Likewise.
505
506 2002-09-04  Roland McGrath  <roland@redhat.com>
507
508         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
509         from 1024 to 65536, to avoid buffer overrun.
510
511 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
512
513         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
514
515 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
516
517         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
518         for filesystem.
519
520 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
521
522         * posix/bug-regex11.c: New test.
523         * posix/Makefile (tests): Add bug-regex11.
524
525 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
526
527         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
528         newlocale.
529
530 2002-09-02  Roland McGrath  <roland@redhat.com>
531
532         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
533         __pthread_initialize_minimal and __libc_check_standard_fds to
534         match the generic version.
535
536         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
537         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
538
539         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
540         warnings on platorms where char is unsigned.
541
542 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
543
544         * version.h (VERSION): Bump to 2.2.93.
545
546         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
547
548 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
549
550         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
551         as relocated.
552
553 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
554
555         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
556
557 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
558
559         * locale/localeinfo.h (struct locale_data): Add private.ctype.
560         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
561         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
562         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
563         (__wcsmbs_load_conv): Remove const from argument.
564         (_nl_cleanup_ctype): New proto.
565         (get_gconv_fcts): New function.
566         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
567         (__wcsmbs_to_wc): Rename back to...
568         (to_wc): ... this.
569         (__wcsmbs_gconv_fcts): Rename to...
570         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
571         (lock): Removed.
572         (__libc_setlocale_lock): New extern.
573         (__wcsmbs_load_conv): Remove const from argument.
574         Initialize new_category->private.ctype instead of a global
575         variable.
576         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
577         update_function_ptrs.  No locking is necessary.
578         (_nl_cleanup_ctype): New function.
579         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
580         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
581         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
582         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
583         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
584         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
585         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
586         * wcsmbs/wctob.c (wctob): Likewise.
587         * stdlib/mblen.c (mblen): Likewise.
588         * stdlib/mbtowc.c (mbtowc): Likewise.
589         * stdlib/wctomb.c (wctomb): Likewise.
590         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
591         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
592         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
593         Removed.
594
595 2002-09-02  Roland McGrath  <roland@frob.com>
596
597         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
598
599 2002-09-01  Roland McGrath  <roland@redhat.com>
600
601         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
602         Variable declarations removed.
603         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
604         these functions to replace them.
605         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
606         functions plus an indirection rather than the old global variables.
607         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
608         Macros removed.
609         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
610         inline functions.
611         * ctype/ctype-info.c: Revert last reversion back the other way.
612         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
613         Define real function versions of include/ctype.h inlines here.
614         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
615         __ctype_tolower_loc, __ctype_toupper_loc.
616         * locale/lc-ctype.c: Revert last reversion back the other way.
617         (_nl_postload_ctype): If current thread uses the global locale,
618         update its tsd vars.
619         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
620         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
621         CTYPE_TOLOWER, CTYPE_TOUPPER.
622
623         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
624         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
625         from __libc_tsd_threadvar_location.
626         (__libc_tsd_set, __libc_tsd_get): Update uses.
627
628 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
629
630         * ctype/ctype.h: Undo the patch before the last one.  Put back the
631         macro definitions for the standard functions to access the
632         classification and mapping arrays.
633         * include/ctype.h: Partly revert last patch.  Move the macro
634         definitions for the exported functions back to the public header.
635         #undef all the macros defined here before redefining.
636         * ctype/ctype-info.c: Revert last patch.
637         * locale/lc-ctype.c: Revert last patch.
638
639         * ctype/Makefile (routines): Add isctype.
640         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
641         * ctype/ctype.h: Add declaration of isctype.
642         * include/ctype.h: Declare __isctype.
643         * ctype/isctype.c: New file.
644
645 2002-09-01  Roland McGrath  <roland@redhat.com>
646
647         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
648         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
649
650         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
651
652         * locale/findlocale.c (_nl_remove_locale): Don't search in
653         _nl_locale_file_list if DATA->alloc is ld_archive.
654         Use _nl_unload_locale to do the rest of the work.
655
656         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
657         of new structure to UNDELETABLE.
658
659         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
660         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
661         towlower, towupper): Macros removed.
662         * ctype/ctype.h (__tobody): Put parens around macro argument.
663         (__isctype): Macro removed.
664         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
665         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
666         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
667         tolower, toupper): Macros and inlines removed.
668         * include/ctype.h [! NOT_IN_libc]
669         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
670         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
671         tolower, toupper): Define here instead, using _NL_CURRENT.
672         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
673         using _NL_CURRENT.
674         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
675         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
676         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
677         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
678         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
679         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
680         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
681         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
682         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
683         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
684         (ISSORTMASK): Update use.
685         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
686         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
687         (_nss_files_getENTNAME_r): Likewise.
688         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
689         Likewise.
690
691         * Makerules (all-nonlib): Renamed from all-tests.
692         Include $(others) here too.
693         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
694         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
695         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
696         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
697         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
698         the program modules via cppflags-iterator.mk.
699         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
700         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
701
702 2002-08-31  Roland McGrath  <roland@redhat.com>
703
704         * posix/tst-getconf.sh: If no third arg, work with static linking.
705
706         * locale/categories.def (LC_TIME): No more _nl_postload_time.
707
708         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
709         [_NL_CURRENT_INDIRECT].
710
711 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
712
713         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
714
715 2002-08-31  Roland McGrath  <roland@redhat.com>
716
717         * locale/newlocale.c (__newlocale): Don't use strdup for names.
718         Instead, make the single allocation of the structure larger to hold
719         the name strings.
720         * locale/duplocale.c (__duplocale): Don't strdup names individually.
721         Instead, calculate size for a single allocation and copy into it.
722         * locale/freelocale.c (__freelocale): Don't free names individually.
723
724         * locale/newlocale.c (__newlocale): Don't leak old data or names.
725
726         * locale/xlocale.h (__locale_struct): Move __names member last,
727         for binary compatibility.
728
729         * locale/duplocale.c (__duplocale): Free names from the right array.
730
731         * locale/uselocale.c (__uselocale): Return previous locale when
732         setting a new one.
733
734         * locale/newlocale.c: Commit changes from 2002-08-30
735         batch where I failed to commit this file:
736         (__newlocale): Fill in __names array.
737
738 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
739
740         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
741         errlist-compat.c if versioning==yes.
742
743 2002-08-31  Andreas Jaeger  <aj@suse.de>
744
745         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
746         external functions with hidden attribute.
747         (elf_machine_rela): Optimize.
748
749         * sysdeps/x86_64/memset.S: New file.
750         * sysdeps/x86_64/bzero.S: New file.
751         * sysdeps/x86_64/stpcpy.S: New file.
752         * sysdeps/x86_64/strcat.S: New file.
753         * sysdeps/x86_64/strchr.S: New file.
754         * sysdeps/x86_64/strcpy.S: New file.
755         * sysdeps/x86_64/strcspn.S: New file.
756         * sysdeps/x86_64/strlen.S: New file.
757         * sysdeps/x86_64/strpbrk.S: New file.
758         * sysdeps/x86_64/strspn.S: New file.
759         * sysdeps/x86_64/strcmp.S: New file.
760         * sysdeps/x86_64/strtok_r.S: New file.
761         * sysdeps/x86_64/strtok.S: New file.
762         * sysdeps/x86_64/memcpy.S: New file.
763         * sysdeps/x86_64/mempcpy.S: New file.
764
765         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
766
767         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
768
769 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
770
771         * stdio-common/Makefile (generated): Add errlist-compat.c.
772
773         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
774
775         * locale/localeinfo.h: Pretty printing.
776
777         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
778         form_number handling.
779
780 2002-08-31  Andreas Jaeger  <aj@suse.de>
781
782         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
783         double tests.
784
785         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
786         __start_context.
787
788         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
789
790         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
791
792         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
793         registers used for passing args.
794
795         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
796         all needed registers.
797
798         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
799         registers.
800
801         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
802         registers.
803
804 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
805
806         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
807         always_inline attribute.
808
809 2002-08-30  Roland McGrath  <roland@redhat.com>
810
811         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
812         presume it's the stub and bail without error.
813
814         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
815         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
816
817         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
818
819         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
820         macros replace the i686 versions for 64-bit mode.
821
822         * locale/duplocale.c: Include <string.h>.
823
824         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
825         [_LIBC] (category_to_name): Don't define the function.  Instead
826         define a macro using _nl_category_names.
827
828         * locale/xlocale.h (struct __locale_struct): New member `__names'.
829         * locale/xlocale.c (_nl_C_locobj): Update initializer.
830         * locale/global-locale.c (_nl_global_locale): Likewise.
831         * locale/duplocale.c (__duplocale): strdup __names elements.
832         * locale/freelocale.c (__freelocale): Free __names elements.
833         * locale/localename.c (_nl_current_names): Variable removed.
834         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
835         * locale/localeinfo.h (_nl_current_names): Removed decl.
836         * locale/setlocale.c: Use _nl_global_locale->__names in place of
837         _nl_current_names throughout.
838
839         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
840
841         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
842         and sys_nerr in the output file.
843
844         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
845         * scripts/cpp: Just use the environment variable.
846
847         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
848         * libio/tst-mmap-offend.c (do_test): Likewise.
849         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
850         * libio/tst-mmap-eofsync.c (do_test): Likewise.
851         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
852
853         * locale/localename.c: If the current locale is the global locale, use
854         _nl_current_names; otherwise use the locale object.
855
856 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
857
858         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
859         'm' to enable mmap I/O.
860         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
861         former wasn't used (anymore?).
862         (_IO_FLAGS2_MMAP): New define.
863         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
864         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
865         _IO_FLAGS2_MMAP bit is set.
866         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
867         Enable mmap-using mode only if 'm' was set.
868
869 2002-08-29  Roland McGrath  <roland@frob.com>
870
871         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
872
873         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
874         Change argument type from int to intptr_t.
875
876         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
877         initializer on [! _HURD_THREADVAR_H] (bad kludge).
878         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
879         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
880         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
881
882         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
883
884         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
885
886         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
887
888         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
889         * assert/assert-perr.c: Add libc_hidden_def.
890         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
891
892         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
893         found at all.
894         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
895         sys_errlist stuff to ...
896         * sysdeps/unix/sysv/linux/Versions: ... here.
897
898         * mach/mach.h: Include <features.h>.
899
900 2002-08-29  Roland McGrath  <roland@redhat.com>
901
902         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
903         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
904         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
905
906         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
907
908         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
909         (norm_add_slashes): alloca -> __alloca
910
911 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
912
913         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
914         string_malloced, it is unlikely to be set.
915         Only call free with non-NULL workspace.
916         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
917         -mcpu=ultrasparc, not only tune for it.
918         (ASFLAGS*): Set unconditionally.
919
920         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
921         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
922         p_vaddr/p_offset when computing LOADADDR.
923
924 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
925
926         * version.h (VERSION): Bump to 2.2.92.
927
928         * time/Makefile (tst-ftime_l-ENV): New variable.
929
930         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
931
932         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
933         <U017A>, <U017D> and <U0179>. Add missing mappings.
934         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
935
936         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
937         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
938         (struct tostruct): Use ACRINDEX as type for link field.
939         (statuc gmonparam): Likewise for froms.
940         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
941         kcount and froms.
942         (write_call_graph): Use correct type for from_index and to_index.
943         * gmon/mcount.c: Use correct types for frompcindex and toindex
944         variables.
945         Patches by Dan Kegel <dank@kegel.com>.
946
947         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
948         canonical name.
949
950         * time/strptime.c (ISSPACE): New #define.  Use isspace or
951         __isspace_l.  Replace calls to isspace.
952         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
953
954 2002-08-29  Roland McGrath  <roland@redhat.com>
955
956         * string/tst-strxfrm.c: Remove __ from function names.
957
958 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
959
960         * include/wchar.h: Declare __mbsrtowcs_l.
961         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
962         * wcsmbs/mbsrtowcs.c: Add support for compilation with
963         USE_IN_EXTENDED_LOCALE_MODEL.
964         * wcsmbs/mbsrtowcs_l: New file.
965         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
966         define as static.  Change all uses.
967         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
968         Change all callers.
969         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
970         * time/strftime.c: When translating for the extended locale model
971         use the _l functions.
972         * time/Makefile (tests): Add tst-ftime_l.
973         * time/tst-ftime_l.c: New file.
974
975 2002-08-28  Roland McGrath  <roland@redhat.com>
976
977         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
978         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
979         from _nl_find_locale ok if for _nl_C_name.
980
981         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
982         iterator to refer to each category's _nl_current_LC_FOO symbol, so
983         we know they are all linked in.
984
985         * NEWS: Added 2.2.6 text from 2.2 branch version.
986
987         * time/strptime.c (strptime_internal): Remove spurious const.
988
989         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
990         _nl_select_era_entry): Moved to ...
991         * time/era.c: ... here, new file.
992         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
993         Add internal_function to definitions.  Take an additional argument
994         giving the `struct locale_data *' to use.
995         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
996         _nl_parse_alt_digit): Moved to ...
997         * time/alt_digit.c: ... here, new file.
998         * time/lc-time-cleanup.c: New file.
999         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1000         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1001         (_nl_cleanup_time): Declare it.
1002         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1003         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1004         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1005         * time/strftime.c: Pass locale data to helper functions.
1006         * time/strptime.c: Likewise.
1007
1008         * locale/localeinfo.h (struct locale_data): New member `private'
1009         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1010         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1011         * locale/C-collate.c: Update initializer.
1012         * locale/C-identification.c: Likewise.
1013         * locale/C-measurement.c: Likewise.
1014         * locale/C-telephone.c: Likewise.
1015         * locale/C-address.c: Likewise.
1016         * locale/C-name.c: Likewise.
1017         * locale/C-paper.c: Likewise.
1018         * locale/C-time.c: Likewise.
1019         * locale/C-numeric.c: Likewise.
1020         * locale/C-monetary.c: Likewise.
1021         * locale/C-messages.c : Likewise.
1022         * locale/C-ctype.c: Likewise.
1023
1024         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1025         Redefine this too.
1026
1027 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1028
1029         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1030         (_rtld_global): Use it.
1031
1032         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1033         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1034         object directory.  Pass all Versions files to the awk script.
1035         * sysdeps/gnu/errlist-compat.c: Removed.
1036         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1037         first Versions file in the search path which has them.
1038         Allow multiple errlist symbol versions to have the same count of
1039         errors.
1040         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1041         of "errlist-compat.c".
1042         * sysdeps/gnu/errlist.c: Regenerated.
1043         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1044         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1045         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1046         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1047         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1048         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1049         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1050         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1051         ECANCELLED if not defined by kernel headers.
1052         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1053         already defined by kernel headers.
1054         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1055         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1056         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1057         is a macro.
1058         * Versions.def (GLIBC_2.3) [librt]: Add.
1059
1060         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1061
1062 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1063
1064         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1065         missing comma to .type directive.
1066
1067 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1068
1069         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1070         unconditionally.
1071         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1072         check.
1073         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1074
1075 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1076
1077         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1078         check to close_and_out close.  Replace return NULL statements where
1079         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1080         when it is no longer needed.
1081
1082 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1083
1084         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1085         string constants.
1086         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1087         * sysdeps/arm/dl-machine.h: Likewise.
1088         * sysdeps/cris/dl-machine.h: Likewise.
1089         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1090         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1091
1092 2002-08-28  Roland McGrath  <roland@redhat.com>
1093
1094         * Makeconfig (default_cflags): Revert unintended change.
1095
1096 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1097
1098         * version.h (VERSION): Bump to 2.2.91.
1099
1100         * configure.in: Disable TLS support by default for now.
1101
1102         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1103
1104         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1105         warnings.
1106
1107         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1108
1109         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1110         fprintf/fwprintf calls.
1111
1112 2002-08-28  Roland McGrath  <roland@redhat.com>
1113
1114         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1115         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1116
1117         * locale/setlocale.c: Declare postload functions weak.
1118
1119         * elf/tst-tls1-static.c: New file.
1120         * elf/tst-tls2-static.c: New file.
1121         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1122
1123         Make uselocale support static linking.
1124         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1125         This file again just defines _nl_C_locobj.
1126         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1127         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1128         using all weak references in the initializer.
1129         * locale/Makefile (aux): Add global-locale.
1130         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1131         these unconditional, along with the tsd decl.
1132         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1133         Define it under these conditions.
1134         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1135         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1136         `extern __thread struct locale_data *const *'.
1137         [NL_CURRENT_INDIRECT]
1138         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1139         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1140         the thread variable _nl_current_LC_FOO and also a special absolute
1141         symbol _nl_current_LC_FOO_used.
1142         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1143         Set each _nl_current_LC_FOO symbol to point into the new locale,
1144         using weak references to test if _nl_current_LC_FOO_used was linked in.
1145         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1146         [NL_CURRENT_INDIRECT]: ... with this one.
1147         (_nl_current, _nl_C): Variables removed.
1148         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1149         weak references to _nl_current_LC_FOO_used.
1150         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1151         (free_category): New function, broken out of ...
1152         (free_mem): ... here.  Call that.
1153         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1154         instead of a loop.
1155
1156         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1157         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1158         it is already absolute.
1159
1160         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1161         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1162         [$(build-static) = yes] (tests-static): New variable.
1163         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1164
1165 2002-08-26  Christoph Hellwig  <hch@lst.de>
1166
1167         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1168         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1169
1170 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1171
1172         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1173
1174         * sysdeps/s390/Dist: Add bits/link.h.
1175
1176         * sysdeps/sh/Dist: New file.
1177
1178         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1179
1180         * sysdeps/wordsize-32/Dist: New file.
1181
1182         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1183         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1184         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1185
1186         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1187         sys/personality.h.
1188
1189         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1190         sparc/dl-brk.S.
1191
1192         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1193
1194         * sysdeps/unix/bsd/sun/Dist: New file.
1195
1196         * sysdeps/unix/bsd/osf/Dist: New file.
1197
1198         * sysdeps/unix/bsd/hp/Dist: New file.
1199
1200         * sysdeps/unix/arm/Dist: New file.
1201
1202         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1203
1204         * sysdeps/mach/hurd/Dist: Add set-init.c.
1205
1206         * sysdeps/i386/Dist: Add bits/link.h.
1207
1208         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1209
1210         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1211
1212         * locale/Makefile (distribute): Add hashval.h.
1213
1214         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1215
1216         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1217
1218         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1219         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1220         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1221         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1222         implementations.
1223         * libio/stdio.h: Likewise.
1224         * locale/locale.h: Likewise.
1225         * math/math.h: Likewise.
1226         * math/bits/mathcalls.h: Likewise.
1227         * setjmp/setjmp.h: Likewise.
1228         * signal/signal.h: Likewise.
1229         * stdlib/stdlib.h: Likewise.
1230         * string/string.h: Likewise.
1231         * time/time.h: Likewise.
1232         * wcsmbs/wchar.h: Likewise.
1233         * wctype/wctype.h: Likewise.
1234
1235 2002-08-28  Roland McGrath  <roland@redhat.com>
1236
1237         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1238
1239 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1240             Roland McGrath <roland@redhat.com>
1241
1242         * locale/hashval.h (compute_hashval): Use prototype defn.
1243         (hashval_t): New macro, defined to unsigned long int
1244         if not already defined.
1245         (compute_hashval): Return hashval_t instead of unsigned long int.
1246         * locale/loadarchive.c (hashval_t): New macro.
1247         * locale/programs/locarchive.c: Include hashval.h directly instead
1248         of simple-hash.h.
1249         (compute_hashval, hashval_t): Define these macros first.
1250         (insert_name): Use archive_hashval instead of compute_hashval.
1251         (add_locale, delete_locales_from_archive): Likewise.
1252
1253 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1254
1255         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1256         hash collisions if be_quiet.
1257
1258 2002-08-27  Roland McGrath  <roland@redhat.com>
1259
1260         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1261         __uselocale): Don't declare these any more.
1262         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1263
1264         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1265         and treat it as an EOF return.
1266         * sysdeps/unix/readdir_r.c: Likewise.
1267
1268         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1269         From Alexandre Oliva <aoliva@redhat.com>.
1270         * sysdeps/gnu/errlist-compat.c: Regenerated.
1271
1272 2002-08-27  Brian Youmans  <3diff@gnu.org>
1273
1274         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1275         wording at request of copyright holder Stephen Moshier.
1276         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1277         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1278         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1279         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1280         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1281         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1282         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1283         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1284         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1285         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1286         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1287         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1288         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1289         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1290
1291 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1292
1293         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1294         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1295         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1296         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1297         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1298         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1299         * wctype/iswctype_l.c (iswctype_l): Likewise.
1300
1301 2002-08-27  Roland McGrath  <roland@redhat.com>
1302
1303         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1304
1305         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1306         * stdlib/stdlib.h: Don't declare __*_l names.
1307         * include/stdlib.h: Declare them here instead.
1308         * include/string.h: Don't declare __*_l names.
1309         * string/string.h: Declare them here instead.
1310         * time/time.h: Don't declare __*_l names.
1311         * include/time.h: Declare them here instead.
1312         * wcsmbs/wchar.h: Don't declare __*_l names.
1313         * include/wchar.h: Declare them here instead.
1314         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1315         Don't declare __*_l names.
1316         * include/wctype.h: Declare them here instead.
1317         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1318         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1319         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1320         * include/langinfo.h: Declare it here with __typeof.
1321
1322         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1323         instead, taking an extra __locale_t argument.
1324         * time/Makefile (routines): Add strptime_l.
1325         * time/time.h (__strptime_l, strptime_l): Declare them.
1326         * time/strptime_l.c: New file.
1327
1328         * time/time.h (__strftime_l, strftime_l): Declare them.
1329         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1330         * time/strftime_l.c: New file.
1331         * time/wcsftime_l.c: New file.
1332         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1333         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1334         strftime_l, wcsftime_l.
1335         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1336         or __wcsftime_l instead, taking an extra __locale_t argument.
1337
1338         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1339         (libc: GLIBC_2.3): ... here.
1340
1341 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1342
1343         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1344
1345         * Makefile (distribute): Add LICENSES.
1346
1347         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1348         sys/debugreg.h.
1349
1350         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1351
1352         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1353
1354         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1355
1356         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1357
1358         * sysdeps/mach/hurd/alpha/Dist: New file.
1359
1360         * sysdeps/arm/Dist: Add bits/link.h.
1361
1362         * sunrpc/Makefile: Distribute thrsvc.
1363
1364         * stdio-common/Makefile: Remove more left-overs from old stdio.
1365
1366         * include/linewrap.h: Removed.
1367
1368         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1369
1370         * intl/Makefile (distribute): Add plural-eval.c.
1371
1372 2002-08-27  Roland McGrath  <roland@redhat.com>
1373
1374         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1375         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1376         Say mtab is in either /var/run or /etc.
1377
1378 2002-08-26  Roland McGrath  <roland@redhat.com>
1379
1380         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1381         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1382
1383         * sysdeps/gnu/Versions: New file.
1384         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1385         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1386         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1387         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1388         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1389         and _sys_nerr_internal instead of anything else.  Make it include
1390         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1391         Make it emit some asm magic if [EMIT_ERR_MAX].
1392         * sysdeps/gnu/errlist.c: Regenerated.
1393         * sysdeps/gnu/errlist-compat.awk: New file.
1394         * sysdeps/gnu/errlist-compat.c: New file (generated).
1395         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1396         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1397         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1398         (SYS_ERRLIST, SYS_NERR): Macros removed.
1399         (sys_nerr, _sys_nerr): Remove these weak aliases.
1400         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1401         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1402         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1403
1404         * include/libc-symbols.h (declare_symbol): New macro.
1405         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1406         * configure.in: New check to define it.
1407         * configure: Regenerated.
1408
1409 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1410
1411         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1412         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1413
1414         * Make-dist: Remove traces of old stdio.
1415         * Makeconfig: Likewise.
1416
1417         * locale/Makefile (localedef-aux): New variable.  Only md5
1418         assigned to it.  These files are not ddistributed in this directory.
1419
1420         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1421         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1422         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1423
1424         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1425
1426         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1427         set h_errno to NO_RECOVERY [PR libc/4360].
1428
1429 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1430
1431         * libio/Makefile (tests): Add bug-fopena+.
1432         * libio/bug-fopena+.c: New file.
1433         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1434         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1435
1436         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1437
1438         * locale/xlocale.c: Fix the last change.  The variable still has
1439         to end in _data.
1440         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1441         (__libc_tsd_set): Add _data prefix to variable name.
1442
1443 2002-08-26  Roland McGrath  <roland@redhat.com>
1444
1445         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1446         macro with inline function.
1447         (sigset_get_old_mask): Likewise.
1448         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1449         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1450         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1451         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1452         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1453         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1454         values.
1455         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1456         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1457
1458 2002-07-06  Bruno Haible  <bruno@clisp.org>
1459
1460         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1461         sigset_get_old_mask): Make it work with larger sigset_t.
1462         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1463         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1464         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1465
1466 2002-08-26  Roland McGrath  <roland@redhat.com>
1467
1468         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1469         * manual/filesys.texi (File Times): Document lutimes and futimes.
1470         * misc/Makefile (routines): Add them.
1471         * misc/Versions (libc: GLIBC_2.3): Likewise.
1472         * sysdeps/generic/lutimes.c: New file.
1473         * sysdeps/generic/futimes.c: New file.
1474         * sysdeps/mach/hurd/lutimes.c: New file.
1475         * sysdeps/mach/hurd/futimes.c: New file.
1476
1477         * manual/filesys.texi (File Times): Add explicit note about null
1478         pointer argument to utimes.
1479
1480 2002-08-26  Roland McGrath  <roland@frob.com>
1481
1482         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1483         (__ifreq): Add a cast.  Remove an unused variable.
1484
1485         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1486         _HURD_THREADVAR_LOCALE.
1487
1488 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1489
1490         * posix/regexec.c (re_search_stub): Return correct match length
1491         if start != 0.
1492         * posix/bug-regex10.c: New test.
1493         * posix/Makefile (tests): Add bug-regex10.
1494
1495 2002-08-26  Brian Youmans  <3diff@gnu.org>
1496
1497         * COPYING.LIB: Replaced with fresh copy from
1498         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1499         suggested copying permission notice now says version 2.1 instead
1500         of version 2.
1501
1502         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1503         from Library GPL.
1504         * crypt/crypt_util.c: Likewise.
1505         * crypt/ufc.c: Likewise.
1506         * elf/dl-conflict.c: Likewise.
1507         * elf/dl-iteratephdr.c: Likewise.
1508         * iconv/iconvconfig.h: Likewise.
1509         * malloc/arena.c: Likewise.
1510         * malloc/hooks.c: Likewise.
1511         * malloc/malloc.c: Likewise.
1512         * posix/glob/Makefile.ami: Likewise.
1513         * posix/glob/Makefile.in: Likewise.
1514         * stdlib/gmp-impl.h: Likewise.
1515         * stdlib/gmp.h: Likewise.
1516         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1517         * sysdeps/generic/strnlen.c: Likewise.
1518         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1519         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1520         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1521         * sysdeps/mach/hurd/spawni.c: Likewise.
1522         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1523         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1524         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1525         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1526         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1527         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1528
1529         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1530         Lesser GPL copying permission notice from 2 to 2.1.
1531         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1532         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1533         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1534         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1535         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1536         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1537         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1538         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1539         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1540         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1541         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1542         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1543         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1544         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1545         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1546         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1547         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1548         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1549         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1550         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1551         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1552         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1553         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1554         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1555         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1556         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1557         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1558         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1559         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1560         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1561         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1562         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1563         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1564         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1565         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1566         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1567         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1568         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1569         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1570         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1571         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1572         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1573         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1574         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1575         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1576         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1577         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1578         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1579         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1580         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1581         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1582         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1583         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1584         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1585         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1586
1587         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1588         Moshier and Lesser GPL copying permission notice, per license from
1589         Moshier.
1590         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1591         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1592         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1593         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1594         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1595         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1596         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1597         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1598         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1599         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1600         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1601         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1602         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1603         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1604
1605         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1606         notice, per license from copyright holder Stephen Moshier.
1607         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1608         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1609         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1610         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1611         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1612         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1613         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1614         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1615         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1616
1617 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1618
1619         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1620         (shared-only-routines): Likewise.
1621
1622 2002-08-26  Roland McGrath  <roland@redhat.com>
1623
1624         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1625         name of "", store a null pointer instead.
1626
1627         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1628         * configure: Regenerated.
1629
1630         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1631         Initialize this instead of __libc_tsd_LOCALE_data.
1632
1633         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1634         ptsname_r to EINVAL.
1635
1636         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1637
1638         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1639         implementations depend on pthreads.
1640         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1641         * rt/tst-aio64.c (do_test): Likewise.
1642         * rt/tst-aio2.c (do_test): Likewise.
1643         * rt/tst-aio3.c (do_test): Likewise.
1644         * rt/tst-aio4.c (do_test): Likewise.
1645         * rt/tst-aio5.c (do_test): Likewise.
1646         * rt/tst-aio6.c (do_test): Likewise.
1647         * rt/tst-aio7.c (do_test): Likewise.
1648
1649         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1650         void so as to avoid compiler warnings.
1651
1652         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1653         _IO_wide_data_FD, which is never used here.
1654
1655         * libio/iofread.c
1656         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1657         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1658         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1659
1660         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1661         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1662
1663         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1664         (closelog): Likewise.
1665
1666 2002-07-06  Bruno Haible  <bruno@clisp.org>
1667
1668         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1669
1670         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1671         * sysdeps/unix/alpha/pipe.S: ... here.
1672         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1673
1674         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1675
1676         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1677         * sysdeps/unix/i386/fork.S: Likewise.
1678         * sysdeps/unix/i386/pipe.S: Likewise.
1679         * sysdeps/unix/i386/wait.S: Likewise.
1680
1681         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1682         * sysdeps/unix/arm/fork.S: Likewise.
1683
1684         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1685         arguments.
1686         (DO_CALL): Swap argument order.
1687         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1688         arguments.
1689         (DO_CALL): Swap argument order.
1690         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1691         arguments.
1692         (DO_CALL): Swap argument order.
1693         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1694         arguments.
1695         (DO_CALL): Swap argument order.
1696         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1697         arguments.
1698         (DO_CALL): Swap argument order.
1699         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1700         arguments.
1701         (DO_CALL): Swap argument order.
1702         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1703         arguments.
1704         (DO_CALL): Swap argument order.
1705
1706         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1707         (L): Define right for ELF.
1708         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1709         Now defined in sysdeps/i386/sysdep.h.
1710
1711         * sysdeps/posix/readv.c: Ansify function definition.
1712         * sysdeps/posix/writev.c: Likewise.
1713
1714         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1715         have the same size. Avoid direct cast from size_t to off_t.
1716
1717         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1718         nul byte in entry[n].ut_user.
1719         (simulate_logout): Likewise.
1720
1721         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1722         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1723         existence of corresponding members of 'struct utmp'.
1724         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1725         !_HAVE_UT_TYPE.
1726
1727         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1728         allocate a buffer of at least BUFSIZ bytes, not just of
1729         sizeof (struct dirent).
1730
1731         * sysdeps/generic/glob.c: Include <limits.h>.
1732         (NAME_MAX): Define a fallback.
1733         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1734         stack.
1735         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1736         (main): Allocate enough room for a 'struct dirent64' on the stack.
1737         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1738         'struct dirent'.
1739
1740         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1741         kernel-features.h.
1742
1743         * inet/htontest.c: Include <sys/types.h>.
1744
1745         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1746
1747         * include/sys/sysctl.h: Comment fix.
1748
1749         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1750         _dl_load_lock.
1751         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1752
1753         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1754
1755         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1756         (__getpeername): New alias.
1757         (__getsockname): New alias.
1758         (__socket): New alias.
1759
1760         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1761
1762         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1763         (__fcntl_internal): New alias.
1764         (__profil): New alias.
1765
1766 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1767
1768         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1769         entry was for getaddr* lookup or not.  Add only matching cache
1770         entry.  Change all callers [PR libc/4317].
1771
1772         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1773         finding the read position [PR libc/4265].
1774         * libio/Makefile (tests): Add bug-rewind2.
1775         * libio/bug-rewind2.c: New file.
1776
1777         * libio/bug-rewind.c: Fix creation of temp file.
1778
1779 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1780
1781         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
1782         neither SUCCESS nor TRYAGAIN [PR libc/4259].
1783         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
1784         to ENOENT if no entry is found.
1785         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
1786         failure.
1787         * nis/nss_compat/compat-initgroups.c: Likewise.
1788         * nis/nss_compat/compat-pwd.c: Likewise.
1789         * nis/nss_compat/compat-spwd.c: Likewise.
1790         * nis/nss_nis/nis-alias.c: Likewise.
1791         * nis/nss_nis/nis-ethers.c: Likewise.
1792         * nis/nss_nis/nis-grp.c: Likewise.
1793         * nis/nss_nis/nis-hosts.c: Likewise.
1794         * nis/nss_nis/nis-initgroups.c: Likewise.
1795         * nis/nss_nis/nis-netgrp.c: Likewise.
1796         * nis/nss_nis/nis-network.c: Likewise.
1797         * nis/nss_nis/nis-proto.c: Likewise.
1798         * nis/nss_nis/nis-publickey.c: Likewise.
1799         * nis/nss_nis/nis-pwd.c: Likewise.
1800         * nis/nss_nis/nis-rpc.c: Likewise.
1801         * nis/nss_nis/nis-service.c: Likewise.
1802         * nis/nss_nis/nis-spwd.c: Likewise.
1803         * resolv/nss_dns/dns-host.c: Likewise.
1804         * resolv/nss_dns/dns-network.c: Likewise.
1805         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
1806         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
1807         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1808         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
1809         * nis/nss_nisplus/nisplus-network.c: Likewise.
1810         * nis/nss_nisplus/nisplus-proto.c: Likewise.
1811         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1812         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
1813         * nis/nss_nisplus/nisplus-service.c: Likewise.
1814         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
1815         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
1816         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
1817         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
1818         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
1819
1820         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
1821         declaring __restore and __restore_rt as hidden (if possible).
1822
1823 2002-08-25  Roland McGrath  <roland@redhat.com>
1824
1825         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
1826
1827         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
1828         (getutent_r_file, internal_getut_r): Updated all callers.
1829         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
1830
1831 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1832
1833         * locale/programs/locale.c: Don't print aliases for non-existing
1834         locales for 'locale -a'.
1835         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
1836
1837 2002-07-19  H.J. Lu  <hjl@gnu.org>
1838
1839         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
1840
1841 2002-07-16  H.J. Lu  <hjl@gnu.org>
1842
1843         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1844         sys/personality.h.
1845         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
1846
1847 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1848
1849         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
1850         not moved ahead of the fputs call.
1851         * elf/tst-tlsmod2.c (in_dso): Likewise.
1852         * elf/tst-tlsmod3.c (in_dso2): Likewise.
1853         * elf/tst-tlsmod4.c (in_dso): Likewise.
1854
1855 2002-08-25  Andreas Schwab  <schwab@suse.de>
1856
1857         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
1858
1859 2002-08-25  Roland McGrath  <roland@redhat.com>
1860
1861         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
1862         resetting handler, to avoid the possibility of a spurious SIGALRM
1863         delivered to the user's handler.
1864         Reported by Amit D. Chaudhary <amitc@brocade.com>,
1865
1866         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
1867         set -fkeep-inline-functions, which is not needed for the current file.
1868
1869         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
1870         (_dl_setup_hash): Add attribute_hidden.
1871         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
1872         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
1873         (_dl_new_object, _dl_map_object_deps): Likewise.
1874         (_dl_map_object_deps_internal): Remove decl.
1875         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
1876
1877         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
1878         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
1879         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
1880         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
1881         instead relying on the compiler to produce only GOTOFF variable refs.
1882
1883 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1884
1885         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
1886
1887         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
1888         inline to avoid defining it in every file which includes this header.
1889
1890         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
1891         defining DONT_USE_BOOTSTRAP_MAP.
1892
1893         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
1894         * libio/tst-mmap-setvbuf.c (main): Likewise.
1895         * libio/tst-widetext.c (main): Likewise.
1896
1897         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
1898         message.
1899         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1900         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1901
1902         * sysdeps/i386/elf/configure.in: Unconditionally define
1903         PI_STATIC_AND_HIDDEN.
1904         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
1905         PI_STATIC_AND_HIDDEN is defined as well.
1906         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
1907
1908 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
1909
1910         * sysdeps/ia64/bzero.S: Define __bzero as well.
1911
1912         * locale/programs/charmap.c (charmap_new_char): Don't use
1913         ULONG_MAX as maximum UCS4 value.
1914
1915         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
1916
1917         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
1918
1919         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
1920         * malloc/malloc.c (mALLINFo): Likewise.
1921
1922         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
1923
1924         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
1925         examining result of _IO_do_flush call.
1926
1927         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
1928         Use prec not spec when sizing buffers.
1929
1930         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
1931         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1932         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
1933         * stdio-common/vfscanf.c (inchar): Likewise.
1934         * misc/efgcvt_r.c (fcvt_r): Likewise.
1935         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
1936         * elf/readlib.c (process_file): Likewise.
1937         * elf/sprof.c (load_profdata): Likewise.
1938         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
1939         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
1940         * locale/programs/charmap.c (charmap_read): Likewise.
1941         * libio/fileops.c: Likewise.
1942         * libio/fmemopen.c: Likewise.
1943         * stdlib/strtod.c: Likewise.
1944         * elf/dl-load.c: Likewise.
1945         * iconv/iconvconfig.c: Likewise.
1946         * iconv/iconv_prog.c (process_block): Likewise.
1947         * elf/rtld.c (dl_main): Likewise.
1948
1949         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
1950         macro to calm down the compiler.
1951
1952         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
1953
1954         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
1955
1956         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
1957         placement of errno definition.
1958         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1959         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
1960         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
1961         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1962         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1963
1964         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
1965         from 1024 to 65536, to avoid buffer overrun.
1966
1967 2002-08-16  Paul Eggert  <eggert@twinsun.com>
1968
1969         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
1970         from 1024 to 65536, to avoid buffer overrun.
1971         * resolv/res_query.c (MAXPACKET): Likewise.
1972
1973 2002-08-24  Andreas Jaeger  <aj@suse.de>
1974
1975         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
1976
1977 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
1978
1979         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
1980         two52 locally.
1981         (log2): Likewise.
1982         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
1983         Patch by Simon Gee <simong@agile.tv>.
1984
1985         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
1986         Prefer reading /proc/stat since it is more uniform across
1987         architectures.
1988
1989         * manual/texinfo.tex: Update to latest official version.
1990
1991         * sysvipc/sys/shm.h: Remove SHMLBA definition.
1992         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
1993         * sysdeps/gnu/bits/shm.h: Likewise.
1994         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1995         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1996         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
1997         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1998         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1999         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2000         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2001         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2002         since this is what the kernel says.
2003
2004         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2005         since ssize_t is needed as well.  Replace const with __const.
2006
2007 2002-08-23  Roland McGrath  <roland@redhat.com>
2008
2009         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2010         __malloc_hook, __realloc_hook, __memalign_hook,
2011         __after_morecore_hook): Variable definitions moved to ...
2012         * malloc/malloc.c: ... here, so as to be before all references.
2013
2014         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2015         global variable reference in an unused asm parameter, to ensure the
2016         compiler has set up the GOT register before we use it.
2017
2018         * malloc/hooks.c: Move variable definitions ahead of uses.
2019         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2020         initializers that make reference to variables they define.
2021
2022 2002-08-23  Andreas Jaeger  <aj@suse.de>
2023
2024         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2025         alloca, free, qsort.
2026
2027         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2028
2029         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2030         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2031
2032         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2033         <hch@lst.de>.
2034         * sysdeps/generic/fgetxattr.c: New file.
2035         * sysdeps/generic/flistxattr.c: New file.
2036         * sysdeps/generic/fremovexattr.c: New file.
2037         * sysdeps/generic/fsetxattr.c: New file.
2038         * sysdeps/generic/getxattr.c: New file.
2039         * sysdeps/generic/listxattr.c: New file.
2040         * sysdeps/generic/lgetxattr.c: New file.
2041         * sysdeps/generic/llistxattr.c: New file.
2042         * sysdeps/generic/lremovexattr.c: New file.
2043         * sysdeps/generic/lsetxattr.c: New file.
2044         * sysdeps/generic/removexattr.c: New file.
2045         * sysdeps/generic/setxattr.c: New file.
2046         * misc/Makefile (headers): Add sys/xattr.h.
2047         (routines): Add *xattr calls.
2048         * misc/Versions: Add *xattr calls with version 2.3.
2049         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2050         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2051         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2052         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2053         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2054         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2055         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2056         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2057
2058 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2059
2060         * sysdeps/powerpc/elf/libc-start.c
2061         (__cache_line_size): Declare.
2062         (__aux_init_cache): New function.
2063         (__libc_start_main): Change type of `auxvec' parameter to
2064         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2065         __aux_init_cache.
2066         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2067         (__cache_line_size): Declare.
2068         (__aux_init_cache): New function.
2069         (DL_PLATFORM_INIT): Define.
2070         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2071         value to select the correct stride for dcbz.
2072
2073 2002-08-22  Andreas Jaeger  <aj@suse.de>
2074
2075         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2076         shmat.
2077
2078 2002-08-22  Roland McGrath  <roland@redhat.com>
2079
2080         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2081         position indicated by locrectab against file bounds before rounding to
2082         page size.  In mapping loop, always set TO before breaking out of
2083         contiguous range coalescing loop.
2084
2085         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2086         (or MAP_COPY if available) instead of MAP_SHARED.
2087
2088         * scripts/firstversions.awk: When encountering a version newer than
2089         the specified earliest version, be sure to emit the specified earliest
2090         version first if any renaming of an older version to that has been.
2091
2092 2002-08-21  Roland McGrath  <roland@redhat.com>
2093
2094         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2095         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2096         (Configuring and compiling): Don't mention older GCC versions any more.
2097         * INSTALL: Regenerated.
2098
2099         * manual/install.texi (Configuring and compiling, Installation,
2100         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2101
2102         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2103         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2104         and with noinline otherwise.  Remove hack alloca use to prevent
2105         inlining, we can ask for it explicitly nowadays.
2106
2107         * dlfcn/bug-dlsym1.c: New file.
2108         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2109         * dlfcn/Makefile (distribute): Add them.
2110         (tests): Add bug-dlsym1 here.
2111         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2112         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2113         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2114
2115 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2116
2117         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2118         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2119         before relocation.
2120         (_dl_start): Don't use local bootstrap_map variable if
2121         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2122         pass bootstrap_map to _dl_start_final in this case either.  Don't
2123         pass start_time to _dl_start_final ever.
2124         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2125
2126         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2127         This cripples the scope lists necessary to search for symbols in
2128         dependencies which are not in the global scope.
2129
2130         * include/setjmp.h (__libc_longjmp): Add declaration.
2131
2132 2002-08-21  Andreas Jaeger  <aj@suse.de>
2133
2134         * sysdeps/x86_64/_mcount.S: Fix assembler.
2135
2136         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2137         with biarch support.
2138
2139 2002-08-21  Andreas Jaeger  <aj@suse.de>
2140
2141         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2142
2143         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2144
2145         * sysdeps/x86_64/machine-gmon.h: New file.
2146         * sysdeps/x86_64/_mcount.S: New file.
2147
2148 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2149
2150         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2151         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2152         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2153         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2154         to TL_INIT_TP.  Otherwise pass 1.
2155         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2156         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2157
2158 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2159
2160         * locale/programs/localedef.c (add_to_readlist): Error about
2161         circular dependencies only if the locale in question hasn't
2162         been finished.
2163         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2164         CTYPE_LOCALE to load_locale.
2165         * locale/programs/locfile.c (locfile_read): Don't include
2166         unneeded but available locales in locale_mask.
2167
2168         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2169         print any messages about enlarging archive.
2170
2171 2002-08-20  Brian Youmans  <3diff@gnu.org>
2172
2173         * manual/contrib.texi: Removed licenses, added acknowledgements
2174         for contributions by Intel, IBM, Craig Metz.
2175         * LICENSES: New file, contains the text of all non-FSF licenses in the
2176         distribution that require putting the notice in the accompanying
2177         documentation.
2178         * README.template, README: Mention LICENSES.
2179
2180         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2181         new one modelled on the modern BSD license, per recent letter
2182         of permission from CMU.
2183         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2184
2185         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2186         from IBM to FSF, per the recent Software Letter.  Changed the
2187         distribution terms from GPL to LGPL.
2188
2189         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2190         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2191         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2192         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2193         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2194         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2195         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2196         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2197         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2198         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2199
2200         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2201         from IBM to FSF, per the recent Software Letter.  Corrected the
2202         text of the copying permission notice to say Lesser GPL instead
2203         of GPL in warranty disclaimer paragraph.
2204         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2205         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2206         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2207         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2208         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2209         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2210         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2211         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2212         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2213         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2214         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2215         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2216         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2217         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2218         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2219         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2220         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2221         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2222         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2223         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2224         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2225
2226         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2227         permission notice to say Lesser GPL instead of GPL in warranty
2228         disclaimer paragraph.
2229         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2230         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2231         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2232         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2233         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2234         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2235         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2236         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2237         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2238         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2239         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2240         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2241         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2242         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2243         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2244         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2245         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2246         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2247         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2248         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2249         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2250         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2251         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2252
2253 2002-08-20  Roland McGrath  <roland@redhat.com>
2254
2255         Fix ABI compatibility with libc compiled with old tools on powerpc.
2256         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2257         and Jack Howarth <howarth@bromo.med.uc.edu>.
2258         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2259         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2260         pass -DHAVE_DOT_HIDDEN for these files.
2261         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2262         __floatdisf.
2263         * sysdeps/powerpc/divdi3.c: New file.
2264         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2265         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2266
2267 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2268
2269         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2270         partially overlapping mappings.  Remove unneeded (char *) casts.
2271         Never allow duplication of ranges in mapped areas.
2272
2273 2002-08-20  Roland McGrath  <roland@redhat.com>
2274
2275         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2276         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2277
2278 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2279
2280         * include/unistd.h: Don't hide _exit.
2281
2282         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2283         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2284         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2285         argument 1 to TLS_INIT_TP.
2286         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2287
2288         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2289
2290         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2291         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2292         memory allocation to...
2293         (allocate_dtv): ...here.  New function.
2294         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2295         call allocate_dtv instead of _dl_allocate_tls_storage.
2296         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2297         (_dl_get_tls_static_info): New function.
2298         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2299         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2300
2301 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2302
2303         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2304         immediately if result == NULL.
2305
2306 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2307
2308         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2309
2310 2002-08-18  Roland McGrath  <roland@frob.com>
2311
2312         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2313         instead of __file_name_split.
2314         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2315
2316         * sysdeps/mach/hurd/dl-sysdep.c
2317         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2318         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2319
2320 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2321
2322         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2323         in change before last: MAX -> MIN.
2324
2325 2002-08-15  Roland McGrath  <roland@redhat.com>
2326
2327         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2328         if seek would go past it.
2329         (mmap_remap_check): If file position is at or past EOF after check,
2330         leave read pointers at EOF and don't seek.
2331
2332         * libio/tst-mmap-offend.c: New file.
2333         * libio/Makefile (tests): Add it.
2334
2335         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2336         the name as passed, rather than the name in the archive dictionary.
2337
2338 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2339
2340         * csu/Makefile: Define elide-routines.os not static-only-routines.
2341
2342         * include/sched.h (__clone): Add varargs at the end.
2343
2344         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2345         case.
2346         (TLS_INIT_HELPER): If defined, use it.
2347         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2348
2349 2002-08-15  Roland McGrath  <roland@redhat.com>
2350
2351         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2352         on L->l_prev; it can happen under rtld --verify too.
2353
2354         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2355         header separately, just map an initial window of 2MB from the file
2356         and remap if that is not large enough to cover the whole header.
2357
2358 2002-08-15  Andreas Jaeger  <aj@suse.de>
2359
2360         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2361         version 2.3.
2362         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2363         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2364         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2365         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2366         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2367         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2368         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2369         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2370         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2371         Patch by Andreas Gruenbacher <agruen@suse.de>.
2372
2373         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2374
2375 2002-08-14  Roland McGrath  <roland@redhat.com>
2376
2377         * locale/locarchive.h (struct locale_category_data): Give this name to
2378         the type of locale_data_t's elements.
2379         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2380         (add_locale): Use that to sort the categories by size and put all
2381         those that fit into two pages into the LC_ALL block, instead of
2382         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2383         (show_archive_content): Detect categories inside LC_ALL block
2384         directly, instead of hard-coding.
2385         (oldlocrecentcmp): Compare just on file locations used.
2386
2387 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2388
2389         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2390         (oldlocrecentcmp): New function.
2391         (enlarge_archive): Re-add locales in the order they were added
2392         to the archive.
2393         (add_locale): Put all the small locale files together, if the small
2394         locale file block would occupy less pages if page size aligned, align
2395         it.
2396         (show_archive_content): Adjust for locale archives optimized for speed.
2397
2398 2002-08-14  Roland McGrath  <roland@frob.com>
2399
2400         * configure.in: Use "MISSING" as not-found value for MIG.
2401         * sysdeps/mach/configure.in: Fatal if mig not found.
2402         * configure, sysdeps/mach/configure: Regenerated.
2403
2404 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2405
2406         * locale/loadarchive.c (archfname): Add missing slash.
2407
2408         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2409         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2410
2411 2002-08-12  Roland McGrath  <roland@redhat.com>
2412
2413         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2414         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2415         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2416         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2417         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2418         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2419         * sysdeps/generic/waitpid.c: Likewise.
2420
2421         * include/net/if.h: New file.  Use libc_hidden_proto
2422         for if_nametoindex and if_indextoname.
2423         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2424         * sysdeps/mach/hurd/if_index.c: Likewise.
2425         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2426
2427         * include/grp.h (setgroups): Add libc_hidden_proto.
2428         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2429         * sysdeps/mach/hurd/setgroups.c: Likewise.
2430         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2431         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2432
2433 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2434
2435         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2436         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2437         * sysdeps/generic/setegid.c (setegid): Likewise.
2438         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2439         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2440         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2441         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2442         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2443         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2444         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2445         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2446         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2447         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2448         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2449         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2450         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2451
2452         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2453         __lxstat_internal, __lxstat64_internal): Remove.
2454         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2455         Add hidden_proto.
2456         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2457         Remove INTDEF where present, remove #undef at the beginning.
2458         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2459         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2460         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2461         * sysdeps/generic/xstat.c (__xstat): Likewise.
2462         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2463         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2464         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2465         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2466         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2467         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2468         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2469         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2470         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2471         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2472         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2473         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2474         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2475         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2476         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2477         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2478         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2479         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2480         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2481         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2482         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2483         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2484         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2485         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2486         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2487         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2488         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2489         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2490         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2491         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2492         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2493         * sysdeps/unix/xstat.c (__xstat): Likewise.
2494
2495         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2496         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2497         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2498         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2499         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2500         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2501         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2502
2503         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2504         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2505         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2506         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2507         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2508         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2509         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2510         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2511         Likewise.
2512         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2513         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2514         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2515         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2516         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2517         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2518         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2519         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2520
2521         * include/string.h (strcoll): Add libc_hidden_proto.
2522         * string/strcoll.c (strcoll): Add libc_hidden_def.
2523
2524         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2525
2526 2002-08-11  Philip Blundell  <philb@gnu.org>
2527
2528         * sysdeps/arm/Makefile: New file.
2529
2530 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2531
2532         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2533         by another '|', end of regex or enclosing ')', clear branch.
2534         * posix/bug-regex9.c: New test.
2535         * posix/Makefile (tests): Add bug-regex9.
2536
2537 2002-08-12  Roland McGrath  <roland@redhat.com>
2538
2539         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2540         start count condition, use TOTAL instead of variable that was never
2541         set.  Fix outer loop termination condition to TOTAL >= after update.
2542
2543         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2544         dl_tls_static_align and dl_tls_static_nelem.
2545
2546 2002-08-11  Roland McGrath  <roland@redhat.com>
2547
2548         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2549         of the TLS macros, otherwise the compiler might not have initialized
2550         the PIC register yet when we use the PLT via asm.
2551         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2552         * elf/tst-tlsmod2.c (in_dso): Likewise.
2553
2554         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2555
2556         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2557         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2558
2559         * include/unistd.h: Use libc_hidden_proto for getdomainname
2560         and getlogin_r.
2561         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2562         * sysdeps/mach/hurd/getdomain.c: Likewise.
2563         * sysdeps/unix/getlogin_r.c: Likewise.
2564         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2565         * sysdeps/generic/getlogin_r.c: Likewise.
2566
2567         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2568         * sunrpc/rtime.c: Add libc_hidden_def.
2569
2570         * include/string.h: Use libc_hidden_proto for basename.
2571         * string/basename.c [_LIBC]: Add libc_hidden_def.
2572
2573         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2574
2575         * locale/loadarchive.c: munmap -> __munmap throughout.
2576
2577         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2578         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2579         * sysdeps/generic/gai_strerror.c: Likewise.
2580
2581         * include/sys/errno.h: New file.
2582
2583         * include/signal.h: No libc_hidden_proto for raise,
2584         __libc_current_sigrtmin, __libc_current_sigrtmax.
2585         These need to be overridden by linuxthreads.
2586         * sysdeps/posix/raise.c: Reverted.
2587         * sysdeps/generic/raise.c: Reverted.
2588         * signal/allocrtsig.c: Reverted.
2589
2590         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2591
2592 2002-08-10  Roland McGrath  <roland@redhat.com>
2593
2594         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2595         * locale/localeinfo.h: Declare it.
2596         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2597         current locale if it's not in the file list.
2598         Call _nl_archive_subfreeres.
2599
2600 2002-08-10  Andreas Jaeger  <aj@suse.de>
2601
2602         * sysdeps/i386/strchr.S: Add comment.
2603
2604 2002-08-10  Roland McGrath  <roland@redhat.com>
2605
2606         * include/wchar.h (putwc): Use libc_hidden_proto.
2607         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2608         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2609         * stdio-common/dprintf.c: Add libc_hidden_def.
2610         * stdio-common/fprintf.c: Likewise.
2611         * stdio-common/sprintf.c: Likewise.
2612         * stdio-common/sscanf.c: Likewise.
2613         * libio/iofwrite.c: Likewise.
2614         * libio/memstream.c: Likewise.
2615         * libio/putwc.c: Likewise.
2616         * stdio-common/perror.c: Likewise.
2617         * sysdeps/posix/remove.c: Likewise.
2618         * sysdeps/generic/remove.c: Likewise.
2619         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2620         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2621
2622 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2623
2624         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2625         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2626         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2627         towlower, towupper): Add libc_hidden_weak.
2628
2629         * include/bits/dlfcn.h: New file.
2630         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2631
2632         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2633         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2634         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2635         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2636         * include/shadow.h (_nss_files_parse_spent): Likewise.
2637         * include/netdb.h (_nss_files_parse_protoent,
2638         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2639         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2640         (LINE_PARSER): Use it.
2641         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2642         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2643
2644         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2645         #endif.
2646
2647         * manual/debug.texi (%MENU%): Remove trailing dot.
2648         Reported by <hayastan132@hotmail.com>.
2649
2650         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2651         aliases.
2652         (lseek): Dummy.
2653         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2654         Likewise.
2655
2656 2002-08-09  Roland McGrath  <roland@redhat.com>
2657
2658         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2659         name to find codeset name (if any) and normalize it.  If the
2660         normalized name differs, look up only that in the archive.
2661         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2662         contains a codeset, normalize the codeset store only the normalized
2663         name in the archive.  If not, add an alias containing the locale's
2664         normalized codeset name.  Apply codeset name normalization when
2665         matching entries in the alias file.
2666
2667         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2668         decrement HEAD->namehash_used here.
2669         (add_locale): Only need to insert name string when name_offset != 0.
2670
2671         * locale/programs/localedef.c (options): Add -A/--alias-file.
2672         (alias_file): New variable.
2673         (parse_opt): Grok -A, set that.
2674         * locale/programs/localedef.h: Declare it.
2675
2676         * locale/locarchive.h (struct locrecent): Add `refs' member.
2677         * locale/programs/locarchive.c (insert_name): New function, broken out
2678         of ...
2679         (add_locale_to_archive): ... here.  Call that.
2680         (add_alias): New function.
2681         (add_locale): New static function, add_locale_to_archive renamed.
2682         (add_locale_to_archive): Call that and use add_alias to add an alias
2683         for the name with codeset if the given name lacks it.
2684         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2685
2686         * locale/Makefile (routines): Add loadarchive.
2687         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2688         (_nl_load_locale_from_archive): New function.
2689         * locale/localeinfo.h: Declare it.
2690         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2691         try _nl_load_locale_from_archive first.
2692
2693         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2694         broken out of _nl_load_locale.
2695         (_nl_load_locale): Call that.
2696         * locale/localeinfo.h: Declare it.
2697         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2698         (struct locale_data): Remove unused member `options'.
2699         * locale/findlocale.c (_nl_remove_locale): Update uses.
2700         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2701         * locale/C-collate.c: Update initializer.
2702         * locale/C-identification.c: Likewise.
2703         * locale/C-measurement.c: Likewise.
2704         * locale/C-telephone.c: Likewise.
2705         * locale/C-address.c: Likewise.
2706         * locale/C-name.c: Likewise.
2707         * locale/C-paper.c: Likewise.
2708         * locale/C-time.c: Likewise.
2709         * locale/C-numeric.c: Likewise.
2710         * locale/C-monetary.c: Likewise.
2711         * locale/C-messages.c : Likewise.
2712         * locale/C-ctype.c: Likewise.
2713
2714         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2715         use CHAR_BIT instead of BITSPERBYTE.
2716
2717         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2718         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2719         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2720         (_nl_remove_locale): Likewise.
2721         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2722
2723         * locale/findlocale.c (_nl_default_locale_path): New variable.
2724         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2725         * locale/localeinfo.h: Declare it.
2726         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2727         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2728         * locale/newlocale.c (__newlocale): Likewise.
2729
2730         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2731         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2732         * sysdeps/generic/morecore.c: Likewise.
2733         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2734         (__libc_current_sigrtmax): Likewise.
2735
2736 2002-08-08  Roland McGrath  <roland@redhat.com>
2737
2738         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2739         * catgets/open_catalog.c (__open_catalog): Likewise.
2740
2741         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2742         from typo INITIAL_NUM_NANES.
2743         (create_archive): Update use.
2744
2745 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2746
2747         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2748
2749 2002-08-08  Roland McGrath  <roland@frob.com>
2750
2751         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2752
2753 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2754
2755         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2756         else and undefine after including wcstol_l.c.
2757         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2758
2759 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2760
2761         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2762
2763 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
2764
2765         * configure.in: Make the test for broken_alias_attribute stricter.
2766
2767 2002-05-24  Robert Love  <rml@tech9.net>
2768
2769         * posix/Makefile (routines): Add sched_getaffinity and
2770         sched_setaffinity.
2771         * posix/sched.h: Add declarations for sched_getaffinity and
2772         sched_setaffinity.
2773         * sysdeps/generic/sched_getaffinity.c: New file.
2774         * sysdeps/generic/sched_setaffinity.c: New file.
2775         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2776         sched_setaffinity.
2777
2778 2002-08-06  Andreas Schwab  <schwab@suse.de>
2779
2780         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
2781
2782 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2783
2784         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
2785         message.
2786
2787         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
2788         It is known to be defined.
2789
2790         * include/string.h: Define index and rindex only if _ISOMAC is not
2791         defined.
2792
2793         * elf/rtld.c: Include <errno.h>.
2794         * sysdeps/generic/libc-tls.c: Likewise.
2795
2796 2002-08-07  Roland McGrath  <roland@redhat.com>
2797
2798         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
2799         it internally.
2800         (precsize_aton): Likewise.
2801
2802         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
2803         the static symbols added in the last change (doofus is me).
2804
2805         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
2806         loop to notice missing categories in a composite name.
2807
2808         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
2809         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
2810         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
2811         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
2812
2813 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2814
2815         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
2816
2817 2002-08-07  Roland McGrath  <roland@redhat.com>
2818
2819         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
2820         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
2821         Reported by Jakub Jelinek  <jakub@redhat.com>.
2822
2823 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
2824
2825         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
2826         division.
2827
2828 2002-08-06  Roland McGrath  <roland@redhat.com>
2829
2830         * include/getopt.h: Put private decls inside [_GETOPT_H].
2831         Use libc_hidden_proto for getopt_long, getopt_long_only.
2832         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
2833         Add libc_hidden_def.
2834
2835         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
2836         Define as a macro for __dl_iterate_phdr.
2837
2838         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
2839         made static.  Add __ name as a strong alias.
2840         (internal_endnetgrent): Likewise.
2841         (internal_getnetgrent_r): Likewise.
2842
2843         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
2844         with no __ prefix.
2845         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
2846         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
2847         all *_l functions with no __ prefix.
2848         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
2849         * ctype/ctype_l.c: Likewise.
2850         * locale/nl_langinfo.c: Likewise.
2851         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
2852         * stdlib/stdlib.h [__USE_GNU]: Likewise.
2853         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
2854         * wctype/wctype.h [__USE_GNU]: Likewise.
2855         * string/strcoll_l.c (strcoll_l): Define as weak alias.
2856         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
2857         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
2858         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
2859         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
2860         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
2861         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
2862         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
2863         (__wcscasecmp_l): Add libc_hidden_def.
2864         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
2865         (__wcsncasecmp_l): Add libc_hidden_def.
2866         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
2867         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
2868         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
2869         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
2870         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
2871         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
2872         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
2873         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
2874         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
2875         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
2876         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
2877         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
2878         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
2879         * wctype/wctype_l.c (wctype_l) Define as weak alias.
2880
2881 2002-08-05  Roland McGrath  <roland@redhat.com>
2882
2883         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
2884         netname2user, host2netname, user2netname, key_gendes.
2885         * sunrpc/netname.c: Add libc_hidden_def.
2886         * sunrpc/key_call.c: Likewise.
2887
2888         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
2889         freeaddrinfo.
2890         * inet/getnameinfo.c: Add libc_hidden_def.
2891         * sysdeps/generic/getaddrinfo.c: Likewise.
2892         * sysdeps/posix/getaddrinfo.c: Likewise.
2893
2894         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
2895         * wcsmbs/wmemchr.c: Add libc_hidden_def.
2896         * wcsmbs/wmemset.c: Add libc_hidden_def.
2897
2898         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
2899         (index, rindex): Define as macros for strchr, strrchr.
2900
2901         * string/envz.c (envz_strip): index -> strchr
2902
2903         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
2904         * sunrpc/rpc_prot.c: Add libc_hidden_def.
2905
2906         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
2907         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
2908
2909         * include/stdlib.h: Use libc_hidden_proto for wctomb.
2910         * stdlib/wctomb.c: Add libc_hidden_def.
2911
2912         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
2913         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
2914         * resolv/herror.c: Likewise.
2915         * inet/rcmd.c: Add libc_hidden_def.
2916         * inet/ruserpass.c: Likewise.
2917         * inet/getnetgrent_r.c: Likewise.
2918
2919         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
2920         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
2921         for svcerr_auth, svcerr_noprog, svcerr_progvers.
2922         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
2923         libc_hidden_def.
2924         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
2925         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
2926
2927         * sysdeps/posix/system.c (do_system): New function, guts broken out of
2928         __libc_system.
2929         (__libc_system): Call it, putting just the line == NULL test here.
2930
2931         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
2932         variables work right.
2933
2934         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
2935         * elf/dl-close.c (_dl_close): Likewise.
2936
2937         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
2938         in6addr_any, in6addr_loopback.  Remove decls for
2939         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
2940         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
2941         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
2942         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
2943         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
2944         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
2945         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
2946         in6addr_loopback.
2947         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
2948
2949         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
2950         ether_aton_r.
2951         * inet/ether_aton_r.c: Add libc_hidden_def.
2952         * inet/ether_ntoa_r.c: Likewise.
2953
2954         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
2955         xprt_unregister.
2956         * sunrpc/svc.c: Add libc_hidden_def.
2957         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
2958         pmap_set, pmap_unset.
2959         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
2960         * sunrpc/pm_getport.c: Likewise.
2961         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
2962         * sunrpc/publickey.c: Add libc_hidden_def.
2963
2964 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
2965
2966         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
2967         the other memset call in this function.
2968
2969         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
2970         at correct index.  Clear BSS region now that memalign is used.
2971
2972 2002-08-05  Roland McGrath  <roland@redhat.com>
2973
2974         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
2975         * sysdeps/generic/uname.c: Add libc_hidden_def.
2976         * sysdeps/mach/hurd/uname.c: Likewise.
2977
2978 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
2979
2980         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
2981         wcspbrk): Add libc_hidden_proto.
2982         * time/strftime.c (my_strftime): Add libc_hidden_def.
2983         (strftime): Remove libc_hidden_def.
2984         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
2985         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
2986         * wcsmbs/wcsspn.c (wcsspn): Likewise.
2987         * wcsmbs/wcscmp.c (wcscmp): Likewise.
2988         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
2989         * wcsmbs/wcscoll.c (wcscoll): Likewise.
2990
2991         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
2992         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
2993         __rpc_thread_createerr): Add libc_hidden_proto.
2994         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
2995         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
2996         __rpc_thread_createerr): Add libc_hidden_def.
2997
2998         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
2999         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3000         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3001         clnt_perror, clnt_sperror): Add libc_hidden_def.
3002         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3003
3004         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3005         libc_hidden_proto.
3006         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3007         * sunrpc/des_soft.c (des_setparity): Likewise.
3008
3009         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3010         Add libc_hidden_proto.
3011         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3012         Add libc_hidden_def.
3013
3014 2002-08-05  Roland McGrath  <roland@redhat.com>
3015
3016         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3017         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3018         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3019         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3020         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3021         old data, abandoning the original memory allocated by rtld at startup,
3022         instead of calling realloc normally.
3023
3024 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3025
3026         * po/fr.po: Update from translation team.
3027
3028 2002-08-04  Roland McGrath  <roland@redhat.com>
3029
3030         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3031         then generate a dummy module under the given name, obeying the
3032         normal rules for the "caller" field.
3033
3034         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3035         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3036
3037         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3038         weak here; we declare it weak or strong in the one place we use it.
3039         * sysdeps/generic/libc-start.c: ... which is here.
3040         Don't make the decl weak if [USE_TLS], since static programs need TLS
3041         setup even when single-threaded.
3042
3043         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3044
3045         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3046         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3047         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3048         all these variables.
3049
3050 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3051
3052         * include/stdio.h: Don't define macro magic to redirect function
3053         calls if _ISOMAC is defined.
3054
3055         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3056         ldouble asin tests.
3057
3058 2002-08-04  Roland McGrath  <roland@redhat.com>
3059
3060         * stdlib/lrand48_r.c: Add libc_hidden_def.
3061
3062         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3063         TCB with __libc_memalign instead of mmap.
3064         (_dl_deallocate_tls): Free it with free instead of munmap.
3065
3066         * Makerules (cpp-srcs-left): When setting this to run
3067         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3068         words.  Combine the two loops into one on the concatenated list,
3069         including those as well as $(test-srcs).
3070
3071         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3072         since we align here with optimally minimal waste anyway.
3073         (malloc): Just call that.
3074
3075         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3076         the right variable.
3077
3078         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3079         to compute memory location for l_tls_initimage.
3080         * elf/rtld.c (_dl_start): Likewise.
3081         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3082
3083         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3084         because the .d file is generated in the non-shared case and
3085         so fails to catch them otherwise.
3086
3087         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3088         split out of _dl_allocate_tls.
3089         (_dl_allocate_tls_init): Likewise.
3090         (_dl_allocate_tls): Call those.
3091         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3092         * elf/rtld.c (dl_main): Call them separately instead of calling
3093         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3094         is finished, so that the initializer data has been relocated before we
3095         copy it into the main thread's TLS block.
3096
3097         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3098         loop conditions, prevented the last used module from being initialized.
3099
3100 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3101
3102         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3103         if glob resp. globfree are not macros.
3104         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3105         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3106         Add libc_hidden_ver.
3107         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3108         libc_hidden_def.
3109         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3110         instead of libc_hidden_weak.
3111         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3112         libc_hidden_ver instead of libc_hidden_def.
3113         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3114         libc_hidden_ver instead of libc_hidden_def.
3115         (wcstoll, wcstoq): Remove libc_hidden_weak.
3116         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3117         libc_hidden_ver.
3118         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3119         libc_hidden_ver.
3120         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3121         libc_hidden_ver.
3122         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3123         libc_hidden_ver.
3124
3125 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3126
3127         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3128         to access _sys_siglist.
3129         * string/strsignal.c: Likewise.
3130         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3131         * sysdeps/gnu/siglist.c: Likewise.
3132         * sysdeps/unix/siglist.c: Likewise.
3133         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3134
3135         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3136
3137         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3138
3139         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3140         alias and use it.
3141         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3142
3143         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3144         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3145         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3146
3147         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3148         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3149
3150         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3151         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3152         and __gconv_get_cache respectively.
3153         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3154         defined static.  Change all users.
3155         (__gconv_get_cache): New function.
3156         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3157         (__gconv_get_alias_db): New function.
3158         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3159         (__conv_modules_db): Likewise.
3160         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3161         and __gconv_get_alias_db.
3162         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3163         variables.
3164
3165         * include/stdlib.h: Add prototype and libc_hidden_proto for
3166         __default_morecore.
3167         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3168
3169         * malloc/obstack.c: Remove fputs macro.
3170
3171         * malloc/mtrace.c: Remove fopen macro.
3172
3173 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3174
3175         * manual/debug.texi: Fix spelling to programmatically.
3176         Reported by <hayastan132@hotmail.com>.
3177
3178 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3179
3180         * include/libio.h: Add libc_hidden_proto for __uflow.
3181         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3182         fgetpos to _IO_* names.
3183         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3184         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3185         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3186         putwc_unlocked, vswscanf.
3187         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3188         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3189         * libio/fseek.c: Likewise.
3190         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3191         not fopencookie.
3192         * libio/genops.c (__uflow): Add libc_hidden_def.
3193         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3194         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3195         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3196         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3197         * libio/iofread_u.c (fread_unlocked): Likewise.
3198         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3199         * libio/iovswscanf.c (vswscanf): Likewise.
3200         * libio/putwc_u.c (putwc_unlocked): Likewise.
3201         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3202         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3203         * malloc/mtrace.c: Likewise.
3204
3205         * sunrpc/clnt_perr.c: Remove fputs macro.
3206         * sunrpc/svc_simple.c: Likewise.
3207         * sunrpc/svc_tcp.c: Likewise.
3208         * sunrpc/svc_udp.c: Likewise.
3209         * sunrpc/xdr_rec.c: Likewise.
3210         * sunrpc/xdr_ref.c: Likewise.
3211
3212         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3213         iconv_prog, linereader, and charmap-dir.
3214         * locale/Makefile: Likewise for locale and charmap-dir.
3215         * malloc/Makefile: Likewise for memusagestat.
3216         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3217         * sunrpc/Makefile: Likewise for rpc_main.
3218         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3219         * timezone/Makefile: Likewise for zic.
3220
3221         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3222
3223         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3224         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3225         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3226         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3227         _dl_close.
3228
3229         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3230         __wunderflow.
3231         * libio/genops.c (__underflow): Add libc_hidden_def.
3232         * libio/wgenops.c (__wuflow): Likewise.
3233         (__wunderflow): Likewise.
3234
3235         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3236         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3237
3238         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3239         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3240
3241         * include/string.h: Add libc_hidden_proto for __strverscmp.
3242         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3243
3244         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3245         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3246         * sysdeps/posix/sysconf.c: Likewise.
3247         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3248         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3249
3250         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3251         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3252         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3253         __iswxdigit_l, __towlower_l, __towupper_l.
3254         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3255         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3256
3257         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3258         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3259         * sysdeps/mach/hurd/xmknod.c: Likewise.
3260         * sysdeps/unix/xmknod.c: Likewise.
3261         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3262         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3263         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3264
3265         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3266
3267 2002-08-03  Roland McGrath  <roland@redhat.com>
3268
3269         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3270         setpriority.
3271         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3272         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3273         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3274         * sysdeps/mach/hurd/setpriority.c: Likewise.
3275         * sysdeps/mach/hurd/getpriority.c: Likewise.
3276         * sysdeps/generic/setpriority.c: Likewise.
3277         * sysdeps/generic/getpriority.c: Likewise.
3278
3279         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3280         * malloc/mcheck.c: Add libc_hidden_def.
3281
3282         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3283         * misc/hsearch_r.c: Add libc_hidden_def.
3284
3285         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3286         * posix/fnmatch.c: Add libc_hidden_weak.
3287
3288         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3289         execl, execle, execlp, execvp, getpid, getsid.
3290         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3291         * sysdeps/unix/alarm.c: Likewise.
3292         * posix/confstr.c: Likewise.
3293         * posix/execvp.c: Likewise.
3294         * posix/execlp.c: Likewise.
3295         * posix/execle.c: Likewise.
3296         * posix/execl.c: Likewise.
3297         * sysdeps/generic/getsid.c: Likewise.
3298         * sysdeps/mach/hurd/getsid.c: Likewise.
3299         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3300         * sysdeps/mach/hurd/getpid.c: Likewise.
3301
3302         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3303         qecvt_r, qfcvt_r, lrand48_r.
3304         * misc/efgcvt_r.c: Add libc_hidden_def.
3305
3306         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3307         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3308
3309         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3310         * locale/nl_langinfo.c: Add libc_hidden_def.
3311
3312         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3313         * sysdeps/generic/glob.c: Add libc_hidden_def.
3314         * sysdeps/generic/glob64.c: Likewise.
3315         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3316
3317         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3318
3319         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3320
3321         * locale/setlocale.c (_nl_current_names): Variable moved ...
3322         * locale/localename.c (_nl_current_names): ... here, new file.
3323         Make it global, with attribute_hidden.
3324         * locale/localeinfo.h: Declare it.
3325         * locale/Makefile (aux): Add localename.
3326         * locale/localename.c (__current_locale_name): New function.
3327         * include/locale.h (__current_locale_name): Declare it.
3328         * intl/dcigettext.c (guess_category_value): Use that instead of
3329         calling setlocale.
3330
3331         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3332         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3333         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3334         * locale/newlocale.c: Add alias to __ name.
3335         * locale/duplocale.c: Likewise.
3336         * locale/freelocale.c: Likewise.
3337         * locale/uselocale.c: New file.
3338         * locale/Makefile (routines): Add it.
3339         * locale/Versions (libc: GLIBC_2.3): New set.
3340         Add newlocale, duplocale, freelocale, uselocale.
3341         (libc: GLIBC_PRIVATE): Add __uselocale.
3342
3343         * locale/localeinfo.h [SHARED]
3344         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3345         (_NL_CURRENT_DATA): Define using that.
3346         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3347         (_NL_CURRENT_DEFINE): Define to empty.
3348         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3349         conditionalized on this.
3350         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3351         taking initializer of _nl_C_locobj.
3352         [SHARED] (_nl_global_locale): New variable, using that initializer.
3353         (_nl_C_locobj): Use new macro for initialzier.
3354         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3355         [! SHARED] (CATEGORY_USED): New macro.
3356         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3357         (setdata, setlocale): Use that macro instead of examining _nl_current.
3358         (setdata): Set the slot in _nl_global_locale.
3359         Conditionalize setting of _nl_current on [! SHARED].
3360         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3361         declaration as an extern.
3362         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3363
3364         * include/locale.h: Use libc_hidden_proto for setlocale.
3365         * locale/setlocale.c: Add libc_hidden_def.
3366
3367         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3368
3369         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3370         * misc/hsearch_r.c: Add libc_hidden_def.
3371         * misc/lsearch.c: Likewise.
3372
3373         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3374         endttyent.
3375         * misc/getttyent.c: Add libc_hidden_def.
3376
3377         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3378         * malloc/mcheck.c: Add libc_hidden_def.
3379
3380         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3381         * include/argz.h: Use libc_hidden_proto for argz_delete.
3382         * string/argz-delete.c: Add libc_hidden_def.
3383         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3384
3385         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3386         HIDDEN_JUMPTARGET for _exit.
3387         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3388         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3389         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3390         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3391
3392         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3393         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3394         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3395         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3396
3397         * include/stdlib.h: Use libc_hidden_proto for abort,
3398         __strtof_internal, __strtod_internal, __strtold_internal,
3399         __strtol_internal, __strtoll_internal, __strtoul_internal,
3400         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3401         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3402         __strtoul_l_internal, __strtoull_l_internal.
3403         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3404         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3405         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3406         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3407         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3408         __wcsncasecmp_l.
3409         * sysdeps/generic/abort.c: Add libc_hidden_def.
3410         * stdlib/strtod.c: Likewise.
3411         * sysdeps/generic/strtol.c: Likewise.
3412         * sysdeps/wordsize-64/strtol.c: Likewise.
3413         * sysdeps/wordsize-64/wcstol.c: Likewise.
3414         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3415
3416         * include/stdlib.h: Use libc_hidden_proto for qsort.
3417         * stdlib/msort.c: Add libc_hidden_def.
3418
3419         * include/utime.h: Use libc_hidden_proto for utime.
3420         * sysdeps/generic/utime.c: Add libc_hidden_def.
3421         * sysdeps/unix/utime.c: Likewise.
3422
3423         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3424         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3425         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3426         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3427         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3428
3429         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3430         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3431         and __libc_current_sigrtmax.
3432         * signal/sigismem.c: Add libc_hidden_def.
3433         * signal/sigfillset.c: Likewise.
3434         * signal/sigempty.c: Likewise.
3435         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3436         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3437         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3438         * sysdeps/posix/raise.c: Likewise.
3439         * sysdeps/generic/raise.c: Likewise.
3440
3441 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3442
3443         * include/string.h: Use libc_hidden_proto for __stpcpy.
3444         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3445         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3446         * sysdeps/generic/stpcpy.c: Likewise.
3447         * sysdeps/i386/stpcpy.S: Likewise.
3448         * sysdeps/i386/i586/stpcpy.S: Likewise.
3449         * sysdeps/powerpc/stpcpy.S: Likewise.
3450         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3451         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3452
3453         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3454         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3455         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3456         libc_hidden_def.
3457         * string/strdup.c (__strdup): Likewise.
3458         * string/strndup.c (__strndup): Likewise.
3459         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3460         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3461
3462 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3463
3464         * include/libio.h: New file.
3465         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3466         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3467         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3468         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3469         * sysdeps/unix/common/syscalls.list: Likewise.
3470         * sysdeps/unix/inet/syscalls.list: Likewise.
3471         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3472         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3473         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3474         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3475         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3476         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3477         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3478         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3479         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3480         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3481         * sysdeps/unix/syscalls.list: Likewise.
3482
3483 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3484             Ulrich Drepper  <drepper@redhat.com>
3485
3486         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3487         the arguments is big enough to cause an overflow.
3488
3489 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3490
3491         * assert/assert.c: Use hidden_def not INTDEF.
3492
3493 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3494
3495         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3496         not defined.
3497
3498 2002-08-03  Roland McGrath  <roland@redhat.com>
3499
3500         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3501         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3502         verr, verrx.
3503         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3504         * misc/syslog.c: Add libc_hidden_def.
3505         * misc/err.c: Likewise.
3506         * stdlib/exit.c: Likewise.
3507         * stdlib/bsearch.c: Likewise.
3508         * sysdeps/generic/getenv.c: Likewise.
3509
3510         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3511
3512         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3513         libc_hidden_weak for every system call symbol defined.
3514
3515         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3516         timelocal, localtime, strftime.
3517         * time/asctime.c: Add libc_hidden_def.
3518         * time/mktime.c: Likewise.
3519         * time/localtime.c: Likewise.
3520         * time/strftime.c: Likewise.
3521         * time/strptime.c: Likewise.
3522         * sysdeps/generic/time.c: Likewise.
3523         * sysdeps/unix/time.c: Likewise.
3524         * sysdeps/unix/sysv/i386/time.S: Likewise.
3525         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3526
3527         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3528         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3529         * resolv/inet_ntop.c: Likewise.
3530         * resolv/inet_pton.c: Likewise.
3531         * inet/inet_mkadr.c: Add libc_hidden_def.
3532         * inet/inet_netof.c: Likewise.
3533         * resolv/inet_addr.c: Likewise.
3534
3535         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3536         clauses from conditionals for now.  Will have to be fixed later
3537         for older compilers.
3538
3539         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3540
3541 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3542
3543         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3544         broken alias attribute handling.
3545         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3546
3547 2002-08-02  Roland McGrath  <roland@frob.com>
3548
3549         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3550         since it sets the variables we use in a -D switch.
3551
3552 2002-08-02  Roland McGrath  <roland@redhat.com>
3553
3554         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3555         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3556         matches long int, not int.
3557
3558         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3559         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3560         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3561         * wctype/wctrans.c (wctrans): Likewise.
3562         * wctype/wctype.c (__wctype): Likewise.
3563         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3564
3565 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3566
3567         * assert/assert.c (__assert_fail): Fix typo in comment.
3568
3569         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3570         * sunrpc/rpc_thread.c: Define it without static.
3571         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3572
3573 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3574
3575         * assert/assert.c (__assert_fail): Remove undef.
3576         Replace INTDEF with libc_hidden_def.
3577         * assert/__assert.c (__assert): Remove INTUSE.
3578         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3579         libc_hidden_weak.
3580         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3581         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3582         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3583         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3584         libm_hiden_ver): Define.
3585         * include/assert.h (__assert_fail_internal): Remove.
3586         (__assert_fail): Add prototype.  Add hidden_proto.
3587         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3588         libc_hidden_proto.
3589         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3590         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3591         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3592         Add libc_hidden_proto.
3593         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3594         __fcntl): Add libc_hidden_proto.  Remove macros.
3595         (__open_internal, __fcntl_internal): Remove.
3596         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3597         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3598         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3599         libc_hiden_proto.
3600         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3601         libc_hidden_def.
3602         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3603         Add libc_hidden_def.
3604         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3605         * sysdeps/generic/open.c (__open): Remove undef.
3606         Add libc_hidden_def.  Remove INTDEF.
3607         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3608         Add libc_hidden_def.
3609         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3610         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3611         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3612         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3613         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3614         (__libc_fcntl): Add libc_hidden_def.
3615         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3616         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3617         (__libc_open): Add libc_hidden_def.
3618         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3619         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3620         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3621         Add libc_hidden_def.
3622         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3623         Add libc_hidden_def.
3624         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3625         undef.
3626         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3627         (__libc_fcntl): Add libc_hidden_def.
3628         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3629         __getpgid_internal, __chown_internal): Remove.
3630         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3631         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3632         __GI___chown): Add.
3633         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3634         __getpid_internal, __open_internal, __write_internal): Remove.
3635         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3636         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3637         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3638         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3639         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3640         Replace INTDEF with libc_hidden_def.
3641         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3642         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3643         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3644         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3645         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3646         Add libc_hidden_proto.
3647         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3648         * include/sys/select.h (__select): Likewise.
3649         * include/sys/socket.h (__send): Likewise.
3650         * include/sys/statfs.h (__statfs): Likewise.
3651         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3652         __getpid, __getpgid, __setpgid, __close, __read, __write,
3653         __getpagesize, __sbrk): Likewise.
3654         (__chown_internal, __dup2_internal, __getpid_internal,
3655         __getpgid_internal, __close_internal, __write_internal,
3656         __getpagesize_internal): Remove.
3657         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3658         Remove macros.
3659         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3660         * include/sched.h (__sched_setscheduler): Likewise.
3661         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3662         * include/stdlib.h (__secure_getenv): Likewise.
3663         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3664         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3665         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3666         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3667         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3668         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3669         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3670         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3671         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3672         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3673         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3674         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3675         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3676         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3677         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3678         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3679         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3680         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3681         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3682         * libio/genops.c (__overflow): Add libc_hidden_def.
3683         * libio/iovdprintf.c: Remove libio.h include.
3684         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3685         libc_hidden_weak): Define to nothing if not defined.
3686         (__overflow, __woverflow): Add libc_hidden_proto.
3687         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3688         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3689         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3690         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3691         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3692         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3693         and libc_hidden_def.
3694         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3695         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3696         (__getpgid): Add libc_hidden_proto.
3697         (__bsd_getpgrp): Remove INTUSE.
3698         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3699         libc_hidden_def.
3700         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3701         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3702         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3703         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3704         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3705         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3706         __rpc_thread_createerr): Add libc_hidden_def.
3707         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3708         libc_hidden_def.
3709         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3710         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3711         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3712         * sysdeps/generic/chown.c (__chown): Likewise.
3713         * sysdeps/generic/close.c (__close): Likewise.
3714         * sysdeps/generic/dup2.c (__dup2): Likewise.
3715         * sysdeps/generic/pipe.c (__pipe): Likewise.
3716         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3717         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3718         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3719         * sysdeps/generic/read.c (__libc_read): Likewise.
3720         (__read): Add libc_hidden_weak.
3721         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3722         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3723         * sysdeps/generic/select.c (__select): Likewise.
3724         * sysdeps/generic/send.c (__send): Likewise.
3725         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3726         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3727         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3728         * sysdeps/generic/statfs.c (__statfs): Likewise.
3729         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3730         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3731         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3732         Remove undef and INTDEF.
3733         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3734         * sysdeps/generic/getpid.c (__getpid): Likewise.
3735         * sysdeps/generic/write.c (__libc_write): Likewise.
3736         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3737         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3738         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3739         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3740         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3741         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3742         Remove undef and INTDEF.
3743         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3744         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3745         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3746         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3747         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3748         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3749         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3750         (__pipe): Add libc_hidden_def.
3751         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3752         libc_hidden_weak.
3753         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3754         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3755         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3756         (__read): Add libc_hidden_weak.
3757         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3758         (__libc_pwrite64): Add libc_hidden_def.
3759         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3760         * sysdeps/mach/hurd/select.c (__select): Likewise.
3761         * sysdeps/mach/hurd/send.c (__send): Likewise.
3762         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3763         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3764         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3765         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3766         * sysdeps/posix/dup2.c: Likewise.
3767         Remove undef and INTDEF.
3768         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3769         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3770         (__pwrite64): Add libc_hidden_weak.
3771         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3772         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3773         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3774         * sysdeps/standalone/close.c (__close): Likewise.
3775         * sysdeps/standalone/write.c (__libc_write): Likewise.
3776         (__write): Add libc_hidden_weak.
3777         * sysdeps/standalone/read.c (__read): Likewise.
3778         (__libc_read): Add libc_hidden_def.
3779         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3780         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
3781         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
3782         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
3783         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
3784         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
3785         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
3786         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
3787         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
3788         __GI___sigaction): Add.
3789         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
3790         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
3791         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
3792         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
3793         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
3794         __GI___setpgid): Add.
3795         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
3796         Remove undef and INTDEF.
3797         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
3798         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
3799         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
3800         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
3801         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
3802         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
3803         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
3804         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
3805         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
3806         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
3807         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
3808         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
3809         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
3810         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
3811         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
3812         __GI___statfs, __GI___send): Add.
3813         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
3814         libc_hidden_ver resp. libc_hidden_def.
3815         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
3816         libc_hidden_def.
3817         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
3818         Likewise.  Remove undef and INTDEF.
3819         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
3820         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
3821         __GI___statfs, __GI___send): Add.
3822         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
3823         libc_hidden_def.
3824         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
3825         Likewise.
3826         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
3827         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
3828         libc_hidden_ver resp. libc_hidden_def.
3829         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
3830         __GI___send): Add.
3831         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
3832         Add libc_hidden_weak.
3833         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
3834         Add libc_hidden_def.
3835         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
3836         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
3837         libc_hidden_weak.
3838         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
3839         resp. libc_hidden_def.
3840         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
3841         libc_hidden_weak.
3842         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
3843         INTDEF.
3844         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
3845         Likewise.  Remove undef.
3846         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
3847         libc_hidden_weak.
3848         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
3849         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
3850         libc_hidden_weak.
3851         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
3852         libc_hidden_def.
3853         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
3854         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3855         Likewise.  Remove undef and INTDEF.
3856         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
3857         libc_hidden_def.
3858         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
3859         libc_hidden_weak.
3860         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
3861         libc_hidden_def.
3862         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3863         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
3864         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
3865         libc_hidden_weak.
3866         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
3867         Add libc_hidden_def.
3868         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
3869         __GI___statfs): Add.
3870         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
3871         libc_hidden_weak.
3872         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
3873         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
3874         Remove undef and INTDEF.
3875         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
3876         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
3877         libc_hidden_def.
3878         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
3879         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
3880         libc_hidden_weak.
3881         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
3882         libc_hidden_def.
3883         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
3884         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
3885         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
3886         Add.
3887         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
3888         libc_hidden_def.  Remove undef and INTDEF.
3889         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
3890         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
3891         libc_hidden_def.
3892         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
3893         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
3894         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
3895         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
3896         Remove undef and INTDEF.
3897         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
3898         broken visibility attribute handling.
3899         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
3900
3901 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3902
3903         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
3904         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
3905
3906         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
3907         previous patch.
3908
3909 2002-06-29  Todd Fries  <todd@openbsd.org>
3910
3911         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
3912
3913 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3914
3915         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
3916
3917 2002-07-30  Roland McGrath  <roland@redhat.com>
3918
3919         * resolv/resolv.h (_res): Define macro unconditionally.
3920         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
3921         * include/resolv.h: ... here.
3922         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
3923         as a __thread variable.
3924         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
3925         a __thread variable instead of a global.
3926         * resolv/res_data.c [_LIBC]: Don't #undef _res.
3927
3928         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
3929         time we test it.
3930
3931         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
3932
3933         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
3934         decls of memset and memcpy.
3935
3936         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
3937         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
3938
3939         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
3940
3941         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
3942         (__libc_tsd_define): Define using __thread.
3943
3944         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
3945         (__rpc_thread_variables): Use __libc_tsd_get.
3946         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
3947         __rpc_thread_variables, which might allocate what we're about to free.
3948
3949         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
3950         thread-local variable.
3951         * resolv/netdb.h (h_errno): Define macro unconditionally.
3952         [_LIBC] (__set_h_errno): Macro moved to ...
3953         * include/netdb.h: ... here.
3954         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
3955         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
3956         [! _LIBC_REENTRANT]: #undef h_errno here.
3957
3958         * include/errno.h: Protect from multiple inclusion.
3959
3960         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
3961         before defining them, since Linux's <linux/posix_types.h> might have
3962         defined them.
3963
3964 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3965
3966         * malloc/malloc.c (public_cALLOc): Check for overflow on
3967         multiplication.
3968         * sunrpc/xdr_array.c (xdr_array): Likewise.
3969         * sunrpc/rpc/types.h (mem_free): Add comment.
3970         Patch by Solar Designer <solar@openwall.com>.
3971
3972 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3973
3974         * sysdeps/unix/sysv/linux/kernel-features.h
3975         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
3976
3977 2002-08-01  Roland McGrath  <roland@redhat.com>
3978
3979         * libio/fileops.c (_IO_file_sync_mmap): New function.
3980         (_IO_file_jumps_mmap): Use it.
3981         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
3982         repeat the stat check and resize the mapped buffer as necessary.
3983
3984 2002-07-31  Roland McGrath  <roland@redhat.com>
3985
3986         * libio/fileops.c (decide_maybe_mmap): New static function.
3987         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
3988         mmap the file contents.  Then switch the jump tables to the mmap
3989         tables if it worked, or the vanilla file tables if not.
3990         (_IO_file_underflow_maybe_mmap): New function.
3991         (_IO_file_seekoff_maybe_mmap): New function.
3992         (_IO_file_xsgetn_maybe_mmap): New function.
3993         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
3994         * libio/libioP.h: Declare those.
3995         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
3996         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
3997         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
3998         If the stream is read-only, set its jump tables to those new ones.
3999         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4000         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4001         We need the tables set before _IO_file_attach.
4002
4003         * libio/tst-mmap-eofsync.c: New file.
4004         * libio/tst-mmap-fflushsync.c: New file.
4005         * libio/bug-mmap-fflush.c: New file.
4006         * libio/tst-mmap2-eofsync.c: New file.
4007         * libio/Makefile (tests): Add them.
4008
4009         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4010         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4011
4012 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4013
4014         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4015         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4016         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4017         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4018         declare sys_errlist and sys_nerr.
4019         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4020         provide declarations.
4021
4022 2002-07-31  Roland McGrath  <roland@redhat.com>
4023
4024         * elf/rtld.c (dl_main): Fix typo in error message.
4025
4026 2002-07-31  Roland McGrath  <roland@frob.com>
4027
4028         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4029         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4030         sysdeps/mach/hurd/dl-sysdep.c change.
4031
4032 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4033
4034         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4035         -r`/build/include for kernel headers.
4036
4037         * po/fi.po: New file.
4038
4039 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4040
4041         * configure.in (static_nss): Set to `yes' if --disable-shared.
4042
4043 2002-07-23  Bruno Haible  <bruno@clisp.org>
4044
4045         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4046         is set.
4047
4048 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4049
4050         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4051         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4052         arguments.
4053
4054 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4055
4056         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4057         alias.
4058
4059 2002-07-21  Bruno Haible  <bruno@clisp.org>
4060
4061         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4062         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4063         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4064         trans_sysdep_tab_offset.
4065         (struct sysdep_segment): New type.
4066         (struct sysdep_string): New type.
4067         (SEGMENTS_END): New macro.
4068         * intl/gettextP.h (struct sysdep_string_desc): New type.
4069         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4070         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4071         orig_tab, trans_tab, hash_tab to const pointers because they point
4072         into read-only memory.
4073         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4074         (PRI*): Define fallback values.
4075         (get_sysdep_segment_value): New function.
4076         (_nl_load_domain): Distinguish major and minor revision parts. Add
4077         support for minor revision 1 with system dependent strings.
4078         (_nl_unload_domain): Also free the 'malloced' field.
4079         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4080         now done in loadmsgcat.c. Add support for system dependent strings.
4081
4082 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4083
4084         * posix/bug-regex7.c: New file.
4085         * posix/bug-regex8.c: New file.
4086         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4087
4088 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4089
4090         * posix/bug-regex4.c (main): Fix typos.
4091         * posix/bug-regex6.c (main): Likewise.
4092
4093 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4094
4095         * posix/bug-regex6.c (main): Fix warnings.
4096
4097         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4098
4099         * iconv/iconv_prog.c (main): Improve error message for the cases
4100         where -t and/or -f parameter are missing.
4101
4102 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4103
4104         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4105         (re_search): Likewise.
4106         (re_match_2): Likewise.
4107         (re_search_2): Likewise.
4108         (re_search_stub): New function.
4109         (re_search_2_stub): New function.
4110         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4111
4112 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4113
4114         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4115         (re_string_eoi): Use STOP instead of LEN.
4116         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4117         (re_string_construct): Likewise.
4118         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4119         * posix/regexec.c (re_search_internal): Add a new argument STOP
4120         so that it can handle the argument STOP of re_search_2 and re_match_2
4121         correctly.
4122         (regexec): Adapt to new I/F of re_search_internal.
4123         (re_search_stub): Likewise.
4124
4125 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4126
4127         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4128
4129         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4130
4131         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4132         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4133         of __divdi3.
4134
4135         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4136         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4137         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4138         alias for adjtimex syscall.
4139
4140         * elf/dl-minimal.c: Define __assert_fail_internal.
4141         * assert/assert.c: Likewise.
4142         * include/assert.h: Define __assert_file macro if !SHARED and not
4143         NOT_IN_libc.
4144
4145         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4146         programs.
4147         * locale/Makefile: Likewise.
4148         * nscd/Makefile: Likewise.
4149         * catgets/Makefile: Likewise.
4150
4151 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4152
4153         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4154         compute current position.
4155
4156         * stdio-common/tst-fseek.c (main): Improve error messages.
4157
4158         * libio/tst-freopen.c (main): Remove unused variable.
4159
4160         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4161         succesful seek call.  Simplify error checking.
4162
4163 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4164
4165         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4166         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4167
4168 2002-07-19  Roland McGrath  <roland@frob.com>
4169
4170         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4171         __libc_enable_secure is set.
4172
4173 2002-07-24  Roland McGrath  <roland@frob.com>
4174
4175         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4176         This implementation supports only IPv4.
4177         * inet/ifaddrs.h: New file.
4178         * sysdeps/generic/ifaddrs.c: New file.
4179         * sysdeps/gnu/ifaddrs.c: New file.
4180         * inet/test-ifaddrs.c: New file.
4181         * inet/Makefile (routines): Add ifaddrs.
4182         (headers): Add ifaddrs.h here.
4183         (tests): Add test-ifaddrs.
4184         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4185
4186         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4187         socket call to get an AF_INET socket, instead of using __opensock.
4188         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4189
4190         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4191         if not -1 use it instead of calling __opensock.
4192         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4193         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4194         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4195
4196         * sysdeps/mach/hurd/ifreq.h: New file.
4197         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4198         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4199         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4200
4201         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4202         which gets moved around.  Calculate size of mmap'd buffer instead.
4203
4204 2002-07-24  Philip Blundell  <philb@gnu.org>
4205
4206         * sysdeps/unix/arm/brk.S: Improve schedule.
4207         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4208         efficient instruction.
4209         (__socket): Optimize return sequence.
4210
4211 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4212
4213         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4214         sockets on old kernels.
4215
4216 2002-07-22  Philip Blundell  <philb@gnu.org>
4217
4218         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4219         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4220         alias.
4221
4222 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4223
4224         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4225         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4226
4227         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4228         test to detect duplicate locales.
4229
4230         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4231         position would be before beginning of file.
4232         (_IO_file_seekoff_mmap): Likewise.
4233         * libio/Makefile (tests): Add bug-fseek.
4234         * libio/bug-fseek.c: New file.
4235
4236         * intl/explodename.c: Remove support for CEN-style locale variables.
4237         It was never used and shouldn't be since it's not portable.
4238         * intl/finddomain.c: Likewise.
4239         * intl/l10nflist.c: Likewise.
4240         * intl/loadinfo.h: Likewise.
4241         * locale/findlocale.c: Likewise.
4242
4243 2002-07-24  Roland McGrath  <roland@frob.com>
4244
4245         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4246         position, calculate it to take into account an active pushback buffer.
4247
4248         * libio/Makefile (tests): Add bug-ungetc.
4249         * libio/bug-ungetc.c: New file.
4250
4251 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4252
4253         * sysdeps/generic/libc-tls.c: New file.
4254         * csu/Makefile (routines): Add libc-tls.
4255         (static-only-routines): Add libc-tls.
4256         * elf/dl-support.c (_dl_phdr): New variable.
4257         (_dl_phnum): New variable.
4258         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4259         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4260         for !SHARED.  First look through auxiliary vector.  If TLS always
4261         call __pthread_initialize_minimal.
4262
4263         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4264         in mmap call is never zero.
4265
4266 2002-07-23  Andreas Jaeger  <aj@suse.de>
4267
4268         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4269         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4270
4271 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4272
4273         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4274         creation and removal of the temp file.
4275
4276         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4277         file creation.
4278         * test-skeleton.c (create_temp_file): New function.
4279
4280 2002-07-22  Andreas Jaeger  <aj@suse.de>
4281
4282         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4283         local label.
4284
4285 2002-07-21  Roland McGrath  <roland@frob.com>
4286
4287         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4288         put -I../include before -I../stdlib so we get the right errno.h et al.
4289         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4290         (CFLAGS-wcstof.c): Likewise.
4291         (CFLAGS-wcstold.c): Likewise.
4292         (CFLAGS-wcstod_l.c): Likewise.
4293         (CFLAGS-wcstof_l.c): Likewise.
4294         (CFLAGS-wcstold_l.c): Likewise.
4295
4296 2002-07-19  Roland McGrath  <roland@frob.com>
4297
4298         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4299
4300 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4301
4302         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4303         __ASSUME_AT_XID is defined.
4304         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4305         for 2.4.1 and up.
4306         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4307         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4308
4309         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4310         (CFLAGS-wcstof.c): Likewise.
4311         (CFLAGS-wcstold.c): Likewise.
4312         (CFLAGS-wcstod_l.c): Likewise.
4313         (CFLAGS-wcstof_l.c): Likewise.
4314         (CFLAGS-wcstold_l.c): Likewise.
4315
4316 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4317
4318         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4319         __priority_which_t): Always typedef to int for C++.
4320
4321 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4322
4323         * configure.in: Add test for __thread support in compiler.
4324         * config.h.in: Add HAVE___THREAD.
4325         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4326         * include/sys/errno.h: Moved to...
4327         * stdlib/sys/errno.h: ...here.  New file.
4328         * stdlib/errno.h: New file.  Moved from...
4329         * include/errno.h: ...here.  Changed into an internal header defining
4330         libc-local things like __set_errno.
4331         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4332         bits/errno.h.
4333         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4334         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4335         either.
4336         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4337         from...
4338         (_dl_start_final): ...here.  Add code to initialize tls elements from
4339         bootstrap_map.
4340         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4341         if USE_TLS && HAVE___THREAD.
4342         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4343         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4344         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4345         * sysdeps/standalone/bits/errno.h: Likewise.
4346         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4347         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4348         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4349         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4350         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4351         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4352         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4353         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4354         use GL(dl_rtld_map), use map parameter.
4355         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4356         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4357         USE_TLS && HAVE___THREAD.
4358         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4359         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4360         TLS code sequence.
4361         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4362
4363         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4364         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4365         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4366         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4367         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4368         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4369
4370 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4371
4372         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4373         MS_INVALIDATE values.
4374
4375 2002-07-17  Andreas Schwab  <schwab@suse.de>
4376             Ulrich Drepper  <drepper@redhat.com>
4377
4378         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4379         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4380         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4381         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4382
4383 2002-07-01  H.J. Lu  <hjl@gnu.org>
4384
4385         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4386         return value.
4387
4388         * elf/circlemod1.c (circlemod1): Return int.
4389         * elf/circlemod2.c (circlemod2): Likewise.
4390         * elf/circlemod2a.c (circlemod2): Likewise.
4391         * elf/circlemod3.c (circlemod3): Likewise.
4392         (circlemod3a): A new function.
4393
4394 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4395
4396         * catgets/tst-catgets.c (main): Don't expect results for
4397         untranslated messages.
4398
4399         * glibcbug.in: Fix little typo.  Remove STDIO.
4400
4401         * config.h.in: Fail if __FAST_MATH__ is defined.
4402         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4403         (CPPFLAGS-test-idouble.c): Likewise.
4404         (CPPFLAGS-test-ildouble.c): Likewise.
4405
4406 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4407
4408         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4409         * intl/tst-gettext.c: Correctly handle untranslated messages in
4410         positive tests.
4411
4412         * po/de.po: Update from translation team.
4413
4414 2002-07-02  H.J. Lu  <hjl@gnu.org>
4415
4416         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4417         use ll/sc.
4418         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4419
4420         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4421         to 2.4.0 for mips.
4422
4423 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4424
4425         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4426         TLS fail if USE_TLS is not defined.
4427
4428         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4429         and adjust state for seek position.  [PR libc/4070]
4430         * libio/Makefile (tests): Add bug-rewind.
4431         * libio/bug-rewind.c: New file.
4432
4433 2002-07-12  Philip Blundell  <philb@gnu.org>
4434
4435         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4436         (__backtrace): Use it.
4437         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4438
4439 2002-07-12  Philip Blundell  <philb@gnu.org>
4440
4441         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4442         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4443         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4444         (elf_machine_rela): Remove unused variable.
4445
4446         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4447         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4448         define.
4449
4450 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4451
4452         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4453
4454 2002-07-14  Andreas Jaeger  <aj@suse.de>
4455
4456         * sysdeps/x86_64/bits/link.h: Add biarch support.
4457
4458 2002-07-13  Andreas Jaeger  <aj@suse.de>
4459
4460         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4461         Use correct indices.
4462         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4463
4464 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4465
4466         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4467         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4468         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4469         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4470         * sysdeps/s390/s390-32/bits/link.h: Remove.
4471         * sysdeps/s390/s390-64/bits/link.h: Remove.
4472         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4473         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4474         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4475         * sysdeps/s390/bits/wordsize.h: New file.
4476         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4477         elfclass.h.
4478         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4479         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4480         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4481         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4482         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4483         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4484         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4485         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4486         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4487         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4488         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4489         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4490         resource.h.
4491         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4492         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4493         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4494         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4495         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4496         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4497         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4498         sigaction.h.
4499         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4500         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4501         siginfo.h.
4502         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4503         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4504         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4505         socket.h.
4506         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4507         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4508         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4509         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4510         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4511         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4512         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4513         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4514         procfs.h.
4515         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4516         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4517         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4518         ucontext.h.
4519         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4520         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4521
4522 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4523
4524         * Versions.def (libc): Add GLIBC_2.3.
4525         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4526         * stdlib/canonicalize.c: Add compatibility version for realpath
4527         and make new code available in GLIBC_2.3.
4528
4529 2002-07-06  Bruno Haible  <bruno@clisp.org>
4530
4531         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4532
4533 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4534
4535         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4536         function do_init.  Use __libc_once.
4537         (do_init): New function.
4538
4539         * iconvdata/iso8859-11.h: Removed.
4540         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4541         (distribute): Remove iso8859-11.h.
4542         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4543
4544         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4545         underflow operation if c == (W)EOF.
4546
4547 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4548
4549         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4550         non-zero, adjust exponent.
4551         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4552         Remove NO_LONG_DOUBLE aliases.
4553         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4554         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4555         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4556         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4557         1**y and -1**+-Inf.
4558         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4559         Fix BITS_PER_MP_LIMB 32 extraction.
4560         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4561         exceptions for qNaNs.
4562         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4563         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4564         Raise exceptions when needed.  Don't recurse unnecessarily.
4565         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4566         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4567         exceptions for qNaNs.
4568         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4569         to fix *quo return value sign.
4570         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4571         case -Inf argument.
4572         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4573
4574 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4575
4576         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4577         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4578         -DNDEBUG.
4579
4580 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4581
4582         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4583         the result.
4584
4585         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4586         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4587
4588         * Versions.def (libthread_db): Add GLIBC_2.3.
4589
4590 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4591
4592         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4593         new stream if possible.
4594         * libio/freopen64.c (freopen64): Likewise.
4595         * libio/Makefile (tests): Add tst-freopen.
4596         * libio/tst-freopen.c: New file.
4597
4598 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4599
4600         * libio/stdio.h (obstack_printf): Add format attribute.
4601         (obstack_vprintf): Likewise.
4602
4603 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4604
4605         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4606         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4607         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4608         architectures.
4609
4610 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4611
4612         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4613         (init_dfa): ...here.
4614
4615 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4616
4617         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4618         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4619         nodes in parse trees.
4620         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4621         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4622         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4623         nodes which can epsilon transit.
4624         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4625         to IS_EPSILON_NODE macro.
4626         * posix/regexec.c (update_regs): New function to update registers
4627         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4628         (proceed_next_node): Use the entities of the nodes to determine
4629         whether the node can transit to.
4630         (set_regs): Use update_regs function to update registers.
4631
4632 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4633
4634         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4635         * posix/bug-regex6.c: New file.
4636         * posix/Makefile (tests): Add bug-regex6.
4637         (bug-regex6-ENV): Set LOCPATH.
4638
4639 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4640
4641         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4642         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4643
4644 2002-07-06  Bruno Haible  <bruno@clisp.org>
4645
4646         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4647
4648 2002-07-06  Bruno Haible  <bruno@clisp.org>
4649
4650         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4651         declarations.
4652
4653         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4654
4655         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4656
4657         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4658         not _UTSNAME_H.
4659         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4660
4661         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4662         * sysdeps/generic/bits/ustat.h: Likewise.
4663
4664         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4665
4666 2002-07-08  Andreas Jaeger  <aj@suse.de>
4667
4668         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4669
4670 2002-07-08  Andreas Jaeger  <aj@suse.de>
4671
4672         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4673
4674 2002-07-06  Andreas Jaeger  <aj@suse.de>
4675
4676         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4677         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4678         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4679         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4680         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4681         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4682         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4683         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4684         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4685         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4686         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4687
4688 2002-06-05  Brian Youmans <3diff@gnu.org>
4689
4690         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4691         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4692         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4693         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4694         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4695         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4696         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4697         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4698         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4699         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4700         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4701         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4702         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4703         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4704         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4705         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4706         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4707         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4708         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4709         * sysdeps/ia64/fpu/e_log.S: Likewise.
4710         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4711         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4712         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4713         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4714         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4715         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4716         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4717         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4718         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4719         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4720         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4721         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4722         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4723         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4724         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4725         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4726         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4727         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4728         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4729         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4730         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4731         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4732         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4733         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4734         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4735         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4736         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4737         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4738         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4739         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4740         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4741         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4742         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4743         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4744         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4745         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4746         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4747         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4748         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4749         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4750         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4751         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4752         * sysdeps/ia64/fpu/s_round.S: Likewise.
4753         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4754         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4755         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4756         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4757         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4758         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4759         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4760         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4761         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4762         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4763         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4764         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4765         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4766         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4767         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4768         reflect IBM donation of math library to FSF
4769         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4770         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4771         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4772         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4773         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4774         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4775         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4776         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4777         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4778         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4779         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4780         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4781         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4782         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4783         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4784         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4785         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4786         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4787         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4788         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4789         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4790         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4791         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
4792         * sysdeps/vax/__longjmp.c: Likewise.
4793         * sysdeps/vax/setjmp.c: Likewise.
4794         * libio/filedoalloc.c: Fixed BSD copying permission notice to
4795         remove advertising clause
4796         * sysdeps/vax/htonl.s: Likewise.
4797         * sysdeps/vax/htons.s: Likewise.
4798         * libio/wfiledoalloc.c: Likewise.
4799         * stdlib/random.c: Likewise.
4800         * stdlib/random_r.c: Likewise.
4801         * sysdeps/mach/sys/reboot.h: Likewise.
4802         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
4803         * sysdeps/posix/getaddrinfo.c: Likewise.
4804         * sunrpc/des_impl.c: Updated license permission notice to Lesser
4805         GPL and corrected pointer to point to the correct license.
4806
4807 2002-07-04  Andreas Jaeger  <aj@suse.de>
4808
4809         * scripts/config.guess: New upstream version.
4810         * scripts/config.sub: Likewise.
4811
4812 2002-07-02  Andreas Schwab  <schwab@suse.de>
4813
4814         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
4815         in parallel to bumping up the buffer pointer.
4816
4817 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4818
4819         * math/libm-test.inc (acos_test): Add missing L suffix for
4820         expected result.
4821         (cpow_test): Likewise.
4822         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
4823         error for acos (0.0625).
4824
4825 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4826
4827         * locale/iso-639.def: Add entry for Ganda.
4828         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
4829         definition.
4830         (address_finish): Handle entries with two letter ISO 639 code.
4831
4832         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
4833         directory if it existed before.
4834         * iconv/iconvconfig.c: Implement --prefix option.
4835
4836         * math/libm-test.inc (cexp_test): Add missing L suffix for
4837         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
4838         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
4839         1.25 i).
4840
4841 2002-05-29  H.J. Lu  <hjl@gnu.org>
4842
4843         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
4844         is turned on.
4845
4846 2002-05-28  H.J. Lu  <hjl@gnu.org>
4847
4848         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
4849         are not dlopened on the dependency list of a dlopened object.
4850
4851 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4852
4853         * elf/dl-lookup.c (add_dependency): It is not necessary to add
4854         dependencies if they are created between objects which are created
4855         while processing RTLD_NOW for objects loaded as part of the same
4856         dlopen call.
4857
4858 2002-06-14  H.J. Lu  <hjl@gnu.org>
4859
4860         * elf/Makefile (tests): Add circleload1.
4861         (modules-names): Add circlemod1, circlemod2, circlemod3,
4862         circlemod1a, circlemod2a and circlemod3a.
4863         ($(objpfx)circleload1): New target.
4864         ($(objpfx)circleload1.out): Likewise.
4865         ($(objpfx)circlemod1.so): Likewise.
4866         ($(objpfx)circlemod2.so): Likewise.
4867         ($(objpfx)circlemod1a.so): Likewise.
4868         ($(objpfx)circlemod2a.so): Likewise.
4869         * elf/circleload1.c: New file.
4870         * elf/circlemod1.c: New file.
4871         * elf/circlemod1a.c: New file.
4872         * elf/circlemod2.c: New file.
4873         * elf/circlemod2a.c: New file.
4874         * elf/circlemod3.c: New file.
4875         * elf/circlemod3a.c: New file.
4876
4877 2002-06-18  Amos Waterland  <apw@us.ibm.com>
4878
4879         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
4880         file descriptor.
4881         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
4882         add check for fd not open for writing.
4883
4884         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
4885         completed element(s) and do not suspend thread if so.  Patch
4886         heavily modified by drepper.
4887
4888         * rt/tst-aio7.c: New file.  Regression test for problems which the
4889         above three changes fix.
4890         * rt/Makefile (tests): Add tst-aio7.
4891
4892 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
4893
4894         * rt/tst-aio6.c: Fix comment.
4895
4896         * catgets/gencat.c (read_input_file): Handle more than one slash
4897         at end of line correctly [PR libc/3926].
4898         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
4899
4900         * catgets/sample.SJIS: Add test case for above bug.
4901         * catgets/test-gencat.c: Adjust test code.
4902         * catgets/test-gencat.sh: Adjust expected results.
4903
4904         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
4905         to skip relative relocations.
4906         Patch by Geoff Keating <geoffk@redhat.com>.
4907
4908 2002-05-26  Bruno Haible  <bruno@clisp.org>
4909
4910         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
4911         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
4912         All callers changed.
4913         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
4914         STANDARD_FROM_LOOP_ERR_HANDLER.
4915         (utf8_internal_loop): Likewise.
4916         (ucs2_internal_loop): Likewise.
4917         (internal_ucs2_loop): Perform error handling like in
4918         STANDARD_FROM_LOOP_ERR_HANDLER.
4919         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
4920         in STANDARD_FROM_LOOP_ERR_HANDLER.
4921         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4922         handling.
4923         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
4924         in STANDARD_FROM_LOOP_ERR_HANDLER.
4925         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4926         handling.
4927         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
4928         in STANDARD_FROM_LOOP_ERR_HANDLER.
4929         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4930         handling.
4931         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
4932         STANDARD_FROM_LOOP_ERR_HANDLER.
4933         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
4934         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
4935         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
4936         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
4937         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
4938         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
4939         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
4940         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
4941         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
4942         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
4943         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
4944         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
4945         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
4946         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
4947         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
4948         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
4949         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
4950         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
4951         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
4952         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
4953         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
4954         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
4955         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
4956         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
4957         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
4958         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
4959         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
4960         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
4961         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
4962         an error, still set result = __GCONV_ILLEGAL_INPUT.
4963         (BODY for TO_LOOP): Likewise.
4964         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
4965         STANDARD_FROM_LOOP_ERR_HANDLER.
4966         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4967         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
4968         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4969         handling.
4970         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4971         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
4972         STANDARD_FROM_LOOP_ERR_HANDLER.
4973         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4974         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
4975         STANDARD_FROM_LOOP_ERR_HANDLER.
4976         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4977         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
4978         STANDARD_FROM_LOOP_ERR_HANDLER.
4979         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4980         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
4981         STANDARD_FROM_LOOP_ERR_HANDLER.
4982         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4983         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
4984         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
4985         handling.
4986         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
4987         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
4988         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
4989         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
4990
4991 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4992
4993         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
4994         labels in assembler instructions.
4995
4996 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
4997
4998         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
4999         not enough content is available.
5000         * libio/tst-eof.c: New file.
5001         * libio/Makefile (tests): Add tst-eof.
5002
5003         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5004         update atime.
5005         * libio/tst-atime.c: New file.
5006         * libio/Makefile (tests): Add tst-atime.
5007
5008         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5009         handling of overly long words.
5010
5011 2002-06-25  Andreas Jaeger  <aj@suse.de>
5012
5013         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5014         to not use 32-bit pc relative relocations.
5015         (elf_machine_dynamic): Likewise.
5016
5017 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5018
5019         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5020         (__GETDENTS): Check for failed getdents64 syscall.
5021         * dirent/Makefile (tests): Add bug-readdir1.
5022         * dirent/bug-readdir1.c: New file.
5023
5024 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5025
5026         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5027         lookups.
5028         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5029         code.  Print TLS modid and offset for modules containing PT_TLS
5030         segments.
5031
5032 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5033
5034         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5035         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5036         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5037         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5038
5039 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5040
5041         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5042         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5043         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5044         * nss/getXXent_r.c (NEW, NEW1): Define.
5045         (NEW (REENTRANT_GETNAME)): Strong alias to
5046         INTERNAL (REENTRANT_GETNAME).
5047         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5048
5049 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5050
5051         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5052         (_IO_file_jumps_mmap): Use it.
5053         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5054         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5055         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5056         prototype.
5057         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5058         (_IO_wfile_jumps_mmap): Don't use it anymore.
5059         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5060         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5061         _IO_wdefault_setbuf.
5062         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5063         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5064         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5065
5066 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5067
5068         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5069         * libio/tst-mmap-setvbuf.c: New test.
5070
5071 2002-06-21  Andreas Jaeger  <aj@suse.de>
5072
5073         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5074
5075 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5076
5077         * include/unistd.h (__fork_internal): Remove.
5078         (__fork): Don't define to __fork_internal.
5079         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5080         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5081         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5082         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5083         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5084
5085 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5086
5087         * po/hr.po: New file.
5088
5089 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5090
5091         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5092         Reported by Michael Meissner <meissner@redhat.com>.
5093
5094 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5095
5096         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5097         Patch by Hans Boehm <hans_boehm@hp.com>.
5098
5099 2002-06-20  Andreas Jaeger  <aj@suse.de>
5100
5101         * math/libm-test.inc: Use exact values as input parameters,
5102         compute output parameters with 36 digits for 128-bit long doubles.
5103         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5104         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5105         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5106
5107 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5108
5109         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5110         argument or result is subnormal.
5111
5112 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5113
5114         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5115         quotient.
5116         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5117         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5118
5119         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5120
5121 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5122
5123         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5124         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5125         Reported by Peter A. Buhr.
5126
5127 2002-06-15  Roland McGrath  <roland@frob.com>
5128
5129         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5130         warning.
5131
5132         * sysdeps/mach/hurd/getcwd.c
5133         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5134
5135         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5136         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5137
5138         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5139         jump to local subroutine.
5140
5141 2002-06-14  Roland McGrath  <roland@frob.com>
5142
5143         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5144         * sysdeps/mach/hurd/Makeconfig: ... here.
5145
5146 2002-06-13  Andreas Schwab  <schwab@suse.de>
5147
5148         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5149         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5150         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5151
5152 2002-06-13  Roland McGrath  <roland@frob.com>
5153
5154         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5155         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5156         Use intptr_t instead of int for argc in stack layout.
5157         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5158         (_dl_init_first): Likewise.
5159         (_hurd_stack_setup): Likewise.
5160         (init1): Add a cast.
5161         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5162
5163         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5164         argument to pfinet_siocgifconf RPC.
5165
5166 2002-06-13  Andreas Schwab  <schwab@suse.de>
5167
5168         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5169         expansion order.
5170
5171 2002-06-12  Roland McGrath  <roland@frob.com>
5172
5173         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5174         if already defined.
5175         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5176         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5177
5178 2002-06-11  Roland McGrath  <roland@frob.com>
5179
5180         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5181         file on [!RTLD_STAT64].
5182         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5183
5184         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5185         (__fdopen): Use INTUSE.
5186         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5187
5188         * stdio-common/tmpfile64.c: File removed.
5189         * sysdeps/generic/tmpfile64.c: New file.
5190         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5191         if not already defined.
5192         (tmpfile): Use it in place of __GT_FILE.
5193
5194         * include/unistd.h: Declare __chown_internal.
5195
5196         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5197         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5198
5199 2002-06-09  Roland McGrath  <roland@frob.com>
5200
5201         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5202         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5203         value of HURD_INTERFACE_VERSION >= 20020609.
5204         * sysdeps/mach/hurd/configure: Regenerated.
5205         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5206         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5207         convert a struct stat64 into a struct stat and return 0 or -1
5208         with errno set to EOVERFLOW.
5209         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5210         for struct statfs64 to struct statfs.
5211         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5212         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5213         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5214         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5215         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5216         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5217         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5218         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5219         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5220         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5221         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5222         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5223         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5224         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5225         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5226         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5227         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5228         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5229         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5230         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5231         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5232         Use struct stat64 for io_stat argument.
5233         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5234         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5235         to io_seek.
5236         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5237         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5238         * hurd/hurd/fd.h: Update decls.
5239         * sysdeps/mach/hurd/getcwd.c
5240         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5241         and struct dirent64.
5242         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5243         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5244         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5245         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5246
5247 2002-06-08  Roland McGrath  <roland@frob.com>
5248
5249         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5250         instead of unsigned long int for __allocation and __size members.
5251
5252 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5253
5254         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5255         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5256         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5257         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5258
5259 2002-06-07  Roland McGrath  <roland@frob.com>
5260
5261         * sysdeps/mach/hurd/bits/environments.h: File removed.
5262
5263 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5264
5265         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5266         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5267         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5268         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5269         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5270         (sendfile64): Likewise.
5271         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5272         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5273         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5274         Likewise.
5275         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5276
5277         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5278         already defined.
5279
5280 2002-06-04  Bruno Haible  <bruno@clisp.org>
5281
5282         * sysdeps/cris/stackinfo.h: New file.
5283
5284         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5285         to an integer type before performing bit operations on it.
5286
5287 2002-06-05  Roland McGrath  <roland@frob.com>
5288
5289         * sysdeps/generic/sendfile.c: Include <errno.h>.
5290         * sysdeps/generic/sendfile64.c: Likewise.
5291
5292         * io/Makefile (routines): Add sendfile and sendfile64.
5293         (headers): Add sys/sendfile.h to the list.
5294         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5295         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5296         * io/sys/sendfile.h: ... here.
5297         * sysdeps/generic/sendfile.c: New file.
5298         * sysdeps/generic/sendfile64.c: New file.
5299
5300         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5301         Move sendfile, sendfile64 to ...
5302         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5303         * sysdeps/mach/hurd/sendfile.c: New file.
5304         * sysdeps/mach/hurd/sendfile64.c: New file.
5305
5306         * sysdeps/mach/nanosleep.c: New file.
5307
5308 2002-06-04  Roland McGrath  <roland@frob.com>
5309
5310         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5311         * sysdeps/alpha/elf/configure: New file (generated).
5312
5313 2002-06-02  Roland McGrath  <roland@frob.com>
5314
5315         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5316
5317 2002-06-01  Roland McGrath  <roland@frob.com>
5318
5319         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5320         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5321
5322 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5323
5324         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5325         Add nsmap.
5326         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5327         Remove nstimes setting.
5328         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5329         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5330         there is mix of IPv6 and IPv4 nameservers.
5331         Use nsmap array to find free slots and preserve nameserver ordering.
5332         Fix RES_ROTATE.
5333
5334 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5335
5336         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5337         use this header with LFS.
5338
5339         * po/sk.po: Update from translation team.
5340
5341 2002-05-28  Andreas Schwab  <schwab@suse.de>
5342
5343         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5344         message when finding object of wrong class.
5345
5346 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5347
5348         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5349         Patch by <radu@netsoft.ro>.
5350
5351 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5352
5353         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5354         Add readahead.
5355         * sysdeps/unix/sysv/linux/readahead.c: New file.
5356         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5357         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5358         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5359         Add sendfile64 alias to sendfile syscall.
5360         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5361         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5362         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5363         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5364         syscall.
5365
5366         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5367         special section for PIC register loading.
5368         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5369
5370         * config.h.in: Define HAVE_HIDDEN.
5371         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5372
5373         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5374
5375 2002-05-28  Roland McGrath  <roland@frob.com>
5376
5377         * sysdeps/mach/alpha/setfpucw.c: New file.
5378
5379 2002-05-26  Roland McGrath  <roland@frob.com>
5380
5381         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5382         Use integer_t instead of int for IOC_VOID case.
5383
5384 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5385
5386         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5387
5388 2002-05-26  Bruno Haible  <bruno@clisp.org>
5389
5390         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5391         end of the ISO-8859-7 from idx table.
5392
5393 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5394
5395         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5396
5397 2002-05-24  David S. Miller  <davem@redhat.com>
5398
5399         * string/bits/string2.h (memset): Do not try to optimize when
5400         not _STRING_ARCH_unaligned if GCC will do the right thing.
5401
5402 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5403
5404         * posix/regex.c: Define `inline' as a macro into nothing for the
5405         compilers which lack the keyword.
5406         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5407         for the compatibility of gawk.
5408         * posix/regcomp.c: Add fake implementation of isblank() for the
5409         environments which lack the function.
5410         Don't use free_charset() in case of non-i18n envs.
5411         (build_range_exp): Don't use i18n related code in case of non-i18n
5412         envs.
5413         (build_collating_symbol): Likewise.
5414         (build_equiv_class): Likewise.
5415         (build_charclass): Likewise.
5416         (re_compile_fastmap_iter): Likewise.
5417         (parse_bracket_exp): Likewise.
5418         (build_word_op): Likewise.
5419         (regfree): Don't use free_charset() in case of non-i18n envs.
5420         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5421         re_token_type_t in case of non-i18n envs.
5422         Don't define re_charset_t in case of non-i18n envs.
5423         Change the type of wcs of re_string_t from wchar_t to wint_t,
5424         since we store also WEOF.
5425         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5426         the type of wcs of re_string_t from wchar_t to wint_t.
5427         (re_string_reconstruct): Likewise.
5428         (create_ci_newstate): Don't use i18n related code in case of
5429         non-i18n envs.
5430         (create_cd_newstate): Likewise.
5431
5432 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5433
5434         * iconv/loop.c: Fix typo.
5435
5436 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5437
5438         * inet/ether_line.c (ether_line): Fix a typo causing only
5439         lower 4 bits of each ethernet address byte being assigned.
5440         Don't modify what line points to.
5441         * inet/tst-ether_aton.c (main): Add ether_line tests.
5442
5443 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5444
5445         * manual/filesys.texi: Don't make readlink example leak memory
5446         when readlink fails.
5447
5448 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5449
5450         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5451         some more security checks.
5452
5453 2002-05-17  David S. Miller  <davem@redhat.com>
5454
5455         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5456
5457 2002-05-16  David S. Miller  <davem@redhat.com>
5458
5459         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5460         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5461         (elf_machine_load_address): Likewise.
5462         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5463
5464         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5465         is unaligned, do not forget to fully initialize %g1 magic value.
5466
5467         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5468         register definitions and provide 32-bit variants of structures
5469         during 64-bit builds.
5470
5471         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5472         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5473         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5474         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5475         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5476         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5477         Do not clear implicit one bit here, it must be done post-rounding.
5478         Only pad to the left using left shift if value uses less than the
5479         available fractional bits.
5480
5481 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5482
5483         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5484         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5485         (shared-only-routines): Likewise.
5486         * sysdeps/powerpc/libgcc-compat.c: New file.
5487         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5488         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5489         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5490         * sysdeps/wordsize-32/shdi3.c: Removed.
5491
5492 2002-05-16  Bruno Haible  <bruno@clisp.org>
5493
5494         * MakeTAGS (libc.pot): Don't sort the output.
5495         * po/header.pot: Update to match xgettext 0.11 output.
5496
5497 2002-05-16  Bruno Haible  <bruno@clisp.org>
5498
5499         * MakeTAGS (subdirs): Remove duplicates.
5500
5501 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5502
5503         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5504         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5505         alias.
5506
5507 2002-05-19  Andreas Jaeger  <aj@suse.de>
5508
5509         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5510         installation in /usr/local.
5511
5512 2002-05-16  Bruno Haible  <bruno@clisp.org>
5513
5514         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5515         string as argument of #error.
5516
5517 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5518
5519         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5520         don't define static.  Remove old __realpath function.  TC1 of
5521         POSIX 2001 will allow the second parameter to be NULL.
5522         * stdlib/test-canon.c: Comment out test for NULL as second
5523         parameter of realpath.
5524
5525         * time/offtime.c (__offtime): Set errno if overflow is detected.
5526
5527         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5528         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5529         dl-brk and dl-sbrk.
5530
5531         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5532         (fdimf): Likewise.
5533
5534 2002-05-15  Roland McGrath  <roland@frob.com>
5535
5536         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5537
5538 2002-05-12  Bruno Haible  <bruno@clisp.org>
5539
5540         * iconvdata/testdata/EUC-JISX0213: New file.
5541         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5542         * iconvdata/testdata/SHIFT_JISX0213: New file.
5543         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5544         * iconvdata/testdata/ISO-2022-JP-3: New file.
5545         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5546         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5547         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5548         contains comments indicating precomposed characters.
5549
5550 2002-04-21  Bruno Haible  <bruno@clisp.org>
5551
5552         * iconvdata/iso-2022-jp-3.c: New file.
5553         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5554         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5555         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5556         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5557         (distribute): Add iso-2022-jp-3.c.
5558
5559 2002-05-12  Bruno Haible  <bruno@clisp.org>
5560
5561         * iconvdata/tst-table-to.c (main): Restore handling of
5562         transliterations, broken by last patch.
5563
5564 2002-05-12  Bruno Haible  <bruno@clisp.org>
5565
5566         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5567
5568 2002-05-12  Bruno Haible  <bruno@clisp.org>
5569
5570         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5571         when there is not enough room in the output buffer.
5572         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5573
5574 2002-04-20  Bruno Haible  <bruno@clisp.org>
5575
5576         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5577         macros.
5578         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5579         Also make this macro work if FROM_DIRECTION evaluates to 0.
5580         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5581         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5582         of consume_incomplete.
5583         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5584         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5585         4, not 8.
5586         * iconvdata/cp1258.c: Likewise.
5587         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5588         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5589         not 2.
5590         * iconvdata/ibm933.c: Likewise.
5591         * iconvdata/ibm935.c: Likewise.
5592         * iconvdata/ibm937.c: Likewise.
5593         * iconvdata/ibm939.c: Likewise.
5594         * iconvdata/iso-2022-cn.c: Define
5595         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5596         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5597         * iconvdata/iso-2022-cn-ext.c: Likewise.
5598         * iconvdata/iso-2022-jp.c: Define
5599         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5600         {MIN,MAX}_NEEDED_{FROM,TO}.
5601         * iconvdata/tcvn5712-1.c: Define
5602         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5603         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5604         * iconvdata/euc-jisx0213.c: Define
5605         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5606         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5607         * iconvdata/shift_jisx0213.c: Likewise.
5608
5609 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5610
5611         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5612         shdi3, fixdfdi, fixsfdi in csu dir.
5613         (shared-only-routines): Likewise.
5614         * sysdeps/wordsize-32/cmpdi2.c: New file.
5615         * sysdeps/wordsize-32/shdi3.c: New file.
5616         * sysdeps/wordsize-32/fixdfdi.c: New file.
5617         * sysdeps/wordsize-32/fixsfdi.c: New file.
5618         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5619         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5620         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5621
5622         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5623         Only use va_arg if the argument will be used [PR libc/3259].
5624
5625 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5626
5627         * catgets/catgets.c (catopen): Free buffer if internal catalog
5628         open fails.
5629
5630 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5631
5632         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5633         non-buffering methods.
5634         * debug/pcprofiledump.c: Implement -u option.
5635         Patch by Roger Luethi <rl@hellgate.ch>.
5636
5637 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5638
5639         * include/netinet/in.h (bindresvport_internal): Add prototype.
5640         * include/rpc/auth.h  (authunix_create_internal,
5641         authunix_create_default_internal, authnone_create_internal,
5642         authdes_pk_create_internal): Add prototypes.
5643         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5644         clntudp_create_internal, clntudp_bufcreate_internal,
5645         clntunix_create_internal): Add prototypes.
5646         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5647         svc_getreq_internal, svc_getreq_common_internal,
5648         svc_getreqset_internal, svc_getreq_poll_internal,
5649         svc_register_internal, svc_unregister_internal,
5650         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5651         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5652         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5653         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5654         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5655         * inet/rcmd.c (rcmd_af): Use __listen.
5656         (rresvport_af): Use __bind.
5657         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5658         authunix_create, authunix_create_default, authnone_create,
5659         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5660         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5661         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5662         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5663         _authenticate, add INTDEF after such function definitions.
5664         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5665         __setsockopt, __getsockname instead of non-__ variants.
5666         * sunrpc/pmap_rmt.c: Likewise.
5667         * sunrpc/rtime.c: Likewise.
5668         * sunrpc/svc_udp.c: Likewise.
5669         * sunrpc/clnt_unix.c: Likewise.
5670         * sunrpc/svc_unix.c: Likewise.
5671         * sunrpc/bindrsvprt.c: Likewise.
5672         * sunrpc/svc_tcp.c: Likewise.
5673         * sunrpc/auth_none.c: Likewise.
5674         * sunrpc/clnt_raw.c: Likewise.
5675         * sunrpc/clnt_tcp.c: Likewise.
5676         * sunrpc/auth_unix.c: Likewise.
5677         * sunrpc/key_call.c: Likewise.
5678         * sunrpc/clnt_gen.c: Likewise.
5679         * sunrpc/pm_getmaps.c: Likewise.
5680         * sunrpc/clnt_simp.c: Likewise.
5681         * sunrpc/pmap_clnt.c: Likewise.
5682         * sunrpc/svc_run.c: Likewise.
5683         * sunrpc/svc.c: Likewise.
5684         * sunrpc/svc_simple.c: Likewise.
5685         * sunrpc/pm_getport.c: Likewise.
5686         * sunrpc/auth_des.c: Likewise.
5687         * sunrpc/svc_auth.c: Likewise.
5688         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5689         __register_frame_info_table_bases, __deregister_frame_info_bases):
5690         Add INTDEF.
5691         (__register_frame_info_bases_internal,
5692         __register_frame_info_table_bases_internal,
5693         __deregister_frame_info_bases_internal): Add prototypes.
5694         (__register_frame_info, __register_frame): Use INTUSE in call to
5695         __register_frame_info_bases.
5696         (__register_frame_info_table): Similarly.
5697         (__deregister_frame_info, __deregister_frame): Similarly.
5698         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5699         sendto as weak alias.
5700         * sysdeps/mach/hurd/sendto.c: Likewise.
5701         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5702         recvfrom as weak alias.
5703         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5704         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5705         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5706         recvmsg as weak alias.
5707         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5708         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5709         sendmsg as weak alias.
5710         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5711         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5712         setsockopt, add setsockopt as weak alias.
5713         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5714         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5715         weak alias.
5716         * sysdeps/mach/hurd/bind.c: Likewise.
5717         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5718         as weak alias.
5719         * sysdeps/mach/hurd/listen.c: Likewise.
5720         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5721         getsockname, add getsockname as weak alias.
5722         * sysdeps/mach/hurd/getsockname.c: Likewise.
5723         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5724         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5725         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5726         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5727         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5728         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5729         Add aliases.
5730         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5731         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5732         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5733         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5734         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5735         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5736         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5737         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5738         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5739         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5740         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5741         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5742
5743 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5744
5745         * locale/programs/localedef.h (show_archive_content): Add verbose
5746         argument.
5747         * locale/programs/localedef.c (main): Adjust caller.
5748         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5749         types.
5750         (nameentcmp, dataentcmp): New functions.
5751         (xstrcmp): Remove.
5752         (show_archive_content): Print verbose listing with --list-archive -v.
5753
5754 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5755
5756         * locale/programs/locarchive.c (open_archive): Take extra argument
5757         readonly.  If true open file with O_RDONLY and don't create the
5758         archive if it doesn't exist.
5759         Adapt all callers.
5760         (close_archive): Don't do anything if fd element is -1.
5761         * locale/programs/localedef.h (open_archive): Adjust prototype.
5762         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5763         call.
5764
5765         * malloc/malloc.c (__posix_memalign): Correct check for size of
5766         alignment value [PR libc/3444].
5767
5768         * include/stdio.h: Remove references to old stdio implementation.
5769
5770         * libio/Makefile (bug-ungetwc2-ENV): Define.
5771
5772 2002-05-13  Roland McGrath  <roland@frob.com>
5773
5774         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5775
5776         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5777
5778 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
5779
5780         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5781         Allocate three, not two, more than LEN when appending '/.'.
5782         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
5783         if NAME ends with '/.' if it is shorter than 2 chars.
5784
5785 2002-05-12  Roland McGrath  <roland@frob.com>
5786
5787         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
5788         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
5789
5790         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
5791         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
5792
5793 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5794
5795         * sysdeps/ia64/Makefile: Remove extra endif.
5796         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
5797
5798 2002-05-10  Andreas Schwab  <schwab@suse.de>
5799
5800         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
5801
5802 2002-05-09  Andreas Jaeger  <aj@suse.de>
5803
5804         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
5805         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
5806         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
5807
5808         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
5809         * sysdeps/wordsize-64/glob.c: ...here.
5810         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
5811         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
5812         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
5813
5814 2002-05-08  Roland McGrath  <roland@frob.com>
5815
5816         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
5817         O_NOTRANS flag in "." lookup.
5818
5819 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
5820
5821         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
5822
5823 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
5824
5825         * locale/duplocale.c (__duplocale): Update special members only
5826         when allocation succeeded.
5827
5828 2002-05-03  Roland McGrath  <roland@frob.com>
5829
5830         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
5831         we can only build libc.so.0.3(GLIBC_2.2.6) now.
5832
5833 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
5834
5835         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
5836         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
5837         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
5838         * sysdeps/ia64/ia64libgcc.S: New file.
5839
5840 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
5841
5842         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
5843
5844         * malloc/memusage.c: Distinguish anonymous mmap.
5845
5846 2002-05-01  Roland McGrath  <roland@frob.com>
5847
5848         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
5849         and use INTDEF on it.
5850         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
5851
5852         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
5853
5854         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
5855
5856 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
5857
5858         * malloc/memusage.c: Add support for tracking mmap & friends.
5859         * malloc/memusage.sh: Implement -m/--mmap option.
5860
5861 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5862
5863         * locale/programs/locarchive.c (create_archive): Add archivefname
5864         argument, create fname from it.
5865         (enlarge_archive): Honour output_prefix.
5866         (open_archive): Likewise.
5867
5868 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5869
5870         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
5871         too many stpcpy macros.
5872
5873 2002-04-26  Bruno Haible  <bruno@clisp.org>
5874
5875         * locale/programs/ld-collate.c (collate_read): Cast first argument
5876         for "%.*s" to int.
5877
5878 2002-04-26  Bruno Haible  <bruno@clisp.org>
5879
5880         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
5881         __dcngettext_internal): New declarations.
5882         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
5883         attribute declarations.
5884
5885 2002-04-30  Roland McGrath  <roland@frob.com>
5886
5887         Removed old GNU stdio implementation; GNU libio is now the only option.
5888         * configure.in: Removed --enable-libio option and @stdio@ subst var.
5889         Define USE_IN_LIBIO unconditionally.
5890         * configure: Regenerated.
5891         * Makeconfig (stdio): Set to libio by default.
5892         * config.make.in (stdio): Variable removed.
5893         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
5894         * sysdeps/unix/sysv/linux/configure: Regenerated.
5895         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
5896         * sysdeps/mach/hurd/configure: Regenerated.
5897         * stdio/.cvsignore: File removed.
5898         * stdio/Makefile: File removed.
5899         * stdio/Versions: File removed.
5900         * stdio/__fbufsize.c: File removed.
5901         * stdio/__flbf.c: File removed.
5902         * stdio/__fpending.c: File removed.
5903         * stdio/__fpurge.c: File removed.
5904         * stdio/__freadable.c: File removed.
5905         * stdio/__freading.c: File removed.
5906         * stdio/__fsetlocking.c: File removed.
5907         * stdio/__fwritable.c: File removed.
5908         * stdio/__fwriting.c: File removed.
5909         * stdio/clearerr.c: File removed.
5910         * stdio/fclose.c: File removed.
5911         * stdio/fcloseall.c: File removed.
5912         * stdio/feof.c: File removed.
5913         * stdio/ferror.c: File removed.
5914         * stdio/fflush.c: File removed.
5915         * stdio/fgetc.c: File removed.
5916         * stdio/fgetpos.c: File removed.
5917         * stdio/fgets.c: File removed.
5918         * stdio/fileno.c: File removed.
5919         * stdio/fmemopen.c: File removed.
5920         * stdio/fopen.c: File removed.
5921         * stdio/fopncook.c: File removed.
5922         * stdio/fputc.c: File removed.
5923         * stdio/fputs.c: File removed.
5924         * stdio/fread.c: File removed.
5925         * stdio/freopen.c: File removed.
5926         * stdio/fseek.c: File removed.
5927         * stdio/fsetpos.c: File removed.
5928         * stdio/ftell.c: File removed.
5929         * stdio/fwrite.c: File removed.
5930         * stdio/getc.c: File removed.
5931         * stdio/getchar.c: File removed.
5932         * stdio/getdelim.c: File removed.
5933         * stdio/gets.c: File removed.
5934         * stdio/glue.c: File removed.
5935         * stdio/internals.c: File removed.
5936         * stdio/linewrap.c: File removed.
5937         * stdio/linewrap.h: File removed.
5938         * stdio/memstream.c: File removed.
5939         * stdio/newstream.c: File removed.
5940         * stdio/obstream.c: File removed.
5941         * stdio/putc.c: File removed.
5942         * stdio/putchar.c: File removed.
5943         * stdio/puts.c: File removed.
5944         * stdio/rewind.c: File removed.
5945         * stdio/setbuf.c: File removed.
5946         * stdio/setbuffer.c: File removed.
5947         * stdio/setlinebuf.c: File removed.
5948         * stdio/setvbuf.c: File removed.
5949         * stdio/stdio.h: File removed.
5950         * stdio/ungetc.c: File removed.
5951         * stdio/vasprintf.c: File removed.
5952         * stdio/vscanf.c: File removed.
5953         * stdio/vsnprintf.c: File removed.
5954         * stdio/vsprintf.c: File removed.
5955         * stdio/vsscanf.c: File removed.
5956         * sysdeps/generic/defs.c: File removed.
5957         * sysdeps/generic/fdopen.c: File removed.
5958         * sysdeps/generic/pipestream.c: File removed.
5959         * sysdeps/generic/stdio_init.c: File removed.
5960         * sysdeps/generic/sysd-stdio.c: File removed.
5961         * sysdeps/generic/vdprintf.c: File removed.
5962         * sysdeps/mach/hurd/defs.c: File removed.
5963         * sysdeps/mach/hurd/fdopen.c: File removed.
5964         * sysdeps/mach/hurd/pipestream.c: File removed.
5965         * sysdeps/mach/hurd/stdio_init.c: File removed.
5966         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
5967         * sysdeps/mach/hurd/vdprintf.c: File removed.
5968         * sysdeps/posix/defs.c: File removed.
5969         * sysdeps/posix/fdopen.c: File removed.
5970         * sysdeps/posix/pipestream.c: File removed.
5971         * sysdeps/posix/stdio_init.c: File removed.
5972         * sysdeps/posix/vdprintf.c: File removed.
5973         * sysdeps/unix/pipestream.c: File removed.
5974         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
5975         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
5976         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
5977
5978 2002-04-29  Roland McGrath  <roland@frob.com>
5979
5980         * include/libc-symbols.h (link_warning): Use `unused' attribute.
5981
5982 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
5983
5984         * sysdeps/generic/tls.h: Describe what must be defined.
5985
5986         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
5987         glob_in_dir [PR libc/3385].
5988         * posix/globtest.sh: Add test case.
5989
5990         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
5991         //TRANSLIT twice.
5992
5993 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
5994
5995         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
5996         _internal symbol handling.
5997         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5998
5999 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6000
6001         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6002         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6003
6004 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6005
6006         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6007         not _LIBC and RE_ENABLE_I18N.
6008         (build_range_exp): Implement for not _LIBC.
6009         (build_collating_symbol): Likewise.
6010         (parse_bracket_exp): Unify redundant error handlings.
6011         Don't erase mbcset for non matching list in multibyte envs.
6012         (build_word_op): Add '_' to matching list for \w operator.
6013         * posix/regex_internal.c (re_string_construct): Invoke
6014         build_upper_buffer in case of not RE_ENABLE_I18N.
6015         (re_string_reconstruct): Don't touch cur_state in case of not
6016         RE_ENABLE_I18N.
6017         * posix/regex_internal.h (attribute_hidden): New macro in case of
6018         not _LIBC.
6019         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6020         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6021         RE_ENABLE_I18N.
6022         (transit_state_mb): Likewise.
6023         (check_node_accept_bytes): Implement the code evaluating range
6024         expression in case of not _LIBC.
6025         (find_collation_sequence_value): Hide in case of not _LIBC.
6026
6027 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6028
6029         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6030         i386/semctl.c.
6031         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6032         be used.
6033
6034 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6035
6036         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6037
6038         * sysdeps/ia64/strncpy.S: Fix recovery code.
6039         Patch by David Mosberger <davidm@hpl.hp.com>.
6040
6041 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6042
6043         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6044         GLIBC_2.2.6.
6045
6046 2002-04-14  Bruno Haible  <bruno@clisp.org>
6047
6048         * posix/regex.c (re_max_failures): Add back symbol for binary
6049         compatibility.
6050
6051 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6052
6053         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6054         of buffer building functions.
6055         * posix/regex_internal.c (re_string_allocate): New function.
6056         (re_string_realloc_buffers): New function.
6057         (re_string_skip_chars): New function.
6058         (re_string_reconstruct): New function.
6059         (re_string_construct): Adapt it to new interface of buffer building
6060         functions.
6061         (re_string_construct_common): Likewise.
6062         (build_wcs_buffer): Likewise.
6063         (build_wcs_upper_buffer): Likewise.
6064         (build_upper_buffer): Likewise.
6065         (re_string_translate_buffer): Likewise.
6066         (re_string_context_at): Adapt it to variable length buffers.
6067         * posix/regex_internal.h (re_string_t): Add new fields to handle
6068         variable length buffers.
6069         (re_match_context_t): Likewise.
6070         * posix/regexec.c (re_search_internal): Adapt it to new interface
6071         of re_string_t and re_match_context_t.
6072         (acquire_init_state_context): Likewise.
6073         (check_matching): Likewise.
6074         (check_halt_state_context): Likewise.
6075         (proceed_next_node): Likewise.
6076         (set_regs): Likewise.
6077         (sift_states_backward): Likewise.
6078         (clean_state_log_if_need): Likewise.
6079         (sift_states_iter_mb): Likewise.
6080         (sift_states_iter_bkref): Likewise.
6081         (add_epsilon_backreference): Likewise.
6082         (transit_state): Likewise.
6083         (transit_state_sb): Likewise.
6084         (transit_state_mb): Likewise.
6085         (transit_state_bkref): Likewise.
6086         (transit_state_bkref_loop): Likewise.
6087         (check_node_accept): Likewise.
6088         (match_ctx_init): Likewise.
6089         (extend_buffers): New function.
6090
6091 2002-04-21  Bruno Haible  <bruno@clisp.org>
6092
6093         * iconvdata/tst-table.sh: For the second check, use the truncated
6094         GB18030 charmap table, like for the first check.
6095
6096 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6097
6098         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6099         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6100
6101 2002-04-23  H.J. Lu  <hjl@gnu.org>
6102
6103         * include/math.h (isfinite): Fix a typo.
6104
6105 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6106
6107         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6108         which is created by the test suite.
6109
6110 2002-04-20  Bruno Haible  <bruno@clisp.org>
6111
6112         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6113         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6114
6115 2002-04-20  Bruno Haible  <bruno@clisp.org>
6116
6117         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6118         to avoid gcc warning.
6119
6120 2002-04-20  Bruno Haible  <bruno@clisp.org>
6121
6122         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6123         of data->__statep->__count.
6124
6125 2002-04-20  Bruno Haible  <bruno@clisp.org>
6126
6127         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6128         tag characters.
6129         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6130
6131 2002-04-24  Roland McGrath  <roland@frob.com>
6132
6133         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6134         use END macro instead of our own .end directive.
6135         Use `callsys' insn mnemonic instead of `call_pal'.
6136
6137         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6138
6139         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6140         macro; we need this for Hurd.
6141
6142         Log entry was missing for 2002/03/24 commit of rev 1.8,
6143         goes with 2002-03-17 changes.
6144         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6145         (sysdep_routines): Append ioperm here.
6146         (sysdep_headers): Append sys/io.h here.
6147
6148 2002-04-23  Roland McGrath  <roland@frob.com>
6149
6150         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6151         * sysdeps/mach/hurd/sendto.c: Likewise.
6152         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6153         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6154         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6155
6156 2002-04-22  Roland McGrath  <roland@frob.com>
6157
6158         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6159         failure from i386_io_perm_* RPCs to ENOSYS.
6160
6161 2002-04-22  Andreas Jaeger  <aj@suse.de>
6162
6163         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6164
6165         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6166
6167         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6168         register instead of destroying %rbx.
6169
6170 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6171
6172         * string/string.h: Declare strerror_r also for XPG6.
6173
6174 2002-04-19  Roland McGrath  <roland@frob.com>
6175
6176         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6177
6178 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6179
6180         * Makefile: Add handling of xtests and xcheck targets.
6181         * MakeTAGS: Likewise.
6182         * Makeconfig: Likewise.
6183         * Makerules: Likewise.
6184         * Rules: Likewise.
6185         * manual/Makefile: Likewise.
6186         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6187         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6188
6189 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6190
6191         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6192         authnone_private_s.
6193         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6194         Delete #ifdef _RPC_THREAD_SAFE_ block.
6195         (authnone_private): Make a struct, not a pointer to struct.
6196         (authnone_private_guard): New once-control variable.
6197         (authnone_create_once): New function, split out of
6198         authnone_create.  No need to allocate memory.
6199         (authnone_create): Just call authnone_create_once via
6200         __libc_once, then return &authnone_private->no_client.
6201         (authnone_marshal): Access private data via CLIENT argument,
6202         not authnone_private pointer.
6203         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6204         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6205         authnone_private_s.
6206
6207 2002-04-12  H.J. Lu  <hjl@gnu.org>
6208
6209         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6210
6211 2002-04-18  Bruno Haible  <bruno@clisp.org>
6212
6213         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6214         FROM_DIRECTION): Make the FROM direction stateless.
6215         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6216         FROM_DIRECTION): Likewise.
6217
6218 2002-04-15  Bruno Haible  <bruno@clisp.org>
6219
6220         * iconvdata/JISX0213.TXT: New file.
6221         * iconvdata/jisx0213.h: New file.
6222         * iconvdata/jisx0213.c: New file.
6223         * iconvdata/euc-jisx0213.c: New file.
6224         * iconvdata/shift_jisx0213.c: New file.
6225         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6226         * iconvdata/EUC-JISX0213.precomposed: New file.
6227         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6228         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6229         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6230         which the "to" direction is stateful.
6231         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6232         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6233         SHIFT_JISX0213.
6234         (libJISX0213-routines): New variable.
6235         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6236         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6237         (LDFLAGS-libJISX0213.so): New variable.
6238         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6239         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6240         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6241
6242 2002-04-15  Bruno Haible  <bruno@clisp.org>
6243
6244         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6245         uint32_t.  Update to Unicode 3.2.
6246         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6247         (BODY for TO_LOOP): Handle the ASCII range specially.
6248         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6249         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6250         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6251
6252 2002-04-15  Bruno Haible  <bruno@clisp.org>
6253
6254         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6255         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6256
6257 2002-04-15  Bruno Haible  <bruno@clisp.org>
6258
6259         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6260         (ucs4_to_cns11643): Update.
6261         * iconvdata/cns11643.c: Update to Unicode 3.2.
6262         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6263         __cns11643_from_ucs4p2_tab): Regenerated.
6264         (__cns11643_from_ucs4p2c_tab): New array.
6265         * iconvdata/cvs11643l1.c: Update comments.
6266         * iconvdata/EUC-TW.irreversible: Remove two entries.
6267
6268 2002-04-15  Bruno Haible  <bruno@clisp.org>
6269
6270         * locale/C-translit.h.in: Update to Unicode 3.2.
6271         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6272         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6273
6274 2002-04-15  Bruno Haible  <bruno@clisp.org>
6275
6276         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6277         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6278
6279 2002-04-15  Bruno Haible  <bruno@clisp.org>
6280
6281         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6282         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6283         always one byte, not 0 bytes in some cases and 2 bytes in others.
6284
6285         * iconvdata/tst-table-from.c (main): Correct the usage message.
6286
6287 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6288
6289         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6290         (parse_dup_op): Fix error handling like "a{}".
6291         (parse_bracket_exp): Add error handling.
6292         (fetch_number): Add error handling for "a{<very_large_number>}".
6293
6294 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6295
6296         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6297         in case that the symbol name is too long.
6298         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6299         in case of REG_ICASE.
6300
6301 2002-04-19  Andreas Jaeger  <aj@suse.de>
6302
6303         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6304         <hartvige@mips.com>.
6305
6306 2002-04-15  H.J. Lu  <hjl@gnu.org>
6307
6308         * include/math.h (__finitel_internal): Declare only if
6309         __NO_LONG_DOUBLE_MATH is not defined.
6310         (__isinfl_internal): Likewise.
6311         (__isnanl_internal): Likewise.
6312
6313         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6314         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6315         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6316         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6317         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6318         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6319         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6320
6321         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6322         __fcntl_internal.
6323
6324         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6325         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6326
6327 2002-04-15  Bruno Haible  <bruno@clisp.org>
6328
6329         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6330         (BODY for TO_LOOP): Likewise.
6331         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6332         * iconvdata/tst-table.sh: Add support for encodings which contain
6333         precomposed Unicode characters, known to the iconv converter in both
6334         directions but not listed in the charmap.
6335         * iconvdata/IBM856.irreversible: New file.
6336         * iconvdata/IBM922.irreversible: New file.
6337         * iconvdata/IBM1132.irreversible: New file.
6338         * iconvdata/IBM1133.irreversible: New file.
6339         * iconvdata/IBM1160.irreversible: New file.
6340         * iconvdata/IBM1161.irreversible: New file.
6341         * iconvdata/IBM1163.irreversible: New file.
6342         * iconvdata/IBM1164.irreversible: New file.
6343         * iconvdata/ARMSCII-8.irreversible: New file.
6344         * iconvdata/TCVN5712-1.precomposed: New file.
6345         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6346         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6347         ARMSCII-8, TCVN5712-1.
6348         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6349         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6350         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6351         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6352
6353 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6354
6355         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6356         for EVENING69.  Include offsets in TZ environment variable.
6357
6358 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6359
6360         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6361         avoid compiler warnings.
6362
6363         * locale/programs/localedef.c (main): Always call
6364         construct_output_path.
6365
6366         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6367
6368         * locale/programs/locfile.c (to_archive): New variable.  To collect
6369         data which has to be added to the locale archive.
6370         (write_all_categories): Take new third parameter with locale name.
6371         Unless no_archive flag set add new locale data to the archive
6372         (write_locale_data): Unless no-archive flag set store generated data
6373         in to_archive data structure instead of generation output file.
6374         Add new parameter with locale category index.
6375         * locale/programs/locfile.h: Add new parameters in declaractions of
6376         write_all_categories and write_locale_data.
6377         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6378         --add-to-archive, and --delete-from-archive options.  Pass extra
6379         parameter to write_all_categories.
6380         * locale/programs/localedef.h: Add prototypes for functions in
6381         locarchive.c.
6382         * locale/locarchive.h: New file.
6383         * locale/programs/locarchive.c: New file.
6384         * locale/Makefile (distribute): Add programs/locarchive.c and
6385         locarchive.h.
6386         (localedef-modules): Add md5 and locarchive.
6387         Add vpath to crypt subdir for md5.c.
6388
6389         * locale/programs/ld-address.c: Pass locale category ID as new second
6390         parameter to write_locale_data.
6391         * locale/programs/ld-collate.c: Likewise.
6392         * locale/programs/ld-ctype.c: Likewise.
6393         * locale/programs/ld-identification.c: Likewise.
6394         * locale/programs/ld-measurement.c: Likewise.
6395         * locale/programs/ld-messages.c: Likewise.
6396         * locale/programs/ld-monetary.c: Likewise.
6397         * locale/programs/ld-name.c: Likewise.
6398         * locale/programs/ld-numeric.c: Likewise.
6399         * locale/programs/ld-paper.c: Likewise.
6400         * locale/programs/ld-telephone.c: Likewise.
6401         * locale/programs/ld-time.c: Likewise.
6402
6403         * locale/simple-hash.c: Move compute_hashval function from here...
6404         * locale/hashval.h: ...to here.  New file.
6405         * locale/simple-hash.h: Add prototype for compute_hashval.
6406
6407         * include/libintl.h: Minor cleanups.
6408
6409 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6410
6411         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6412
6413 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6414
6415         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6416
6417 2002-04-14  Bruno Haible  <bruno@clisp.org>
6418
6419         * locale/programs/charmap.c (charmap_read): Don't access result if
6420         result == NULL.
6421
6422 2002-02-17  Andreas Schwab  <schwab@suse.de>
6423
6424         * elf/reldep7.c: New file.
6425         * elf/reldep7mod1.c: New file.
6426         * elf/reldep7mod2.c: New file.
6427         * elf/Makefile: Add rules to build and run reldep7.
6428
6429 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6430
6431         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6432         the end of the function.  Pass original flags to recursive call if
6433         add_dependency failed.
6434         (_dl_lookup_versioned_symbol): Likewise.
6435
6436 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6437
6438         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6439         early, but check whether it overflowed afterwards.
6440         * time/tst-mktime.c (main): Add new tests.
6441
6442 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6443
6444         * debug/xtrace.sh: Fix program name in help message.
6445         Patch by Roger Luethi <rl@hellgate.ch>.
6446
6447         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6448         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6449         NOT_IN_libc.
6450         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6451         * sysdeps/mach/hurd/lxstat.c: Likewise.
6452         * sysdeps/unix/common/lxstat.c: Likewise.
6453         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6454         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6455         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6456         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6457         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6458         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6459         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6460         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6461         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6462
6463         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6464         prototypes.  Add __mbrlen and __mbrtowc macros.
6465         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6466         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6467
6468         * include/unistd.h: Add prototype for __write_internal and add
6469         __libc_write macro is SHARED.
6470         * sysdeps/generic/write.c: Use INTDEF for __write.
6471         * sysdeps/mach/hurd/write.c: Likewise.
6472         * sysdeps/unix/sysv/aix/write.c: Likewise.
6473         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6474
6475         * assert/assert.c: Replace STR_N_SIZE with something usable in
6476         macro arguments.
6477         * assert/assert-perr.c: Likewise.
6478
6479         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6480         SA_LEN macro to use it if not NOT_IN_libc.
6481         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6482
6483         * include/fcntl.h: Declare __open_internal and define __open and
6484         __libc_open macros if not NOT_IN_libc.
6485         * sysdeps/generic/open.c: Use INTDEF for __open.
6486         * sysdeps/mach/hurd/open.c: Likewise.
6487         * sysdeps/unix/sysv/aix/open.c: Likewise.
6488         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6489
6490         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6491         has correct number.
6492
6493         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6494         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6495         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6496         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6497
6498         * include/wctype.h: Declare __iswalpha_l_internal,
6499         __iswdigit_l_internal, __iswspace_l_internal,
6500         __iswxdigit_l_internal, and __iswctype_internal.  Define
6501         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6502         __iswxdigit_l macros if not NOT_IN_libc.
6503         * wctype/iswctype.c: Use INTDEF for __iswctype.
6504         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6505
6506         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6507         __isnan_internal, and __isnanl_internal.
6508         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6509         __isnan, and __isnanl.
6510         * stdio-common/printf_size.c: Likewise.
6511         * sysdeps/generic/printf_fphex.c: Likewise.
6512         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6513         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6514         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6515         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6516         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6517         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6518         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6519         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6520         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6521         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6522         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6523         * sysdeps/m68k/s_isinfl.c: Likewise.
6524         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6525         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6526
6527         * include/sys/time.h: Declare __gettimeofday_internal and define
6528         __gettimeofday macro if not NOT_IN_libc.
6529         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6530         * sysdeps/mach/gettimeofday.c: Likewise.
6531         * sysdeps/posix/gettimeofday.c: Likewise.
6532         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6533         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6534         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6535         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6536
6537         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6538         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6539         Remove __lstat and __fstat inline functions.
6540         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6541         * sysdeps/mach/hurd/fxstat.c: Likewise.
6542         * sysdeps/unix/fxstat.c: Likewise.
6543         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6544         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6545         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6546         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6547         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6548         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6549         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6550         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6551         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6552
6553         * include/unistd.h: Declare __getpid_internal and define
6554         __getpid macro if not NOT_IN_libc.
6555         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6556         * sysdeps/generic/getpid.c: Likewise.
6557         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6558         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6559
6560         * include/unistd.h: Declare __getpgid_internal and define
6561         __getpgid macro if not NOT_IN_libc.
6562         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6563         * sysdeps/mach/hurd/getpgid.c: Likewise.
6564         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6565         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6566         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6567         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6568
6569         * include/unistd.h: Declare __getpagesize_internal and define
6570         __getpagesize macro if not NOT_IN_libc.
6571         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6572         __getpagesize.
6573         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6574         * sysdeps/mach/getpagesize.c: Likewise.
6575         * sysdeps/posix/getpagesize.c: Likewise.
6576         * sysdeps/unix/getpagesize.c: Likewise.
6577         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6578         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6579         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6580         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6581
6582 2002-04-13  Andreas Jaeger  <aj@suse.de>
6583
6584         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6585         as clobber to reduce register pressure.
6586         (__strpbrk_cg): Likewise.
6587         (__mempcpy_by4): Likewise.
6588         (__strstr_cg): Likewise.
6589         Add prototype for __memrchr.
6590
6591 2002-04-13  Andreas Schwab  <schwab@suse.de>
6592
6593         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6594         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6595         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6596
6597 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6598
6599         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6600         check whether the caller prefers getting the most recent version of
6601         a symbol of the earliest version.
6602         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6603         _dl_do_lookup to also take the new parameter and pass it on.
6604         Change 'explicit' parameter of _dl_lookup_symbol and
6605         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6606         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6607         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6608         _dl_lookup_versioned_symbol.
6609         * elf/dl-reloc.c: Likewise.
6610         * elf/dl-runtime.c: Likewise.
6611         * elf/dl-sym.c: Likewise.
6612         * sysdeps/mips/dl-machine.h: Likewise.
6613
6614 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6615
6616         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6617         in a token.
6618         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6619
6620 2002-04-10  Andreas Jaeger  <aj@suse.de>
6621
6622         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6623
6624         * include/argz.h: Remove extra char from last patch.
6625
6626 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6627
6628         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6629         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6630         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6631         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6632         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6633         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6634         __chown_internal.
6635         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6636
6637         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6638         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6639         * intl/ngettext.c: Likewise.
6640
6641         * include/sys/socket.h: Declare __connect_internal and define
6642         __connect macro if not NOT_IN_libc.
6643         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6644         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6645         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6646
6647         * include/unistd.h: Declare __close_internal and define __close macro
6648         if not NOT_IN_libc.
6649         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6650         WJUMP3): Add extra parenthesis to avoid expanding element names with
6651         macors like __close.
6652         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6653
6654         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6655         if not NOT_IN_libc.
6656         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6657         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6658         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6659
6660         * include/unistd.h: Declare __fork_internal and define __fork macro
6661         if not NOT_IN_libc.
6662         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6663         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6664         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6665
6666         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6667         __fsetlocking macro to use it if not NOT_IN_libc.
6668         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6669
6670         * libio/__fbufsize.c: Correct copyright.
6671         * libio/__flbf.c: Likewise.
6672         * libio/__fpending.c: Likewise.
6673         * libio/__fpurge.c: Likewise.
6674         * libio/__freadable.c: Likewise.
6675         * libio/__freading.c: Likewise.
6676         * libio/__fsetlocking.c: Likewise.
6677         * libio/__fwritable.c: Likewise.
6678         * libio/__fwriting.c: Likewise.
6679
6680         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6681         macro to use it if not NOT_IN_libc.
6682         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6683
6684         * include/mntent.h: Declare __setmntent_internal,
6685         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6686         __getmntent_r, and __endmntent macros to use these functions if not
6687         NOT_IN_libc.
6688         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6689         __endmntent.
6690
6691         * include/math.h: Declare __finite_internal, __finitef_internal, and
6692         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6693         these functions.
6694         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6695         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6696         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6697         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6698         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6699         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6700         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6701         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6702         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6703         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6704
6705         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6706         to use this function if not NOT_IN_libc.
6707         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6708         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6709         * sysdeps/mach/hurd/fcntl.c: Likewise.
6710         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6711         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6712
6713         * include/argz.h: Declare __argz_count_internal and
6714         __argz_stringify_internal.
6715         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6716         __argz_stringify.
6717         * string/argz-count.c: Use INTDEF for __argz_count.
6718         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6719
6720         * include/stdlib.h: Declare __cxa_atexit_internal and define
6721         __cxa_atexit macro if not NOT_IN_libc.
6722         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6723         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6724
6725         * assert/assert.c: Use INTDEF for __assert_fail.
6726         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6727         * include/assert.h: Declare __assert_fail_internal.
6728
6729         * extra-lib.mk: Mark assignment to lib with override.
6730
6731 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6732
6733         * Makerules: Use cppflags-iterator.mk to add defines for all test
6734         source files.
6735
6736 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6737
6738         * elf/elf.h: Define R_SH_TLS_xxx macros.
6739         * elf/rtld.c: Remove an extra parenthesis.
6740         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6741         TLS_GD macros.
6742         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6743         * sysdeps/sh/dl-lookupcfg.h: New file.
6744         * sysdeps/sh/dl-tls.h: New file.
6745         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6746         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6747         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6748         R_SH_TLS_TPOFF32 relocations.
6749
6750 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6751
6752         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6753         of NOT_IN_LIBC.
6754         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6755         * include/stdlib.h: Likewise.
6756
6757 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
6758
6759         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6760         instead of _RTLD_LOCAL.
6761         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6762         * include/unistd.h: Likewise.
6763         * sysdeps/generic/ldsodefs.h: Likewise.
6764
6765         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6766         if in libc or ld.so.
6767
6768 2002-04-08  Andreas Jaeger  <aj@suse.de>
6769
6770         * elf/cache.c (print_entry): Support x86-64.
6771
6772 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6773
6774         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6775         with one accessing the locale data structures directly.
6776         * stdio-common/printf-prs.c: Include localeinfo.h for new
6777         MB_CUR_MAX definition.
6778
6779         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6780         is the name of the source file without extension.
6781         * Makefile (distribute): Add cppflags-iterator.mk.
6782         * cppflags-iterator.mk: New file.
6783         * extra-lib.mk: For the sources of the library run
6784         cppflags-iterator.mk.
6785
6786         * include/libintl.h: Declare __dcgettext_internal and
6787         _libc_intl_domainname_internal.  Define __dcgettext using these
6788         two symbols if used in libc itself.
6789         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
6790         _libc_intl_domainname_internal.
6791         * argp/argp-parse.c: Likewise.
6792         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
6793         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
6794         * intl/gettext.c: Likewise.
6795         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
6796         alias.
6797         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
6798         __dcgettext.
6799         * posix/regex_internal.c (gettext): Likewise.
6800
6801 2002-04-08  Andreas Jaeger  <aj@suse.de>
6802
6803         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
6804
6805         * sysdeps/x86_64/fpu/s_llrint.S: New file.
6806         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
6807         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
6808         * sysdeps/x86_64/fpu/s_lrint.S: New file.
6809         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
6810         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
6811
6812 2002-04-08  Roland McGrath  <roland@frob.com>
6813
6814         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
6815         widening __hurd_fail value.
6816
6817 2002-04-07  Roland McGrath  <roland@frob.com>
6818
6819         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
6820         <mach/machine/alpha_instruction.h>.
6821         (_hurd_setup_sighandler): Take proper arguments for current decls.
6822         Update code to use _hurdsig_catch_fault.
6823         Use `callsys' instruction instead of `call_pal'.
6824         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
6825
6826         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
6827         (ALIGN, at, AT, fp): New macros.
6828
6829 2002-04-06  Roland McGrath  <roland@frob.com>
6830
6831         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
6832
6833         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
6834         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
6835
6836         * sysdeps/mach/hurd/bind.c: Use prototype definition.
6837         * sysdeps/mach/hurd/connect.c: Likewise.
6838         * sysdeps/mach/hurd/getsockopt.c: Likewise.
6839         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6840
6841         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
6842         __msg_sig_post RPC.
6843
6844         * hurd/catch-exc.c: Use integer_t instead of int.
6845         * hurd/hurdfault.c: Likewise.
6846
6847         * sysdeps/mach/hurd/alpha/exc2signal.c
6848         (_hurd_exception2signal): Rewritten.
6849         * sysdeps/mach/hurd/alpha/longjmp-ts.c
6850         (_hurd_longjmp_thread_state): Rewritten.
6851
6852 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
6853
6854         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
6855         DB_LOOKUP_FCT prototype.
6856         * nss/getXXent_r.c: Likewise.
6857         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
6858         * inet/getaliasname_r.c: Likewise.
6859         * inet/getnetbyad_r.c: Likewise.
6860         * inet/getnetbynm_r.c: Likewise.
6861         * inet/getnetent_r.c: Likewise.
6862         * inet/getproto_r.c: Likewise.
6863         * inet/getprtent_r.c: Likewise.
6864         * inet/getprtname_r.c: Likewise.
6865         * inet/getrpcbyname_r.c: Likewise.
6866         * inet/getrpcbynumber_r.c: Likewise.
6867         * inet/getrpcent_r.c: Likewise.
6868         * inet/getservent_r.c: Likewise.
6869         * inet/getsrvbynm_r.c: Likewise.
6870         * inet/getsrvbypt_r.c: Likewise.
6871         * shadow/getspent_r.c: Likewise.
6872         * shadow/getspnam_r.c: Likewise.
6873
6874         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
6875
6876         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
6877         Use i686-friendly PIC code.
6878         * sysdeps/i386/elf/setjmp.S: Likewise.
6879
6880         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
6881
6882         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
6883         list.
6884         * elf/Versions: Remove it here.
6885
6886 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
6887
6888         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
6889         direction.  Reported by H . J . Lu <hjl@lucon.org>.
6890
6891 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
6892
6893         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
6894         test just before the test runs.
6895         * intl/tst-translit.sh: Likewise.
6896         * intl/tst-codeset.sh: Likewise.
6897
6898         * timezone/zic.c: Update from tzcode2002c.
6899         * timezone/asia: Update from tzdata2002c.
6900         * timezone/backward: Likewise.
6901         * timezone/europe: Likewise.
6902         * timezone/northamerica: Likewise.
6903         * timezone/northamerica: Likewise.
6904         * timezone/northamerica: Likewise.
6905         * timezone/southamerica: Likewise.
6906         * timezone/zone.tab: Likewise.
6907
6908 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
6909
6910         * sysdeps/generic/brk.c (__curbrk): Declare.
6911         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
6912         * sysdeps/generic/dl-sbrk.c: Likewise.
6913         * sysdeps/unix/arm/dl-brk.S: New file.
6914         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
6915         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
6916         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
6917         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
6918         * sysdeps/unix/i386/dl-brk.S: New file.
6919         * sysdeps/unix/mips/dl-brk.S: New file.
6920         * sysdeps/unix/sparc/dl-brk.S: New file.
6921         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
6922         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
6923         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
6924         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
6925
6926 2002-04-03  Andreas Schwab  <schwab@suse.de>
6927
6928         * Makefile (headers): Add gnu/lib-names.h here instead of
6929         install-others.
6930         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
6931         installation rule.
6932         (install-headers): Add dependency on install-headers-nosubdir.
6933         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
6934         instead of install-others.
6935         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
6936         installation rule.
6937
6938 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
6939
6940         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
6941         Reported by Sam Roberts <sroberts@uniserve.com>.
6942
6943 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
6944
6945         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
6946         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
6947         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
6948         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
6949
6950 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
6951
6952         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
6953         (RTLD_START): Ditto.
6954         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
6955         dependency violation.
6956
6957 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
6958
6959         * time/mktime.c (__mktime_internal): Move check for year < 70 below
6960         all variable declarations.
6961
6962 2002-04-04  Andreas Schwab  <schwab@suse.de>
6963
6964         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
6965
6966 2002-04-04  Andreas Jaeger  <aj@suse.de>
6967
6968         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
6969         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
6970
6971         * sysdeps/x86_64/fpu/s_fabs.c: New file.
6972         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
6973         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
6974
6975         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
6976
6977         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
6978
6979         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
6980         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
6981
6982         * configure.in: Handle all mips entries the same.
6983
6984         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
6985         * sysdeps/mips/mips3/*: Likewise.
6986         * sysdeps/mips/p40/bits/endian.h: Likewise.
6987
6988 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
6989
6990         * misc/dirname.c (dirname): Ignore trailing slashes at end of
6991         non-null result [PR libc/2600].
6992
6993         * misc/tst-dirname.c: Add more tests.
6994
6995 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
6996
6997         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
6998         define a code_set_name provide one based on the filename.
6999
7000         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7001
7002 2001-12-28  Andreas Jaeger  <aj@suse.de>
7003
7004         * time/mktime.c (__mktime_internal): Check for year < 70
7005         [PR libc/2738].
7006
7007 2002-04-03  Andreas Jaeger  <aj@suse.de>
7008
7009         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7010         shmat.
7011         Reported by Andi Kleen <ak@suse.de>.
7012
7013 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7014
7015         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7016         * sysdeps/generic/w_lgammaf.c: Likewise.
7017         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7018
7019         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7020         Adjust for new output format of the backtrace functions.
7021
7022         * misc/syslog.c (vsyslog): Only use cleanup handler if
7023         _LIBC_REENTRANT is defined [PR libc/2924].
7024
7025         * libio/Makefile (tests): Add bug-ungetwc2.
7026         * libio/bug-ungetwc2.c: New file.
7027
7028         * manual/install.texi: Typographical and grammatical cleanup.
7029         Patch by Dennis Grace <dgrace@us.ibm.com>.
7030
7031         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7032         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7033
7034         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7035         always "&".  Adjust callers.
7036         Add "_" prefix to several generated definitions.
7037         Patch by paul@serice.net [PR libc/3158].
7038
7039 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7040
7041         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7042         size of _dl_arm_cap_flags.
7043         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7044
7045         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7046         Define as 8.
7047
7048 2002-03-22  H.J. Lu  <hjl@gnu.org>
7049
7050         * scripts/firstversions.awk: Check the first version.
7051
7052 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7053
7054         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7055         dependencies must be stable to work correctly.
7056         Reported by martin.lubich@datacon.at.
7057
7058         * libio/bug-ungetwc1.c: New file.
7059         * libio/Makefile (tests): Add bug-ungetwc1.
7060
7061         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7062         if stream was last used for writing.
7063
7064         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7065         number [PR libc/3111].
7066
7067         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7068         to ...
7069         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7070
7071 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7072
7073         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7074         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7075         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7076         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7077         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7078
7079 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7080
7081         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7082         dynamic tags.
7083
7084 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7085
7086         * sysdeps/i386/fpu/s_fabs.S: New file.
7087         * sysdeps/i386/fpu/s_fabsf.S: New file.
7088         * sysdeps/i386/fpu/s_fabsl.S: New file.
7089         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7090         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7091         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7092
7093 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7094
7095         * rt/tst-shm.c (do_test): Add one more test for size of shared
7096         memory object.
7097
7098 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7099
7100         * malloc/malloc.c: Add short description and prototypes for
7101         malloc_get_state, malloc_set_state and posix_memalign, for
7102         consistency and to avoid warnings with -Wstrict-prototypes.
7103         Reported by Andreas Jaeger <aj@suse.de>.
7104
7105 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7106
7107         * po/gl.po: Update from translation team.
7108
7109 2002-03-31  Roland McGrath  <roland@frob.com>
7110
7111         * hurd/hurdselect.c (_hurd_select): Fix
7112         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7113         Use a union rather than casts to compare mach_msg_type_t as int.
7114
7115 2002-03-25  Roland McGrath  <roland@frob.com>
7116
7117         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7118         check off the end of NAME when it's shorter than 2 chars.
7119         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7120
7121 2002-03-17  Roland McGrath  <roland@frob.com>
7122
7123         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7124         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7125         * sysdeps/mach/hurd/i386/Dist: Add them.
7126         * sysdeps/mach/hurd/i386/Versions
7127         (libc: GLIBC_2.2.6): New set, add ioperm.
7128         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7129         (mach_interface_list): Check for mach_i386.defs.
7130         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7131         * sysdeps/mach/configure: Regenerated.
7132
7133 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7134
7135         * po/fr.po: Update from translation team.
7136
7137 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7138
7139         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7140         getpriority from syscalls list.
7141
7142 2002-03-28  Andreas Jaeger  <aj@suse.de>
7143
7144         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7145         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7146         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7147         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7148
7149 2002-03-27  Andreas Jaeger  <aj@suse.de>
7150
7151         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7152         sigcontext): Follow further kernel change.
7153
7154         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7155         kernel change.
7156
7157         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7158         Change for struct sigcontext change.
7159
7160         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7161         Follow changes in struct sigcontext.
7162
7163         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7164         sysycall, use wrapper instead.
7165
7166 2002-03-26  Andreas Jaeger  <aj@suse.de>
7167
7168         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7169         read and write accesses as detailed as possible.
7170         (__memcpy_by2): Likewise.
7171         (__memcpy_g): Likewise.
7172         (memmove): Likewise.
7173         (memcmp): Likewise.
7174         (__memset_ccn_by4): Likewise.
7175         (__memset_ccn_by2): Likewise.
7176         (__memset_gcn_by4): Likewise.
7177         (__memset_gcn_by2): Likewise.
7178         (memchr): Likewise.
7179         (__memrchr): Likewise.
7180         (rawmemchr): Likewise.
7181         (__strlen_g): Likewise.
7182         (__strcpy_g): Likewise.
7183         (__mempcpy_by4): Likewise.
7184         (__mempcpy_by2): Likewise.
7185         (__mempcpy_byn): Likewise.
7186         (__stpcpy_g): Likewise.
7187         (__strncpy_by4): Likewise.
7188         (__strncpy_by2): Likewise.
7189         (__strncpy_byn): Likewise.
7190         (__strncpy_gg): Likewise.
7191         (__strcat_c): Likewise.
7192         (__strcat_g): Likewise.
7193         (__strncat_g): Likewise.
7194         (__strcmp_gg): Likewise.
7195         (__strncmp_g): Likewise.
7196         (__strchr_c): Likewise.
7197         (__strchr_g): Likewise.
7198         (__strchrnul_c): Likewise.
7199         (__strchrnul_g): Likewise.
7200         (__strrchr_c): Likewise.
7201         (__strrchr_g): Likewise.
7202         (__strrchr_c): Likewise.
7203         (__strrchr_g): Likewise.
7204         (__strcspn_c1): Likewise.
7205         (__strcspn_cg): Likewise.
7206         (__strcspn_g): Likewise.
7207         (__strcspn_g): Likewise.
7208         (__strspn_c1): Likewise.
7209         (__strspn_cg): Likewise.
7210         (__strspn_g): Likewise.
7211         (__strspn_g): Likewise.
7212         (__strpbrk_cg): Likewise.
7213         (__strpbrk_g): Likewise.
7214         (__strstr_cg): Likewise.
7215         (__strstr_g): Likewise.
7216
7217         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7218         Michal Ludvig <mludvig@suse.cz>.
7219
7220         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7221         compatibilty, adjust for kernel changes.
7222
7223         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7224         sigcontext): Adjust for kernel changes.
7225
7226 2002-03-25  Andreas Jaeger  <aj@suse.de>
7227
7228         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7229         little endian.
7230         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7231
7232 2002-03-24  Andreas Jaeger  <aj@suse.de>
7233
7234         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7235
7236         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7237
7238         * iconv/tst-iconv3.c (main): Use correct printf strings.
7239
7240 2002-03-18  Roland McGrath  <roland@frob.com>
7241
7242         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7243         (CMGROUP_MAX): New macro.
7244
7245 2002-03-23  Roland McGrath  <roland@frob.com>
7246
7247         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7248         * sysdeps/posix/shm_unlink.c: Likewise.
7249
7250 2002-03-22  Roland McGrath  <roland@frob.com>
7251
7252         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7253         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7254         under --enable-libio.
7255         * sysdeps/mach/hurd/configure: Regenerated.
7256
7257 2002-03-23  Roland McGrath  <roland@frob.com>
7258
7259         * sysdeps/mach/hurd/i386/Makefile
7260         (sysdep_routines, shared-only-routines): Don't add framestate,
7261         reverting 2001-10-02 change.
7262         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7263         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7264         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7265         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7266         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7267         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7268         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7269         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7270         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7271         Do it here instead, only if [$(unwind-find-fde) = yes].
7272
7273 2002-03-23  Andreas Jaeger  <aj@suse.de>
7274
7275         * signal/signal.h: Fix typo. Patch by Steve Kemp
7276         <skx@tardis.ed.ac.uk>.
7277
7278 2002-03-22  Andreas Jaeger  <aj@suse.de>
7279
7280         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7281         getresuid.
7282
7283         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7284         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7285         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7286         user_fpregs_struct): Rename fwd.
7287
7288         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7289         Follow sigcontext changes.
7290
7291 2002-03-22  Andreas Jaeger  <aj@suse.de>
7292
7293         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7294         changes for NaNs on MIPS.
7295         Patch by Hartvig Ekner <hartvige@mips.com>.
7296
7297 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7298
7299         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7300         Use realloc if too large.
7301         (addgrbyid): Likewise.
7302         * nscd/hstcache.c (addhstbyname): Likewise.
7303         (addhstbyaddr): Likewise.
7304         (addhstbynamev6): Likewise.
7305         (addhstbyaddrv6): Likewise.
7306         * nscd/pwdcache.c (addpwbyname): Likewise.
7307         (addpwbyuid): Likewise.
7308
7309 2002-03-21  Andreas Jaeger  <aj@suse.de>
7310
7311         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7312         _fpstate): Add separate struct for x86-64.
7313
7314         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7315         user_fpregs_struct): Change member names to follow kernel.
7316
7317 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7318
7319         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7320         Correctly close the UDP connection right away [PR libc/3120].
7321
7322 2002-03-20  Andreas Jaeger  <aj@suse.de>
7323
7324         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7325         user_fpregs_struct): Fix for changed kernel struct.
7326         (struct user_regs_struct): Likewise.
7327         (struct user): Likewise.
7328         Add 32-bit x86 compatibility.
7329
7330         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7331
7332 2002-03-19  Andreas Jaeger  <aj@suse.de>
7333
7334         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7335
7336 2002-03-18  Andreas Jaeger  <aj@suse.de>
7337
7338         * iconvdata/Makefile: Only run tests when shared libs are
7339         available.
7340
7341 2002-03-17  Andreas Jaeger  <aj@suse.de>
7342
7343         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7344
7345         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7346
7347         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7348         bits.
7349
7350         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7351         (CAUSE_SHIFT): New macro.
7352         Patch by Hartvig Ekner <hartvige@mips.com>.
7353
7354         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7355         * sysdeps/generic/unwind-pe.h: Likewise.
7356
7357         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7358         type to _IO_setb.
7359
7360         * libio/stdio.c (AL2): Define variant when visibility attribute is
7361         not supported.
7362
7363         * include/libc-symbols.h (_INTVARDEF): Define variant when
7364         visibility attribute is not supported.
7365
7366 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7367
7368         * po/fr.po: Update from translation team.
7369
7370 2002-02-25  Bruno Haible  <bruno@clisp.org>
7371
7372         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7373
7374 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7375
7376         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7377         buffers if _IO_file_attach failed.
7378
7379         * libio/fileops.c (_IO_file_open): Close file descriptor if
7380         _IO_SEEKOFF call failed.
7381
7382 2002-03-15  H.J. Lu  <hjl@gnu.org>
7383             Ulrich Drepper  <drepper@redhat.com>
7384
7385         * configure.in: Check for availability of
7386         init_array/fini_array/preinit_array handling in binutils.
7387         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7388         * config.make.in (have-initfini-array): New variable.
7389
7390 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7391
7392         * stdio-common/tst-printf.c (main): Comment out one test which
7393         checked the compiler's ability to fold floating-point constants
7394         but not really printf.
7395         (rfg3): Make s const.
7396         * stdio-common/tst-printf.sh: Adjust for removed test.
7397
7398         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7399         internal function.  Adjust for internal_function calling convention.
7400         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7401         as internal_function.
7402
7403         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7404         hidden.
7405
7406         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7407         declaration and definition.
7408         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7409         declaration.
7410         * nss/getXXent_r.c: Likewise.
7411         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7412         definition.
7413
7414         * include/time.h: Declare __localtime_r as hidden.
7415
7416         * include/aliases.h: Declare __getaliasent_r as hidden.
7417         * include/grp.h: Declare __getgrent_r as hidden.
7418         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7419         __getservent_r, and __getprotoent_r as hidden.
7420         * include/pwd.h: Declare __getpwent_r as hidden.
7421         * include/shadow.h: Declare __getspent_r as hidden.
7422         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7423
7424         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7425         and __gconv_transliterate as hidden.
7426         Add internal_function to __gconv_get_path declaration.
7427         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7428         definition.  Add attribute_hidden to __gconv_read_conf definition.
7429
7430 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7431
7432         * elf/rtld.c: Declare _environ as hidden.
7433         * sysdeps/generic/dl-environ.c: Likewise.
7434         * sysdeps/generic/dl-sysdep.c: Likewise.
7435
7436         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7437         _dl_mcount_internal as hidden.
7438
7439         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7440         * sysdeps/generic/dl-brk.c: New file.
7441         * sysdeps/generic/dl-sbrk.c: New file.
7442         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7443         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7444
7445         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7446         (__errno_location): New function.  Declare errno as hidden.
7447         * elf/rtld.c (_dl_argc): Define as hidden.
7448         (_dl_skip_args): Define as hidden.
7449         (_begin, _end): Declare as hidden.
7450         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7451         * sysdeps/generic/entry.h (_start): Declare as hidden.
7452         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7453         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7454         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7455         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7456
7457 2002-03-14  Roland McGrath  <roland@frob.com>
7458
7459         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7460
7461         * Makeconfig (%.v.i, %.v): New implicit rules.
7462         (preprocess-versions): Variable removed.
7463         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7464         shlib-versions input files as dependencies.
7465         ($(common-objpfx)soversions.i): Depend on that instead of the input
7466         files.  Use it as input instead of using a pipeline.
7467         (postclean-generated): Append soversions.i, shlib-versions.v, and
7468         shlib-versions.v.i here.
7469         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7470         the Versions.def input files as dependencies.
7471         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7472         ($(common-objpfx)Versions.all): Depend on that instead of the input
7473         files.  Use it as input instead of using a pipeline.
7474         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7475         (postclean-generated): Append those .v and .v.i files here.
7476
7477 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7478
7479         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7480         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7481         Remove.
7482
7483 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7484
7485         * sysdeps/generic/mp_clz_tab.c: New file.
7486         * sysdeps/i386/mp_clz_tab.c: New file.
7487         * sysdeps/hppa/mp_clz_tab.c: New file.
7488         * sysdeps/powerpc/mp_clz_tab.c: New file.
7489         * stdlib/Makefile (aux): Revert last patch.
7490         * math/Makefile (gmp-objs): Likewise.
7491
7492 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7493
7494         * time/strftime.c: Comment fixes for references to obsolescent
7495         standards, In most cases the simplest fix is to remove the
7496         confusing comments.  Cross-referencing all the standards properly
7497         is a bit of a pain, and it should be enough to put that info in
7498         the documentation as I did in my recent time.texi patch.
7499
7500 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7501
7502         * manual/time.texi (Formatting Calendar Time):
7503         ISO C99 also specifies the E and O modifiers.
7504         %P is a GNU extension, and is not in ISO C99.
7505         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7506         %T is also in ISO C99.
7507         The RFC 822 example is not valid in arbitrary locales.
7508         Reword the POSIX.2 wording slightly, to make it a bit clearer
7509         that POSIX.2 formats are also supported by later POSIX versions.
7510         If a format was introduced in ISO C99 it is also required by
7511         POSIX.1-2001.
7512
7513 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7514
7515         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7516         _sys_nerr_internal with INTVARDEF2.
7517         * include/libc-symbols.h (INTVARDEF2): New macro.
7518         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7519         (_sys_nerr_internal): Library.
7520
7521         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7522         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7523
7524         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7525
7526 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7527
7528         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7529
7530 2002-03-02  Andreas Schwab  <schwab@suse.de>
7531
7532         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7533         'h' flag and positional arg.
7534         * stdio-common/tst-printf.c (rfg3): New function to test
7535         positional arguments.
7536         (main): Fix some warnings.
7537
7538 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7539
7540         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7541         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7542
7543 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7544
7545         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7546
7547         * include/locale.h (_nl_C_locobj): Declare as hidden.
7548
7549         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7550         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7551
7552         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7553
7554         * include/sys/gmon.h: Declare _gmonparam as hidden.
7555
7556         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7557         (__ctype32_wctrans): Likewise.
7558         (__ctype32_width): Likewise.
7559
7560         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7561         use of __ttyname.
7562
7563         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7564         Define as hidden.
7565         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7566         hidden.  Change all users of these variables.
7567
7568         * posix/regex_internal.h (__re_error_msgid): Renamed from
7569         re_error_msgid.  Declare as hidden.
7570         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7571         hidden.
7572
7573         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7574         (__printf_function_table): Likewise.
7575         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7576         hidden.
7577         (__printf_function_table): Likewise.
7578
7579         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7580         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7581
7582         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7583         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7584
7585         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7586         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7587
7588 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7589
7590         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7591         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7592         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7593         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7594         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7595         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7596         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7597         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7598         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7599         _nl_C_LC_CTYPE_width: Declare as hidden.
7600         * include/locale.h: Declare _nl_locale_file_list.
7601         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7602         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7603         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7604         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7605         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7606         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7607         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7608         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7609         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7610         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7611         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7612         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7613         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7614         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7615         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7616         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7617         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7618         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7619         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7620         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7621         _nl_C_LC_CTYPE_width, and as hidden.
7622         * locale/findlocale.c: Declare _nl_C as hidden.
7623         * locale/newlocale.c: Likewise.
7624         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7625         _nl_locale_file_list.
7626         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7627         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7628         Define _nl_C_locobj as hidden.
7629
7630         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7631         (_mtrace_line): Likewise.
7632
7633         * include/time.h: Declare __mon_yday as hidden.
7634         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7635
7636         * libio/libioP.h: Declare __libio_codecvt as hidden.
7637         * libio/fileops.c: Declare __libio_translit as hidden.
7638         * libio/iofwide.c: Define __libio_translit as hidden.
7639
7640         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7641         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7642         * login/getutline_r.c: Likewise.
7643         * login/utmpname.c: Likewise.
7644
7645         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7646         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7647         __libc_utmp_file_name as hidden.
7648
7649         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7650         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7651         * locale/freelocale.c: Likewise.
7652         * locale/lc-time.c: Likewise.
7653
7654         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7655         (__libc_ptyname2): Likewise.
7656         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7657         hidden.
7658         (__libc_ptyname2): Likewise.
7659
7660         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7661         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7662         * sysdeps/generic/init-first.c: Likewise.
7663         * sysdeps/i386/init-first.c: Likewise.
7664         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7665         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7666         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7667         * sysdeps/sh/init-first.c: Likewise.
7668         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7669         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7670
7671         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7672         (_itowa_upper_digits): Likewise.
7673
7674         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7675         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7676         as hidden.
7677
7678         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7679         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7680         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7681         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7682
7683         * gmon/gmon.c (__bb_head): Define as hidden.
7684         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7685
7686         * argp/argp-parse.c (_argp_hang): Define as static.
7687
7688         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7689         handling in latest compilers.
7690
7691         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7692         define alias.
7693         * libio/fileops.c (_IO_file_jumps): Likewise.
7694         * libio/stdfiles.c (_IO_list_all): Likewise.
7695         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7696
7697         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7698         include/malloc.h.
7699         * include/malloc.h: Add __libc_malloc_initialized declaration
7700         here.  Mark variable hidden.
7701         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7702
7703         * elf/dl-open.c (__libc_argc): Declare as hidden.
7704         (__libc_argv): Likewise.
7705         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7706         (__libc_argv): Likewise.
7707         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7708         __libc_argv as hidden.
7709         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7710         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7711         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7712         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7713
7714         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7715         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7716         * stdlib/erand48.c: Likewise.
7717         * stdlib/jrand48.c: Likewise.
7718         * stdlib/lcong48.c: Likewise.
7719         * stdlib/lrand48.c: Likewise.
7720         * stdlib/mrand48.c: Likewise.
7721         * stdlib/nrand48.c: Likewise.
7722         * stdlib/seed48.c: Likewise.
7723         * stdlib/srand48.c: Likewise.
7724
7725         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7726         (_itoa_lower_digits_internal): New declaration.
7727         (_itoa_upper_digits_internal): New declaration.
7728         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7729         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7730         (_itoa_upper_digits_internal): New declaration.
7731         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7732         _itoa_lower_digits.
7733         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7734         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7735
7736         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7737         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7738
7739         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7740         (_itowa_lower_digits): Likewise.
7741         (_itowa_upper_digits): Likewise.
7742         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7743         (_itowa_upper_digits): Likewise.
7744
7745         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7746         not already defined.
7747         (GERMANIC_PLURAL): Declare as hidden.
7748
7749         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7750         (attribute_hidden): Define as empty macro if not already defined.
7751
7752         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7753         (__gconv_max_path_elem_len): Likewise.
7754         (__gconv_path_envvar): Likewise.
7755
7756         * math/Makefile (gmp-objs): Remove mp_clz_tab.
7757         * stdlib/Makefile (aux): Remove mp_clz_tab.
7758         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
7759
7760         * stdlib/exit.h (__exit_funcs): Declare as hidden.
7761
7762         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7763
7764         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7765         _nl_category_names, _nl_category_name_sizes, _nl_current,
7766         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7767
7768         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7769         (_nl_current_default_domain): Likewise
7770         (_nl_state_lock): Likewise.
7771         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7772         (_nl_current_default_domain): Likewise
7773         (_nl_state_lock): Likewise.
7774         * intl/bindtextdom.c (_nl_state_lock): Likewise.
7775
7776         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7777         (_fpioconst_pow10): Likewise.
7778
7779         * include/time.h (_tmbuf): Add attribute_hidden.
7780
7781         * time/tzset.c (tzstring_list): Define as static.
7782
7783         * include/time.h: Add attribute_hidden to __tzname_cur_max and
7784         __use_tzfile declaration.
7785
7786         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
7787         and __wcsmbs_last_locale declaration.
7788
7789 2002-02-25  Paul Eggert  <eggert@twinsun.com>
7790
7791         * timezone/Makefile (tzbases): Move systemv from here...
7792         (tzlinks): to here, since the entries in systemv were all changed
7793         from Zone to Link lines in tz-2001a.  Bug reported (and patch
7794         tested) by Peter Breitenlohner.
7795
7796 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
7797
7798         * time/tst-posixtz.c (tests): Add new tests.
7799         (main): Test whether tzset() sets daylight properly.
7800
7801 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7802
7803         * time/tzset.c (tz_compute): Move __daylight, __tzname and
7804         __tzname_cur_max setting...
7805         (tzset_internal): ...here.
7806
7807 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7808
7809         * time/tzset.c (compute_change): Don't return any value.
7810         (tz_compute): Likewise.  Don't handle southern hemisphere here.
7811         (__tz_convert): But here.
7812
7813 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7814
7815         * manual/examples/mkfsock.c: Include <string.h> as well.
7816         Patch by Alain De Carolis <alaind@wseurope.com>.
7817
7818 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
7819
7820         * posix/regexec.c (re_match): Fix incorrect register sizes.
7821         (re_search): Likewise.
7822
7823 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7824
7825         * posix/regcomp.c (regfree): Remove a disused condition.
7826         * posix/regex_internal.c (re_acquire_state): Likewise.
7827         (re_acquire_state_context): Likewise.
7828         (register_state): Remove a redundant malloc invocation.
7829         * posix/regex_internal.h: (re_state_table_entry): Simplify
7830         the structure.
7831
7832 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7833
7834         * posix/regcomp.c (regcomp): Add __builtin_expect to error
7835         handling conditions.
7836         (regerror): Likewise.
7837         (regfree): Likewise.
7838         (re_compile_internal): Likewise.
7839         (init_dfa): Likewise.
7840         (init_word_char): Likewise.
7841         (create_initial_state): Likewise.
7842         (analyze): Likewise.
7843         (analyze_tree): Likewise.
7844         (duplicate_node): Likewise.
7845         (calc_eclosure): Likewise.
7846         (calc_eclosure_iter): Likewise.
7847         (parse): Likewise.
7848         (parse_reg_exp): Likewise.
7849         (parse_branch): Likewise.
7850         (parse_expression): Likewise.
7851         (parse_subexp): Likewise.
7852         (parse_dup_op): Likewise.
7853         (parse_bracket_exp): Likewise.
7854         (build_equiv_class): Likewise.
7855         (build_charclass): Likewise.
7856         (build_word_op): Likewise.
7857         (fetch_number): Likewise.
7858         (create_tree): Likewise.
7859         (duplicate_tree): Likewise.
7860         * posix/regex.c (BE): New macro.
7861         * posix/regexec.c (re_match): Add __builtin_expect to error
7862         handling conditions.
7863         (re_match_2): Likewise.
7864         (re_search): Likewise.
7865         (re_search_internal): Likewise.
7866         (check_matching): Likewise.
7867         (proceed_next_node): Likewise.
7868         (set_regs): Likewise.
7869         (sift_states_backward): Likewise.
7870         (add_epsilon_backreference): Likewise.
7871         (transit_state): Likewise.
7872         (transit_state_sb): Likewise.
7873         (transit_state_mb): Likewise.
7874         (transit_state_bkref): Likewise.
7875         (transit_state_bkref_loop): Likewise.
7876         (build_trtable): Likewise.
7877         (group_nodes_into_DFAstates): Likewise.
7878         (match_ctx_init): Likewise.
7879         (match_ctx_add_entry): Likewise.
7880         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
7881         to error handling conditions.
7882         (re_string_construct_toupper): Likewise.
7883         (build_wcs_buffer): Likewise.
7884         (build_wcs_upper_buffer): Likewise.
7885         (build_upper_buffer): Likewise.
7886         (re_string_translate_buffer): Likewise.
7887         (re_node_set_alloc): Likewise.
7888         (re_node_set_init_1): Likewise.
7889         (re_node_set_init_2): Likewise.
7890         (re_node_set_init_copy): Likewise.
7891         (re_node_set_intersect): Likewise.
7892         (re_node_set_init_union): Likewise.
7893         (re_node_set_merge): Likewise.
7894         (re_node_set_insert): Likewise.
7895         (re_dfa_add_node): Likewise.
7896         (re_acquire_state): Likewise.
7897         (re_acquire_state_context): Likewise.
7898         (create_new_state_common): Likewise.
7899         (register_state): Likewise.
7900         (create_ci_new_state): Likewise.
7901         (create_cd_new_state): Likewise.
7902         (re_string_context_at): Remove redundant condition.
7903
7904 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7905
7906         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
7907
7908         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
7909
7910 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
7911
7912         * sysdeps/i386/elf/configure.in: Fix comment.
7913
7914         * sysdeps/sparc/sparc64/configure.in: New file.
7915         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
7916         if .dynamic comes before .got.
7917         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
7918
7919         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
7920         HP_TIMING_ACCUM): Fix typos.
7921
7922 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7923
7924         * string/strfry.c: Add some more randomness to the seed.
7925         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
7926
7927         * po/es.po: Update from translation team.
7928         * po/fr.po: Likewise.
7929
7930         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
7931
7932         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
7933         when determining type of format.
7934         Patch by James Antill <james@anqd.org> [PR libc/2787].
7935
7936 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
7937
7938         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
7939
7940 2002-03-11  Roland McGrath  <roland@frob.com>
7941
7942         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
7943
7944         * Versions.def (libc): Add GLIBC_2.2.6.
7945         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
7946         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
7947         __errno_location instead of __hurd_errno_location, and don't inline it.
7948         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7949         * hurd/errno.c: New file.
7950         * hurd/Makefile (routines): Add errno.
7951
7952 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7953
7954         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
7955         ridiculously large widths and precisions [PR libc/3026].
7956
7957 2002-03-11  Andreas Jaeger  <aj@suse.de>
7958
7959         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
7960         support.
7961         Patch by Susanne Oberhauser <froh@SuSE.de>.
7962
7963 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7964
7965         * inet/rexec.c (ahostbuf): Define as static.
7966
7967         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
7968         (__ctype32_wctrans): Likewise.
7969         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
7970         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
7971         (__ctype32_wctrans): Likewise.
7972         (__ctype32_width): Likewise.
7973
7974         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
7975         They were never exported anyway.
7976
7977         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
7978         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
7979         exported.
7980         * include/sys/gmon.h: Declare _gmonparam.
7981
7982         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
7983         symbols for getdents64.  They were never exported.
7984
7985 2002-03-09  Roland McGrath  <roland@frob.com>
7986
7987         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
7988         Reported by Jon Arney <jarney1@cox.net>.
7989
7990 2002-02-23  Roland McGrath  <roland@frob.com>
7991
7992         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
7993         declaration.
7994         (__hurd_errno_location): Function removed.
7995
7996 2002-03-06  Andreas Jaeger  <aj@suse.de>
7997
7998         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
7999         32-bit.
8000
8001 2002-03-04  Andreas Jaeger  <aj@suse.de>
8002
8003         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8004
8005         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8006         x86-64.
8007
8008         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8009
8010         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8011
8012         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8013
8014         * sysdeps/x86_64/bits/setjmp.h: New file.
8015
8016         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8017
8018         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8019
8020         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8021         for x86.
8022         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8023         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8024
8025 2002-02-28  Bo Thorsen  <bo@suse.de>
8026
8027         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8028         version.
8029
8030 2002-03-03  Andreas Jaeger  <aj@suse.de>
8031
8032         * sysdeps/x86_64/bits/wordsize.h: New file.
8033
8034         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8035         * elf/tst-tlsmod1.c: Likewise.
8036
8037         * posix/regcomp.c: Get regex.h from include dir for internal
8038         prototypes.
8039
8040         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8041         to libc-internal.h and include it.
8042         * include/libc-internal.h: Add __init_misc.
8043
8044         * misc/init-misc.c: Include libc-internal.h for prototypes.
8045
8046         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8047
8048         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8049         _IO_putc_internal.
8050
8051 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8052
8053         * posix/regcomp.c: Compatibility changes to allow using the code
8054         outside glibc.
8055
8056 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8057
8058         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8059         compiled non-PIC.
8060
8061 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8062
8063         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8064         of .str elements in the returned data structure.
8065
8066         * elf/elf.h: Add Alpha TLS bits.
8067
8068 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8069
8070         * sysdeps/unix/sysv/linux/nice.c: New file.
8071
8072 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8073
8074         * elf/Makefile (dl-routines): Add dl-origin.
8075         (elide-routines.os): Add dl-origin.
8076         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8077         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8078         _dl_debug_state.
8079         * include/libc-symbols.c: Define attribute_hidden depending on
8080         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8081
8082         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8083         * elf/dl-load.c: Likewise.
8084         * elf/rtld.c: Likewise.
8085         * include/unistd.h: Declare __libc_enable_secure_internal.
8086         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8087         Use INTUSE with __libc_enable_secure.
8088         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8089
8090         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8091         * elf/dl-error.c: Likewise,
8092         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8093
8094         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8095         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8096         function definition.  Use INTDEF with _dl_get_origin.
8097         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8098
8099         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8100         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8101
8102         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8103         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8104         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8105
8106         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8107         * elf/dl-deps.c: Likewise.
8108         * elf/dl-error.c: Likewise.
8109         * elf/dl-fini.c: Likewise.
8110         * elf/dl-init.c: Likewise.
8111         * elf/dl-load.c: Likewise.
8112         * elf/dl-lookup.c: Likewise.
8113         * elf/dl-reloc.c: Likewise.
8114         * elf/dl-version.c: Likewise.
8115         * elf/do-lookup.h: Likewise.
8116         * sysdeps/arm/dl-machine.h: Likewise.
8117         * sysdeps/cris/dl-machine.h: Likewise.
8118         * sysdeps/hppa/dl-machine.h: Likewise.
8119         * sysdeps/i386/dl-machine.h: Likewise.
8120         * sysdeps/m68k/dl-machine.h: Likewise.
8121         * sysdeps/powerpc/dl-machine.h: Likewise.
8122         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8123         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8124         * sysdeps/sh/dl-machine.h: Likewise.
8125         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8126         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8127         * sysdeps/x86_64/dl-machine.h: Likewise.
8128         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8129         _dl_argv[0].  Use INTUSE with _dl_argv.
8130         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8131         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8132
8133 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8134
8135         * elf/rtld.c (_rtld_global): Remove .protected.
8136         (_rtld_local): Strong alias to _rtld_global.
8137         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8138         only .os object.
8139         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8140         _rtld_local instead of _rtld_global.
8141         (_rtld_local): Add hidden extern, possibly in .sdata section.
8142         * configure.in: Add tests for visibility attribute and .sdata.
8143         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8144         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8145         * sysdeps/arm/dl-machine.h: Likewise.
8146         * sysdeps/generic/ldsodefs.h: Likewise.
8147         * sysdeps/hppa/dl-machine.h: Likewise.
8148         * sysdeps/cris/dl-machine.h: Likewise.
8149         * sysdeps/i386/dl-machine.h: Likewise.
8150         * sysdeps/ia64/dl-machine.h: Likewise.
8151         * sysdeps/m68k/dl-machine.h: Likewise.
8152         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8153         * sysdeps/mips/dl-machine.h: Likewise.
8154         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8155         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8156         * sysdeps/sh/dl-machine.h: Likewise.
8157         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8158         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8159         * sysdeps/x86_64/dl-machine.h: Likewise.
8160
8161 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8162
8163         * login/login.c (login): Always initialize ut_line field
8164         [PR libc/2991].
8165
8166 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8167
8168         * sysdeps/i386/Makefile (sysdep_routines): Add
8169         divdi3 in csu dir.
8170         (shared-only-routines): Likewise.
8171         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8172         (shared-only-routines): Likewise.
8173         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8174         (shared-only-routines): Likewise.
8175         * sysdeps/wordsize-32/divdi3.c: New file.
8176
8177 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8178
8179         * locale/iso-4217.def: Remove obsolete currencies for countries
8180         with Euro.
8181
8182 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8183
8184         * posix/regcomp.c (regcomp): Remove a redundant condition.
8185         (init_word_char): Add a check on malloc failure.
8186         (create_initial_state): Likewise.
8187         (duplicate_node): Likewise.
8188         (calc_eclosure): Likewise.
8189         (calc_eclosure_iter): Likewise.
8190         (parse_expression): Likewise.
8191         (parse_bracket_exp): Remove unnecessary malloc invocations.
8192         (build_equiv_class): Likewise.
8193         (build_charclass): Likewise.
8194         * posix/regex_internal.c (re_node_set_intersect): Add a check
8195         on malloc failure.
8196         (re_node_set_add_intersect): Likewise.
8197         (re_node_set_merge): Likewise.
8198         (re_acquire_state): Likewise.
8199         (re_acquire_state_context): Likewise.
8200         (create_newstate_common): Likewise.
8201         (register_state): Likewise.
8202         (create_ci_newstate): Likewise.
8203         (create_cd_newstate): Likewise.
8204         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8205         and re_acquire_state_context.
8206         * posix/regexec.c (regexec): Suit it to the error handling of
8207         re_search_internal.
8208         (re_match): Likewise.
8209         (re_search): Likewise.
8210         (re_search_internal): Add a check on malloc failure.
8211         (acquire_init_state_context): Likewise.
8212         (check_matching): Likewise.
8213         (proceed_next_node): Likewise.
8214         (set_regs): Likewise.
8215         (sift_states_backward): Likewise.
8216         (sift_states_iter_bkref): Likewise.
8217         (add_epsilon_backreference): Likewise.
8218         (transit_state): Likewise.
8219         (transit_state_sb): Likewise.
8220         (transit_state_mb): Likewise.
8221         (transit_state_bkref_loop): Likewise.
8222         (build_trtable): Likewise.
8223         (group_nodes_into_DFAstates): Likewise.
8224         (match_ctx_init): Likewise.
8225         (match_ctx_add_entry): Likewise.
8226
8227 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8228
8229         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8230         l_libname if profiling is enabled [PR libc/2916].
8231
8232         * sysdeps/ia64/dl-tls.h: New file.
8233
8234 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8235
8236         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8237         Work around an Alpha gas bug.
8238
8239 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8240
8241         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8242         uses read to load the catalog.
8243         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8244
8245 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8246
8247         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8248         regex_internal.c, and regex_internal.h.
8249         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8250         * posix/regex.c: Complete rewrite.
8251         * posix/regexec.c: New file.
8252         * posix/regcomp.c: New file.
8253         * posix/regex_internal.c: New file.
8254         * posix/regex_internal.h: New file.
8255         * posix/regex.h (RE_ICASE): New macro.
8256         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8257
8258         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8259         ungetwc.  It's a macro.
8260         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8261         implementation.
8262         Reported by Jason Merrill <jason@redhat.com>.
8263
8264 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8265
8266         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8267         position to fp->_offset if it is set.
8268         * stdio-common/Makefile (tests): Add tst-fdopen.
8269         * stdio-common/tst-fdopen.c: New test.
8270
8271 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8272
8273         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8274         * stdio-common/tst-ungetc.c (main): Add another test.
8275
8276 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8277
8278         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8279         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8280         aliases.  Add prototypes for the new aliases.
8281         * assert/assert.c: Likewise.
8282         * include/libc-symbols.h: Likewise.
8283         * include/stdio.h: Likewise.
8284         * include/netinet/in.h: Likewise.
8285         * include/rpc/auth.h: Likewise.
8286         * include/rpc/auth_unix.h: Likewise.
8287         * include/rpc/key_prot.h: Likewise.
8288         * include/rpc/pmap_prot.h: Likewise.
8289         * include/rpc/pmap_rmt.h: Likewise.
8290         * include/rpc/rpc_msg.h: Likewise.
8291         * include/rpc/xdr.h: Likewise.
8292         * inet/gethstbyad_r.c: Likewise.
8293         * inet/gethstbynm2_r.c: Likewise.
8294         * inet/gethstbynm_r.c: Likewise.
8295         * inet/gethstent_r.c: Likewise.
8296         * inet/in6_addr.c: Likewise.
8297         * libio/__fpurge.c: Likewise.
8298         * libio/filedoalloc.c: Likewise.
8299         * libio/fileops.c: Likewise.
8300         * libio/ftello.c: Likewise.
8301         * libio/ftello64.c: Likewise.
8302         * libio/genops.c: Likewise.
8303         * libio/iofclose.c: Likewise.
8304         * libio/iofdopen.c: Likewise.
8305         * libio/iofflush.c: Likewise.
8306         * libio/iofflush_u.c: Likewise.
8307         * libio/iofgetpos.c: Likewise.
8308         * libio/iofgetpos64.c: Likewise.
8309         * libio/iofgets.c: Likewise.
8310         * libio/iofgets_u.c: Likewise.
8311         * libio/iofopen.c: Likewise.
8312         * libio/iofopncook.c: Likewise.
8313         * libio/iofputs.c: Likewise.
8314         * libio/iofread.c: Likewise.
8315         * libio/iofread_u.c: Likewise.
8316         * libio/iofsetpos.c: Likewise.
8317         * libio/iofsetpos64.c: Likewise.
8318         * libio/ioftell.c: Likewise.
8319         * libio/iofwrite.c: Likewise.
8320         * libio/iogetline.c: Likewise.
8321         * libio/iogets.c: Likewise.
8322         * libio/iogetwline.c: Likewise.
8323         * libio/iolibio.h: Likewise.
8324         * libio/iopadn.c: Likewise.
8325         * libio/iopopen.c: Likewise.
8326         * libio/ioseekoff.c: Likewise.
8327         * libio/ioseekpos.c: Likewise.
8328         * libio/iosetbuffer.c: Likewise.
8329         * libio/iosetvbuf.c: Likewise.
8330         * libio/ioungetc.c: Likewise.
8331         * libio/ioungetwc.c: Likewise.
8332         * libio/iovdprintf.c: Likewise.
8333         * libio/iovsprintf.c: Likewise.
8334         * libio/iovsscanf.c: Likewise.
8335         * libio/libioP.h: Likewise.
8336         * libio/memstream.c: Likewise.
8337         * libio/obprintf.c: Likewise.
8338         * libio/oldfileops.c: Likewise.
8339         * libio/oldiofclose.c: Likewise.
8340         * libio/oldiofdopen.c: Likewise.
8341         * libio/oldiofgetpos.c: Likewise.
8342         * libio/oldiofgetpos64.c: Likewise.
8343         * libio/oldiofopen.c: Likewise.
8344         * libio/oldiofsetpos.c: Likewise.
8345         * libio/oldiofsetpos64.c: Likewise.
8346         * libio/oldiopopen.c: Likewise.
8347         * libio/oldstdfiles.c: Likewise.
8348         * libio/putc.c: Likewise.
8349         * libio/setbuf.c: Likewise.
8350         * libio/setlinebuf.c: Likewise.
8351         * libio/stdfiles.c: Likewise.
8352         * libio/stdio.c: Likewise.
8353         * libio/strops.c: Likewise.
8354         * libio/vasprintf.c: Likewise.
8355         * libio/vscanf.c: Likewise.
8356         * libio/vsnprintf.c: Likewise.
8357         * libio/vswprintf.c: Likewise.
8358         * libio/wfiledoalloc.c: Likewise.
8359         * libio/wfileops.c: Likewise.
8360         * libio/wgenops.c: Likewise.
8361         * libio/wstrops.c: Likewise.
8362         * malloc/mtrace.c: Likewise.
8363         * misc/error.c: Likewise.
8364         * misc/syslog.c: Likewise.
8365         * nss/getXXbyYY_r.c: Likewise.
8366         * nss/getXXent_r.c: Likewise.
8367         * nss/hosts-lookup.c: Likewise.
8368         * stdio-common/getw.c
8369         * stdio-common/printf-prs.c: Likewise.
8370         * stdio-common/printf_fp.c: Likewise.
8371         * stdio-common/printf_size.c: Likewise.
8372         * stdio-common/putw.c: Likewise.
8373         * stdio-common/scanf.c: Likewise.
8374         * stdio-common/sprintf.c: Likewise.
8375         * stdio-common/tmpfile64.c: Likewise.
8376         * stdio-common/vfprintf.c: Likewise.
8377         * stdio-common/vfscanf.c: Likewise.
8378         * stdlib/strfmon.c: Likewise.
8379         * sunrpc/auth_des.c: Likewise.
8380         * sunrpc/auth_none.c: Likewise.
8381         * sunrpc/auth_unix.c: Likewise.
8382         * sunrpc/authdes_prot.c: Likewise.
8383         * sunrpc/authuxprot.c: Likewise.
8384         * sunrpc/clnt_perr.c: Likewise.
8385         * sunrpc/clnt_raw.c: Likewise.
8386         * sunrpc/clnt_tcp.c: Likewise.
8387         * sunrpc/clnt_udp.c: Likewise.
8388         * sunrpc/clnt_unix.c: Likewise.
8389         * sunrpc/key_call.c: Likewise.
8390         * sunrpc/key_prot.c: Likewise.
8391         * sunrpc/openchild.c: Likewise.
8392         * sunrpc/pm_getmaps.c: Likewise.
8393         * sunrpc/pm_getport.c: Likewise.
8394         * sunrpc/pmap_clnt.c: Likewise.
8395         * sunrpc/pmap_prot.c: Likewise.
8396         * sunrpc/pmap_prot2.c: Likewise.
8397         * sunrpc/pmap_rmt.c: Likewise.
8398         * sunrpc/rpc_cmsg.c: Likewise.
8399         * sunrpc/rpc_prot.c: Likewise.
8400         * sunrpc/svc_authux.c: Likewise.
8401         * sunrpc/svc_raw.c: Likewise.
8402         * sunrpc/svc_simple.c: Likewise.
8403         * sunrpc/svc_tcp.c: Likewise.
8404         * sunrpc/svc_udp.c: Likewise.
8405         * sunrpc/svc_unix.c: Likewise.
8406         * sunrpc/xdr.c: Likewise.
8407         * sunrpc/xdr_array.c: Likewise.
8408         * sunrpc/xdr_mem.c: Likewise.
8409         * sunrpc/xdr_rec.c: Likewise.
8410         * sunrpc/xdr_ref.c: Likewise.
8411         * sunrpc/xdr_stdio.c: Likewise.
8412         * sysdeps/generic/_strerror.c: Likewise.
8413         * sysdeps/generic/printf_fphex.c: Likewise.
8414         * sysdeps/generic/tmpfile.c: Likewise.
8415         * sysdeps/gnu/errlist.awk: Likewise.
8416         * sysdeps/gnu/errlist.c: Likewise.
8417
8418         * libio/Makefile (routines): Remove iosprint.
8419         * libio/iosprintf.c: Removed
8420
8421
8422 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8423
8424         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8425         non_dynamic_init and exported now.
8426         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8427         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8428         !SHARED.
8429         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8430         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8431         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8432
8433 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8434
8435         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8436         true in this case.
8437
8438         * locale/iso-639.def: Add language codes for Walloon.
8439
8440         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8441         total number of relocations performed.
8442
8443         * elf/sprof.c (load_profdata): If do_test provide information as
8444         to why loading failed.
8445         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8446         hist_hdr.dimen.
8447
8448         * csu/set-init.c: Moved to...
8449         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8450         * csu/Makefile: Don't compile set-init.
8451         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8452         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8453         to __libc_init.
8454         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8455         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8456         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8457         __libc_init.
8458         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8459         __libc_subinit.
8460
8461 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8462
8463         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8464         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8465         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8466         (_dl_deallocate_tls): New function.
8467         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8468         _dl_deallocate_tls.
8469
8470 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8471
8472         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8473         * stdio-common/tst-fseek.c (main): Add test for this.
8474
8475 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8476
8477         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8478
8479 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8480
8481         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8482         pointer before dereferencing.
8483
8484 2002-02-18  Roland McGrath  <roland@frob.com>
8485
8486         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8487
8488         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8489         Use task_policy in place of task_priority.
8490
8491         * sysdeps/generic/bits/mman.h
8492         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8493         * sysdeps/mach/msync.c: New file.
8494
8495         * sysdeps/mach/powerpc/syscall.S: New file.
8496
8497         * mach/msg.c [MACH_MSG_OVERWRITE]
8498         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8499         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8500
8501         * sysdeps/mach/configure.in: Check for clock.defs to put into
8502         mach_interface_list.
8503         * sysdeps/mach/configure: Regenerated.
8504
8505         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8506         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8507         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8508         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8509         (mach-shortcuts): Add device_read_overwrite_request,
8510         device_read_overwrite, vm_read_overwrite, thread_switch.
8511
8512         * configure.in (base_machine): Set to $machine by default.
8513         * configure: Regenerated.
8514
8515         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8516         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8517         * sysdeps/mach/configure: Regenerated.
8518         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8519
8520         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8521
8522         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8523
8524         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8525         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8526
8527 2002-02-17  Roland McGrath  <roland@frob.com>
8528
8529         * sysdeps/mach/hurd/times.c
8530         [NO_CREATION_TIME] (startup_time): New static variable.
8531         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8532         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8533         creation_time from task_basic_info.
8534         (__times): Use __gettimeofday instead of __host_get_time.
8535
8536         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8537         Use untyped Mach IPC message format.
8538
8539         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8540
8541         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8542         _S_catch_exception_raise_state_identity,
8543         _hurdsig_fault_catch_exception_raise_state,
8544         _hurdsig_fault_catch_exception_raise_state_identity.
8545
8546         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8547
8548         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8549         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8550
8551         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8552         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8553
8554         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8555         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8556         them as no-op macros.
8557         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8558         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8559
8560         * sysdeps/powerpc/dl-machine.h
8561         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8562
8563         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8564         Use untyped Mach IPC message format.
8565
8566         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8567         Handle untyped Mach IPC message formats.
8568
8569         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8570         Expect different argument conventions when this is defined.
8571         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8572         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8573         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8574         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8575         for OSF Mach variant.
8576         (faulted): Use mig_reply_error_t for REPLY.
8577         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8578         in __thread_set_exception_ports call.
8579         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8580         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8581
8582         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8583         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8584         on Darwin, which includes bogons.
8585
8586         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8587         variable LOADBASE so it's not declared when it's not used.
8588
8589 2002-02-16  Roland McGrath  <roland@frob.com>
8590
8591         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8592         to use BI.creation_time.
8593
8594         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8595
8596         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8597         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8598         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8599         host_page_size instead of vm_statistics.
8600
8601         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8602         mach_interface.h here, since not all variants use that name.
8603
8604         * sysdeps/mach/configure.in: Add some checks for Mach headers
8605         to ensure a sane installation.
8606         (mach_interface_list): Define this variable by checking for .defs
8607         files found in various variants.
8608         * configure.in (mach_interface_list): AC_SUBST this.
8609         * config.make.in (mach-interface-list): New substituted variable.
8610         * mach/Makefile (user-interfaces): Define this using the value
8611         of $(mach-interface-list) instead of mach, mach4.
8612         Updated other references to mach_interface to use it as well.
8613
8614         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8615
8616         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8617         mig_reply_error_t for OSF Mach variant.
8618
8619         * mach/Makefile (routines): Remove bootprivport.
8620         * mach/bootprivport.c: File removed.  It has never been used.
8621
8622         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8623         Grok the OSF flavor of message format.
8624         (mach_msg_destroy_port): For MAKE_SEND and
8625         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8626         no-senders notification.
8627
8628 2002-02-06  Roland McGrath  <roland@frob.com>
8629
8630         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8631         to here if 2.0 compatibility enabled ...
8632         (libc: GLIBC_2.1.3): ... from here.
8633
8634 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8635
8636         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8637         generation counter.
8638         * elf/dl-close.c (_dl_close): Likewise.
8639
8640 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8641
8642         * elf/Makefile: Add rules to build and run tst-tls8.
8643         * elf/tst-tls8.c: New file.
8644         * elf/tst-tlsmod4.c: New file.
8645
8646         * stdlib/test-a64l.c (tests): Add more test cases.
8647
8648         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8649         Reported by Walter Harms <WHarms@bfs.de>.
8650
8651 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8652
8653         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8654         definitions for struct sigcontext.
8655         Suggested by David Mosberger-Tang.
8656
8657 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8658
8659         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8660         for removing reference of module in slotinfo list.
8661         (_dl_close): Use remove_slotinfo.
8662         * sysdeps/generic/dl-tls.c: General pretty printing.
8663         (oom): Define only if SHARED.
8664         (_dl_next_tls_modid): Correct starting point for the case we assume
8665         there is a gap.  Add missing instruction grouping (doh!).  Correct
8666         tests for reaching maximum index.
8667         * elf/Makefile: Add rules to build and run tst-tls7.
8668         * elf/tst-tls7.c: New file.
8669         * elf/tst-tlsmod3.c: New file.
8670
8671         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8672         USE_TLS.
8673         * elf/tst-tlsmod2.c: Likewise.
8674
8675         * elf/dl-close.c (_dl_close): When closing an object using TLS
8676         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8677         true.  Increment dl_tls_generation only if we closed any TLS-using
8678         object.
8679         * elf/tst-tls6.c: New file.
8680         * elf/Makefile: Add rules to build and run tst-tls6.
8681
8682         * po/da.po: Update from translation team.
8683
8684         * locale/categories.def: Fix typo [PR libc/2948].
8685         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8686         [PR libc/2949].
8687         * locale/iso-4217.def: Update from official version [PR libc/2950].
8688         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8689         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8690         message if input is too confusion instead of using assert.
8691         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8692         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8693
8694         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8695         * elf/tst-tls2.c: Likewise.
8696         * elf/tst-tls3.c: Likewise.
8697
8698 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8699
8700         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8701
8702 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8703
8704         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8705         if this is really necessary.
8706
8707         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8708         slotinfo array.
8709         (free_mem): Free memory for the slotinfo array if possible.
8710
8711 2002-02-12  Andreas Schwab  <schwab@suse.de>
8712
8713         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8714
8715 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8716
8717         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8718         TLS_DTV_UNALLOCATE.
8719         (oom): New function.
8720         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8721         (_dl_determine_tlsoffset): Likewise.
8722         (_dl_allocate_tls): Likewise.
8723         (__TLS_GET_ADDR): Define if not already defined.
8724         (_dl_tls_symaddr): New function.
8725         (allocate_and_init): New function.
8726         (__tls_get_addr): Actually implement handling of generation counter
8727         and deferred allocation.
8728         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8729         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8730         _dl_tls_generation.
8731         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8732         Declare _dl_tls_symaddr.
8733         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8734         SHARED.
8735         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8736         l_tls_previmage.
8737         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8738         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8739         (_dl_vsym): Likewise.
8740         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8741         layout.
8742         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8743         nextimage list handling.  Instead add all modules using TLS to
8744         dl_tls_dtv_slotinfo_list.
8745         * elf/dl-open.c (dl_open_worker): After successfully loading all
8746         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8747         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8748         empty segment don't do anything.  Remove handling of initimage list.
8749         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8750         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8751         * elf/dl-minimal.c: Define __libc_memalign.
8752         * elf/dl-support.c: Remove _dl_initimage_list.  Add
8753         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8754         _dl_tls_generation.
8755         * include/stdlib.h: Declare __libc_memalign.
8756
8757         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8758         * elf/tst-tls4.c: New file.
8759         * elf/tst-tls5.c: New file.
8760         * elf/tst-tlsmod2.c: New file.
8761
8762         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8763
8764         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8765
8766         * elf/tst-tls1.c: Use test-skeleton.c.
8767         * elf/tst-tls2.c: Likewise.
8768         * elf/tst-tls3.c: Likewise.
8769
8770         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8771
8772 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8773
8774         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8775
8776 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
8777
8778         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8779
8780         * elf/tst-tls3.c: New file.
8781         * elf/tst-tlsmod1.c: New file.
8782         * elf/Makefile: Add rules to build and run tst-tls3.
8783
8784         * sysdeps/i386/dl-machine.h: Include <tls.h>.
8785         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
8786         TLS relocations.
8787
8788         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
8789
8790         * po/fr.po: Update from translation team.
8791
8792         * elf/tls-macros.h: Add alternative macros for use in PIC.
8793
8794         * elf/dl-lookup.c: Include <tls.h>.
8795         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
8796
8797         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
8798         required by passing pointer to last element of the list.
8799
8800         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
8801         l_tls_initimage to a place where it actually is performed.
8802
8803         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
8804         after globfree() calls.
8805
8806         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
8807         (openaux): Pass open_mode as new last argument to _dl_map_object.
8808         (_dl_map_object_deps): Add new argument open_mode.  Initialize
8809         open_mode element of args variable with it.
8810         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
8811         _dl_map_object_deps.
8812         * elf/rtld.c (dl_main): Add zero as last parameter to
8813         _dl_map_object_deps call.
8814         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
8815         * elf/nodlopen2.c: New file.
8816         * elf/nodlopenmod2.c: New file.
8817         * elf/Makefile: Add rules to build and run nodlopen2.
8818
8819         * elf/tst-tls1.c: Move TLS helper macros to...
8820         * elf/tls-macros.h: ...here.  New file.
8821         * elf/tst-tls2.c: New file.
8822         * elf/Makefile (tests): Add tst-tls2.
8823         (distribute): Add tls-macros.h.
8824
8825         * po/sv.po: Update from translation team.
8826
8827         * elf/tst-tls1.c (main): Add complete set of tests.  Split
8828         architecture specific definitions from the actual test code.
8829
8830         * po/tr.po: Update from translation team.
8831
8832 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
8833
8834         * elf/Makefile (tests): Add tst-tls1.
8835         * elf/tst-tls1.c: New file.
8836
8837         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
8838         alignment of TCB for now.
8839
8840         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
8841         initialization image for the application itself.
8842
8843         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
8844         loop to initialize TLS block.
8845
8846 2002-02-08  Richard Henderson  <rth@redhat.com>
8847
8848         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
8849         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
8850
8851         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
8852
8853 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
8854
8855         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
8856
8857 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
8858
8859         * po/ca.po: Update from translation team.
8860         * po/sk.po: Likewise.
8861
8862         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
8863         (dl_main): Move dtv/static TLS handling before relocation.
8864         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
8865         TLS_INIT_TP to allocate and install the dtv/static TLS block.
8866         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
8867         so far uses TLS initialize GL(dl_tls_static_size) and
8868         GL(dl_tls_static_align) to account for the TCB.
8869         (_dl_allocate_tls): New function.
8870         * sysdeps/generic/ldsodefs.h (rtld_global): Add
8871         _dl_initial_dtv_malloced.
8872
8873         * configure.in: Test for __builtin_memset more realistically.
8874
8875         * csu/version.c (banner): If TLS support is available say so.
8876
8877 2002-02-04  H.J. Lu  <hjl@gnu.org>
8878
8879         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
8880         __attribute_used__.
8881         (__dl_runtime_resolve): Likewise.
8882
8883         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
8884         declaration.
8885
8886 2001-11-15  H.J. Lu  <hjl@gnu.org>
8887
8888         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
8889         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
8890
8891         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
8892
8893 2002-02-07  H.J. Lu  <hjl@gnu.org>
8894
8895         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
8896         ".set noreorder".
8897         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
8898         Likewise.
8899
8900 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
8901
8902         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
8903
8904         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
8905         ___tls_get_addr_internal.
8906         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
8907
8908         * po/ko.po: Update from translation team.
8909
8910 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
8911
8912         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
8913         attribute, change __pad{1,2} type to unsigned int.
8914         (struct stat64): Remove packed attribute.
8915
8916 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
8917
8918         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
8919
8920 2002-02-07  Andreas Schwab  <schwab@suse.de>
8921
8922         * configure.in: Fix check for -zcombreloc.
8923
8924 2002-02-06  H.J. Lu  <hjl@gnu.org>
8925
8926         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
8927         * configure.in: Check if __builtin_memset really works.
8928         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
8929         __GNUC_PREREQ (2, 96) before using __builtin_memset.
8930
8931 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8932
8933         * io/bug-ftw3.c (main): Don't try the test if root.
8934
8935 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8936
8937         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
8938         constraints.
8939         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
8940         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
8941         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
8942         Likewise.
8943         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
8944         a weak alias for __clone.
8945         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
8946         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
8947         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
8948         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
8949         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
8950         a weak alias for __mmap64.
8951
8952 2002-02-05  H.J. Lu  <hjl@gnu.org>
8953
8954         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
8955         (atomic_add): Likewise.
8956         (compare_and_swap): Likewise.
8957         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
8958
8959 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
8960
8961         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
8962
8963         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
8964         alignment of the TCB and store total size and alignment of static
8965         TLS block in _dl_tls_static_size and _dl_tls_static_align.
8966         tls_index is a typedef.
8967         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
8968         _dl_tls_static_align.
8969         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
8970         * elf/dl-support.c: Define _dl_tls_static_size and
8971         _dl_tls_static_align.
8972
8973 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
8974
8975         * configure.in: Add --without-tls option.
8976         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
8977         --without-tls is given.
8978
8979         * sysdeps/generic/dl-tls.c: Include <tls.h>.
8980
8981         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
8982
8983 2002-02-06  Roland McGrath  <roland@frob.com>
8984
8985         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
8986         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
8987
8988         * scripts/versions.awk: Improve error message for missing version.
8989         Each version inherits from the last one only if they have the same
8990         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
8991         but not GLIBC_x and FOO_y.
8992
8993         * scripts/firstversions.awk: Handle libraries that don't have each
8994         particular version named in the third column of shlib-versions.
8995
8996         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
8997
8998 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
8999
9000         * Versions.def [ld]: Add GLIBC_2.3.
9001         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9002         * elf/Makefile (dl-routines): Add dl-tls.
9003         (distribute): Add dl-tls.h.
9004         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9005         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9006         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9007         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9008         along with the other info in the link map.  Change queueing of init
9009         images for double linked list.  Use _dl_next_tls_modid to compute
9010         l_tls_modid.
9011         * elf/rtld.c (_dl_start_final): Store alignment requirement
9012         along with the other info in rtld map and executable map.
9013         (dl_main): Add ld.so to the init image list if necessary.  Compute
9014         final module ID with _dl_next_tls_modid.
9015         * include/link.h (struct link_map): Add l_tls_previmage and
9016         l_tls_align.
9017         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9018         * sysdeps/i386/elf/Versions: New file.
9019         * sysdeps/generic/dl-tls.c: New file.
9020         * sysdeps/generic/dl-tls.h: New file.
9021         * sysdeps/i386/dl-tls.h: New file.
9022
9023 2002-02-06  Roland McGrath  <roland@frob.com>
9024
9025         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9026         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9027
9028 2002-01-05  Roland McGrath  <roland@frob.com>
9029
9030         * sysdeps/mach/configure.in: New file.
9031         * sysdeps/mach/configure: New generated file.
9032
9033         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9034         It has never been used by anything.
9035
9036 2002-02-06  H.J. Lu  <hjl@gnu.org>
9037
9038         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9039         is included.
9040
9041 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9042
9043         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9044         attribute((packed)) to counter stupid people misusing gcc options.
9045         (struct stat64): Likewise.
9046
9047 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9048
9049         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9050         the variables which are used as booleans.
9051
9052 2002-02-06  Andreas Jaeger  <aj@suse.de>
9053
9054         * include/libc-symbols.h (INTUSE): Renamed from INT.
9055         * elf/dl-deps.c: Change users.
9056         * sysdeps/generic/dl-sysdep.c: Likewise.
9057         * sysdeps/generic/dl-cache.c: Likewise.
9058         * elf/dl-reloc.c: Likewise.
9059         * elf/rtld.c: Likewise.
9060         * elf/dl-version.c: Likewise.
9061         * elf/dl-load.c: Likewise.
9062         * elf/dl-dst.h: Likewise.
9063         * elf/dl-init.c: Likewise.
9064         * elf/dl-error.c: Likewise.
9065         * elf/dl-fini.c: Likewise.
9066         * elf/dl-runtime.c: Likewise.
9067         * elf/do-lookup.h: Likewise.
9068
9069         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9070         definition.
9071         * stdio-common/_itowa.h: Likewise.
9072
9073 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9074
9075         * elf/dl-minimal.c: Define _itoa_lower_digits.
9076
9077         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9078         DT_FLAGS set.
9079
9080         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9081         loading modules with the DF_STATIC_TLS flag set.
9082         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9083         element.
9084         * include/link.h (struct link_map): Add l_flags field.
9085         * elf/elf.h (DF_STATIC_TLS): New definition.
9086
9087         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9088         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9089
9090         * elf/rtld.c (process_dl_debug): Correct printing help message.
9091         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9092         for %s.
9093
9094         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9095         definition and pass &errno in use of this variable.
9096         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9097
9098 2002-02-04  Andreas Schwab  <schwab@suse.de>
9099
9100         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9101         * locale/programs/charmap-dir.c: Wrap calls that output messages
9102         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9103         * locale/programs/charmap.c: Likewise.
9104         * locale/programs/ld-address.c: Likewise.
9105         * locale/programs/ld-collate.c: Likewise.
9106         * locale/programs/ld-ctype.c: Likewise.
9107         * locale/programs/ld-identification.c: Likewise.
9108         * locale/programs/ld-measurement.c: Likewise.
9109         * locale/programs/ld-messages.c: Likewise.
9110         * locale/programs/ld-monetary.c: Likewise.
9111         * locale/programs/ld-name.c: Likewise.
9112         * locale/programs/ld-numeric.c: Likewise.
9113         * locale/programs/ld-paper.c: Likewise.
9114         * locale/programs/ld-telephone.c: Likewise.
9115         * locale/programs/ld-time.c: Likewise.
9116         * locale/programs/linereader.c: Likewise.
9117         * locale/programs/linereader.h: Likewise.
9118         * locale/programs/localedef.c: Likewise.
9119         * locale/programs/locfile.c: Likewise.
9120         * locale/programs/repertoire.c: Likewise.
9121
9122 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9123
9124         * elf/rtld.c (_dl_start_final): Determine load address to locate
9125         ehdr with GL(dl_rtld_map).l_map_start.
9126
9127         * po/ca.po: Update from translation team.
9128
9129         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9130         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9131         header entry.
9132         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9133         _dl_tls_module_cnt.
9134         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9135
9136 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9137
9138         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9139         * include/link.h (struct link_map): Add various members for TLS
9140         information.
9141         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9142         _rtld_tlsoffset, add _dl_initimage_list.
9143         * sysdeps/i386/dl-lookupcfg.h: New file.
9144         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9145         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9146         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9147         is used.
9148
9149         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9150         unused.
9151
9152         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9153         thread-pointer as soon as possible.
9154         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9155         elements in rtld_global.
9156         * sysdeps/generic/tls.h: New file.
9157         * elf/Makefile (distribute): Add tls.h.
9158         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9159         relocations.  Not complete yet.
9160
9161         * resolv/resolv.h: Allow user to define __need_res_state and only
9162         define __res_start structure then.
9163         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9164
9165         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9166         dl_cpuclock_offset initialization to _dl_start_final.
9167         (_dl_show_auxv): Avoid unnecessary sign extension.
9168         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9169
9170 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9171
9172         * config.h.in: Add HAVE_TLS_SUPPORT.
9173         * sysdeps/i386/elf/configure.in: New file.
9174
9175 2002-02-03  Andreas Schwab  <schwab@suse.de>
9176
9177         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9178         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9179
9180 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9181
9182         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9183         alloca if the memory reqirements are too high.
9184
9185 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9186
9187         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9188         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9189         the former is available anyway and speed isn't important here.
9190         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9191         * elf/dl-version.c (match_symbol): Likewise.
9192         (_dl_check_map_versions): Likewise.
9193         * elf/rtld.c (process_envvars): Likewise.
9194         (print_statistics): Likewise.
9195         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9196         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9197         bases.  Add assert to catch uses of unimplemented features.
9198         (__strsep): Add assert to catch uses of unimplemented features.
9199         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9200         and avoid inline optimization.
9201         * elf/rtld.c (process_envvars): Likewise.
9202         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9203         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9204         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9205
9206 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9207
9208         * stdio-common/_itoa.h: Minor simplifications of the code.
9209         * stdio-common/_itoa.c: Likewise.
9210
9211         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9212         instead of _dl_printf for debugging info output.
9213
9214         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9215         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9216
9217 2002-02-01  H.J. Lu  <hjl@gnu.org>
9218
9219         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9220         (atomic_add): Likewise.
9221         (compare_and_swap): Return 0 only when failed to compare. Use
9222         branch likely.
9223
9224         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9225         branch likely.
9226
9227 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9228
9229         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9230
9231 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9232
9233         * elf/dl-minimal.c (__strsep): New minimal implementation.
9234
9235 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9236
9237         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9238         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9239         with tm_isdst > 0 when the requested time falls within a
9240         spring-forward gap [PR libc/2894].
9241
9242 2002-02-03  Andreas Schwab  <schwab@suse.de>
9243
9244         * stdio-common/tst-rndseek.c: Increase timeout.
9245
9246 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9247
9248         Change ld.so to not use functions which are exported.  One cannot
9249         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9250         definitions.
9251         * include/libc-symbols.h: Define INT and INTDEF.
9252         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9253         _dl_signal_error_internal, _dl_map_object_internal,
9254         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9255         _dl_lookup_versioned_symbol_internal,
9256         _dl_relocate_object_internal, _dl_debug_state_internal,
9257         _dl_start_profile_internal, and _dl_unload_cache_internal.
9258         * include/dlfcn.h: Declare _dl_catch_error_internal.
9259         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9260         above.  Add INTDEF to function definitions.
9261         * elf/dl-debug.c: Likewise.
9262         * elf/dl-deps.c: Likewise.
9263         * elf/dl-dst.h: Likewise.
9264         * elf/dl-error.c: Likewise.
9265         * elf/dl-fini.c: Likewise.
9266         * elf/dl-init.c: Likewise.
9267         * elf/dl-load.c: Likewise.
9268         * elf/dl-lookup.c: Likewise.
9269         * elf/dl-misc.c: Likewise.
9270         * elf/dl-open.c: Likewise.
9271         * elf/dl-profile.c: Likewise.
9272         * elf/dl-reloc.c: Likewise.
9273         * elf/dl-runtime.c: Likewise.
9274         * elf/dl-version.c: Likewise.
9275         * elf/do-lookup.h: Likewise.
9276         * sysdeps/generic/dl-cache.c: Likewise.
9277         * sysdeps/generic/dl-sysdep.c: Likewise.
9278         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9279         instead of _dl_init.
9280         * sysdeps/arm/dl-machine.h: Likewise.
9281         * sysdeps/cris/dl-machine.h: Likewise.
9282         * sysdeps/hppa/dl-machine.h: Likewise.
9283         * sysdeps/i386/dl-machine.h: Likewise.
9284         * sysdeps/ia64/dl-machine.h: Likewise.
9285         * sysdeps/m68k/dl-machine.h: Likewise.
9286         * sysdeps/mips/dl-machine.h: Likewise.
9287         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9288         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9289         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9290         * sysdeps/sh/dl-machine.h: Likewise.
9291         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9292         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9293         * sysdeps/x86_64/dl-machine.h: Likewise.
9294         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9295
9296         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9297         and _dl_debug_initialize.
9298
9299         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9300         more information.
9301         * elf/rtld.c (dl_main): Avoid strrchr.
9302         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9303         result of readlink.  Search from the back for '/'.
9304
9305         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9306         strncpy if possible.
9307
9308         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9309         strncmp.
9310         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9311         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9312         strspn, and strcspn.
9313         (process_envvars): Don't use strcspn.
9314
9315         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9316         (_dl_dst_substitute): Likewise.
9317
9318 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9319
9320         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9321         code which is never used when relocating ld.so itself.
9322
9323         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9324         starting ld.so itself.  Move l_addr variable initialization closer
9325         to use.
9326         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9327
9328 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9329
9330         * Versions.def (libc): Add GLIBC_PRIVATE.
9331         (libdb, libnss_db, libdb1): Remove.
9332         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9333         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9334         (libpthread): Add GLIBC_PRIVATE.
9335         (libresolv): Likewise, remove GLIBC_2.1.
9336         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9337         GLIBC_2.2.3, GLIBC_2.3.
9338         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9339         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9340         _dl_sym, _dl_vsym): Likewise.
9341         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9342         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9343         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9344         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9345         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9346         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9347         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9348         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9349         Likewise.
9350         (_dl_object_relocation_scope): Remove.
9351         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9352         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9353         __gconv_cache): Move to GLIBC_PRIVATE.
9354         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9355         __internal_setnetgrent): Likewise.
9356         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9357         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9358         * locale/Versions (__collate_element_hash, __collate_element_strings,
9359         __collate_symbol_classes, __collate_symbol_hash,
9360         __collate_symbol_strings, _nl_current_LC_COLLATE,
9361         _nl_current_LC_CTYPE): Likewise.
9362         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9363         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9364         (libnss_nis, libnss_nisplus): Likewise.
9365         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9366         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9367         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9368         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9369         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9370         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9371         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9372         __ns_get16, __ns_samename): Likewise.
9373         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9374         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9375         GLIBC_PRIVATE.
9376         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9377         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9378         __libc_connect): Likewise.
9379         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9380         Likewise.
9381         * stdlib/Versions (__libc_system): Likewise.
9382         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9383         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9384         * sysdeps/ia64/fpu/Versions: Likewise.
9385         * sysdeps/ia64/Versions: Likewise.
9386         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9387         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9388         to GLIBC_PRIVATE.
9389         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9390         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9391         __libc_sigaction): Likewise.
9392         * termios/Versions (__libc_tcdrain): Likewise.
9393
9394         * misc/sys/cdefs (__attribute_noinline__): Define.
9395         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9396         __attribute_noinline__.
9397
9398         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9399         * elf/dl-xstat64.c: New file.
9400         * elf/dl-fxstat64.c: New file.
9401         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9402         don't export __fxstat64 at multiple versions.
9403         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9404         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9405
9406 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9407
9408         * locale/program/ld-collate.c (collate_finish): Assign a wide
9409         char collation sequence value to multi character collating
9410         elements, and avoid over writing by non-character elements.
9411
9412 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9413
9414         * elf/Makefile (distribute): Add dl-procinfo.c.
9415         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9416         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9417
9418 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9419
9420         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9421         definition.
9422         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9423         _rtld_global struct.
9424         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9425         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9426         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9427         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9428         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9429         _dl_fpu_control_set): Remove unused externs.
9430         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9431         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9432         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9433         related variables in _rtld_global struct.
9434         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9435         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9436         unused extern.
9437
9438 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9439
9440         * sysdeps/generic/dl-procinfo.c: New file.
9441
9442 2002-02-01  Andreas Schwab  <schwab@suse.de>
9443
9444         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9445
9446 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9447
9448         * elf/rtld.c (_dl_start): Mark as internal_function.
9449         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9450         in register.
9451         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9452         General pretty printing.
9453
9454 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9455
9456         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9457         * elf/dl-reloc.c: Pretty printing.
9458         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9459         procinfo-related variables in rtld_global struct.
9460         * elf/dl-support.c: Likewise.
9461         * elf/rtld.c: Likewise.
9462         * sysdeps/i386/i686/Makefile: Likewise.
9463         * sysdeps/i386/i686/hp-timing.c: Likewise.
9464         * sysdeps/i386/i686/hp-timing.h: Likewise.
9465         * sysdeps/ia64/Makefile: Likewise.
9466         * sysdeps/ia64/hp-timing.c: Likewise.
9467         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9468         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9469         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9470         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9471         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9472         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9473         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9474         * sysdeps/x86_64/Makefile: Likewise.
9475
9476         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9477         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9478         _dl_debug_fd to rtld_global.
9479         * elf/Versions: Likewise.
9480         * elf/dl-close.c: Likewise.
9481         * elf/dl-iteratephdr.c: Likewise.
9482         * elf/dl-lookup.c: Likewise.
9483         * elf/dl-misc.c: Likewise.
9484         * elf/dl-open.c: Likewise.
9485         * elf/dl-support.c: Likewise.
9486         * elf/do-lookup.h: Likewise.
9487         * elf/rtld.c: Likewise.
9488         * sysdeps/generic/dl-cache.c: Likewise.
9489         * sysdeps/generic/dl-sysdep.c: Likewise.
9490         * sysdeps/ia64/Versions: Likewise.
9491         * sysdeps/unix/clock_gettime.c: Likewise.
9492         * sysdeps/unix/clock_settime.c: Likewise.
9493         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9494         * sysdeps/sparc/Versions: Removed.
9495         * sysdeps/i386/i686/Versions : Removed.
9496         * sysdeps/x86_64/Versions: Removed.
9497         * configure.in: Define HAVE_PROTECTED if .protected is available.
9498         * config.h.in: Add entry for HAVE_PROTECTED.
9499
9500 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9501
9502         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9503         code in struct _rtld_global.  Export this struct, remove all
9504         exports for the signal variables.
9505         * sysdeps/arm/dl-machine: Likewise.
9506         * sysdeps/generic/dl-origin: Likewise.
9507         * sysdeps/generic/dl-sysdep: Likewise.
9508         * sysdeps/generic/dl-cache: Likewise.
9509         * sysdeps/hppa/dl-fptr: Likewise.
9510         * sysdeps/hppa/dl-machine: Likewise.
9511         * sysdeps/cris/dl-machine: Likewise.
9512         * sysdeps/i386/dl-machine: Likewise.
9513         * sysdeps/ia64/dl-machine: Likewise.
9514         * sysdeps/m68k/dl-machine: Likewise.
9515         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9516         * sysdeps/mips/mips64/dl-machine: Likewise.
9517         * sysdeps/mips/dl-machine: Likewise.
9518         * sysdeps/powerpc/elf/libc-start: Likewise.
9519         * sysdeps/powerpc/dl-machine: Likewise.
9520         * sysdeps/powerpc/dl-start: Likewise.
9521         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9522         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9523         * sysdeps/sh/dl-machine: Likewise.
9524         * sysdeps/s390/s390-32/dl-machine: Likewise.
9525         * sysdeps/s390/s390-64/dl-machine: Likewise.
9526         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9527         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9528         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9529         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9530         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9531         * sysdeps/x86_64/dl-machine: Likewise.
9532
9533 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9534
9535         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9536         are too high.
9537
9538 2002-01-31  Andreas Schwab  <schwab@suse.de>
9539
9540         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9541
9542 2002-01-31  Andreas Schwab  <schwab@suse.de>
9543
9544         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9545         reference to _dl_pagesize.
9546
9547 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9548
9549         * Versions.def [ld]: Add GLIBC_2.3.
9550         * elf/dl-addr.c: Move global variables for SHARED code in struct
9551         _rtld_global.  Export this struct, remove all exports for the
9552         signal variables.
9553         * elf/dl-close.c: Likewise.
9554         * elf/dl-conflict.c: Likewise.
9555         * elf/dl-debug.c: Likewise.
9556         * elf/dl-deps.c: Likewise.
9557         * elf/dl-dst.h: Likewise.
9558         * elf/dl-error.c: Likewise.
9559         * elf/dl-fini.c: Likewise.
9560         * elf/dl-init.c: Likewise.
9561         * elf/dl-iteratephdr.c: Likewise.
9562         * elf/dl-libc.c: Likewise.
9563         * elf/dl-load.c: Likewise.
9564         * elf/dl-lookup.c: Likewise.
9565         * elf/dl-minimal.c: Likewise.
9566         * elf/dl-object.c: Likewise.
9567         * elf/dl-open.c: Likewise.
9568         * elf/dl-profile.c: Likewise.
9569         * elf/dl-profstub.c: Likewise.
9570         * elf/dl-reloc.c: Likewise.
9571         * elf/dl-runtime.c: Likewise.
9572         * elf/dl-support.c: Likewise.
9573         * elf/dl-sym.c: Likewise.
9574         * elf/dl-version.c: Likewise.
9575         * elf/do-lookup.h: Likewise.
9576         * elf/do-rel.h: Likewise.
9577         * elf/dynamic-link.h: Likewise.
9578         * elf/rtld.c: Likewise.
9579         * sysdeps/generic/dl-cache.c: Likewise.
9580         * sysdeps/generic/dl-sysdep.c: Likewise.
9581         * sysdeps/generic/ldsodefs.h: Likewise.
9582         * sysdeps/generic/libc-start.c: Likewise.
9583         * sysdeps/i386/dl-machine.h: Likewise.
9584         * sysdeps/ia64/dl-fptr.c: Likewise.
9585         * sysdeps/ia64/dl-machine.h: Likewise.
9586         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9587         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9588         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9589         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9590         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9591         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9592         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9593         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9594
9595 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9596
9597         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9598         to avoid warning
9599         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9600
9601         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9602         SHARED version.
9603         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9604
9605         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9606
9607 2002-01-29  Ben Collins  <bcollins@debian.org>
9608
9609         * string/bits/string2.h (__mempcpy): Protect size arg for
9610         addition when using __builtin_memcpy.
9611
9612 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9613
9614         * stdlib/Makefile (tests): Add tst-qsort.
9615         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9616
9617         * manual/signal.texi (Process Signal Mask): Document that
9618         pthread_sigmask, not sigprocmask, must be used in MT programs.
9619         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9620
9621         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9622         found.
9623         * misc/Makefile (tests): Add tst-hsearch.
9624         * misc/tst-hsearch.c: New file.
9625
9626 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9627
9628         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9629         * malloc/malloc.h: Likewise.
9630         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9631         * malloc/arena.c: New file.
9632         * malloc/hooks.c: New file.
9633         * malloc/tst-mallocstate.c: New file.
9634         * malloc/Makefile: Add new testcase tst-mallocstate.
9635         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9636
9637 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9638
9639         * stdlib/msort.c: Remove last patch.  The optimization violates the
9640         same rule which qsort.c had problems with.
9641
9642 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9643
9644         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9645         to a pivot element that lies outside the array to be sorted, as
9646         ISO C99 requires that the comparison function be called only with
9647         addresses of array elements [PR libc/2880].
9648
9649 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9650
9651         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9652         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9653
9654         * timezone/asia: Update from tzdata2002b.
9655         * timezone/australasia: Likewise.
9656         * timezone/backward: Likewise.
9657         * timezone/europe: Likewise.
9658         * timezone/leapseconds: Likewise.
9659         * timezone/iso3166.tab: Likewise.
9660         * timezone/zone.tab: Likewise.
9661
9662 2002-01-23  Richard Henderson  <rth@redhat.com>
9663
9664         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9665
9666 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9667
9668         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9669         this element [PR libc/2855].
9670
9671         * string/strcoll.c: Handle zero-length arguments specially
9672         [PR libc/2856].
9673
9674 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9675
9676         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9677         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9678         short lengths and constant src.
9679         (strcpy): Don't optimize for gcc 3.0+.
9680         (__stpcpy): For gcc 3.0+, don't use
9681         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9682         for short string literal src.
9683
9684 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9685
9686         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9687         Set for arm, too.
9688
9689 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9690
9691         * manual/llio.texi (Linked Channels, Cleaning Streams):
9692         Make it clearer that a just-opened input stream might need cleaning.
9693
9694 2002-01-21  H.J. Lu  <hjl@gnu.org>
9695
9696         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9697         Don't use label at end of compound statement.
9698
9699 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9700
9701         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9702         Remove test for negative integer arg; sin_pi does it correctly.
9703
9704 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9705
9706         * nscd/Makefile (distribute): Filter out xmalloc.c.
9707
9708 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9709
9710         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9711         Set offset if read end wasn't the buffer end.
9712         (_IO_file_seekoff_mmap): New function.
9713         (_IO_file_xsgetn_mmap): New function.
9714         (_IO_file_jumps_mmap): Use the two new functions.
9715         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9716         != end buffer.
9717         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9718         _IO_file_underflow_mmap.
9719         * libio/iofopen.c: Don't position file descriptor at end of file.
9720         * libio/tst-widetext.c: Improve error messages.
9721         * stdio-common/tst-rndseek.c: Likewise.
9722
9723 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9724
9725         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9726         end of enum for !_GNU_SOURCE.
9727         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9728         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9729         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9730         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9731         values unless _GNU_SOURCE.
9732
9733         * iconvdata/tcvn5712-1.c: Minor cleanups.
9734
9735 2002-01-18  Andreas Schwab  <schwab@suse.de>
9736
9737         * sysdeps/unix/sysv/linux/configure.in
9738         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9739
9740 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9741
9742         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9743         more efficient "Towers of Hanoi" mergesort.
9744         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9745         for generic, sizeof(int) and sizeof(long) variants respectively.
9746
9747 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9748
9749         * manual/syslog.texi (openlog): Describe possible problems with
9750         first parameter.
9751         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9752
9753         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
9754         * nscd/connections.c (begin_drop_privileges): New function.
9755         (finish_drop_privileges): New function.
9756         (nscd_init): Call the new functions which also install all groups
9757         for the server user.
9758         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9759         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9760
9761 2002-01-17  H.J. Lu  <hjl@gnu.org>
9762
9763         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9764         `const' from `got'.
9765
9766 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9767
9768         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9769         instructions for pointer operations.
9770         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9771
9772 2002-01-17  Andreas Jaeger  <aj@suse.de>
9773
9774         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9775         __uint128_t build-in.
9776
9777         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9778         PowerPC, sync with 2.2 branch.
9779
9780 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9781
9782         * posix/getconf.c: Update copyright year.
9783         * nss/getent.c: Likewise.
9784         * nscd/nscd_nischeck.c: Likewise.
9785         * iconv/iconvconfig.c: Likewise.
9786         * iconv/iconv_prog.c: Likewise.
9787         * elf/ldconfig.c: Likewise.
9788         * catgets/gencat.c: Likewise.
9789         * csu/version.c: Likewise.
9790         * elf/ldd.bash.in: Likewise.
9791         * elf/sprof.c (print_version): Likewise.
9792         * locale/programs/locale.c: Likewise.
9793         * locale/programs/localedef.c: Likewise.
9794         * nscd/nscd.c (print_version): Likewise.
9795         * debug/xtrace.sh: Likewise.
9796         * malloc/memusage.sh: Likewise.
9797         * malloc/mtrace.pl: Likewise.
9798
9799 2002-01-16  Andreas Schwab  <schwab@suse.de>
9800
9801         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
9802         reliably remove "-ia64" from rtld name.
9803
9804 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9805
9806         * iconvdata/gb18030.c: Bug fixes and support for more characters.
9807         Patch by Yu Shao <yshao@redhat.com>.
9808
9809 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9810
9811         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
9812         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
9813         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
9814
9815 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9816
9817         * sysdeps/s390/fpu/libm-test-ulps: Update.
9818
9819 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
9820
9821         * elf/elf.h: Update x86 relocations.
9822
9823 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9824
9825         * locale/programs/charmap.c (new_width): Check whether byte
9826         sequences for both ends of range have the same length.
9827
9828 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9829
9830         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
9831
9832 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9833
9834         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
9835         string literals.
9836         (__full_ieee754_sqrt): Add __attribute_used__.
9837
9838 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9839
9840         * sysdeps/generic/group_member.c (__group_member): Also check
9841         groups[0] [PR libc/2781].
9842
9843 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
9844
9845         * Makefile (distribute): Add scripts/cpp.
9846         * elf/Makefile (distribute): Add reldep6mod[01234].c,
9847         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
9848         unwind-dw2-fde.h, and dwarf2.h.
9849         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
9850         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
9851         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
9852         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
9853
9854 2002-01-07  Roland McGrath  <roland@frob.com>
9855
9856         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
9857         volatile on type of ARGC so the compiler doesn't get clever.
9858
9859 2002-01-07  Andreas Jaeger  <aj@suse.de>
9860
9861         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
9862         * sysdeps/i386/bits/byteswap.h: Likewise.
9863         * sysdeps/ia64/bits/byteswap.h: Likewise.
9864         * sysdeps/m68k/bits/byteswap.h: Likewise.
9865         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
9866         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
9867
9868 2002-01-02  Bruno Haible  <bruno@clisp.org>
9869
9870         * intl/plural.y: Fix %expect count.
9871
9872 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
9873
9874         * elf/Makefile (routines, shared-only-routines): Add
9875         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
9876         * elf/elf.h (PT_GNU_EH_FRAME): Define.
9877         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
9878         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
9879         Optimize if .eh_frame section contains no FDEs.
9880         (__register_frame, __deregister_frame_info_bases,
9881         __deregister_frame): Likewise.
9882         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
9883         DW_CFA_restore handling.
9884
9885 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
9886
9887         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
9888
9889         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
9890         for x < 0.25 and restore original range reduction method.
9891         (__ieee754_lgammal_r): Make sure signgam is set before returning.
9892
9893 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
9894
9895         * libio/fileops.c (_IO_file_underflow_mmap): New function.
9896         (_IO_file_close_mmap): New function.
9897         (_IO_file_jumps_mmap): New variable.
9898         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
9899         trying to convert rest of byte buffer.
9900         (_IO_wfile_underflow_mmap): New function.
9901         (_IO_wfile_jumps_mmap): New variable.
9902         * libio/iofopen.c (__fopen_maybe_mmap): New function.
9903         (__fopen_internal): New function.  Split out from _IO_new_fopen.
9904         (_IO_new_fopen): Call __fopen_internal.
9905         * libio/iofopen64.c: Just call __fopen_internal.
9906         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
9907         successfully.
9908         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
9909         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
9910         _IO_file_close_mmap.
9911
9912         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
9913         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
9914
9915         * stdio-common/Makefile (tests): Add tst-rndseek.
9916         * stdio-common/tst-rndseek.c: New file.
9917
9918 2002-01-05  Roland McGrath  <roland@frob.com>
9919
9920         * config.h.in (HAVE_MIG_RETCODE): New #undef.
9921         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
9922         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
9923         * sysdeps/mach/hurd/configure: Regenerated.
9924
9925 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
9926
9927         * elf/elf.h: Add more TLS definitions.
9928
9929 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
9930
9931         * include/features.h (__GLIBC_MINOR__): Bump to 3.
9932
9933 2002-01-02  Roland McGrath  <roland@frob.com>
9934
9935         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
9936         __sigisemptyset.  Don't use MASK uninitialized.
9937
9938         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
9939         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
9940         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
9941         __sigdelset, __sigaddset, __sigorset.
9942
9943         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
9944         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
9945
9946         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
9947         _hurd_ports is null.
9948
9949         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
9950         for old CMU and new OSF Mach interface flavors.
9951         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
9952         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9953
9954         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
9955
9956         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
9957         Pass extra arguments to task_create for OSF variant.
9958         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9959
9960         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
9961         conditional on [HAVE_AUX_VECTOR].
9962
9963         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
9964         mach_msg_timeout_t as type of final argument.
9965
9966         * hurd/privports.c (__get_privileged_ports):
9967         Change host_priv_t to mach_port_t in argument type.
9968         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
9969         Update decls.
9970
9971         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
9972         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
9973         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
9974         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
9975         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
9976         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
9977
9978 2002-01-01  Roland McGrath  <roland@frob.com>
9979
9980         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
9981
9982 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
9983
9984         * include/stdlib.h: Define inlines for the _l variants of the strto*
9985         functions.
9986
9987 2002-01-01  Roland McGrath  <roland@frob.com>
9988
9989         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
9990
9991         * mach/Machrules (MIG): Set CPP as well as CC.
9992
9993 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
9994
9995         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
9996         locale to parse /proc/loadavg [PR libc/2760].
9997
9998 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
9999
10000         * elf/dl-conflict.c: Include sys/param.h.
10001         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10002         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10003         warning.
10004         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10005         literals to avoid warnings.
10006
10007 2001-12-31  Andreas Jaeger  <aj@suse.de>
10008
10009         * configure.in: Don't check for gsed since we do not use it anywhere.
10010
10011 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10012
10013         * io/fts.c: Update from BSD to fix memory leaks.
10014
10015 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10016
10017         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10018         * elf/chroot_canon.c: Likewise.
10019         * elf/dl-object.c: Likewise.
10020         * iconv/iconv_charmap.c: Likewise.
10021         * iconv/iconv_prog.c: Likewise.
10022         * libio/iogetdelim.c: Likewise.
10023         * locale/lc-time.c: Likewise.
10024         * stdlib/canonicalize.c: Likewise.
10025         * sunrpc/svc.c: Likewise.
10026         * sysdeps/generic/glob.c: Likewise.
10027
10028 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10029
10030         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10031         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10032         remove high order bit from the program counter.
10033         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10034
10035 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10036
10037         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10038         unnecessary code and add missing reloc types.
10039         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10040         case for reloc type R_390_NONE.
10041
10042 2001-12-28  Andreas Jaeger  <aj@suse.de>
10043
10044         * io/bug-ftw3.c: Include string.h for prototypes.
10045
10046         * crypt/md5test.c (main): Remove unused variable.
10047
10048         * dlfcn/modstatic.c: Add prototype to avoid warning.
10049
10050 2001-12-26  Roland McGrath  <roland@frob.com>
10051
10052         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10053         check only (SS->pending & MASK) for the signal to return.
10054         From Jeroen Dekkers <jeroen@dekkers.cx>.
10055
10056 2001-12-22  Roland McGrath  <roland@frob.com>
10057
10058         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10059         Use preprocessor #if conditionals instead of `if' to avoid
10060         warnings about divide by zero in dead code.
10061
10062         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10063         _hurd_port_init, and __hurd_self_sigstate.
10064
10065         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10066
10067 2001-12-21  Andreas Jaeger  <aj@suse.de>
10068
10069         * elf/dblloadmod1.c: Add prototype to avoid warning.
10070         * elf/dblloadmod2.c: Likewise.
10071         * elf/dblloadmod3.c: Likewise.
10072         * elf/reldepmod5.c: Likewise.
10073         * elf/reldepmod6.c: Likewise.
10074
10075         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10076         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10077         used on all architectures.
10078
10079         * sunrpc/svc_tcp.c: Add noreturn attribute for
10080         svctcp_rendezvous_abort.
10081         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10082
10083         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10084         to avoid warning.
10085
10086 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10087
10088         * manual/llio.texi (aio_fsync): Fix a typo.
10089         Patch by Tammy Fox <tfox@redhat.com>.
10090
10091 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10092
10093         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10094         stack bias from child stack pointer before passing it to clone syscall.
10095
10096 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10097
10098         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10099         _SC_TZNAME_MAX.
10100         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10101         Reported by Thorsten Kukuk <kukuk@suse.de>.
10102
10103         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10104         add some casts.
10105
10106         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10107
10108 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10109
10110         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10111         conforming: return EBADF if file descriptor is invalid and EINVAL
10112         if file descriptor is no valid tty.
10113         * login/tst-grantpt.c: New file.
10114         * login/Makefile (tests): Add tst-grantpt.
10115
10116 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10117
10118         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10119         different than implemented in last patch.
10120         * io/bug-ftw3.c: Adjust test for changed handling of
10121         inaccessibility of toplevel dir.
10122
10123 2001-12-16  Roland McGrath  <roland@frob.com>
10124
10125         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10126         * grp/initgroups.c (internal_getgrouplist): Likewise.
10127
10128         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10129         `default:' to silence new GCC warning.
10130         Rewrite cast of lvalue to silence new GCC warning.
10131
10132         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10133
10134         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10135         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10136
10137 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10138
10139         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10140         Patch by Stephen R. van den Berg.
10141
10142         * crypt/md5.h: Define md5_uintptr.
10143
10144 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10145
10146         * libio/tst_swprintf.c (main): Add test for string argument with
10147         zero precision.
10148         * stdio-common/Makefile (tests): Add tst-sprintf.
10149         * stdio-common/tst-sprintf.c: New file.
10150
10151 2001-12-13  Andreas Schwab  <schwab@suse.de>
10152
10153         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10154         zero precision with wide character string format.
10155
10156 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10157
10158         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10159         but have a user supplied buffer, return the empty buffer, not NULL.
10160
10161 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10162
10163         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10164         Patch by Eric Sharkey <sharkey@netrics.com>.
10165
10166         * crypt/md5test.c (main): Add test for multiple calls to
10167         __md5_process_bytes to itererate over input string.
10168
10169 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10170
10171         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10172         from __nis_findfastest.  Take timeout value from parameter.
10173         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10174         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10175         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10176
10177 2001-12-12  Andreas Jaeger  <aj@suse.de>
10178
10179         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10180         combreloc test so that it works in this case.
10181
10182         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10183
10184 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10185
10186         * sysdeps/sh/Makefile: New file.
10187         * sysdeps/sh/_mcount.S: New file.
10188         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10189         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10190
10191 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10192
10193         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10194         limitation [PR libc/2564].
10195
10196 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10197
10198         * elf/Makefile (dl-routines): Add conflict.
10199         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10200         (ld.so): Add _begin local symbol.
10201         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10202         Define.
10203         * elf/dl-deps.c (_dl_build_local_scope): New function.
10204         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10205         of all libraries.
10206         * elf/do-rel.h (VALIDX): Define.
10207         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10208         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10209         can be skipped.
10210         * elf/dl-conflict.c: New file.
10211         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10212         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10213         non-NULL.
10214         (_dl_lookup_symbol_skip): Likewise.
10215         (_dl_lookup_versioned_symbol): Likewise.
10216         (_dl_lookup_versioned_symbol_skip): Likewise.
10217         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10218         define to ElfW(Rel).
10219         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10220         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10221         ranges.
10222         Don't adjust address dynamic tags if l_addr is 0.
10223         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10224         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10225         (VALIDX, ADDRIDX): Define.
10226         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10227         (dl_main): Print library list for LD_TRACE_PRELINKING.
10228         If prelinking information can be used, skip relocating libraries and
10229         call _dl_resolve_conflicts instead.
10230         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10231         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10232         if LD_TRACE_PRELINKING.
10233         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10234         + DT_ADDRNUM.
10235         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10236         (DL_DEBUG_PRELINK): Define.
10237         (_dl_resolve_conflicts): Add prototype.
10238
10239         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10240         .plt for prelinked libraries where prelinking info cannot be used.
10241         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10242         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10243         * sysdeps/arm/bits/link.h: New file.
10244         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10245         content of .got[1].
10246         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10247         (ELF_MACHINE_PLT_REL): Define.
10248         (elf_machine_rela, elf_machine_rela_relative): New functions.
10249         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10250         of adjusting it if prelinked and prelinking cannot be used.
10251         * sysdeps/i386/bits/link.h: New file.
10252         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10253         content of .got[1].
10254         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10255         (ELF_MACHINE_PLT_REL): Define.
10256         (elf_machine_rela, elf_machine_rela_relative): New functions.
10257         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10258         of adjusting it if prelinked and prelinking cannot be used.
10259         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10260         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10261         to find out map for R_PPC_JMP_SLOT relocs.
10262         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10263         (OPCODE_BA): Define.
10264         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10265         libraries where prelinking info cannot be used.
10266         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10267         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10268         (elf_machine_rela): Set value to 0 if relocating conflicts.
10269         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10270         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10271         (sparc64_fixup_plt): Fix a typo.
10272         (elf_machine_rela): Set value to 0 if relocating conflicts.
10273         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10274         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10275         libraries where prelinking info cannot be used.
10276         * sysdeps/sh/bits/link.h: New file.
10277         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10278         content of .got[1].
10279         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10280         of adjusting it if prelinked and prelinking cannot be used.
10281         * sysdeps/s390/s390-32/bits/link.h: New file.
10282         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10283         Save original content of .got[1].
10284         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10285         of adjusting it if prelinked and prelinking cannot be used.
10286         * sysdeps/s390/s390-64/bits/link.h: New file.
10287         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10288         Save original content of .got[1].
10289         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10290         of adjusting it if prelinked and prelinking cannot be used.
10291         * sysdeps/x86_64/bits/link.h: New file.
10292         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10293         Save original content of .got[1].
10294         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10295         of adjusting it if prelinked and prelinking cannot be used.
10296
10297 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10298
10299         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10300         where appropriate instead of numbers.  Little optimizations.
10301
10302 2001-12-10  Roland McGrath  <roland@frob.com>
10303
10304         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10305         set it.
10306
10307         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10308         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10309
10310         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10311         Fix conditionals so this is set by default for stdio and not for libio.
10312         * sysdeps/mach/hurd/configure: Regenerated.
10313
10314 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10315
10316         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10317
10318 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10319
10320         * io/Makefile (tests): Add bug-ftw3.
10321         * io/bug-ftw3.c: New file.
10322
10323         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10324         matches and GLOB_NOCHECK is set.
10325         * posix/globtest.sh: Correct expected result for NOCHECK test.
10326
10327         * po/ca.po: Update from translation team.
10328
10329 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10330
10331         Implement transliteration of characters in strings of the locale
10332         definitions.
10333         * locale/programs/linereader.c: Adjust for additional parameter to
10334         lr_token.
10335         (get_string): If character <Uxxxx> is not found try to transliterate
10336         it.
10337         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10338         lr_token.  Add const to charmap parameter of all functions.
10339         (find_translit, find_translit2): New functions.
10340         * locale/programs/charmap.c: Adjust for additional parameter to
10341         lr_token.
10342         * locale/programs/repertoire.c: Likewise.
10343         * locale/programs/linereader.h: Likewise.
10344         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10345         parameter of all functions.
10346         * locale/programs/ld-collate.c: Likewise.
10347         * locale/programs/ld-identification.c: Likewise.
10348         * locale/programs/ld-measurement.c: Likewise.
10349         * locale/programs/ld-messages.c: Likewise.
10350         * locale/programs/ld-monetary.c: Likewise.
10351         * locale/programs/ld-name.c: Likewise.
10352         * locale/programs/ld-numeric.c: Likewise.
10353         * locale/programs/ld-paper.c: Likewise.
10354         * locale/programs/ld-paper.c: Likewise.
10355         * locale/programs/ld-telephone.c: Likewise.
10356         * locale/programs/ld-time.c: Likewise.
10357         * locale/programs/locfile.c: Likewise.
10358         * locale/programs/localedef.c: Likewise.
10359         * locale/programs/localedef.h: Likewise.
10360         * locale/programs/locfile.h: Likewise.  Add declaration for
10361         find_translit.
10362         * locale/programs/simple-hash.c: Add const to first parameter of
10363         find_entry, iterate_table, and lookup.
10364         * locale/programs/simple-hash.h: Likewise.
10365         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10366         instead.
10367         * include/locale.h: Define __LC_LAST.
10368         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10369
10370 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10371
10372         * sysdeps/powerpc/Dist: Update for recent FP changes.
10373         * sysdeps/powerpc/fpu/Dist: Likewise.
10374
10375 2001-12-07  Andreas Schwab  <schwab@suse.de>
10376
10377         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10378
10379 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10380
10381         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10382         save/restore functions here.
10383         (libm-support): Don't define these functions here.
10384         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10385         functions here.
10386         * sysdeps/powerpc/fe_nomask.c: Move to...
10387         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10388         * sysdeps/powerpc/fprrest.S: Move to...
10389         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10390         * sysdeps/powerpc/fprsave.S: Move to...
10391         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10392
10393 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10394
10395         * sysdeps/unix/sysv/linux/opensock.c: New file.
10396
10397 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10398
10399         * config.make.in (with-fp): Define from configure.
10400         * configure.in: Substitute with_fp.
10401         * configure: Regenerate.
10402         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10403         specified, and don't change FPU environment.
10404
10405 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10406
10407         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10408         * assert/assert.c: Check result of __asprintf call and don't use
10409         string if it failed.
10410         * assert/assert-perr.c: Likewise.
10411         * inet/rcmd.c: Likewise.
10412         * locale/programs/localedef.c (main): Check result of
10413         construct_output_path and exit if it failed.
10414         (construct_output_path): Check result of asprintf and mkdir calls and
10415         fail if they failed.
10416         * posix/getopt.c: Check result of __asprintf calls and fail if
10417         they failed.
10418         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10419
10420 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10421
10422         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10423         patch.
10424         * sysdeps/generic/strncase.c: Likewise.
10425         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10426
10427 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10428
10429         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10430
10431         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10432         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10433         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10434         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10435         * sysdeps/powerpc/fclrexcpt.c: Move to...
10436         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10437         * sysdeps/powerpc/fpu_control.h: Move to...
10438         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10439
10440 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10441
10442         * iconvdata/ibm1129.h: Remove duplicate mappings.
10443         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10444         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10445         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10446
10447         * timezone/zic.c: Fix handling of turnaround times.
10448         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10449
10450 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10451
10452         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10453         overflow problem.
10454
10455 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10456
10457         * posix/regex.c: For use outside glibc defined bounded pointer
10458         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10459
10460         * iconvdata/Makefile (modules): Add TCVN5712-1.
10461         * iconvdata/TESTS: Add TCVN5712-1.
10462         * iconvdata/gconv-modules: Likewise.
10463         * iconvdata/tcvn5712-1.c: New file.
10464         * iconvdata/testdata/TCVN-5712: New file.
10465         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10466
10467 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10468
10469         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10470
10471 2001-12-02  Roland McGrath  <roland@frob.com>
10472
10473         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10474
10475         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10476         Reported by Jeff Bailey <jbailey@nisa.net>.
10477
10478         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10479         Reported by Jeff Bailey <jbailey@nisa.net>.
10480
10481         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10482         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10483         Reported by Jeff Bailey <jbailey@nisa.net>.
10484
10485 2001-12-01  Roland McGrath  <roland@frob.com>
10486
10487         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10488         missing backslash in test arguments.
10489         * sysdeps/mach/hurd/configure: Regenerated.
10490
10491 2001-11-26  Roland McGrath  <roland@frob.com>
10492
10493         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10494         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10495
10496 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10497
10498         * iconvdata/Makefile (modules): Add ARMSCII-8.
10499         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10500         * iconvdata/armscii-8.c: New file.
10501
10502 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10503
10504         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10505         don't match, fix {{a,b},c} globbing, clean up.
10506         Patch by Flavio Veloso <flaviovs@magnux.com>.
10507         * posix/globtest.sh: Add new tests.
10508
10509 2001-11-29  Andreas Jaeger  <aj@suse.de>
10510
10511         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10512         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10513
10514         * sysdeps/generic/abort.c: Include libioP.h for
10515         _IO_flush_all_lockp prototype.
10516
10517 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10518
10519         * posix/regex.h: Define __restrict_arr correctly.
10520
10521 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10522
10523         * iconvdata/ibm1163.c: New file.
10524         * iconvdata/ibm1163.h: New file.
10525         * iconvdata/ibm1164.c: New file.
10526         * iconvdata/ibm1164.h: New file.
10527         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10528         * iconvdata/Makefile: Likewise.
10529         * iconvdata/testdata/IBM1163: New file.
10530         * iconvdata/testdata/IBM1163..UTF8: New file.
10531         * iconvdata/testdata/IBM1164: New file.
10532         * iconvdata/testdata/IBM1164..UTF8: New file.
10533         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10534
10535         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10536         * iconvdata/ibm1124.h: Likewise.
10537         * iconvdata/ibm1132.h: Likewise.
10538         * iconvdata/ibm1133.h: Likewise.
10539         * iconvdata/ibm1160.h: Likewise.
10540         * iconvdata/ibm1161.h: Likewise.
10541         * iconvdata/ibm1162.h: Likewise.
10542         * iconvdata/ibm856.h: Likewise.
10543         * iconvdata/ibm922.h: Likewise.
10544         * iconvdata/ibm930.h: Likewise.
10545         * iconvdata/ibm932.h: Likewise.
10546         * iconvdata/ibm933.h: Likewise.
10547         * iconvdata/ibm935.h: Likewise.
10548         * iconvdata/ibm937.h: Likewise.
10549         * iconvdata/ibm939.h: Likewise.
10550         * iconvdata/ibm943.h: Likewise.
10551         * iconvdata/ibm930.c: Pretty printing.
10552         * iconvdata/ibm937.c: Avoid access accross array boundary.
10553
10554         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10555         the current locale's codeset.
10556         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10557         empty input string.
10558         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10559         and from-charset.  Don't determine locale's charset here.
10560
10561         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10562         as the old _IO_flush_all but lock only if parameter is nonzero.
10563         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10564         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10565         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10566         if libio is used [PR libc/2575].
10567
10568 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10569
10570         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10571         __signbitl): Only define for ISO C99.
10572
10573 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10574
10575         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10576         herrnop to NETDB_INTERNAL if we run out of buffer space.
10577
10578 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10579
10580         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10581         overflow test for platforms with signed char.
10582         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10583
10584 2001-11-28  Bruno Haible  <bruno@clisp.org>
10585
10586         * locale/programs/simple-hash.c (lookup_2): Remove function.
10587         (insert_entry_2): Call lookup instead of lookup_2.
10588
10589 2001-03-04  Bruno Haible  <bruno@clisp.org>
10590
10591         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10592
10593 2001-10-31  Bruno Haible  <bruno@clisp.org>
10594
10595         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10596
10597 2001-03-21  Bruno Haible  <bruno@clisp.org>
10598
10599         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10600         chokes on empty macro arguments.
10601         * intl/plural.y: Add #pragma for alloca on AIX 3.
10602
10603 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10604
10605         * intl/dcigettext.c (guess_category_value): Only implement for
10606         glibc.  Otherwise rely on function _nl_locale_name which isn't
10607         present in the glibc sources.
10608
10609 2001-09-24  Bruno Haible  <bruno@clisp.org>
10610
10611         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10612         transliteration when building on a glibc system but outside glibc.
10613
10614 2001-09-22  Bruno Haible  <bruno@clisp.org>
10615
10616         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10617         * intl/dcigettext.c (plural_eval): Remove function, moved to
10618         intl/plural-eval.c.
10619         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10620         Include plural-eval.c.
10621
10622 2001-09-22  Bruno Haible  <bruno@clisp.org>
10623
10624         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10625         don't start with a digit; nplurals must be positive.
10626
10627 2001-09-02  Bruno Haible  <bruno@clisp.org>
10628
10629         * intl/plural-exp.h: New file, extracted from gettextP.h.
10630         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10631         * intl/gettextP.h (struct expression, struct parse_args,
10632         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10633         * intl/loadmsgcat.c: Include plural-exp.h.
10634         (PLURAL_PARSE): Move macro to plural-exp.h.
10635         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10636         plural-exp.c.
10637         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10638         EXTRACT_PLURAL_EXPRESSION.
10639         (_nl_unload_domain): Update.
10640         * intl/dcigettext.c: Include plural-exp.h.
10641         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10642         (FREE_EXPRESSION): Move macro to plural-exp.h.
10643         * intl/Makefile (routines): Add plural-exp.
10644         (distribute): Add plural-exp.h.
10645
10646 2001-07-28  Bruno Haible  <bruno@clisp.org>
10647
10648         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10649         isdigit, tolower argument to 'unsigned char'.
10650         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10651         'unsigned char'.
10652         * intl/localealias.c (read_alias_file): Cast isspace argument to
10653         'unsigned char'.
10654
10655 2001-10-20  Bruno Haible  <bruno@clisp.org>
10656
10657         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10658         anyway.)
10659         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10660         with the variable 'index' in plural_lookup.
10661         * intl/l10nflist.c (strchr): Likewise.
10662         * intl/localealias.c (strchr): Likewise.
10663
10664         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10665         * intl/bindtextdom.c: Likewise.
10666         * intl/dcigettext.c: Likewise.
10667         * intl/dgettext.c: Likewise.
10668         * intl/dngettext.c: Likewise.
10669         * intl/explodename.c: Likewise.
10670         * intl/finddomain.c: Likewise.
10671         * intl/gettext.c: Likewise.
10672         * intl/l10nflist.c: Likewise.
10673         * intl/loadmsgcat.c: Likewise.
10674         * intl/localealias.c: Likewise.
10675         * intl/ngettext.c: Likewise.
10676         * intl/textdomain.c: Likewise.
10677         * intl/gettext.h: Assume <limits.h> exists.
10678
10679 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10680
10681         * stdio-common/Makefile (tests): Add scanf11.
10682         * stdio-common/scanf11.c: New file.
10683
10684 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10685
10686         * version.h (RELEASE): Define as development.
10687         (VERSION): Set to 2.2.90.
10688
10689 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10690
10691         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10692         * nis/nss_nis/nis-grp.c: Likewise.
10693         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10694
10695         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10696         * nis/nss_nis/nis-pwd.c: Likewise.
10697         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10698
10699         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10700         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10701         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10702
10703         * nscd/grpcache.c: Use strtoul instead of atol.
10704         * nscd/pwdcache.c: Likewise.
10705         * nss/getent.c: Likewise.
10706
10707 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10708
10709         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10710         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10711
10712 2001-11-19  Bruno Haible  <bruno@clisp.org>
10713
10714         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10715         90%.
10716         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10717         improves the quality of the hash function, especially for short
10718         strings.
10719
10720 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10721
10722         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10723         are found call conv_error and not input_error [PR libc/2669].
10724
10725         * math/bits/mathcalls.h: Mark ceil and floor as const.
10726         Reported by David Mosberger.
10727
10728 2001-11-21  Jim Meyering  <meyering@lucent.com>
10729
10730         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10731         Define to be __-prefixed.
10732         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10733
10734 2001-11-26  Andreas Jaeger  <aj@suse.de>
10735
10736         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10737         avoid warning.
10738
10739 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10740
10741         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10742         initialization.
10743
10744         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10745         unused variables.  Fix threshold for returning 1.0.
10746
10747         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10748         argument.
10749
10750         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10751         remove unused variables.
10752
10753         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10754
10755         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10756         include local math header files.
10757
10758 2001-11-22  Andreas Jaeger  <aj@suse.de>
10759
10760         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10761         avoid warning.
10762
10763 2001-11-21  Andreas Jaeger  <aj@suse.de>
10764
10765         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10766
10767         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10768         sys/debugreg.h
10769
10770 2001-11-15  Andreas Jaeger  <aj@suse.de>
10771
10772         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10773         compilers that support it.
10774
10775         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10776         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10777         * stdlib/stdlib.h: Likewise.
10778
10779 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
10780
10781         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
10782         statement with gotos.
10783         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
10784
10785 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
10786
10787         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
10788
10789 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
10790
10791         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
10792
10793 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
10794             H.J. Lu  <hjl@gnu.org>
10795
10796         * Versions.def (libc): Add GCC_3.0.
10797         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
10798         if gcc supports this flag.
10799         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
10800         (gcc3): Allow glibc to be compiled with gcc 3.x.
10801         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
10802         * config.make.in (static-libgcc, unwind-find-fde): Add.
10803         * Makerules (build-shlib-helper, build-module-helper): Use it.
10804         * scripts/versions.awk: Make sure GLIBC_ versions come first.
10805         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
10806         necessary.
10807         (_fini): Call __deregister_frame_info_bases if
10808         __register_frame_info_bases was used to register.
10809         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
10810         for GLIBC_2.0.
10811         (__register_frame_info_bases, __register_frame_info_table_bases,
10812         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
10813         * elf/Makefile (routines): Add unwind-dw2-fde.
10814         (shared-only-routines): Add unwind-dw2-fde.
10815         * sysdeps/alpha/gccframe.h: New file.
10816         * sysdeps/arm/gccframe.h: New file.
10817         * sysdeps/generic/framestate.c: New file.
10818         * sysdeps/generic/dwarf2.h: New file.
10819         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
10820         * sysdeps/generic/unwind-dw2-fde.c: New file.
10821         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
10822         * sysdeps/generic/unwind-dw2-fde.h: New file.
10823         * sysdeps/generic/unwind-dw2.c: New file.
10824         * sysdeps/generic/unwind-pe.h: New file.
10825         * sysdeps/generic/unwind.h: New file.
10826         * sysdeps/hppa/gccframe.h: New file.
10827         * sysdeps/i386/gccframe.h: New file.
10828         * sysdeps/m68k/gccframe.h: New file.
10829         * sysdeps/mips/gccframe.h: New file.
10830         * sysdeps/powerpc/gccframe.h: New file.
10831         * sysdeps/s390/gccframe.h: New file.
10832         * sysdeps/sh/gccframe.h: New file.
10833         * sysdeps/sparc/gccframe.h: New file.
10834         * sysdeps/vax/gccframe.h: New file.
10835         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10836         Set on all architectures except ia64.
10837         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
10838         for i386.
10839         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
10840         __deregister_frame_info): Move to elf/Versions.
10841         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
10842         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
10843         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
10844         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
10845         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
10846         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
10847         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
10848         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
10849         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
10850         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
10851         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
10852         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
10853         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10854         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10855         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
10856         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
10857         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10858         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
10859
10860 2001-11-15  Jeff Law  <law@redhat.com>
10861
10862         * posix/regex.c (uintptr_t): Do not provide a definition if the
10863         system provided one.
10864
10865 2001-11-13  Roland McGrath  <roland@frob.com>
10866
10867         * stdio-common/tmpfile.c: Moved to ...
10868         * sysdeps/generic/tmpfile.c: ... here.
10869         * sysdeps/mach/hurd/tmpfile.c: New file.
10870
10871         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
10872         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
10873         (fopenport): Define as weak alias.
10874
10875         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
10876         * libio/libioP.h: ... to here.
10877
10878 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
10879
10880         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
10881         program header twice.  Construct list with the needed information.
10882
10883 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
10884
10885         * po/ca.po: Update from translation team.
10886
10887         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
10888         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
10889         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
10890         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10891
10892 2001-11-10  Andreas Jaeger  <aj@suse.de>
10893
10894         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
10895         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10896         Contributed by Stephen L Moshier <moshier@mediaone.net>.
10897
10898 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
10899
10900         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
10901         correctly.
10902         * elf/dl-load.c (is_dst): New function.
10903         (_dl_dst_count): Use is_dst to check for DST variable.
10904         (_dl_dst_substitute): Likewise.
10905
10906 2001-11-09  Roland McGrath  <roland@frob.com>
10907
10908         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
10909         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
10910         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
10911         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
10912         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
10913         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
10914         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
10915         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
10916         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
10917         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
10918         * sysdeps/mach/hurd/powerpc/Dist: New file.
10919
10920         * hurd/privports.c (__get_privileged_ports):
10921         Only contact the proc server if necessary for this call.
10922         Suggested by Neal H Walfield <neal@cs.uml.edu>.
10923         Check error return for mach_port_mod_refs.
10924
10925 2001-11-09  Andreas Schwab  <schwab@suse.de>
10926
10927         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
10928
10929 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
10930
10931         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
10932         object is always the last in the list.
10933         (_dl_map_object_from_fd): Delete code to remove from object list
10934         when DF_1_NOOPEN is seen.  This is done in lose.
10935
10936 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
10937
10938         * elf/dl-object.c (_dl_new_object): Various small optimizations.
10939
10940 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
10941
10942         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
10943         HWCAP_CHECK macro code.
10944
10945         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
10946         Now returns MAP_FAILED on error.
10947         * elf/rtld.c: Adjust caller.
10948         * sysdeps/generic/dl-cache.c: Likewise.
10949         * sysdeps/generic/ldsodefs.h: Adjust description.
10950
10951         * elf/dl-version.c (match_symbol): Optimize error handling for size.
10952         (_dl_check_map_versions): Likewise.
10953
10954 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
10955
10956         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
10957         _dl_signal_error directly, always use lose.  Set fd to -1 after
10958         file is closed.
10959         (lose): Don't call close if fd == -1.
10960
10961 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
10962
10963         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
10964          Also fix typo @code {mbsinit} to @code{mbsinit}.
10965
10966 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
10967
10968         * elf/dl-profile.c: Replace state variable with simple flag named
10969         running.  Remove commented-out code.
10970
10971         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
10972         (_dl_init_paths): Likewise.
10973         (_dl_map_object_from_fd): Likewise.
10974         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10975
10976 2001-11-06  Roland McGrath  <roland@frob.com>
10977
10978         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
10979         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
10980
10981         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
10982         sysdeps/powerpc/elf/sysdep.h.
10983         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
10984
10985 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
10986
10987         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
10988         speed.
10989         (process_envvars): Some more optimizations.
10990         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
10991
10992         * elf/elf.h: Add dynamic tag definitions for prelinking.
10993
10994         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
10995         Rewrite code to remove environment varables for SUID binaries.
10996         Small optimization in LD_PROFILE handling.
10997         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
10998         changes.
10999         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11000
11001         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11002
11003         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11004         strings.  Change type of second parameter.
11005         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11006         for last change.
11007
11008         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11009
11010 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11011
11012         * manual/string.texi: Fix typos.
11013         * manual/examples/argp-ex2.c: Likewise.
11014
11015 2001-11-05  Roland McGrath  <roland@frob.com>
11016
11017         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11018         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11019         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11020         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11021         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11022         here, put under [__ELF__].
11023
11024 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11025
11026         * manual/charset.texi: Extensive editing work.
11027         * manual/nss.texi: Likewise.
11028         Changes by Dennis Grace <dgrace@us.ibm.com>.
11029
11030 2001-11-04  Roland McGrath  <roland@frob.com>
11031
11032         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11033         parameter to dir_mkfile.
11034
11035 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11036
11037         * string/bits/string2.h (__strndup): If n is smaller than len, set
11038         len to n + 1.
11039         * string/tester.c (test_strndup): New function.
11040         (main): Call it.
11041
11042 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11043
11044         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11045
11046         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11047         * scripts/cpp: New file.
11048
11049         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11050         for rtld_search_dirs content.  Minor optimizations.
11051
11052 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11053
11054         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11055         avoiding unnecessary duplication.
11056
11057 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11058
11059         * elf/dl-load.c (_dl_map_object): If library was found using
11060         LD_LIBRARY_PATH, don't try RUNPATH list.
11061
11062 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11063
11064         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11065         Correct second argument of register_dump call.
11066         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11067         Likewise.
11068
11069 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11070
11071         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11072         modules.
11073         * iconvdata/TESTS: Likewise.
11074         * iconvdata/gconv-modules: Likewise.
11075         * iconvdata/ibm1132.c: New file.
11076         * iconvdata/ibm1132.h: New file.
11077         * iconvdata/ibm1133.c: New file.
11078         * iconvdata/ibm1133.h: New file.
11079         * iconvdata/ibm1162.c: New file.
11080         * iconvdata/ibm1162.h: New file.
11081         * iconvdata/testdata/IBM1132: New file.
11082         * iconvdata/testdata/IBM1132..UTF8: New file.
11083         * iconvdata/testdata/IBM1133: New file.
11084         * iconvdata/testdata/IBM1133..UTF8: New file.
11085         * iconvdata/testdata/IBM1162: New file.
11086         * iconvdata/testdata/IBM1162..UTF8: New file.
11087         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11088
11089         * string/string.h: Fix typo in comment.
11090         * wcsmbs/wchar.h: Likewise.
11091
11092 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11093
11094         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11095         const in type of longopts parameter.
11096
11097 2001-10-29  Andreas Jaeger  <aj@suse.de>
11098
11099         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11100
11101 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11102
11103         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11104         output, clarify `#' behaviour on 0.
11105         (Floating-Point Conversions): Clarify that %g only uses %e when
11106         the exponent would be greater than 1.
11107
11108 2001-10-28  Roland McGrath  <roland@frob.com>
11109
11110         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11111         * sysdeps/mach/powerpc/machine-sp.h: New file.
11112         * sysdeps/mach/powerpc/sysdep.h: New file.
11113         * sysdeps/mach/powerpc/thread_state.h: New file.
11114
11115         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11116         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11117         expect to need the same thing on every platform.
11118
11119         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11120         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11121
11122         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11123         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11124         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11125         Move all these assembly-related definitions to ...
11126         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11127
11128         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11129         by Peter Bruin <pjbruin@dds.nl>.
11130
11131         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11132         packing results for a `poll' call.
11133
11134 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11135
11136         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11137         correctly.
11138         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11139         bracket expression.
11140
11141         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11142         nrules value.
11143         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11144
11145 2001-10-24  H.J. Lu  <hjl@gnu.org>
11146
11147         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11148         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11149         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11150
11151 2001-10-21  Jim Meyering  <meyering@lucent.com>
11152
11153         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11154         this code would end up calling gettext even in packages built
11155         with --disable-nls.
11156         * posix/getopt.c (_): Likewise.
11157         * posix/regex.c (_): Likewise.
11158
11159 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11160
11161         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11162         lookup not ip6.int.
11163         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11164         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11165
11166 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11167
11168         * misc/sys/cdefs.h (__attribute_used__): Define.
11169         * elf/rtld.c (_dl_start): Add __attribute_used__.
11170         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11171
11172 2001-10-25  Andreas Schwab  <schwab@suse.de>
11173
11174         * stdlib/a64l.c: Expect least significant digit first.
11175         * stdlib/l64a.c: Produce least significant digit first.
11176         * stdlib/Makefile (tests): Add test-a64l.
11177         * stdlib/test-a64l.c: New file.
11178         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11179
11180 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11181
11182         * po/sk.po: Update from translation team.
11183
11184 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11185
11186         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11187
11188 2001-10-18  Andreas Schwab  <schwab@suse.de>
11189
11190         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11191         next whole number.
11192         (print_function_ulps): Likewise.
11193         (print_complex_function_ulps): Likewise.
11194         (print_max_error): Likewise.
11195         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11196
11197 2001-10-16  Andreas Schwab  <schwab@suse.de>
11198
11199         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11200         implementation.
11201
11202         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11203         BSD_SETJMP or BSD__SETJMP is defined, resp.
11204         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11205         a tail call to __sigsetjmp that would require extending the
11206         caller's frame.
11207         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11208         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11209         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11210         Reported by Jes Sorensen <jes@trained-monkey.org>.
11211
11212 2001-10-16  Andreas Jaeger  <aj@suse.de>
11213
11214         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11215         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11216         close PR libc/2589.
11217
11218 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11219
11220         * po/ca.po: New file.  Contributed by the translation team.
11221
11222 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11223
11224         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11225         a varargs prototype.  Remove dependency from kernel header files.
11226
11227         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11228         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11229
11230 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11231
11232         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11233         to generate hexadecimal identifier.
11234         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11235
11236 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11237
11238         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11239
11240 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11241
11242         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11243         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11244         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11245
11246         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11247         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11248         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11249         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11250         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11251         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11252
11253         * timezone/africa: Update from tzdata2001d.
11254         * timezone/asia: Likewise.
11255         * timezone/australasia: Likewise.
11256         * timezone/backward: Likewise.
11257         * timezone/europe: Likewise.
11258         * timezone/leapseconds: Likewise.
11259         * timezone/northamerica: Likewise.
11260         * timezone/southamerica: Likewise.
11261         * timezone/zone.tab: Likewise.
11262
11263 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11264
11265         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11266         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11267
11268 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11269
11270         * elf/elf.h (PT_TLS): New definition.
11271
11272 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11273
11274         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11275         bits/errno.h
11276
11277 2001-10-07  Roland McGrath  <roland@frob.com>
11278
11279         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11280
11281 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11282
11283         * elf/elf.h: Add more ELFOSABI_* constants.
11284
11285 2001-10-04  Ben Collins  <bcollins@debian.org>
11286
11287         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11288         decleration of __need_wchar_t.
11289
11290 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11291
11292         * string/bits/string2.h (__strsep_g): Add prototype.
11293         (__strsep): Use it.
11294         * string/Versions (__strsep): Remove.
11295         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11296
11297 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11298
11299         * manua/llio.texi: Clarify file references added by mmap.
11300         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11301
11302 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11303
11304         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11305         Add sc_loadrs and sc_rbs_bas to match current kernel.
11306
11307 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11308
11309         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11310
11311         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11312
11313 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11314
11315         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11316         object has been bumped because of relocation dependency, avoid
11317         duplicates in l_scope.
11318         (show_scope): Fix typos.
11319         * elf/Makefile: Add rules to build and run reldep6.
11320         * elf/reldep6.c: New file.
11321         * elf/reldep6mod0.c: New file.
11322         * elf/reldep6mod1.c: New file.
11323         * elf/reldep6mod2.c: New file.
11324         * elf/reldep6mod3.c: New file.
11325         * elf/reldep6mod4.c: New file.
11326
11327 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11328
11329         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11330         sparc64_fixup_plt.
11331         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11332         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11333         for non-lazy binding. Fix .plt[32768+] handling.
11334         (elf_machine_plt_value): Don't add addend.
11335         (elf_machine_rela): Call sparc64_fixup_plt instead of
11336         elf_machine_fixup_plt.
11337         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11338         dynamic linker at 0xfffff800XXXXXXXX.
11339
11340         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11341
11342 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11343
11344         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11345
11346 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11347
11348         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11349         declare __cmsg_data field if its size would be bigger than 0.
11350         (CMSG_DATA): Adjust accordingly.
11351         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11352         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11353         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11354         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11355         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11356         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11357         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11358
11359 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11360
11361         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11362         * iconvdata/testdata/IBM1160: New file.
11363         * iconvdata/testdata/IBM1160..UTF8: New file.
11364         * iconvdata/testdata/IBM1161: New file.
11365         * iconvdata/testdata/IBM1161..UTF8: New file.
11366         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11367
11368 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11369
11370         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11371         UL_SETFSIZE computations better.
11372
11373         * rt/Makefile: Remove use of filter for librt again.
11374
11375         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11376         UL_SETFSIZE computations better.
11377
11378         * string/Versions: Export __strsep for GLIBC_2.2.5.
11379         * string/bits/string2.h: Define all __STRING_INLINE functions if
11380         _FORCE_INLINES is defined.
11381         Use int instead of char of parameter types.
11382         (__strsep): Don't use __strsep_g.  Don't define it.
11383         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11384         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11385         __strcpy_small.
11386         (__stpcpy_a_small): Renamed from __stpcpy_small.
11387         (__strcspn_c1): Don't define if _FORCE_INLINES.
11388         (__strspn_c1): Likewise.
11389
11390 2001-09-22  Ben Collins  <bcollins@debian.org>
11391
11392         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11393         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11394         * sysdeps/ia64/bits/sigaction.h: Likewise.
11395         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11396
11397 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11398
11399         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11400
11401 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11402
11403         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11404
11405 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11406
11407         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11408
11409 2001-09-20  H.J. Lu  <hjl@gnu.org>
11410
11411         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11412         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11413         for __RTLD_SPROF.
11414         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11415         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11416
11417 2001-09-20  H.J. Lu  <hjl@gnu.org>
11418
11419         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11420         don't add 1.
11421
11422 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11423
11424         * nss/getent.c: Accept -s parameter to overwrite rules in
11425         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11426
11427         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11428         with as many ".0" as necessary to form a complete address
11429         inet_network understands.
11430
11431         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11432         calls.
11433
11434 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11435
11436         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11437         _JMPBUF_UNWINDS.
11438         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11439
11440 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11441
11442         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11443         IBM1161.
11444         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11445         * iconvdata/ibm1160.c: New file.
11446         * iconvdata/ibm1160.h: New file.
11447         * iconvdata/ibm1161.c: New file.
11448         * iconvdata/ibm1161.h: New file.
11449         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11450
11451 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11452
11453         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11454         difference between base address and first PT_LOAD's virtual address,
11455         not the base address.
11456
11457 2001-09-11  Tom Rix  <trix@redhat.com>
11458
11459         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11460         ifdef for __getopt_clean_environment.
11461         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11462
11463 2001-09-22  Andreas Jaeger  <aj@suse.de>
11464
11465         * elf/reldep4.c (main): Add proper prototype to fix warning.
11466
11467         * elf/reldep5.c (main): Remove unused variable.
11468
11469         * math/math_private.h: Add prototypes.
11470
11471 2001-09-21  Andreas Jaeger  <aj@suse.de>
11472
11473         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11474         * sysdeps/x86_64/Dist: New file.
11475         * sysdeps/x86_64/soft-fp/Dist: New file.
11476
11477         * sysdeps/gnu/Dist: Remove eval.c.
11478
11479 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11480
11481         * malloc/memusage.c (realloc): Don't count already allocated
11482         memory in the sums.
11483         (me): Always use dlsym() to find the real implementations.
11484
11485         * malloc/memusage.sh: Make -n option actually do something.
11486
11487 2001-09-20  Andreas Jaeger  <aj@suse.de>
11488
11489         * elf/elf.h (R_390_NUM): Correct value.
11490
11491         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11492         libpthread.
11493
11494         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11495         for x86-64, install x86-64 into */lib64.
11496
11497         * shlib-versions: Add x86-64.
11498
11499         * elf/elf.h: Add x86-64 relocations.
11500
11501 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11502
11503         * po/fr.po: Update from translation team.
11504
11505 2001-09-19  Andreas Jaeger  <aj@suse.de>
11506
11507         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11508         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11509         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11510         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11511         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11512         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11513         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11514         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11515         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11516         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11517         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11518         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11519         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11520         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11521         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11522         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11523         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11524         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11525         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11526         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11527         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11528         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11529         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11530         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11531         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11532         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11533         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11534         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11535         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11536         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11537         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11538         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11539         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11540         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11541         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11542         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11543         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11544         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11545         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11546         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11547         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11548         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11549         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11550         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11551         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11552         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11553         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11554         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11555         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11556         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11557         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11558         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11559         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11560         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11561         * sysdeps/unix/x86_64/sysdep.S: New file.
11562         * sysdeps/unix/x86_64/sysdep.h: New file.
11563         * sysdeps/x86_64/Implies: New file.
11564         * sysdeps/x86_64/Makefile: New file.
11565         * sysdeps/x86_64/Versions: New file.
11566         * sysdeps/x86_64/__longjmp.S: New file.
11567         * sysdeps/x86_64/abort-instr.h: New file.
11568         * sysdeps/x86_64/atomicity.h: New file.
11569         * sysdeps/x86_64/bits/endian.h: New file.
11570         * sysdeps/x86_64/bits/setjmp.h: New file.
11571         * sysdeps/x86_64/bits/string.h: New file.
11572         * sysdeps/x86_64/bp-asm.h: New file.
11573         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11574         * sysdeps/x86_64/bsd-setjmp.S: New file.
11575         * sysdeps/x86_64/dl-machine.h: New file.
11576         * sysdeps/x86_64/elf/initfini.c: New file.
11577         * sysdeps/x86_64/elf/start.S: New file.
11578         * sysdeps/x86_64/ffs.c: New file.
11579         * sysdeps/x86_64/ffsll.c: New file.
11580         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11581         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11582         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11583         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11584         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11585         * sysdeps/x86_64/fpu/e_expl.c: New file.
11586         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11587         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11588         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11589         * sysdeps/x86_64/fpu/e_logl.S: New file.
11590         * sysdeps/x86_64/fpu/e_powl.S: New file.
11591         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11592         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11593         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11594         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11595         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11596         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11597         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11598         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11599         * sysdeps/x86_64/fpu/fegetround.c: New file.
11600         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11601         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11602         * sysdeps/x86_64/fpu/fesetround.c: New file.
11603         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11604         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11605         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11606         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11607         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11608         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11609         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11610         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11611         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11612         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11613         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11614         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11615         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11616         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11617         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11618         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11619         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11620         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11621         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11622         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11623         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11624         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11625         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11626         * sysdeps/x86_64/gmp-mparam.h: New file.
11627         * sysdeps/x86_64/hp-timing.c: New file.
11628         * sysdeps/x86_64/hp-timing.h: New file.
11629         * sysdeps/x86_64/htonl.S: New file.
11630         * sysdeps/x86_64/memusage.h: New file.
11631         * sysdeps/x86_64/setjmp.S: New file.
11632         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11633         * sysdeps/x86_64/stackinfo.h: New file.
11634         * sysdeps/x86_64/sysdep.h: New file.
11635         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11636
11637         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11638         L Moshier.
11639
11640 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11641
11642         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11643         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11644
11645 2001-09-18  Andreas Schwab  <schwab@suse.de>
11646
11647         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11648         list, now that l_scope is a pointer.
11649
11650         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11651         scope list.
11652
11653 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11654
11655         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11656         (elf_machine_rela_relative): Add a missing declaration.
11657
11658 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11659
11660         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11661         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11662         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11663         ldd-rewrite scripts.
11664
11665 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11666
11667         * elf/ldd.bash.in: Update copyright message.
11668
11669 2001-09-17  H.J. Lu  <hjl@gnu.org>
11670
11671         * hurd/hurdmalloc.c (bcopy): Removed.
11672         (realloc): Replace bcopy with memcpy.
11673         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11674         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11675         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11676
11677         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11678         (gethostbyaddr): Likewise.
11679         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11680
11681 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11682
11683         * sysdeps/gnu/eval.c: Removed.
11684
11685 2001-09-18  Andreas Jaeger  <aj@suse.de>
11686
11687         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11688         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11689
11690         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11691         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11692
11693         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11694         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11695
11696 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11697
11698         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11699         nrules value.
11700
11701 2001-09-14  H.J. Lu  <hjl@gnu.org>
11702
11703         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11704
11705 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11706
11707         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11708         Patch by Florian La Roche <laroche@redhat.com>.
11709
11710         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11711
11712         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11713         ETHER_CRC_LEN.
11714
11715 2001-09-14  Andreas Schwab  <schwab@suse.de>
11716
11717         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11718         Sumner <bls@sgi.com>.
11719         * posix/execlp.c: Likewise.
11720
11721 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11722
11723         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11724         is already found earlier in the search scope.
11725
11726 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11727
11728         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11729         filter.
11730
11731 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11732
11733         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11734
11735 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11736
11737         * config.h.in: Enforce optimization to be used.
11738         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11739         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11740         * posix/Makefile (annexc-CFLAGS): Define to -O.
11741         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11742
11743 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11744
11745         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11746         Patch by Stephan Kulow.
11747
11748 2001-09-08  Ben Collins  <bcollins@debian.org>
11749
11750         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11751         usage of RESOLVE() (r_type, not reloc->r_type).
11752
11753 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11754
11755         * elf/dl-object.c: Avoid allocating extra memory block for name.
11756         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11757         allocated separately.
11758         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11759
11760 2001-09-08  H.J. Lu  <hjl@gnu.org>
11761
11762         * po/zh_TW.po: Fix a typo.
11763
11764 2001-09-07  Tom Rix  <trix@redhat.com>
11765
11766         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11767
11768 2001-08-26  Tom Rix  <trix@redhat.com>
11769
11770         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11771         command line options.
11772         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11773         * sysdeps/unix/sysv/aix/start.c: Removed.
11774         * sysdeps/unix/sysv/aix/start-libc.c: New file.
11775         * sysdeps/unix/sysv/aix/init-first.c: New file.
11776         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11777
11778 2001-09-08  Ben Collins  <bcollins@debian.org>
11779
11780         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
11781         * sysdeps/generic/dl-machine.h: Likewise.
11782         * sysdeps/hppa/dl-fptr.c: Likewise.
11783         * sysdeps/ia64/dl-fptr.c: Likewise.
11784         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11785         * sysdeps/mips/dl-machine.h: Likewise.
11786         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11787         * sysdeps/powerpc/dl-machine.c: Likewise.
11788
11789 2001-09-07  Ben Collins  <bcollins@debian.org>
11790
11791         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
11792
11793         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
11794
11795 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11796
11797         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
11798         dependencies if necessary.
11799
11800         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
11801         loaded directly) determine length if l_initfini list by iterating
11802         over its elements.  Minor optimizations.
11803         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
11804         for dependency objects.
11805         If object was already loaded check whether any of the dependencies
11806         is already on the relocation dependency list.  If yes, remove the
11807         latter.  Minor optimizations.
11808         * elf/dl-lookup.c (add_dependency): Add check for self reference of
11809         maps here.  Search l_initfini list only if the object was loaded
11810         directly and not only as a dependency.
11811         (_dl_lookup_symbol): Add relocation dependency also if object
11812         is not in global scope.  Remove test for self-reference here.
11813         (_dl_lookup_versioned_symbol): Likewise.
11814         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
11815         element of first name record.
11816         * elf/loadtest.c: Add some more test to recognize early if an object
11817         wasn't unloaded.
11818         * elf/Makefile: Add rules to build and run reldep5.
11819         * elf/reldep5.c: New file.
11820         * elf/reldepmod5.c: New file.
11821         * elf/reldepmod6.c: New file.
11822
11823         * elf/reldep2.c: Fix typo.
11824
11825 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
11826
11827         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
11828         elements.  Change l_scope to be a pointer only.
11829         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
11830         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
11831         here add searchlist of newly open file to the dependency's scope.
11832         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
11833         only searchlist from its scope.  Free own scope array if necessary.
11834         * elf/Makefile (tests): Add dblload and dblunload now.
11835
11836 2001-09-06  Andreas Jaeger  <aj@suse.de>
11837
11838         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
11839         Stephen L Moshier.
11840
11841 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
11842
11843         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
11844         they both fail.
11845         * elf/dblload.c: New file.
11846         * elf/dblloadmod1.c: New file.
11847         * elf/dblloadmod2.c: New file.
11848         * elf/dblloadmod3.c: New file.
11849         * elf/dblunload.c: New file.
11850
11851 2001-09-04  Richard Henderson  <rth@redhat.com>
11852
11853         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
11854         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
11855
11856 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
11857
11858         Correct very misleading message for error in failed runtime relocation.
11859         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
11860         place of the error.
11861         (_dl_signal_cerror): Likewise.
11862         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
11863         * elf/dl-close.c: Likewise.
11864         * elf/dl-deps.c: Likewise.
11865         * elf/dl-load.c: Likewise.
11866         * elf/dl-lookup.c: Likewise.
11867         * elf/dl-open.c: Likewise.
11868         * elf/dl-reloc.c: Likewise.
11869         * elf/dl-sym.c: Likewise.
11870         * elf/dl-version.c: Likewise.
11871         * sysdeps/generic/dl-sysdep.c: Likewise.
11872
11873 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11874
11875         * iconv/strtab.c (strtabinit): Initialize null Strent.
11876         (newstring): Move len == 0 handling...
11877         (strtabadd): ...here.
11878         If len == 1, return null Strent.
11879         When inserting a suffix of an existing string, check if
11880         it is not equal to some suffix already recorded.
11881         Copy left and right members over if adding longer string.
11882
11883 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11884
11885         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
11886
11887         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
11888         (__syscall_gethostname): Add prototype.
11889
11890 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
11891
11892         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
11893
11894 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
11895
11896         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
11897
11898 2001-08-27  Roland McGrath  <roland@frob.com>
11899
11900         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
11901         short, copy that much into NAME anyway before returning error.
11902
11903 2001-09-01  Richard Henderson  <rth@redhat.com>
11904
11905         * sysdeps/alpha/elf/Dist: Remove file.
11906         * sysdeps/alpha/elf/Makefile: Remove file.
11907         * sysdeps/alpha/elf/crtbegin.S: Remove file.
11908         * sysdeps/alpha/elf/crtend.S: Remove file.
11909         * sysdeps/alpha/elf/initfini.c: New file.
11910
11911 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
11912
11913         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
11914         * iconv/tst-iconv3.c: Likewise.
11915
11916 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
11917
11918         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
11919
11920 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
11921
11922         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
11923         export it.
11924         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
11925         * iconv/iconv_prog.c (insert_cache): New function.
11926         (print_known_names): If cache is used call insert_cache to use the
11927         information from the cache [PR libc/2509].
11928
11929 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
11930
11931         * time/strptime.c (strptime_internal): Recognize 'l' format and
11932         handle it like 'I' for symmetry with strftime.
11933
11934 2001-08-31  Richard Henderson  <rth@redhat.com>
11935
11936         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
11937         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
11938         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
11939         (print_statistics): Make scalar unsigned long long.
11940         * sysdeps/alpha/hp-timing.h: New file.
11941
11942 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
11943
11944         * stdio-common/perror.c (perror): Save errno early, pass it
11945         down to perror_internal.
11946         (perror_internal): Add errnum argument.
11947
11948 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
11949
11950         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
11951         Don't add old memory content for R_ALPHA_REFQUAD.
11952
11953 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
11954
11955         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
11956         memory correctly.
11957
11958         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
11959         instead of open, __close instead of close, __getpagesize instead
11960         of getpagesize.
11961
11962         * string/argz-stringify.c (__argz_stringify): Use __strnlen
11963         instead of strnlen.
11964         * include/string.h (strndupa): Redefine here to use __strnlen
11965         instead of strnlen.
11966         * string/strndup.c (__strndup): Use __strnlen not strnlen.
11967
11968         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
11969         connected).
11970
11971 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
11972
11973         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
11974         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
11975         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
11976         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
11977         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
11978         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
11979         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
11980
11981 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
11982
11983         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
11984
11985 2001-08-30  Andreas Jaeger  <aj@suse.de>
11986
11987         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
11988         contributed Stephen L Moshier.
11989
11990 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
11991
11992         * sunrpc/etc.rpc (sgi_fam): Add.
11993
11994 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
11995
11996         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
11997
11998 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
11999
12000         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12001         first is from a previous call.
12002         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12003
12004 2001-08-29  Andreas Schwab  <schwab@suse.de>
12005
12006         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12007
12008 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12009
12010         * config.make.in (INSTALL_SCRIPT): Define.
12011         * Makeconfig (INSTALL_SCRIPT): Define.
12012         * Makerules (do-install-script): New macro to install scripts using
12013         INSTALL_SCRIPT.
12014         (install-bin-script): New rule to install scripts with
12015         do-install-script.
12016         (install-bin-script-nosubdir): New rule.
12017         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12018         (distinfo-vars): Add $(install-bin-script).
12019         * Rules (others): Likewise.
12020         * Makefile (glibcbug): Install with install-bin-script.
12021         * debug/Makefile (xtrace): Likewise.
12022         (catchsegv): Likewise.
12023         * elf/Makefile (ldd): Likewise.
12024         * malloc/Makefile (mtrace): Likewise.
12025         * timezone/Makefile (tzselect): Likewise.
12026
12027 2001-08-29  H.J. Lu  <hjl@gnu.org>
12028
12029         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12030         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12031         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12032
12033 2001-08-29  Andreas Schwab  <schwab@suse.de>
12034
12035         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12036
12037 2001-08-28  H.J. Lu  <hjl@gnu.org>
12038
12039         * Makeconfig (combreloc-LDFLAGS): New variable.
12040         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12041         * config.make.in (have-z-combreloc): New variable.
12042         * configure.in: Substitute libc_cv_z_combreloc.
12043
12044 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12045
12046         * po/sv.po: Update from translation team.
12047         * po/fr.po: Likewise.
12048         * po/da.po: Likewise.
12049
12050 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12051
12052         * Makerules: Fix a typo: MD% -> MD5.
12053
12054 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12055
12056         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12057         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12058
12059 2001-08-28  Andreas Jaeger  <aj@suse.de>
12060
12061         * manual/libc-texinfo.sh: Add entry about free manuals.
12062
12063         * manual/contrib.texi (Contributors): Fix cross reference.
12064
12065         * manual/libc.texinfo (Copying): Include freemanuals.
12066
12067         * manual/Makefile (appendices): Add freemanuals.
12068
12069         * manual/freemanuals.texi: New file.
12070         Patch by Brian Youmans <3diff@gnu.org>.
12071
12072         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12073         smaller table.
12074
12075         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12076         table on separate page.
12077         Patch by Brian Youmans <3diff@gnu.org>.
12078
12079 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12080
12081         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12082         the connection went down after we first used it try to connect
12083         again and resend the message before printing to the console.
12084         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12085
12086 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12087
12088         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12089         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12090         bit set.
12091
12092 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12093
12094         * iconv/strtab.c (searchstring): Use correct length for comparison.
12095         (strtabadd): Account total size correct if new string has old string as
12096         substring.
12097
12098 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12099
12100         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12101
12102 2001-08-27  Andreas Jaeger  <aj@suse.de>
12103
12104         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12105
12106         * math/libm-test.inc (j0_test): Add extra tests.
12107         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12108         not x, in Hankel approximation.
12109         Patches by Stephen L Moshier.
12110
12111 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12112
12113         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12114         link_map.
12115
12116         * configure.in: Fix test for .rela.dyn section.
12117
12118         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12119
12120 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12121
12122         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12123         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12124         Pass type_class to _dl_lookup_*.
12125         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12126         Pass around just type_class instead of noexec, noplt pair.
12127         (_dl_lookup_versioned_symbol): Likewise.
12128         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12129         noexec, noplt pair.
12130         (_dl_lookup_versioned_symbol_skip): Likewise.
12131         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12132         * elf/do-lookup.h (do_lookup): Likewise.
12133         * include/link.h (struct link_map): Replace noexec and noplt fields
12134         in l_lookup_cache with type_class field.
12135         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12136         ELF_RTYPE_CLASS_COPY): Define.
12137         Adjust prototypes for _dl_lookup_symbol and
12138         _dl_lookup_versioned_symbol.
12139         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12140         elf_machine_lookup_noexec_p): Remove.
12141         (elf_machine_type_class): Define.
12142         * sysdeps/arm/dl-machine.h: Likewise.
12143         * sysdeps/hppa/dl-machine.h: Likewise.
12144         * sysdeps/cris/dl-machine.h: Likewise.
12145         * sysdeps/i386/dl-machine.h: Likewise.
12146         * sysdeps/ia64/dl-machine.h: Likewise.
12147         * sysdeps/m68k/dl-machine.h: Likewise.
12148         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12149         * sysdeps/mips/dl-machine.h: Likewise.
12150         * sysdeps/powerpc/dl-machine.h: Likewise.
12151         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12152         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12153         * sysdeps/sh/dl-machine.h: Likewise.
12154         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12155         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12156
12157 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12158
12159         * manual/message.texi (Advanced gettext functions): Change
12160         description of plural forms for Slovak.
12161         Reported by Marcel Telka <marcel@telka.sk>.
12162
12163         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12164         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12165
12166 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12167
12168         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12169         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12170
12171 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12172
12173         * include/link.h (struct link_map): Add l_lookup_cache element.
12174         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12175         (RESOLVE_MAP): Likewise.
12176         (_dl_relocate_object): Remove cache initialization.
12177         * elf/dl-lookup.c: Rip out cache handling code.
12178         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12179         declarations.
12180
12181         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12182         remove some __builtin_expect.
12183         (_dl_lookup_versioned_symbol): Likewise.
12184
12185         * config.h.in: Add HAVE_Z_COMBRELOC.
12186         * configure.in: Add test for -z combreloc.
12187
12188         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12189         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12190         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12191         case to almost no code.
12192
12193 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12194
12195         * po/tr.po: Update from translation team.
12196
12197 2001-08-24  Andreas Jaeger  <aj@suse.de>
12198
12199         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12200         make clean works.
12201
12202 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12203
12204         * elf/rtld.c (print_statistics): Printf % after percent values.
12205         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12206
12207         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12208         don't have to compute the hash value and initialize current_value.
12209         Move reference_name variable to where it is needed.
12210         (_dl_lookup_versioned_symbol): Likewise.
12211
12212 2001-08-24  Roland McGrath  <roland@frob.com>
12213
12214         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12215         Just test that strerror returns non-null for a few errno codes.
12216
12217 2001-08-23  Roland McGrath  <roland@frob.com>
12218
12219         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12220         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12221
12222         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12223
12224         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12225         __mach_reply_port.
12226
12227 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12228
12229         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12230         returns NULL.
12231
12232         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12233         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12234         doesn't do it.
12235         * elf/rtld.c: Include <sys/param.h>.
12236         * elf/dl-reloc.c: Likewise.
12237
12238 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12239
12240         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12241         empty to prevent junk from being generated.
12242         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12243
12244 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12245
12246         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12247         records.  Rename endrel to relative, initialize it to r, and use it
12248         in elf_machine_rel_relative calls.  Point r after relative relocs.
12249
12250 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12251
12252         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12253         of R_386_NONE.
12254
12255 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12256
12257         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12258         necessary.  Undefine newly defined macros at the end.
12259         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12260         Rename from elf_machine_rel_relative.
12261         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12262         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12263         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12264         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12265         Likewise.
12266         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12267         Likewise.
12268         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12269         Fix argument types.
12270         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12271         Fix argument types.
12272         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12273         Likewise.  Fix argument types.
12274         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12275         Likewise.  Fix argument types.
12276         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12277         Fix argument types.
12278         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12279         ElfW(Rel) in argument.
12280         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12281         function.
12282
12283 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12284
12285         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12286
12287 2001-08-24  Andreas Jaeger  <aj@suse.de>
12288
12289         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12290         Stephen L Moshier <moshier@mediaone.net>.
12291
12292 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12293
12294         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12295         first if RELCOUNT is set.
12296
12297         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12298         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12299         elf_machine_rel_relative.
12300         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12301         Minor optimizations.
12302         * sysdeps/arm/dl-machine.h: Likewise.
12303         * sysdeps/cris/dl-machine.h: Likewise.
12304         * sysdeps/hppa/dl-machine.h: Likewise.
12305         * sysdeps/i386/dl-machine.h: Likewise.
12306         * sysdeps/ia64/dl-machine.h: Likewise.
12307         * sysdeps/m68k/dl-machine.h: Likewise.
12308         * sysdeps/mips/dl-machine.h: Likewise.
12309         * sysdeps/powerpc/dl-machine.h: Likewise.
12310         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12311         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12312         * sysdeps/sh/dl-machine.h: Likewise.
12313         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12314         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12315
12316 2001-08-23  Roland McGrath  <roland@frob.com>
12317
12318         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12319
12320         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12321         sysdeps/mach version.  Implement counting ("recursive") mutexes
12322         on top of cthreads mutexes.
12323         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12324
12325         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12326         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12327         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12328         __libc_clean_end): Define these to call the cleanup function after
12329         normal exit when they're supposed to.
12330
12331         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12332         Take new first arg DOIT, a boolean saying whether to really install
12333         any cleanup handler.
12334         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12335         (__libc_cleanup_end): Likewise.
12336         * sysdeps/generic/bits/libc-lock.h: Same changes.
12337         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12338         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12339         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12340         Likewise.
12341         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12342         * sysdeps/generic/bits/stdio-lock.h
12343         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12344
12345 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12346
12347         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12348
12349 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12350
12351         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12352         functions.
12353         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12354         lookups in cache.
12355         (_dl_lookup_versioned_symbol): Likewise.
12356         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12357         relocation lookup.
12358         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12359         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12360         (lookup_cache, lookup_cache_versioned): Add declarations.
12361
12362 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12363
12364         * stdlib/tst-random.c (main): Swap parameters in fail call.
12365         Patch by Pete Bevin <pete@petebevin.com>.
12366
12367 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12368
12369         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12370
12371 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12372
12373         * malloc/obstack.c: Indent preprocessor directives.
12374         Patch by Jim Meyering <meyering@ascend.com>.
12375
12376         * po/ja.po: Update from translation team.
12377
12378 2001-08-23  Roland McGrath  <roland@frob.com>
12379
12380         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12381
12382         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12383         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12384
12385 2001-08-22  Roland McGrath  <roland@frob.com>
12386
12387         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12388         __libc_lock_define_recursive.
12389         * elf/dl-open.c: Don't declare it here any more.
12390         * elf/dl-close.c: Likewise.
12391         * elf/dl-lookup.c: Likewise.
12392         * elf/dl-iteratephdr.c: Likewise.
12393         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12394         __libc_lock_unlock_recursive.
12395         * elf/dl-close.c (_dl_close): Likewise
12396         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12397         * elf/dl-open.c (_dl_open): Likewise
12398
12399         * sysdeps/generic/bits/libc-lock.h
12400         (__libc_lock_define_recursive): New macro.
12401         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12402         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12403         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12404
12405         * conform/conformtest.pl (checknamespace): Sort the output list.
12406
12407         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12408         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12409         definitions conditional on [__USE_XOPEN].
12410
12411         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12412         these unconditionally, not only use [__USE_BSD], so as to match
12413         the sysdeps/unix/sysv/linux files.
12414
12415 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12416
12417         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12418         avoid warnings.
12419
12420         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12421         DL_LOOKUP_ADDRESS.
12422
12423 2001-08-22  Roland McGrath  <roland@frob.com>
12424
12425         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12426         conditionalization of sa_handler/sa_sigaction member types to
12427         match the sysdeps/unix/sysv/linux file.
12428
12429 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12430
12431         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12432         symbol sizes a bit better.
12433
12434         * sysdeps/ia64/strncpy.S: Complete rewrite.
12435         Contributed by Jakub Jelinek <jakub@redhat.com>.
12436
12437         * string/stratcliff.c (main): Add strncpy test.
12438
12439 2001-08-22  Roland McGrath  <roland@frob.com>
12440
12441         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12442         and don't declare unsetenv or _environ directly.
12443         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12444
12445 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12446
12447         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12448         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12449         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12450         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12451         test for cmsg struct size.
12452
12453 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12454
12455         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12456         Rename __argc to ___argc in prototypes to avoid compatibility
12457         problems with systems that reserve the identifier "__argc".
12458         Similarly for __argv.
12459
12460 2001-08-21  Roland McGrath  <roland@frob.com>
12461
12462         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12463
12464         * mach/Makefile (tests): Removed.
12465         * mach/hello.c: File removed.
12466
12467 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12468
12469         * po/sv.po: Update from translation team.
12470
12471         * stdio-common/vfscanf.c: Fix handling of %l[].
12472         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12473
12474         * libio/Makefile (tests): Add tst-sscanf.
12475         * libio/tst-sscanf.c: New file.
12476
12477         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12478         * malloc/mtrace.c (tr_where): dli_sname always points to a
12479         non-empty string if != NULL.
12480         Reported by Tim Janik <timj@gtk.org>.
12481
12482 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12483
12484         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12485         buf.  Free resources on failure.
12486         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12487         (makefd_xprt): Likewise.
12488         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12489         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12490         * sunrpc/auth_unix.c (authunix_create): Likewise.
12491
12492 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12493
12494         * string/strnlen.c: Remove.
12495         * sysdeps/generic/strnlen.c: New file.
12496         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12497
12498 2001-08-21  Roland McGrath  <roland@frob.com>
12499
12500         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12501         as a macro, not an extern inline function.
12502
12503         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12504         * Versions.def (libc): Add GLIBC_2.2.5 set.
12505         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12506         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12507
12508 2001-08-20  Roland McGrath  <roland@frob.com>
12509
12510         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12511         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12512
12513 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12514
12515         * string/bits/string2.h: Remove strnlen optimization here.
12516         * sysdeps/i386/i486/bits/string.h: Add it here.
12517
12518 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12519
12520         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12521
12522 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12523
12524         * po/gl.po: Update from translation team.
12525
12526 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12527
12528         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12529         * misc/err.c (convert_and_print): Likewise.
12530
12531         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12532         function calls.
12533
12534 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12535
12536         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12537         change of the gregset_t type.
12538         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12539
12540 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12541
12542         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12543
12544 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12545
12546         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12547
12548         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12549
12550 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12551
12552         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12553         before calling the cthreads initialization code.
12554
12555 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12556
12557         * argp/argp-help.c: Fix two problems introduced in last change.
12558
12559         * include/dirent.h: Include <dirstream.h> first.
12560
12561 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12562
12563         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12564
12565         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12566         * sunrpc/xdr_rec.c: Likewise.
12567         * sunrpc/xdr_mem.c: Likewise.
12568         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12569         * sunrpc/rpc_cmsg.c: Likewise.
12570         * sunrpc/getrpcport.c (getrpcport): Likewise.
12571         * sunrpc/clnt_simp.c (callrpc): Likewise.
12572         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12573         * string/envz.c: Likewise.
12574
12575         * po/ko.po: Update from translation team.
12576
12577         * argp/argp-help.c: Handle wide oriented stderr stream.
12578
12579 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12580
12581         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12582         __builtin_expect.
12583
12584         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12585
12586         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12587         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12588         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12589
12590         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12591
12592         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12593
12594         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12595
12596         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12597         wchar_t for function declarations and defintions.
12598
12599         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12600         Define suseconds_t if it hasn't happened yet.
12601
12602         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12603
12604         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12605
12606         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12607         <stddef.h>.
12608
12609         * conform/data/stddef.h-data: Remove wint_t.
12610
12611         * conform/conformtest.pl: Change namespace test to take #undef
12612         lines into account.
12613
12614         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12615
12616         * conform/data/sys/socket.h-data: Add sockatmark.
12617
12618 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12619
12620         * io/fts.c: Update from recent BSD source.
12621
12622 2001-08-17  Roland McGrath  <roland@frob.com>
12623
12624         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12625         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12626         Likewise.
12627
12628 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12629
12630         * locale/duplocale.c (__duplocale): Also initialize the special
12631         __ctype_* elements.
12632
12633         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12634
12635 2001-08-17  Andreas Jaeger  <aj@suse.de>
12636
12637         * misc/getpass.c: Include wchar.h for prototypes.
12638         * malloc/obstack.c: Likewise.
12639
12640 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12641
12642         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12643
12644         * wcsmbs/wcscoll.c: Also define __wcscoll.
12645         * include/wchar.h: Declare __wcscoll.
12646
12647         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12648         * libio/vwprintf.c: Likewise.
12649         * libio/wprintf.c: Likewise.
12650
12651         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12652
12653 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12654
12655         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12656         instead of mbrtowc.
12657         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12658         wcslen, and __wcscoll instead of wcscoll.
12659
12660         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12661
12662         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12663         __getuid instead of getuid.
12664
12665         * stdio-common/perror.c (perror): Use __close instead of close.
12666         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12667         * libio/freopen.c (freopen): Likewise.
12668         * libio/freopen64.c (freopen64): Likewise.
12669
12670         * libio/tst-ungetwc2.c (main): Define str const.
12671
12672         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12673         * libio/fwprintf.c: Also define __fwprintf.
12674         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12675         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12676         * assert/assert-perr.c: Likewise.
12677         * assert/assert.c: Likewise.
12678         * gmon/gmon.c: Likewise.
12679         * inet/rcmd.c: Likewise.
12680         * malloc/obstack.c: Likewise.
12681         * misc/err.c: Likewise.
12682         * misc/error.c: Likewise.
12683         * misc/getpass.c: Likewise.
12684         * posix/getopt.c: Likewise.
12685         * resolv/res_hconf.c: Likewise.
12686         * stdio-common/perror.c: Likewise.
12687         * stdio-common/psignal.c: Likewise.
12688         * stdlib/fmtmsg.c: Likewise.
12689         * sunrpc/auth_unix.c: Likewise.
12690         * sunrpc/clnt_perr.c: Likewise.
12691         * sunrpc/clnt_tcp.c: Likewise.
12692         * sunrpc/clnt_udp.c: Likewise.
12693         * sunrpc/clnt_unix.c: Likewise.
12694         * sunrpc/svc_simple.c: Likewise.
12695         * sunrpc/svc_tcp.c: Likewise.
12696         * sunrpc/svc_udp.c: Likewise.
12697         * sunrpc/svc_unix.c: Likewise.
12698         * sunrpc/xdr.c: Likewise.
12699         * sunrpc/xdr_array.c: Likewise.
12700         * sunrpc/xdr_rec.c: Likewise.
12701         * sunrpc/xdr_ref.c: Likewise.
12702         * sysdeps/generic/wordexp.c: Likewise.
12703
12704         * po/it.po: Update from translation team.
12705
12706         * misc/err.c: Handle wide oriented stderr stream.
12707
12708 2001-08-14  Tom Rix  <trix@redhat.com>
12709
12710         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12711         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12712
12713 2001-08-13  Tom Rix  <trix@redhat.com>
12714
12715         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12716         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12717         and __intptr_t.
12718
12719 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12720
12721         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12722         Store the access registers to the ucontext structure.
12723         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12724         Likewise.
12725
12726         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12727         Load the access registers from the ucontext structure.
12728         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12729         Likewise.
12730
12731         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12732         offsets to the new ucontext layout.
12733         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12734
12735         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12736         of the ucontext structure.
12737         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12738
12739 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12740
12741         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12742         (error_at_line): Likewise.
12743
12744         * stdio-common/perror.c (perror): Implement according to standard.
12745         The stream orientation must not be changed if the stream was not
12746         oriented before the call.
12747         * stdio-common/Makefile (tests): Add tst-perror.
12748         * stdio-common/tst-perror.c: New file.
12749
12750
12751 See ChangeLog.12 for earlier changes.