* sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-17  Roland McGrath  <roland@redhat.com>
2
3         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
4         (passwd2des): Define it as an alias.
5         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
6
7 2002-09-12  Bruno Haible  <bruno@clisp.org>
8
9         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
10         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
11
12         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
13         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
14
15 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
16
17         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
18         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
19         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
20         PowerPC64 does not have separate 64-bit syscalls.
21
22 2002-09-16  Roland McGrath  <roland@redhat.com>
23
24         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
25
26         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
27         New macro.
28
29         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
30
31         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
32         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
33         * sysdeps/generic/_exit.c: Likewise.
34
35 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
36
37         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
38
39         * elf/rtld.c (struct dl_start_final_info): New.
40         (_dl_start_final): Change second argument to struct
41         dl_start_final_info *.  Set start_time from info.
42         (_dl_start): Remove bootstrap_map variable, add info.
43         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
44         store HP_TIMING_NOW result into info.start_time.
45
46 2002-09-16  Andreas Jaeger  <aj@suse.de>
47
48         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
49         to _Exit.
50         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
51
52 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
53
54         * sysdeps/powerpc/abort-instr.h: New file.
55
56 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
57
58         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
59         comment.
60
61         * test-skeleton.c (main): Provide more information in case waitpid
62         fails.
63
64         * include/unistd.h: Declare __exit_thread.
65         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
66         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
67         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
68         * sysdeps/unix/sysv/linux/_exit.c: New file.
69         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
70         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
71         Add exit-thread.
72
73         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
74
75 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
76
77         * sysdeps/i386/dl-machine.h (elf_machine_rel)
78         (case R_386_TLS_DTPMOD32): Don't use addend.
79         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
80         (elf_machine_rela): Add support for TLS relocs.
81
82 2002-09-14  Roland McGrath  <roland@redhat.com>
83
84         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
85
86 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
87
88         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
89         specific asm macros for multiple percision integer math.
90
91 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
92
93         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
94         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
95         Remove per-machine conditionals for FLAG_* cases.
96         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
97         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
98         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
99
100 2002-09-10  Alan Modra <amodra@bigpond.net.au>
101
102         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
103         defined in entry.h.
104         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
105         lowest address for profiling in  __monstartup call.
106         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
107
108 2002-09-14  Roland McGrath  <roland@redhat.com>
109
110         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
111         instead of __NR_pread.
112         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
113         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
114         instead of __NR_pwrite.
115         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
116
117 2002-09-13  Roland McGrath  <roland@redhat.com>
118
119         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
120
121 2002-09-13  Andreas Jaeger  <aj@suse.de>
122
123         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
124         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
125
126 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
127
128         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
129
130 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
131
132         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
133         reading the headers.
134
135 2002-09-12  Roland McGrath  <roland@redhat.com>
136
137         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
138         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
139         find the ELF header.
140
141         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
142         executable if needed, in case it's actually a shared object.
143
144 2002-09-11  Roland McGrath  <roland@redhat.com>
145
146         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
147         l_map_start to adjust l_tls_initimage.
148
149         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
150         when using h_errno and it's not set to NETDB_INTERNAL.
151         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
152
153         * Makefile ($(common-objpfx)testrun.sh): New target.
154         (others): Depend on it.
155         (postclean-generated): Append it.
156
157         * nss/bug-erange.c: New file.
158         * nss/Makefile (tests): Add it.
159
160         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
161         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
162
163         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
164         strncmp, keeps the code smaller for a non-performance-critical case.
165
166         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
167         no longer wrongly matches arbitrary prefixes of NAME.
168         Reported by Jakub Jelinek <jakub@redhat.com>.
169
170 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
171
172         * posix/bug-regex11.c (tests): New array.
173         (main): Rewritten to run more different tests.
174
175 2002-09-10  Roland McGrath  <roland@redhat.com>
176
177         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
178         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
179         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
180
181         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
182         well so we don't get it declared by include/math.h's hidden_proto.
183         Then do hidden_proto for __isnanf locally so hidden_def works right.
184
185         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
186         a cast to turn nl_langinfo return value into an integer.
187
188 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
189
190         * posix/regexec.c (build_trtable): Fix the destination of
191         newline to prevent wrong states from overwriting.
192         Append break statements to optimization.
193
194 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
195
196         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
197         (build_range_exp): Add castings to strlen invocations.
198         (build_collating_symbol): Restore the type of characters from "char"
199         to "unsigned char", and supplement castings.
200         (build_collating_symbol): Likewise.
201         (build_equiv_class): Likewise.
202         (build_charclass): Likewise.
203         (seek_collating_symbol_entry): Likewise.
204         (parse_bracket_exp): Likewise.
205         (build_word_op): Supplement a casting.
206         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
207         (re_string_allocate): Fix castings.
208         (re_string_construct): Likewise.
209         (re_string_construct_common): Likewise.
210         (re_string_realloc_buffers): Likewise.
211         (build_wcs_buffer): Likewise.
212         (build_wcs_upper_buffer): Likewise.
213         (re_string_skip_chars): Likewise.
214         (re_string_reconstruct): Likewise.
215         * posix/regex_internal.h: Restore the type of characters in
216         re_string_t and bracket_elem_t from "char" to "unsigned char".
217         (re_string_elem_size_at): Fix castings.
218         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
219         (transit_state_bkref_loop): Restore the type of characters from
220         "char" to "unsigned char", and append a cast to "char*" pointer in
221         array subscript.
222         (check_node_accept_bytes): Likewise.
223         (find_collation_sequence_value): Likewise.
224
225 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
226
227         * sysdeps/mips/memcpy.S: New file.
228         * sysdeps/mips/memset.S: New file.
229         * sysdeps/mips/fpu/e_sqrt.c:  New file.
230         * sysdeps/mips/fpu/e_sqrtf.c: New file.
231
232         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
233         functional before. Also removed all SHLIB_COMPAT stuff.
234         * fpu/fegetenv.c: Likewise.
235         * fpu/fesetenv.c:: Likewise.
236         * fpu/feupdateenv.c: Likewise.
237         * fpu/fgetexcptflg.c: Likewise.
238         * fpu/fraiseexcpt.c: Likewise.
239
240         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
241
242 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
243
244         * include/math.h (__finite_internal, __finitef_internal,
245         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
246         (isfinite): Remove.
247         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
248         __isinfl, __isnanl): Add hidden_proto.
249         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
250         libm_hidden_proto.
251         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
252         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
253         __is{inf,nan} calls.
254         * stdio-common/printf_size.c (printf_size): Likewise.
255         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
256         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
257         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
258         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
259         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
260         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
261         (__finite): Add hidden_def.
262         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
263         (__finitef): Add hidden_def.
264         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
265         (__finitel): Add hidden_def.
266         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
267         hidden_def.
268         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
269         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
270         libm_hidden_def.
271         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
272         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
273         hidden_def.
274         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
275         (__isinfl): Remove INTDEF.
276         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
277         hidden_def.
278         (__isnanl): Remove INTDEF.
279         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
280         libm_hidden_def.
281         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
282         instead of sin and cos.
283         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
284         Add hidden_def.
285         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
286         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
287         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
288         libm_hidden_def.
289         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
290         Add hidden_def.
291         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
292         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
293         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
294         libm_hidden_def.
295         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
296         libm_hidden_def.
297         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
298         Add hidden_def.
299         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
300         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
301         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
302         libm_hidden_def.
303         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
304         __finitel_internal): Remove aliases.
305         (__finite, __finitef, __finitel): Add hidden_def.
306         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
307         __isnanl_internal): Remove aliases.
308         (__isnan, __isnanf, __isnanl): Add hidden_def.
309         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
310         __isinfl_internal): Remove aliases.
311         (__isinf, __isinff, __isinfl): Add hidden_def.
312         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
313         __fpclassifyl): Add libm_hidden_def.
314         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
315         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
316         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
317         (hidden_defx): Define and use.
318         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
319         libm_hidden_def.
320         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
321         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
322         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
323         Remove INTDEF.
324         (__isnan, __isnanf): Add hidden_def.
325         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
326         (__finitel): Add libm_hidden_def.
327         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
328
329         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
330         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
331         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
332         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
333         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
334         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
335         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
336         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
337         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
338         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
339         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
340         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
341         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
342         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
343         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
344         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
345         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
346         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
347         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
348         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
349         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
350         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
351         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
352         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
353         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
354         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
355         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
356
357 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
358
359         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
360
361 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
362
363         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
364         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
365
366 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
367
368         * string/stratcliff.c: Some more strncpy tests.
369         Patch by Daniel Jacobowitz <drow@mvista.com>.
370
371 2002-09-08  Roland McGrath  <roland@redhat.com>
372
373         * resolv/resolv.h: Include <sys/types.h> for u_long even in
374         the [__need_res_state] case.
375         Reported by Bruno Haible <bruno@clisp.org>.
376
377 2002-09-04  Bruno Haible  <bruno@clisp.org>
378
379         * sysdeps/generic/bits/ustat.h: Comment fix.
380         * io/sys/sendfile.h: Comment fix.
381         * sysdeps/posix/pread.c: Comment fix.
382         * sysdeps/posix/pread64.c: Comment fix.
383         * sysdeps/posix/pwrite.c: Comment fix.
384         * sysdeps/posix/pwrite64.c: Comment fix.
385
386 2002-09-06  Roland McGrath  <roland@redhat.com>
387
388         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
389         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
390         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
391         (_UTSNAME_MACHINE_LENGTH): Likewise.
392         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
393
394 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
395
396         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
397         test for filesystem type name of mount points.
398
399         * include/errno.h: Use errno definition with __thread for now only
400         in libc and ld.so.
401
402         * test-skeleton.c (main): Improve error message for unexpected
403         signal case.
404
405 2002-09-05  Roland McGrath  <roland@redhat.com>
406
407         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
408         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
409
410 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
411
412         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
413         case of failure.
414
415 2002-09-04  Bruno Haible  <bruno@clisp.org>
416
417         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
418         sigset_get_old_mask): Turn into inline functions.
419         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
420         sigset_get_old_mask): Likewise.
421         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
422         sigset_get_old_mask): Likewise.
423         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
424         syntax.
425
426         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
427
428         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
429         default definitions.
430         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
431         _sys_nerr_internal instead of _sys_nerr.
432
433         * nscd/connections.c (handle_request): Declare CALLER inside #if.
434
435 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
436
437         * sysdeps/powerpc/__longjmp.S: Moved to...
438         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
439         * sysdeps/powerpc/add_n.S: Moved to...
440         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
441         * sysdeps/powerpc/addmul_1.S: Moved to...
442         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
443         * sysdeps/powerpc/atomicity.h: Moved to...
444         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
445         * sysdeps/powerpc/backtrace.c: Moved to...
446         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
447         * sysdeps/powerpc/bp-asm.h: Moved to...
448         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
449         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
450         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
451         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
452         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
453         * sysdeps/powerpc/dl-machine.c: Moved to...
454         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
455         * sysdeps/powerpc/dl-machine.h: Moved to...
456         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
457         * sysdeps/powerpc/dl-start.S: Moved to...
458         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
459         * sysdeps/powerpc/gprrest0.S: Moved to...
460         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
461         * sysdeps/powerpc/gprrest1.S: Moved to...
462         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
463         * sysdeps/powerpc/gprsave0.S: Moved to...
464         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
465         * sysdeps/powerpc/gprsave1.S: Moved to...
466         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
467         * sysdeps/powerpc/lshift.S: Moved to...
468         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
469         * sysdeps/powerpc/memset.S: Moved to...
470         * sysdeps/powerpc/powerpc32/memset.S: ...here.
471         * sysdeps/powerpc/mul_1.S: Moved to...
472         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
473         * sysdeps/powerpc/ppc-mcount.S: Moved to...
474         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
475         * sysdeps/powerpc/register-dump.h: Moved to...
476         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
477         * sysdeps/powerpc/rshift.S: Moved to...
478         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
479         * sysdeps/powerpc/setjmp.S: Moved to...
480         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
481         * sysdeps/powerpc/stpcpy.S: Moved to...
482         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
483         * sysdeps/powerpc/strchr.S: Moved to...
484         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
485         * sysdeps/powerpc/strcmp.S: Moved to...
486         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
487         * sysdeps/powerpc/strcpy.S: Moved to...
488         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
489         * sysdeps/powerpc/strlen.S: Moved to...
490         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
491         * sysdeps/powerpc/sub_n.S: Moved to...
492         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
493         * sysdeps/powerpc/submul_1.S: Moved to...
494         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
495         * sysdeps/powerpc/elf/bzero.S: Moved to...
496         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
497         * sysdeps/powerpc/elf/start.S: Moved to...
498         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
499         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
500         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
501         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
502         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
503         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
504         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
505         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
506         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
507         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
508         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
509         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
510         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
511         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
513         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
515         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
517         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
519         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
521         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
523         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
525         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
526         powerpc/powerpc64.
527
528 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
529
530         * FAQ.in: Add powerpc64 to supported targets list. Also state the
531         minimum gcc version is 3.2
532         * README: Add powerpc64 to supported targets list.
533         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
534         Add powerpc64 and machine=powerpc/powerpc64.
535         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
536         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
537         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
538         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
539         * sysdeps/powerpc/powerpc32/Dist: New file.
540         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
541         * sysdeps/powerpc/powerpc32/Implies: New file.
542         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
543         ($(with-fp) = no): Move test to powerpc32/Makefile.
544         ($(subdir) = misc): Move to powerpc32/Makefile.
545         ($(build-shared) = yes): Move to powerpc32/Makefile.
546         ($(subdir) = csu): Move to powerpc32/Makefile.
547         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
548         * sysdeps/powerpc/powerpc32/Makefile: New file.
549         * sysdeps/powerpc/Versions: Remove libgcc functions.
550         * sysdeps/powerpc/powerpc32/Versions: New file.
551         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
552         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
553         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
554         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
555         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
556         ($machine): Add powerpc/powerpc64 to if ... | for
557         libc_cv_slibdir=/libc64.
558         (powerpc*): Set ldd_rewrite_script.
559         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
560         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
562         Add clone.S.
563         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
564         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
565         functions.  Remove GLIBC_2.2 functions except getrlimit and
566         setrlimit.  Moved them to ...
567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
568
569 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
570
571         * libio/tst-atime.c: Include <errno.h>.
572         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
573
574 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
575
576         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
577         warnings of some compilers.
578         (build_collating_symbol): Change the type of characters from
579         "unsigned char" to "char", and append a cast to "char*" pointer in
580         array subscript.
581         (build_collating_symbol): Likewise.
582         (build_equiv_class): Likewise.
583         (build_charclass): Likewise.
584         (re_compile_pattern): Remove incorrect cast.
585         (re_compile_fastmap_iter): Change the type of characters from
586         "unsigned char" to "char", and append a cast to "char*" pointer
587         in array subscript.
588         (parse_bracket_exp): Likewise.
589         * posix/regex_internal.c (re_string_construct_common): Likewise.
590         (re_string_allocate): Likewise.
591         (re_string_construct): Likewise.
592         (re_string_realloc_buffers): Likewise.
593         (build_wcs_buffer): Likewise.
594         (re_string_reconstruct): Likewise.
595         * posix/regex_internal.h: Change the type of characters in
596         re_string_t and bracket_elem_t from "unsigned char" to "char".
597         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
598         warnings of some compilers.
599         (transit_state_bkref_loop): Change the type of characters from
600         "unsigned char" to "char", and append a cast to "char*" pointer in
601         array subscript.
602         (check_node_accept_bytes): Likewise.
603         (find_collation_sequence_value): Likewise.
604
605 2002-09-04  Roland McGrath  <roland@redhat.com>
606
607         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
608         from 1024 to 65536, to avoid buffer overrun.
609
610 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
611
612         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
613
614 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
615
616         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
617         for filesystem.
618
619 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
620
621         * posix/bug-regex11.c: New test.
622         * posix/Makefile (tests): Add bug-regex11.
623
624 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
625
626         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
627         newlocale.
628
629 2002-09-02  Roland McGrath  <roland@redhat.com>
630
631         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
632         __pthread_initialize_minimal and __libc_check_standard_fds to
633         match the generic version.
634
635         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
636         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
637
638         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
639         warnings on platorms where char is unsigned.
640
641 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
642
643         * version.h (VERSION): Bump to 2.2.93.
644
645         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
646
647 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
648
649         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
650         as relocated.
651
652 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
653
654         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
655
656 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
657
658         * locale/localeinfo.h (struct locale_data): Add private.ctype.
659         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
660         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
661         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
662         (__wcsmbs_load_conv): Remove const from argument.
663         (_nl_cleanup_ctype): New proto.
664         (get_gconv_fcts): New function.
665         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
666         (__wcsmbs_to_wc): Rename back to...
667         (to_wc): ... this.
668         (__wcsmbs_gconv_fcts): Rename to...
669         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
670         (lock): Removed.
671         (__libc_setlocale_lock): New extern.
672         (__wcsmbs_load_conv): Remove const from argument.
673         Initialize new_category->private.ctype instead of a global
674         variable.
675         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
676         update_function_ptrs.  No locking is necessary.
677         (_nl_cleanup_ctype): New function.
678         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
679         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
680         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
681         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
682         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
683         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
684         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
685         * wcsmbs/wctob.c (wctob): Likewise.
686         * stdlib/mblen.c (mblen): Likewise.
687         * stdlib/mbtowc.c (mbtowc): Likewise.
688         * stdlib/wctomb.c (wctomb): Likewise.
689         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
690         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
691         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
692         Removed.
693
694 2002-09-02  Roland McGrath  <roland@frob.com>
695
696         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
697
698 2002-09-01  Roland McGrath  <roland@redhat.com>
699
700         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
701         Variable declarations removed.
702         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
703         these functions to replace them.
704         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
705         functions plus an indirection rather than the old global variables.
706         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
707         Macros removed.
708         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
709         inline functions.
710         * ctype/ctype-info.c: Revert last reversion back the other way.
711         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
712         Define real function versions of include/ctype.h inlines here.
713         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
714         __ctype_tolower_loc, __ctype_toupper_loc.
715         * locale/lc-ctype.c: Revert last reversion back the other way.
716         (_nl_postload_ctype): If current thread uses the global locale,
717         update its tsd vars.
718         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
719         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
720         CTYPE_TOLOWER, CTYPE_TOUPPER.
721
722         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
723         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
724         from __libc_tsd_threadvar_location.
725         (__libc_tsd_set, __libc_tsd_get): Update uses.
726
727 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
728
729         * ctype/ctype.h: Undo the patch before the last one.  Put back the
730         macro definitions for the standard functions to access the
731         classification and mapping arrays.
732         * include/ctype.h: Partly revert last patch.  Move the macro
733         definitions for the exported functions back to the public header.
734         #undef all the macros defined here before redefining.
735         * ctype/ctype-info.c: Revert last patch.
736         * locale/lc-ctype.c: Revert last patch.
737
738         * ctype/Makefile (routines): Add isctype.
739         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
740         * ctype/ctype.h: Add declaration of isctype.
741         * include/ctype.h: Declare __isctype.
742         * ctype/isctype.c: New file.
743
744 2002-09-01  Roland McGrath  <roland@redhat.com>
745
746         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
747         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
748
749         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
750
751         * locale/findlocale.c (_nl_remove_locale): Don't search in
752         _nl_locale_file_list if DATA->alloc is ld_archive.
753         Use _nl_unload_locale to do the rest of the work.
754
755         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
756         of new structure to UNDELETABLE.
757
758         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
759         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
760         towlower, towupper): Macros removed.
761         * ctype/ctype.h (__tobody): Put parens around macro argument.
762         (__isctype): Macro removed.
763         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
764         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
765         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
766         tolower, toupper): Macros and inlines removed.
767         * include/ctype.h [! NOT_IN_libc]
768         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
769         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
770         tolower, toupper): Define here instead, using _NL_CURRENT.
771         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
772         using _NL_CURRENT.
773         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
774         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
775         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
776         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
777         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
778         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
779         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
780         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
781         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
782         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
783         (ISSORTMASK): Update use.
784         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
785         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
786         (_nss_files_getENTNAME_r): Likewise.
787         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
788         Likewise.
789
790         * Makerules (all-nonlib): Renamed from all-tests.
791         Include $(others) here too.
792         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
793         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
794         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
795         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
796         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
797         the program modules via cppflags-iterator.mk.
798         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
799         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
800
801 2002-08-31  Roland McGrath  <roland@redhat.com>
802
803         * posix/tst-getconf.sh: If no third arg, work with static linking.
804
805         * locale/categories.def (LC_TIME): No more _nl_postload_time.
806
807         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
808         [_NL_CURRENT_INDIRECT].
809
810 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
811
812         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
813
814 2002-08-31  Roland McGrath  <roland@redhat.com>
815
816         * locale/newlocale.c (__newlocale): Don't use strdup for names.
817         Instead, make the single allocation of the structure larger to hold
818         the name strings.
819         * locale/duplocale.c (__duplocale): Don't strdup names individually.
820         Instead, calculate size for a single allocation and copy into it.
821         * locale/freelocale.c (__freelocale): Don't free names individually.
822
823         * locale/newlocale.c (__newlocale): Don't leak old data or names.
824
825         * locale/xlocale.h (__locale_struct): Move __names member last,
826         for binary compatibility.
827
828         * locale/duplocale.c (__duplocale): Free names from the right array.
829
830         * locale/uselocale.c (__uselocale): Return previous locale when
831         setting a new one.
832
833         * locale/newlocale.c: Commit changes from 2002-08-30
834         batch where I failed to commit this file:
835         (__newlocale): Fill in __names array.
836
837 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
838
839         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
840         errlist-compat.c if versioning==yes.
841
842 2002-08-31  Andreas Jaeger  <aj@suse.de>
843
844         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
845         external functions with hidden attribute.
846         (elf_machine_rela): Optimize.
847
848         * sysdeps/x86_64/memset.S: New file.
849         * sysdeps/x86_64/bzero.S: New file.
850         * sysdeps/x86_64/stpcpy.S: New file.
851         * sysdeps/x86_64/strcat.S: New file.
852         * sysdeps/x86_64/strchr.S: New file.
853         * sysdeps/x86_64/strcpy.S: New file.
854         * sysdeps/x86_64/strcspn.S: New file.
855         * sysdeps/x86_64/strlen.S: New file.
856         * sysdeps/x86_64/strpbrk.S: New file.
857         * sysdeps/x86_64/strspn.S: New file.
858         * sysdeps/x86_64/strcmp.S: New file.
859         * sysdeps/x86_64/strtok_r.S: New file.
860         * sysdeps/x86_64/strtok.S: New file.
861         * sysdeps/x86_64/memcpy.S: New file.
862         * sysdeps/x86_64/mempcpy.S: New file.
863
864         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
865
866         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
867
868 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
869
870         * stdio-common/Makefile (generated): Add errlist-compat.c.
871
872         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
873
874         * locale/localeinfo.h: Pretty printing.
875
876         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
877         form_number handling.
878
879 2002-08-31  Andreas Jaeger  <aj@suse.de>
880
881         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
882         double tests.
883
884         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
885         __start_context.
886
887         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
888
889         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
890
891         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
892         registers used for passing args.
893
894         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
895         all needed registers.
896
897         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
898         registers.
899
900         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
901         registers.
902
903 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
904
905         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
906         always_inline attribute.
907
908 2002-08-30  Roland McGrath  <roland@redhat.com>
909
910         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
911         presume it's the stub and bail without error.
912
913         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
914         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
915
916         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
917
918         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
919         macros replace the i686 versions for 64-bit mode.
920
921         * locale/duplocale.c: Include <string.h>.
922
923         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
924         [_LIBC] (category_to_name): Don't define the function.  Instead
925         define a macro using _nl_category_names.
926
927         * locale/xlocale.h (struct __locale_struct): New member `__names'.
928         * locale/xlocale.c (_nl_C_locobj): Update initializer.
929         * locale/global-locale.c (_nl_global_locale): Likewise.
930         * locale/duplocale.c (__duplocale): strdup __names elements.
931         * locale/freelocale.c (__freelocale): Free __names elements.
932         * locale/localename.c (_nl_current_names): Variable removed.
933         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
934         * locale/localeinfo.h (_nl_current_names): Removed decl.
935         * locale/setlocale.c: Use _nl_global_locale->__names in place of
936         _nl_current_names throughout.
937
938         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
939
940         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
941         and sys_nerr in the output file.
942
943         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
944         * scripts/cpp: Just use the environment variable.
945
946         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
947         * libio/tst-mmap-offend.c (do_test): Likewise.
948         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
949         * libio/tst-mmap-eofsync.c (do_test): Likewise.
950         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
951
952         * locale/localename.c: If the current locale is the global locale, use
953         _nl_current_names; otherwise use the locale object.
954
955 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
956
957         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
958         'm' to enable mmap I/O.
959         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
960         former wasn't used (anymore?).
961         (_IO_FLAGS2_MMAP): New define.
962         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
963         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
964         _IO_FLAGS2_MMAP bit is set.
965         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
966         Enable mmap-using mode only if 'm' was set.
967
968 2002-08-29  Roland McGrath  <roland@frob.com>
969
970         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
971
972         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
973         Change argument type from int to intptr_t.
974
975         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
976         initializer on [! _HURD_THREADVAR_H] (bad kludge).
977         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
978         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
979         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
980
981         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
982
983         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
984
985         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
986
987         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
988         * assert/assert-perr.c: Add libc_hidden_def.
989         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
990
991         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
992         found at all.
993         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
994         sys_errlist stuff to ...
995         * sysdeps/unix/sysv/linux/Versions: ... here.
996
997         * mach/mach.h: Include <features.h>.
998
999 2002-08-29  Roland McGrath  <roland@redhat.com>
1000
1001         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1002         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1003         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1004
1005         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1006
1007         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1008         (norm_add_slashes): alloca -> __alloca
1009
1010 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1011
1012         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1013         string_malloced, it is unlikely to be set.
1014         Only call free with non-NULL workspace.
1015         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1016         -mcpu=ultrasparc, not only tune for it.
1017         (ASFLAGS*): Set unconditionally.
1018
1019         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1020         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1021         p_vaddr/p_offset when computing LOADADDR.
1022
1023 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1024
1025         * version.h (VERSION): Bump to 2.2.92.
1026
1027         * time/Makefile (tst-ftime_l-ENV): New variable.
1028
1029         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1030
1031         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1032         <U017A>, <U017D> and <U0179>. Add missing mappings.
1033         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1034
1035         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1036         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1037         (struct tostruct): Use ACRINDEX as type for link field.
1038         (statuc gmonparam): Likewise for froms.
1039         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1040         kcount and froms.
1041         (write_call_graph): Use correct type for from_index and to_index.
1042         * gmon/mcount.c: Use correct types for frompcindex and toindex
1043         variables.
1044         Patches by Dan Kegel <dank@kegel.com>.
1045
1046         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1047         canonical name.
1048
1049         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1050         __isspace_l.  Replace calls to isspace.
1051         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1052
1053 2002-08-29  Roland McGrath  <roland@redhat.com>
1054
1055         * string/tst-strxfrm.c: Remove __ from function names.
1056
1057 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1058
1059         * include/wchar.h: Declare __mbsrtowcs_l.
1060         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1061         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1062         USE_IN_EXTENDED_LOCALE_MODEL.
1063         * wcsmbs/mbsrtowcs_l: New file.
1064         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1065         define as static.  Change all uses.
1066         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1067         Change all callers.
1068         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1069         * time/strftime.c: When translating for the extended locale model
1070         use the _l functions.
1071         * time/Makefile (tests): Add tst-ftime_l.
1072         * time/tst-ftime_l.c: New file.
1073
1074 2002-08-28  Roland McGrath  <roland@redhat.com>
1075
1076         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1077         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1078         from _nl_find_locale ok if for _nl_C_name.
1079
1080         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1081         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1082         we know they are all linked in.
1083
1084         * NEWS: Added 2.2.6 text from 2.2 branch version.
1085
1086         * time/strptime.c (strptime_internal): Remove spurious const.
1087
1088         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1089         _nl_select_era_entry): Moved to ...
1090         * time/era.c: ... here, new file.
1091         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1092         Add internal_function to definitions.  Take an additional argument
1093         giving the `struct locale_data *' to use.
1094         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1095         _nl_parse_alt_digit): Moved to ...
1096         * time/alt_digit.c: ... here, new file.
1097         * time/lc-time-cleanup.c: New file.
1098         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1099         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1100         (_nl_cleanup_time): Declare it.
1101         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1102         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1103         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1104         * time/strftime.c: Pass locale data to helper functions.
1105         * time/strptime.c: Likewise.
1106
1107         * locale/localeinfo.h (struct locale_data): New member `private'
1108         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1109         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1110         * locale/C-collate.c: Update initializer.
1111         * locale/C-identification.c: Likewise.
1112         * locale/C-measurement.c: Likewise.
1113         * locale/C-telephone.c: Likewise.
1114         * locale/C-address.c: Likewise.
1115         * locale/C-name.c: Likewise.
1116         * locale/C-paper.c: Likewise.
1117         * locale/C-time.c: Likewise.
1118         * locale/C-numeric.c: Likewise.
1119         * locale/C-monetary.c: Likewise.
1120         * locale/C-messages.c : Likewise.
1121         * locale/C-ctype.c: Likewise.
1122
1123         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1124         Redefine this too.
1125
1126 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1127
1128         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1129         (_rtld_global): Use it.
1130
1131         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1132         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1133         object directory.  Pass all Versions files to the awk script.
1134         * sysdeps/gnu/errlist-compat.c: Removed.
1135         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1136         first Versions file in the search path which has them.
1137         Allow multiple errlist symbol versions to have the same count of
1138         errors.
1139         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1140         of "errlist-compat.c".
1141         * sysdeps/gnu/errlist.c: Regenerated.
1142         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1143         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1144         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1145         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1146         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1147         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1148         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1149         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1150         ECANCELLED if not defined by kernel headers.
1151         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1152         already defined by kernel headers.
1153         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1154         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1155         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1156         is a macro.
1157         * Versions.def (GLIBC_2.3) [librt]: Add.
1158
1159         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1160
1161 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1162
1163         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1164         missing comma to .type directive.
1165
1166 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1167
1168         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1169         unconditionally.
1170         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1171         check.
1172         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1173
1174 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1175
1176         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1177         check to close_and_out close.  Replace return NULL statements where
1178         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1179         when it is no longer needed.
1180
1181 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1182
1183         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1184         string constants.
1185         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1186         * sysdeps/arm/dl-machine.h: Likewise.
1187         * sysdeps/cris/dl-machine.h: Likewise.
1188         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1189         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1190
1191 2002-08-28  Roland McGrath  <roland@redhat.com>
1192
1193         * Makeconfig (default_cflags): Revert unintended change.
1194
1195 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1196
1197         * version.h (VERSION): Bump to 2.2.91.
1198
1199         * configure.in: Disable TLS support by default for now.
1200
1201         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1202
1203         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1204         warnings.
1205
1206         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1207
1208         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1209         fprintf/fwprintf calls.
1210
1211 2002-08-28  Roland McGrath  <roland@redhat.com>
1212
1213         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1214         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1215
1216         * locale/setlocale.c: Declare postload functions weak.
1217
1218         * elf/tst-tls1-static.c: New file.
1219         * elf/tst-tls2-static.c: New file.
1220         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1221
1222         Make uselocale support static linking.
1223         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1224         This file again just defines _nl_C_locobj.
1225         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1226         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1227         using all weak references in the initializer.
1228         * locale/Makefile (aux): Add global-locale.
1229         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1230         these unconditional, along with the tsd decl.
1231         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1232         Define it under these conditions.
1233         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1234         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1235         `extern __thread struct locale_data *const *'.
1236         [NL_CURRENT_INDIRECT]
1237         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1238         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1239         the thread variable _nl_current_LC_FOO and also a special absolute
1240         symbol _nl_current_LC_FOO_used.
1241         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1242         Set each _nl_current_LC_FOO symbol to point into the new locale,
1243         using weak references to test if _nl_current_LC_FOO_used was linked in.
1244         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1245         [NL_CURRENT_INDIRECT]: ... with this one.
1246         (_nl_current, _nl_C): Variables removed.
1247         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1248         weak references to _nl_current_LC_FOO_used.
1249         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1250         (free_category): New function, broken out of ...
1251         (free_mem): ... here.  Call that.
1252         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1253         instead of a loop.
1254
1255         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1256         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1257         it is already absolute.
1258
1259         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1260         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1261         [$(build-static) = yes] (tests-static): New variable.
1262         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1263
1264 2002-08-26  Christoph Hellwig  <hch@lst.de>
1265
1266         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1267         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1268
1269 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1270
1271         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1272
1273         * sysdeps/s390/Dist: Add bits/link.h.
1274
1275         * sysdeps/sh/Dist: New file.
1276
1277         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1278
1279         * sysdeps/wordsize-32/Dist: New file.
1280
1281         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1282         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1283         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1284
1285         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1286         sys/personality.h.
1287
1288         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1289         sparc/dl-brk.S.
1290
1291         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1292
1293         * sysdeps/unix/bsd/sun/Dist: New file.
1294
1295         * sysdeps/unix/bsd/osf/Dist: New file.
1296
1297         * sysdeps/unix/bsd/hp/Dist: New file.
1298
1299         * sysdeps/unix/arm/Dist: New file.
1300
1301         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1302
1303         * sysdeps/mach/hurd/Dist: Add set-init.c.
1304
1305         * sysdeps/i386/Dist: Add bits/link.h.
1306
1307         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1308
1309         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1310
1311         * locale/Makefile (distribute): Add hashval.h.
1312
1313         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1314
1315         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1316
1317         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1318         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1319         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1320         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1321         implementations.
1322         * libio/stdio.h: Likewise.
1323         * locale/locale.h: Likewise.
1324         * math/math.h: Likewise.
1325         * math/bits/mathcalls.h: Likewise.
1326         * setjmp/setjmp.h: Likewise.
1327         * signal/signal.h: Likewise.
1328         * stdlib/stdlib.h: Likewise.
1329         * string/string.h: Likewise.
1330         * time/time.h: Likewise.
1331         * wcsmbs/wchar.h: Likewise.
1332         * wctype/wctype.h: Likewise.
1333
1334 2002-08-28  Roland McGrath  <roland@redhat.com>
1335
1336         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1337
1338 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1339             Roland McGrath <roland@redhat.com>
1340
1341         * locale/hashval.h (compute_hashval): Use prototype defn.
1342         (hashval_t): New macro, defined to unsigned long int
1343         if not already defined.
1344         (compute_hashval): Return hashval_t instead of unsigned long int.
1345         * locale/loadarchive.c (hashval_t): New macro.
1346         * locale/programs/locarchive.c: Include hashval.h directly instead
1347         of simple-hash.h.
1348         (compute_hashval, hashval_t): Define these macros first.
1349         (insert_name): Use archive_hashval instead of compute_hashval.
1350         (add_locale, delete_locales_from_archive): Likewise.
1351
1352 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1353
1354         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1355         hash collisions if be_quiet.
1356
1357 2002-08-27  Roland McGrath  <roland@redhat.com>
1358
1359         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1360         __uselocale): Don't declare these any more.
1361         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1362
1363         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1364         and treat it as an EOF return.
1365         * sysdeps/unix/readdir_r.c: Likewise.
1366
1367         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1368         From Alexandre Oliva <aoliva@redhat.com>.
1369         * sysdeps/gnu/errlist-compat.c: Regenerated.
1370
1371 2002-08-27  Brian Youmans  <3diff@gnu.org>
1372
1373         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1374         wording at request of copyright holder Stephen Moshier.
1375         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1376         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1377         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1378         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1379         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1380         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1381         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1382         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1383         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1384         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1385         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1386         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1387         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1388         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1389
1390 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1391
1392         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1393         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1394         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1395         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1396         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1397         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1398         * wctype/iswctype_l.c (iswctype_l): Likewise.
1399
1400 2002-08-27  Roland McGrath  <roland@redhat.com>
1401
1402         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1403
1404         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1405         * stdlib/stdlib.h: Don't declare __*_l names.
1406         * include/stdlib.h: Declare them here instead.
1407         * include/string.h: Don't declare __*_l names.
1408         * string/string.h: Declare them here instead.
1409         * time/time.h: Don't declare __*_l names.
1410         * include/time.h: Declare them here instead.
1411         * wcsmbs/wchar.h: Don't declare __*_l names.
1412         * include/wchar.h: Declare them here instead.
1413         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1414         Don't declare __*_l names.
1415         * include/wctype.h: Declare them here instead.
1416         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1417         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1418         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1419         * include/langinfo.h: Declare it here with __typeof.
1420
1421         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1422         instead, taking an extra __locale_t argument.
1423         * time/Makefile (routines): Add strptime_l.
1424         * time/time.h (__strptime_l, strptime_l): Declare them.
1425         * time/strptime_l.c: New file.
1426
1427         * time/time.h (__strftime_l, strftime_l): Declare them.
1428         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1429         * time/strftime_l.c: New file.
1430         * time/wcsftime_l.c: New file.
1431         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1432         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1433         strftime_l, wcsftime_l.
1434         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1435         or __wcsftime_l instead, taking an extra __locale_t argument.
1436
1437         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1438         (libc: GLIBC_2.3): ... here.
1439
1440 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1441
1442         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1443
1444         * Makefile (distribute): Add LICENSES.
1445
1446         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1447         sys/debugreg.h.
1448
1449         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1450
1451         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1452
1453         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1454
1455         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1456
1457         * sysdeps/mach/hurd/alpha/Dist: New file.
1458
1459         * sysdeps/arm/Dist: Add bits/link.h.
1460
1461         * sunrpc/Makefile: Distribute thrsvc.
1462
1463         * stdio-common/Makefile: Remove more left-overs from old stdio.
1464
1465         * include/linewrap.h: Removed.
1466
1467         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1468
1469         * intl/Makefile (distribute): Add plural-eval.c.
1470
1471 2002-08-27  Roland McGrath  <roland@redhat.com>
1472
1473         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1474         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1475         Say mtab is in either /var/run or /etc.
1476
1477 2002-08-26  Roland McGrath  <roland@redhat.com>
1478
1479         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1480         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1481
1482         * sysdeps/gnu/Versions: New file.
1483         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1484         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1485         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1486         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1487         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1488         and _sys_nerr_internal instead of anything else.  Make it include
1489         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1490         Make it emit some asm magic if [EMIT_ERR_MAX].
1491         * sysdeps/gnu/errlist.c: Regenerated.
1492         * sysdeps/gnu/errlist-compat.awk: New file.
1493         * sysdeps/gnu/errlist-compat.c: New file (generated).
1494         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1495         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1496         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1497         (SYS_ERRLIST, SYS_NERR): Macros removed.
1498         (sys_nerr, _sys_nerr): Remove these weak aliases.
1499         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1500         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1501         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1502
1503         * include/libc-symbols.h (declare_symbol): New macro.
1504         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1505         * configure.in: New check to define it.
1506         * configure: Regenerated.
1507
1508 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1509
1510         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1511         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1512
1513         * Make-dist: Remove traces of old stdio.
1514         * Makeconfig: Likewise.
1515
1516         * locale/Makefile (localedef-aux): New variable.  Only md5
1517         assigned to it.  These files are not ddistributed in this directory.
1518
1519         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1520         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1521         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1522
1523         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1524
1525         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1526         set h_errno to NO_RECOVERY [PR libc/4360].
1527
1528 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1529
1530         * libio/Makefile (tests): Add bug-fopena+.
1531         * libio/bug-fopena+.c: New file.
1532         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1533         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1534
1535         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1536
1537         * locale/xlocale.c: Fix the last change.  The variable still has
1538         to end in _data.
1539         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1540         (__libc_tsd_set): Add _data prefix to variable name.
1541
1542 2002-08-26  Roland McGrath  <roland@redhat.com>
1543
1544         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1545         macro with inline function.
1546         (sigset_get_old_mask): Likewise.
1547         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1548         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1549         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1550         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1551         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1552         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1553         values.
1554         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1555         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1556
1557 2002-07-06  Bruno Haible  <bruno@clisp.org>
1558
1559         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1560         sigset_get_old_mask): Make it work with larger sigset_t.
1561         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1562         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1563         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1564
1565 2002-08-26  Roland McGrath  <roland@redhat.com>
1566
1567         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1568         * manual/filesys.texi (File Times): Document lutimes and futimes.
1569         * misc/Makefile (routines): Add them.
1570         * misc/Versions (libc: GLIBC_2.3): Likewise.
1571         * sysdeps/generic/lutimes.c: New file.
1572         * sysdeps/generic/futimes.c: New file.
1573         * sysdeps/mach/hurd/lutimes.c: New file.
1574         * sysdeps/mach/hurd/futimes.c: New file.
1575
1576         * manual/filesys.texi (File Times): Add explicit note about null
1577         pointer argument to utimes.
1578
1579 2002-08-26  Roland McGrath  <roland@frob.com>
1580
1581         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1582         (__ifreq): Add a cast.  Remove an unused variable.
1583
1584         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1585         _HURD_THREADVAR_LOCALE.
1586
1587 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1588
1589         * posix/regexec.c (re_search_stub): Return correct match length
1590         if start != 0.
1591         * posix/bug-regex10.c: New test.
1592         * posix/Makefile (tests): Add bug-regex10.
1593
1594 2002-08-26  Brian Youmans  <3diff@gnu.org>
1595
1596         * COPYING.LIB: Replaced with fresh copy from
1597         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1598         suggested copying permission notice now says version 2.1 instead
1599         of version 2.
1600
1601         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1602         from Library GPL.
1603         * crypt/crypt_util.c: Likewise.
1604         * crypt/ufc.c: Likewise.
1605         * elf/dl-conflict.c: Likewise.
1606         * elf/dl-iteratephdr.c: Likewise.
1607         * iconv/iconvconfig.h: Likewise.
1608         * malloc/arena.c: Likewise.
1609         * malloc/hooks.c: Likewise.
1610         * malloc/malloc.c: Likewise.
1611         * posix/glob/Makefile.ami: Likewise.
1612         * posix/glob/Makefile.in: Likewise.
1613         * stdlib/gmp-impl.h: Likewise.
1614         * stdlib/gmp.h: Likewise.
1615         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1616         * sysdeps/generic/strnlen.c: Likewise.
1617         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1618         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1619         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1620         * sysdeps/mach/hurd/spawni.c: Likewise.
1621         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1622         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1623         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1624         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1625         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1626         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1627
1628         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1629         Lesser GPL copying permission notice from 2 to 2.1.
1630         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1631         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1632         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1633         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1634         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1635         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1636         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1637         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1638         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1639         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1640         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1641         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1642         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1643         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1644         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1645         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1646         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1647         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1648         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1649         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1650         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1651         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1652         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1653         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1654         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1655         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1656         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1657         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1658         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1659         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1660         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1661         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1662         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1663         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1664         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1665         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1666         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1667         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1668         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1669         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1670         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1671         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1672         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1673         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1674         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1675         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1676         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1677         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1678         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1679         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1680         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1681         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1682         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1683         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1684         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1685
1686         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1687         Moshier and Lesser GPL copying permission notice, per license from
1688         Moshier.
1689         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1690         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1691         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1692         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1693         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1694         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1695         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1696         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1697         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1698         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1699         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1700         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1701         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1702         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1703
1704         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1705         notice, per license from copyright holder Stephen Moshier.
1706         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1707         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1708         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1709         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1710         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1711         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1712         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1713         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1714         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1715
1716 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1717
1718         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1719         (shared-only-routines): Likewise.
1720
1721 2002-08-26  Roland McGrath  <roland@redhat.com>
1722
1723         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1724         name of "", store a null pointer instead.
1725
1726         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1727         * configure: Regenerated.
1728
1729         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1730         Initialize this instead of __libc_tsd_LOCALE_data.
1731
1732         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1733         ptsname_r to EINVAL.
1734
1735         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1736
1737         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1738         implementations depend on pthreads.
1739         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1740         * rt/tst-aio64.c (do_test): Likewise.
1741         * rt/tst-aio2.c (do_test): Likewise.
1742         * rt/tst-aio3.c (do_test): Likewise.
1743         * rt/tst-aio4.c (do_test): Likewise.
1744         * rt/tst-aio5.c (do_test): Likewise.
1745         * rt/tst-aio6.c (do_test): Likewise.
1746         * rt/tst-aio7.c (do_test): Likewise.
1747
1748         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1749         void so as to avoid compiler warnings.
1750
1751         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1752         _IO_wide_data_FD, which is never used here.
1753
1754         * libio/iofread.c
1755         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1756         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1757         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1758
1759         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1760         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1761
1762         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
1763         (closelog): Likewise.
1764
1765 2002-07-06  Bruno Haible  <bruno@clisp.org>
1766
1767         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
1768
1769         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
1770         * sysdeps/unix/alpha/pipe.S: ... here.
1771         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
1772
1773         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
1774
1775         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
1776         * sysdeps/unix/i386/fork.S: Likewise.
1777         * sysdeps/unix/i386/pipe.S: Likewise.
1778         * sysdeps/unix/i386/wait.S: Likewise.
1779
1780         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
1781         * sysdeps/unix/arm/fork.S: Likewise.
1782
1783         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
1784         arguments.
1785         (DO_CALL): Swap argument order.
1786         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
1787         arguments.
1788         (DO_CALL): Swap argument order.
1789         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
1790         arguments.
1791         (DO_CALL): Swap argument order.
1792         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
1793         arguments.
1794         (DO_CALL): Swap argument order.
1795         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
1796         arguments.
1797         (DO_CALL): Swap argument order.
1798         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
1799         arguments.
1800         (DO_CALL): Swap argument order.
1801         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
1802         arguments.
1803         (DO_CALL): Swap argument order.
1804
1805         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
1806         (L): Define right for ELF.
1807         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
1808         Now defined in sysdeps/i386/sysdep.h.
1809
1810         * sysdeps/posix/readv.c: Ansify function definition.
1811         * sysdeps/posix/writev.c: Likewise.
1812
1813         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
1814         have the same size. Avoid direct cast from size_t to off_t.
1815
1816         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
1817         nul byte in entry[n].ut_user.
1818         (simulate_logout): Likewise.
1819
1820         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
1821         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
1822         existence of corresponding members of 'struct utmp'.
1823         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
1824         !_HAVE_UT_TYPE.
1825
1826         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
1827         allocate a buffer of at least BUFSIZ bytes, not just of
1828         sizeof (struct dirent).
1829
1830         * sysdeps/generic/glob.c: Include <limits.h>.
1831         (NAME_MAX): Define a fallback.
1832         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
1833         stack.
1834         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
1835         (main): Allocate enough room for a 'struct dirent64' on the stack.
1836         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
1837         'struct dirent'.
1838
1839         * sysdeps/unix/sysv/linux/init-first.c: Don't include
1840         kernel-features.h.
1841
1842         * inet/htontest.c: Include <sys/types.h>.
1843
1844         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
1845
1846         * include/sys/sysctl.h: Comment fix.
1847
1848         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
1849         _dl_load_lock.
1850         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
1851
1852         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
1853
1854         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
1855         (__getpeername): New alias.
1856         (__getsockname): New alias.
1857         (__socket): New alias.
1858
1859         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
1860
1861         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
1862         (__fcntl_internal): New alias.
1863         (__profil): New alias.
1864
1865 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1866
1867         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
1868         entry was for getaddr* lookup or not.  Add only matching cache
1869         entry.  Change all callers [PR libc/4317].
1870
1871         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
1872         finding the read position [PR libc/4265].
1873         * libio/Makefile (tests): Add bug-rewind2.
1874         * libio/bug-rewind2.c: New file.
1875
1876         * libio/bug-rewind.c: Fix creation of temp file.
1877
1878 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1879
1880         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
1881         neither SUCCESS nor TRYAGAIN [PR libc/4259].
1882         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
1883         to ENOENT if no entry is found.
1884         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
1885         failure.
1886         * nis/nss_compat/compat-initgroups.c: Likewise.
1887         * nis/nss_compat/compat-pwd.c: Likewise.
1888         * nis/nss_compat/compat-spwd.c: Likewise.
1889         * nis/nss_nis/nis-alias.c: Likewise.
1890         * nis/nss_nis/nis-ethers.c: Likewise.
1891         * nis/nss_nis/nis-grp.c: Likewise.
1892         * nis/nss_nis/nis-hosts.c: Likewise.
1893         * nis/nss_nis/nis-initgroups.c: Likewise.
1894         * nis/nss_nis/nis-netgrp.c: Likewise.
1895         * nis/nss_nis/nis-network.c: Likewise.
1896         * nis/nss_nis/nis-proto.c: Likewise.
1897         * nis/nss_nis/nis-publickey.c: Likewise.
1898         * nis/nss_nis/nis-pwd.c: Likewise.
1899         * nis/nss_nis/nis-rpc.c: Likewise.
1900         * nis/nss_nis/nis-service.c: Likewise.
1901         * nis/nss_nis/nis-spwd.c: Likewise.
1902         * resolv/nss_dns/dns-host.c: Likewise.
1903         * resolv/nss_dns/dns-network.c: Likewise.
1904         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
1905         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
1906         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1907         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
1908         * nis/nss_nisplus/nisplus-network.c: Likewise.
1909         * nis/nss_nisplus/nisplus-proto.c: Likewise.
1910         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1911         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
1912         * nis/nss_nisplus/nisplus-service.c: Likewise.
1913         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
1914         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
1915         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
1916         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
1917         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
1918
1919         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
1920         declaring __restore and __restore_rt as hidden (if possible).
1921
1922 2002-08-25  Roland McGrath  <roland@redhat.com>
1923
1924         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
1925
1926         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
1927         (getutent_r_file, internal_getut_r): Updated all callers.
1928         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
1929
1930 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1931
1932         * locale/programs/locale.c: Don't print aliases for non-existing
1933         locales for 'locale -a'.
1934         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
1935
1936 2002-07-19  H.J. Lu  <hjl@gnu.org>
1937
1938         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
1939
1940 2002-07-16  H.J. Lu  <hjl@gnu.org>
1941
1942         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1943         sys/personality.h.
1944         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
1945
1946 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1947
1948         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
1949         not moved ahead of the fputs call.
1950         * elf/tst-tlsmod2.c (in_dso): Likewise.
1951         * elf/tst-tlsmod3.c (in_dso2): Likewise.
1952         * elf/tst-tlsmod4.c (in_dso): Likewise.
1953
1954 2002-08-25  Andreas Schwab  <schwab@suse.de>
1955
1956         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
1957
1958 2002-08-25  Roland McGrath  <roland@redhat.com>
1959
1960         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
1961         resetting handler, to avoid the possibility of a spurious SIGALRM
1962         delivered to the user's handler.
1963         Reported by Amit D. Chaudhary <amitc@brocade.com>,
1964
1965         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
1966         set -fkeep-inline-functions, which is not needed for the current file.
1967
1968         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
1969         (_dl_setup_hash): Add attribute_hidden.
1970         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
1971         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
1972         (_dl_new_object, _dl_map_object_deps): Likewise.
1973         (_dl_map_object_deps_internal): Remove decl.
1974         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
1975
1976         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
1977         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
1978         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
1979         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
1980         instead relying on the compiler to produce only GOTOFF variable refs.
1981
1982 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
1983
1984         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
1985
1986         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
1987         inline to avoid defining it in every file which includes this header.
1988
1989         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
1990         defining DONT_USE_BOOTSTRAP_MAP.
1991
1992         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
1993         * libio/tst-mmap-setvbuf.c (main): Likewise.
1994         * libio/tst-widetext.c (main): Likewise.
1995
1996         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
1997         message.
1998         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1999         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2000
2001         * sysdeps/i386/elf/configure.in: Unconditionally define
2002         PI_STATIC_AND_HIDDEN.
2003         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2004         PI_STATIC_AND_HIDDEN is defined as well.
2005         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2006
2007 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2008
2009         * sysdeps/ia64/bzero.S: Define __bzero as well.
2010
2011         * locale/programs/charmap.c (charmap_new_char): Don't use
2012         ULONG_MAX as maximum UCS4 value.
2013
2014         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2015
2016         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2017
2018         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2019         * malloc/malloc.c (mALLINFo): Likewise.
2020
2021         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2022
2023         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2024         examining result of _IO_do_flush call.
2025
2026         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2027         Use prec not spec when sizing buffers.
2028
2029         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2030         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2031         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2032         * stdio-common/vfscanf.c (inchar): Likewise.
2033         * misc/efgcvt_r.c (fcvt_r): Likewise.
2034         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2035         * elf/readlib.c (process_file): Likewise.
2036         * elf/sprof.c (load_profdata): Likewise.
2037         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2038         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2039         * locale/programs/charmap.c (charmap_read): Likewise.
2040         * libio/fileops.c: Likewise.
2041         * libio/fmemopen.c: Likewise.
2042         * stdlib/strtod.c: Likewise.
2043         * elf/dl-load.c: Likewise.
2044         * iconv/iconvconfig.c: Likewise.
2045         * iconv/iconv_prog.c (process_block): Likewise.
2046         * elf/rtld.c (dl_main): Likewise.
2047
2048         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2049         macro to calm down the compiler.
2050
2051         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2052
2053         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2054
2055         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2056         placement of errno definition.
2057         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2058         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2059         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2060         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2061         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2062
2063         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2064         from 1024 to 65536, to avoid buffer overrun.
2065
2066 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2067
2068         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2069         from 1024 to 65536, to avoid buffer overrun.
2070         * resolv/res_query.c (MAXPACKET): Likewise.
2071
2072 2002-08-24  Andreas Jaeger  <aj@suse.de>
2073
2074         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2075
2076 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2077
2078         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2079         two52 locally.
2080         (log2): Likewise.
2081         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2082         Patch by Simon Gee <simong@agile.tv>.
2083
2084         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2085         Prefer reading /proc/stat since it is more uniform across
2086         architectures.
2087
2088         * manual/texinfo.tex: Update to latest official version.
2089
2090         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2091         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2092         * sysdeps/gnu/bits/shm.h: Likewise.
2093         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2094         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2095         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2096         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2097         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2098         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2099         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2100         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2101         since this is what the kernel says.
2102
2103         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2104         since ssize_t is needed as well.  Replace const with __const.
2105
2106 2002-08-23  Roland McGrath  <roland@redhat.com>
2107
2108         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2109         __malloc_hook, __realloc_hook, __memalign_hook,
2110         __after_morecore_hook): Variable definitions moved to ...
2111         * malloc/malloc.c: ... here, so as to be before all references.
2112
2113         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2114         global variable reference in an unused asm parameter, to ensure the
2115         compiler has set up the GOT register before we use it.
2116
2117         * malloc/hooks.c: Move variable definitions ahead of uses.
2118         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2119         initializers that make reference to variables they define.
2120
2121 2002-08-23  Andreas Jaeger  <aj@suse.de>
2122
2123         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2124         alloca, free, qsort.
2125
2126         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2127
2128         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2129         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2130
2131         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2132         <hch@lst.de>.
2133         * sysdeps/generic/fgetxattr.c: New file.
2134         * sysdeps/generic/flistxattr.c: New file.
2135         * sysdeps/generic/fremovexattr.c: New file.
2136         * sysdeps/generic/fsetxattr.c: New file.
2137         * sysdeps/generic/getxattr.c: New file.
2138         * sysdeps/generic/listxattr.c: New file.
2139         * sysdeps/generic/lgetxattr.c: New file.
2140         * sysdeps/generic/llistxattr.c: New file.
2141         * sysdeps/generic/lremovexattr.c: New file.
2142         * sysdeps/generic/lsetxattr.c: New file.
2143         * sysdeps/generic/removexattr.c: New file.
2144         * sysdeps/generic/setxattr.c: New file.
2145         * misc/Makefile (headers): Add sys/xattr.h.
2146         (routines): Add *xattr calls.
2147         * misc/Versions: Add *xattr calls with version 2.3.
2148         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2149         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2150         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2151         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2152         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2153         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2154         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2155         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2156
2157 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2158
2159         * sysdeps/powerpc/elf/libc-start.c
2160         (__cache_line_size): Declare.
2161         (__aux_init_cache): New function.
2162         (__libc_start_main): Change type of `auxvec' parameter to
2163         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2164         __aux_init_cache.
2165         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2166         (__cache_line_size): Declare.
2167         (__aux_init_cache): New function.
2168         (DL_PLATFORM_INIT): Define.
2169         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2170         value to select the correct stride for dcbz.
2171
2172 2002-08-22  Andreas Jaeger  <aj@suse.de>
2173
2174         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2175         shmat.
2176
2177 2002-08-22  Roland McGrath  <roland@redhat.com>
2178
2179         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2180         position indicated by locrectab against file bounds before rounding to
2181         page size.  In mapping loop, always set TO before breaking out of
2182         contiguous range coalescing loop.
2183
2184         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2185         (or MAP_COPY if available) instead of MAP_SHARED.
2186
2187         * scripts/firstversions.awk: When encountering a version newer than
2188         the specified earliest version, be sure to emit the specified earliest
2189         version first if any renaming of an older version to that has been.
2190
2191 2002-08-21  Roland McGrath  <roland@redhat.com>
2192
2193         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2194         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2195         (Configuring and compiling): Don't mention older GCC versions any more.
2196         * INSTALL: Regenerated.
2197
2198         * manual/install.texi (Configuring and compiling, Installation,
2199         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2200
2201         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2202         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2203         and with noinline otherwise.  Remove hack alloca use to prevent
2204         inlining, we can ask for it explicitly nowadays.
2205
2206         * dlfcn/bug-dlsym1.c: New file.
2207         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2208         * dlfcn/Makefile (distribute): Add them.
2209         (tests): Add bug-dlsym1 here.
2210         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2211         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2212         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2213
2214 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2215
2216         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2217         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2218         before relocation.
2219         (_dl_start): Don't use local bootstrap_map variable if
2220         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2221         pass bootstrap_map to _dl_start_final in this case either.  Don't
2222         pass start_time to _dl_start_final ever.
2223         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2224
2225         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2226         This cripples the scope lists necessary to search for symbols in
2227         dependencies which are not in the global scope.
2228
2229         * include/setjmp.h (__libc_longjmp): Add declaration.
2230
2231 2002-08-21  Andreas Jaeger  <aj@suse.de>
2232
2233         * sysdeps/x86_64/_mcount.S: Fix assembler.
2234
2235         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2236         with biarch support.
2237
2238 2002-08-21  Andreas Jaeger  <aj@suse.de>
2239
2240         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2241
2242         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2243
2244         * sysdeps/x86_64/machine-gmon.h: New file.
2245         * sysdeps/x86_64/_mcount.S: New file.
2246
2247 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2248
2249         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2250         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2251         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2252         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2253         to TL_INIT_TP.  Otherwise pass 1.
2254         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2255         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2256
2257 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2258
2259         * locale/programs/localedef.c (add_to_readlist): Error about
2260         circular dependencies only if the locale in question hasn't
2261         been finished.
2262         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2263         CTYPE_LOCALE to load_locale.
2264         * locale/programs/locfile.c (locfile_read): Don't include
2265         unneeded but available locales in locale_mask.
2266
2267         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2268         print any messages about enlarging archive.
2269
2270 2002-08-20  Brian Youmans  <3diff@gnu.org>
2271
2272         * manual/contrib.texi: Removed licenses, added acknowledgements
2273         for contributions by Intel, IBM, Craig Metz.
2274         * LICENSES: New file, contains the text of all non-FSF licenses in the
2275         distribution that require putting the notice in the accompanying
2276         documentation.
2277         * README.template, README: Mention LICENSES.
2278
2279         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2280         new one modelled on the modern BSD license, per recent letter
2281         of permission from CMU.
2282         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2283
2284         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2285         from IBM to FSF, per the recent Software Letter.  Changed the
2286         distribution terms from GPL to LGPL.
2287
2288         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2289         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2290         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2291         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2292         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2293         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2294         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2295         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2296         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2297         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2298
2299         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2300         from IBM to FSF, per the recent Software Letter.  Corrected the
2301         text of the copying permission notice to say Lesser GPL instead
2302         of GPL in warranty disclaimer paragraph.
2303         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2304         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2305         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2306         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2307         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2308         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2309         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2310         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2311         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2312         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2313         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2314         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2315         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2316         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2317         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2318         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2319         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2320         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2321         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2322         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2323         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2324
2325         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2326         permission notice to say Lesser GPL instead of GPL in warranty
2327         disclaimer paragraph.
2328         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2329         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2330         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2331         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2332         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2333         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2339         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2340         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2350         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2351
2352 2002-08-20  Roland McGrath  <roland@redhat.com>
2353
2354         Fix ABI compatibility with libc compiled with old tools on powerpc.
2355         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2356         and Jack Howarth <howarth@bromo.med.uc.edu>.
2357         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2358         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2359         pass -DHAVE_DOT_HIDDEN for these files.
2360         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2361         __floatdisf.
2362         * sysdeps/powerpc/divdi3.c: New file.
2363         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2364         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2365
2366 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2367
2368         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2369         partially overlapping mappings.  Remove unneeded (char *) casts.
2370         Never allow duplication of ranges in mapped areas.
2371
2372 2002-08-20  Roland McGrath  <roland@redhat.com>
2373
2374         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2375         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2376
2377 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2378
2379         * include/unistd.h: Don't hide _exit.
2380
2381         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2382         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2383         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2384         argument 1 to TLS_INIT_TP.
2385         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2386
2387         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2388
2389         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2390         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2391         memory allocation to...
2392         (allocate_dtv): ...here.  New function.
2393         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2394         call allocate_dtv instead of _dl_allocate_tls_storage.
2395         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2396         (_dl_get_tls_static_info): New function.
2397         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2398         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2399
2400 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2401
2402         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2403         immediately if result == NULL.
2404
2405 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2406
2407         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2408
2409 2002-08-18  Roland McGrath  <roland@frob.com>
2410
2411         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2412         instead of __file_name_split.
2413         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2414
2415         * sysdeps/mach/hurd/dl-sysdep.c
2416         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2417         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2418
2419 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2420
2421         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2422         in change before last: MAX -> MIN.
2423
2424 2002-08-15  Roland McGrath  <roland@redhat.com>
2425
2426         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2427         if seek would go past it.
2428         (mmap_remap_check): If file position is at or past EOF after check,
2429         leave read pointers at EOF and don't seek.
2430
2431         * libio/tst-mmap-offend.c: New file.
2432         * libio/Makefile (tests): Add it.
2433
2434         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2435         the name as passed, rather than the name in the archive dictionary.
2436
2437 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2438
2439         * csu/Makefile: Define elide-routines.os not static-only-routines.
2440
2441         * include/sched.h (__clone): Add varargs at the end.
2442
2443         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2444         case.
2445         (TLS_INIT_HELPER): If defined, use it.
2446         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2447
2448 2002-08-15  Roland McGrath  <roland@redhat.com>
2449
2450         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2451         on L->l_prev; it can happen under rtld --verify too.
2452
2453         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2454         header separately, just map an initial window of 2MB from the file
2455         and remap if that is not large enough to cover the whole header.
2456
2457 2002-08-15  Andreas Jaeger  <aj@suse.de>
2458
2459         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2460         version 2.3.
2461         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2462         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2463         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2464         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2465         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2466         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2467         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2468         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2469         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2470         Patch by Andreas Gruenbacher <agruen@suse.de>.
2471
2472         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2473
2474 2002-08-14  Roland McGrath  <roland@redhat.com>
2475
2476         * locale/locarchive.h (struct locale_category_data): Give this name to
2477         the type of locale_data_t's elements.
2478         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2479         (add_locale): Use that to sort the categories by size and put all
2480         those that fit into two pages into the LC_ALL block, instead of
2481         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2482         (show_archive_content): Detect categories inside LC_ALL block
2483         directly, instead of hard-coding.
2484         (oldlocrecentcmp): Compare just on file locations used.
2485
2486 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2487
2488         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2489         (oldlocrecentcmp): New function.
2490         (enlarge_archive): Re-add locales in the order they were added
2491         to the archive.
2492         (add_locale): Put all the small locale files together, if the small
2493         locale file block would occupy less pages if page size aligned, align
2494         it.
2495         (show_archive_content): Adjust for locale archives optimized for speed.
2496
2497 2002-08-14  Roland McGrath  <roland@frob.com>
2498
2499         * configure.in: Use "MISSING" as not-found value for MIG.
2500         * sysdeps/mach/configure.in: Fatal if mig not found.
2501         * configure, sysdeps/mach/configure: Regenerated.
2502
2503 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2504
2505         * locale/loadarchive.c (archfname): Add missing slash.
2506
2507         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2508         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2509
2510 2002-08-12  Roland McGrath  <roland@redhat.com>
2511
2512         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2513         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2514         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2515         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2516         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2517         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2518         * sysdeps/generic/waitpid.c: Likewise.
2519
2520         * include/net/if.h: New file.  Use libc_hidden_proto
2521         for if_nametoindex and if_indextoname.
2522         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2523         * sysdeps/mach/hurd/if_index.c: Likewise.
2524         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2525
2526         * include/grp.h (setgroups): Add libc_hidden_proto.
2527         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2528         * sysdeps/mach/hurd/setgroups.c: Likewise.
2529         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2530         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2531
2532 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2533
2534         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2535         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2536         * sysdeps/generic/setegid.c (setegid): Likewise.
2537         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2538         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2539         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2540         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2541         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2542         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2543         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2544         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2545         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2546         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2547         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2548         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2549         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2550
2551         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2552         __lxstat_internal, __lxstat64_internal): Remove.
2553         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2554         Add hidden_proto.
2555         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2556         Remove INTDEF where present, remove #undef at the beginning.
2557         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2558         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2559         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2560         * sysdeps/generic/xstat.c (__xstat): Likewise.
2561         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2562         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2563         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2564         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2565         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2566         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2567         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2568         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2569         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2570         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2571         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2572         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2573         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2574         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2575         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2576         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2577         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2578         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2579         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2580         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2581         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2582         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2583         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2584         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2585         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2586         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2587         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2588         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2589         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2590         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2591         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2592         * sysdeps/unix/xstat.c (__xstat): Likewise.
2593
2594         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2595         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2596         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2597         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2598         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2599         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2600         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2601
2602         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2603         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2604         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2605         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2606         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2607         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2608         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2609         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2610         Likewise.
2611         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2612         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2613         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2614         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2615         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2616         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2617         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2618         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2619
2620         * include/string.h (strcoll): Add libc_hidden_proto.
2621         * string/strcoll.c (strcoll): Add libc_hidden_def.
2622
2623         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2624
2625 2002-08-11  Philip Blundell  <philb@gnu.org>
2626
2627         * sysdeps/arm/Makefile: New file.
2628
2629 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2630
2631         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2632         by another '|', end of regex or enclosing ')', clear branch.
2633         * posix/bug-regex9.c: New test.
2634         * posix/Makefile (tests): Add bug-regex9.
2635
2636 2002-08-12  Roland McGrath  <roland@redhat.com>
2637
2638         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2639         start count condition, use TOTAL instead of variable that was never
2640         set.  Fix outer loop termination condition to TOTAL >= after update.
2641
2642         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2643         dl_tls_static_align and dl_tls_static_nelem.
2644
2645 2002-08-11  Roland McGrath  <roland@redhat.com>
2646
2647         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2648         of the TLS macros, otherwise the compiler might not have initialized
2649         the PIC register yet when we use the PLT via asm.
2650         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2651         * elf/tst-tlsmod2.c (in_dso): Likewise.
2652
2653         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2654
2655         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2656         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2657
2658         * include/unistd.h: Use libc_hidden_proto for getdomainname
2659         and getlogin_r.
2660         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2661         * sysdeps/mach/hurd/getdomain.c: Likewise.
2662         * sysdeps/unix/getlogin_r.c: Likewise.
2663         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2664         * sysdeps/generic/getlogin_r.c: Likewise.
2665
2666         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2667         * sunrpc/rtime.c: Add libc_hidden_def.
2668
2669         * include/string.h: Use libc_hidden_proto for basename.
2670         * string/basename.c [_LIBC]: Add libc_hidden_def.
2671
2672         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2673
2674         * locale/loadarchive.c: munmap -> __munmap throughout.
2675
2676         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2677         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2678         * sysdeps/generic/gai_strerror.c: Likewise.
2679
2680         * include/sys/errno.h: New file.
2681
2682         * include/signal.h: No libc_hidden_proto for raise,
2683         __libc_current_sigrtmin, __libc_current_sigrtmax.
2684         These need to be overridden by linuxthreads.
2685         * sysdeps/posix/raise.c: Reverted.
2686         * sysdeps/generic/raise.c: Reverted.
2687         * signal/allocrtsig.c: Reverted.
2688
2689         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2690
2691 2002-08-10  Roland McGrath  <roland@redhat.com>
2692
2693         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2694         * locale/localeinfo.h: Declare it.
2695         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2696         current locale if it's not in the file list.
2697         Call _nl_archive_subfreeres.
2698
2699 2002-08-10  Andreas Jaeger  <aj@suse.de>
2700
2701         * sysdeps/i386/strchr.S: Add comment.
2702
2703 2002-08-10  Roland McGrath  <roland@redhat.com>
2704
2705         * include/wchar.h (putwc): Use libc_hidden_proto.
2706         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2707         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2708         * stdio-common/dprintf.c: Add libc_hidden_def.
2709         * stdio-common/fprintf.c: Likewise.
2710         * stdio-common/sprintf.c: Likewise.
2711         * stdio-common/sscanf.c: Likewise.
2712         * libio/iofwrite.c: Likewise.
2713         * libio/memstream.c: Likewise.
2714         * libio/putwc.c: Likewise.
2715         * stdio-common/perror.c: Likewise.
2716         * sysdeps/posix/remove.c: Likewise.
2717         * sysdeps/generic/remove.c: Likewise.
2718         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2719         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2720
2721 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2722
2723         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2724         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2725         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2726         towlower, towupper): Add libc_hidden_weak.
2727
2728         * include/bits/dlfcn.h: New file.
2729         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2730
2731         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2732         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2733         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2734         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2735         * include/shadow.h (_nss_files_parse_spent): Likewise.
2736         * include/netdb.h (_nss_files_parse_protoent,
2737         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2738         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2739         (LINE_PARSER): Use it.
2740         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2741         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2742
2743         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2744         #endif.
2745
2746         * manual/debug.texi (%MENU%): Remove trailing dot.
2747         Reported by <hayastan132@hotmail.com>.
2748
2749         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2750         aliases.
2751         (lseek): Dummy.
2752         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2753         Likewise.
2754
2755 2002-08-09  Roland McGrath  <roland@redhat.com>
2756
2757         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2758         name to find codeset name (if any) and normalize it.  If the
2759         normalized name differs, look up only that in the archive.
2760         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2761         contains a codeset, normalize the codeset store only the normalized
2762         name in the archive.  If not, add an alias containing the locale's
2763         normalized codeset name.  Apply codeset name normalization when
2764         matching entries in the alias file.
2765
2766         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
2767         decrement HEAD->namehash_used here.
2768         (add_locale): Only need to insert name string when name_offset != 0.
2769
2770         * locale/programs/localedef.c (options): Add -A/--alias-file.
2771         (alias_file): New variable.
2772         (parse_opt): Grok -A, set that.
2773         * locale/programs/localedef.h: Declare it.
2774
2775         * locale/locarchive.h (struct locrecent): Add `refs' member.
2776         * locale/programs/locarchive.c (insert_name): New function, broken out
2777         of ...
2778         (add_locale_to_archive): ... here.  Call that.
2779         (add_alias): New function.
2780         (add_locale): New static function, add_locale_to_archive renamed.
2781         (add_locale_to_archive): Call that and use add_alias to add an alias
2782         for the name with codeset if the given name lacks it.
2783         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
2784
2785         * locale/Makefile (routines): Add loadarchive.
2786         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
2787         (_nl_load_locale_from_archive): New function.
2788         * locale/localeinfo.h: Declare it.
2789         * locale/findlocale.c (_nl_find_locale): If using default locale path,
2790         try _nl_load_locale_from_archive first.
2791
2792         * locale/loadlocale.c (_nl_intern_locale_data): New function,
2793         broken out of _nl_load_locale.
2794         (_nl_load_locale): Call that.
2795         * locale/localeinfo.h: Declare it.
2796         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
2797         (struct locale_data): Remove unused member `options'.
2798         * locale/findlocale.c (_nl_remove_locale): Update uses.
2799         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2800         * locale/C-collate.c: Update initializer.
2801         * locale/C-identification.c: Likewise.
2802         * locale/C-measurement.c: Likewise.
2803         * locale/C-telephone.c: Likewise.
2804         * locale/C-address.c: Likewise.
2805         * locale/C-name.c: Likewise.
2806         * locale/C-paper.c: Likewise.
2807         * locale/C-time.c: Likewise.
2808         * locale/C-numeric.c: Likewise.
2809         * locale/C-monetary.c: Likewise.
2810         * locale/C-messages.c : Likewise.
2811         * locale/C-ctype.c: Likewise.
2812
2813         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
2814         use CHAR_BIT instead of BITSPERBYTE.
2815
2816         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
2817         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
2818         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
2819         (_nl_remove_locale): Likewise.
2820         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
2821
2822         * locale/findlocale.c (_nl_default_locale_path): New variable.
2823         (_nl_find_locale): If LOCALE_PATH is null, default to that.
2824         * locale/localeinfo.h: Declare it.
2825         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
2826         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
2827         * locale/newlocale.c (__newlocale): Likewise.
2828
2829         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
2830         * inet/rexec.c (rexec_af): Add libc_hidden_def.
2831         * sysdeps/generic/morecore.c: Likewise.
2832         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
2833         (__libc_current_sigrtmax): Likewise.
2834
2835 2002-08-08  Roland McGrath  <roland@redhat.com>
2836
2837         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
2838         * catgets/open_catalog.c (__open_catalog): Likewise.
2839
2840         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
2841         from typo INITIAL_NUM_NANES.
2842         (create_archive): Update use.
2843
2844 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2845
2846         * sysdeps/unix/sysv/linux/sigwait.c: New file.
2847
2848 2002-08-08  Roland McGrath  <roland@frob.com>
2849
2850         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
2851
2852 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2853
2854         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
2855         else and undefine after including wcstol_l.c.
2856         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
2857
2858 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
2859
2860         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
2861
2862 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
2863
2864         * configure.in: Make the test for broken_alias_attribute stricter.
2865
2866 2002-05-24  Robert Love  <rml@tech9.net>
2867
2868         * posix/Makefile (routines): Add sched_getaffinity and
2869         sched_setaffinity.
2870         * posix/sched.h: Add declarations for sched_getaffinity and
2871         sched_setaffinity.
2872         * sysdeps/generic/sched_getaffinity.c: New file.
2873         * sysdeps/generic/sched_setaffinity.c: New file.
2874         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
2875         sched_setaffinity.
2876
2877 2002-08-06  Andreas Schwab  <schwab@suse.de>
2878
2879         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
2880
2881 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2882
2883         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
2884         message.
2885
2886         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
2887         It is known to be defined.
2888
2889         * include/string.h: Define index and rindex only if _ISOMAC is not
2890         defined.
2891
2892         * elf/rtld.c: Include <errno.h>.
2893         * sysdeps/generic/libc-tls.c: Likewise.
2894
2895 2002-08-07  Roland McGrath  <roland@redhat.com>
2896
2897         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
2898         it internally.
2899         (precsize_aton): Likewise.
2900
2901         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
2902         the static symbols added in the last change (doofus is me).
2903
2904         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
2905         loop to notice missing categories in a composite name.
2906
2907         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
2908         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
2909         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
2910         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
2911
2912 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
2913
2914         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
2915
2916 2002-08-07  Roland McGrath  <roland@redhat.com>
2917
2918         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
2919         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
2920         Reported by Jakub Jelinek  <jakub@redhat.com>.
2921
2922 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
2923
2924         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
2925         division.
2926
2927 2002-08-06  Roland McGrath  <roland@redhat.com>
2928
2929         * include/getopt.h: Put private decls inside [_GETOPT_H].
2930         Use libc_hidden_proto for getopt_long, getopt_long_only.
2931         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
2932         Add libc_hidden_def.
2933
2934         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
2935         Define as a macro for __dl_iterate_phdr.
2936
2937         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
2938         made static.  Add __ name as a strong alias.
2939         (internal_endnetgrent): Likewise.
2940         (internal_getnetgrent_r): Likewise.
2941
2942         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
2943         with no __ prefix.
2944         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
2945         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
2946         all *_l functions with no __ prefix.
2947         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
2948         * ctype/ctype_l.c: Likewise.
2949         * locale/nl_langinfo.c: Likewise.
2950         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
2951         * stdlib/stdlib.h [__USE_GNU]: Likewise.
2952         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
2953         * wctype/wctype.h [__USE_GNU]: Likewise.
2954         * string/strcoll_l.c (strcoll_l): Define as weak alias.
2955         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
2956         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
2957         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
2958         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
2959         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
2960         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
2961         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
2962         (__wcscasecmp_l): Add libc_hidden_def.
2963         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
2964         (__wcsncasecmp_l): Add libc_hidden_def.
2965         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
2966         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
2967         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
2968         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
2969         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
2970         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
2971         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
2972         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
2973         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
2974         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
2975         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
2976         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
2977         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
2978         * wctype/wctype_l.c (wctype_l) Define as weak alias.
2979
2980 2002-08-05  Roland McGrath  <roland@redhat.com>
2981
2982         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
2983         netname2user, host2netname, user2netname, key_gendes.
2984         * sunrpc/netname.c: Add libc_hidden_def.
2985         * sunrpc/key_call.c: Likewise.
2986
2987         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
2988         freeaddrinfo.
2989         * inet/getnameinfo.c: Add libc_hidden_def.
2990         * sysdeps/generic/getaddrinfo.c: Likewise.
2991         * sysdeps/posix/getaddrinfo.c: Likewise.
2992
2993         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
2994         * wcsmbs/wmemchr.c: Add libc_hidden_def.
2995         * wcsmbs/wmemset.c: Add libc_hidden_def.
2996
2997         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
2998         (index, rindex): Define as macros for strchr, strrchr.
2999
3000         * string/envz.c (envz_strip): index -> strchr
3001
3002         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3003         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3004
3005         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3006         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3007
3008         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3009         * stdlib/wctomb.c: Add libc_hidden_def.
3010
3011         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3012         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3013         * resolv/herror.c: Likewise.
3014         * inet/rcmd.c: Add libc_hidden_def.
3015         * inet/ruserpass.c: Likewise.
3016         * inet/getnetgrent_r.c: Likewise.
3017
3018         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3019         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3020         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3021         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3022         libc_hidden_def.
3023         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3024         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3025
3026         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3027         __libc_system.
3028         (__libc_system): Call it, putting just the line == NULL test here.
3029
3030         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3031         variables work right.
3032
3033         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3034         * elf/dl-close.c (_dl_close): Likewise.
3035
3036         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3037         in6addr_any, in6addr_loopback.  Remove decls for
3038         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3039         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3040         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3041         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3042         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3043         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3044         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3045         in6addr_loopback.
3046         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3047
3048         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3049         ether_aton_r.
3050         * inet/ether_aton_r.c: Add libc_hidden_def.
3051         * inet/ether_ntoa_r.c: Likewise.
3052
3053         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3054         xprt_unregister.
3055         * sunrpc/svc.c: Add libc_hidden_def.
3056         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3057         pmap_set, pmap_unset.
3058         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3059         * sunrpc/pm_getport.c: Likewise.
3060         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3061         * sunrpc/publickey.c: Add libc_hidden_def.
3062
3063 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3064
3065         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3066         the other memset call in this function.
3067
3068         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3069         at correct index.  Clear BSS region now that memalign is used.
3070
3071 2002-08-05  Roland McGrath  <roland@redhat.com>
3072
3073         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3074         * sysdeps/generic/uname.c: Add libc_hidden_def.
3075         * sysdeps/mach/hurd/uname.c: Likewise.
3076
3077 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3078
3079         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3080         wcspbrk): Add libc_hidden_proto.
3081         * time/strftime.c (my_strftime): Add libc_hidden_def.
3082         (strftime): Remove libc_hidden_def.
3083         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3084         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3085         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3086         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3087         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3088         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3089
3090         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3091         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3092         __rpc_thread_createerr): Add libc_hidden_proto.
3093         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3094         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3095         __rpc_thread_createerr): Add libc_hidden_def.
3096
3097         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3098         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3099         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3100         clnt_perror, clnt_sperror): Add libc_hidden_def.
3101         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3102
3103         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3104         libc_hidden_proto.
3105         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3106         * sunrpc/des_soft.c (des_setparity): Likewise.
3107
3108         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3109         Add libc_hidden_proto.
3110         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3111         Add libc_hidden_def.
3112
3113 2002-08-05  Roland McGrath  <roland@redhat.com>
3114
3115         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3116         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3117         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3118         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3119         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3120         old data, abandoning the original memory allocated by rtld at startup,
3121         instead of calling realloc normally.
3122
3123 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3124
3125         * po/fr.po: Update from translation team.
3126
3127 2002-08-04  Roland McGrath  <roland@redhat.com>
3128
3129         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3130         then generate a dummy module under the given name, obeying the
3131         normal rules for the "caller" field.
3132
3133         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3134         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3135
3136         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3137         weak here; we declare it weak or strong in the one place we use it.
3138         * sysdeps/generic/libc-start.c: ... which is here.
3139         Don't make the decl weak if [USE_TLS], since static programs need TLS
3140         setup even when single-threaded.
3141
3142         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3143
3144         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3145         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3146         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3147         all these variables.
3148
3149 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3150
3151         * include/stdio.h: Don't define macro magic to redirect function
3152         calls if _ISOMAC is defined.
3153
3154         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3155         ldouble asin tests.
3156
3157 2002-08-04  Roland McGrath  <roland@redhat.com>
3158
3159         * stdlib/lrand48_r.c: Add libc_hidden_def.
3160
3161         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3162         TCB with __libc_memalign instead of mmap.
3163         (_dl_deallocate_tls): Free it with free instead of munmap.
3164
3165         * Makerules (cpp-srcs-left): When setting this to run
3166         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3167         words.  Combine the two loops into one on the concatenated list,
3168         including those as well as $(test-srcs).
3169
3170         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3171         since we align here with optimally minimal waste anyway.
3172         (malloc): Just call that.
3173
3174         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3175         the right variable.
3176
3177         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3178         to compute memory location for l_tls_initimage.
3179         * elf/rtld.c (_dl_start): Likewise.
3180         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3181
3182         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3183         because the .d file is generated in the non-shared case and
3184         so fails to catch them otherwise.
3185
3186         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3187         split out of _dl_allocate_tls.
3188         (_dl_allocate_tls_init): Likewise.
3189         (_dl_allocate_tls): Call those.
3190         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3191         * elf/rtld.c (dl_main): Call them separately instead of calling
3192         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3193         is finished, so that the initializer data has been relocated before we
3194         copy it into the main thread's TLS block.
3195
3196         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3197         loop conditions, prevented the last used module from being initialized.
3198
3199 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3200
3201         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3202         if glob resp. globfree are not macros.
3203         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3204         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3205         Add libc_hidden_ver.
3206         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3207         libc_hidden_def.
3208         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3209         instead of libc_hidden_weak.
3210         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3211         libc_hidden_ver instead of libc_hidden_def.
3212         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3213         libc_hidden_ver instead of libc_hidden_def.
3214         (wcstoll, wcstoq): Remove libc_hidden_weak.
3215         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3216         libc_hidden_ver.
3217         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3218         libc_hidden_ver.
3219         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3220         libc_hidden_ver.
3221         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3222         libc_hidden_ver.
3223
3224 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3225
3226         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3227         to access _sys_siglist.
3228         * string/strsignal.c: Likewise.
3229         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3230         * sysdeps/gnu/siglist.c: Likewise.
3231         * sysdeps/unix/siglist.c: Likewise.
3232         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3233
3234         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3235
3236         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3237
3238         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3239         alias and use it.
3240         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3241
3242         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3243         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3244         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3245
3246         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3247         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3248
3249         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3250         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3251         and __gconv_get_cache respectively.
3252         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3253         defined static.  Change all users.
3254         (__gconv_get_cache): New function.
3255         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3256         (__gconv_get_alias_db): New function.
3257         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3258         (__conv_modules_db): Likewise.
3259         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3260         and __gconv_get_alias_db.
3261         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3262         variables.
3263
3264         * include/stdlib.h: Add prototype and libc_hidden_proto for
3265         __default_morecore.
3266         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3267
3268         * malloc/obstack.c: Remove fputs macro.
3269
3270         * malloc/mtrace.c: Remove fopen macro.
3271
3272 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3273
3274         * manual/debug.texi: Fix spelling to programmatically.
3275         Reported by <hayastan132@hotmail.com>.
3276
3277 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3278
3279         * include/libio.h: Add libc_hidden_proto for __uflow.
3280         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3281         fgetpos to _IO_* names.
3282         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3283         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3284         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3285         putwc_unlocked, vswscanf.
3286         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3287         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3288         * libio/fseek.c: Likewise.
3289         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3290         not fopencookie.
3291         * libio/genops.c (__uflow): Add libc_hidden_def.
3292         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3293         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3294         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3295         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3296         * libio/iofread_u.c (fread_unlocked): Likewise.
3297         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3298         * libio/iovswscanf.c (vswscanf): Likewise.
3299         * libio/putwc_u.c (putwc_unlocked): Likewise.
3300         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3301         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3302         * malloc/mtrace.c: Likewise.
3303
3304         * sunrpc/clnt_perr.c: Remove fputs macro.
3305         * sunrpc/svc_simple.c: Likewise.
3306         * sunrpc/svc_tcp.c: Likewise.
3307         * sunrpc/svc_udp.c: Likewise.
3308         * sunrpc/xdr_rec.c: Likewise.
3309         * sunrpc/xdr_ref.c: Likewise.
3310
3311         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3312         iconv_prog, linereader, and charmap-dir.
3313         * locale/Makefile: Likewise for locale and charmap-dir.
3314         * malloc/Makefile: Likewise for memusagestat.
3315         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3316         * sunrpc/Makefile: Likewise for rpc_main.
3317         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3318         * timezone/Makefile: Likewise for zic.
3319
3320         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3321
3322         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3323         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3324         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3325         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3326         _dl_close.
3327
3328         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3329         __wunderflow.
3330         * libio/genops.c (__underflow): Add libc_hidden_def.
3331         * libio/wgenops.c (__wuflow): Likewise.
3332         (__wunderflow): Likewise.
3333
3334         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3335         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3336
3337         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3338         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3339
3340         * include/string.h: Add libc_hidden_proto for __strverscmp.
3341         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3342
3343         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3344         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3345         * sysdeps/posix/sysconf.c: Likewise.
3346         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3347         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3348
3349         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3350         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3351         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3352         __iswxdigit_l, __towlower_l, __towupper_l.
3353         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3354         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3355
3356         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3357         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3358         * sysdeps/mach/hurd/xmknod.c: Likewise.
3359         * sysdeps/unix/xmknod.c: Likewise.
3360         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3361         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3362         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3363
3364         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3365
3366 2002-08-03  Roland McGrath  <roland@redhat.com>
3367
3368         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3369         setpriority.
3370         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3371         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3372         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3373         * sysdeps/mach/hurd/setpriority.c: Likewise.
3374         * sysdeps/mach/hurd/getpriority.c: Likewise.
3375         * sysdeps/generic/setpriority.c: Likewise.
3376         * sysdeps/generic/getpriority.c: Likewise.
3377
3378         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3379         * malloc/mcheck.c: Add libc_hidden_def.
3380
3381         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3382         * misc/hsearch_r.c: Add libc_hidden_def.
3383
3384         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3385         * posix/fnmatch.c: Add libc_hidden_weak.
3386
3387         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3388         execl, execle, execlp, execvp, getpid, getsid.
3389         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3390         * sysdeps/unix/alarm.c: Likewise.
3391         * posix/confstr.c: Likewise.
3392         * posix/execvp.c: Likewise.
3393         * posix/execlp.c: Likewise.
3394         * posix/execle.c: Likewise.
3395         * posix/execl.c: Likewise.
3396         * sysdeps/generic/getsid.c: Likewise.
3397         * sysdeps/mach/hurd/getsid.c: Likewise.
3398         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3399         * sysdeps/mach/hurd/getpid.c: Likewise.
3400
3401         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3402         qecvt_r, qfcvt_r, lrand48_r.
3403         * misc/efgcvt_r.c: Add libc_hidden_def.
3404
3405         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3406         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3407
3408         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3409         * locale/nl_langinfo.c: Add libc_hidden_def.
3410
3411         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3412         * sysdeps/generic/glob.c: Add libc_hidden_def.
3413         * sysdeps/generic/glob64.c: Likewise.
3414         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3415
3416         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3417
3418         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3419
3420         * locale/setlocale.c (_nl_current_names): Variable moved ...
3421         * locale/localename.c (_nl_current_names): ... here, new file.
3422         Make it global, with attribute_hidden.
3423         * locale/localeinfo.h: Declare it.
3424         * locale/Makefile (aux): Add localename.
3425         * locale/localename.c (__current_locale_name): New function.
3426         * include/locale.h (__current_locale_name): Declare it.
3427         * intl/dcigettext.c (guess_category_value): Use that instead of
3428         calling setlocale.
3429
3430         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3431         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3432         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3433         * locale/newlocale.c: Add alias to __ name.
3434         * locale/duplocale.c: Likewise.
3435         * locale/freelocale.c: Likewise.
3436         * locale/uselocale.c: New file.
3437         * locale/Makefile (routines): Add it.
3438         * locale/Versions (libc: GLIBC_2.3): New set.
3439         Add newlocale, duplocale, freelocale, uselocale.
3440         (libc: GLIBC_PRIVATE): Add __uselocale.
3441
3442         * locale/localeinfo.h [SHARED]
3443         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3444         (_NL_CURRENT_DATA): Define using that.
3445         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3446         (_NL_CURRENT_DEFINE): Define to empty.
3447         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3448         conditionalized on this.
3449         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3450         taking initializer of _nl_C_locobj.
3451         [SHARED] (_nl_global_locale): New variable, using that initializer.
3452         (_nl_C_locobj): Use new macro for initialzier.
3453         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3454         [! SHARED] (CATEGORY_USED): New macro.
3455         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3456         (setdata, setlocale): Use that macro instead of examining _nl_current.
3457         (setdata): Set the slot in _nl_global_locale.
3458         Conditionalize setting of _nl_current on [! SHARED].
3459         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3460         declaration as an extern.
3461         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3462
3463         * include/locale.h: Use libc_hidden_proto for setlocale.
3464         * locale/setlocale.c: Add libc_hidden_def.
3465
3466         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3467
3468         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3469         * misc/hsearch_r.c: Add libc_hidden_def.
3470         * misc/lsearch.c: Likewise.
3471
3472         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3473         endttyent.
3474         * misc/getttyent.c: Add libc_hidden_def.
3475
3476         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3477         * malloc/mcheck.c: Add libc_hidden_def.
3478
3479         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3480         * include/argz.h: Use libc_hidden_proto for argz_delete.
3481         * string/argz-delete.c: Add libc_hidden_def.
3482         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3483
3484         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3485         HIDDEN_JUMPTARGET for _exit.
3486         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3487         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3488         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3489         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3490
3491         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3492         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3493         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3494         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3495
3496         * include/stdlib.h: Use libc_hidden_proto for abort,
3497         __strtof_internal, __strtod_internal, __strtold_internal,
3498         __strtol_internal, __strtoll_internal, __strtoul_internal,
3499         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3500         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3501         __strtoul_l_internal, __strtoull_l_internal.
3502         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3503         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3504         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3505         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3506         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3507         __wcsncasecmp_l.
3508         * sysdeps/generic/abort.c: Add libc_hidden_def.
3509         * stdlib/strtod.c: Likewise.
3510         * sysdeps/generic/strtol.c: Likewise.
3511         * sysdeps/wordsize-64/strtol.c: Likewise.
3512         * sysdeps/wordsize-64/wcstol.c: Likewise.
3513         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3514
3515         * include/stdlib.h: Use libc_hidden_proto for qsort.
3516         * stdlib/msort.c: Add libc_hidden_def.
3517
3518         * include/utime.h: Use libc_hidden_proto for utime.
3519         * sysdeps/generic/utime.c: Add libc_hidden_def.
3520         * sysdeps/unix/utime.c: Likewise.
3521
3522         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3523         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3524         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3525         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3526         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3527
3528         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3529         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3530         and __libc_current_sigrtmax.
3531         * signal/sigismem.c: Add libc_hidden_def.
3532         * signal/sigfillset.c: Likewise.
3533         * signal/sigempty.c: Likewise.
3534         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3535         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3536         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3537         * sysdeps/posix/raise.c: Likewise.
3538         * sysdeps/generic/raise.c: Likewise.
3539
3540 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3541
3542         * include/string.h: Use libc_hidden_proto for __stpcpy.
3543         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3544         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3545         * sysdeps/generic/stpcpy.c: Likewise.
3546         * sysdeps/i386/stpcpy.S: Likewise.
3547         * sysdeps/i386/i586/stpcpy.S: Likewise.
3548         * sysdeps/powerpc/stpcpy.S: Likewise.
3549         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3550         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3551
3552         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3553         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3554         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3555         libc_hidden_def.
3556         * string/strdup.c (__strdup): Likewise.
3557         * string/strndup.c (__strndup): Likewise.
3558         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3559         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3560
3561 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3562
3563         * include/libio.h: New file.
3564         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3565         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3566         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3567         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3568         * sysdeps/unix/common/syscalls.list: Likewise.
3569         * sysdeps/unix/inet/syscalls.list: Likewise.
3570         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3571         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3572         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3573         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3574         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3575         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3576         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3577         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3578         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3579         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3580         * sysdeps/unix/syscalls.list: Likewise.
3581
3582 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3583             Ulrich Drepper  <drepper@redhat.com>
3584
3585         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3586         the arguments is big enough to cause an overflow.
3587
3588 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3589
3590         * assert/assert.c: Use hidden_def not INTDEF.
3591
3592 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3593
3594         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3595         not defined.
3596
3597 2002-08-03  Roland McGrath  <roland@redhat.com>
3598
3599         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3600         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3601         verr, verrx.
3602         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3603         * misc/syslog.c: Add libc_hidden_def.
3604         * misc/err.c: Likewise.
3605         * stdlib/exit.c: Likewise.
3606         * stdlib/bsearch.c: Likewise.
3607         * sysdeps/generic/getenv.c: Likewise.
3608
3609         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3610
3611         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3612         libc_hidden_weak for every system call symbol defined.
3613
3614         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3615         timelocal, localtime, strftime.
3616         * time/asctime.c: Add libc_hidden_def.
3617         * time/mktime.c: Likewise.
3618         * time/localtime.c: Likewise.
3619         * time/strftime.c: Likewise.
3620         * time/strptime.c: Likewise.
3621         * sysdeps/generic/time.c: Likewise.
3622         * sysdeps/unix/time.c: Likewise.
3623         * sysdeps/unix/sysv/i386/time.S: Likewise.
3624         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3625
3626         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3627         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3628         * resolv/inet_ntop.c: Likewise.
3629         * resolv/inet_pton.c: Likewise.
3630         * inet/inet_mkadr.c: Add libc_hidden_def.
3631         * inet/inet_netof.c: Likewise.
3632         * resolv/inet_addr.c: Likewise.
3633
3634         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3635         clauses from conditionals for now.  Will have to be fixed later
3636         for older compilers.
3637
3638         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3639
3640 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3641
3642         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3643         broken alias attribute handling.
3644         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3645
3646 2002-08-02  Roland McGrath  <roland@frob.com>
3647
3648         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3649         since it sets the variables we use in a -D switch.
3650
3651 2002-08-02  Roland McGrath  <roland@redhat.com>
3652
3653         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3654         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3655         matches long int, not int.
3656
3657         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3658         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3659         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3660         * wctype/wctrans.c (wctrans): Likewise.
3661         * wctype/wctype.c (__wctype): Likewise.
3662         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3663
3664 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3665
3666         * assert/assert.c (__assert_fail): Fix typo in comment.
3667
3668         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3669         * sunrpc/rpc_thread.c: Define it without static.
3670         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3671
3672 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3673
3674         * assert/assert.c (__assert_fail): Remove undef.
3675         Replace INTDEF with libc_hidden_def.
3676         * assert/__assert.c (__assert): Remove INTUSE.
3677         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3678         libc_hidden_weak.
3679         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3680         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3681         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3682         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3683         libm_hiden_ver): Define.
3684         * include/assert.h (__assert_fail_internal): Remove.
3685         (__assert_fail): Add prototype.  Add hidden_proto.
3686         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3687         libc_hidden_proto.
3688         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3689         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3690         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3691         Add libc_hidden_proto.
3692         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3693         __fcntl): Add libc_hidden_proto.  Remove macros.
3694         (__open_internal, __fcntl_internal): Remove.
3695         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3696         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3697         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3698         libc_hiden_proto.
3699         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3700         libc_hidden_def.
3701         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3702         Add libc_hidden_def.
3703         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3704         * sysdeps/generic/open.c (__open): Remove undef.
3705         Add libc_hidden_def.  Remove INTDEF.
3706         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3707         Add libc_hidden_def.
3708         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3709         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3710         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3711         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3712         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3713         (__libc_fcntl): Add libc_hidden_def.
3714         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3715         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3716         (__libc_open): Add libc_hidden_def.
3717         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3718         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3719         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3720         Add libc_hidden_def.
3721         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3722         Add libc_hidden_def.
3723         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3724         undef.
3725         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3726         (__libc_fcntl): Add libc_hidden_def.
3727         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3728         __getpgid_internal, __chown_internal): Remove.
3729         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3730         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3731         __GI___chown): Add.
3732         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3733         __getpid_internal, __open_internal, __write_internal): Remove.
3734         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3735         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3736         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3737         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3738         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3739         Replace INTDEF with libc_hidden_def.
3740         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3741         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3742         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3743         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3744         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3745         Add libc_hidden_proto.
3746         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3747         * include/sys/select.h (__select): Likewise.
3748         * include/sys/socket.h (__send): Likewise.
3749         * include/sys/statfs.h (__statfs): Likewise.
3750         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3751         __getpid, __getpgid, __setpgid, __close, __read, __write,
3752         __getpagesize, __sbrk): Likewise.
3753         (__chown_internal, __dup2_internal, __getpid_internal,
3754         __getpgid_internal, __close_internal, __write_internal,
3755         __getpagesize_internal): Remove.
3756         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3757         Remove macros.
3758         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3759         * include/sched.h (__sched_setscheduler): Likewise.
3760         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3761         * include/stdlib.h (__secure_getenv): Likewise.
3762         * include/signal.h (__sigaction, __sigsuspend): Likewise.
3763         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
3764         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
3765         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
3766         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
3767         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
3768         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
3769         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
3770         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
3771         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
3772         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
3773         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
3774         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
3775         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
3776         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
3777         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
3778         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3779         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3780         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3781         * libio/genops.c (__overflow): Add libc_hidden_def.
3782         * libio/iovdprintf.c: Remove libio.h include.
3783         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
3784         libc_hidden_weak): Define to nothing if not defined.
3785         (__overflow, __woverflow): Add libc_hidden_proto.
3786         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
3787         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
3788         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3789         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
3790         (DB_LOOKUP_FCT): Add libc_hidden_proto.
3791         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
3792         and libc_hidden_def.
3793         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
3794         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
3795         (__getpgid): Add libc_hidden_proto.
3796         (__bsd_getpgrp): Remove INTUSE.
3797         * resolv/res_init.c (__res_ninit, __res_randomid): Add
3798         libc_hidden_def.
3799         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
3800         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
3801         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
3802         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
3803         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
3804         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
3805         __rpc_thread_createerr): Add libc_hidden_def.
3806         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
3807         libc_hidden_def.
3808         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
3809         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
3810         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
3811         * sysdeps/generic/chown.c (__chown): Likewise.
3812         * sysdeps/generic/close.c (__close): Likewise.
3813         * sysdeps/generic/dup2.c (__dup2): Likewise.
3814         * sysdeps/generic/pipe.c (__pipe): Likewise.
3815         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
3816         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
3817         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
3818         * sysdeps/generic/read.c (__libc_read): Likewise.
3819         (__read): Add libc_hidden_weak.
3820         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
3821         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
3822         * sysdeps/generic/select.c (__select): Likewise.
3823         * sysdeps/generic/send.c (__send): Likewise.
3824         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
3825         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
3826         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
3827         * sysdeps/generic/statfs.c (__statfs): Likewise.
3828         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
3829         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
3830         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
3831         Remove undef and INTDEF.
3832         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
3833         * sysdeps/generic/getpid.c (__getpid): Likewise.
3834         * sysdeps/generic/write.c (__libc_write): Likewise.
3835         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3836         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
3837         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3838         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
3839         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
3840         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
3841         Remove undef and INTDEF.
3842         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
3843         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
3844         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3845         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3846         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
3847         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
3848         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
3849         (__pipe): Add libc_hidden_def.
3850         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
3851         libc_hidden_weak.
3852         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
3853         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
3854         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
3855         (__read): Add libc_hidden_weak.
3856         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
3857         (__libc_pwrite64): Add libc_hidden_def.
3858         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3859         * sysdeps/mach/hurd/select.c (__select): Likewise.
3860         * sysdeps/mach/hurd/send.c (__send): Likewise.
3861         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
3862         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3863         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
3864         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3865         * sysdeps/posix/dup2.c: Likewise.
3866         Remove undef and INTDEF.
3867         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
3868         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
3869         (__pwrite64): Add libc_hidden_weak.
3870         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
3871         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
3872         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
3873         * sysdeps/standalone/close.c (__close): Likewise.
3874         * sysdeps/standalone/write.c (__libc_write): Likewise.
3875         (__write): Add libc_hidden_weak.
3876         * sysdeps/standalone/read.c (__read): Likewise.
3877         (__libc_read): Add libc_hidden_def.
3878         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
3879         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
3880         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
3881         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
3882         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
3883         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
3884         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
3885         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
3886         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
3887         __GI___sigaction): Add.
3888         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
3889         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
3890         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
3891         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
3892         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
3893         __GI___setpgid): Add.
3894         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
3895         Remove undef and INTDEF.
3896         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
3897         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
3898         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
3899         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
3900         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
3901         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
3902         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
3903         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
3904         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
3905         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
3906         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
3907         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
3908         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
3909         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
3910         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
3911         __GI___statfs, __GI___send): Add.
3912         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
3913         libc_hidden_ver resp. libc_hidden_def.
3914         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
3915         libc_hidden_def.
3916         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
3917         Likewise.  Remove undef and INTDEF.
3918         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
3919         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
3920         __GI___statfs, __GI___send): Add.
3921         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
3922         libc_hidden_def.
3923         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
3924         Likewise.
3925         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
3926         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
3927         libc_hidden_ver resp. libc_hidden_def.
3928         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
3929         __GI___send): Add.
3930         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
3931         Add libc_hidden_weak.
3932         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
3933         Add libc_hidden_def.
3934         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
3935         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
3936         libc_hidden_weak.
3937         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
3938         resp. libc_hidden_def.
3939         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
3940         libc_hidden_weak.
3941         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
3942         INTDEF.
3943         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
3944         Likewise.  Remove undef.
3945         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
3946         libc_hidden_weak.
3947         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
3948         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
3949         libc_hidden_weak.
3950         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
3951         libc_hidden_def.
3952         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
3953         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3954         Likewise.  Remove undef and INTDEF.
3955         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
3956         libc_hidden_def.
3957         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
3958         libc_hidden_weak.
3959         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
3960         libc_hidden_def.
3961         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3962         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
3963         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
3964         libc_hidden_weak.
3965         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
3966         Add libc_hidden_def.
3967         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
3968         __GI___statfs): Add.
3969         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
3970         libc_hidden_weak.
3971         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
3972         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
3973         Remove undef and INTDEF.
3974         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
3975         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
3976         libc_hidden_def.
3977         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
3978         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
3979         libc_hidden_weak.
3980         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
3981         libc_hidden_def.
3982         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
3983         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
3984         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
3985         Add.
3986         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
3987         libc_hidden_def.  Remove undef and INTDEF.
3988         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
3989         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
3990         libc_hidden_def.
3991         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
3992         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
3993         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
3994         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
3995         Remove undef and INTDEF.
3996         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
3997         broken visibility attribute handling.
3998         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
3999
4000 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4001
4002         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4003         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4004
4005         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4006         previous patch.
4007
4008 2002-06-29  Todd Fries  <todd@openbsd.org>
4009
4010         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4011
4012 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4013
4014         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4015
4016 2002-07-30  Roland McGrath  <roland@redhat.com>
4017
4018         * resolv/resolv.h (_res): Define macro unconditionally.
4019         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4020         * include/resolv.h: ... here.
4021         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4022         as a __thread variable.
4023         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4024         a __thread variable instead of a global.
4025         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4026
4027         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4028         time we test it.
4029
4030         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4031
4032         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4033         decls of memset and memcpy.
4034
4035         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4036         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4037
4038         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4039
4040         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4041         (__libc_tsd_define): Define using __thread.
4042
4043         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4044         (__rpc_thread_variables): Use __libc_tsd_get.
4045         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4046         __rpc_thread_variables, which might allocate what we're about to free.
4047
4048         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4049         thread-local variable.
4050         * resolv/netdb.h (h_errno): Define macro unconditionally.
4051         [_LIBC] (__set_h_errno): Macro moved to ...
4052         * include/netdb.h: ... here.
4053         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4054         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4055         [! _LIBC_REENTRANT]: #undef h_errno here.
4056
4057         * include/errno.h: Protect from multiple inclusion.
4058
4059         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4060         before defining them, since Linux's <linux/posix_types.h> might have
4061         defined them.
4062
4063 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4064
4065         * malloc/malloc.c (public_cALLOc): Check for overflow on
4066         multiplication.
4067         * sunrpc/xdr_array.c (xdr_array): Likewise.
4068         * sunrpc/rpc/types.h (mem_free): Add comment.
4069         Patch by Solar Designer <solar@openwall.com>.
4070
4071 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4072
4073         * sysdeps/unix/sysv/linux/kernel-features.h
4074         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4075
4076 2002-08-01  Roland McGrath  <roland@redhat.com>
4077
4078         * libio/fileops.c (_IO_file_sync_mmap): New function.
4079         (_IO_file_jumps_mmap): Use it.
4080         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4081         repeat the stat check and resize the mapped buffer as necessary.
4082
4083 2002-07-31  Roland McGrath  <roland@redhat.com>
4084
4085         * libio/fileops.c (decide_maybe_mmap): New static function.
4086         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4087         mmap the file contents.  Then switch the jump tables to the mmap
4088         tables if it worked, or the vanilla file tables if not.
4089         (_IO_file_underflow_maybe_mmap): New function.
4090         (_IO_file_seekoff_maybe_mmap): New function.
4091         (_IO_file_xsgetn_maybe_mmap): New function.
4092         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4093         * libio/libioP.h: Declare those.
4094         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4095         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4096         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4097         If the stream is read-only, set its jump tables to those new ones.
4098         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4099         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4100         We need the tables set before _IO_file_attach.
4101
4102         * libio/tst-mmap-eofsync.c: New file.
4103         * libio/tst-mmap-fflushsync.c: New file.
4104         * libio/bug-mmap-fflush.c: New file.
4105         * libio/tst-mmap2-eofsync.c: New file.
4106         * libio/Makefile (tests): Add them.
4107
4108         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4109         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4110
4111 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4112
4113         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4114         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4115         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4116         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4117         declare sys_errlist and sys_nerr.
4118         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4119         provide declarations.
4120
4121 2002-07-31  Roland McGrath  <roland@redhat.com>
4122
4123         * elf/rtld.c (dl_main): Fix typo in error message.
4124
4125 2002-07-31  Roland McGrath  <roland@frob.com>
4126
4127         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4128         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4129         sysdeps/mach/hurd/dl-sysdep.c change.
4130
4131 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4132
4133         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4134         -r`/build/include for kernel headers.
4135
4136         * po/fi.po: New file.
4137
4138 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4139
4140         * configure.in (static_nss): Set to `yes' if --disable-shared.
4141
4142 2002-07-23  Bruno Haible  <bruno@clisp.org>
4143
4144         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4145         is set.
4146
4147 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4148
4149         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4150         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4151         arguments.
4152
4153 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4154
4155         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4156         alias.
4157
4158 2002-07-21  Bruno Haible  <bruno@clisp.org>
4159
4160         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4161         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4162         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4163         trans_sysdep_tab_offset.
4164         (struct sysdep_segment): New type.
4165         (struct sysdep_string): New type.
4166         (SEGMENTS_END): New macro.
4167         * intl/gettextP.h (struct sysdep_string_desc): New type.
4168         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4169         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4170         orig_tab, trans_tab, hash_tab to const pointers because they point
4171         into read-only memory.
4172         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4173         (PRI*): Define fallback values.
4174         (get_sysdep_segment_value): New function.
4175         (_nl_load_domain): Distinguish major and minor revision parts. Add
4176         support for minor revision 1 with system dependent strings.
4177         (_nl_unload_domain): Also free the 'malloced' field.
4178         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4179         now done in loadmsgcat.c. Add support for system dependent strings.
4180
4181 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4182
4183         * posix/bug-regex7.c: New file.
4184         * posix/bug-regex8.c: New file.
4185         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4186
4187 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4188
4189         * posix/bug-regex4.c (main): Fix typos.
4190         * posix/bug-regex6.c (main): Likewise.
4191
4192 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4193
4194         * posix/bug-regex6.c (main): Fix warnings.
4195
4196         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4197
4198         * iconv/iconv_prog.c (main): Improve error message for the cases
4199         where -t and/or -f parameter are missing.
4200
4201 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4202
4203         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4204         (re_search): Likewise.
4205         (re_match_2): Likewise.
4206         (re_search_2): Likewise.
4207         (re_search_stub): New function.
4208         (re_search_2_stub): New function.
4209         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4210
4211 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4212
4213         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4214         (re_string_eoi): Use STOP instead of LEN.
4215         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4216         (re_string_construct): Likewise.
4217         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4218         * posix/regexec.c (re_search_internal): Add a new argument STOP
4219         so that it can handle the argument STOP of re_search_2 and re_match_2
4220         correctly.
4221         (regexec): Adapt to new I/F of re_search_internal.
4222         (re_search_stub): Likewise.
4223
4224 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4225
4226         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4227
4228         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4229
4230         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4231         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4232         of __divdi3.
4233
4234         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4235         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4236         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4237         alias for adjtimex syscall.
4238
4239         * elf/dl-minimal.c: Define __assert_fail_internal.
4240         * assert/assert.c: Likewise.
4241         * include/assert.h: Define __assert_file macro if !SHARED and not
4242         NOT_IN_libc.
4243
4244         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4245         programs.
4246         * locale/Makefile: Likewise.
4247         * nscd/Makefile: Likewise.
4248         * catgets/Makefile: Likewise.
4249
4250 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4251
4252         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4253         compute current position.
4254
4255         * stdio-common/tst-fseek.c (main): Improve error messages.
4256
4257         * libio/tst-freopen.c (main): Remove unused variable.
4258
4259         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4260         succesful seek call.  Simplify error checking.
4261
4262 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4263
4264         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4265         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4266
4267 2002-07-19  Roland McGrath  <roland@frob.com>
4268
4269         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4270         __libc_enable_secure is set.
4271
4272 2002-07-24  Roland McGrath  <roland@frob.com>
4273
4274         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4275         This implementation supports only IPv4.
4276         * inet/ifaddrs.h: New file.
4277         * sysdeps/generic/ifaddrs.c: New file.
4278         * sysdeps/gnu/ifaddrs.c: New file.
4279         * inet/test-ifaddrs.c: New file.
4280         * inet/Makefile (routines): Add ifaddrs.
4281         (headers): Add ifaddrs.h here.
4282         (tests): Add test-ifaddrs.
4283         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4284
4285         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4286         socket call to get an AF_INET socket, instead of using __opensock.
4287         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4288
4289         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4290         if not -1 use it instead of calling __opensock.
4291         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4292         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4293         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4294
4295         * sysdeps/mach/hurd/ifreq.h: New file.
4296         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4297         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4298         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4299
4300         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4301         which gets moved around.  Calculate size of mmap'd buffer instead.
4302
4303 2002-07-24  Philip Blundell  <philb@gnu.org>
4304
4305         * sysdeps/unix/arm/brk.S: Improve schedule.
4306         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4307         efficient instruction.
4308         (__socket): Optimize return sequence.
4309
4310 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4311
4312         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4313         sockets on old kernels.
4314
4315 2002-07-22  Philip Blundell  <philb@gnu.org>
4316
4317         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4318         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4319         alias.
4320
4321 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4322
4323         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4324         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4325
4326         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4327         test to detect duplicate locales.
4328
4329         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4330         position would be before beginning of file.
4331         (_IO_file_seekoff_mmap): Likewise.
4332         * libio/Makefile (tests): Add bug-fseek.
4333         * libio/bug-fseek.c: New file.
4334
4335         * intl/explodename.c: Remove support for CEN-style locale variables.
4336         It was never used and shouldn't be since it's not portable.
4337         * intl/finddomain.c: Likewise.
4338         * intl/l10nflist.c: Likewise.
4339         * intl/loadinfo.h: Likewise.
4340         * locale/findlocale.c: Likewise.
4341
4342 2002-07-24  Roland McGrath  <roland@frob.com>
4343
4344         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4345         position, calculate it to take into account an active pushback buffer.
4346
4347         * libio/Makefile (tests): Add bug-ungetc.
4348         * libio/bug-ungetc.c: New file.
4349
4350 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4351
4352         * sysdeps/generic/libc-tls.c: New file.
4353         * csu/Makefile (routines): Add libc-tls.
4354         (static-only-routines): Add libc-tls.
4355         * elf/dl-support.c (_dl_phdr): New variable.
4356         (_dl_phnum): New variable.
4357         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4358         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4359         for !SHARED.  First look through auxiliary vector.  If TLS always
4360         call __pthread_initialize_minimal.
4361
4362         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4363         in mmap call is never zero.
4364
4365 2002-07-23  Andreas Jaeger  <aj@suse.de>
4366
4367         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4368         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4369
4370 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4371
4372         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4373         creation and removal of the temp file.
4374
4375         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4376         file creation.
4377         * test-skeleton.c (create_temp_file): New function.
4378
4379 2002-07-22  Andreas Jaeger  <aj@suse.de>
4380
4381         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4382         local label.
4383
4384 2002-07-21  Roland McGrath  <roland@frob.com>
4385
4386         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4387         put -I../include before -I../stdlib so we get the right errno.h et al.
4388         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4389         (CFLAGS-wcstof.c): Likewise.
4390         (CFLAGS-wcstold.c): Likewise.
4391         (CFLAGS-wcstod_l.c): Likewise.
4392         (CFLAGS-wcstof_l.c): Likewise.
4393         (CFLAGS-wcstold_l.c): Likewise.
4394
4395 2002-07-19  Roland McGrath  <roland@frob.com>
4396
4397         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4398
4399 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4400
4401         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4402         __ASSUME_AT_XID is defined.
4403         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4404         for 2.4.1 and up.
4405         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4406         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4407
4408         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4409         (CFLAGS-wcstof.c): Likewise.
4410         (CFLAGS-wcstold.c): Likewise.
4411         (CFLAGS-wcstod_l.c): Likewise.
4412         (CFLAGS-wcstof_l.c): Likewise.
4413         (CFLAGS-wcstold_l.c): Likewise.
4414
4415 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4416
4417         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4418         __priority_which_t): Always typedef to int for C++.
4419
4420 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4421
4422         * configure.in: Add test for __thread support in compiler.
4423         * config.h.in: Add HAVE___THREAD.
4424         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4425         * include/sys/errno.h: Moved to...
4426         * stdlib/sys/errno.h: ...here.  New file.
4427         * stdlib/errno.h: New file.  Moved from...
4428         * include/errno.h: ...here.  Changed into an internal header defining
4429         libc-local things like __set_errno.
4430         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4431         bits/errno.h.
4432         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4433         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4434         either.
4435         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4436         from...
4437         (_dl_start_final): ...here.  Add code to initialize tls elements from
4438         bootstrap_map.
4439         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4440         if USE_TLS && HAVE___THREAD.
4441         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4442         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4443         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4444         * sysdeps/standalone/bits/errno.h: Likewise.
4445         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4446         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4447         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4448         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4449         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4450         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4451         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4452         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4453         use GL(dl_rtld_map), use map parameter.
4454         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4455         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4456         USE_TLS && HAVE___THREAD.
4457         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4458         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4459         TLS code sequence.
4460         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4461
4462         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4463         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4464         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4465         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4466         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4467         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4468
4469 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4470
4471         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4472         MS_INVALIDATE values.
4473
4474 2002-07-17  Andreas Schwab  <schwab@suse.de>
4475             Ulrich Drepper  <drepper@redhat.com>
4476
4477         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4478         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4479         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4480         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4481
4482 2002-07-01  H.J. Lu  <hjl@gnu.org>
4483
4484         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4485         return value.
4486
4487         * elf/circlemod1.c (circlemod1): Return int.
4488         * elf/circlemod2.c (circlemod2): Likewise.
4489         * elf/circlemod2a.c (circlemod2): Likewise.
4490         * elf/circlemod3.c (circlemod3): Likewise.
4491         (circlemod3a): A new function.
4492
4493 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4494
4495         * catgets/tst-catgets.c (main): Don't expect results for
4496         untranslated messages.
4497
4498         * glibcbug.in: Fix little typo.  Remove STDIO.
4499
4500         * config.h.in: Fail if __FAST_MATH__ is defined.
4501         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4502         (CPPFLAGS-test-idouble.c): Likewise.
4503         (CPPFLAGS-test-ildouble.c): Likewise.
4504
4505 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4506
4507         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4508         * intl/tst-gettext.c: Correctly handle untranslated messages in
4509         positive tests.
4510
4511         * po/de.po: Update from translation team.
4512
4513 2002-07-02  H.J. Lu  <hjl@gnu.org>
4514
4515         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4516         use ll/sc.
4517         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4518
4519         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4520         to 2.4.0 for mips.
4521
4522 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4523
4524         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4525         TLS fail if USE_TLS is not defined.
4526
4527         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4528         and adjust state for seek position.  [PR libc/4070]
4529         * libio/Makefile (tests): Add bug-rewind.
4530         * libio/bug-rewind.c: New file.
4531
4532 2002-07-12  Philip Blundell  <philb@gnu.org>
4533
4534         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4535         (__backtrace): Use it.
4536         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4537
4538 2002-07-12  Philip Blundell  <philb@gnu.org>
4539
4540         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4541         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4542         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4543         (elf_machine_rela): Remove unused variable.
4544
4545         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4546         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4547         define.
4548
4549 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4550
4551         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4552
4553 2002-07-14  Andreas Jaeger  <aj@suse.de>
4554
4555         * sysdeps/x86_64/bits/link.h: Add biarch support.
4556
4557 2002-07-13  Andreas Jaeger  <aj@suse.de>
4558
4559         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4560         Use correct indices.
4561         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4562
4563 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4564
4565         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4566         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4567         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4568         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4569         * sysdeps/s390/s390-32/bits/link.h: Remove.
4570         * sysdeps/s390/s390-64/bits/link.h: Remove.
4571         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4572         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4573         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4574         * sysdeps/s390/bits/wordsize.h: New file.
4575         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4576         elfclass.h.
4577         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4578         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4579         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4580         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4581         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4582         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4583         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4584         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4585         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4586         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4587         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4588         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4589         resource.h.
4590         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4591         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4592         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4593         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4594         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4595         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4596         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4597         sigaction.h.
4598         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4599         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4600         siginfo.h.
4601         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4602         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4603         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4604         socket.h.
4605         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4606         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4607         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4608         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4609         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4610         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4611         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4612         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4613         procfs.h.
4614         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4615         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4616         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4617         ucontext.h.
4618         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4619         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4620
4621 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4622
4623         * Versions.def (libc): Add GLIBC_2.3.
4624         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4625         * stdlib/canonicalize.c: Add compatibility version for realpath
4626         and make new code available in GLIBC_2.3.
4627
4628 2002-07-06  Bruno Haible  <bruno@clisp.org>
4629
4630         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4631
4632 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4633
4634         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4635         function do_init.  Use __libc_once.
4636         (do_init): New function.
4637
4638         * iconvdata/iso8859-11.h: Removed.
4639         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4640         (distribute): Remove iso8859-11.h.
4641         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4642
4643         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4644         underflow operation if c == (W)EOF.
4645
4646 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4647
4648         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4649         non-zero, adjust exponent.
4650         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4651         Remove NO_LONG_DOUBLE aliases.
4652         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4653         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4654         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4655         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4656         1**y and -1**+-Inf.
4657         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4658         Fix BITS_PER_MP_LIMB 32 extraction.
4659         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4660         exceptions for qNaNs.
4661         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4662         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4663         Raise exceptions when needed.  Don't recurse unnecessarily.
4664         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4665         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4666         exceptions for qNaNs.
4667         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4668         to fix *quo return value sign.
4669         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4670         case -Inf argument.
4671         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4672
4673 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4674
4675         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4676         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4677         -DNDEBUG.
4678
4679 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4680
4681         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4682         the result.
4683
4684         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4685         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4686
4687         * Versions.def (libthread_db): Add GLIBC_2.3.
4688
4689 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4690
4691         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4692         new stream if possible.
4693         * libio/freopen64.c (freopen64): Likewise.
4694         * libio/Makefile (tests): Add tst-freopen.
4695         * libio/tst-freopen.c: New file.
4696
4697 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4698
4699         * libio/stdio.h (obstack_printf): Add format attribute.
4700         (obstack_vprintf): Likewise.
4701
4702 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4703
4704         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4705         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4706         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4707         architectures.
4708
4709 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4710
4711         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4712         (init_dfa): ...here.
4713
4714 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4715
4716         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4717         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4718         nodes in parse trees.
4719         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4720         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4721         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4722         nodes which can epsilon transit.
4723         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4724         to IS_EPSILON_NODE macro.
4725         * posix/regexec.c (update_regs): New function to update registers
4726         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4727         (proceed_next_node): Use the entities of the nodes to determine
4728         whether the node can transit to.
4729         (set_regs): Use update_regs function to update registers.
4730
4731 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4732
4733         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4734         * posix/bug-regex6.c: New file.
4735         * posix/Makefile (tests): Add bug-regex6.
4736         (bug-regex6-ENV): Set LOCPATH.
4737
4738 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4739
4740         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4741         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4742
4743 2002-07-06  Bruno Haible  <bruno@clisp.org>
4744
4745         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4746
4747 2002-07-06  Bruno Haible  <bruno@clisp.org>
4748
4749         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4750         declarations.
4751
4752         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4753
4754         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4755
4756         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4757         not _UTSNAME_H.
4758         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4759
4760         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4761         * sysdeps/generic/bits/ustat.h: Likewise.
4762
4763         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
4764
4765 2002-07-08  Andreas Jaeger  <aj@suse.de>
4766
4767         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
4768
4769 2002-07-08  Andreas Jaeger  <aj@suse.de>
4770
4771         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
4772
4773 2002-07-06  Andreas Jaeger  <aj@suse.de>
4774
4775         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
4776         * sysdeps/x86_64/fpu/s_copysign.S: New file.
4777         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
4778         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
4779         * sysdeps/x86_64/fpu/s_finitel.S: New file.
4780         * sysdeps/x86_64/fpu/s_fmax.S: New file.
4781         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
4782         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
4783         * sysdeps/x86_64/fpu/s_fmin.S: New file.
4784         * sysdeps/x86_64/fpu/s_fminf.S: New file.
4785         * sysdeps/x86_64/fpu/s_fminl.S: New file.
4786
4787 2002-06-05  Brian Youmans <3diff@gnu.org>
4788
4789         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
4790         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
4791         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
4792         * sysdeps/ia64/fpu/e_asin.S: Likewise.
4793         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
4794         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
4795         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
4796         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
4797         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
4798         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
4799         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
4800         * sysdeps/ia64/fpu/e_exp.S: Likewise.
4801         * sysdeps/ia64/fpu/e_expf.S: Likewise.
4802         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
4803         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
4804         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
4805         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
4806         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
4807         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
4808         * sysdeps/ia64/fpu/e_log.S: Likewise.
4809         * sysdeps/ia64/fpu/e_logf.S: Likewise.
4810         * sysdeps/ia64/fpu/e_pow.S: Likewise.
4811         * sysdeps/ia64/fpu/e_powf.S: Likewise.
4812         * sysdeps/ia64/fpu/e_powl.S: Likewise.
4813         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
4814         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
4815         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
4816         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
4817         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
4818         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
4819         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
4820         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
4821         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
4822         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
4823         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
4824         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
4825         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
4826         * sysdeps/ia64/fpu/libm_error.c: Likewise.
4827         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
4828         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
4829         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4830         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4831         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4832         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4833         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4834         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4835         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4836         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4837         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4838         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4839         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4840         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4841         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4842         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4843         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4844         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4845         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4846         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4847         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4848         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4849         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4850         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4851         * sysdeps/ia64/fpu/s_round.S: Likewise.
4852         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4853         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4854         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4855         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4856         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4857         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4858         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4859         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4860         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4861         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4862         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4863         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4864         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4865         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4866         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
4867         reflect IBM donation of math library to FSF
4868         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4869         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4870         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4871         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4872         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4873         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4874         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4875         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4876         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4877         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4878         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4879         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4880         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4881         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4882         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4883         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4884         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4885         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4886         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4887         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4888         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4889         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4890         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
4891         * sysdeps/vax/__longjmp.c: Likewise.
4892         * sysdeps/vax/setjmp.c: Likewise.
4893         * libio/filedoalloc.c: Fixed BSD copying permission notice to
4894         remove advertising clause
4895         * sysdeps/vax/htonl.s: Likewise.
4896         * sysdeps/vax/htons.s: Likewise.
4897         * libio/wfiledoalloc.c: Likewise.
4898         * stdlib/random.c: Likewise.
4899         * stdlib/random_r.c: Likewise.
4900         * sysdeps/mach/sys/reboot.h: Likewise.
4901         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
4902         * sysdeps/posix/getaddrinfo.c: Likewise.
4903         * sunrpc/des_impl.c: Updated license permission notice to Lesser
4904         GPL and corrected pointer to point to the correct license.
4905
4906 2002-07-04  Andreas Jaeger  <aj@suse.de>
4907
4908         * scripts/config.guess: New upstream version.
4909         * scripts/config.sub: Likewise.
4910
4911 2002-07-02  Andreas Schwab  <schwab@suse.de>
4912
4913         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
4914         in parallel to bumping up the buffer pointer.
4915
4916 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4917
4918         * math/libm-test.inc (acos_test): Add missing L suffix for
4919         expected result.
4920         (cpow_test): Likewise.
4921         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
4922         error for acos (0.0625).
4923
4924 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4925
4926         * locale/iso-639.def: Add entry for Ganda.
4927         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
4928         definition.
4929         (address_finish): Handle entries with two letter ISO 639 code.
4930
4931         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
4932         directory if it existed before.
4933         * iconv/iconvconfig.c: Implement --prefix option.
4934
4935         * math/libm-test.inc (cexp_test): Add missing L suffix for
4936         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
4937         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
4938         1.25 i).
4939
4940 2002-05-29  H.J. Lu  <hjl@gnu.org>
4941
4942         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
4943         is turned on.
4944
4945 2002-05-28  H.J. Lu  <hjl@gnu.org>
4946
4947         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
4948         are not dlopened on the dependency list of a dlopened object.
4949
4950 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
4951
4952         * elf/dl-lookup.c (add_dependency): It is not necessary to add
4953         dependencies if they are created between objects which are created
4954         while processing RTLD_NOW for objects loaded as part of the same
4955         dlopen call.
4956
4957 2002-06-14  H.J. Lu  <hjl@gnu.org>
4958
4959         * elf/Makefile (tests): Add circleload1.
4960         (modules-names): Add circlemod1, circlemod2, circlemod3,
4961         circlemod1a, circlemod2a and circlemod3a.
4962         ($(objpfx)circleload1): New target.
4963         ($(objpfx)circleload1.out): Likewise.
4964         ($(objpfx)circlemod1.so): Likewise.
4965         ($(objpfx)circlemod2.so): Likewise.
4966         ($(objpfx)circlemod1a.so): Likewise.
4967         ($(objpfx)circlemod2a.so): Likewise.
4968         * elf/circleload1.c: New file.
4969         * elf/circlemod1.c: New file.
4970         * elf/circlemod1a.c: New file.
4971         * elf/circlemod2.c: New file.
4972         * elf/circlemod2a.c: New file.
4973         * elf/circlemod3.c: New file.
4974         * elf/circlemod3a.c: New file.
4975
4976 2002-06-18  Amos Waterland  <apw@us.ibm.com>
4977
4978         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
4979         file descriptor.
4980         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
4981         add check for fd not open for writing.
4982
4983         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
4984         completed element(s) and do not suspend thread if so.  Patch
4985         heavily modified by drepper.
4986
4987         * rt/tst-aio7.c: New file.  Regression test for problems which the
4988         above three changes fix.
4989         * rt/Makefile (tests): Add tst-aio7.
4990
4991 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
4992
4993         * rt/tst-aio6.c: Fix comment.
4994
4995         * catgets/gencat.c (read_input_file): Handle more than one slash
4996         at end of line correctly [PR libc/3926].
4997         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
4998
4999         * catgets/sample.SJIS: Add test case for above bug.
5000         * catgets/test-gencat.c: Adjust test code.
5001         * catgets/test-gencat.sh: Adjust expected results.
5002
5003         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5004         to skip relative relocations.
5005         Patch by Geoff Keating <geoffk@redhat.com>.
5006
5007 2002-05-26  Bruno Haible  <bruno@clisp.org>
5008
5009         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5010         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5011         All callers changed.
5012         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5013         STANDARD_FROM_LOOP_ERR_HANDLER.
5014         (utf8_internal_loop): Likewise.
5015         (ucs2_internal_loop): Likewise.
5016         (internal_ucs2_loop): Perform error handling like in
5017         STANDARD_FROM_LOOP_ERR_HANDLER.
5018         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5019         in STANDARD_FROM_LOOP_ERR_HANDLER.
5020         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5021         handling.
5022         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5023         in STANDARD_FROM_LOOP_ERR_HANDLER.
5024         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5025         handling.
5026         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5027         in STANDARD_FROM_LOOP_ERR_HANDLER.
5028         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5029         handling.
5030         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5031         STANDARD_FROM_LOOP_ERR_HANDLER.
5032         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5033         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5034         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5035         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5036         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5037         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5038         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5039         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5040         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5041         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5042         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5043         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5044         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5045         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5046         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5047         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5048         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5049         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5050         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5051         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5052         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5053         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5054         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5055         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5056         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5057         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5058         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5059         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5060         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5061         an error, still set result = __GCONV_ILLEGAL_INPUT.
5062         (BODY for TO_LOOP): Likewise.
5063         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5064         STANDARD_FROM_LOOP_ERR_HANDLER.
5065         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5066         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5067         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5068         handling.
5069         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5070         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5071         STANDARD_FROM_LOOP_ERR_HANDLER.
5072         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5073         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5074         STANDARD_FROM_LOOP_ERR_HANDLER.
5075         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5076         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5077         STANDARD_FROM_LOOP_ERR_HANDLER.
5078         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5079         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5080         STANDARD_FROM_LOOP_ERR_HANDLER.
5081         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5082         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5083         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5084         handling.
5085         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5086         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5087         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5088         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5089
5090 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5091
5092         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5093         labels in assembler instructions.
5094
5095 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5096
5097         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5098         not enough content is available.
5099         * libio/tst-eof.c: New file.
5100         * libio/Makefile (tests): Add tst-eof.
5101
5102         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5103         update atime.
5104         * libio/tst-atime.c: New file.
5105         * libio/Makefile (tests): Add tst-atime.
5106
5107         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5108         handling of overly long words.
5109
5110 2002-06-25  Andreas Jaeger  <aj@suse.de>
5111
5112         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5113         to not use 32-bit pc relative relocations.
5114         (elf_machine_dynamic): Likewise.
5115
5116 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5117
5118         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5119         (__GETDENTS): Check for failed getdents64 syscall.
5120         * dirent/Makefile (tests): Add bug-readdir1.
5121         * dirent/bug-readdir1.c: New file.
5122
5123 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5124
5125         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5126         lookups.
5127         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5128         code.  Print TLS modid and offset for modules containing PT_TLS
5129         segments.
5130
5131 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5132
5133         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5134         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5135         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5136         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5137
5138 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5139
5140         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5141         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5142         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5143         * nss/getXXent_r.c (NEW, NEW1): Define.
5144         (NEW (REENTRANT_GETNAME)): Strong alias to
5145         INTERNAL (REENTRANT_GETNAME).
5146         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5147
5148 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5149
5150         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5151         (_IO_file_jumps_mmap): Use it.
5152         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5153         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5154         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5155         prototype.
5156         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5157         (_IO_wfile_jumps_mmap): Don't use it anymore.
5158         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5159         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5160         _IO_wdefault_setbuf.
5161         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5162         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5163         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5164
5165 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5166
5167         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5168         * libio/tst-mmap-setvbuf.c: New test.
5169
5170 2002-06-21  Andreas Jaeger  <aj@suse.de>
5171
5172         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5173
5174 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5175
5176         * include/unistd.h (__fork_internal): Remove.
5177         (__fork): Don't define to __fork_internal.
5178         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5179         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5180         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5181         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5182         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5183
5184 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5185
5186         * po/hr.po: New file.
5187
5188 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5189
5190         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5191         Reported by Michael Meissner <meissner@redhat.com>.
5192
5193 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5194
5195         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5196         Patch by Hans Boehm <hans_boehm@hp.com>.
5197
5198 2002-06-20  Andreas Jaeger  <aj@suse.de>
5199
5200         * math/libm-test.inc: Use exact values as input parameters,
5201         compute output parameters with 36 digits for 128-bit long doubles.
5202         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5203         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5204         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5205
5206 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5207
5208         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5209         argument or result is subnormal.
5210
5211 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5212
5213         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5214         quotient.
5215         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5216         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5217
5218         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5219
5220 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5221
5222         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5223         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5224         Reported by Peter A. Buhr.
5225
5226 2002-06-15  Roland McGrath  <roland@frob.com>
5227
5228         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5229         warning.
5230
5231         * sysdeps/mach/hurd/getcwd.c
5232         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5233
5234         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5235         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5236
5237         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5238         jump to local subroutine.
5239
5240 2002-06-14  Roland McGrath  <roland@frob.com>
5241
5242         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5243         * sysdeps/mach/hurd/Makeconfig: ... here.
5244
5245 2002-06-13  Andreas Schwab  <schwab@suse.de>
5246
5247         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5248         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5249         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5250
5251 2002-06-13  Roland McGrath  <roland@frob.com>
5252
5253         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5254         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5255         Use intptr_t instead of int for argc in stack layout.
5256         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5257         (_dl_init_first): Likewise.
5258         (_hurd_stack_setup): Likewise.
5259         (init1): Add a cast.
5260         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5261
5262         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5263         argument to pfinet_siocgifconf RPC.
5264
5265 2002-06-13  Andreas Schwab  <schwab@suse.de>
5266
5267         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5268         expansion order.
5269
5270 2002-06-12  Roland McGrath  <roland@frob.com>
5271
5272         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5273         if already defined.
5274         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5275         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5276
5277 2002-06-11  Roland McGrath  <roland@frob.com>
5278
5279         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5280         file on [!RTLD_STAT64].
5281         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5282
5283         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5284         (__fdopen): Use INTUSE.
5285         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5286
5287         * stdio-common/tmpfile64.c: File removed.
5288         * sysdeps/generic/tmpfile64.c: New file.
5289         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5290         if not already defined.
5291         (tmpfile): Use it in place of __GT_FILE.
5292
5293         * include/unistd.h: Declare __chown_internal.
5294
5295         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5296         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5297
5298 2002-06-09  Roland McGrath  <roland@frob.com>
5299
5300         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5301         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5302         value of HURD_INTERFACE_VERSION >= 20020609.
5303         * sysdeps/mach/hurd/configure: Regenerated.
5304         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5305         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5306         convert a struct stat64 into a struct stat and return 0 or -1
5307         with errno set to EOVERFLOW.
5308         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5309         for struct statfs64 to struct statfs.
5310         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5311         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5312         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5313         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5314         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5315         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5316         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5317         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5318         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5319         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5320         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5321         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5322         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5323         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5324         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5325         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5326         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5327         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5328         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5329         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5330         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5331         Use struct stat64 for io_stat argument.
5332         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5333         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5334         to io_seek.
5335         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5336         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5337         * hurd/hurd/fd.h: Update decls.
5338         * sysdeps/mach/hurd/getcwd.c
5339         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5340         and struct dirent64.
5341         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5342         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5343         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5344         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5345
5346 2002-06-08  Roland McGrath  <roland@frob.com>
5347
5348         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5349         instead of unsigned long int for __allocation and __size members.
5350
5351 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5352
5353         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5354         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5355         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5356         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5357
5358 2002-06-07  Roland McGrath  <roland@frob.com>
5359
5360         * sysdeps/mach/hurd/bits/environments.h: File removed.
5361
5362 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5363
5364         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5365         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5366         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5367         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5368         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5369         (sendfile64): Likewise.
5370         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5371         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5372         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5373         Likewise.
5374         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5375
5376         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5377         already defined.
5378
5379 2002-06-04  Bruno Haible  <bruno@clisp.org>
5380
5381         * sysdeps/cris/stackinfo.h: New file.
5382
5383         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5384         to an integer type before performing bit operations on it.
5385
5386 2002-06-05  Roland McGrath  <roland@frob.com>
5387
5388         * sysdeps/generic/sendfile.c: Include <errno.h>.
5389         * sysdeps/generic/sendfile64.c: Likewise.
5390
5391         * io/Makefile (routines): Add sendfile and sendfile64.
5392         (headers): Add sys/sendfile.h to the list.
5393         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5394         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5395         * io/sys/sendfile.h: ... here.
5396         * sysdeps/generic/sendfile.c: New file.
5397         * sysdeps/generic/sendfile64.c: New file.
5398
5399         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5400         Move sendfile, sendfile64 to ...
5401         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5402         * sysdeps/mach/hurd/sendfile.c: New file.
5403         * sysdeps/mach/hurd/sendfile64.c: New file.
5404
5405         * sysdeps/mach/nanosleep.c: New file.
5406
5407 2002-06-04  Roland McGrath  <roland@frob.com>
5408
5409         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5410         * sysdeps/alpha/elf/configure: New file (generated).
5411
5412 2002-06-02  Roland McGrath  <roland@frob.com>
5413
5414         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5415
5416 2002-06-01  Roland McGrath  <roland@frob.com>
5417
5418         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5419         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5420
5421 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5422
5423         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5424         Add nsmap.
5425         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5426         Remove nstimes setting.
5427         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5428         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5429         there is mix of IPv6 and IPv4 nameservers.
5430         Use nsmap array to find free slots and preserve nameserver ordering.
5431         Fix RES_ROTATE.
5432
5433 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5434
5435         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5436         use this header with LFS.
5437
5438         * po/sk.po: Update from translation team.
5439
5440 2002-05-28  Andreas Schwab  <schwab@suse.de>
5441
5442         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5443         message when finding object of wrong class.
5444
5445 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5446
5447         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5448         Patch by <radu@netsoft.ro>.
5449
5450 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5451
5452         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5453         Add readahead.
5454         * sysdeps/unix/sysv/linux/readahead.c: New file.
5455         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5456         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5457         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5458         Add sendfile64 alias to sendfile syscall.
5459         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5460         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5461         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5462         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5463         syscall.
5464
5465         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5466         special section for PIC register loading.
5467         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5468
5469         * config.h.in: Define HAVE_HIDDEN.
5470         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5471
5472         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5473
5474 2002-05-28  Roland McGrath  <roland@frob.com>
5475
5476         * sysdeps/mach/alpha/setfpucw.c: New file.
5477
5478 2002-05-26  Roland McGrath  <roland@frob.com>
5479
5480         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5481         Use integer_t instead of int for IOC_VOID case.
5482
5483 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5484
5485         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5486
5487 2002-05-26  Bruno Haible  <bruno@clisp.org>
5488
5489         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5490         end of the ISO-8859-7 from idx table.
5491
5492 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5493
5494         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5495
5496 2002-05-24  David S. Miller  <davem@redhat.com>
5497
5498         * string/bits/string2.h (memset): Do not try to optimize when
5499         not _STRING_ARCH_unaligned if GCC will do the right thing.
5500
5501 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5502
5503         * posix/regex.c: Define `inline' as a macro into nothing for the
5504         compilers which lack the keyword.
5505         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5506         for the compatibility of gawk.
5507         * posix/regcomp.c: Add fake implementation of isblank() for the
5508         environments which lack the function.
5509         Don't use free_charset() in case of non-i18n envs.
5510         (build_range_exp): Don't use i18n related code in case of non-i18n
5511         envs.
5512         (build_collating_symbol): Likewise.
5513         (build_equiv_class): Likewise.
5514         (build_charclass): Likewise.
5515         (re_compile_fastmap_iter): Likewise.
5516         (parse_bracket_exp): Likewise.
5517         (build_word_op): Likewise.
5518         (regfree): Don't use free_charset() in case of non-i18n envs.
5519         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5520         re_token_type_t in case of non-i18n envs.
5521         Don't define re_charset_t in case of non-i18n envs.
5522         Change the type of wcs of re_string_t from wchar_t to wint_t,
5523         since we store also WEOF.
5524         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5525         the type of wcs of re_string_t from wchar_t to wint_t.
5526         (re_string_reconstruct): Likewise.
5527         (create_ci_newstate): Don't use i18n related code in case of
5528         non-i18n envs.
5529         (create_cd_newstate): Likewise.
5530
5531 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5532
5533         * iconv/loop.c: Fix typo.
5534
5535 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5536
5537         * inet/ether_line.c (ether_line): Fix a typo causing only
5538         lower 4 bits of each ethernet address byte being assigned.
5539         Don't modify what line points to.
5540         * inet/tst-ether_aton.c (main): Add ether_line tests.
5541
5542 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5543
5544         * manual/filesys.texi: Don't make readlink example leak memory
5545         when readlink fails.
5546
5547 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5548
5549         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5550         some more security checks.
5551
5552 2002-05-17  David S. Miller  <davem@redhat.com>
5553
5554         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5555
5556 2002-05-16  David S. Miller  <davem@redhat.com>
5557
5558         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5559         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5560         (elf_machine_load_address): Likewise.
5561         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5562
5563         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5564         is unaligned, do not forget to fully initialize %g1 magic value.
5565
5566         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5567         register definitions and provide 32-bit variants of structures
5568         during 64-bit builds.
5569
5570         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5571         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5572         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5573         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5574         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5575         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5576         Do not clear implicit one bit here, it must be done post-rounding.
5577         Only pad to the left using left shift if value uses less than the
5578         available fractional bits.
5579
5580 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5581
5582         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5583         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5584         (shared-only-routines): Likewise.
5585         * sysdeps/powerpc/libgcc-compat.c: New file.
5586         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5587         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5588         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5589         * sysdeps/wordsize-32/shdi3.c: Removed.
5590
5591 2002-05-16  Bruno Haible  <bruno@clisp.org>
5592
5593         * MakeTAGS (libc.pot): Don't sort the output.
5594         * po/header.pot: Update to match xgettext 0.11 output.
5595
5596 2002-05-16  Bruno Haible  <bruno@clisp.org>
5597
5598         * MakeTAGS (subdirs): Remove duplicates.
5599
5600 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5601
5602         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5603         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5604         alias.
5605
5606 2002-05-19  Andreas Jaeger  <aj@suse.de>
5607
5608         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5609         installation in /usr/local.
5610
5611 2002-05-16  Bruno Haible  <bruno@clisp.org>
5612
5613         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5614         string as argument of #error.
5615
5616 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5617
5618         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5619         don't define static.  Remove old __realpath function.  TC1 of
5620         POSIX 2001 will allow the second parameter to be NULL.
5621         * stdlib/test-canon.c: Comment out test for NULL as second
5622         parameter of realpath.
5623
5624         * time/offtime.c (__offtime): Set errno if overflow is detected.
5625
5626         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5627         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5628         dl-brk and dl-sbrk.
5629
5630         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5631         (fdimf): Likewise.
5632
5633 2002-05-15  Roland McGrath  <roland@frob.com>
5634
5635         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5636
5637 2002-05-12  Bruno Haible  <bruno@clisp.org>
5638
5639         * iconvdata/testdata/EUC-JISX0213: New file.
5640         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5641         * iconvdata/testdata/SHIFT_JISX0213: New file.
5642         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5643         * iconvdata/testdata/ISO-2022-JP-3: New file.
5644         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5645         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5646         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5647         contains comments indicating precomposed characters.
5648
5649 2002-04-21  Bruno Haible  <bruno@clisp.org>
5650
5651         * iconvdata/iso-2022-jp-3.c: New file.
5652         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5653         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5654         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5655         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5656         (distribute): Add iso-2022-jp-3.c.
5657
5658 2002-05-12  Bruno Haible  <bruno@clisp.org>
5659
5660         * iconvdata/tst-table-to.c (main): Restore handling of
5661         transliterations, broken by last patch.
5662
5663 2002-05-12  Bruno Haible  <bruno@clisp.org>
5664
5665         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5666
5667 2002-05-12  Bruno Haible  <bruno@clisp.org>
5668
5669         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5670         when there is not enough room in the output buffer.
5671         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5672
5673 2002-04-20  Bruno Haible  <bruno@clisp.org>
5674
5675         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5676         macros.
5677         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5678         Also make this macro work if FROM_DIRECTION evaluates to 0.
5679         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5680         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5681         of consume_incomplete.
5682         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5683         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5684         4, not 8.
5685         * iconvdata/cp1258.c: Likewise.
5686         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5687         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5688         not 2.
5689         * iconvdata/ibm933.c: Likewise.
5690         * iconvdata/ibm935.c: Likewise.
5691         * iconvdata/ibm937.c: Likewise.
5692         * iconvdata/ibm939.c: Likewise.
5693         * iconvdata/iso-2022-cn.c: Define
5694         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5695         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5696         * iconvdata/iso-2022-cn-ext.c: Likewise.
5697         * iconvdata/iso-2022-jp.c: Define
5698         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5699         {MIN,MAX}_NEEDED_{FROM,TO}.
5700         * iconvdata/tcvn5712-1.c: Define
5701         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5702         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5703         * iconvdata/euc-jisx0213.c: Define
5704         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5705         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5706         * iconvdata/shift_jisx0213.c: Likewise.
5707
5708 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5709
5710         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5711         shdi3, fixdfdi, fixsfdi in csu dir.
5712         (shared-only-routines): Likewise.
5713         * sysdeps/wordsize-32/cmpdi2.c: New file.
5714         * sysdeps/wordsize-32/shdi3.c: New file.
5715         * sysdeps/wordsize-32/fixdfdi.c: New file.
5716         * sysdeps/wordsize-32/fixsfdi.c: New file.
5717         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5718         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5719         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5720
5721         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5722         Only use va_arg if the argument will be used [PR libc/3259].
5723
5724 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5725
5726         * catgets/catgets.c (catopen): Free buffer if internal catalog
5727         open fails.
5728
5729 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5730
5731         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5732         non-buffering methods.
5733         * debug/pcprofiledump.c: Implement -u option.
5734         Patch by Roger Luethi <rl@hellgate.ch>.
5735
5736 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5737
5738         * include/netinet/in.h (bindresvport_internal): Add prototype.
5739         * include/rpc/auth.h  (authunix_create_internal,
5740         authunix_create_default_internal, authnone_create_internal,
5741         authdes_pk_create_internal): Add prototypes.
5742         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5743         clntudp_create_internal, clntudp_bufcreate_internal,
5744         clntunix_create_internal): Add prototypes.
5745         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5746         svc_getreq_internal, svc_getreq_common_internal,
5747         svc_getreqset_internal, svc_getreq_poll_internal,
5748         svc_register_internal, svc_unregister_internal,
5749         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5750         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5751         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5752         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5753         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5754         * inet/rcmd.c (rcmd_af): Use __listen.
5755         (rresvport_af): Use __bind.
5756         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5757         authunix_create, authunix_create_default, authnone_create,
5758         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5759         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5760         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5761         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5762         _authenticate, add INTDEF after such function definitions.
5763         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
5764         __setsockopt, __getsockname instead of non-__ variants.
5765         * sunrpc/pmap_rmt.c: Likewise.
5766         * sunrpc/rtime.c: Likewise.
5767         * sunrpc/svc_udp.c: Likewise.
5768         * sunrpc/clnt_unix.c: Likewise.
5769         * sunrpc/svc_unix.c: Likewise.
5770         * sunrpc/bindrsvprt.c: Likewise.
5771         * sunrpc/svc_tcp.c: Likewise.
5772         * sunrpc/auth_none.c: Likewise.
5773         * sunrpc/clnt_raw.c: Likewise.
5774         * sunrpc/clnt_tcp.c: Likewise.
5775         * sunrpc/auth_unix.c: Likewise.
5776         * sunrpc/key_call.c: Likewise.
5777         * sunrpc/clnt_gen.c: Likewise.
5778         * sunrpc/pm_getmaps.c: Likewise.
5779         * sunrpc/clnt_simp.c: Likewise.
5780         * sunrpc/pmap_clnt.c: Likewise.
5781         * sunrpc/svc_run.c: Likewise.
5782         * sunrpc/svc.c: Likewise.
5783         * sunrpc/svc_simple.c: Likewise.
5784         * sunrpc/pm_getport.c: Likewise.
5785         * sunrpc/auth_des.c: Likewise.
5786         * sunrpc/svc_auth.c: Likewise.
5787         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
5788         __register_frame_info_table_bases, __deregister_frame_info_bases):
5789         Add INTDEF.
5790         (__register_frame_info_bases_internal,
5791         __register_frame_info_table_bases_internal,
5792         __deregister_frame_info_bases_internal): Add prototypes.
5793         (__register_frame_info, __register_frame): Use INTUSE in call to
5794         __register_frame_info_bases.
5795         (__register_frame_info_table): Similarly.
5796         (__deregister_frame_info, __deregister_frame): Similarly.
5797         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
5798         sendto as weak alias.
5799         * sysdeps/mach/hurd/sendto.c: Likewise.
5800         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
5801         recvfrom as weak alias.
5802         * sysdeps/mach/hurd/recvfrom.c: Likewise.
5803         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
5804         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
5805         recvmsg as weak alias.
5806         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
5807         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
5808         sendmsg as weak alias.
5809         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
5810         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
5811         setsockopt, add setsockopt as weak alias.
5812         * sysdeps/mach/hurd/setsockopt.c: Likewise.
5813         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
5814         weak alias.
5815         * sysdeps/mach/hurd/bind.c: Likewise.
5816         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
5817         as weak alias.
5818         * sysdeps/mach/hurd/listen.c: Likewise.
5819         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
5820         getsockname, add getsockname as weak alias.
5821         * sysdeps/mach/hurd/getsockname.c: Likewise.
5822         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
5823         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
5824         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
5825         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
5826         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
5827         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
5828         Add aliases.
5829         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5830         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5831         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5832         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5833         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
5834         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
5835         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
5836         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
5837         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
5838         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
5839         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
5840         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
5841
5842 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5843
5844         * locale/programs/localedef.h (show_archive_content): Add verbose
5845         argument.
5846         * locale/programs/localedef.c (main): Adjust caller.
5847         * locale/programs/locarchive.c (struct nameent, struct dataent): New
5848         types.
5849         (nameentcmp, dataentcmp): New functions.
5850         (xstrcmp): Remove.
5851         (show_archive_content): Print verbose listing with --list-archive -v.
5852
5853 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5854
5855         * locale/programs/locarchive.c (open_archive): Take extra argument
5856         readonly.  If true open file with O_RDONLY and don't create the
5857         archive if it doesn't exist.
5858         Adapt all callers.
5859         (close_archive): Don't do anything if fd element is -1.
5860         * locale/programs/localedef.h (open_archive): Adjust prototype.
5861         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
5862         call.
5863
5864         * malloc/malloc.c (__posix_memalign): Correct check for size of
5865         alignment value [PR libc/3444].
5866
5867         * include/stdio.h: Remove references to old stdio implementation.
5868
5869         * libio/Makefile (bug-ungetwc2-ENV): Define.
5870
5871 2002-05-13  Roland McGrath  <roland@frob.com>
5872
5873         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
5874
5875         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
5876
5877 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
5878
5879         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5880         Allocate three, not two, more than LEN when appending '/.'.
5881         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
5882         if NAME ends with '/.' if it is shorter than 2 chars.
5883
5884 2002-05-12  Roland McGrath  <roland@frob.com>
5885
5886         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
5887         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
5888
5889         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
5890         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
5891
5892 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
5893
5894         * sysdeps/ia64/Makefile: Remove extra endif.
5895         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
5896
5897 2002-05-10  Andreas Schwab  <schwab@suse.de>
5898
5899         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
5900
5901 2002-05-09  Andreas Jaeger  <aj@suse.de>
5902
5903         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
5904         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
5905         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
5906
5907         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
5908         * sysdeps/wordsize-64/glob.c: ...here.
5909         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
5910         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
5911         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
5912
5913 2002-05-08  Roland McGrath  <roland@frob.com>
5914
5915         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
5916         O_NOTRANS flag in "." lookup.
5917
5918 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
5919
5920         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
5921
5922 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
5923
5924         * locale/duplocale.c (__duplocale): Update special members only
5925         when allocation succeeded.
5926
5927 2002-05-03  Roland McGrath  <roland@frob.com>
5928
5929         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
5930         we can only build libc.so.0.3(GLIBC_2.2.6) now.
5931
5932 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
5933
5934         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
5935         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
5936         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
5937         * sysdeps/ia64/ia64libgcc.S: New file.
5938
5939 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
5940
5941         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
5942
5943         * malloc/memusage.c: Distinguish anonymous mmap.
5944
5945 2002-05-01  Roland McGrath  <roland@frob.com>
5946
5947         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
5948         and use INTDEF on it.
5949         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
5950
5951         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
5952
5953         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
5954
5955 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
5956
5957         * malloc/memusage.c: Add support for tracking mmap & friends.
5958         * malloc/memusage.sh: Implement -m/--mmap option.
5959
5960 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5961
5962         * locale/programs/locarchive.c (create_archive): Add archivefname
5963         argument, create fname from it.
5964         (enlarge_archive): Honour output_prefix.
5965         (open_archive): Likewise.
5966
5967 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
5968
5969         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
5970         too many stpcpy macros.
5971
5972 2002-04-26  Bruno Haible  <bruno@clisp.org>
5973
5974         * locale/programs/ld-collate.c (collate_read): Cast first argument
5975         for "%.*s" to int.
5976
5977 2002-04-26  Bruno Haible  <bruno@clisp.org>
5978
5979         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
5980         __dcngettext_internal): New declarations.
5981         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
5982         attribute declarations.
5983
5984 2002-04-30  Roland McGrath  <roland@frob.com>
5985
5986         Removed old GNU stdio implementation; GNU libio is now the only option.
5987         * configure.in: Removed --enable-libio option and @stdio@ subst var.
5988         Define USE_IN_LIBIO unconditionally.
5989         * configure: Regenerated.
5990         * Makeconfig (stdio): Set to libio by default.
5991         * config.make.in (stdio): Variable removed.
5992         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
5993         * sysdeps/unix/sysv/linux/configure: Regenerated.
5994         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
5995         * sysdeps/mach/hurd/configure: Regenerated.
5996         * stdio/.cvsignore: File removed.
5997         * stdio/Makefile: File removed.
5998         * stdio/Versions: File removed.
5999         * stdio/__fbufsize.c: File removed.
6000         * stdio/__flbf.c: File removed.
6001         * stdio/__fpending.c: File removed.
6002         * stdio/__fpurge.c: File removed.
6003         * stdio/__freadable.c: File removed.
6004         * stdio/__freading.c: File removed.
6005         * stdio/__fsetlocking.c: File removed.
6006         * stdio/__fwritable.c: File removed.
6007         * stdio/__fwriting.c: File removed.
6008         * stdio/clearerr.c: File removed.
6009         * stdio/fclose.c: File removed.
6010         * stdio/fcloseall.c: File removed.
6011         * stdio/feof.c: File removed.
6012         * stdio/ferror.c: File removed.
6013         * stdio/fflush.c: File removed.
6014         * stdio/fgetc.c: File removed.
6015         * stdio/fgetpos.c: File removed.
6016         * stdio/fgets.c: File removed.
6017         * stdio/fileno.c: File removed.
6018         * stdio/fmemopen.c: File removed.
6019         * stdio/fopen.c: File removed.
6020         * stdio/fopncook.c: File removed.
6021         * stdio/fputc.c: File removed.
6022         * stdio/fputs.c: File removed.
6023         * stdio/fread.c: File removed.
6024         * stdio/freopen.c: File removed.
6025         * stdio/fseek.c: File removed.
6026         * stdio/fsetpos.c: File removed.
6027         * stdio/ftell.c: File removed.
6028         * stdio/fwrite.c: File removed.
6029         * stdio/getc.c: File removed.
6030         * stdio/getchar.c: File removed.
6031         * stdio/getdelim.c: File removed.
6032         * stdio/gets.c: File removed.
6033         * stdio/glue.c: File removed.
6034         * stdio/internals.c: File removed.
6035         * stdio/linewrap.c: File removed.
6036         * stdio/linewrap.h: File removed.
6037         * stdio/memstream.c: File removed.
6038         * stdio/newstream.c: File removed.
6039         * stdio/obstream.c: File removed.
6040         * stdio/putc.c: File removed.
6041         * stdio/putchar.c: File removed.
6042         * stdio/puts.c: File removed.
6043         * stdio/rewind.c: File removed.
6044         * stdio/setbuf.c: File removed.
6045         * stdio/setbuffer.c: File removed.
6046         * stdio/setlinebuf.c: File removed.
6047         * stdio/setvbuf.c: File removed.
6048         * stdio/stdio.h: File removed.
6049         * stdio/ungetc.c: File removed.
6050         * stdio/vasprintf.c: File removed.
6051         * stdio/vscanf.c: File removed.
6052         * stdio/vsnprintf.c: File removed.
6053         * stdio/vsprintf.c: File removed.
6054         * stdio/vsscanf.c: File removed.
6055         * sysdeps/generic/defs.c: File removed.
6056         * sysdeps/generic/fdopen.c: File removed.
6057         * sysdeps/generic/pipestream.c: File removed.
6058         * sysdeps/generic/stdio_init.c: File removed.
6059         * sysdeps/generic/sysd-stdio.c: File removed.
6060         * sysdeps/generic/vdprintf.c: File removed.
6061         * sysdeps/mach/hurd/defs.c: File removed.
6062         * sysdeps/mach/hurd/fdopen.c: File removed.
6063         * sysdeps/mach/hurd/pipestream.c: File removed.
6064         * sysdeps/mach/hurd/stdio_init.c: File removed.
6065         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6066         * sysdeps/mach/hurd/vdprintf.c: File removed.
6067         * sysdeps/posix/defs.c: File removed.
6068         * sysdeps/posix/fdopen.c: File removed.
6069         * sysdeps/posix/pipestream.c: File removed.
6070         * sysdeps/posix/stdio_init.c: File removed.
6071         * sysdeps/posix/vdprintf.c: File removed.
6072         * sysdeps/unix/pipestream.c: File removed.
6073         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6074         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6075         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6076
6077 2002-04-29  Roland McGrath  <roland@frob.com>
6078
6079         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6080
6081 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6082
6083         * sysdeps/generic/tls.h: Describe what must be defined.
6084
6085         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6086         glob_in_dir [PR libc/3385].
6087         * posix/globtest.sh: Add test case.
6088
6089         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6090         //TRANSLIT twice.
6091
6092 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6093
6094         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6095         _internal symbol handling.
6096         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6097
6098 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6099
6100         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6101         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6102
6103 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6104
6105         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6106         not _LIBC and RE_ENABLE_I18N.
6107         (build_range_exp): Implement for not _LIBC.
6108         (build_collating_symbol): Likewise.
6109         (parse_bracket_exp): Unify redundant error handlings.
6110         Don't erase mbcset for non matching list in multibyte envs.
6111         (build_word_op): Add '_' to matching list for \w operator.
6112         * posix/regex_internal.c (re_string_construct): Invoke
6113         build_upper_buffer in case of not RE_ENABLE_I18N.
6114         (re_string_reconstruct): Don't touch cur_state in case of not
6115         RE_ENABLE_I18N.
6116         * posix/regex_internal.h (attribute_hidden): New macro in case of
6117         not _LIBC.
6118         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6119         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6120         RE_ENABLE_I18N.
6121         (transit_state_mb): Likewise.
6122         (check_node_accept_bytes): Implement the code evaluating range
6123         expression in case of not _LIBC.
6124         (find_collation_sequence_value): Hide in case of not _LIBC.
6125
6126 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6127
6128         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6129         i386/semctl.c.
6130         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6131         be used.
6132
6133 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6134
6135         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6136
6137         * sysdeps/ia64/strncpy.S: Fix recovery code.
6138         Patch by David Mosberger <davidm@hpl.hp.com>.
6139
6140 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6141
6142         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6143         GLIBC_2.2.6.
6144
6145 2002-04-14  Bruno Haible  <bruno@clisp.org>
6146
6147         * posix/regex.c (re_max_failures): Add back symbol for binary
6148         compatibility.
6149
6150 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6151
6152         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6153         of buffer building functions.
6154         * posix/regex_internal.c (re_string_allocate): New function.
6155         (re_string_realloc_buffers): New function.
6156         (re_string_skip_chars): New function.
6157         (re_string_reconstruct): New function.
6158         (re_string_construct): Adapt it to new interface of buffer building
6159         functions.
6160         (re_string_construct_common): Likewise.
6161         (build_wcs_buffer): Likewise.
6162         (build_wcs_upper_buffer): Likewise.
6163         (build_upper_buffer): Likewise.
6164         (re_string_translate_buffer): Likewise.
6165         (re_string_context_at): Adapt it to variable length buffers.
6166         * posix/regex_internal.h (re_string_t): Add new fields to handle
6167         variable length buffers.
6168         (re_match_context_t): Likewise.
6169         * posix/regexec.c (re_search_internal): Adapt it to new interface
6170         of re_string_t and re_match_context_t.
6171         (acquire_init_state_context): Likewise.
6172         (check_matching): Likewise.
6173         (check_halt_state_context): Likewise.
6174         (proceed_next_node): Likewise.
6175         (set_regs): Likewise.
6176         (sift_states_backward): Likewise.
6177         (clean_state_log_if_need): Likewise.
6178         (sift_states_iter_mb): Likewise.
6179         (sift_states_iter_bkref): Likewise.
6180         (add_epsilon_backreference): Likewise.
6181         (transit_state): Likewise.
6182         (transit_state_sb): Likewise.
6183         (transit_state_mb): Likewise.
6184         (transit_state_bkref): Likewise.
6185         (transit_state_bkref_loop): Likewise.
6186         (check_node_accept): Likewise.
6187         (match_ctx_init): Likewise.
6188         (extend_buffers): New function.
6189
6190 2002-04-21  Bruno Haible  <bruno@clisp.org>
6191
6192         * iconvdata/tst-table.sh: For the second check, use the truncated
6193         GB18030 charmap table, like for the first check.
6194
6195 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6196
6197         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6198         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6199
6200 2002-04-23  H.J. Lu  <hjl@gnu.org>
6201
6202         * include/math.h (isfinite): Fix a typo.
6203
6204 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6205
6206         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6207         which is created by the test suite.
6208
6209 2002-04-20  Bruno Haible  <bruno@clisp.org>
6210
6211         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6212         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6213
6214 2002-04-20  Bruno Haible  <bruno@clisp.org>
6215
6216         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6217         to avoid gcc warning.
6218
6219 2002-04-20  Bruno Haible  <bruno@clisp.org>
6220
6221         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6222         of data->__statep->__count.
6223
6224 2002-04-20  Bruno Haible  <bruno@clisp.org>
6225
6226         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6227         tag characters.
6228         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6229
6230 2002-04-24  Roland McGrath  <roland@frob.com>
6231
6232         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6233         use END macro instead of our own .end directive.
6234         Use `callsys' insn mnemonic instead of `call_pal'.
6235
6236         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6237
6238         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6239         macro; we need this for Hurd.
6240
6241         Log entry was missing for 2002/03/24 commit of rev 1.8,
6242         goes with 2002-03-17 changes.
6243         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6244         (sysdep_routines): Append ioperm here.
6245         (sysdep_headers): Append sys/io.h here.
6246
6247 2002-04-23  Roland McGrath  <roland@frob.com>
6248
6249         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6250         * sysdeps/mach/hurd/sendto.c: Likewise.
6251         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6252         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6253         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6254
6255 2002-04-22  Roland McGrath  <roland@frob.com>
6256
6257         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6258         failure from i386_io_perm_* RPCs to ENOSYS.
6259
6260 2002-04-22  Andreas Jaeger  <aj@suse.de>
6261
6262         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6263
6264         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6265
6266         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6267         register instead of destroying %rbx.
6268
6269 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6270
6271         * string/string.h: Declare strerror_r also for XPG6.
6272
6273 2002-04-19  Roland McGrath  <roland@frob.com>
6274
6275         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6276
6277 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6278
6279         * Makefile: Add handling of xtests and xcheck targets.
6280         * MakeTAGS: Likewise.
6281         * Makeconfig: Likewise.
6282         * Makerules: Likewise.
6283         * Rules: Likewise.
6284         * manual/Makefile: Likewise.
6285         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6286         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6287
6288 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6289
6290         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6291         authnone_private_s.
6292         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6293         Delete #ifdef _RPC_THREAD_SAFE_ block.
6294         (authnone_private): Make a struct, not a pointer to struct.
6295         (authnone_private_guard): New once-control variable.
6296         (authnone_create_once): New function, split out of
6297         authnone_create.  No need to allocate memory.
6298         (authnone_create): Just call authnone_create_once via
6299         __libc_once, then return &authnone_private->no_client.
6300         (authnone_marshal): Access private data via CLIENT argument,
6301         not authnone_private pointer.
6302         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6303         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6304         authnone_private_s.
6305
6306 2002-04-12  H.J. Lu  <hjl@gnu.org>
6307
6308         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6309
6310 2002-04-18  Bruno Haible  <bruno@clisp.org>
6311
6312         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6313         FROM_DIRECTION): Make the FROM direction stateless.
6314         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6315         FROM_DIRECTION): Likewise.
6316
6317 2002-04-15  Bruno Haible  <bruno@clisp.org>
6318
6319         * iconvdata/JISX0213.TXT: New file.
6320         * iconvdata/jisx0213.h: New file.
6321         * iconvdata/jisx0213.c: New file.
6322         * iconvdata/euc-jisx0213.c: New file.
6323         * iconvdata/shift_jisx0213.c: New file.
6324         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6325         * iconvdata/EUC-JISX0213.precomposed: New file.
6326         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6327         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6328         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6329         which the "to" direction is stateful.
6330         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6331         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6332         SHIFT_JISX0213.
6333         (libJISX0213-routines): New variable.
6334         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6335         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6336         (LDFLAGS-libJISX0213.so): New variable.
6337         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6338         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6339         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6340
6341 2002-04-15  Bruno Haible  <bruno@clisp.org>
6342
6343         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6344         uint32_t.  Update to Unicode 3.2.
6345         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6346         (BODY for TO_LOOP): Handle the ASCII range specially.
6347         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6348         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6349         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6350
6351 2002-04-15  Bruno Haible  <bruno@clisp.org>
6352
6353         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6354         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6355
6356 2002-04-15  Bruno Haible  <bruno@clisp.org>
6357
6358         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6359         (ucs4_to_cns11643): Update.
6360         * iconvdata/cns11643.c: Update to Unicode 3.2.
6361         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6362         __cns11643_from_ucs4p2_tab): Regenerated.
6363         (__cns11643_from_ucs4p2c_tab): New array.
6364         * iconvdata/cvs11643l1.c: Update comments.
6365         * iconvdata/EUC-TW.irreversible: Remove two entries.
6366
6367 2002-04-15  Bruno Haible  <bruno@clisp.org>
6368
6369         * locale/C-translit.h.in: Update to Unicode 3.2.
6370         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6371         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6372
6373 2002-04-15  Bruno Haible  <bruno@clisp.org>
6374
6375         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6376         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6377
6378 2002-04-15  Bruno Haible  <bruno@clisp.org>
6379
6380         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6381         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6382         always one byte, not 0 bytes in some cases and 2 bytes in others.
6383
6384         * iconvdata/tst-table-from.c (main): Correct the usage message.
6385
6386 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6387
6388         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6389         (parse_dup_op): Fix error handling like "a{}".
6390         (parse_bracket_exp): Add error handling.
6391         (fetch_number): Add error handling for "a{<very_large_number>}".
6392
6393 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6394
6395         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6396         in case that the symbol name is too long.
6397         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6398         in case of REG_ICASE.
6399
6400 2002-04-19  Andreas Jaeger  <aj@suse.de>
6401
6402         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6403         <hartvige@mips.com>.
6404
6405 2002-04-15  H.J. Lu  <hjl@gnu.org>
6406
6407         * include/math.h (__finitel_internal): Declare only if
6408         __NO_LONG_DOUBLE_MATH is not defined.
6409         (__isinfl_internal): Likewise.
6410         (__isnanl_internal): Likewise.
6411
6412         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6413         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6414         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6415         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6416         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6417         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6418         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6419
6420         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6421         __fcntl_internal.
6422
6423         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6424         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6425
6426 2002-04-15  Bruno Haible  <bruno@clisp.org>
6427
6428         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6429         (BODY for TO_LOOP): Likewise.
6430         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6431         * iconvdata/tst-table.sh: Add support for encodings which contain
6432         precomposed Unicode characters, known to the iconv converter in both
6433         directions but not listed in the charmap.
6434         * iconvdata/IBM856.irreversible: New file.
6435         * iconvdata/IBM922.irreversible: New file.
6436         * iconvdata/IBM1132.irreversible: New file.
6437         * iconvdata/IBM1133.irreversible: New file.
6438         * iconvdata/IBM1160.irreversible: New file.
6439         * iconvdata/IBM1161.irreversible: New file.
6440         * iconvdata/IBM1163.irreversible: New file.
6441         * iconvdata/IBM1164.irreversible: New file.
6442         * iconvdata/ARMSCII-8.irreversible: New file.
6443         * iconvdata/TCVN5712-1.precomposed: New file.
6444         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6445         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6446         ARMSCII-8, TCVN5712-1.
6447         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6448         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6449         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6450         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6451
6452 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6453
6454         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6455         for EVENING69.  Include offsets in TZ environment variable.
6456
6457 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6458
6459         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6460         avoid compiler warnings.
6461
6462         * locale/programs/localedef.c (main): Always call
6463         construct_output_path.
6464
6465         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6466
6467         * locale/programs/locfile.c (to_archive): New variable.  To collect
6468         data which has to be added to the locale archive.
6469         (write_all_categories): Take new third parameter with locale name.
6470         Unless no_archive flag set add new locale data to the archive
6471         (write_locale_data): Unless no-archive flag set store generated data
6472         in to_archive data structure instead of generation output file.
6473         Add new parameter with locale category index.
6474         * locale/programs/locfile.h: Add new parameters in declaractions of
6475         write_all_categories and write_locale_data.
6476         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6477         --add-to-archive, and --delete-from-archive options.  Pass extra
6478         parameter to write_all_categories.
6479         * locale/programs/localedef.h: Add prototypes for functions in
6480         locarchive.c.
6481         * locale/locarchive.h: New file.
6482         * locale/programs/locarchive.c: New file.
6483         * locale/Makefile (distribute): Add programs/locarchive.c and
6484         locarchive.h.
6485         (localedef-modules): Add md5 and locarchive.
6486         Add vpath to crypt subdir for md5.c.
6487
6488         * locale/programs/ld-address.c: Pass locale category ID as new second
6489         parameter to write_locale_data.
6490         * locale/programs/ld-collate.c: Likewise.
6491         * locale/programs/ld-ctype.c: Likewise.
6492         * locale/programs/ld-identification.c: Likewise.
6493         * locale/programs/ld-measurement.c: Likewise.
6494         * locale/programs/ld-messages.c: Likewise.
6495         * locale/programs/ld-monetary.c: Likewise.
6496         * locale/programs/ld-name.c: Likewise.
6497         * locale/programs/ld-numeric.c: Likewise.
6498         * locale/programs/ld-paper.c: Likewise.
6499         * locale/programs/ld-telephone.c: Likewise.
6500         * locale/programs/ld-time.c: Likewise.
6501
6502         * locale/simple-hash.c: Move compute_hashval function from here...
6503         * locale/hashval.h: ...to here.  New file.
6504         * locale/simple-hash.h: Add prototype for compute_hashval.
6505
6506         * include/libintl.h: Minor cleanups.
6507
6508 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6509
6510         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6511
6512 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6513
6514         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6515
6516 2002-04-14  Bruno Haible  <bruno@clisp.org>
6517
6518         * locale/programs/charmap.c (charmap_read): Don't access result if
6519         result == NULL.
6520
6521 2002-02-17  Andreas Schwab  <schwab@suse.de>
6522
6523         * elf/reldep7.c: New file.
6524         * elf/reldep7mod1.c: New file.
6525         * elf/reldep7mod2.c: New file.
6526         * elf/Makefile: Add rules to build and run reldep7.
6527
6528 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6529
6530         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6531         the end of the function.  Pass original flags to recursive call if
6532         add_dependency failed.
6533         (_dl_lookup_versioned_symbol): Likewise.
6534
6535 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6536
6537         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6538         early, but check whether it overflowed afterwards.
6539         * time/tst-mktime.c (main): Add new tests.
6540
6541 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6542
6543         * debug/xtrace.sh: Fix program name in help message.
6544         Patch by Roger Luethi <rl@hellgate.ch>.
6545
6546         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6547         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6548         NOT_IN_libc.
6549         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6550         * sysdeps/mach/hurd/lxstat.c: Likewise.
6551         * sysdeps/unix/common/lxstat.c: Likewise.
6552         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6553         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6554         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6555         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6556         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6557         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6558         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6559         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6560         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6561
6562         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6563         prototypes.  Add __mbrlen and __mbrtowc macros.
6564         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6565         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6566
6567         * include/unistd.h: Add prototype for __write_internal and add
6568         __libc_write macro is SHARED.
6569         * sysdeps/generic/write.c: Use INTDEF for __write.
6570         * sysdeps/mach/hurd/write.c: Likewise.
6571         * sysdeps/unix/sysv/aix/write.c: Likewise.
6572         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6573
6574         * assert/assert.c: Replace STR_N_SIZE with something usable in
6575         macro arguments.
6576         * assert/assert-perr.c: Likewise.
6577
6578         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6579         SA_LEN macro to use it if not NOT_IN_libc.
6580         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6581
6582         * include/fcntl.h: Declare __open_internal and define __open and
6583         __libc_open macros if not NOT_IN_libc.
6584         * sysdeps/generic/open.c: Use INTDEF for __open.
6585         * sysdeps/mach/hurd/open.c: Likewise.
6586         * sysdeps/unix/sysv/aix/open.c: Likewise.
6587         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6588
6589         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6590         has correct number.
6591
6592         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6593         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6594         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6595         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6596
6597         * include/wctype.h: Declare __iswalpha_l_internal,
6598         __iswdigit_l_internal, __iswspace_l_internal,
6599         __iswxdigit_l_internal, and __iswctype_internal.  Define
6600         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6601         __iswxdigit_l macros if not NOT_IN_libc.
6602         * wctype/iswctype.c: Use INTDEF for __iswctype.
6603         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6604
6605         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6606         __isnan_internal, and __isnanl_internal.
6607         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6608         __isnan, and __isnanl.
6609         * stdio-common/printf_size.c: Likewise.
6610         * sysdeps/generic/printf_fphex.c: Likewise.
6611         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6612         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6613         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6614         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6615         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6616         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6617         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6618         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6619         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6620         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6621         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6622         * sysdeps/m68k/s_isinfl.c: Likewise.
6623         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6624         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6625
6626         * include/sys/time.h: Declare __gettimeofday_internal and define
6627         __gettimeofday macro if not NOT_IN_libc.
6628         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6629         * sysdeps/mach/gettimeofday.c: Likewise.
6630         * sysdeps/posix/gettimeofday.c: Likewise.
6631         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6632         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6633         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6634         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6635
6636         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6637         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6638         Remove __lstat and __fstat inline functions.
6639         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6640         * sysdeps/mach/hurd/fxstat.c: Likewise.
6641         * sysdeps/unix/fxstat.c: Likewise.
6642         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6643         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6644         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6645         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6646         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6647         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6648         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6649         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6650         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6651
6652         * include/unistd.h: Declare __getpid_internal and define
6653         __getpid macro if not NOT_IN_libc.
6654         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6655         * sysdeps/generic/getpid.c: Likewise.
6656         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6657         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6658
6659         * include/unistd.h: Declare __getpgid_internal and define
6660         __getpgid macro if not NOT_IN_libc.
6661         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6662         * sysdeps/mach/hurd/getpgid.c: Likewise.
6663         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6664         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6665         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6666         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6667
6668         * include/unistd.h: Declare __getpagesize_internal and define
6669         __getpagesize macro if not NOT_IN_libc.
6670         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6671         __getpagesize.
6672         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6673         * sysdeps/mach/getpagesize.c: Likewise.
6674         * sysdeps/posix/getpagesize.c: Likewise.
6675         * sysdeps/unix/getpagesize.c: Likewise.
6676         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6677         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6678         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6679         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6680
6681 2002-04-13  Andreas Jaeger  <aj@suse.de>
6682
6683         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6684         as clobber to reduce register pressure.
6685         (__strpbrk_cg): Likewise.
6686         (__mempcpy_by4): Likewise.
6687         (__strstr_cg): Likewise.
6688         Add prototype for __memrchr.
6689
6690 2002-04-13  Andreas Schwab  <schwab@suse.de>
6691
6692         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6693         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6694         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6695
6696 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6697
6698         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6699         check whether the caller prefers getting the most recent version of
6700         a symbol of the earliest version.
6701         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6702         _dl_do_lookup to also take the new parameter and pass it on.
6703         Change 'explicit' parameter of _dl_lookup_symbol and
6704         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6705         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6706         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6707         _dl_lookup_versioned_symbol.
6708         * elf/dl-reloc.c: Likewise.
6709         * elf/dl-runtime.c: Likewise.
6710         * elf/dl-sym.c: Likewise.
6711         * sysdeps/mips/dl-machine.h: Likewise.
6712
6713 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6714
6715         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6716         in a token.
6717         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6718
6719 2002-04-10  Andreas Jaeger  <aj@suse.de>
6720
6721         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6722
6723         * include/argz.h: Remove extra char from last patch.
6724
6725 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6726
6727         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6728         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6729         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6730         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6731         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6732         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6733         __chown_internal.
6734         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6735
6736         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6737         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6738         * intl/ngettext.c: Likewise.
6739
6740         * include/sys/socket.h: Declare __connect_internal and define
6741         __connect macro if not NOT_IN_libc.
6742         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6743         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6744         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6745
6746         * include/unistd.h: Declare __close_internal and define __close macro
6747         if not NOT_IN_libc.
6748         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6749         WJUMP3): Add extra parenthesis to avoid expanding element names with
6750         macors like __close.
6751         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6752
6753         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6754         if not NOT_IN_libc.
6755         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6756         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6757         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6758
6759         * include/unistd.h: Declare __fork_internal and define __fork macro
6760         if not NOT_IN_libc.
6761         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6762         * sysdeps/unix/sysv/aix/fork.c: Likewise.
6763         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
6764
6765         * include/stdio_ext.h: Declare __fsetlocking_internal and define
6766         __fsetlocking macro to use it if not NOT_IN_libc.
6767         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
6768
6769         * libio/__fbufsize.c: Correct copyright.
6770         * libio/__flbf.c: Likewise.
6771         * libio/__fpending.c: Likewise.
6772         * libio/__fpurge.c: Likewise.
6773         * libio/__freadable.c: Likewise.
6774         * libio/__freading.c: Likewise.
6775         * libio/__fsetlocking.c: Likewise.
6776         * libio/__fwritable.c: Likewise.
6777         * libio/__fwriting.c: Likewise.
6778
6779         * include/stdio.h: Declare __asprintf_internal and define __asprintf
6780         macro to use it if not NOT_IN_libc.
6781         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
6782
6783         * include/mntent.h: Declare __setmntent_internal,
6784         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
6785         __getmntent_r, and __endmntent macros to use these functions if not
6786         NOT_IN_libc.
6787         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
6788         __endmntent.
6789
6790         * include/math.h: Declare __finite_internal, __finitef_internal, and
6791         __finitel_internal.  Redefine isfinite macro if in libc or libm using
6792         these functions.
6793         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
6794         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
6795         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
6796         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
6797         * sysdeps/i386/fpu/s_finitef.S: Likewise.
6798         * sysdeps/i386/fpu/s_finitel.S: Likewise.
6799         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6800         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6801         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6802         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6803
6804         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
6805         to use this function if not NOT_IN_libc.
6806         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
6807         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
6808         * sysdeps/mach/hurd/fcntl.c: Likewise.
6809         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6810         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6811
6812         * include/argz.h: Declare __argz_count_internal and
6813         __argz_stringify_internal.
6814         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
6815         __argz_stringify.
6816         * string/argz-count.c: Use INTDEF for __argz_count.
6817         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
6818
6819         * include/stdlib.h: Declare __cxa_atexit_internal and define
6820         __cxa_atexit macro if not NOT_IN_libc.
6821         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
6822         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
6823
6824         * assert/assert.c: Use INTDEF for __assert_fail.
6825         * assert/__assert.c: Use INTUSE for call to __assert_fail.
6826         * include/assert.h: Declare __assert_fail_internal.
6827
6828         * extra-lib.mk: Mark assignment to lib with override.
6829
6830 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6831
6832         * Makerules: Use cppflags-iterator.mk to add defines for all test
6833         source files.
6834
6835 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6836
6837         * elf/elf.h: Define R_SH_TLS_xxx macros.
6838         * elf/rtld.c: Remove an extra parenthesis.
6839         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
6840         TLS_GD macros.
6841         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
6842         * sysdeps/sh/dl-lookupcfg.h: New file.
6843         * sysdeps/sh/dl-tls.h: New file.
6844         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
6845         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
6846         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
6847         R_SH_TLS_TPOFF32 relocations.
6848
6849 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6850
6851         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
6852         of NOT_IN_LIBC.
6853         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
6854         * include/stdlib.h: Likewise.
6855
6856 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
6857
6858         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
6859         instead of _RTLD_LOCAL.
6860         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
6861         * include/unistd.h: Likewise.
6862         * sysdeps/generic/ldsodefs.h: Likewise.
6863
6864         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
6865         if in libc or ld.so.
6866
6867 2002-04-08  Andreas Jaeger  <aj@suse.de>
6868
6869         * elf/cache.c (print_entry): Support x86-64.
6870
6871 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
6872
6873         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
6874         with one accessing the locale data structures directly.
6875         * stdio-common/printf-prs.c: Include localeinfo.h for new
6876         MB_CUR_MAX definition.
6877
6878         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
6879         is the name of the source file without extension.
6880         * Makefile (distribute): Add cppflags-iterator.mk.
6881         * cppflags-iterator.mk: New file.
6882         * extra-lib.mk: For the sources of the library run
6883         cppflags-iterator.mk.
6884
6885         * include/libintl.h: Declare __dcgettext_internal and
6886         _libc_intl_domainname_internal.  Define __dcgettext using these
6887         two symbols if used in libc itself.
6888         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
6889         _libc_intl_domainname_internal.
6890         * argp/argp-parse.c: Likewise.
6891         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
6892         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
6893         * intl/gettext.c: Likewise.
6894         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
6895         alias.
6896         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
6897         __dcgettext.
6898         * posix/regex_internal.c (gettext): Likewise.
6899
6900 2002-04-08  Andreas Jaeger  <aj@suse.de>
6901
6902         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
6903
6904         * sysdeps/x86_64/fpu/s_llrint.S: New file.
6905         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
6906         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
6907         * sysdeps/x86_64/fpu/s_lrint.S: New file.
6908         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
6909         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
6910
6911 2002-04-08  Roland McGrath  <roland@frob.com>
6912
6913         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
6914         widening __hurd_fail value.
6915
6916 2002-04-07  Roland McGrath  <roland@frob.com>
6917
6918         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
6919         <mach/machine/alpha_instruction.h>.
6920         (_hurd_setup_sighandler): Take proper arguments for current decls.
6921         Update code to use _hurdsig_catch_fault.
6922         Use `callsys' instruction instead of `call_pal'.
6923         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
6924
6925         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
6926         (ALIGN, at, AT, fp): New macros.
6927
6928 2002-04-06  Roland McGrath  <roland@frob.com>
6929
6930         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
6931
6932         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
6933         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
6934
6935         * sysdeps/mach/hurd/bind.c: Use prototype definition.
6936         * sysdeps/mach/hurd/connect.c: Likewise.
6937         * sysdeps/mach/hurd/getsockopt.c: Likewise.
6938         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6939
6940         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
6941         __msg_sig_post RPC.
6942
6943         * hurd/catch-exc.c: Use integer_t instead of int.
6944         * hurd/hurdfault.c: Likewise.
6945
6946         * sysdeps/mach/hurd/alpha/exc2signal.c
6947         (_hurd_exception2signal): Rewritten.
6948         * sysdeps/mach/hurd/alpha/longjmp-ts.c
6949         (_hurd_longjmp_thread_state): Rewritten.
6950
6951 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
6952
6953         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
6954         DB_LOOKUP_FCT prototype.
6955         * nss/getXXent_r.c: Likewise.
6956         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
6957         * inet/getaliasname_r.c: Likewise.
6958         * inet/getnetbyad_r.c: Likewise.
6959         * inet/getnetbynm_r.c: Likewise.
6960         * inet/getnetent_r.c: Likewise.
6961         * inet/getproto_r.c: Likewise.
6962         * inet/getprtent_r.c: Likewise.
6963         * inet/getprtname_r.c: Likewise.
6964         * inet/getrpcbyname_r.c: Likewise.
6965         * inet/getrpcbynumber_r.c: Likewise.
6966         * inet/getrpcent_r.c: Likewise.
6967         * inet/getservent_r.c: Likewise.
6968         * inet/getsrvbynm_r.c: Likewise.
6969         * inet/getsrvbypt_r.c: Likewise.
6970         * shadow/getspent_r.c: Likewise.
6971         * shadow/getspnam_r.c: Likewise.
6972
6973         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
6974
6975         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
6976         Use i686-friendly PIC code.
6977         * sysdeps/i386/elf/setjmp.S: Likewise.
6978
6979         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
6980
6981         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
6982         list.
6983         * elf/Versions: Remove it here.
6984
6985 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
6986
6987         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
6988         direction.  Reported by H . J . Lu <hjl@lucon.org>.
6989
6990 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
6991
6992         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
6993         test just before the test runs.
6994         * intl/tst-translit.sh: Likewise.
6995         * intl/tst-codeset.sh: Likewise.
6996
6997         * timezone/zic.c: Update from tzcode2002c.
6998         * timezone/asia: Update from tzdata2002c.
6999         * timezone/backward: Likewise.
7000         * timezone/europe: Likewise.
7001         * timezone/northamerica: Likewise.
7002         * timezone/northamerica: Likewise.
7003         * timezone/northamerica: Likewise.
7004         * timezone/southamerica: Likewise.
7005         * timezone/zone.tab: Likewise.
7006
7007 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7008
7009         * sysdeps/generic/brk.c (__curbrk): Declare.
7010         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7011         * sysdeps/generic/dl-sbrk.c: Likewise.
7012         * sysdeps/unix/arm/dl-brk.S: New file.
7013         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7014         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7015         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7016         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7017         * sysdeps/unix/i386/dl-brk.S: New file.
7018         * sysdeps/unix/mips/dl-brk.S: New file.
7019         * sysdeps/unix/sparc/dl-brk.S: New file.
7020         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7021         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7022         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7023         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7024
7025 2002-04-03  Andreas Schwab  <schwab@suse.de>
7026
7027         * Makefile (headers): Add gnu/lib-names.h here instead of
7028         install-others.
7029         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7030         installation rule.
7031         (install-headers): Add dependency on install-headers-nosubdir.
7032         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7033         instead of install-others.
7034         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7035         installation rule.
7036
7037 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7038
7039         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7040         Reported by Sam Roberts <sroberts@uniserve.com>.
7041
7042 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7043
7044         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7045         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7046         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7047         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7048
7049 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7050
7051         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7052         (RTLD_START): Ditto.
7053         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7054         dependency violation.
7055
7056 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7057
7058         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7059         all variable declarations.
7060
7061 2002-04-04  Andreas Schwab  <schwab@suse.de>
7062
7063         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7064
7065 2002-04-04  Andreas Jaeger  <aj@suse.de>
7066
7067         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7068         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7069
7070         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7071         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7072         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7073
7074         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7075
7076         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7077
7078         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7079         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7080
7081         * configure.in: Handle all mips entries the same.
7082
7083         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7084         * sysdeps/mips/mips3/*: Likewise.
7085         * sysdeps/mips/p40/bits/endian.h: Likewise.
7086
7087 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7088
7089         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7090         non-null result [PR libc/2600].
7091
7092         * misc/tst-dirname.c: Add more tests.
7093
7094 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7095
7096         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7097         define a code_set_name provide one based on the filename.
7098
7099         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7100
7101 2001-12-28  Andreas Jaeger  <aj@suse.de>
7102
7103         * time/mktime.c (__mktime_internal): Check for year < 70
7104         [PR libc/2738].
7105
7106 2002-04-03  Andreas Jaeger  <aj@suse.de>
7107
7108         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7109         shmat.
7110         Reported by Andi Kleen <ak@suse.de>.
7111
7112 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7113
7114         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7115         * sysdeps/generic/w_lgammaf.c: Likewise.
7116         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7117
7118         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7119         Adjust for new output format of the backtrace functions.
7120
7121         * misc/syslog.c (vsyslog): Only use cleanup handler if
7122         _LIBC_REENTRANT is defined [PR libc/2924].
7123
7124         * libio/Makefile (tests): Add bug-ungetwc2.
7125         * libio/bug-ungetwc2.c: New file.
7126
7127         * manual/install.texi: Typographical and grammatical cleanup.
7128         Patch by Dennis Grace <dgrace@us.ibm.com>.
7129
7130         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7131         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7132
7133         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7134         always "&".  Adjust callers.
7135         Add "_" prefix to several generated definitions.
7136         Patch by paul@serice.net [PR libc/3158].
7137
7138 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7139
7140         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7141         size of _dl_arm_cap_flags.
7142         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7143
7144         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7145         Define as 8.
7146
7147 2002-03-22  H.J. Lu  <hjl@gnu.org>
7148
7149         * scripts/firstversions.awk: Check the first version.
7150
7151 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7152
7153         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7154         dependencies must be stable to work correctly.
7155         Reported by martin.lubich@datacon.at.
7156
7157         * libio/bug-ungetwc1.c: New file.
7158         * libio/Makefile (tests): Add bug-ungetwc1.
7159
7160         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7161         if stream was last used for writing.
7162
7163         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7164         number [PR libc/3111].
7165
7166         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7167         to ...
7168         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7169
7170 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7171
7172         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7173         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7174         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7175         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7176         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7177
7178 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7179
7180         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7181         dynamic tags.
7182
7183 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * sysdeps/i386/fpu/s_fabs.S: New file.
7186         * sysdeps/i386/fpu/s_fabsf.S: New file.
7187         * sysdeps/i386/fpu/s_fabsl.S: New file.
7188         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7189         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7190         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7191
7192 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7193
7194         * rt/tst-shm.c (do_test): Add one more test for size of shared
7195         memory object.
7196
7197 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7198
7199         * malloc/malloc.c: Add short description and prototypes for
7200         malloc_get_state, malloc_set_state and posix_memalign, for
7201         consistency and to avoid warnings with -Wstrict-prototypes.
7202         Reported by Andreas Jaeger <aj@suse.de>.
7203
7204 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7205
7206         * po/gl.po: Update from translation team.
7207
7208 2002-03-31  Roland McGrath  <roland@frob.com>
7209
7210         * hurd/hurdselect.c (_hurd_select): Fix
7211         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7212         Use a union rather than casts to compare mach_msg_type_t as int.
7213
7214 2002-03-25  Roland McGrath  <roland@frob.com>
7215
7216         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7217         check off the end of NAME when it's shorter than 2 chars.
7218         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7219
7220 2002-03-17  Roland McGrath  <roland@frob.com>
7221
7222         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7223         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7224         * sysdeps/mach/hurd/i386/Dist: Add them.
7225         * sysdeps/mach/hurd/i386/Versions
7226         (libc: GLIBC_2.2.6): New set, add ioperm.
7227         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7228         (mach_interface_list): Check for mach_i386.defs.
7229         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7230         * sysdeps/mach/configure: Regenerated.
7231
7232 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7233
7234         * po/fr.po: Update from translation team.
7235
7236 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7237
7238         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7239         getpriority from syscalls list.
7240
7241 2002-03-28  Andreas Jaeger  <aj@suse.de>
7242
7243         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7244         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7245         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7246         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7247
7248 2002-03-27  Andreas Jaeger  <aj@suse.de>
7249
7250         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7251         sigcontext): Follow further kernel change.
7252
7253         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7254         kernel change.
7255
7256         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7257         Change for struct sigcontext change.
7258
7259         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7260         Follow changes in struct sigcontext.
7261
7262         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7263         sysycall, use wrapper instead.
7264
7265 2002-03-26  Andreas Jaeger  <aj@suse.de>
7266
7267         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7268         read and write accesses as detailed as possible.
7269         (__memcpy_by2): Likewise.
7270         (__memcpy_g): Likewise.
7271         (memmove): Likewise.
7272         (memcmp): Likewise.
7273         (__memset_ccn_by4): Likewise.
7274         (__memset_ccn_by2): Likewise.
7275         (__memset_gcn_by4): Likewise.
7276         (__memset_gcn_by2): Likewise.
7277         (memchr): Likewise.
7278         (__memrchr): Likewise.
7279         (rawmemchr): Likewise.
7280         (__strlen_g): Likewise.
7281         (__strcpy_g): Likewise.
7282         (__mempcpy_by4): Likewise.
7283         (__mempcpy_by2): Likewise.
7284         (__mempcpy_byn): Likewise.
7285         (__stpcpy_g): Likewise.
7286         (__strncpy_by4): Likewise.
7287         (__strncpy_by2): Likewise.
7288         (__strncpy_byn): Likewise.
7289         (__strncpy_gg): Likewise.
7290         (__strcat_c): Likewise.
7291         (__strcat_g): Likewise.
7292         (__strncat_g): Likewise.
7293         (__strcmp_gg): Likewise.
7294         (__strncmp_g): Likewise.
7295         (__strchr_c): Likewise.
7296         (__strchr_g): Likewise.
7297         (__strchrnul_c): Likewise.
7298         (__strchrnul_g): Likewise.
7299         (__strrchr_c): Likewise.
7300         (__strrchr_g): Likewise.
7301         (__strrchr_c): Likewise.
7302         (__strrchr_g): Likewise.
7303         (__strcspn_c1): Likewise.
7304         (__strcspn_cg): Likewise.
7305         (__strcspn_g): Likewise.
7306         (__strcspn_g): Likewise.
7307         (__strspn_c1): Likewise.
7308         (__strspn_cg): Likewise.
7309         (__strspn_g): Likewise.
7310         (__strspn_g): Likewise.
7311         (__strpbrk_cg): Likewise.
7312         (__strpbrk_g): Likewise.
7313         (__strstr_cg): Likewise.
7314         (__strstr_g): Likewise.
7315
7316         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7317         Michal Ludvig <mludvig@suse.cz>.
7318
7319         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7320         compatibilty, adjust for kernel changes.
7321
7322         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7323         sigcontext): Adjust for kernel changes.
7324
7325 2002-03-25  Andreas Jaeger  <aj@suse.de>
7326
7327         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7328         little endian.
7329         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7330
7331 2002-03-24  Andreas Jaeger  <aj@suse.de>
7332
7333         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7334
7335         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7336
7337         * iconv/tst-iconv3.c (main): Use correct printf strings.
7338
7339 2002-03-18  Roland McGrath  <roland@frob.com>
7340
7341         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7342         (CMGROUP_MAX): New macro.
7343
7344 2002-03-23  Roland McGrath  <roland@frob.com>
7345
7346         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7347         * sysdeps/posix/shm_unlink.c: Likewise.
7348
7349 2002-03-22  Roland McGrath  <roland@frob.com>
7350
7351         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7352         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7353         under --enable-libio.
7354         * sysdeps/mach/hurd/configure: Regenerated.
7355
7356 2002-03-23  Roland McGrath  <roland@frob.com>
7357
7358         * sysdeps/mach/hurd/i386/Makefile
7359         (sysdep_routines, shared-only-routines): Don't add framestate,
7360         reverting 2001-10-02 change.
7361         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7362         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7363         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7364         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7365         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7366         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7367         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7368         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7369         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7370         Do it here instead, only if [$(unwind-find-fde) = yes].
7371
7372 2002-03-23  Andreas Jaeger  <aj@suse.de>
7373
7374         * signal/signal.h: Fix typo. Patch by Steve Kemp
7375         <skx@tardis.ed.ac.uk>.
7376
7377 2002-03-22  Andreas Jaeger  <aj@suse.de>
7378
7379         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7380         getresuid.
7381
7382         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7383         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7384         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7385         user_fpregs_struct): Rename fwd.
7386
7387         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7388         Follow sigcontext changes.
7389
7390 2002-03-22  Andreas Jaeger  <aj@suse.de>
7391
7392         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7393         changes for NaNs on MIPS.
7394         Patch by Hartvig Ekner <hartvige@mips.com>.
7395
7396 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7397
7398         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7399         Use realloc if too large.
7400         (addgrbyid): Likewise.
7401         * nscd/hstcache.c (addhstbyname): Likewise.
7402         (addhstbyaddr): Likewise.
7403         (addhstbynamev6): Likewise.
7404         (addhstbyaddrv6): Likewise.
7405         * nscd/pwdcache.c (addpwbyname): Likewise.
7406         (addpwbyuid): Likewise.
7407
7408 2002-03-21  Andreas Jaeger  <aj@suse.de>
7409
7410         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7411         _fpstate): Add separate struct for x86-64.
7412
7413         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7414         user_fpregs_struct): Change member names to follow kernel.
7415
7416 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7417
7418         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7419         Correctly close the UDP connection right away [PR libc/3120].
7420
7421 2002-03-20  Andreas Jaeger  <aj@suse.de>
7422
7423         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7424         user_fpregs_struct): Fix for changed kernel struct.
7425         (struct user_regs_struct): Likewise.
7426         (struct user): Likewise.
7427         Add 32-bit x86 compatibility.
7428
7429         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7430
7431 2002-03-19  Andreas Jaeger  <aj@suse.de>
7432
7433         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7434
7435 2002-03-18  Andreas Jaeger  <aj@suse.de>
7436
7437         * iconvdata/Makefile: Only run tests when shared libs are
7438         available.
7439
7440 2002-03-17  Andreas Jaeger  <aj@suse.de>
7441
7442         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7443
7444         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7445
7446         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7447         bits.
7448
7449         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7450         (CAUSE_SHIFT): New macro.
7451         Patch by Hartvig Ekner <hartvige@mips.com>.
7452
7453         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7454         * sysdeps/generic/unwind-pe.h: Likewise.
7455
7456         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7457         type to _IO_setb.
7458
7459         * libio/stdio.c (AL2): Define variant when visibility attribute is
7460         not supported.
7461
7462         * include/libc-symbols.h (_INTVARDEF): Define variant when
7463         visibility attribute is not supported.
7464
7465 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7466
7467         * po/fr.po: Update from translation team.
7468
7469 2002-02-25  Bruno Haible  <bruno@clisp.org>
7470
7471         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7472
7473 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7474
7475         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7476         buffers if _IO_file_attach failed.
7477
7478         * libio/fileops.c (_IO_file_open): Close file descriptor if
7479         _IO_SEEKOFF call failed.
7480
7481 2002-03-15  H.J. Lu  <hjl@gnu.org>
7482             Ulrich Drepper  <drepper@redhat.com>
7483
7484         * configure.in: Check for availability of
7485         init_array/fini_array/preinit_array handling in binutils.
7486         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7487         * config.make.in (have-initfini-array): New variable.
7488
7489 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7490
7491         * stdio-common/tst-printf.c (main): Comment out one test which
7492         checked the compiler's ability to fold floating-point constants
7493         but not really printf.
7494         (rfg3): Make s const.
7495         * stdio-common/tst-printf.sh: Adjust for removed test.
7496
7497         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7498         internal function.  Adjust for internal_function calling convention.
7499         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7500         as internal_function.
7501
7502         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7503         hidden.
7504
7505         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7506         declaration and definition.
7507         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7508         declaration.
7509         * nss/getXXent_r.c: Likewise.
7510         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7511         definition.
7512
7513         * include/time.h: Declare __localtime_r as hidden.
7514
7515         * include/aliases.h: Declare __getaliasent_r as hidden.
7516         * include/grp.h: Declare __getgrent_r as hidden.
7517         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7518         __getservent_r, and __getprotoent_r as hidden.
7519         * include/pwd.h: Declare __getpwent_r as hidden.
7520         * include/shadow.h: Declare __getspent_r as hidden.
7521         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7522
7523         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7524         and __gconv_transliterate as hidden.
7525         Add internal_function to __gconv_get_path declaration.
7526         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7527         definition.  Add attribute_hidden to __gconv_read_conf definition.
7528
7529 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7530
7531         * elf/rtld.c: Declare _environ as hidden.
7532         * sysdeps/generic/dl-environ.c: Likewise.
7533         * sysdeps/generic/dl-sysdep.c: Likewise.
7534
7535         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7536         _dl_mcount_internal as hidden.
7537
7538         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7539         * sysdeps/generic/dl-brk.c: New file.
7540         * sysdeps/generic/dl-sbrk.c: New file.
7541         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7542         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7543
7544         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7545         (__errno_location): New function.  Declare errno as hidden.
7546         * elf/rtld.c (_dl_argc): Define as hidden.
7547         (_dl_skip_args): Define as hidden.
7548         (_begin, _end): Declare as hidden.
7549         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7550         * sysdeps/generic/entry.h (_start): Declare as hidden.
7551         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7552         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7553         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7554         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7555
7556 2002-03-14  Roland McGrath  <roland@frob.com>
7557
7558         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7559
7560         * Makeconfig (%.v.i, %.v): New implicit rules.
7561         (preprocess-versions): Variable removed.
7562         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7563         shlib-versions input files as dependencies.
7564         ($(common-objpfx)soversions.i): Depend on that instead of the input
7565         files.  Use it as input instead of using a pipeline.
7566         (postclean-generated): Append soversions.i, shlib-versions.v, and
7567         shlib-versions.v.i here.
7568         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7569         the Versions.def input files as dependencies.
7570         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7571         ($(common-objpfx)Versions.all): Depend on that instead of the input
7572         files.  Use it as input instead of using a pipeline.
7573         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7574         (postclean-generated): Append those .v and .v.i files here.
7575
7576 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7577
7578         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7579         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7580         Remove.
7581
7582 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7583
7584         * sysdeps/generic/mp_clz_tab.c: New file.
7585         * sysdeps/i386/mp_clz_tab.c: New file.
7586         * sysdeps/hppa/mp_clz_tab.c: New file.
7587         * sysdeps/powerpc/mp_clz_tab.c: New file.
7588         * stdlib/Makefile (aux): Revert last patch.
7589         * math/Makefile (gmp-objs): Likewise.
7590
7591 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7592
7593         * time/strftime.c: Comment fixes for references to obsolescent
7594         standards, In most cases the simplest fix is to remove the
7595         confusing comments.  Cross-referencing all the standards properly
7596         is a bit of a pain, and it should be enough to put that info in
7597         the documentation as I did in my recent time.texi patch.
7598
7599 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7600
7601         * manual/time.texi (Formatting Calendar Time):
7602         ISO C99 also specifies the E and O modifiers.
7603         %P is a GNU extension, and is not in ISO C99.
7604         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7605         %T is also in ISO C99.
7606         The RFC 822 example is not valid in arbitrary locales.
7607         Reword the POSIX.2 wording slightly, to make it a bit clearer
7608         that POSIX.2 formats are also supported by later POSIX versions.
7609         If a format was introduced in ISO C99 it is also required by
7610         POSIX.1-2001.
7611
7612 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7613
7614         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7615         _sys_nerr_internal with INTVARDEF2.
7616         * include/libc-symbols.h (INTVARDEF2): New macro.
7617         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7618         (_sys_nerr_internal): Library.
7619
7620         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7621         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7622
7623         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7624
7625 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7626
7627         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7628
7629 2002-03-02  Andreas Schwab  <schwab@suse.de>
7630
7631         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7632         'h' flag and positional arg.
7633         * stdio-common/tst-printf.c (rfg3): New function to test
7634         positional arguments.
7635         (main): Fix some warnings.
7636
7637 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7638
7639         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7640         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7641
7642 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7643
7644         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7645
7646         * include/locale.h (_nl_C_locobj): Declare as hidden.
7647
7648         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7649         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7650
7651         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7652
7653         * include/sys/gmon.h: Declare _gmonparam as hidden.
7654
7655         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7656         (__ctype32_wctrans): Likewise.
7657         (__ctype32_width): Likewise.
7658
7659         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7660         use of __ttyname.
7661
7662         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7663         Define as hidden.
7664         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7665         hidden.  Change all users of these variables.
7666
7667         * posix/regex_internal.h (__re_error_msgid): Renamed from
7668         re_error_msgid.  Declare as hidden.
7669         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7670         hidden.
7671
7672         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7673         (__printf_function_table): Likewise.
7674         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7675         hidden.
7676         (__printf_function_table): Likewise.
7677
7678         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7679         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7680
7681         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7682         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7683
7684         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7685         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7686
7687 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7688
7689         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7690         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7691         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7692         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7693         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7694         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7695         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7696         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7697         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7698         _nl_C_LC_CTYPE_width: Declare as hidden.
7699         * include/locale.h: Declare _nl_locale_file_list.
7700         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7701         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7702         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7703         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7704         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7705         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7706         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7707         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7708         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7709         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7710         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7711         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7712         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7713         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7714         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7715         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7716         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7717         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7718         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7719         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7720         _nl_C_LC_CTYPE_width, and as hidden.
7721         * locale/findlocale.c: Declare _nl_C as hidden.
7722         * locale/newlocale.c: Likewise.
7723         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7724         _nl_locale_file_list.
7725         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7726         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7727         Define _nl_C_locobj as hidden.
7728
7729         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7730         (_mtrace_line): Likewise.
7731
7732         * include/time.h: Declare __mon_yday as hidden.
7733         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7734
7735         * libio/libioP.h: Declare __libio_codecvt as hidden.
7736         * libio/fileops.c: Declare __libio_translit as hidden.
7737         * libio/iofwide.c: Define __libio_translit as hidden.
7738
7739         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7740         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7741         * login/getutline_r.c: Likewise.
7742         * login/utmpname.c: Likewise.
7743
7744         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7745         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7746         __libc_utmp_file_name as hidden.
7747
7748         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7749         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7750         * locale/freelocale.c: Likewise.
7751         * locale/lc-time.c: Likewise.
7752
7753         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7754         (__libc_ptyname2): Likewise.
7755         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7756         hidden.
7757         (__libc_ptyname2): Likewise.
7758
7759         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7760         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7761         * sysdeps/generic/init-first.c: Likewise.
7762         * sysdeps/i386/init-first.c: Likewise.
7763         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7764         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7765         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7766         * sysdeps/sh/init-first.c: Likewise.
7767         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7768         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7769
7770         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
7771         (_itowa_upper_digits): Likewise.
7772
7773         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
7774         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
7775         as hidden.
7776
7777         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
7778         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
7779         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
7780         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
7781
7782         * gmon/gmon.c (__bb_head): Define as hidden.
7783         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
7784
7785         * argp/argp-parse.c (_argp_hang): Define as static.
7786
7787         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
7788         handling in latest compilers.
7789
7790         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
7791         define alias.
7792         * libio/fileops.c (_IO_file_jumps): Likewise.
7793         * libio/stdfiles.c (_IO_list_all): Likewise.
7794         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
7795
7796         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
7797         include/malloc.h.
7798         * include/malloc.h: Add __libc_malloc_initialized declaration
7799         here.  Mark variable hidden.
7800         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
7801
7802         * elf/dl-open.c (__libc_argc): Declare as hidden.
7803         (__libc_argv): Likewise.
7804         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
7805         (__libc_argv): Likewise.
7806         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
7807         __libc_argv as hidden.
7808         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7809         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7810         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
7811         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7812
7813         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
7814         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
7815         * stdlib/erand48.c: Likewise.
7816         * stdlib/jrand48.c: Likewise.
7817         * stdlib/lcong48.c: Likewise.
7818         * stdlib/lrand48.c: Likewise.
7819         * stdlib/mrand48.c: Likewise.
7820         * stdlib/nrand48.c: Likewise.
7821         * stdlib/seed48.c: Likewise.
7822         * stdlib/srand48.c: Likewise.
7823
7824         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
7825         (_itoa_lower_digits_internal): New declaration.
7826         (_itoa_upper_digits_internal): New declaration.
7827         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
7828         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
7829         (_itoa_upper_digits_internal): New declaration.
7830         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
7831         _itoa_lower_digits.
7832         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
7833         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
7834
7835         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
7836         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7837
7838         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
7839         (_itowa_lower_digits): Likewise.
7840         (_itowa_upper_digits): Likewise.
7841         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
7842         (_itowa_upper_digits): Likewise.
7843
7844         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
7845         not already defined.
7846         (GERMANIC_PLURAL): Declare as hidden.
7847
7848         * posix/getopt.c (__getopt_initialized): Declare as hidden.
7849         (attribute_hidden): Define as empty macro if not already defined.
7850
7851         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
7852         (__gconv_max_path_elem_len): Likewise.
7853         (__gconv_path_envvar): Likewise.
7854
7855         * math/Makefile (gmp-objs): Remove mp_clz_tab.
7856         * stdlib/Makefile (aux): Remove mp_clz_tab.
7857         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
7858
7859         * stdlib/exit.h (__exit_funcs): Declare as hidden.
7860
7861         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
7862
7863         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
7864         _nl_category_names, _nl_category_name_sizes, _nl_current,
7865         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
7866
7867         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
7868         (_nl_current_default_domain): Likewise
7869         (_nl_state_lock): Likewise.
7870         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
7871         (_nl_current_default_domain): Likewise
7872         (_nl_state_lock): Likewise.
7873         * intl/bindtextdom.c (_nl_state_lock): Likewise.
7874
7875         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
7876         (_fpioconst_pow10): Likewise.
7877
7878         * include/time.h (_tmbuf): Add attribute_hidden.
7879
7880         * time/tzset.c (tzstring_list): Define as static.
7881
7882         * include/time.h: Add attribute_hidden to __tzname_cur_max and
7883         __use_tzfile declaration.
7884
7885         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
7886         and __wcsmbs_last_locale declaration.
7887
7888 2002-02-25  Paul Eggert  <eggert@twinsun.com>
7889
7890         * timezone/Makefile (tzbases): Move systemv from here...
7891         (tzlinks): to here, since the entries in systemv were all changed
7892         from Zone to Link lines in tz-2001a.  Bug reported (and patch
7893         tested) by Peter Breitenlohner.
7894
7895 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
7896
7897         * time/tst-posixtz.c (tests): Add new tests.
7898         (main): Test whether tzset() sets daylight properly.
7899
7900 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7901
7902         * time/tzset.c (tz_compute): Move __daylight, __tzname and
7903         __tzname_cur_max setting...
7904         (tzset_internal): ...here.
7905
7906 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7907
7908         * time/tzset.c (compute_change): Don't return any value.
7909         (tz_compute): Likewise.  Don't handle southern hemisphere here.
7910         (__tz_convert): But here.
7911
7912 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
7913
7914         * manual/examples/mkfsock.c: Include <string.h> as well.
7915         Patch by Alain De Carolis <alaind@wseurope.com>.
7916
7917 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
7918
7919         * posix/regexec.c (re_match): Fix incorrect register sizes.
7920         (re_search): Likewise.
7921
7922 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7923
7924         * posix/regcomp.c (regfree): Remove a disused condition.
7925         * posix/regex_internal.c (re_acquire_state): Likewise.
7926         (re_acquire_state_context): Likewise.
7927         (register_state): Remove a redundant malloc invocation.
7928         * posix/regex_internal.h: (re_state_table_entry): Simplify
7929         the structure.
7930
7931 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
7932
7933         * posix/regcomp.c (regcomp): Add __builtin_expect to error
7934         handling conditions.
7935         (regerror): Likewise.
7936         (regfree): Likewise.
7937         (re_compile_internal): Likewise.
7938         (init_dfa): Likewise.
7939         (init_word_char): Likewise.
7940         (create_initial_state): Likewise.
7941         (analyze): Likewise.
7942         (analyze_tree): Likewise.
7943         (duplicate_node): Likewise.
7944         (calc_eclosure): Likewise.
7945         (calc_eclosure_iter): Likewise.
7946         (parse): Likewise.
7947         (parse_reg_exp): Likewise.
7948         (parse_branch): Likewise.
7949         (parse_expression): Likewise.
7950         (parse_subexp): Likewise.
7951         (parse_dup_op): Likewise.
7952         (parse_bracket_exp): Likewise.
7953         (build_equiv_class): Likewise.
7954         (build_charclass): Likewise.
7955         (build_word_op): Likewise.
7956         (fetch_number): Likewise.
7957         (create_tree): Likewise.
7958         (duplicate_tree): Likewise.
7959         * posix/regex.c (BE): New macro.
7960         * posix/regexec.c (re_match): Add __builtin_expect to error
7961         handling conditions.
7962         (re_match_2): Likewise.
7963         (re_search): Likewise.
7964         (re_search_internal): Likewise.
7965         (check_matching): Likewise.
7966         (proceed_next_node): Likewise.
7967         (set_regs): Likewise.
7968         (sift_states_backward): Likewise.
7969         (add_epsilon_backreference): Likewise.
7970         (transit_state): Likewise.
7971         (transit_state_sb): Likewise.
7972         (transit_state_mb): Likewise.
7973         (transit_state_bkref): Likewise.
7974         (transit_state_bkref_loop): Likewise.
7975         (build_trtable): Likewise.
7976         (group_nodes_into_DFAstates): Likewise.
7977         (match_ctx_init): Likewise.
7978         (match_ctx_add_entry): Likewise.
7979         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
7980         to error handling conditions.
7981         (re_string_construct_toupper): Likewise.
7982         (build_wcs_buffer): Likewise.
7983         (build_wcs_upper_buffer): Likewise.
7984         (build_upper_buffer): Likewise.
7985         (re_string_translate_buffer): Likewise.
7986         (re_node_set_alloc): Likewise.
7987         (re_node_set_init_1): Likewise.
7988         (re_node_set_init_2): Likewise.
7989         (re_node_set_init_copy): Likewise.
7990         (re_node_set_intersect): Likewise.
7991         (re_node_set_init_union): Likewise.
7992         (re_node_set_merge): Likewise.
7993         (re_node_set_insert): Likewise.
7994         (re_dfa_add_node): Likewise.
7995         (re_acquire_state): Likewise.
7996         (re_acquire_state_context): Likewise.
7997         (create_new_state_common): Likewise.
7998         (register_state): Likewise.
7999         (create_ci_new_state): Likewise.
8000         (create_cd_new_state): Likewise.
8001         (re_string_context_at): Remove redundant condition.
8002
8003 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8004
8005         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8006
8007         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8008
8009 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8010
8011         * sysdeps/i386/elf/configure.in: Fix comment.
8012
8013         * sysdeps/sparc/sparc64/configure.in: New file.
8014         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8015         if .dynamic comes before .got.
8016         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8017
8018         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8019         HP_TIMING_ACCUM): Fix typos.
8020
8021 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8022
8023         * string/strfry.c: Add some more randomness to the seed.
8024         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8025
8026         * po/es.po: Update from translation team.
8027         * po/fr.po: Likewise.
8028
8029         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8030
8031         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8032         when determining type of format.
8033         Patch by James Antill <james@anqd.org> [PR libc/2787].
8034
8035 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8036
8037         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8038
8039 2002-03-11  Roland McGrath  <roland@frob.com>
8040
8041         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8042
8043         * Versions.def (libc): Add GLIBC_2.2.6.
8044         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8045         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8046         __errno_location instead of __hurd_errno_location, and don't inline it.
8047         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8048         * hurd/errno.c: New file.
8049         * hurd/Makefile (routines): Add errno.
8050
8051 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8052
8053         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8054         ridiculously large widths and precisions [PR libc/3026].
8055
8056 2002-03-11  Andreas Jaeger  <aj@suse.de>
8057
8058         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8059         support.
8060         Patch by Susanne Oberhauser <froh@SuSE.de>.
8061
8062 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8063
8064         * inet/rexec.c (ahostbuf): Define as static.
8065
8066         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8067         (__ctype32_wctrans): Likewise.
8068         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8069         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8070         (__ctype32_wctrans): Likewise.
8071         (__ctype32_width): Likewise.
8072
8073         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8074         They were never exported anyway.
8075
8076         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8077         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8078         exported.
8079         * include/sys/gmon.h: Declare _gmonparam.
8080
8081         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8082         symbols for getdents64.  They were never exported.
8083
8084 2002-03-09  Roland McGrath  <roland@frob.com>
8085
8086         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8087         Reported by Jon Arney <jarney1@cox.net>.
8088
8089 2002-02-23  Roland McGrath  <roland@frob.com>
8090
8091         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8092         declaration.
8093         (__hurd_errno_location): Function removed.
8094
8095 2002-03-06  Andreas Jaeger  <aj@suse.de>
8096
8097         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8098         32-bit.
8099
8100 2002-03-04  Andreas Jaeger  <aj@suse.de>
8101
8102         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8103
8104         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8105         x86-64.
8106
8107         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8108
8109         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8110
8111         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8112
8113         * sysdeps/x86_64/bits/setjmp.h: New file.
8114
8115         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8116
8117         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8118
8119         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8120         for x86.
8121         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8122         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8123
8124 2002-02-28  Bo Thorsen  <bo@suse.de>
8125
8126         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8127         version.
8128
8129 2002-03-03  Andreas Jaeger  <aj@suse.de>
8130
8131         * sysdeps/x86_64/bits/wordsize.h: New file.
8132
8133         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8134         * elf/tst-tlsmod1.c: Likewise.
8135
8136         * posix/regcomp.c: Get regex.h from include dir for internal
8137         prototypes.
8138
8139         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8140         to libc-internal.h and include it.
8141         * include/libc-internal.h: Add __init_misc.
8142
8143         * misc/init-misc.c: Include libc-internal.h for prototypes.
8144
8145         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8146
8147         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8148         _IO_putc_internal.
8149
8150 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8151
8152         * posix/regcomp.c: Compatibility changes to allow using the code
8153         outside glibc.
8154
8155 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8156
8157         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8158         compiled non-PIC.
8159
8160 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8161
8162         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8163         of .str elements in the returned data structure.
8164
8165         * elf/elf.h: Add Alpha TLS bits.
8166
8167 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8168
8169         * sysdeps/unix/sysv/linux/nice.c: New file.
8170
8171 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8172
8173         * elf/Makefile (dl-routines): Add dl-origin.
8174         (elide-routines.os): Add dl-origin.
8175         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8176         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8177         _dl_debug_state.
8178         * include/libc-symbols.c: Define attribute_hidden depending on
8179         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8180
8181         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8182         * elf/dl-load.c: Likewise.
8183         * elf/rtld.c: Likewise.
8184         * include/unistd.h: Declare __libc_enable_secure_internal.
8185         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8186         Use INTUSE with __libc_enable_secure.
8187         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8188
8189         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8190         * elf/dl-error.c: Likewise,
8191         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8192
8193         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8194         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8195         function definition.  Use INTDEF with _dl_get_origin.
8196         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8197
8198         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8199         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8200
8201         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8202         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8203         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8204
8205         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8206         * elf/dl-deps.c: Likewise.
8207         * elf/dl-error.c: Likewise.
8208         * elf/dl-fini.c: Likewise.
8209         * elf/dl-init.c: Likewise.
8210         * elf/dl-load.c: Likewise.
8211         * elf/dl-lookup.c: Likewise.
8212         * elf/dl-reloc.c: Likewise.
8213         * elf/dl-version.c: Likewise.
8214         * elf/do-lookup.h: Likewise.
8215         * sysdeps/arm/dl-machine.h: Likewise.
8216         * sysdeps/cris/dl-machine.h: Likewise.
8217         * sysdeps/hppa/dl-machine.h: Likewise.
8218         * sysdeps/i386/dl-machine.h: Likewise.
8219         * sysdeps/m68k/dl-machine.h: Likewise.
8220         * sysdeps/powerpc/dl-machine.h: Likewise.
8221         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8222         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8223         * sysdeps/sh/dl-machine.h: Likewise.
8224         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8225         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8226         * sysdeps/x86_64/dl-machine.h: Likewise.
8227         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8228         _dl_argv[0].  Use INTUSE with _dl_argv.
8229         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8230         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8231
8232 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8233
8234         * elf/rtld.c (_rtld_global): Remove .protected.
8235         (_rtld_local): Strong alias to _rtld_global.
8236         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8237         only .os object.
8238         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8239         _rtld_local instead of _rtld_global.
8240         (_rtld_local): Add hidden extern, possibly in .sdata section.
8241         * configure.in: Add tests for visibility attribute and .sdata.
8242         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8243         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8244         * sysdeps/arm/dl-machine.h: Likewise.
8245         * sysdeps/generic/ldsodefs.h: Likewise.
8246         * sysdeps/hppa/dl-machine.h: Likewise.
8247         * sysdeps/cris/dl-machine.h: Likewise.
8248         * sysdeps/i386/dl-machine.h: Likewise.
8249         * sysdeps/ia64/dl-machine.h: Likewise.
8250         * sysdeps/m68k/dl-machine.h: Likewise.
8251         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8252         * sysdeps/mips/dl-machine.h: Likewise.
8253         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8254         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8255         * sysdeps/sh/dl-machine.h: Likewise.
8256         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8257         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8258         * sysdeps/x86_64/dl-machine.h: Likewise.
8259
8260 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8261
8262         * login/login.c (login): Always initialize ut_line field
8263         [PR libc/2991].
8264
8265 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8266
8267         * sysdeps/i386/Makefile (sysdep_routines): Add
8268         divdi3 in csu dir.
8269         (shared-only-routines): Likewise.
8270         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8271         (shared-only-routines): Likewise.
8272         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8273         (shared-only-routines): Likewise.
8274         * sysdeps/wordsize-32/divdi3.c: New file.
8275
8276 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8277
8278         * locale/iso-4217.def: Remove obsolete currencies for countries
8279         with Euro.
8280
8281 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8282
8283         * posix/regcomp.c (regcomp): Remove a redundant condition.
8284         (init_word_char): Add a check on malloc failure.
8285         (create_initial_state): Likewise.
8286         (duplicate_node): Likewise.
8287         (calc_eclosure): Likewise.
8288         (calc_eclosure_iter): Likewise.
8289         (parse_expression): Likewise.
8290         (parse_bracket_exp): Remove unnecessary malloc invocations.
8291         (build_equiv_class): Likewise.
8292         (build_charclass): Likewise.
8293         * posix/regex_internal.c (re_node_set_intersect): Add a check
8294         on malloc failure.
8295         (re_node_set_add_intersect): Likewise.
8296         (re_node_set_merge): Likewise.
8297         (re_acquire_state): Likewise.
8298         (re_acquire_state_context): Likewise.
8299         (create_newstate_common): Likewise.
8300         (register_state): Likewise.
8301         (create_ci_newstate): Likewise.
8302         (create_cd_newstate): Likewise.
8303         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8304         and re_acquire_state_context.
8305         * posix/regexec.c (regexec): Suit it to the error handling of
8306         re_search_internal.
8307         (re_match): Likewise.
8308         (re_search): Likewise.
8309         (re_search_internal): Add a check on malloc failure.
8310         (acquire_init_state_context): Likewise.
8311         (check_matching): Likewise.
8312         (proceed_next_node): Likewise.
8313         (set_regs): Likewise.
8314         (sift_states_backward): Likewise.
8315         (sift_states_iter_bkref): Likewise.
8316         (add_epsilon_backreference): Likewise.
8317         (transit_state): Likewise.
8318         (transit_state_sb): Likewise.
8319         (transit_state_mb): Likewise.
8320         (transit_state_bkref_loop): Likewise.
8321         (build_trtable): Likewise.
8322         (group_nodes_into_DFAstates): Likewise.
8323         (match_ctx_init): Likewise.
8324         (match_ctx_add_entry): Likewise.
8325
8326 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8327
8328         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8329         l_libname if profiling is enabled [PR libc/2916].
8330
8331         * sysdeps/ia64/dl-tls.h: New file.
8332
8333 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8334
8335         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8336         Work around an Alpha gas bug.
8337
8338 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8339
8340         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8341         uses read to load the catalog.
8342         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8343
8344 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8345
8346         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8347         regex_internal.c, and regex_internal.h.
8348         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8349         * posix/regex.c: Complete rewrite.
8350         * posix/regexec.c: New file.
8351         * posix/regcomp.c: New file.
8352         * posix/regex_internal.c: New file.
8353         * posix/regex_internal.h: New file.
8354         * posix/regex.h (RE_ICASE): New macro.
8355         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8356
8357         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8358         ungetwc.  It's a macro.
8359         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8360         implementation.
8361         Reported by Jason Merrill <jason@redhat.com>.
8362
8363 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8364
8365         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8366         position to fp->_offset if it is set.
8367         * stdio-common/Makefile (tests): Add tst-fdopen.
8368         * stdio-common/tst-fdopen.c: New test.
8369
8370 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8371
8372         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8373         * stdio-common/tst-ungetc.c (main): Add another test.
8374
8375 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8376
8377         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8378         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8379         aliases.  Add prototypes for the new aliases.
8380         * assert/assert.c: Likewise.
8381         * include/libc-symbols.h: Likewise.
8382         * include/stdio.h: Likewise.
8383         * include/netinet/in.h: Likewise.
8384         * include/rpc/auth.h: Likewise.
8385         * include/rpc/auth_unix.h: Likewise.
8386         * include/rpc/key_prot.h: Likewise.
8387         * include/rpc/pmap_prot.h: Likewise.
8388         * include/rpc/pmap_rmt.h: Likewise.
8389         * include/rpc/rpc_msg.h: Likewise.
8390         * include/rpc/xdr.h: Likewise.
8391         * inet/gethstbyad_r.c: Likewise.
8392         * inet/gethstbynm2_r.c: Likewise.
8393         * inet/gethstbynm_r.c: Likewise.
8394         * inet/gethstent_r.c: Likewise.
8395         * inet/in6_addr.c: Likewise.
8396         * libio/__fpurge.c: Likewise.
8397         * libio/filedoalloc.c: Likewise.
8398         * libio/fileops.c: Likewise.
8399         * libio/ftello.c: Likewise.
8400         * libio/ftello64.c: Likewise.
8401         * libio/genops.c: Likewise.
8402         * libio/iofclose.c: Likewise.
8403         * libio/iofdopen.c: Likewise.
8404         * libio/iofflush.c: Likewise.
8405         * libio/iofflush_u.c: Likewise.
8406         * libio/iofgetpos.c: Likewise.
8407         * libio/iofgetpos64.c: Likewise.
8408         * libio/iofgets.c: Likewise.
8409         * libio/iofgets_u.c: Likewise.
8410         * libio/iofopen.c: Likewise.
8411         * libio/iofopncook.c: Likewise.
8412         * libio/iofputs.c: Likewise.
8413         * libio/iofread.c: Likewise.
8414         * libio/iofread_u.c: Likewise.
8415         * libio/iofsetpos.c: Likewise.
8416         * libio/iofsetpos64.c: Likewise.
8417         * libio/ioftell.c: Likewise.
8418         * libio/iofwrite.c: Likewise.
8419         * libio/iogetline.c: Likewise.
8420         * libio/iogets.c: Likewise.
8421         * libio/iogetwline.c: Likewise.
8422         * libio/iolibio.h: Likewise.
8423         * libio/iopadn.c: Likewise.
8424         * libio/iopopen.c: Likewise.
8425         * libio/ioseekoff.c: Likewise.
8426         * libio/ioseekpos.c: Likewise.
8427         * libio/iosetbuffer.c: Likewise.
8428         * libio/iosetvbuf.c: Likewise.
8429         * libio/ioungetc.c: Likewise.
8430         * libio/ioungetwc.c: Likewise.
8431         * libio/iovdprintf.c: Likewise.
8432         * libio/iovsprintf.c: Likewise.
8433         * libio/iovsscanf.c: Likewise.
8434         * libio/libioP.h: Likewise.
8435         * libio/memstream.c: Likewise.
8436         * libio/obprintf.c: Likewise.
8437         * libio/oldfileops.c: Likewise.
8438         * libio/oldiofclose.c: Likewise.
8439         * libio/oldiofdopen.c: Likewise.
8440         * libio/oldiofgetpos.c: Likewise.
8441         * libio/oldiofgetpos64.c: Likewise.
8442         * libio/oldiofopen.c: Likewise.
8443         * libio/oldiofsetpos.c: Likewise.
8444         * libio/oldiofsetpos64.c: Likewise.
8445         * libio/oldiopopen.c: Likewise.
8446         * libio/oldstdfiles.c: Likewise.
8447         * libio/putc.c: Likewise.
8448         * libio/setbuf.c: Likewise.
8449         * libio/setlinebuf.c: Likewise.
8450         * libio/stdfiles.c: Likewise.
8451         * libio/stdio.c: Likewise.
8452         * libio/strops.c: Likewise.
8453         * libio/vasprintf.c: Likewise.
8454         * libio/vscanf.c: Likewise.
8455         * libio/vsnprintf.c: Likewise.
8456         * libio/vswprintf.c: Likewise.
8457         * libio/wfiledoalloc.c: Likewise.
8458         * libio/wfileops.c: Likewise.
8459         * libio/wgenops.c: Likewise.
8460         * libio/wstrops.c: Likewise.
8461         * malloc/mtrace.c: Likewise.
8462         * misc/error.c: Likewise.
8463         * misc/syslog.c: Likewise.
8464         * nss/getXXbyYY_r.c: Likewise.
8465         * nss/getXXent_r.c: Likewise.
8466         * nss/hosts-lookup.c: Likewise.
8467         * stdio-common/getw.c
8468         * stdio-common/printf-prs.c: Likewise.
8469         * stdio-common/printf_fp.c: Likewise.
8470         * stdio-common/printf_size.c: Likewise.
8471         * stdio-common/putw.c: Likewise.
8472         * stdio-common/scanf.c: Likewise.
8473         * stdio-common/sprintf.c: Likewise.
8474         * stdio-common/tmpfile64.c: Likewise.
8475         * stdio-common/vfprintf.c: Likewise.
8476         * stdio-common/vfscanf.c: Likewise.
8477         * stdlib/strfmon.c: Likewise.
8478         * sunrpc/auth_des.c: Likewise.
8479         * sunrpc/auth_none.c: Likewise.
8480         * sunrpc/auth_unix.c: Likewise.
8481         * sunrpc/authdes_prot.c: Likewise.
8482         * sunrpc/authuxprot.c: Likewise.
8483         * sunrpc/clnt_perr.c: Likewise.
8484         * sunrpc/clnt_raw.c: Likewise.
8485         * sunrpc/clnt_tcp.c: Likewise.
8486         * sunrpc/clnt_udp.c: Likewise.
8487         * sunrpc/clnt_unix.c: Likewise.
8488         * sunrpc/key_call.c: Likewise.
8489         * sunrpc/key_prot.c: Likewise.
8490         * sunrpc/openchild.c: Likewise.
8491         * sunrpc/pm_getmaps.c: Likewise.
8492         * sunrpc/pm_getport.c: Likewise.
8493         * sunrpc/pmap_clnt.c: Likewise.
8494         * sunrpc/pmap_prot.c: Likewise.
8495         * sunrpc/pmap_prot2.c: Likewise.
8496         * sunrpc/pmap_rmt.c: Likewise.
8497         * sunrpc/rpc_cmsg.c: Likewise.
8498         * sunrpc/rpc_prot.c: Likewise.
8499         * sunrpc/svc_authux.c: Likewise.
8500         * sunrpc/svc_raw.c: Likewise.
8501         * sunrpc/svc_simple.c: Likewise.
8502         * sunrpc/svc_tcp.c: Likewise.
8503         * sunrpc/svc_udp.c: Likewise.
8504         * sunrpc/svc_unix.c: Likewise.
8505         * sunrpc/xdr.c: Likewise.
8506         * sunrpc/xdr_array.c: Likewise.
8507         * sunrpc/xdr_mem.c: Likewise.
8508         * sunrpc/xdr_rec.c: Likewise.
8509         * sunrpc/xdr_ref.c: Likewise.
8510         * sunrpc/xdr_stdio.c: Likewise.
8511         * sysdeps/generic/_strerror.c: Likewise.
8512         * sysdeps/generic/printf_fphex.c: Likewise.
8513         * sysdeps/generic/tmpfile.c: Likewise.
8514         * sysdeps/gnu/errlist.awk: Likewise.
8515         * sysdeps/gnu/errlist.c: Likewise.
8516
8517         * libio/Makefile (routines): Remove iosprint.
8518         * libio/iosprintf.c: Removed
8519
8520
8521 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8522
8523         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8524         non_dynamic_init and exported now.
8525         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8526         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8527         !SHARED.
8528         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8529         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8530         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8531
8532 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8533
8534         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8535         true in this case.
8536
8537         * locale/iso-639.def: Add language codes for Walloon.
8538
8539         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8540         total number of relocations performed.
8541
8542         * elf/sprof.c (load_profdata): If do_test provide information as
8543         to why loading failed.
8544         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8545         hist_hdr.dimen.
8546
8547         * csu/set-init.c: Moved to...
8548         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8549         * csu/Makefile: Don't compile set-init.
8550         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8551         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8552         to __libc_init.
8553         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8554         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8555         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8556         __libc_init.
8557         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8558         __libc_subinit.
8559
8560 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8561
8562         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8563         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8564         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8565         (_dl_deallocate_tls): New function.
8566         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8567         _dl_deallocate_tls.
8568
8569 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8570
8571         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8572         * stdio-common/tst-fseek.c (main): Add test for this.
8573
8574 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8575
8576         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8577
8578 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8579
8580         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8581         pointer before dereferencing.
8582
8583 2002-02-18  Roland McGrath  <roland@frob.com>
8584
8585         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8586
8587         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8588         Use task_policy in place of task_priority.
8589
8590         * sysdeps/generic/bits/mman.h
8591         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8592         * sysdeps/mach/msync.c: New file.
8593
8594         * sysdeps/mach/powerpc/syscall.S: New file.
8595
8596         * mach/msg.c [MACH_MSG_OVERWRITE]
8597         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8598         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8599
8600         * sysdeps/mach/configure.in: Check for clock.defs to put into
8601         mach_interface_list.
8602         * sysdeps/mach/configure: Regenerated.
8603
8604         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8605         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8606         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8607         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8608         (mach-shortcuts): Add device_read_overwrite_request,
8609         device_read_overwrite, vm_read_overwrite, thread_switch.
8610
8611         * configure.in (base_machine): Set to $machine by default.
8612         * configure: Regenerated.
8613
8614         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8615         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8616         * sysdeps/mach/configure: Regenerated.
8617         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8618
8619         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8620
8621         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8622
8623         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8624         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8625
8626 2002-02-17  Roland McGrath  <roland@frob.com>
8627
8628         * sysdeps/mach/hurd/times.c
8629         [NO_CREATION_TIME] (startup_time): New static variable.
8630         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8631         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8632         creation_time from task_basic_info.
8633         (__times): Use __gettimeofday instead of __host_get_time.
8634
8635         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8636         Use untyped Mach IPC message format.
8637
8638         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8639
8640         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8641         _S_catch_exception_raise_state_identity,
8642         _hurdsig_fault_catch_exception_raise_state,
8643         _hurdsig_fault_catch_exception_raise_state_identity.
8644
8645         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8646
8647         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8648         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8649
8650         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8651         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8652
8653         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8654         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8655         them as no-op macros.
8656         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8657         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8658
8659         * sysdeps/powerpc/dl-machine.h
8660         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8661
8662         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8663         Use untyped Mach IPC message format.
8664
8665         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8666         Handle untyped Mach IPC message formats.
8667
8668         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8669         Expect different argument conventions when this is defined.
8670         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8671         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8672         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8673         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8674         for OSF Mach variant.
8675         (faulted): Use mig_reply_error_t for REPLY.
8676         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8677         in __thread_set_exception_ports call.
8678         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8679         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8680
8681         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8682         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8683         on Darwin, which includes bogons.
8684
8685         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8686         variable LOADBASE so it's not declared when it's not used.
8687
8688 2002-02-16  Roland McGrath  <roland@frob.com>
8689
8690         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8691         to use BI.creation_time.
8692
8693         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8694
8695         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8696         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8697         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8698         host_page_size instead of vm_statistics.
8699
8700         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8701         mach_interface.h here, since not all variants use that name.
8702
8703         * sysdeps/mach/configure.in: Add some checks for Mach headers
8704         to ensure a sane installation.
8705         (mach_interface_list): Define this variable by checking for .defs
8706         files found in various variants.
8707         * configure.in (mach_interface_list): AC_SUBST this.
8708         * config.make.in (mach-interface-list): New substituted variable.
8709         * mach/Makefile (user-interfaces): Define this using the value
8710         of $(mach-interface-list) instead of mach, mach4.
8711         Updated other references to mach_interface to use it as well.
8712
8713         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8714
8715         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8716         mig_reply_error_t for OSF Mach variant.
8717
8718         * mach/Makefile (routines): Remove bootprivport.
8719         * mach/bootprivport.c: File removed.  It has never been used.
8720
8721         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8722         Grok the OSF flavor of message format.
8723         (mach_msg_destroy_port): For MAKE_SEND and
8724         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8725         no-senders notification.
8726
8727 2002-02-06  Roland McGrath  <roland@frob.com>
8728
8729         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8730         to here if 2.0 compatibility enabled ...
8731         (libc: GLIBC_2.1.3): ... from here.
8732
8733 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8734
8735         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8736         generation counter.
8737         * elf/dl-close.c (_dl_close): Likewise.
8738
8739 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8740
8741         * elf/Makefile: Add rules to build and run tst-tls8.
8742         * elf/tst-tls8.c: New file.
8743         * elf/tst-tlsmod4.c: New file.
8744
8745         * stdlib/test-a64l.c (tests): Add more test cases.
8746
8747         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8748         Reported by Walter Harms <WHarms@bfs.de>.
8749
8750 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8751
8752         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8753         definitions for struct sigcontext.
8754         Suggested by David Mosberger-Tang.
8755
8756 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8757
8758         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8759         for removing reference of module in slotinfo list.
8760         (_dl_close): Use remove_slotinfo.
8761         * sysdeps/generic/dl-tls.c: General pretty printing.
8762         (oom): Define only if SHARED.
8763         (_dl_next_tls_modid): Correct starting point for the case we assume
8764         there is a gap.  Add missing instruction grouping (doh!).  Correct
8765         tests for reaching maximum index.
8766         * elf/Makefile: Add rules to build and run tst-tls7.
8767         * elf/tst-tls7.c: New file.
8768         * elf/tst-tlsmod3.c: New file.
8769
8770         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
8771         USE_TLS.
8772         * elf/tst-tlsmod2.c: Likewise.
8773
8774         * elf/dl-close.c (_dl_close): When closing an object using TLS
8775         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
8776         true.  Increment dl_tls_generation only if we closed any TLS-using
8777         object.
8778         * elf/tst-tls6.c: New file.
8779         * elf/Makefile: Add rules to build and run tst-tls6.
8780
8781         * po/da.po: Update from translation team.
8782
8783         * locale/categories.def: Fix typo [PR libc/2948].
8784         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
8785         [PR libc/2949].
8786         * locale/iso-4217.def: Update from official version [PR libc/2950].
8787         * glibcbug.in: Honor TMPDIR [PR libc/2951].
8788         * locale/programs/ld-collate.c (collate_finish): Bail out with a
8789         message if input is too confusion instead of using assert.
8790         (collate_read): Don't crash on unknown symbol [PR libc/2952].
8791         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
8792
8793         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
8794         * elf/tst-tls2.c: Likewise.
8795         * elf/tst-tls3.c: Likewise.
8796
8797 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8798
8799         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
8800
8801 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8802
8803         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
8804         if this is really necessary.
8805
8806         * elf/dl-close.c (_dl_close): Implement freeing entries in the
8807         slotinfo array.
8808         (free_mem): Free memory for the slotinfo array if possible.
8809
8810 2002-02-12  Andreas Schwab  <schwab@suse.de>
8811
8812         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
8813
8814 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
8815
8816         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
8817         TLS_DTV_UNALLOCATE.
8818         (oom): New function.
8819         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
8820         (_dl_determine_tlsoffset): Likewise.
8821         (_dl_allocate_tls): Likewise.
8822         (__TLS_GET_ADDR): Define if not already defined.
8823         (_dl_tls_symaddr): New function.
8824         (allocate_and_init): New function.
8825         (__tls_get_addr): Actually implement handling of generation counter
8826         and deferred allocation.
8827         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
8828         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8829         _dl_tls_generation.
8830         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
8831         Declare _dl_tls_symaddr.
8832         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
8833         SHARED.
8834         * include/link.h (struct link_map):  Remove l_tls_nextimage and
8835         l_tls_previmage.
8836         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
8837         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
8838         (_dl_vsym): Likewise.
8839         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
8840         layout.
8841         (dl_main): Allow PT_TLS be present for empty segment.  Remove
8842         nextimage list handling.  Instead add all modules using TLS to
8843         dl_tls_dtv_slotinfo_list.
8844         * elf/dl-open.c (dl_open_worker): After successfully loading all
8845         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
8846         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
8847         empty segment don't do anything.  Remove handling of initimage list.
8848         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
8849         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
8850         * elf/dl-minimal.c: Define __libc_memalign.
8851         * elf/dl-support.c: Remove _dl_initimage_list.  Add
8852         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
8853         _dl_tls_generation.
8854         * include/stdlib.h: Declare __libc_memalign.
8855
8856         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
8857         * elf/tst-tls4.c: New file.
8858         * elf/tst-tls5.c: New file.
8859         * elf/tst-tlsmod2.c: New file.
8860
8861         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
8862
8863         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
8864
8865         * elf/tst-tls1.c: Use test-skeleton.c.
8866         * elf/tst-tls2.c: Likewise.
8867         * elf/tst-tls3.c: Likewise.
8868
8869         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
8870
8871 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8872
8873         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
8874
8875 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
8876
8877         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
8878
8879         * elf/tst-tls3.c: New file.
8880         * elf/tst-tlsmod1.c: New file.
8881         * elf/Makefile: Add rules to build and run tst-tls3.
8882
8883         * sysdeps/i386/dl-machine.h: Include <tls.h>.
8884         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
8885         TLS relocations.
8886
8887         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
8888
8889         * po/fr.po: Update from translation team.
8890
8891         * elf/tls-macros.h: Add alternative macros for use in PIC.
8892
8893         * elf/dl-lookup.c: Include <tls.h>.
8894         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
8895
8896         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
8897         required by passing pointer to last element of the list.
8898
8899         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
8900         l_tls_initimage to a place where it actually is performed.
8901
8902         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
8903         after globfree() calls.
8904
8905         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
8906         (openaux): Pass open_mode as new last argument to _dl_map_object.
8907         (_dl_map_object_deps): Add new argument open_mode.  Initialize
8908         open_mode element of args variable with it.
8909         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
8910         _dl_map_object_deps.
8911         * elf/rtld.c (dl_main): Add zero as last parameter to
8912         _dl_map_object_deps call.
8913         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
8914         * elf/nodlopen2.c: New file.
8915         * elf/nodlopenmod2.c: New file.
8916         * elf/Makefile: Add rules to build and run nodlopen2.
8917
8918         * elf/tst-tls1.c: Move TLS helper macros to...
8919         * elf/tls-macros.h: ...here.  New file.
8920         * elf/tst-tls2.c: New file.
8921         * elf/Makefile (tests): Add tst-tls2.
8922         (distribute): Add tls-macros.h.
8923
8924         * po/sv.po: Update from translation team.
8925
8926         * elf/tst-tls1.c (main): Add complete set of tests.  Split
8927         architecture specific definitions from the actual test code.
8928
8929         * po/tr.po: Update from translation team.
8930
8931 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
8932
8933         * elf/Makefile (tests): Add tst-tls1.
8934         * elf/tst-tls1.c: New file.
8935
8936         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
8937         alignment of TCB for now.
8938
8939         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
8940         initialization image for the application itself.
8941
8942         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
8943         loop to initialize TLS block.
8944
8945 2002-02-08  Richard Henderson  <rth@redhat.com>
8946
8947         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
8948         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
8949
8950         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
8951
8952 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
8953
8954         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
8955
8956 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
8957
8958         * po/ca.po: Update from translation team.
8959         * po/sk.po: Likewise.
8960
8961         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
8962         (dl_main): Move dtv/static TLS handling before relocation.
8963         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
8964         TLS_INIT_TP to allocate and install the dtv/static TLS block.
8965         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
8966         so far uses TLS initialize GL(dl_tls_static_size) and
8967         GL(dl_tls_static_align) to account for the TCB.
8968         (_dl_allocate_tls): New function.
8969         * sysdeps/generic/ldsodefs.h (rtld_global): Add
8970         _dl_initial_dtv_malloced.
8971
8972         * configure.in: Test for __builtin_memset more realistically.
8973
8974         * csu/version.c (banner): If TLS support is available say so.
8975
8976 2002-02-04  H.J. Lu  <hjl@gnu.org>
8977
8978         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
8979         __attribute_used__.
8980         (__dl_runtime_resolve): Likewise.
8981
8982         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
8983         declaration.
8984
8985 2001-11-15  H.J. Lu  <hjl@gnu.org>
8986
8987         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
8988         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
8989
8990         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
8991
8992 2002-02-07  H.J. Lu  <hjl@gnu.org>
8993
8994         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
8995         ".set noreorder".
8996         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
8997         Likewise.
8998
8999 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9000
9001         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9002
9003         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9004         ___tls_get_addr_internal.
9005         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9006
9007         * po/ko.po: Update from translation team.
9008
9009 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9010
9011         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9012         attribute, change __pad{1,2} type to unsigned int.
9013         (struct stat64): Remove packed attribute.
9014
9015 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9016
9017         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9018
9019 2002-02-07  Andreas Schwab  <schwab@suse.de>
9020
9021         * configure.in: Fix check for -zcombreloc.
9022
9023 2002-02-06  H.J. Lu  <hjl@gnu.org>
9024
9025         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9026         * configure.in: Check if __builtin_memset really works.
9027         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9028         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9029
9030 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9031
9032         * io/bug-ftw3.c (main): Don't try the test if root.
9033
9034 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9035
9036         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9037         constraints.
9038         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9039         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9040         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9041         Likewise.
9042         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9043         a weak alias for __clone.
9044         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9045         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9046         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9047         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9048         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9049         a weak alias for __mmap64.
9050
9051 2002-02-05  H.J. Lu  <hjl@gnu.org>
9052
9053         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9054         (atomic_add): Likewise.
9055         (compare_and_swap): Likewise.
9056         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9057
9058 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9059
9060         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9061
9062         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9063         alignment of the TCB and store total size and alignment of static
9064         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9065         tls_index is a typedef.
9066         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9067         _dl_tls_static_align.
9068         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9069         * elf/dl-support.c: Define _dl_tls_static_size and
9070         _dl_tls_static_align.
9071
9072 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9073
9074         * configure.in: Add --without-tls option.
9075         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9076         --without-tls is given.
9077
9078         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9079
9080         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9081
9082 2002-02-06  Roland McGrath  <roland@frob.com>
9083
9084         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9085         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9086
9087         * scripts/versions.awk: Improve error message for missing version.
9088         Each version inherits from the last one only if they have the same
9089         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9090         but not GLIBC_x and FOO_y.
9091
9092         * scripts/firstversions.awk: Handle libraries that don't have each
9093         particular version named in the third column of shlib-versions.
9094
9095         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9096
9097 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9098
9099         * Versions.def [ld]: Add GLIBC_2.3.
9100         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9101         * elf/Makefile (dl-routines): Add dl-tls.
9102         (distribute): Add dl-tls.h.
9103         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9104         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9105         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9106         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9107         along with the other info in the link map.  Change queueing of init
9108         images for double linked list.  Use _dl_next_tls_modid to compute
9109         l_tls_modid.
9110         * elf/rtld.c (_dl_start_final): Store alignment requirement
9111         along with the other info in rtld map and executable map.
9112         (dl_main): Add ld.so to the init image list if necessary.  Compute
9113         final module ID with _dl_next_tls_modid.
9114         * include/link.h (struct link_map): Add l_tls_previmage and
9115         l_tls_align.
9116         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9117         * sysdeps/i386/elf/Versions: New file.
9118         * sysdeps/generic/dl-tls.c: New file.
9119         * sysdeps/generic/dl-tls.h: New file.
9120         * sysdeps/i386/dl-tls.h: New file.
9121
9122 2002-02-06  Roland McGrath  <roland@frob.com>
9123
9124         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9125         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9126
9127 2002-01-05  Roland McGrath  <roland@frob.com>
9128
9129         * sysdeps/mach/configure.in: New file.
9130         * sysdeps/mach/configure: New generated file.
9131
9132         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9133         It has never been used by anything.
9134
9135 2002-02-06  H.J. Lu  <hjl@gnu.org>
9136
9137         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9138         is included.
9139
9140 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9141
9142         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9143         attribute((packed)) to counter stupid people misusing gcc options.
9144         (struct stat64): Likewise.
9145
9146 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9147
9148         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9149         the variables which are used as booleans.
9150
9151 2002-02-06  Andreas Jaeger  <aj@suse.de>
9152
9153         * include/libc-symbols.h (INTUSE): Renamed from INT.
9154         * elf/dl-deps.c: Change users.
9155         * sysdeps/generic/dl-sysdep.c: Likewise.
9156         * sysdeps/generic/dl-cache.c: Likewise.
9157         * elf/dl-reloc.c: Likewise.
9158         * elf/rtld.c: Likewise.
9159         * elf/dl-version.c: Likewise.
9160         * elf/dl-load.c: Likewise.
9161         * elf/dl-dst.h: Likewise.
9162         * elf/dl-init.c: Likewise.
9163         * elf/dl-error.c: Likewise.
9164         * elf/dl-fini.c: Likewise.
9165         * elf/dl-runtime.c: Likewise.
9166         * elf/do-lookup.h: Likewise.
9167
9168         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9169         definition.
9170         * stdio-common/_itowa.h: Likewise.
9171
9172 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9173
9174         * elf/dl-minimal.c: Define _itoa_lower_digits.
9175
9176         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9177         DT_FLAGS set.
9178
9179         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9180         loading modules with the DF_STATIC_TLS flag set.
9181         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9182         element.
9183         * include/link.h (struct link_map): Add l_flags field.
9184         * elf/elf.h (DF_STATIC_TLS): New definition.
9185
9186         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9187         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9188
9189         * elf/rtld.c (process_dl_debug): Correct printing help message.
9190         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9191         for %s.
9192
9193         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9194         definition and pass &errno in use of this variable.
9195         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9196
9197 2002-02-04  Andreas Schwab  <schwab@suse.de>
9198
9199         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9200         * locale/programs/charmap-dir.c: Wrap calls that output messages
9201         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9202         * locale/programs/charmap.c: Likewise.
9203         * locale/programs/ld-address.c: Likewise.
9204         * locale/programs/ld-collate.c: Likewise.
9205         * locale/programs/ld-ctype.c: Likewise.
9206         * locale/programs/ld-identification.c: Likewise.
9207         * locale/programs/ld-measurement.c: Likewise.
9208         * locale/programs/ld-messages.c: Likewise.
9209         * locale/programs/ld-monetary.c: Likewise.
9210         * locale/programs/ld-name.c: Likewise.
9211         * locale/programs/ld-numeric.c: Likewise.
9212         * locale/programs/ld-paper.c: Likewise.
9213         * locale/programs/ld-telephone.c: Likewise.
9214         * locale/programs/ld-time.c: Likewise.
9215         * locale/programs/linereader.c: Likewise.
9216         * locale/programs/linereader.h: Likewise.
9217         * locale/programs/localedef.c: Likewise.
9218         * locale/programs/locfile.c: Likewise.
9219         * locale/programs/repertoire.c: Likewise.
9220
9221 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9222
9223         * elf/rtld.c (_dl_start_final): Determine load address to locate
9224         ehdr with GL(dl_rtld_map).l_map_start.
9225
9226         * po/ca.po: Update from translation team.
9227
9228         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9229         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9230         header entry.
9231         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9232         _dl_tls_module_cnt.
9233         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9234
9235 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9236
9237         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9238         * include/link.h (struct link_map): Add various members for TLS
9239         information.
9240         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9241         _rtld_tlsoffset, add _dl_initimage_list.
9242         * sysdeps/i386/dl-lookupcfg.h: New file.
9243         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9244         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9245         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9246         is used.
9247
9248         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9249         unused.
9250
9251         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9252         thread-pointer as soon as possible.
9253         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9254         elements in rtld_global.
9255         * sysdeps/generic/tls.h: New file.
9256         * elf/Makefile (distribute): Add tls.h.
9257         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9258         relocations.  Not complete yet.
9259
9260         * resolv/resolv.h: Allow user to define __need_res_state and only
9261         define __res_start structure then.
9262         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9263
9264         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9265         dl_cpuclock_offset initialization to _dl_start_final.
9266         (_dl_show_auxv): Avoid unnecessary sign extension.
9267         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9268
9269 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9270
9271         * config.h.in: Add HAVE_TLS_SUPPORT.
9272         * sysdeps/i386/elf/configure.in: New file.
9273
9274 2002-02-03  Andreas Schwab  <schwab@suse.de>
9275
9276         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9277         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9278
9279 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9280
9281         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9282         alloca if the memory reqirements are too high.
9283
9284 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9285
9286         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9287         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9288         the former is available anyway and speed isn't important here.
9289         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9290         * elf/dl-version.c (match_symbol): Likewise.
9291         (_dl_check_map_versions): Likewise.
9292         * elf/rtld.c (process_envvars): Likewise.
9293         (print_statistics): Likewise.
9294         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9295         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9296         bases.  Add assert to catch uses of unimplemented features.
9297         (__strsep): Add assert to catch uses of unimplemented features.
9298         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9299         and avoid inline optimization.
9300         * elf/rtld.c (process_envvars): Likewise.
9301         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9302         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9303         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9304
9305 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9306
9307         * stdio-common/_itoa.h: Minor simplifications of the code.
9308         * stdio-common/_itoa.c: Likewise.
9309
9310         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9311         instead of _dl_printf for debugging info output.
9312
9313         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9314         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9315
9316 2002-02-01  H.J. Lu  <hjl@gnu.org>
9317
9318         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9319         (atomic_add): Likewise.
9320         (compare_and_swap): Return 0 only when failed to compare. Use
9321         branch likely.
9322
9323         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9324         branch likely.
9325
9326 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9327
9328         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9329
9330 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9331
9332         * elf/dl-minimal.c (__strsep): New minimal implementation.
9333
9334 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9335
9336         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9337         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9338         with tm_isdst > 0 when the requested time falls within a
9339         spring-forward gap [PR libc/2894].
9340
9341 2002-02-03  Andreas Schwab  <schwab@suse.de>
9342
9343         * stdio-common/tst-rndseek.c: Increase timeout.
9344
9345 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9346
9347         Change ld.so to not use functions which are exported.  One cannot
9348         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9349         definitions.
9350         * include/libc-symbols.h: Define INT and INTDEF.
9351         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9352         _dl_signal_error_internal, _dl_map_object_internal,
9353         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9354         _dl_lookup_versioned_symbol_internal,
9355         _dl_relocate_object_internal, _dl_debug_state_internal,
9356         _dl_start_profile_internal, and _dl_unload_cache_internal.
9357         * include/dlfcn.h: Declare _dl_catch_error_internal.
9358         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9359         above.  Add INTDEF to function definitions.
9360         * elf/dl-debug.c: Likewise.
9361         * elf/dl-deps.c: Likewise.
9362         * elf/dl-dst.h: Likewise.
9363         * elf/dl-error.c: Likewise.
9364         * elf/dl-fini.c: Likewise.
9365         * elf/dl-init.c: Likewise.
9366         * elf/dl-load.c: Likewise.
9367         * elf/dl-lookup.c: Likewise.
9368         * elf/dl-misc.c: Likewise.
9369         * elf/dl-open.c: Likewise.
9370         * elf/dl-profile.c: Likewise.
9371         * elf/dl-reloc.c: Likewise.
9372         * elf/dl-runtime.c: Likewise.
9373         * elf/dl-version.c: Likewise.
9374         * elf/do-lookup.h: Likewise.
9375         * sysdeps/generic/dl-cache.c: Likewise.
9376         * sysdeps/generic/dl-sysdep.c: Likewise.
9377         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9378         instead of _dl_init.
9379         * sysdeps/arm/dl-machine.h: Likewise.
9380         * sysdeps/cris/dl-machine.h: Likewise.
9381         * sysdeps/hppa/dl-machine.h: Likewise.
9382         * sysdeps/i386/dl-machine.h: Likewise.
9383         * sysdeps/ia64/dl-machine.h: Likewise.
9384         * sysdeps/m68k/dl-machine.h: Likewise.
9385         * sysdeps/mips/dl-machine.h: Likewise.
9386         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9387         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9388         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9389         * sysdeps/sh/dl-machine.h: Likewise.
9390         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9391         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9392         * sysdeps/x86_64/dl-machine.h: Likewise.
9393         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9394
9395         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9396         and _dl_debug_initialize.
9397
9398         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9399         more information.
9400         * elf/rtld.c (dl_main): Avoid strrchr.
9401         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9402         result of readlink.  Search from the back for '/'.
9403
9404         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9405         strncpy if possible.
9406
9407         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9408         strncmp.
9409         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9410         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9411         strspn, and strcspn.
9412         (process_envvars): Don't use strcspn.
9413
9414         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9415         (_dl_dst_substitute): Likewise.
9416
9417 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9418
9419         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9420         code which is never used when relocating ld.so itself.
9421
9422         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9423         starting ld.so itself.  Move l_addr variable initialization closer
9424         to use.
9425         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9426
9427 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9428
9429         * Versions.def (libc): Add GLIBC_PRIVATE.
9430         (libdb, libnss_db, libdb1): Remove.
9431         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9432         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9433         (libpthread): Add GLIBC_PRIVATE.
9434         (libresolv): Likewise, remove GLIBC_2.1.
9435         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9436         GLIBC_2.2.3, GLIBC_2.3.
9437         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9438         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9439         _dl_sym, _dl_vsym): Likewise.
9440         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9441         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9442         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9443         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9444         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9445         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9446         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9447         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9448         Likewise.
9449         (_dl_object_relocation_scope): Remove.
9450         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9451         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9452         __gconv_cache): Move to GLIBC_PRIVATE.
9453         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9454         __internal_setnetgrent): Likewise.
9455         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9456         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9457         * locale/Versions (__collate_element_hash, __collate_element_strings,
9458         __collate_symbol_classes, __collate_symbol_hash,
9459         __collate_symbol_strings, _nl_current_LC_COLLATE,
9460         _nl_current_LC_CTYPE): Likewise.
9461         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9462         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9463         (libnss_nis, libnss_nisplus): Likewise.
9464         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9465         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9466         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9467         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9468         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9469         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9470         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9471         __ns_get16, __ns_samename): Likewise.
9472         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9473         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9474         GLIBC_PRIVATE.
9475         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9476         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9477         __libc_connect): Likewise.
9478         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9479         Likewise.
9480         * stdlib/Versions (__libc_system): Likewise.
9481         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9482         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9483         * sysdeps/ia64/fpu/Versions: Likewise.
9484         * sysdeps/ia64/Versions: Likewise.
9485         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9486         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9487         to GLIBC_PRIVATE.
9488         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9489         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9490         __libc_sigaction): Likewise.
9491         * termios/Versions (__libc_tcdrain): Likewise.
9492
9493         * misc/sys/cdefs (__attribute_noinline__): Define.
9494         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9495         __attribute_noinline__.
9496
9497         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9498         * elf/dl-xstat64.c: New file.
9499         * elf/dl-fxstat64.c: New file.
9500         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9501         don't export __fxstat64 at multiple versions.
9502         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9503         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9504
9505 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9506
9507         * locale/program/ld-collate.c (collate_finish): Assign a wide
9508         char collation sequence value to multi character collating
9509         elements, and avoid over writing by non-character elements.
9510
9511 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9512
9513         * elf/Makefile (distribute): Add dl-procinfo.c.
9514         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9515         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9516
9517 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9518
9519         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9520         definition.
9521         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9522         _rtld_global struct.
9523         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9524         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9525         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9526         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9527         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9528         _dl_fpu_control_set): Remove unused externs.
9529         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9530         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9531         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9532         related variables in _rtld_global struct.
9533         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9534         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9535         unused extern.
9536
9537 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9538
9539         * sysdeps/generic/dl-procinfo.c: New file.
9540
9541 2002-02-01  Andreas Schwab  <schwab@suse.de>
9542
9543         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9544
9545 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9546
9547         * elf/rtld.c (_dl_start): Mark as internal_function.
9548         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9549         in register.
9550         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9551         General pretty printing.
9552
9553 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9554
9555         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9556         * elf/dl-reloc.c: Pretty printing.
9557         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9558         procinfo-related variables in rtld_global struct.
9559         * elf/dl-support.c: Likewise.
9560         * elf/rtld.c: Likewise.
9561         * sysdeps/i386/i686/Makefile: Likewise.
9562         * sysdeps/i386/i686/hp-timing.c: Likewise.
9563         * sysdeps/i386/i686/hp-timing.h: Likewise.
9564         * sysdeps/ia64/Makefile: Likewise.
9565         * sysdeps/ia64/hp-timing.c: Likewise.
9566         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9567         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9568         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9569         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9570         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9571         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9572         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9573         * sysdeps/x86_64/Makefile: Likewise.
9574
9575         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9576         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9577         _dl_debug_fd to rtld_global.
9578         * elf/Versions: Likewise.
9579         * elf/dl-close.c: Likewise.
9580         * elf/dl-iteratephdr.c: Likewise.
9581         * elf/dl-lookup.c: Likewise.
9582         * elf/dl-misc.c: Likewise.
9583         * elf/dl-open.c: Likewise.
9584         * elf/dl-support.c: Likewise.
9585         * elf/do-lookup.h: Likewise.
9586         * elf/rtld.c: Likewise.
9587         * sysdeps/generic/dl-cache.c: Likewise.
9588         * sysdeps/generic/dl-sysdep.c: Likewise.
9589         * sysdeps/ia64/Versions: Likewise.
9590         * sysdeps/unix/clock_gettime.c: Likewise.
9591         * sysdeps/unix/clock_settime.c: Likewise.
9592         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9593         * sysdeps/sparc/Versions: Removed.
9594         * sysdeps/i386/i686/Versions : Removed.
9595         * sysdeps/x86_64/Versions: Removed.
9596         * configure.in: Define HAVE_PROTECTED if .protected is available.
9597         * config.h.in: Add entry for HAVE_PROTECTED.
9598
9599 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9600
9601         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9602         code in struct _rtld_global.  Export this struct, remove all
9603         exports for the signal variables.
9604         * sysdeps/arm/dl-machine: Likewise.
9605         * sysdeps/generic/dl-origin: Likewise.
9606         * sysdeps/generic/dl-sysdep: Likewise.
9607         * sysdeps/generic/dl-cache: Likewise.
9608         * sysdeps/hppa/dl-fptr: Likewise.
9609         * sysdeps/hppa/dl-machine: Likewise.
9610         * sysdeps/cris/dl-machine: Likewise.
9611         * sysdeps/i386/dl-machine: Likewise.
9612         * sysdeps/ia64/dl-machine: Likewise.
9613         * sysdeps/m68k/dl-machine: Likewise.
9614         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9615         * sysdeps/mips/mips64/dl-machine: Likewise.
9616         * sysdeps/mips/dl-machine: Likewise.
9617         * sysdeps/powerpc/elf/libc-start: Likewise.
9618         * sysdeps/powerpc/dl-machine: Likewise.
9619         * sysdeps/powerpc/dl-start: Likewise.
9620         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9621         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9622         * sysdeps/sh/dl-machine: Likewise.
9623         * sysdeps/s390/s390-32/dl-machine: Likewise.
9624         * sysdeps/s390/s390-64/dl-machine: Likewise.
9625         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9626         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9627         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9628         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9629         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9630         * sysdeps/x86_64/dl-machine: Likewise.
9631
9632 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9633
9634         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9635         are too high.
9636
9637 2002-01-31  Andreas Schwab  <schwab@suse.de>
9638
9639         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9640
9641 2002-01-31  Andreas Schwab  <schwab@suse.de>
9642
9643         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9644         reference to _dl_pagesize.
9645
9646 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9647
9648         * Versions.def [ld]: Add GLIBC_2.3.
9649         * elf/dl-addr.c: Move global variables for SHARED code in struct
9650         _rtld_global.  Export this struct, remove all exports for the
9651         signal variables.
9652         * elf/dl-close.c: Likewise.
9653         * elf/dl-conflict.c: Likewise.
9654         * elf/dl-debug.c: Likewise.
9655         * elf/dl-deps.c: Likewise.
9656         * elf/dl-dst.h: Likewise.
9657         * elf/dl-error.c: Likewise.
9658         * elf/dl-fini.c: Likewise.
9659         * elf/dl-init.c: Likewise.
9660         * elf/dl-iteratephdr.c: Likewise.
9661         * elf/dl-libc.c: Likewise.
9662         * elf/dl-load.c: Likewise.
9663         * elf/dl-lookup.c: Likewise.
9664         * elf/dl-minimal.c: Likewise.
9665         * elf/dl-object.c: Likewise.
9666         * elf/dl-open.c: Likewise.
9667         * elf/dl-profile.c: Likewise.
9668         * elf/dl-profstub.c: Likewise.
9669         * elf/dl-reloc.c: Likewise.
9670         * elf/dl-runtime.c: Likewise.
9671         * elf/dl-support.c: Likewise.
9672         * elf/dl-sym.c: Likewise.
9673         * elf/dl-version.c: Likewise.
9674         * elf/do-lookup.h: Likewise.
9675         * elf/do-rel.h: Likewise.
9676         * elf/dynamic-link.h: Likewise.
9677         * elf/rtld.c: Likewise.
9678         * sysdeps/generic/dl-cache.c: Likewise.
9679         * sysdeps/generic/dl-sysdep.c: Likewise.
9680         * sysdeps/generic/ldsodefs.h: Likewise.
9681         * sysdeps/generic/libc-start.c: Likewise.
9682         * sysdeps/i386/dl-machine.h: Likewise.
9683         * sysdeps/ia64/dl-fptr.c: Likewise.
9684         * sysdeps/ia64/dl-machine.h: Likewise.
9685         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9686         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9687         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9688         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9689         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9690         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9691         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9692         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9693
9694 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9695
9696         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9697         to avoid warning
9698         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9699
9700         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9701         SHARED version.
9702         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9703
9704         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9705
9706 2002-01-29  Ben Collins  <bcollins@debian.org>
9707
9708         * string/bits/string2.h (__mempcpy): Protect size arg for
9709         addition when using __builtin_memcpy.
9710
9711 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9712
9713         * stdlib/Makefile (tests): Add tst-qsort.
9714         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9715
9716         * manual/signal.texi (Process Signal Mask): Document that
9717         pthread_sigmask, not sigprocmask, must be used in MT programs.
9718         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9719
9720         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9721         found.
9722         * misc/Makefile (tests): Add tst-hsearch.
9723         * misc/tst-hsearch.c: New file.
9724
9725 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9726
9727         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9728         * malloc/malloc.h: Likewise.
9729         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9730         * malloc/arena.c: New file.
9731         * malloc/hooks.c: New file.
9732         * malloc/tst-mallocstate.c: New file.
9733         * malloc/Makefile: Add new testcase tst-mallocstate.
9734         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9735
9736 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9737
9738         * stdlib/msort.c: Remove last patch.  The optimization violates the
9739         same rule which qsort.c had problems with.
9740
9741 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9742
9743         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9744         to a pivot element that lies outside the array to be sorted, as
9745         ISO C99 requires that the comparison function be called only with
9746         addresses of array elements [PR libc/2880].
9747
9748 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9749
9750         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9751         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9752
9753         * timezone/asia: Update from tzdata2002b.
9754         * timezone/australasia: Likewise.
9755         * timezone/backward: Likewise.
9756         * timezone/europe: Likewise.
9757         * timezone/leapseconds: Likewise.
9758         * timezone/iso3166.tab: Likewise.
9759         * timezone/zone.tab: Likewise.
9760
9761 2002-01-23  Richard Henderson  <rth@redhat.com>
9762
9763         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
9764
9765 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9766
9767         * string/strxfrm.c: Allocate one more byte for rulearr and clear
9768         this element [PR libc/2855].
9769
9770         * string/strcoll.c: Handle zero-length arguments specially
9771         [PR libc/2856].
9772
9773 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
9774
9775         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
9776         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
9777         short lengths and constant src.
9778         (strcpy): Don't optimize for gcc 3.0+.
9779         (__stpcpy): For gcc 3.0+, don't use
9780         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
9781         for short string literal src.
9782
9783 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9784
9785         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
9786         Set for arm, too.
9787
9788 2001-01-22  Paul Eggert  <eggert@twinsun.com>
9789
9790         * manual/llio.texi (Linked Channels, Cleaning Streams):
9791         Make it clearer that a just-opened input stream might need cleaning.
9792
9793 2002-01-21  H.J. Lu  <hjl@gnu.org>
9794
9795         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9796         Don't use label at end of compound statement.
9797
9798 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
9799
9800         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
9801         Remove test for negative integer arg; sin_pi does it correctly.
9802
9803 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
9804
9805         * nscd/Makefile (distribute): Filter out xmalloc.c.
9806
9807 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
9808
9809         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
9810         Set offset if read end wasn't the buffer end.
9811         (_IO_file_seekoff_mmap): New function.
9812         (_IO_file_xsgetn_mmap): New function.
9813         (_IO_file_jumps_mmap): Use the two new functions.
9814         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
9815         != end buffer.
9816         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
9817         _IO_file_underflow_mmap.
9818         * libio/iofopen.c: Don't position file descriptor at end of file.
9819         * libio/tst-widetext.c: Improve error messages.
9820         * stdio-common/tst-rndseek.c: Likewise.
9821
9822 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
9823
9824         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
9825         end of enum for !_GNU_SOURCE.
9826         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
9827         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
9828         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
9829         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
9830         values unless _GNU_SOURCE.
9831
9832         * iconvdata/tcvn5712-1.c: Minor cleanups.
9833
9834 2002-01-18  Andreas Schwab  <schwab@suse.de>
9835
9836         * sysdeps/unix/sysv/linux/configure.in
9837         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
9838
9839 2002-01-16  Roger Sayle  <roger@eyesopen.com>
9840
9841         * stdlib/msort.c (msort_with_tmp): Replace implementation with
9842         more efficient "Towers of Hanoi" mergesort.
9843         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
9844         for generic, sizeof(int) and sizeof(long) variants respectively.
9845
9846 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
9847
9848         * manual/syslog.texi (openlog): Describe possible problems with
9849         first parameter.
9850         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9851
9852         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
9853         * nscd/connections.c (begin_drop_privileges): New function.
9854         (finish_drop_privileges): New function.
9855         (nscd_init): Call the new functions which also install all groups
9856         for the server user.
9857         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
9858         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
9859
9860 2002-01-17  H.J. Lu  <hjl@gnu.org>
9861
9862         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
9863         `const' from `got'.
9864
9865 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9866
9867         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
9868         instructions for pointer operations.
9869         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
9870
9871 2002-01-17  Andreas Jaeger  <aj@suse.de>
9872
9873         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
9874         __uint128_t build-in.
9875
9876         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
9877         PowerPC, sync with 2.2 branch.
9878
9879 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9880
9881         * posix/getconf.c: Update copyright year.
9882         * nss/getent.c: Likewise.
9883         * nscd/nscd_nischeck.c: Likewise.
9884         * iconv/iconvconfig.c: Likewise.
9885         * iconv/iconv_prog.c: Likewise.
9886         * elf/ldconfig.c: Likewise.
9887         * catgets/gencat.c: Likewise.
9888         * csu/version.c: Likewise.
9889         * elf/ldd.bash.in: Likewise.
9890         * elf/sprof.c (print_version): Likewise.
9891         * locale/programs/locale.c: Likewise.
9892         * locale/programs/localedef.c: Likewise.
9893         * nscd/nscd.c (print_version): Likewise.
9894         * debug/xtrace.sh: Likewise.
9895         * malloc/memusage.sh: Likewise.
9896         * malloc/mtrace.pl: Likewise.
9897
9898 2002-01-16  Andreas Schwab  <schwab@suse.de>
9899
9900         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
9901         reliably remove "-ia64" from rtld name.
9902
9903 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
9904
9905         * iconvdata/gb18030.c: Bug fixes and support for more characters.
9906         Patch by Yu Shao <yshao@redhat.com>.
9907
9908 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9909
9910         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
9911         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
9912         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
9913
9914 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9915
9916         * sysdeps/s390/fpu/libm-test-ulps: Update.
9917
9918 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
9919
9920         * elf/elf.h: Update x86 relocations.
9921
9922 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9923
9924         * locale/programs/charmap.c (new_width): Check whether byte
9925         sequences for both ends of range have the same length.
9926
9927 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9928
9929         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
9930
9931 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
9932
9933         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
9934         string literals.
9935         (__full_ieee754_sqrt): Add __attribute_used__.
9936
9937 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
9938
9939         * sysdeps/generic/group_member.c (__group_member): Also check
9940         groups[0] [PR libc/2781].
9941
9942 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
9943
9944         * Makefile (distribute): Add scripts/cpp.
9945         * elf/Makefile (distribute): Add reldep6mod[01234].c,
9946         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
9947         unwind-dw2-fde.h, and dwarf2.h.
9948         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
9949         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
9950         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
9951         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
9952
9953 2002-01-07  Roland McGrath  <roland@frob.com>
9954
9955         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
9956         volatile on type of ARGC so the compiler doesn't get clever.
9957
9958 2002-01-07  Andreas Jaeger  <aj@suse.de>
9959
9960         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
9961         * sysdeps/i386/bits/byteswap.h: Likewise.
9962         * sysdeps/ia64/bits/byteswap.h: Likewise.
9963         * sysdeps/m68k/bits/byteswap.h: Likewise.
9964         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
9965         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
9966
9967 2002-01-02  Bruno Haible  <bruno@clisp.org>
9968
9969         * intl/plural.y: Fix %expect count.
9970
9971 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
9972
9973         * elf/Makefile (routines, shared-only-routines): Add
9974         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
9975         * elf/elf.h (PT_GNU_EH_FRAME): Define.
9976         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
9977         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
9978         Optimize if .eh_frame section contains no FDEs.
9979         (__register_frame, __deregister_frame_info_bases,
9980         __deregister_frame): Likewise.
9981         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
9982         DW_CFA_restore handling.
9983
9984 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
9985
9986         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
9987
9988         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
9989         for x < 0.25 and restore original range reduction method.
9990         (__ieee754_lgammal_r): Make sure signgam is set before returning.
9991
9992 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
9993
9994         * libio/fileops.c (_IO_file_underflow_mmap): New function.
9995         (_IO_file_close_mmap): New function.
9996         (_IO_file_jumps_mmap): New variable.
9997         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
9998         trying to convert rest of byte buffer.
9999         (_IO_wfile_underflow_mmap): New function.
10000         (_IO_wfile_jumps_mmap): New variable.
10001         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10002         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10003         (_IO_new_fopen): Call __fopen_internal.
10004         * libio/iofopen64.c: Just call __fopen_internal.
10005         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10006         successfully.
10007         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10008         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10009         _IO_file_close_mmap.
10010
10011         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10012         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10013
10014         * stdio-common/Makefile (tests): Add tst-rndseek.
10015         * stdio-common/tst-rndseek.c: New file.
10016
10017 2002-01-05  Roland McGrath  <roland@frob.com>
10018
10019         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10020         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10021         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10022         * sysdeps/mach/hurd/configure: Regenerated.
10023
10024 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10025
10026         * elf/elf.h: Add more TLS definitions.
10027
10028 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10029
10030         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10031
10032 2002-01-02  Roland McGrath  <roland@frob.com>
10033
10034         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10035         __sigisemptyset.  Don't use MASK uninitialized.
10036
10037         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10038         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10039         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10040         __sigdelset, __sigaddset, __sigorset.
10041
10042         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10043         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10044
10045         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10046         _hurd_ports is null.
10047
10048         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10049         for old CMU and new OSF Mach interface flavors.
10050         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10051         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10052
10053         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10054
10055         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10056         Pass extra arguments to task_create for OSF variant.
10057         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10058
10059         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10060         conditional on [HAVE_AUX_VECTOR].
10061
10062         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10063         mach_msg_timeout_t as type of final argument.
10064
10065         * hurd/privports.c (__get_privileged_ports):
10066         Change host_priv_t to mach_port_t in argument type.
10067         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10068         Update decls.
10069
10070         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10071         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10072         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10073         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10074         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10075         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10076
10077 2002-01-01  Roland McGrath  <roland@frob.com>
10078
10079         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10080
10081 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10082
10083         * include/stdlib.h: Define inlines for the _l variants of the strto*
10084         functions.
10085
10086 2002-01-01  Roland McGrath  <roland@frob.com>
10087
10088         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10089
10090         * mach/Machrules (MIG): Set CPP as well as CC.
10091
10092 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10093
10094         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10095         locale to parse /proc/loadavg [PR libc/2760].
10096
10097 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10098
10099         * elf/dl-conflict.c: Include sys/param.h.
10100         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10101         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10102         warning.
10103         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10104         literals to avoid warnings.
10105
10106 2001-12-31  Andreas Jaeger  <aj@suse.de>
10107
10108         * configure.in: Don't check for gsed since we do not use it anywhere.
10109
10110 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10111
10112         * io/fts.c: Update from BSD to fix memory leaks.
10113
10114 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10115
10116         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10117         * elf/chroot_canon.c: Likewise.
10118         * elf/dl-object.c: Likewise.
10119         * iconv/iconv_charmap.c: Likewise.
10120         * iconv/iconv_prog.c: Likewise.
10121         * libio/iogetdelim.c: Likewise.
10122         * locale/lc-time.c: Likewise.
10123         * stdlib/canonicalize.c: Likewise.
10124         * sunrpc/svc.c: Likewise.
10125         * sysdeps/generic/glob.c: Likewise.
10126
10127 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10128
10129         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10130         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10131         remove high order bit from the program counter.
10132         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10133
10134 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10135
10136         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10137         unnecessary code and add missing reloc types.
10138         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10139         case for reloc type R_390_NONE.
10140
10141 2001-12-28  Andreas Jaeger  <aj@suse.de>
10142
10143         * io/bug-ftw3.c: Include string.h for prototypes.
10144
10145         * crypt/md5test.c (main): Remove unused variable.
10146
10147         * dlfcn/modstatic.c: Add prototype to avoid warning.
10148
10149 2001-12-26  Roland McGrath  <roland@frob.com>
10150
10151         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10152         check only (SS->pending & MASK) for the signal to return.
10153         From Jeroen Dekkers <jeroen@dekkers.cx>.
10154
10155 2001-12-22  Roland McGrath  <roland@frob.com>
10156
10157         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10158         Use preprocessor #if conditionals instead of `if' to avoid
10159         warnings about divide by zero in dead code.
10160
10161         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10162         _hurd_port_init, and __hurd_self_sigstate.
10163
10164         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10165
10166 2001-12-21  Andreas Jaeger  <aj@suse.de>
10167
10168         * elf/dblloadmod1.c: Add prototype to avoid warning.
10169         * elf/dblloadmod2.c: Likewise.
10170         * elf/dblloadmod3.c: Likewise.
10171         * elf/reldepmod5.c: Likewise.
10172         * elf/reldepmod6.c: Likewise.
10173
10174         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10175         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10176         used on all architectures.
10177
10178         * sunrpc/svc_tcp.c: Add noreturn attribute for
10179         svctcp_rendezvous_abort.
10180         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10181
10182         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10183         to avoid warning.
10184
10185 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10186
10187         * manual/llio.texi (aio_fsync): Fix a typo.
10188         Patch by Tammy Fox <tfox@redhat.com>.
10189
10190 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10191
10192         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10193         stack bias from child stack pointer before passing it to clone syscall.
10194
10195 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10196
10197         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10198         _SC_TZNAME_MAX.
10199         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10200         Reported by Thorsten Kukuk <kukuk@suse.de>.
10201
10202         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10203         add some casts.
10204
10205         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10206
10207 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10208
10209         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10210         conforming: return EBADF if file descriptor is invalid and EINVAL
10211         if file descriptor is no valid tty.
10212         * login/tst-grantpt.c: New file.
10213         * login/Makefile (tests): Add tst-grantpt.
10214
10215 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10216
10217         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10218         different than implemented in last patch.
10219         * io/bug-ftw3.c: Adjust test for changed handling of
10220         inaccessibility of toplevel dir.
10221
10222 2001-12-16  Roland McGrath  <roland@frob.com>
10223
10224         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10225         * grp/initgroups.c (internal_getgrouplist): Likewise.
10226
10227         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10228         `default:' to silence new GCC warning.
10229         Rewrite cast of lvalue to silence new GCC warning.
10230
10231         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10232
10233         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10234         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10235
10236 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10237
10238         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10239         Patch by Stephen R. van den Berg.
10240
10241         * crypt/md5.h: Define md5_uintptr.
10242
10243 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10244
10245         * libio/tst_swprintf.c (main): Add test for string argument with
10246         zero precision.
10247         * stdio-common/Makefile (tests): Add tst-sprintf.
10248         * stdio-common/tst-sprintf.c: New file.
10249
10250 2001-12-13  Andreas Schwab  <schwab@suse.de>
10251
10252         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10253         zero precision with wide character string format.
10254
10255 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10256
10257         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10258         but have a user supplied buffer, return the empty buffer, not NULL.
10259
10260 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10261
10262         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10263         Patch by Eric Sharkey <sharkey@netrics.com>.
10264
10265         * crypt/md5test.c (main): Add test for multiple calls to
10266         __md5_process_bytes to itererate over input string.
10267
10268 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10269
10270         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10271         from __nis_findfastest.  Take timeout value from parameter.
10272         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10273         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10274         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10275
10276 2001-12-12  Andreas Jaeger  <aj@suse.de>
10277
10278         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10279         combreloc test so that it works in this case.
10280
10281         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10282
10283 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10284
10285         * sysdeps/sh/Makefile: New file.
10286         * sysdeps/sh/_mcount.S: New file.
10287         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10288         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10289
10290 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10291
10292         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10293         limitation [PR libc/2564].
10294
10295 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10296
10297         * elf/Makefile (dl-routines): Add conflict.
10298         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10299         (ld.so): Add _begin local symbol.
10300         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10301         Define.
10302         * elf/dl-deps.c (_dl_build_local_scope): New function.
10303         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10304         of all libraries.
10305         * elf/do-rel.h (VALIDX): Define.
10306         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10307         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10308         can be skipped.
10309         * elf/dl-conflict.c: New file.
10310         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10311         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10312         non-NULL.
10313         (_dl_lookup_symbol_skip): Likewise.
10314         (_dl_lookup_versioned_symbol): Likewise.
10315         (_dl_lookup_versioned_symbol_skip): Likewise.
10316         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10317         define to ElfW(Rel).
10318         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10319         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10320         ranges.
10321         Don't adjust address dynamic tags if l_addr is 0.
10322         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10323         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10324         (VALIDX, ADDRIDX): Define.
10325         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10326         (dl_main): Print library list for LD_TRACE_PRELINKING.
10327         If prelinking information can be used, skip relocating libraries and
10328         call _dl_resolve_conflicts instead.
10329         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10330         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10331         if LD_TRACE_PRELINKING.
10332         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10333         + DT_ADDRNUM.
10334         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10335         (DL_DEBUG_PRELINK): Define.
10336         (_dl_resolve_conflicts): Add prototype.
10337
10338         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10339         .plt for prelinked libraries where prelinking info cannot be used.
10340         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10341         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10342         * sysdeps/arm/bits/link.h: New file.
10343         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10344         content of .got[1].
10345         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10346         (ELF_MACHINE_PLT_REL): Define.
10347         (elf_machine_rela, elf_machine_rela_relative): New functions.
10348         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10349         of adjusting it if prelinked and prelinking cannot be used.
10350         * sysdeps/i386/bits/link.h: New file.
10351         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10352         content of .got[1].
10353         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10354         (ELF_MACHINE_PLT_REL): Define.
10355         (elf_machine_rela, elf_machine_rela_relative): New functions.
10356         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10357         of adjusting it if prelinked and prelinking cannot be used.
10358         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10359         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10360         to find out map for R_PPC_JMP_SLOT relocs.
10361         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10362         (OPCODE_BA): Define.
10363         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10364         libraries where prelinking info cannot be used.
10365         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10366         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10367         (elf_machine_rela): Set value to 0 if relocating conflicts.
10368         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10369         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10370         (sparc64_fixup_plt): Fix a typo.
10371         (elf_machine_rela): Set value to 0 if relocating conflicts.
10372         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10373         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10374         libraries where prelinking info cannot be used.
10375         * sysdeps/sh/bits/link.h: New file.
10376         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10377         content of .got[1].
10378         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10379         of adjusting it if prelinked and prelinking cannot be used.
10380         * sysdeps/s390/s390-32/bits/link.h: New file.
10381         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10382         Save original content of .got[1].
10383         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10384         of adjusting it if prelinked and prelinking cannot be used.
10385         * sysdeps/s390/s390-64/bits/link.h: New file.
10386         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10387         Save original content of .got[1].
10388         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10389         of adjusting it if prelinked and prelinking cannot be used.
10390         * sysdeps/x86_64/bits/link.h: New file.
10391         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10392         Save original content of .got[1].
10393         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10394         of adjusting it if prelinked and prelinking cannot be used.
10395
10396 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10397
10398         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10399         where appropriate instead of numbers.  Little optimizations.
10400
10401 2001-12-10  Roland McGrath  <roland@frob.com>
10402
10403         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10404         set it.
10405
10406         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10407         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10408
10409         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10410         Fix conditionals so this is set by default for stdio and not for libio.
10411         * sysdeps/mach/hurd/configure: Regenerated.
10412
10413 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10414
10415         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10416
10417 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10418
10419         * io/Makefile (tests): Add bug-ftw3.
10420         * io/bug-ftw3.c: New file.
10421
10422         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10423         matches and GLOB_NOCHECK is set.
10424         * posix/globtest.sh: Correct expected result for NOCHECK test.
10425
10426         * po/ca.po: Update from translation team.
10427
10428 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10429
10430         Implement transliteration of characters in strings of the locale
10431         definitions.
10432         * locale/programs/linereader.c: Adjust for additional parameter to
10433         lr_token.
10434         (get_string): If character <Uxxxx> is not found try to transliterate
10435         it.
10436         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10437         lr_token.  Add const to charmap parameter of all functions.
10438         (find_translit, find_translit2): New functions.
10439         * locale/programs/charmap.c: Adjust for additional parameter to
10440         lr_token.
10441         * locale/programs/repertoire.c: Likewise.
10442         * locale/programs/linereader.h: Likewise.
10443         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10444         parameter of all functions.
10445         * locale/programs/ld-collate.c: Likewise.
10446         * locale/programs/ld-identification.c: Likewise.
10447         * locale/programs/ld-measurement.c: Likewise.
10448         * locale/programs/ld-messages.c: Likewise.
10449         * locale/programs/ld-monetary.c: Likewise.
10450         * locale/programs/ld-name.c: Likewise.
10451         * locale/programs/ld-numeric.c: Likewise.
10452         * locale/programs/ld-paper.c: Likewise.
10453         * locale/programs/ld-paper.c: Likewise.
10454         * locale/programs/ld-telephone.c: Likewise.
10455         * locale/programs/ld-time.c: Likewise.
10456         * locale/programs/locfile.c: Likewise.
10457         * locale/programs/localedef.c: Likewise.
10458         * locale/programs/localedef.h: Likewise.
10459         * locale/programs/locfile.h: Likewise.  Add declaration for
10460         find_translit.
10461         * locale/programs/simple-hash.c: Add const to first parameter of
10462         find_entry, iterate_table, and lookup.
10463         * locale/programs/simple-hash.h: Likewise.
10464         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10465         instead.
10466         * include/locale.h: Define __LC_LAST.
10467         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10468
10469 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10470
10471         * sysdeps/powerpc/Dist: Update for recent FP changes.
10472         * sysdeps/powerpc/fpu/Dist: Likewise.
10473
10474 2001-12-07  Andreas Schwab  <schwab@suse.de>
10475
10476         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10477
10478 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10479
10480         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10481         save/restore functions here.
10482         (libm-support): Don't define these functions here.
10483         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10484         functions here.
10485         * sysdeps/powerpc/fe_nomask.c: Move to...
10486         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10487         * sysdeps/powerpc/fprrest.S: Move to...
10488         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10489         * sysdeps/powerpc/fprsave.S: Move to...
10490         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10491
10492 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10493
10494         * sysdeps/unix/sysv/linux/opensock.c: New file.
10495
10496 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10497
10498         * config.make.in (with-fp): Define from configure.
10499         * configure.in: Substitute with_fp.
10500         * configure: Regenerate.
10501         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10502         specified, and don't change FPU environment.
10503
10504 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10505
10506         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10507         * assert/assert.c: Check result of __asprintf call and don't use
10508         string if it failed.
10509         * assert/assert-perr.c: Likewise.
10510         * inet/rcmd.c: Likewise.
10511         * locale/programs/localedef.c (main): Check result of
10512         construct_output_path and exit if it failed.
10513         (construct_output_path): Check result of asprintf and mkdir calls and
10514         fail if they failed.
10515         * posix/getopt.c: Check result of __asprintf calls and fail if
10516         they failed.
10517         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10518
10519 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10520
10521         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10522         patch.
10523         * sysdeps/generic/strncase.c: Likewise.
10524         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10525
10526 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10527
10528         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10529
10530         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10531         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10532         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10533         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10534         * sysdeps/powerpc/fclrexcpt.c: Move to...
10535         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10536         * sysdeps/powerpc/fpu_control.h: Move to...
10537         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10538
10539 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10540
10541         * iconvdata/ibm1129.h: Remove duplicate mappings.
10542         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10543         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10544         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10545
10546         * timezone/zic.c: Fix handling of turnaround times.
10547         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10548
10549 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10550
10551         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10552         overflow problem.
10553
10554 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10555
10556         * posix/regex.c: For use outside glibc defined bounded pointer
10557         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10558
10559         * iconvdata/Makefile (modules): Add TCVN5712-1.
10560         * iconvdata/TESTS: Add TCVN5712-1.
10561         * iconvdata/gconv-modules: Likewise.
10562         * iconvdata/tcvn5712-1.c: New file.
10563         * iconvdata/testdata/TCVN-5712: New file.
10564         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10565
10566 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10567
10568         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10569
10570 2001-12-02  Roland McGrath  <roland@frob.com>
10571
10572         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10573
10574         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10575         Reported by Jeff Bailey <jbailey@nisa.net>.
10576
10577         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10578         Reported by Jeff Bailey <jbailey@nisa.net>.
10579
10580         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10581         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10582         Reported by Jeff Bailey <jbailey@nisa.net>.
10583
10584 2001-12-01  Roland McGrath  <roland@frob.com>
10585
10586         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10587         missing backslash in test arguments.
10588         * sysdeps/mach/hurd/configure: Regenerated.
10589
10590 2001-11-26  Roland McGrath  <roland@frob.com>
10591
10592         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10593         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10594
10595 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10596
10597         * iconvdata/Makefile (modules): Add ARMSCII-8.
10598         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10599         * iconvdata/armscii-8.c: New file.
10600
10601 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10602
10603         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10604         don't match, fix {{a,b},c} globbing, clean up.
10605         Patch by Flavio Veloso <flaviovs@magnux.com>.
10606         * posix/globtest.sh: Add new tests.
10607
10608 2001-11-29  Andreas Jaeger  <aj@suse.de>
10609
10610         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10611         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10612
10613         * sysdeps/generic/abort.c: Include libioP.h for
10614         _IO_flush_all_lockp prototype.
10615
10616 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10617
10618         * posix/regex.h: Define __restrict_arr correctly.
10619
10620 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10621
10622         * iconvdata/ibm1163.c: New file.
10623         * iconvdata/ibm1163.h: New file.
10624         * iconvdata/ibm1164.c: New file.
10625         * iconvdata/ibm1164.h: New file.
10626         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10627         * iconvdata/Makefile: Likewise.
10628         * iconvdata/testdata/IBM1163: New file.
10629         * iconvdata/testdata/IBM1163..UTF8: New file.
10630         * iconvdata/testdata/IBM1164: New file.
10631         * iconvdata/testdata/IBM1164..UTF8: New file.
10632         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10633
10634         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10635         * iconvdata/ibm1124.h: Likewise.
10636         * iconvdata/ibm1132.h: Likewise.
10637         * iconvdata/ibm1133.h: Likewise.
10638         * iconvdata/ibm1160.h: Likewise.
10639         * iconvdata/ibm1161.h: Likewise.
10640         * iconvdata/ibm1162.h: Likewise.
10641         * iconvdata/ibm856.h: Likewise.
10642         * iconvdata/ibm922.h: Likewise.
10643         * iconvdata/ibm930.h: Likewise.
10644         * iconvdata/ibm932.h: Likewise.
10645         * iconvdata/ibm933.h: Likewise.
10646         * iconvdata/ibm935.h: Likewise.
10647         * iconvdata/ibm937.h: Likewise.
10648         * iconvdata/ibm939.h: Likewise.
10649         * iconvdata/ibm943.h: Likewise.
10650         * iconvdata/ibm930.c: Pretty printing.
10651         * iconvdata/ibm937.c: Avoid access accross array boundary.
10652
10653         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10654         the current locale's codeset.
10655         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10656         empty input string.
10657         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10658         and from-charset.  Don't determine locale's charset here.
10659
10660         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10661         as the old _IO_flush_all but lock only if parameter is nonzero.
10662         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10663         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10664         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10665         if libio is used [PR libc/2575].
10666
10667 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10668
10669         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10670         __signbitl): Only define for ISO C99.
10671
10672 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10673
10674         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10675         herrnop to NETDB_INTERNAL if we run out of buffer space.
10676
10677 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10678
10679         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10680         overflow test for platforms with signed char.
10681         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10682
10683 2001-11-28  Bruno Haible  <bruno@clisp.org>
10684
10685         * locale/programs/simple-hash.c (lookup_2): Remove function.
10686         (insert_entry_2): Call lookup instead of lookup_2.
10687
10688 2001-03-04  Bruno Haible  <bruno@clisp.org>
10689
10690         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10691
10692 2001-10-31  Bruno Haible  <bruno@clisp.org>
10693
10694         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10695
10696 2001-03-21  Bruno Haible  <bruno@clisp.org>
10697
10698         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10699         chokes on empty macro arguments.
10700         * intl/plural.y: Add #pragma for alloca on AIX 3.
10701
10702 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10703
10704         * intl/dcigettext.c (guess_category_value): Only implement for
10705         glibc.  Otherwise rely on function _nl_locale_name which isn't
10706         present in the glibc sources.
10707
10708 2001-09-24  Bruno Haible  <bruno@clisp.org>
10709
10710         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10711         transliteration when building on a glibc system but outside glibc.
10712
10713 2001-09-22  Bruno Haible  <bruno@clisp.org>
10714
10715         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10716         * intl/dcigettext.c (plural_eval): Remove function, moved to
10717         intl/plural-eval.c.
10718         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10719         Include plural-eval.c.
10720
10721 2001-09-22  Bruno Haible  <bruno@clisp.org>
10722
10723         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10724         don't start with a digit; nplurals must be positive.
10725
10726 2001-09-02  Bruno Haible  <bruno@clisp.org>
10727
10728         * intl/plural-exp.h: New file, extracted from gettextP.h.
10729         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10730         * intl/gettextP.h (struct expression, struct parse_args,
10731         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10732         * intl/loadmsgcat.c: Include plural-exp.h.
10733         (PLURAL_PARSE): Move macro to plural-exp.h.
10734         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10735         plural-exp.c.
10736         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10737         EXTRACT_PLURAL_EXPRESSION.
10738         (_nl_unload_domain): Update.
10739         * intl/dcigettext.c: Include plural-exp.h.
10740         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10741         (FREE_EXPRESSION): Move macro to plural-exp.h.
10742         * intl/Makefile (routines): Add plural-exp.
10743         (distribute): Add plural-exp.h.
10744
10745 2001-07-28  Bruno Haible  <bruno@clisp.org>
10746
10747         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10748         isdigit, tolower argument to 'unsigned char'.
10749         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10750         'unsigned char'.
10751         * intl/localealias.c (read_alias_file): Cast isspace argument to
10752         'unsigned char'.
10753
10754 2001-10-20  Bruno Haible  <bruno@clisp.org>
10755
10756         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10757         anyway.)
10758         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10759         with the variable 'index' in plural_lookup.
10760         * intl/l10nflist.c (strchr): Likewise.
10761         * intl/localealias.c (strchr): Likewise.
10762
10763         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
10764         * intl/bindtextdom.c: Likewise.
10765         * intl/dcigettext.c: Likewise.
10766         * intl/dgettext.c: Likewise.
10767         * intl/dngettext.c: Likewise.
10768         * intl/explodename.c: Likewise.
10769         * intl/finddomain.c: Likewise.
10770         * intl/gettext.c: Likewise.
10771         * intl/l10nflist.c: Likewise.
10772         * intl/loadmsgcat.c: Likewise.
10773         * intl/localealias.c: Likewise.
10774         * intl/ngettext.c: Likewise.
10775         * intl/textdomain.c: Likewise.
10776         * intl/gettext.h: Assume <limits.h> exists.
10777
10778 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10779
10780         * stdio-common/Makefile (tests): Add scanf11.
10781         * stdio-common/scanf11.c: New file.
10782
10783 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10784
10785         * version.h (RELEASE): Define as development.
10786         (VERSION): Set to 2.2.90.
10787
10788 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10789
10790         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
10791         * nis/nss_nis/nis-grp.c: Likewise.
10792         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10793
10794         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
10795         * nis/nss_nis/nis-pwd.c: Likewise.
10796         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
10797
10798         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
10799         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10800         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10801
10802         * nscd/grpcache.c: Use strtoul instead of atol.
10803         * nscd/pwdcache.c: Likewise.
10804         * nss/getent.c: Likewise.
10805
10806 2001-11-27  Paul Eggert  <eggert@twinsun.com>
10807
10808         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10809         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10810
10811 2001-11-19  Bruno Haible  <bruno@clisp.org>
10812
10813         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
10814         90%.
10815         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
10816         improves the quality of the hash function, especially for short
10817         strings.
10818
10819 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
10820
10821         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
10822         are found call conv_error and not input_error [PR libc/2669].
10823
10824         * math/bits/mathcalls.h: Mark ceil and floor as const.
10825         Reported by David Mosberger.
10826
10827 2001-11-21  Jim Meyering  <meyering@lucent.com>
10828
10829         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
10830         Define to be __-prefixed.
10831         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
10832
10833 2001-11-26  Andreas Jaeger  <aj@suse.de>
10834
10835         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
10836         avoid warning.
10837
10838 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
10839
10840         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
10841         initialization.
10842
10843         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
10844         unused variables.  Fix threshold for returning 1.0.
10845
10846         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
10847         argument.
10848
10849         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
10850         remove unused variables.
10851
10852         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
10853
10854         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
10855         include local math header files.
10856
10857 2001-11-22  Andreas Jaeger  <aj@suse.de>
10858
10859         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
10860         avoid warning.
10861
10862 2001-11-21  Andreas Jaeger  <aj@suse.de>
10863
10864         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
10865
10866         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
10867         sys/debugreg.h
10868
10869 2001-11-15  Andreas Jaeger  <aj@suse.de>
10870
10871         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
10872         compilers that support it.
10873
10874         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
10875         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10876         * stdlib/stdlib.h: Likewise.
10877
10878 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
10879
10880         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
10881         statement with gotos.
10882         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
10883
10884 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
10885
10886         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
10887
10888 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
10889
10890         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
10891
10892 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
10893             H.J. Lu  <hjl@gnu.org>
10894
10895         * Versions.def (libc): Add GCC_3.0.
10896         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
10897         if gcc supports this flag.
10898         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
10899         (gcc3): Allow glibc to be compiled with gcc 3.x.
10900         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
10901         * config.make.in (static-libgcc, unwind-find-fde): Add.
10902         * Makerules (build-shlib-helper, build-module-helper): Use it.
10903         * scripts/versions.awk: Make sure GLIBC_ versions come first.
10904         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
10905         necessary.
10906         (_fini): Call __deregister_frame_info_bases if
10907         __register_frame_info_bases was used to register.
10908         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
10909         for GLIBC_2.0.
10910         (__register_frame_info_bases, __register_frame_info_table_bases,
10911         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
10912         * elf/Makefile (routines): Add unwind-dw2-fde.
10913         (shared-only-routines): Add unwind-dw2-fde.
10914         * sysdeps/alpha/gccframe.h: New file.
10915         * sysdeps/arm/gccframe.h: New file.
10916         * sysdeps/generic/framestate.c: New file.
10917         * sysdeps/generic/dwarf2.h: New file.
10918         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
10919         * sysdeps/generic/unwind-dw2-fde.c: New file.
10920         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
10921         * sysdeps/generic/unwind-dw2-fde.h: New file.
10922         * sysdeps/generic/unwind-dw2.c: New file.
10923         * sysdeps/generic/unwind-pe.h: New file.
10924         * sysdeps/generic/unwind.h: New file.
10925         * sysdeps/hppa/gccframe.h: New file.
10926         * sysdeps/i386/gccframe.h: New file.
10927         * sysdeps/m68k/gccframe.h: New file.
10928         * sysdeps/mips/gccframe.h: New file.
10929         * sysdeps/powerpc/gccframe.h: New file.
10930         * sysdeps/s390/gccframe.h: New file.
10931         * sysdeps/sh/gccframe.h: New file.
10932         * sysdeps/sparc/gccframe.h: New file.
10933         * sysdeps/vax/gccframe.h: New file.
10934         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10935         Set on all architectures except ia64.
10936         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
10937         for i386.
10938         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
10939         __deregister_frame_info): Move to elf/Versions.
10940         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
10941         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
10942         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
10943         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
10944         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
10945         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
10946         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
10947         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
10948         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
10949         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
10950         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
10951         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
10952         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10953         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
10954         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
10955         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
10956         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
10957         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
10958
10959 2001-11-15  Jeff Law  <law@redhat.com>
10960
10961         * posix/regex.c (uintptr_t): Do not provide a definition if the
10962         system provided one.
10963
10964 2001-11-13  Roland McGrath  <roland@frob.com>
10965
10966         * stdio-common/tmpfile.c: Moved to ...
10967         * sysdeps/generic/tmpfile.c: ... here.
10968         * sysdeps/mach/hurd/tmpfile.c: New file.
10969
10970         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
10971         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
10972         (fopenport): Define as weak alias.
10973
10974         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
10975         * libio/libioP.h: ... to here.
10976
10977 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
10978
10979         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
10980         program header twice.  Construct list with the needed information.
10981
10982 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
10983
10984         * po/ca.po: Update from translation team.
10985
10986         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
10987         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
10988         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
10989         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10990
10991 2001-11-10  Andreas Jaeger  <aj@suse.de>
10992
10993         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
10994         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10995         Contributed by Stephen L Moshier <moshier@mediaone.net>.
10996
10997 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
10998
10999         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11000         correctly.
11001         * elf/dl-load.c (is_dst): New function.
11002         (_dl_dst_count): Use is_dst to check for DST variable.
11003         (_dl_dst_substitute): Likewise.
11004
11005 2001-11-09  Roland McGrath  <roland@frob.com>
11006
11007         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11008         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11009         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11010         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11011         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11012         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11013         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11014         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11015         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11016         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11017         * sysdeps/mach/hurd/powerpc/Dist: New file.
11018
11019         * hurd/privports.c (__get_privileged_ports):
11020         Only contact the proc server if necessary for this call.
11021         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11022         Check error return for mach_port_mod_refs.
11023
11024 2001-11-09  Andreas Schwab  <schwab@suse.de>
11025
11026         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11027
11028 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11029
11030         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11031         object is always the last in the list.
11032         (_dl_map_object_from_fd): Delete code to remove from object list
11033         when DF_1_NOOPEN is seen.  This is done in lose.
11034
11035 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11036
11037         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11038
11039 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11040
11041         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11042         HWCAP_CHECK macro code.
11043
11044         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11045         Now returns MAP_FAILED on error.
11046         * elf/rtld.c: Adjust caller.
11047         * sysdeps/generic/dl-cache.c: Likewise.
11048         * sysdeps/generic/ldsodefs.h: Adjust description.
11049
11050         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11051         (_dl_check_map_versions): Likewise.
11052
11053 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11054
11055         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11056         _dl_signal_error directly, always use lose.  Set fd to -1 after
11057         file is closed.
11058         (lose): Don't call close if fd == -1.
11059
11060 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11061
11062         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11063          Also fix typo @code {mbsinit} to @code{mbsinit}.
11064
11065 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11066
11067         * elf/dl-profile.c: Replace state variable with simple flag named
11068         running.  Remove commented-out code.
11069
11070         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11071         (_dl_init_paths): Likewise.
11072         (_dl_map_object_from_fd): Likewise.
11073         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11074
11075 2001-11-06  Roland McGrath  <roland@frob.com>
11076
11077         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11078         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11079
11080         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11081         sysdeps/powerpc/elf/sysdep.h.
11082         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11083
11084 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11085
11086         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11087         speed.
11088         (process_envvars): Some more optimizations.
11089         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11090
11091         * elf/elf.h: Add dynamic tag definitions for prelinking.
11092
11093         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11094         Rewrite code to remove environment varables for SUID binaries.
11095         Small optimization in LD_PROFILE handling.
11096         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11097         changes.
11098         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11099
11100         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11101
11102         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11103         strings.  Change type of second parameter.
11104         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11105         for last change.
11106
11107         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11108
11109 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11110
11111         * manual/string.texi: Fix typos.
11112         * manual/examples/argp-ex2.c: Likewise.
11113
11114 2001-11-05  Roland McGrath  <roland@frob.com>
11115
11116         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11117         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11118         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11119         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11120         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11121         here, put under [__ELF__].
11122
11123 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11124
11125         * manual/charset.texi: Extensive editing work.
11126         * manual/nss.texi: Likewise.
11127         Changes by Dennis Grace <dgrace@us.ibm.com>.
11128
11129 2001-11-04  Roland McGrath  <roland@frob.com>
11130
11131         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11132         parameter to dir_mkfile.
11133
11134 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11135
11136         * string/bits/string2.h (__strndup): If n is smaller than len, set
11137         len to n + 1.
11138         * string/tester.c (test_strndup): New function.
11139         (main): Call it.
11140
11141 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11142
11143         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11144
11145         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11146         * scripts/cpp: New file.
11147
11148         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11149         for rtld_search_dirs content.  Minor optimizations.
11150
11151 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11152
11153         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11154         avoiding unnecessary duplication.
11155
11156 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11157
11158         * elf/dl-load.c (_dl_map_object): If library was found using
11159         LD_LIBRARY_PATH, don't try RUNPATH list.
11160
11161 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11162
11163         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11164         Correct second argument of register_dump call.
11165         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11166         Likewise.
11167
11168 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11169
11170         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11171         modules.
11172         * iconvdata/TESTS: Likewise.
11173         * iconvdata/gconv-modules: Likewise.
11174         * iconvdata/ibm1132.c: New file.
11175         * iconvdata/ibm1132.h: New file.
11176         * iconvdata/ibm1133.c: New file.
11177         * iconvdata/ibm1133.h: New file.
11178         * iconvdata/ibm1162.c: New file.
11179         * iconvdata/ibm1162.h: New file.
11180         * iconvdata/testdata/IBM1132: New file.
11181         * iconvdata/testdata/IBM1132..UTF8: New file.
11182         * iconvdata/testdata/IBM1133: New file.
11183         * iconvdata/testdata/IBM1133..UTF8: New file.
11184         * iconvdata/testdata/IBM1162: New file.
11185         * iconvdata/testdata/IBM1162..UTF8: New file.
11186         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11187
11188         * string/string.h: Fix typo in comment.
11189         * wcsmbs/wchar.h: Likewise.
11190
11191 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11192
11193         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11194         const in type of longopts parameter.
11195
11196 2001-10-29  Andreas Jaeger  <aj@suse.de>
11197
11198         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11199
11200 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11201
11202         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11203         output, clarify `#' behaviour on 0.
11204         (Floating-Point Conversions): Clarify that %g only uses %e when
11205         the exponent would be greater than 1.
11206
11207 2001-10-28  Roland McGrath  <roland@frob.com>
11208
11209         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11210         * sysdeps/mach/powerpc/machine-sp.h: New file.
11211         * sysdeps/mach/powerpc/sysdep.h: New file.
11212         * sysdeps/mach/powerpc/thread_state.h: New file.
11213
11214         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11215         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11216         expect to need the same thing on every platform.
11217
11218         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11219         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11220
11221         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11222         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11223         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11224         Move all these assembly-related definitions to ...
11225         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11226
11227         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11228         by Peter Bruin <pjbruin@dds.nl>.
11229
11230         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11231         packing results for a `poll' call.
11232
11233 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11234
11235         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11236         correctly.
11237         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11238         bracket expression.
11239
11240         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11241         nrules value.
11242         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11243
11244 2001-10-24  H.J. Lu  <hjl@gnu.org>
11245
11246         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11247         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11248         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11249
11250 2001-10-21  Jim Meyering  <meyering@lucent.com>
11251
11252         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11253         this code would end up calling gettext even in packages built
11254         with --disable-nls.
11255         * posix/getopt.c (_): Likewise.
11256         * posix/regex.c (_): Likewise.
11257
11258 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11259
11260         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11261         lookup not ip6.int.
11262         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11263         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11264
11265 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11266
11267         * misc/sys/cdefs.h (__attribute_used__): Define.
11268         * elf/rtld.c (_dl_start): Add __attribute_used__.
11269         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11270
11271 2001-10-25  Andreas Schwab  <schwab@suse.de>
11272
11273         * stdlib/a64l.c: Expect least significant digit first.
11274         * stdlib/l64a.c: Produce least significant digit first.
11275         * stdlib/Makefile (tests): Add test-a64l.
11276         * stdlib/test-a64l.c: New file.
11277         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11278
11279 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11280
11281         * po/sk.po: Update from translation team.
11282
11283 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11284
11285         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11286
11287 2001-10-18  Andreas Schwab  <schwab@suse.de>
11288
11289         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11290         next whole number.
11291         (print_function_ulps): Likewise.
11292         (print_complex_function_ulps): Likewise.
11293         (print_max_error): Likewise.
11294         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11295
11296 2001-10-16  Andreas Schwab  <schwab@suse.de>
11297
11298         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11299         implementation.
11300
11301         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11302         BSD_SETJMP or BSD__SETJMP is defined, resp.
11303         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11304         a tail call to __sigsetjmp that would require extending the
11305         caller's frame.
11306         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11307         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11308         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11309         Reported by Jes Sorensen <jes@trained-monkey.org>.
11310
11311 2001-10-16  Andreas Jaeger  <aj@suse.de>
11312
11313         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11314         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11315         close PR libc/2589.
11316
11317 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11318
11319         * po/ca.po: New file.  Contributed by the translation team.
11320
11321 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11322
11323         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11324         a varargs prototype.  Remove dependency from kernel header files.
11325
11326         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11327         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11328
11329 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11330
11331         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11332         to generate hexadecimal identifier.
11333         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11334
11335 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11336
11337         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11338
11339 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11340
11341         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11342         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11343         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11344
11345         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11346         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11347         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11348         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11349         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11350         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11351
11352         * timezone/africa: Update from tzdata2001d.
11353         * timezone/asia: Likewise.
11354         * timezone/australasia: Likewise.
11355         * timezone/backward: Likewise.
11356         * timezone/europe: Likewise.
11357         * timezone/leapseconds: Likewise.
11358         * timezone/northamerica: Likewise.
11359         * timezone/southamerica: Likewise.
11360         * timezone/zone.tab: Likewise.
11361
11362 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11363
11364         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11365         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11366
11367 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11368
11369         * elf/elf.h (PT_TLS): New definition.
11370
11371 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11372
11373         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11374         bits/errno.h
11375
11376 2001-10-07  Roland McGrath  <roland@frob.com>
11377
11378         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11379
11380 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11381
11382         * elf/elf.h: Add more ELFOSABI_* constants.
11383
11384 2001-10-04  Ben Collins  <bcollins@debian.org>
11385
11386         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11387         decleration of __need_wchar_t.
11388
11389 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11390
11391         * string/bits/string2.h (__strsep_g): Add prototype.
11392         (__strsep): Use it.
11393         * string/Versions (__strsep): Remove.
11394         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11395
11396 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11397
11398         * manua/llio.texi: Clarify file references added by mmap.
11399         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11400
11401 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11402
11403         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11404         Add sc_loadrs and sc_rbs_bas to match current kernel.
11405
11406 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11407
11408         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11409
11410         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11411
11412 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11413
11414         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11415         object has been bumped because of relocation dependency, avoid
11416         duplicates in l_scope.
11417         (show_scope): Fix typos.
11418         * elf/Makefile: Add rules to build and run reldep6.
11419         * elf/reldep6.c: New file.
11420         * elf/reldep6mod0.c: New file.
11421         * elf/reldep6mod1.c: New file.
11422         * elf/reldep6mod2.c: New file.
11423         * elf/reldep6mod3.c: New file.
11424         * elf/reldep6mod4.c: New file.
11425
11426 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11427
11428         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11429         sparc64_fixup_plt.
11430         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11431         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11432         for non-lazy binding. Fix .plt[32768+] handling.
11433         (elf_machine_plt_value): Don't add addend.
11434         (elf_machine_rela): Call sparc64_fixup_plt instead of
11435         elf_machine_fixup_plt.
11436         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11437         dynamic linker at 0xfffff800XXXXXXXX.
11438
11439         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11440
11441 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11442
11443         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11444
11445 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11446
11447         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11448         declare __cmsg_data field if its size would be bigger than 0.
11449         (CMSG_DATA): Adjust accordingly.
11450         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11451         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11452         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11453         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11454         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11455         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11456         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11457
11458 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11459
11460         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11461         * iconvdata/testdata/IBM1160: New file.
11462         * iconvdata/testdata/IBM1160..UTF8: New file.
11463         * iconvdata/testdata/IBM1161: New file.
11464         * iconvdata/testdata/IBM1161..UTF8: New file.
11465         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11466
11467 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11468
11469         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11470         UL_SETFSIZE computations better.
11471
11472         * rt/Makefile: Remove use of filter for librt again.
11473
11474         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11475         UL_SETFSIZE computations better.
11476
11477         * string/Versions: Export __strsep for GLIBC_2.2.5.
11478         * string/bits/string2.h: Define all __STRING_INLINE functions if
11479         _FORCE_INLINES is defined.
11480         Use int instead of char of parameter types.
11481         (__strsep): Don't use __strsep_g.  Don't define it.
11482         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11483         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11484         __strcpy_small.
11485         (__stpcpy_a_small): Renamed from __stpcpy_small.
11486         (__strcspn_c1): Don't define if _FORCE_INLINES.
11487         (__strspn_c1): Likewise.
11488
11489 2001-09-22  Ben Collins  <bcollins@debian.org>
11490
11491         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11492         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11493         * sysdeps/ia64/bits/sigaction.h: Likewise.
11494         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11495
11496 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11497
11498         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11499
11500 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11501
11502         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11503
11504 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11505
11506         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11507
11508 2001-09-20  H.J. Lu  <hjl@gnu.org>
11509
11510         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11511         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11512         for __RTLD_SPROF.
11513         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11514         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11515
11516 2001-09-20  H.J. Lu  <hjl@gnu.org>
11517
11518         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11519         don't add 1.
11520
11521 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11522
11523         * nss/getent.c: Accept -s parameter to overwrite rules in
11524         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11525
11526         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11527         with as many ".0" as necessary to form a complete address
11528         inet_network understands.
11529
11530         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11531         calls.
11532
11533 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11534
11535         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11536         _JMPBUF_UNWINDS.
11537         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11538
11539 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11540
11541         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11542         IBM1161.
11543         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11544         * iconvdata/ibm1160.c: New file.
11545         * iconvdata/ibm1160.h: New file.
11546         * iconvdata/ibm1161.c: New file.
11547         * iconvdata/ibm1161.h: New file.
11548         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11549
11550 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11551
11552         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11553         difference between base address and first PT_LOAD's virtual address,
11554         not the base address.
11555
11556 2001-09-11  Tom Rix  <trix@redhat.com>
11557
11558         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11559         ifdef for __getopt_clean_environment.
11560         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11561
11562 2001-09-22  Andreas Jaeger  <aj@suse.de>
11563
11564         * elf/reldep4.c (main): Add proper prototype to fix warning.
11565
11566         * elf/reldep5.c (main): Remove unused variable.
11567
11568         * math/math_private.h: Add prototypes.
11569
11570 2001-09-21  Andreas Jaeger  <aj@suse.de>
11571
11572         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11573         * sysdeps/x86_64/Dist: New file.
11574         * sysdeps/x86_64/soft-fp/Dist: New file.
11575
11576         * sysdeps/gnu/Dist: Remove eval.c.
11577
11578 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11579
11580         * malloc/memusage.c (realloc): Don't count already allocated
11581         memory in the sums.
11582         (me): Always use dlsym() to find the real implementations.
11583
11584         * malloc/memusage.sh: Make -n option actually do something.
11585
11586 2001-09-20  Andreas Jaeger  <aj@suse.de>
11587
11588         * elf/elf.h (R_390_NUM): Correct value.
11589
11590         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11591         libpthread.
11592
11593         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11594         for x86-64, install x86-64 into */lib64.
11595
11596         * shlib-versions: Add x86-64.
11597
11598         * elf/elf.h: Add x86-64 relocations.
11599
11600 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11601
11602         * po/fr.po: Update from translation team.
11603
11604 2001-09-19  Andreas Jaeger  <aj@suse.de>
11605
11606         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11607         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11608         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11609         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11610         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11611         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11612         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11613         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11614         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11615         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11616         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11617         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11618         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11619         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11620         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11621         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11622         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11623         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11624         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11625         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11626         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11627         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11628         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11629         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11630         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11631         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11632         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11633         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11634         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11635         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11636         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11637         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11638         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11639         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11640         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11641         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11642         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11643         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11644         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11645         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11646         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11647         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11648         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11649         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11650         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11651         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11652         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11653         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11654         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11655         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11656         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11657         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11658         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11659         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11660         * sysdeps/unix/x86_64/sysdep.S: New file.
11661         * sysdeps/unix/x86_64/sysdep.h: New file.
11662         * sysdeps/x86_64/Implies: New file.
11663         * sysdeps/x86_64/Makefile: New file.
11664         * sysdeps/x86_64/Versions: New file.
11665         * sysdeps/x86_64/__longjmp.S: New file.
11666         * sysdeps/x86_64/abort-instr.h: New file.
11667         * sysdeps/x86_64/atomicity.h: New file.
11668         * sysdeps/x86_64/bits/endian.h: New file.
11669         * sysdeps/x86_64/bits/setjmp.h: New file.
11670         * sysdeps/x86_64/bits/string.h: New file.
11671         * sysdeps/x86_64/bp-asm.h: New file.
11672         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11673         * sysdeps/x86_64/bsd-setjmp.S: New file.
11674         * sysdeps/x86_64/dl-machine.h: New file.
11675         * sysdeps/x86_64/elf/initfini.c: New file.
11676         * sysdeps/x86_64/elf/start.S: New file.
11677         * sysdeps/x86_64/ffs.c: New file.
11678         * sysdeps/x86_64/ffsll.c: New file.
11679         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11680         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11681         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11682         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11683         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11684         * sysdeps/x86_64/fpu/e_expl.c: New file.
11685         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11686         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11687         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11688         * sysdeps/x86_64/fpu/e_logl.S: New file.
11689         * sysdeps/x86_64/fpu/e_powl.S: New file.
11690         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11691         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11692         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11693         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11694         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11695         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11696         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11697         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11698         * sysdeps/x86_64/fpu/fegetround.c: New file.
11699         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11700         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11701         * sysdeps/x86_64/fpu/fesetround.c: New file.
11702         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11703         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11704         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11705         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11706         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11707         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11708         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11709         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11710         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11711         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11712         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11713         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11714         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11715         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11716         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11717         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11718         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11719         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11720         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11721         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11722         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11723         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11724         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11725         * sysdeps/x86_64/gmp-mparam.h: New file.
11726         * sysdeps/x86_64/hp-timing.c: New file.
11727         * sysdeps/x86_64/hp-timing.h: New file.
11728         * sysdeps/x86_64/htonl.S: New file.
11729         * sysdeps/x86_64/memusage.h: New file.
11730         * sysdeps/x86_64/setjmp.S: New file.
11731         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11732         * sysdeps/x86_64/stackinfo.h: New file.
11733         * sysdeps/x86_64/sysdep.h: New file.
11734         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11735
11736         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11737         L Moshier.
11738
11739 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11740
11741         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11742         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11743
11744 2001-09-18  Andreas Schwab  <schwab@suse.de>
11745
11746         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11747         list, now that l_scope is a pointer.
11748
11749         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11750         scope list.
11751
11752 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11753
11754         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11755         (elf_machine_rela_relative): Add a missing declaration.
11756
11757 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11758
11759         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11760         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11761         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11762         ldd-rewrite scripts.
11763
11764 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11765
11766         * elf/ldd.bash.in: Update copyright message.
11767
11768 2001-09-17  H.J. Lu  <hjl@gnu.org>
11769
11770         * hurd/hurdmalloc.c (bcopy): Removed.
11771         (realloc): Replace bcopy with memcpy.
11772         * hurd/path-lookup.c (file_name_path_scan): Likewise.
11773         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
11774         * sunrpc/rpcinfo.c (pmapdump): Likewise.
11775
11776         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
11777         (gethostbyaddr): Likewise.
11778         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
11779
11780 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11781
11782         * sysdeps/gnu/eval.c: Removed.
11783
11784 2001-09-18  Andreas Jaeger  <aj@suse.de>
11785
11786         * sysdeps/i386/fpu/s_logbl.S: Move to ...
11787         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
11788
11789         * sysdeps/i386/fpu/s_rintl.S: Move to ...
11790         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
11791
11792         * sysdeps/i386/fpu/s_significandl.S: Move to ...
11793         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
11794
11795 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
11796
11797         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11798         nrules value.
11799
11800 2001-09-14  H.J. Lu  <hjl@gnu.org>
11801
11802         * sysdeps/mips/fpu/libm-test-ulps: Updated.
11803
11804 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
11805
11806         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
11807         Patch by Florian La Roche <laroche@redhat.com>.
11808
11809         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
11810
11811         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
11812         ETHER_CRC_LEN.
11813
11814 2001-09-14  Andreas Schwab  <schwab@suse.de>
11815
11816         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
11817         Sumner <bls@sgi.com>.
11818         * posix/execlp.c: Likewise.
11819
11820 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
11821
11822         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
11823         is already found earlier in the search scope.
11824
11825 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11826
11827         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
11828         filter.
11829
11830 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
11831
11832         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
11833
11834 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
11835
11836         * config.h.in: Enforce optimization to be used.
11837         * Makeconfig (preprocess-versions): Define ASSEMBLER.
11838         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
11839         * posix/Makefile (annexc-CFLAGS): Define to -O.
11840         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
11841
11842 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
11843
11844         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
11845         Patch by Stephan Kulow.
11846
11847 2001-09-08  Ben Collins  <bcollins@debian.org>
11848
11849         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
11850         usage of RESOLVE() (r_type, not reloc->r_type).
11851
11852 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11853
11854         * elf/dl-object.c: Avoid allocating extra memory block for name.
11855         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
11856         allocated separately.
11857         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11858
11859 2001-09-08  H.J. Lu  <hjl@gnu.org>
11860
11861         * po/zh_TW.po: Fix a typo.
11862
11863 2001-09-07  Tom Rix  <trix@redhat.com>
11864
11865         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
11866
11867 2001-08-26  Tom Rix  <trix@redhat.com>
11868
11869         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
11870         command line options.
11871         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
11872         * sysdeps/unix/sysv/aix/start.c: Removed.
11873         * sysdeps/unix/sysv/aix/start-libc.c: New file.
11874         * sysdeps/unix/sysv/aix/init-first.c: New file.
11875         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
11876
11877 2001-09-08  Ben Collins  <bcollins@debian.org>
11878
11879         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
11880         * sysdeps/generic/dl-machine.h: Likewise.
11881         * sysdeps/hppa/dl-fptr.c: Likewise.
11882         * sysdeps/ia64/dl-fptr.c: Likewise.
11883         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11884         * sysdeps/mips/dl-machine.h: Likewise.
11885         * sysdeps/mips/mips64/dl-machine.h: Likewise.
11886         * sysdeps/powerpc/dl-machine.c: Likewise.
11887
11888 2001-09-07  Ben Collins  <bcollins@debian.org>
11889
11890         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
11891
11892         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
11893
11894 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
11895
11896         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
11897         dependencies if necessary.
11898
11899         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
11900         loaded directly) determine length if l_initfini list by iterating
11901         over its elements.  Minor optimizations.
11902         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
11903         for dependency objects.
11904         If object was already loaded check whether any of the dependencies
11905         is already on the relocation dependency list.  If yes, remove the
11906         latter.  Minor optimizations.
11907         * elf/dl-lookup.c (add_dependency): Add check for self reference of
11908         maps here.  Search l_initfini list only if the object was loaded
11909         directly and not only as a dependency.
11910         (_dl_lookup_symbol): Add relocation dependency also if object
11911         is not in global scope.  Remove test for self-reference here.
11912         (_dl_lookup_versioned_symbol): Likewise.
11913         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
11914         element of first name record.
11915         * elf/loadtest.c: Add some more test to recognize early if an object
11916         wasn't unloaded.
11917         * elf/Makefile: Add rules to build and run reldep5.
11918         * elf/reldep5.c: New file.
11919         * elf/reldepmod5.c: New file.
11920         * elf/reldepmod6.c: New file.
11921
11922         * elf/reldep2.c: Fix typo.
11923
11924 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
11925
11926         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
11927         elements.  Change l_scope to be a pointer only.
11928         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
11929         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
11930         here add searchlist of newly open file to the dependency's scope.
11931         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
11932         only searchlist from its scope.  Free own scope array if necessary.
11933         * elf/Makefile (tests): Add dblload and dblunload now.
11934
11935 2001-09-06  Andreas Jaeger  <aj@suse.de>
11936
11937         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
11938         Stephen L Moshier.
11939
11940 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
11941
11942         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
11943         they both fail.
11944         * elf/dblload.c: New file.
11945         * elf/dblloadmod1.c: New file.
11946         * elf/dblloadmod2.c: New file.
11947         * elf/dblloadmod3.c: New file.
11948         * elf/dblunload.c: New file.
11949
11950 2001-09-04  Richard Henderson  <rth@redhat.com>
11951
11952         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
11953         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
11954
11955 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
11956
11957         Correct very misleading message for error in failed runtime relocation.
11958         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
11959         place of the error.
11960         (_dl_signal_cerror): Likewise.
11961         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
11962         * elf/dl-close.c: Likewise.
11963         * elf/dl-deps.c: Likewise.
11964         * elf/dl-load.c: Likewise.
11965         * elf/dl-lookup.c: Likewise.
11966         * elf/dl-open.c: Likewise.
11967         * elf/dl-reloc.c: Likewise.
11968         * elf/dl-sym.c: Likewise.
11969         * elf/dl-version.c: Likewise.
11970         * sysdeps/generic/dl-sysdep.c: Likewise.
11971
11972 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11973
11974         * iconv/strtab.c (strtabinit): Initialize null Strent.
11975         (newstring): Move len == 0 handling...
11976         (strtabadd): ...here.
11977         If len == 1, return null Strent.
11978         When inserting a suffix of an existing string, check if
11979         it is not equal to some suffix already recorded.
11980         Copy left and right members over if adding longer string.
11981
11982 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
11983
11984         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
11985
11986         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
11987         (__syscall_gethostname): Add prototype.
11988
11989 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
11990
11991         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
11992
11993 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
11994
11995         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
11996
11997 2001-08-27  Roland McGrath  <roland@frob.com>
11998
11999         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12000         short, copy that much into NAME anyway before returning error.
12001
12002 2001-09-01  Richard Henderson  <rth@redhat.com>
12003
12004         * sysdeps/alpha/elf/Dist: Remove file.
12005         * sysdeps/alpha/elf/Makefile: Remove file.
12006         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12007         * sysdeps/alpha/elf/crtend.S: Remove file.
12008         * sysdeps/alpha/elf/initfini.c: New file.
12009
12010 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12011
12012         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12013         * iconv/tst-iconv3.c: Likewise.
12014
12015 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12016
12017         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12018
12019 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12020
12021         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12022         export it.
12023         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12024         * iconv/iconv_prog.c (insert_cache): New function.
12025         (print_known_names): If cache is used call insert_cache to use the
12026         information from the cache [PR libc/2509].
12027
12028 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12029
12030         * time/strptime.c (strptime_internal): Recognize 'l' format and
12031         handle it like 'I' for symmetry with strftime.
12032
12033 2001-08-31  Richard Henderson  <rth@redhat.com>
12034
12035         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12036         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12037         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12038         (print_statistics): Make scalar unsigned long long.
12039         * sysdeps/alpha/hp-timing.h: New file.
12040
12041 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12042
12043         * stdio-common/perror.c (perror): Save errno early, pass it
12044         down to perror_internal.
12045         (perror_internal): Add errnum argument.
12046
12047 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12048
12049         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12050         Don't add old memory content for R_ALPHA_REFQUAD.
12051
12052 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12053
12054         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12055         memory correctly.
12056
12057         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12058         instead of open, __close instead of close, __getpagesize instead
12059         of getpagesize.
12060
12061         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12062         instead of strnlen.
12063         * include/string.h (strndupa): Redefine here to use __strnlen
12064         instead of strnlen.
12065         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12066
12067         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12068         connected).
12069
12070 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12071
12072         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12073         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12074         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12075         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12076         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12077         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12078         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12079
12080 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12081
12082         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12083
12084 2001-08-30  Andreas Jaeger  <aj@suse.de>
12085
12086         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12087         contributed Stephen L Moshier.
12088
12089 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12090
12091         * sunrpc/etc.rpc (sgi_fam): Add.
12092
12093 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12094
12095         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12096
12097 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12098
12099         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12100         first is from a previous call.
12101         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12102
12103 2001-08-29  Andreas Schwab  <schwab@suse.de>
12104
12105         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12106
12107 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12108
12109         * config.make.in (INSTALL_SCRIPT): Define.
12110         * Makeconfig (INSTALL_SCRIPT): Define.
12111         * Makerules (do-install-script): New macro to install scripts using
12112         INSTALL_SCRIPT.
12113         (install-bin-script): New rule to install scripts with
12114         do-install-script.
12115         (install-bin-script-nosubdir): New rule.
12116         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12117         (distinfo-vars): Add $(install-bin-script).
12118         * Rules (others): Likewise.
12119         * Makefile (glibcbug): Install with install-bin-script.
12120         * debug/Makefile (xtrace): Likewise.
12121         (catchsegv): Likewise.
12122         * elf/Makefile (ldd): Likewise.
12123         * malloc/Makefile (mtrace): Likewise.
12124         * timezone/Makefile (tzselect): Likewise.
12125
12126 2001-08-29  H.J. Lu  <hjl@gnu.org>
12127
12128         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12129         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12130         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12131
12132 2001-08-29  Andreas Schwab  <schwab@suse.de>
12133
12134         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12135
12136 2001-08-28  H.J. Lu  <hjl@gnu.org>
12137
12138         * Makeconfig (combreloc-LDFLAGS): New variable.
12139         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12140         * config.make.in (have-z-combreloc): New variable.
12141         * configure.in: Substitute libc_cv_z_combreloc.
12142
12143 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12144
12145         * po/sv.po: Update from translation team.
12146         * po/fr.po: Likewise.
12147         * po/da.po: Likewise.
12148
12149 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12150
12151         * Makerules: Fix a typo: MD% -> MD5.
12152
12153 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12154
12155         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12156         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12157
12158 2001-08-28  Andreas Jaeger  <aj@suse.de>
12159
12160         * manual/libc-texinfo.sh: Add entry about free manuals.
12161
12162         * manual/contrib.texi (Contributors): Fix cross reference.
12163
12164         * manual/libc.texinfo (Copying): Include freemanuals.
12165
12166         * manual/Makefile (appendices): Add freemanuals.
12167
12168         * manual/freemanuals.texi: New file.
12169         Patch by Brian Youmans <3diff@gnu.org>.
12170
12171         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12172         smaller table.
12173
12174         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12175         table on separate page.
12176         Patch by Brian Youmans <3diff@gnu.org>.
12177
12178 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12179
12180         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12181         the connection went down after we first used it try to connect
12182         again and resend the message before printing to the console.
12183         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12184
12185 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12186
12187         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12188         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12189         bit set.
12190
12191 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12192
12193         * iconv/strtab.c (searchstring): Use correct length for comparison.
12194         (strtabadd): Account total size correct if new string has old string as
12195         substring.
12196
12197 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12198
12199         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12200
12201 2001-08-27  Andreas Jaeger  <aj@suse.de>
12202
12203         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12204
12205         * math/libm-test.inc (j0_test): Add extra tests.
12206         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12207         not x, in Hankel approximation.
12208         Patches by Stephen L Moshier.
12209
12210 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12211
12212         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12213         link_map.
12214
12215         * configure.in: Fix test for .rela.dyn section.
12216
12217         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12218
12219 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12220
12221         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12222         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12223         Pass type_class to _dl_lookup_*.
12224         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12225         Pass around just type_class instead of noexec, noplt pair.
12226         (_dl_lookup_versioned_symbol): Likewise.
12227         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12228         noexec, noplt pair.
12229         (_dl_lookup_versioned_symbol_skip): Likewise.
12230         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12231         * elf/do-lookup.h (do_lookup): Likewise.
12232         * include/link.h (struct link_map): Replace noexec and noplt fields
12233         in l_lookup_cache with type_class field.
12234         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12235         ELF_RTYPE_CLASS_COPY): Define.
12236         Adjust prototypes for _dl_lookup_symbol and
12237         _dl_lookup_versioned_symbol.
12238         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12239         elf_machine_lookup_noexec_p): Remove.
12240         (elf_machine_type_class): Define.
12241         * sysdeps/arm/dl-machine.h: Likewise.
12242         * sysdeps/hppa/dl-machine.h: Likewise.
12243         * sysdeps/cris/dl-machine.h: Likewise.
12244         * sysdeps/i386/dl-machine.h: Likewise.
12245         * sysdeps/ia64/dl-machine.h: Likewise.
12246         * sysdeps/m68k/dl-machine.h: Likewise.
12247         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12248         * sysdeps/mips/dl-machine.h: Likewise.
12249         * sysdeps/powerpc/dl-machine.h: Likewise.
12250         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12251         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12252         * sysdeps/sh/dl-machine.h: Likewise.
12253         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12254         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12255
12256 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12257
12258         * manual/message.texi (Advanced gettext functions): Change
12259         description of plural forms for Slovak.
12260         Reported by Marcel Telka <marcel@telka.sk>.
12261
12262         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12263         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12264
12265 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12266
12267         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12268         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12269
12270 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12271
12272         * include/link.h (struct link_map): Add l_lookup_cache element.
12273         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12274         (RESOLVE_MAP): Likewise.
12275         (_dl_relocate_object): Remove cache initialization.
12276         * elf/dl-lookup.c: Rip out cache handling code.
12277         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12278         declarations.
12279
12280         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12281         remove some __builtin_expect.
12282         (_dl_lookup_versioned_symbol): Likewise.
12283
12284         * config.h.in: Add HAVE_Z_COMBRELOC.
12285         * configure.in: Add test for -z combreloc.
12286
12287         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12288         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12289         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12290         case to almost no code.
12291
12292 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12293
12294         * po/tr.po: Update from translation team.
12295
12296 2001-08-24  Andreas Jaeger  <aj@suse.de>
12297
12298         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12299         make clean works.
12300
12301 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12302
12303         * elf/rtld.c (print_statistics): Printf % after percent values.
12304         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12305
12306         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12307         don't have to compute the hash value and initialize current_value.
12308         Move reference_name variable to where it is needed.
12309         (_dl_lookup_versioned_symbol): Likewise.
12310
12311 2001-08-24  Roland McGrath  <roland@frob.com>
12312
12313         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12314         Just test that strerror returns non-null for a few errno codes.
12315
12316 2001-08-23  Roland McGrath  <roland@frob.com>
12317
12318         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12319         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12320
12321         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12322
12323         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12324         __mach_reply_port.
12325
12326 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12327
12328         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12329         returns NULL.
12330
12331         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12332         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12333         doesn't do it.
12334         * elf/rtld.c: Include <sys/param.h>.
12335         * elf/dl-reloc.c: Likewise.
12336
12337 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12338
12339         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12340         empty to prevent junk from being generated.
12341         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12342
12343 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12344
12345         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12346         records.  Rename endrel to relative, initialize it to r, and use it
12347         in elf_machine_rel_relative calls.  Point r after relative relocs.
12348
12349 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12350
12351         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12352         of R_386_NONE.
12353
12354 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12355
12356         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12357         necessary.  Undefine newly defined macros at the end.
12358         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12359         Rename from elf_machine_rel_relative.
12360         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12361         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12362         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12363         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12364         Likewise.
12365         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12366         Likewise.
12367         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12368         Fix argument types.
12369         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12370         Fix argument types.
12371         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12372         Likewise.  Fix argument types.
12373         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12374         Likewise.  Fix argument types.
12375         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12376         Fix argument types.
12377         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12378         ElfW(Rel) in argument.
12379         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12380         function.
12381
12382 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12383
12384         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12385
12386 2001-08-24  Andreas Jaeger  <aj@suse.de>
12387
12388         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12389         Stephen L Moshier <moshier@mediaone.net>.
12390
12391 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12392
12393         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12394         first if RELCOUNT is set.
12395
12396         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12397         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12398         elf_machine_rel_relative.
12399         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12400         Minor optimizations.
12401         * sysdeps/arm/dl-machine.h: Likewise.
12402         * sysdeps/cris/dl-machine.h: Likewise.
12403         * sysdeps/hppa/dl-machine.h: Likewise.
12404         * sysdeps/i386/dl-machine.h: Likewise.
12405         * sysdeps/ia64/dl-machine.h: Likewise.
12406         * sysdeps/m68k/dl-machine.h: Likewise.
12407         * sysdeps/mips/dl-machine.h: Likewise.
12408         * sysdeps/powerpc/dl-machine.h: Likewise.
12409         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12410         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12411         * sysdeps/sh/dl-machine.h: Likewise.
12412         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12413         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12414
12415 2001-08-23  Roland McGrath  <roland@frob.com>
12416
12417         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12418
12419         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12420         sysdeps/mach version.  Implement counting ("recursive") mutexes
12421         on top of cthreads mutexes.
12422         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12423
12424         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12425         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12426         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12427         __libc_clean_end): Define these to call the cleanup function after
12428         normal exit when they're supposed to.
12429
12430         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12431         Take new first arg DOIT, a boolean saying whether to really install
12432         any cleanup handler.
12433         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12434         (__libc_cleanup_end): Likewise.
12435         * sysdeps/generic/bits/libc-lock.h: Same changes.
12436         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12437         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12438         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12439         Likewise.
12440         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12441         * sysdeps/generic/bits/stdio-lock.h
12442         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12443
12444 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12445
12446         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12447
12448 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12449
12450         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12451         functions.
12452         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12453         lookups in cache.
12454         (_dl_lookup_versioned_symbol): Likewise.
12455         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12456         relocation lookup.
12457         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12458         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12459         (lookup_cache, lookup_cache_versioned): Add declarations.
12460
12461 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12462
12463         * stdlib/tst-random.c (main): Swap parameters in fail call.
12464         Patch by Pete Bevin <pete@petebevin.com>.
12465
12466 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12467
12468         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12469
12470 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12471
12472         * malloc/obstack.c: Indent preprocessor directives.
12473         Patch by Jim Meyering <meyering@ascend.com>.
12474
12475         * po/ja.po: Update from translation team.
12476
12477 2001-08-23  Roland McGrath  <roland@frob.com>
12478
12479         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12480
12481         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12482         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12483
12484 2001-08-22  Roland McGrath  <roland@frob.com>
12485
12486         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12487         __libc_lock_define_recursive.
12488         * elf/dl-open.c: Don't declare it here any more.
12489         * elf/dl-close.c: Likewise.
12490         * elf/dl-lookup.c: Likewise.
12491         * elf/dl-iteratephdr.c: Likewise.
12492         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12493         __libc_lock_unlock_recursive.
12494         * elf/dl-close.c (_dl_close): Likewise
12495         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12496         * elf/dl-open.c (_dl_open): Likewise
12497
12498         * sysdeps/generic/bits/libc-lock.h
12499         (__libc_lock_define_recursive): New macro.
12500         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12501         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12502         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12503
12504         * conform/conformtest.pl (checknamespace): Sort the output list.
12505
12506         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12507         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12508         definitions conditional on [__USE_XOPEN].
12509
12510         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12511         these unconditionally, not only use [__USE_BSD], so as to match
12512         the sysdeps/unix/sysv/linux files.
12513
12514 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12515
12516         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12517         avoid warnings.
12518
12519         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12520         DL_LOOKUP_ADDRESS.
12521
12522 2001-08-22  Roland McGrath  <roland@frob.com>
12523
12524         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12525         conditionalization of sa_handler/sa_sigaction member types to
12526         match the sysdeps/unix/sysv/linux file.
12527
12528 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12529
12530         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12531         symbol sizes a bit better.
12532
12533         * sysdeps/ia64/strncpy.S: Complete rewrite.
12534         Contributed by Jakub Jelinek <jakub@redhat.com>.
12535
12536         * string/stratcliff.c (main): Add strncpy test.
12537
12538 2001-08-22  Roland McGrath  <roland@frob.com>
12539
12540         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12541         and don't declare unsetenv or _environ directly.
12542         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12543
12544 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12545
12546         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12547         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12548         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12549         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12550         test for cmsg struct size.
12551
12552 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12553
12554         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12555         Rename __argc to ___argc in prototypes to avoid compatibility
12556         problems with systems that reserve the identifier "__argc".
12557         Similarly for __argv.
12558
12559 2001-08-21  Roland McGrath  <roland@frob.com>
12560
12561         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12562
12563         * mach/Makefile (tests): Removed.
12564         * mach/hello.c: File removed.
12565
12566 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12567
12568         * po/sv.po: Update from translation team.
12569
12570         * stdio-common/vfscanf.c: Fix handling of %l[].
12571         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12572
12573         * libio/Makefile (tests): Add tst-sscanf.
12574         * libio/tst-sscanf.c: New file.
12575
12576         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12577         * malloc/mtrace.c (tr_where): dli_sname always points to a
12578         non-empty string if != NULL.
12579         Reported by Tim Janik <timj@gtk.org>.
12580
12581 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12582
12583         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12584         buf.  Free resources on failure.
12585         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12586         (makefd_xprt): Likewise.
12587         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12588         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12589         * sunrpc/auth_unix.c (authunix_create): Likewise.
12590
12591 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12592
12593         * string/strnlen.c: Remove.
12594         * sysdeps/generic/strnlen.c: New file.
12595         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12596
12597 2001-08-21  Roland McGrath  <roland@frob.com>
12598
12599         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12600         as a macro, not an extern inline function.
12601
12602         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12603         * Versions.def (libc): Add GLIBC_2.2.5 set.
12604         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12605         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12606
12607 2001-08-20  Roland McGrath  <roland@frob.com>
12608
12609         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12610         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12611
12612 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12613
12614         * string/bits/string2.h: Remove strnlen optimization here.
12615         * sysdeps/i386/i486/bits/string.h: Add it here.
12616
12617 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12618
12619         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12620
12621 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12622
12623         * po/gl.po: Update from translation team.
12624
12625 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12626
12627         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12628         * misc/err.c (convert_and_print): Likewise.
12629
12630         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12631         function calls.
12632
12633 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12634
12635         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12636         change of the gregset_t type.
12637         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12638
12639 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12640
12641         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12642
12643 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12644
12645         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12646
12647         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12648
12649 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12650
12651         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12652         before calling the cthreads initialization code.
12653
12654 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12655
12656         * argp/argp-help.c: Fix two problems introduced in last change.
12657
12658         * include/dirent.h: Include <dirstream.h> first.
12659
12660 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12661
12662         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12663
12664         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12665         * sunrpc/xdr_rec.c: Likewise.
12666         * sunrpc/xdr_mem.c: Likewise.
12667         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12668         * sunrpc/rpc_cmsg.c: Likewise.
12669         * sunrpc/getrpcport.c (getrpcport): Likewise.
12670         * sunrpc/clnt_simp.c (callrpc): Likewise.
12671         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12672         * string/envz.c: Likewise.
12673
12674         * po/ko.po: Update from translation team.
12675
12676         * argp/argp-help.c: Handle wide oriented stderr stream.
12677
12678 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12679
12680         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12681         __builtin_expect.
12682
12683         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12684
12685         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12686         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12687         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12688
12689         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12690
12691         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12692
12693         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12694
12695         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12696         wchar_t for function declarations and defintions.
12697
12698         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12699         Define suseconds_t if it hasn't happened yet.
12700
12701         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12702
12703         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12704
12705         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12706         <stddef.h>.
12707
12708         * conform/data/stddef.h-data: Remove wint_t.
12709
12710         * conform/conformtest.pl: Change namespace test to take #undef
12711         lines into account.
12712
12713         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12714
12715         * conform/data/sys/socket.h-data: Add sockatmark.
12716
12717 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12718
12719         * io/fts.c: Update from recent BSD source.
12720
12721 2001-08-17  Roland McGrath  <roland@frob.com>
12722
12723         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12724         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12725         Likewise.
12726
12727 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12728
12729         * locale/duplocale.c (__duplocale): Also initialize the special
12730         __ctype_* elements.
12731
12732         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12733
12734 2001-08-17  Andreas Jaeger  <aj@suse.de>
12735
12736         * misc/getpass.c: Include wchar.h for prototypes.
12737         * malloc/obstack.c: Likewise.
12738
12739 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12740
12741         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12742
12743         * wcsmbs/wcscoll.c: Also define __wcscoll.
12744         * include/wchar.h: Declare __wcscoll.
12745
12746         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12747         * libio/vwprintf.c: Likewise.
12748         * libio/wprintf.c: Likewise.
12749
12750         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12751
12752 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12753
12754         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12755         instead of mbrtowc.
12756         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12757         wcslen, and __wcscoll instead of wcscoll.
12758
12759         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12760
12761         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12762         __getuid instead of getuid.
12763
12764         * stdio-common/perror.c (perror): Use __close instead of close.
12765         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12766         * libio/freopen.c (freopen): Likewise.
12767         * libio/freopen64.c (freopen64): Likewise.
12768
12769         * libio/tst-ungetwc2.c (main): Define str const.
12770
12771         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
12772         * libio/fwprintf.c: Also define __fwprintf.
12773         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
12774         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
12775         * assert/assert-perr.c: Likewise.
12776         * assert/assert.c: Likewise.
12777         * gmon/gmon.c: Likewise.
12778         * inet/rcmd.c: Likewise.
12779         * malloc/obstack.c: Likewise.
12780         * misc/err.c: Likewise.
12781         * misc/error.c: Likewise.
12782         * misc/getpass.c: Likewise.
12783         * posix/getopt.c: Likewise.
12784         * resolv/res_hconf.c: Likewise.
12785         * stdio-common/perror.c: Likewise.
12786         * stdio-common/psignal.c: Likewise.
12787         * stdlib/fmtmsg.c: Likewise.
12788         * sunrpc/auth_unix.c: Likewise.
12789         * sunrpc/clnt_perr.c: Likewise.
12790         * sunrpc/clnt_tcp.c: Likewise.
12791         * sunrpc/clnt_udp.c: Likewise.
12792         * sunrpc/clnt_unix.c: Likewise.
12793         * sunrpc/svc_simple.c: Likewise.
12794         * sunrpc/svc_tcp.c: Likewise.
12795         * sunrpc/svc_udp.c: Likewise.
12796         * sunrpc/svc_unix.c: Likewise.
12797         * sunrpc/xdr.c: Likewise.
12798         * sunrpc/xdr_array.c: Likewise.
12799         * sunrpc/xdr_rec.c: Likewise.
12800         * sunrpc/xdr_ref.c: Likewise.
12801         * sysdeps/generic/wordexp.c: Likewise.
12802
12803         * po/it.po: Update from translation team.
12804
12805         * misc/err.c: Handle wide oriented stderr stream.
12806
12807 2001-08-14  Tom Rix  <trix@redhat.com>
12808
12809         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
12810         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
12811
12812 2001-08-13  Tom Rix  <trix@redhat.com>
12813
12814         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
12815         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
12816         and __intptr_t.
12817
12818 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12819
12820         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
12821         Store the access registers to the ucontext structure.
12822         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
12823         Likewise.
12824
12825         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
12826         Load the access registers from the ucontext structure.
12827         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
12828         Likewise.
12829
12830         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
12831         offsets to the new ucontext layout.
12832         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
12833
12834         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
12835         of the ucontext structure.
12836         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12837
12838 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
12839
12840         * misc/error.c (error): Handle wide oriented stderr stream correctly.
12841         (error_at_line): Likewise.
12842
12843         * stdio-common/perror.c (perror): Implement according to standard.
12844         The stream orientation must not be changed if the stream was not
12845         oriented before the call.
12846         * stdio-common/Makefile (tests): Add tst-perror.
12847         * stdio-common/tst-perror.c: New file.
12848
12849
12850 See ChangeLog.12 for earlier changes.